/* /var/www/blog.adriancollier.com/include/blog.css — blog-specific rules for the
   "engineering console" theme. Loaded AFTER /shared/styles.css (tokens, base
   typography, forms, adsbygoogle). Built 2026-11-25 (blog restyle; docs/
   adsense-implementation.md). Covers: two-tier tab nav, post list, flat
   pagination, site map, footer strip, PGP code panels, admin tables/buttons,
   mobile layout. Same language as the utility sites:
   Inter + JetBrains Mono, 1px borders, 3px radii, no shadows, blue accent. */

/* ---- shell: flex column so the footer sticks to the viewport bottom ---- */
.main_wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ---- header: two-tier tab strips (intranet tab language, light console) ----
   Top strip = adriancollier.com site family; sub strip = blog sections.
   11.5px mono uppercase, active = accent underline; rows scroll horizontally
   on narrow screens — no dropdown, no hamburger. */
.header_wrapper {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}

/* ---- body: white surface card, content + 220px ad rail ---- */
.body_wrapper {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	flex: 0 1 auto;
	max-width: 980px;
	width: 100%;
	margin: 16px auto 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.body02_wrapper {
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 28px 6px;
}
/* ad rail removed 2026-11-25 — single-column layout (bottom AdSense unit stays) */
.body03_wrapper { display: none; }

/* left menu retired 2026-11-25 (tab nav) — wrapper divs still live in old pages */
.body01_wrapper { display: none; }

/* ---- post list ---- */
div.first_post,
div.post {
	padding: 20px 0 4px;
	border-top: 1px solid var(--border);
}
div.first_post {
	padding-top: 2px;
	border-top: none;
}
h2.post_title {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.35;
	margin: 0 0 2px;
}
h2.post_title a { color: var(--text); }
h2.post_title a:hover { color: var(--accent); text-decoration: underline; }
.post_body_wrapper { margin-top: 10px; }
.post_image_wrapper { margin-bottom: 6px; }
.post_image_wrapper img {
	max-width: 100%;
	display: block;
	margin: 10px auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.post_body_text {
	text-align: left;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
}
.post_body_text p {
	margin: 0 0 10px;
	text-align: left;
}
.post_body_text img {
	max-width: 100%;
	display: block;
	margin: 10px auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.post_body_text iframe {
	max-width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.post_body_text ul,
.post_body_text ol {
	margin: 0 0 10px;
	padding-left: 22px;
}
.post_body_text li { margin: 4px 0; }
.post_body_text a { color: var(--accent); }
.post_body_text pre {
	font-family: var(--font-mono);
	font-size: 12.5px;
	line-height: 1.55;
	background: var(--code-bg);
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	padding: 12px 14px;
	overflow-x: auto;
	margin: 10px 0;
	white-space: pre-wrap;
	word-break: break-word;
	color: var(--code-text);
}
.post_body_text tt,
.post_body_text code {
	font-family: var(--font-mono);
	font-size: 12.5px;
	background: var(--code-bg);
	border: 1px solid var(--code-border);
	border-radius: 2px;
	padding: 1px 5px;
	color: var(--code-text);
}
p.tt {
	font-size: 14px;
	border-left: 3px solid var(--accent);
	background: var(--accent-tint);
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: 10px 0;
	padding: 8px 12px;
}
.post_timestamp { margin-top: 4px; }
p.timestamp {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--faint);
	text-align: left;
	margin: 0;
}

/* ---- AdSense (markup untouched; container widths preserved from old sheet) ---- */
div.google_AdSense_index_bottom {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid var(--border);
	text-align: center;
}
.google_AdSense_index_sub_wrapper {
	width: 482px;
	max-width: 100%;
	margin: 0 auto;
}
.google_AdSense_body03_sub_wrapper {
	width: 162px;
	max-width: 100%;
	margin: 0 auto;
}

/* ---- pagination (prev / counter / next — minimal, no numbers grid) ---- */
.page_gen_wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	border-top: 1px solid var(--border);
	margin-top: 22px;
	padding: 14px 0 18px;
}
.page_left a,
.page_right a {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
	text-decoration: none;
	transition: color 0.15s ease;
}
.page_left a:hover,
.page_right a:hover { color: var(--accent); }
.page_nav_disabled {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--faint);
	opacity: 0.35;
}
.page_counter span {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--soft);
}

/* ---- site map ---- */
div.site_map_first_post,
div.site_map_post {
	border-top: 1px solid var(--border);
	padding: 7px 0;
}
div.site_map_first_post {
	border-top: none;
	padding-top: 2px;
}
.site_map_first_post h2,
.site_map_post h2 {
	font-size: 14.5px;
	font-weight: 500;
	margin: 0;
}
.site_map_first_post h2 a,
.site_map_post h2 a { color: var(--text); }
.site_map_first_post h2 a:hover,
.site_map_post h2 a:hover { color: var(--accent); }

/* footer strips: single source = shared/styles.css (2026-11-25) */

/* ---- static pages: PGP key + fingerprint (light code panels) ---- */
.code_block { word-break: break-word; }
.code_block h1 {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--soft);
	margin: 18px 0 8px;
}
.code_block h1:first-of-type { margin-top: 4px; }
/* PGP page (console rewrite 2026-11-25) — armor block hugs its 64-col lines */
.code_block pre.pgp_key {
	font-family: var(--font-mono);
	font-size: 12px;
	line-height: 1.55;
	background: var(--code-bg);
	color: var(--code-text);
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	padding: 14px 16px;
	margin: 0 0 14px;
	white-space: pre;
	overflow-x: auto;
	width: fit-content;
	max-width: 100%;
}
.code_block p.pgp_fp {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.08em;
	background: var(--code-bg);
	border: 1px solid var(--code-border);
	border-radius: var(--radius);
	padding: 10px 14px;
	color: var(--code-text);
}
/* ---- admin pages (mi5_administration / admin_mi5) ---- */
table.admin_modify {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}
table.admin_modify th {
	background: #f4f7fa;
	border: 1px solid var(--border-strong);
	font-family: var(--font-ui);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--soft);
	padding: 8px 12px;
	text-align: left;
}
table.admin_modify td {
	border: 1px solid #dde4ec;
	background: #fff;
	padding: 8px 12px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: #243447;
}
.button {
	display: inline-block;
	height: 42px;
	padding: 0 24px;
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 600;
	background: var(--btn);
	color: #fff;
	border: 1px solid transparent;
	border-radius: var(--radius);
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}
.button:hover { background: var(--btn-hover); }

/* ---- ad unit widths: preserved exactly from the old sheet (no ad change) ---- */
@media (min-width: 800px) {
	.google_ad_wrapper_index_bottom { width: 472px; }
	.google_ad_wrapper_body03 { width: 162px; }
}

/* ---- mobile: side columns drop, card edges off the screen ---- */
@media (max-width: 768px) {
	.body_wrapper {
		margin: 0;
		border: none;
		border-radius: 0;
	}
	.body03_wrapper { display: none; }
	.body02_wrapper { padding: 16px 16px 6px; }
	.footer_wrapper { margin-bottom: 0; }
	.google_AdSense_index_sub_wrapper { width: 100%; }
	.google_ad_wrapper_index_bottom { width: 300px; }
}

/* narrow phones: tabs scroll from the left edge */
@media (max-width: 560px) {
	}
