/*
Theme Name: Why Is It Not Working
Theme URI: https://whyisitnotworking.net/
Author: Vesna
Description: Diagnostic Console theme for whyisitnotworking.net. Search-first command-bar header, a symptom board homepage that fills itself from published posts, troubleshooting shortcodes (quick checks, heads-up, fix summary, symptom tables, UI paths), a "Did this fix it?" vote, a "Still not working?" footer with a live fix log, local fonts and no jQuery on the front end.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wiinw
Tags: blog, news, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, accessibility-ready, sticky-post
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--accent: #ff4f1f;
	--accent-text: #c2410c;
	--accent-tint: #fff3ee;
	--ink: #0e1116;
	--text: #3a414b;
	--muted: #5b6370;
	--line: #e3e6ea;
	--line-strong: #c9ced5;
	--panel: #f4f5f7;
	--dark: #0e1116;
	--dark-2: #1a1f27;
	--dark-line: #2a3039;
	--on-dark: #e7eaee;
	--on-dark-muted: #a9b1bc;
	--bg: #ffffff;
	--ok: #15803d;
	--ok-bright: #22c55e;
	--img-empty: #1a1f27;

	--font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--gutter: 24px;
	--radius: 10px;
	--radius-sm: 6px;
	--bw: 1.5px;
	--gap: 24px;
	--sidebar: 320px;
	--read: 740px;
	--header-h: 82px;
	--tabbar-h: 64px;

	--logo-h: 44px;
	--logo-h-sm: 34px;
	--logo-fs: 21px;
	--logo-fs-sm: 17px;
}
body.system-fonts {
	--font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent-text); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.icon { flex-shrink: 0; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.site-main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.dot--ok { background: var(--ok-bright); }
.mini-label, .box-label, .ftr-label {
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 10px;
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 9px 14px; border-radius: var(--radius-sm);
	border: var(--bw) solid transparent; font-weight: 700; font-size: 14px; line-height: 1.2; text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-accent:hover { background: #fff; color: var(--ink); border-color: #fff; }
.text-link { font-weight: 700; color: var(--accent-text); }
.text-link:hover { text-decoration: underline; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 8px; border: var(--bw) solid var(--ink); background: #fff; color: var(--ink);
}
.icon-btn:hover { background: var(--ink); color: #fff; }

/* Chips */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
	font-family: var(--font-mono); font-size: 13px; line-height: 1.2;
	padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink);
	white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.chip-hash { color: var(--accent-text); font-weight: 700; }
.chips--ink .chip { border-color: var(--ink); }
.chip-n { color: var(--muted); }

/* ==========================================================================
   Status strip
   ========================================================================== */
.status-strip { background: var(--dark); color: var(--on-dark); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.status-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 34px; padding-block: 6px; }
.status-live { margin: 0; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.status-live .sep { color: var(--on-dark-muted); }
.status-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.status-menu a { color: var(--on-dark); }
.status-menu a:hover { color: var(--accent); }
.status-strip :focus-visible { outline-color: var(--accent); }

/* ==========================================================================
   Header (shared)
   ========================================================================== */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.has-sticky-header .site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
.is-scrolled.has-sticky-header .site-header { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(14, 17, 22, .06); }
.hdr-row { display: flex; align-items: center; gap: 16px 28px; min-height: var(--header-h); padding-block: 16px; }

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; }
.brand-link:hover { color: var(--ink); }
.brand-logo { height: var(--logo-h); width: auto; max-width: 320px; object-fit: contain; }
.brand-mark {
	width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; background: var(--ink); color: var(--accent);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.site-title { margin: 0; font-weight: 800; font-size: var(--logo-fs); letter-spacing: -0.025em; line-height: 1; color: var(--ink); white-space: nowrap; }
.site-title .hl { color: var(--accent-text); }
.site-tagline { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); max-width: 220px; line-height: 1.35; }
.site-tagline.has-divider { padding-left: 14px; border-left: 1px solid var(--line-strong); }

/* Command-bar layout */
.hdr-search { flex: 1 1 360px; min-width: 0; max-width: 680px; }
.cmd-search {
	display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 5px 0 14px;
	border: var(--bw) solid var(--ink); border-radius: 8px; background: #fff;
}
.cmd-search:focus-within { box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 5px var(--accent); }
.cmd-icon { display: inline-flex; color: var(--ink); }
.cmd-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 15px; color: var(--ink); }
.cmd-input::placeholder { color: var(--muted); opacity: 1; }
.cmd-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.cmd-kbd {
	font-family: var(--font-mono); font-size: 11px; color: var(--muted);
	border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.cmd-go {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
	border: 0; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px;
}
.cmd-go .icon { display: none; }
.cmd-go:hover { background: var(--accent-text); }
.hdr-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.btn-topics {
	display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px;
	border: var(--bw) solid var(--ink); background: var(--ink); color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px;
}
.btn-topics:hover, .btn-topics[aria-expanded="true"] { background: #fff; color: var(--ink); }
.hdr-search-btn { display: none; }
.hdr-console .hdr-search + .hdr-actions { margin-left: 0; }

/* Classic layout (fallback) */
.site-header.hdr-classic .hdr-row { gap: 16px 32px; }
.site-header.hdr-classic .classic-nav { margin-left: auto; }
.site-header.hdr-classic .classic-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-header.hdr-classic .classic-menu a { font-weight: 700; font-size: 15px; color: var(--ink); padding-block: 8px; display: inline-block; }
.site-header.hdr-classic .classic-menu a:hover,
.site-header.hdr-classic .classic-menu .current-menu-item > a,
.site-header.hdr-classic .classic-menu .current-cat > a { color: var(--accent-text); }
.site-header.hdr-classic .hdr-actions { margin-left: 0; }
.site-header.hdr-classic .classic-burger { display: none; }

/* ==========================================================================
   Topics / search panel (drawer)
   ========================================================================== */
.topics-panel { position: fixed; inset: 0; z-index: 200; }
.topics-panel[hidden] { display: none; }
.topics-backdrop { position: absolute; inset: 0; background: rgba(14, 17, 22, .55); opacity: 0; transition: opacity .2s; }
.topics-sheet {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
	background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
	padding: 20px var(--gutter) 40px; display: flex; flex-direction: column; gap: 22px;
	transform: translateX(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease;
	border-left: var(--bw) solid var(--ink);
}
.topics-panel.is-open .topics-backdrop { opacity: 1; }
.topics-panel.is-open .topics-sheet { transform: none; opacity: 1; }
.admin-bar .topics-sheet { top: var(--wp-admin--admin-bar--height, 0px); }
.panel-open { overflow: hidden; }
.topics-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topics-title { margin: 0; font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.topic-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.topic-tiles a {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px;
	border: var(--bw) solid var(--ink); border-radius: var(--radius); color: var(--ink);
}
.topic-tiles a:hover { background: var(--ink); color: #fff; }
.topic-tiles a:hover .tile-count, .topic-tiles a:hover .tile-desc { color: var(--on-dark-muted); }
.tile-name { font-weight: 800; font-size: 17px; }
.tile-count { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); text-transform: uppercase; }
.tile-desc { font-size: 13px; color: var(--muted); line-height: 1.4; }
.panel-menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.panel-menu li { border-bottom: 1px solid var(--line); }
.panel-menu a { display: flex; justify-content: space-between; padding: 13px 0; font-weight: 700; font-size: 16px; }
.panel-menu .sub-menu { list-style: none; margin: 0 0 8px; padding: 0 0 0 14px; }
.panel-menu .sub-menu li { border: 0; }
.panel-menu .sub-menu a { font-weight: 500; padding: 7px 0; }
.panel-social .social-links { justify-content: flex-start; }

/* ==========================================================================
   Layout
   ========================================================================== */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar); gap: 48px; padding-block: 36px 64px; align-items: start; }
.layout-left .content-area { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.layout-left .content-area > .primary, .layout-left .content-area > .latest { order: 2; }
.layout-none .content-area { grid-template-columns: minmax(0, 1fr); }
.single .layout-none .content-area > .primary, .layout-none.single .content-area > .primary,
.layout-none.page .content-area > .primary { max-width: calc(var(--read) + 40px); margin-inline: auto; width: 100%; }
.primary { min-width: 0; }
/* One article column: text, images, embeds, tables and the boxes after the article all share its width. */
.single-post .content-area > .primary, .single-page .content-area > .primary { width: 100%; max-width: var(--read); }
.single-post .content-area, .single-page .content-area { grid-template-columns: minmax(0, var(--read)) var(--sidebar); justify-content: space-between; }
.layout-left .single-post .content-area, .layout-left .single-page .content-area { grid-template-columns: var(--sidebar) minmax(0, var(--read)); }
.layout-none .single-post .content-area, .layout-none .single-page .content-area { grid-template-columns: minmax(0, var(--read)); justify-content: center; }
.layout-none .single-post .content-area > .primary, .layout-none .single-page .content-area > .primary,
.single-post .content-area > .primary:only-child, .single-page .content-area > .primary:only-child { margin-inline: auto; }
.byline-mark, .author-mark { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ink); color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.byline-mark { font-size: 11px; }
.author-mark { font-size: 30px; }
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.has-sticky-header .sidebar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-h) + 16px); }
.below-header { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 10px; font-size: 14px; }

.section-head, .list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.list-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 0; }
.section-title { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.section-link { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); font-weight: 700; }

/* ==========================================================================
   Homepage: intro
   ========================================================================== */
.intro { background: var(--panel); border-bottom: 1px solid var(--line); }
.intro-inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; padding-block: 40px 32px; }
.intro-main { flex: 1 1 520px; min-width: 0; }
.intro-kicker { margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.intro-h1 { margin: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.03; letter-spacing: -0.03em; max-width: 17ch; }
.intro-text { margin: 14px 0 0; font-size: 17px; color: var(--text); max-width: 600px; }
.intro-chips { flex: 1 1 340px; min-width: 0; }

/* ==========================================================================
   Homepage: symptom board (hero)
   ========================================================================== */
.board { padding-block: 36px 8px; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.board-label { margin: 0; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--ink); }
.board-meta { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.board-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 14px; padding: 2px var(--gutter); scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs[hidden] { display: none; }
.board-tab {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px;
	border: var(--bw) solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.board-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-n { font-family: var(--font-mono); font-size: 12px; opacity: .8; }

.board-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.board-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.board-grid.cols-1.has-feed { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); }
.board-grid.cols-2.has-feed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, .92fr); }
.board-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-grid.cols-3.has-feed .board-feed { grid-column: 1 / -1; }
.board-grid.cols-0 { grid-template-columns: minmax(0, 1fr); }

.board-col { display: flex; flex-direction: column; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: #fff; overflow: hidden; min-width: 0; }
.board-col[hidden], .board-feed[hidden] { display: none !important; }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: var(--bw) solid var(--ink); }
.col-name { margin: 0; font-size: 18px; }
.col-name a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.col-name .dot { width: 10px; height: 10px; }
.board-col:nth-child(3n+2) .col-name .dot { background: var(--ink); }
.board-col:nth-child(3n+3) .col-name .dot { background: var(--accent-text); }
.col-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.lead { padding: 16px 16px 0; }
.lead-img { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.lead-body { padding: 14px 0 16px; }
.lead-title { margin: 0; font-size: 22px; line-height: 1.18; }
.lead-title a { color: var(--ink); }
.lead-title a:hover { color: var(--accent-text); }
.lead-excerpt { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.col-rows { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.col-rows li { display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.col-rows li:last-child { border-bottom: 0; }
.row-n { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-text); flex-shrink: 0; }
.col-rows a { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--ink); }
.col-rows a:hover { color: var(--accent-text); }

/* Feed (board + widget) */
.feed-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.feed-title { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.feed-title .dot { width: 10px; height: 10px; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-item a { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.feed-item:last-child a { border-bottom: 0; }
.feed-item .thumb { width: 64px; height: 64px; flex: 0 0 64px; border-radius: var(--radius-sm); }
.feed-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feed-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.feed-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.feed-d { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.feed-item a:hover .feed-t { color: var(--accent-text); }
.feed-all { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.feed--dark { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.feed--dark .feed-head, .feed--dark .feed-item a { border-color: var(--dark-line); }
.feed--dark .feed-title, .feed--dark .feed-item a, .feed--dark .feed-all, .feed--dark .widget-title { color: #fff; }
.feed--dark .feed-cat { color: var(--accent); }
.feed--dark .feed-d { color: var(--on-dark-muted); }
.feed--dark .feed-item a:hover .feed-t, .feed--dark .feed-all:hover { color: var(--accent); }
.feed--dark .thumb--empty { background-color: var(--dark-2); }
.feed--dark :focus-visible { outline-color: var(--accent); }
.board-grid.cols-3 .board-feed .feed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }
.board-grid.cols-3 .board-feed .feed-item:last-child a { border-bottom: 1px solid var(--dark-line); }

/* Thumbs */
.thumb { position: relative; display: block; overflow: hidden; background: var(--img-empty); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a:hover > .thumb img, a:hover .thumb img { transform: scale(1.03); }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-1 { aspect-ratio: 1 / 1; }
.thumb--empty {
	background-image:
		linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 22px 22px;
}
.thumb-code {
	position: absolute; left: 10px; bottom: 8px; right: 10px;
	font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.thumb-code::before { content: '● '; }
.ratio-1 .thumb-code { font-size: 0; }
.ratio-1 .thumb-code::before { font-size: 10px; }

/* ==========================================================================
   Homepage: how we troubleshoot
   ========================================================================== */
.how { padding-block: 36px 0; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.how-step { padding: 20px; border-right: 1px solid var(--line); }
.how-step:last-child { border-right: 0; }
.how-n { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.how-t { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ink); }
.how-x { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }

/* ==========================================================================
   Cards (lists)
   ========================================================================== */
.card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card-img { display: block; border-radius: var(--radius-sm); overflow: hidden; align-self: start; }
.card-title { margin: 0; font-size: 21px; line-height: 1.2; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-text); }
.card-excerpt { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.card-updated { margin: 8px 0 0; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ok); text-transform: uppercase; }
.card-updated .dot { width: 6px; height: 6px; background: var(--ok); }
.card.sticky .card-title::after { content: ' ★'; color: var(--accent-text); font-size: .7em; vertical-align: middle; }

.kicker { margin: 0 0 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kicker a { color: var(--accent-text); font-weight: 700; }
.kicker a:hover { text-decoration: underline; }
.kicker .sep { color: var(--line-strong); }

.pagination { margin-top: 28px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; min-width: 42px; min-height: 42px; justify-content: center; padding: 8px 12px;
	font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); color: var(--ink);
}
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }
.pagination .dots { border: 0; }

/* ==========================================================================
   Page heads (archives, search, pages)
   ========================================================================== */
.page-head { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 28px 32px; }
.page-kicker { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.page-title { margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
.page-title .hash { color: var(--accent-text); }
.page-sub { margin: 10px 0 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.page-desc { margin-top: 12px; max-width: 720px; font-size: 17px; }
.page-desc p:last-child { margin-bottom: 0; }
.page-search { margin-top: 18px; max-width: 640px; }
.standfirst { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: var(--text); max-width: 760px; }

.breadcrumbs { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 4px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-text); }
.breadcrumbs [aria-current] { color: var(--ink); }
.breadcrumbs li:last-child { max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Single post
   ========================================================================== */
.post-head { background: var(--panel); border-bottom: 1px solid var(--line); padding-block: 28px 30px; }
.post-head-inner > * { max-width: 900px; }
.post-kicker { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-kicker a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); }
.post-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.06; letter-spacing: -0.03em; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.byline { display: inline-flex; align-items: center; gap: 8px; }
.byline a { color: var(--ink); font-weight: 700; }
.byline-ava { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; overflow: hidden; background: var(--line); }
.byline-ava img { width: 100%; height: 100%; object-fit: cover; }
.meta-updated { color: var(--ok); }
.applies { margin: 12px 0 0; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.4; color: var(--ink); border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; padding: 5px 12px 5px 5px; }
.applies-label { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

.post-image { margin: 0 0 24px; }
.post-image img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.post-image figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Article typography — generic rules use :where() so boxes keep their own styles */
.entry-content { font-size: 18px; line-height: 1.7; color: var(--text); }
.entry-content > :first-child { margin-top: 0; }
.entry-content :where(p, ul, ol, dl, blockquote, figure, table, pre) { margin: 0 0 1.25em; }
.entry-content :where(h2) { font-size: clamp(24px, 2.4vw, 30px); margin: 2em 0 .6em; letter-spacing: -0.02em; }
.entry-content :where(h3) { font-size: 21px; margin: 1.7em 0 .5em; }
.entry-content :where(h4) { font-size: 18px; margin: 1.5em 0 .4em; }
.entry-content :where(a) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content :where(a:hover) { color: var(--ink); }
.entry-content :where(ul, ol) { padding-left: 1.3em; }
.entry-content :where(li) { margin-bottom: .45em; }
.entry-content :where(li)::marker { color: var(--accent-text); font-weight: 700; }
.entry-content :where(strong) { color: var(--ink); }
.entry-content :where(blockquote) { margin-inline: 0; padding: 18px 22px; border: var(--bw) solid var(--ink); border-radius: var(--radius); font-size: 20px; line-height: 1.5; color: var(--ink); }
.entry-content :where(blockquote p:last-child) { margin-bottom: 0; }
.entry-content :where(code) { font-family: var(--font-mono); font-size: .86em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; color: var(--ink); }
.entry-content :where(pre) { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; }
.entry-content :where(pre code) { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.entry-content :where(img) { border-radius: var(--radius-sm); }
.entry-content :where(figcaption) { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }
.entry-content :where(hr) { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content :where(table) { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content :where(th, td) { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content :where(thead th) { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); border-bottom: 2px solid var(--ink); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content :where(img, video, iframe, embed, object, svg, canvas, figure, .wp-block-image, .wp-block-embed, .wp-block-video, .wp-caption, .alignwide, .alignfull) { max-width: 100%; }
.entry-content :where(figure) { margin-inline: 0; }
.entry-content :where(img, video) { height: auto; }
.entry-content :where(.wp-block-image img) { width: auto; }
.entry-content :where(.wp-block-image.alignwide img, .wp-block-image.alignfull img, .wp-block-image.size-full img, .wp-block-image.size-large img) { width: 100%; }
.entry-content :where(iframe.is-fluid) { width: 100%; height: auto; }
.entry-content :where(.wp-caption) { width: auto !important; }
.entry-content > table, .entry-content :where(.table-scroll) { display: block; overflow-x: auto; }
/* Elementor inside the article: boxed containers follow the column. */
.entry-content :where(.elementor-section-boxed > .elementor-container, .e-con-boxed > .e-con-inner, .e-con) { max-width: 100%; }
.alignwide { max-width: none; }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption-text { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* TOC */
.toc { margin: 0 0 28px; border: var(--bw) solid var(--ink); border-radius: var(--radius); font-size: 15px; line-height: 1.45; }
.toc summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .box-label { margin: 0; color: var(--ink); }
.toc-count { font-family: var(--font-mono); font-size: 12px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 8px; }
.toc details[open] summary { border-bottom: 1px solid var(--line); }
.toc-list { margin: 0; padding: 12px 16px 14px 16px; list-style: none; counter-reset: toc; }
.toc-list > li { counter-increment: toc; margin: 0; padding: 6px 0 6px 34px; position: relative; }
.toc-list > li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-text); }
.toc-list ol { list-style: none; margin: 4px 0 0; padding: 0; }
.toc-list ol li { margin: 0; padding: 3px 0; font-size: 14px; }
.toc-list ol li::before { content: '› '; color: var(--muted); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }

/* Fix summary */
.fix-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 24px; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.fix-cell { padding: 12px 14px; border-right: 1px solid var(--line); }
.fix-cell:last-child { border-right: 0; }
.fix-summary dt { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fix-summary dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.35; }
.fix-cell.diff-easy dd, .fix-cell.risk-none dd { color: var(--ok); }
.fix-cell.diff-pro dd, .fix-cell.risk-data dd { color: var(--accent-text); }

/* Content boxes */
.entry-content .answer-box, .entry-content .checks, .entry-content .heads-up, .entry-content .call-pro { margin: 1.6em 0; border-radius: var(--radius); padding: 18px 20px; font-size: 17px; line-height: 1.6; }
.answer-box { border: var(--bw) solid var(--ink); background: #fff; }
.answer-box .box-label, .checks .box-label { color: var(--accent-text); }
.answer-box p:last-child, .heads-up p:last-child, .call-pro p:last-child { margin-bottom: 0; }
.answer-box p { color: var(--ink); }
.checks { background: var(--panel); border: 1px solid var(--line); }
.checks-list { list-style: none; margin: 0; padding: 0; counter-reset: chk; }
.checks-list .check { counter-increment: chk; position: relative; padding: 10px 0 10px 44px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.checks-list .check:first-child { border-top: 0; }
.checks-list .check::before {
	content: counter(chk); position: absolute; left: 0; top: 8px;
	width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
	font-family: var(--font-mono); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.check.is-risky::before { background: var(--accent); color: var(--ink); }
.check-text { flex: 1 1 260px; color: var(--ink); }
.check-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; background: #fff; white-space: nowrap; }
.check-flag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--accent-text); text-transform: uppercase; }
.heads-up { background: var(--accent-tint); border: var(--bw) solid var(--accent); color: var(--ink); }
.heads-up .box-label { display: flex; align-items: center; gap: 8px; color: var(--accent-text); }
.call-pro { background: var(--dark); color: var(--on-dark); }
.call-pro .box-label { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.call-pro a { color: #fff; }
.call-pro strong { color: #fff; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.symptom-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; margin: 0; }
.symptom-table caption { text-align: left; padding: 12px 14px 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.symptom-table thead th { background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; text-align: left; border: 0; }
.symptom-table tbody th, .symptom-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.symptom-table tbody th { color: var(--ink); font-weight: 700; }

.ui-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; vertical-align: baseline; }
.ui-step { font-family: var(--font-mono); font-size: .8em; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 4px; padding: .1em .45em; color: var(--ink); white-space: nowrap; }
.ui-sep { color: var(--accent-text); font-weight: 700; }
kbd.key { font-family: var(--font-mono); font-size: .8em; background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 3px; border-radius: 5px; padding: .05em .45em; color: var(--ink); }

/* Stat + charts */
.stat-box { margin: 1.6em 0; padding: 18px 20px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: #fff; }
.stat-value { margin: 0; font-size: clamp(34px, 5vw, 48px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat-label { margin: 8px 0 0; font-size: 16px; color: var(--text); }
.stat-source, .chart-cap { margin: 10px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.stat-source a, .chart-cap a { color: var(--accent-text); }
.stat-dark { background: var(--dark); border-color: var(--dark); }
.stat-dark .stat-value { color: var(--accent); }
.stat-dark .stat-label { color: var(--on-dark); }
.stat-dark .stat-source { color: var(--on-dark-muted); }
.stat-dark .stat-source a { color: #fff; }

.chart { margin: 1.6em 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.chart-title { margin: 0 0 14px; font-weight: 800; color: var(--ink); font-size: 17px; line-height: 1.3; }
.chart-trend { margin: 12px 0 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 30%) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; margin: 0; }
.hbar-label { color: var(--ink); font-weight: 600; line-height: 1.25; }
.hbar-track { height: 14px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 3px; transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.hbar.is-hl .hbar-fill { background: var(--accent); }
.hbar.is-muted .hbar-fill { background: var(--line-strong); }
.hbar-val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink); min-width: 3.5ch; text-align: right; }
.vbars { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding-top: 10px; }
.vbar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.vbar-col { flex: 1; width: 100%; max-width: 56px; display: flex; align-items: flex-end; background: var(--panel); border-radius: 3px 3px 0 0; }
.vbar-fill { display: block; width: 100%; height: var(--h); background: var(--ink); border-radius: 3px 3px 0 0; transition: height .8s cubic-bezier(.2, .7, .2, 1); }
.vbar.is-hl .vbar-fill { background: var(--accent); }
.vbar.is-muted .vbar-fill { background: var(--line-strong); }
.vbar-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink); }
.vbar-label { font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.line-svg { width: 100%; height: auto; overflow: visible; }
.line-svg .axis { stroke: var(--line-strong); stroke-width: 1; }
.line-svg .line-path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease; }
.line-svg .pt { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.line-svg .pt.is-hl { fill: var(--accent); stroke: var(--ink); }
.line-svg .pt-val { font-family: var(--font-mono); font-size: 12px; font-weight: 700; fill: var(--ink); }
.line-svg .pt-label { font-size: 12px; fill: var(--muted); }
.donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.donut { width: 150px; height: 150px; transform: rotate(-90deg); flex-shrink: 0; }
.donut circle { fill: none; stroke-width: 7; }
.donut-bg { stroke: var(--panel); }
.seg-0 { stroke: var(--ink); } .seg-1 { stroke: var(--accent); } .seg-2 { stroke: var(--muted); } .seg-3 { stroke: var(--line-strong); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.donut-legend strong { font-family: var(--font-mono); }
.sw { width: 12px; height: 12px; border-radius: 2px; }
.sw-0 { background: var(--ink); } .sw-1 { background: var(--accent); } .sw-2 { background: var(--muted); } .sw-3 { background: var(--line-strong); }
.will-animate .hbar-fill { width: 0; }
.will-animate .vbar-fill { height: 0; }
.will-animate .line-path { stroke-dashoffset: 1; }
.will-animate.is-inview .hbar-fill { width: var(--w); }
.will-animate.is-inview .vbar-fill { height: var(--h); }
.will-animate.is-inview .line-path { stroke-dashoffset: 0; }

/* After the article */
.helpful { margin: 32px 0 16px; padding: 18px 20px; border: var(--bw) solid var(--ink); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.helpful-q { margin: 0; font-weight: 800; font-size: 20px; color: var(--ink); flex: 1 1 200px; }
.helpful-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.helpful-btns .btn.is-picked { background: var(--ink); border-color: var(--ink); color: #fff; }
.helpful-btns .btn:disabled { cursor: default; }
.helpful-btns .btn:disabled:not(.is-picked) { opacity: .55; }
.helpful-stat, .helpful-msg, .helpful-ask { flex-basis: 100%; margin: 0; font-size: 14px; }
.helpful-stat { font-family: var(--font-mono); font-size: 12px; color: var(--ok); text-transform: uppercase; }
.helpful-msg:empty { display: none; }
.helpful-ask a { font-weight: 700; color: var(--accent-text); }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; padding: 14px 16px; background: var(--panel); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.55; color: var(--muted); }
.disclaimer p { margin: 0; }
.disc-icon { color: var(--accent-text); padding-top: 2px; }
.post-tags { margin: 24px 0; }
.after-post { margin: 24px 0; }

.author-box { container-type: inline-size; display: flex; gap: 20px; align-items: flex-start; margin: 32px 0; padding: 22px; border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.author-ava { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--panel); }
.author-ava img { width: 100%; height: 100%; object-fit: cover; }
.shape-square .author-ava { border-radius: var(--radius); }
.author-body { flex: 1; min-width: 0; }
.author-kicker { margin: 0 0 2px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.author-name { margin: 0; font-size: 22px; }
.author-line { margin: 2px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.author-bio { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; }
.author-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 32px 0; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); }
.post-nav a:hover { border-color: var(--ink); }
.post-nav-next { text-align: right; grid-column: 2; }
.post-nav .mini-label { margin: 0; }
.post-nav-title { font-weight: 700; font-size: 15px; line-height: 1.35; }

.related { margin: 40px 0; }
.related .section-title { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mini-card-img { display: block; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 10px; }
.mini-card-title { margin: 0; font-size: 17px; line-height: 1.25; }
.mini-card-title a { color: var(--ink); }
.mini-card-title a:hover { color: var(--accent-text); }

/* Comments */
.comments { margin: 40px 0; }
.comments .section-title { margin-bottom: 16px; }
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; margin: 4px 0 8px; }
.comment-metadata a { color: var(--muted); }
.reply a { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent-text); }
.comment-form label { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-field, .nl-form input, .mini-search input {
	width: 100%; min-height: 44px; padding: 10px 12px; border: var(--bw) solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-size: 15px;
}
.comment-form input:focus, .comment-form textarea:focus, .search-field:focus, .nl-form input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.comment-form p { margin-bottom: 14px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 16px 0; }
.search-form .search-field { flex: 1; }
.none-found { padding: 28px 0; }
.none-found .section-title { margin-bottom: 10px; }
.none-ask { margin-top: 20px; }

/* 404 */
.err404 { background: var(--panel); border-bottom: 1px solid var(--line); }
.err-inner { padding-block: 56px 48px; }
.err-code { margin: 0 0 12px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent-text); letter-spacing: .1em; }
.err-inner .mini-label { margin-top: 24px; }
.err-latest { padding-block: 40px 64px; }
.err-latest .section-title { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }

/* ==========================================================================
   Widgets
   ========================================================================== */
.widget { font-size: 15px; }
.sidebar .widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.widget-title { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.widget ul:not([class]) { margin: 0; padding: 0; list-style: none; }
.widget ul:not([class]) li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget select { width: 100%; min-height: 42px; }
.admin-hint { font-size: 13px; color: var(--muted); }

.sidebar .widget-wiinw_about { border: var(--bw) solid var(--ink); }
.about-w { container-type: inline-size; }
.about-head { display: flex; gap: 14px; align-items: center; }
.about-ava { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--panel); }
.about-ava img { width: 100%; height: 100%; object-fit: cover; }
.about-w.shape-square .about-ava { border-radius: var(--radius-sm); }
.about-names { min-width: 0; }
.about-w .widget-title { margin: 0; font-size: 19px; letter-spacing: -0.01em; text-transform: none; }
.about-name { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.about-line { margin: 2px 0 0; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.about-bio { margin-top: 12px; color: var(--text); line-height: 1.55; }
.about-bio p { margin: 0 0 .7em; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.about-all { margin: 12px 0 0; font-size: 14px; }
.about-w .social-links { margin-top: 12px; }
@container (max-width: 250px) {
	.about-head { flex-direction: column; align-items: flex-start; }
}

.sidebar .widget-wiinw_ask { border: 0; padding: 0; }
.ask-w { border-radius: var(--radius); padding: 20px; }
.ask-w .widget-title { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.015em; text-transform: none; }
.ask-w p { margin: 0 0 14px; line-height: 1.5; }
.ask-accent { background: var(--accent); color: var(--ink); }
.ask-accent .widget-title { color: var(--ink); }
.ask-accent :focus-visible { outline-color: var(--ink); }
.ask-dark { background: var(--dark); color: var(--on-dark); }
.ask-dark .widget-title { color: #fff; }
.ask-light { border: var(--bw) solid var(--ink); }

.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; color: var(--ink); }
.rank-list.has-thumbs a { align-items: center; }
.rank-list .thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: var(--radius-sm); }
.rank-n { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-text); flex-shrink: 0; }
.rank-t { font-weight: 600; font-size: 15px; line-height: 1.35; }
.rank-list a:hover .rank-t { color: var(--accent-text); }

.sidebar .widget-wiinw_recent:has(.feed--dark) { border: 0; padding: 0; }
.feed:not(.feed--dark) .widget-title { margin-bottom: 4px; }

.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.topic-list li:last-child a { border-bottom: 0; }
.topic-name { flex: 1; }
.topic-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); }
.social-links a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.newsletter p { margin: 0 0 12px; }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-form input { flex: 1 1 180px; }
.nl-note { margin-top: 8px !important; font-size: 12px; color: var(--muted); }

.widget .chart, .widget .stat-box { margin: 0; }
.sidebar .widget-wiinw_stat, .sidebar .widget-wiinw_chart { padding: 0; border: 0; }
.sidebar .widget-wiinw_stat .widget-title, .sidebar .widget-wiinw_chart .widget-title { margin-bottom: 10px; }

/* ==========================================================================
   Footer — "Still not working?" + fix log
   ========================================================================== */
.site-footer { margin-top: 24px; }
.still { background: var(--accent); color: var(--ink); }
.still :focus-visible { outline-color: var(--ink); }
.still-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; padding-block: 44px; }
.still-head { flex: 1 1 280px; }
.still-kicker { margin: 0 0 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.still-title { margin: 0; font-size: clamp(34px, 4.6vw, 56px); line-height: .98; letter-spacing: -0.035em; font-weight: 900; color: var(--ink); max-width: 9ch; }
.still-cards { flex: 2 1 560px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.still-card { background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.still-card--dark { background: var(--ink); color: #fff; }
.still-card--dark .still-num { color: var(--accent); }
.still-card--dark :focus-visible { outline-color: var(--accent); }
.still-num { margin: 0 0 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.still-x { margin: 0 0 14px; font-size: 15px; line-height: 1.4; }
.still-card .chips { gap: 6px; margin-top: auto; }
.still-card .chip { min-height: 32px; font-size: 12px; padding: 5px 10px; }
.still-card .btn { margin-top: auto; align-self: flex-start; }
.mini-search { display: flex; margin-top: auto; border: var(--bw) solid var(--ink); border-radius: var(--radius-sm); overflow: hidden; }
.mini-search input { border: 0; border-radius: 0; min-height: 40px; }
.mini-search input:focus { box-shadow: none; outline: 2px solid var(--accent-text); outline-offset: -2px; }
.mini-search button { border: 0; background: var(--ink); color: #fff; padding: 0 12px; display: inline-flex; align-items: center; }

.ftr-dark { background: var(--dark); color: var(--on-dark); }
.ftr-dark a { color: #fff; }
.ftr-dark a:hover { color: var(--accent); }
.ftr-dark :focus-visible { outline-color: var(--accent); }
.ftr-main { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-block: 40px 28px; }
.ftr-label { color: var(--on-dark-muted); font-size: 12px; }
.fix-log { flex: 2 1 520px; min-width: 0; }
.log-lines { list-style: none; margin: 0; padding: 12px 16px; border: 1px solid var(--dark-line); border-radius: 8px; font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.log-lines li { display: flex; gap: 14px; padding: 6px 0; margin: 0; }
.log-lines time { color: var(--on-dark-muted); flex-shrink: 0; }
.log-cat { color: var(--accent); flex: 0 0 84px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-lines a { color: #fff; min-width: 0; }
.log-cursor { color: var(--on-dark-muted); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ftr-cols { flex: 1 1 260px; display: grid; gap: 28px 24px; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-cols--1 { grid-template-columns: minmax(0, 1fr); }
.ftr-cols--3, .ftr-cols--4 { flex-basis: 100%; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.fix-log + .ftr-cols--3, .fix-log + .ftr-cols--4 { flex-basis: 100%; }
.ftr-links { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 2.1; }
.ftr-dark .widget { color: var(--on-dark); font-size: 14px; }
.ftr-dark .widget-title { color: var(--on-dark-muted); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.ftr-dark .widget ul:not([class]) li { border-color: var(--dark-line); }
.ftr-dark .social-links a { border-color: var(--dark-line); color: #fff; }
.ftr-dark .social-links a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.ftr-dark .rank-list li, .ftr-dark .topic-list a, .ftr-dark .feed-item a { border-color: var(--dark-line); }
.ftr-dark .rank-t, .ftr-dark .topic-list a, .ftr-dark .feed-t { color: #fff; }

.ftr-bar { border-top: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: 12px; color: var(--on-dark-muted); }
.ftr-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 14px; }
.ftr-bar p { margin: 0; }
.ftr-copy { display: flex; align-items: center; gap: 8px; }
.ftr-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ftr-menu a { color: var(--on-dark-muted); }
.ftr-top { border: 1px solid var(--dark-line); padding: 6px 10px; border-radius: 6px; }
.ftr-bar-widgets .widget { font-size: 12px; }

/* Simple columns footer */
.ftr-simple-grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 32px; padding-block: 48px 32px; }
.ftr-simple .site-title { color: #fff; }
.ftr-simple .site-title .hl { color: var(--accent); }
.ftr-about { margin: 12px 0 0; color: var(--on-dark-muted); font-size: 14px; line-height: 1.55; }

/* ==========================================================================
   Tab bar + back to top
   ========================================================================== */
.tabbar { display: none; }
.to-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #fff;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.board-grid.cols-2.has-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.board-grid.cols-2.has-feed .board-feed { grid-column: 1 / -1; }
	.board-grid.cols-2.has-feed .board-feed .feed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }
	.board-grid.cols-2.has-feed .board-feed .feed-item:last-child a { border-bottom: 1px solid var(--dark-line); }
	.board-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.content-area { grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; }
	.layout-left .content-area { grid-template-columns: 290px minmax(0, 1fr); }
	.single-post .content-area, .single-page .content-area { grid-template-columns: minmax(0, 1fr) 290px; }
	.layout-left .single-post .content-area, .layout-left .single-page .content-area { grid-template-columns: 290px minmax(0, 1fr); }
	.still-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 900px) {
	.content-area, .layout-left .content-area,
	.single-post .content-area, .single-page .content-area,
	.layout-left .single-post .content-area, .layout-left .single-page .content-area { grid-template-columns: minmax(0, 1fr); }
	.layout-left .content-area > .primary, .layout-left .content-area > .latest { order: 0; }
	.has-sticky-header .sidebar { position: static; }
	.site-header.hdr-classic .classic-nav { display: none; }
	.site-header.hdr-classic .classic-burger { display: inline-flex; }
	.site-header.hdr-classic .hdr-actions { margin-left: auto; }
	.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.related-grid > :nth-child(3) { display: none; }
	.btn-topics span { display: none; }
	.btn-topics { width: 48px; padding: 0; justify-content: center; }
	.btn-topics::after { content: none; }
	.how-steps { grid-template-columns: minmax(0, 1fr); }
	.how-step { border-right: 0; border-bottom: 1px solid var(--line); }
	.how-step:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; --header-h: 64px; }
	.hdr-row { min-height: var(--header-h); padding-block: 10px; gap: 12px; }
	.brand-logo { height: var(--logo-h-sm); max-width: 220px; }
	.site-title { font-size: var(--logo-fs-sm); }
	.brand-mark { width: 30px; height: 30px; font-size: 13px; border-radius: 5px; }
	.site-tagline { display: none; }
	.hdr-search { display: none; }
	.hdr-search-btn { display: inline-flex; }
	.hdr-actions, .hdr-console .hdr-search + .hdr-actions { margin-left: auto; }
	.has-tabbar .hdr-console .btn-topics { display: none; }
	.btn-topics { height: 44px; width: 44px; }
	.status-links { display: none; }
	.status-inner { min-height: 30px; padding-block: 5px; font-size: 11px; }

	.intro-inner { padding-block: 24px 20px; gap: 16px; }
	.intro-h1 { font-size: 32px; }
	.intro-text { font-size: 16px; }
	.intro-chips .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.intro-chips .chips::-webkit-scrollbar { display: none; }
	.intro-chips .chip { flex-shrink: 0; }

	.board { padding-top: 24px; }
	.board-grid, .board-grid.cols-1.has-feed, .board-grid.cols-2.has-feed, .board-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
	.board-grid .board-feed .feed-list { display: block !important; }
	.lead-title { font-size: 21px; }

	.card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
	.card-img .thumb { aspect-ratio: 1 / 1; }
	.card-img .thumb-code { font-size: 0; }
	.card-img .thumb-code::before { font-size: 10px; }
	.card-title { font-size: 17px; line-height: 1.25; }
	.card-excerpt { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.card .kicker { font-size: 10.5px; }
	.card .k-time { display: none; }
	.entry-content { font-size: 17px; }
	.post-head, .page-head { padding-block: 20px 24px; }
	.standfirst { font-size: 17px; }
	.author-box { flex-direction: column; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav-next { grid-column: 1; text-align: left; }
	.fix-summary { grid-template-columns: minmax(0, 1fr); }
	.fix-cell { border-right: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
	.fix-cell:last-child { border-bottom: 0; }
	.fix-summary dt { margin: 0; flex-shrink: 0; }
	.fix-summary dd { text-align: right; }

	.symptom-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.symptom-table tr { display: block; border-top: 1px solid var(--line); padding: 10px 14px; }
	.symptom-table tr:first-child { border-top: 0; }
	.symptom-table tbody th, .symptom-table td { display: block; border: 0; padding: 3px 0; }
	.symptom-table td::before { content: attr(data-label) ': '; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }

	.hbar { grid-template-columns: minmax(0, 1fr) auto; }
	.hbar-track { grid-column: 1 / -1; grid-row: 2; }

	.still-inner { padding-block: 32px; }
	.still-cards { grid-template-columns: minmax(0, 1fr); }
	.log-lines li { flex-wrap: wrap; gap: 2px 12px; }
	.log-lines a { flex-basis: 100%; }
	.ftr-cols--3, .ftr-cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr-bar-inner { flex-direction: column; align-items: flex-start; }
	.ftr-simple-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr-brand { grid-column: 1 / -1; }

	.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
	.has-tabbar .tabbar {
		display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
		background: var(--bg); border-top: var(--bw) solid var(--ink);
	}
	.has-tabbar .tabbar--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tabbar a, .tabbar button {
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		border: 0; background: none; color: var(--ink); font-size: 11px; font-weight: 600; padding: 6px 2px; min-height: 44px;
	}
	.tabbar [aria-current="page"], .tabbar .is-active { color: var(--accent-text); font-weight: 800; }
	.panel-open .tabbar [aria-current="page"]:not(.is-active) { color: var(--ink); font-weight: 600; }
	.has-tabbar .to-top { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); }
	.panel-open .tabbar { z-index: 210; }
	.topics-sheet { border-left: 0; padding-bottom: calc(var(--tabbar-h) + 24px); }
}

@media (max-width: 400px) {
	.site-title { letter-spacing: -0.035em; }
	.card-excerpt { display: none; }
}
@media (max-width: 359px) {
	.brand-mark { display: none; }
	.topic-tiles { grid-template-columns: minmax(0, 1fr); }
	.related-grid { grid-template-columns: minmax(0, 1fr); }
	.related-grid > :nth-child(3) { display: block; }
	.ftr-cols, .ftr-cols--3, .ftr-cols--4, .ftr-simple-grid { grid-template-columns: minmax(0, 1fr); }
	.helpful-btns, .helpful-btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.status-strip, .site-header, .topics-panel, .sidebar, .tabbar, .to-top, .still, .ftr-main, .helpful, .related, .post-nav, .comments, .toc { display: none !important; }
	.content-area { display: block; }
	body { color: #000; }
	.entry-content a::after { content: ' (' attr(href) ')'; font-size: .8em; }
}
.ftr-dark .brand-mark { background: var(--accent); color: var(--ink); }
.ftr-dark .site-title { color: #fff; }
.ftr-dark .site-title .hl { color: var(--accent); }
.err-sub { margin: 12px 0 0; font-size: 17px; max-width: 640px; }
