/*
Theme Name: Fixwise Digital
Theme URI: https://fixwisedigital.com
Author: Fixwise Digital
Description: A custom theme for Fixwise Digital: clear, tested fixes for Claude, ChatGPT, Gemini, Copilot and other AI tools. Every article is laid out like a repair ticket (symptom, quick fix, time to fix, difficulty, last verified date) with colour-coded tool tags, an automatic table of contents, copy buttons on code and a light/dark mode.
Version: 1.3.0
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: fixwise
Tags: blog, news, two-columns, custom-menu, custom-logo, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, block-patterns
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--paper: #f4f1ea;
	--surface: #fbfaf6;
	--surface-2: #ebe6da;
	--ink: #12161c;
	--ink-2: #3a404a;
	--muted: #646a73;
	--line: #d9d3c5;
	--lime: #c6f24e;
	--lime-ink: #1d2a00;
	--signal: #ff5f2e;
	--ok: #1f9d55;
	--console: #12161c;
	--console-ink: #e9e6de;

	--font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 0 rgba(18, 22, 28, .04), 0 10px 30px -18px rgba(18, 22, 28, .35);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

:root[data-theme="dark"] {
	--paper: #0e1115;
	--surface: #161a20;
	--surface-2: #1e232b;
	--ink: #ece8df;
	--ink-2: #c9c5bc;
	--muted: #969ba3;
	--line: #2a3038;
	--console: #07090c;
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .8);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0e1115;
		--surface: #161a20;
		--surface-2: #1e232b;
		--ink: #ece8df;
		--ink-2: #c9c5bc;
		--muted: #969ba3;
		--line: #2a3038;
		--console: #07090c;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .8);
	}
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--lime); color: var(--lime-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	z-index: 100; top: 8px; left: 8px;
	padding: 10px 16px;
	background: var(--ink); color: var(--paper);
	border-radius: var(--radius-sm);
}

.mono { font-family: var(--font-mono); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   3. Status bar + header
   ========================================================================== */
.statusbar {
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 12px;
}
.statusbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.statusbar__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--lime);
	box-shadow: 0 0 0 0 rgba(198, 242, 78, .6);
	animation: pulse 2.4s infinite;
	flex: none;
}
.statusbar a { color: var(--lime); text-decoration: none; margin-left: auto; white-space: nowrap; }
.statusbar a:hover { text-decoration: underline; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(198, 242, 78, .55); }
	70% { box-shadow: 0 0 0 8px rgba(198, 242, 78, 0); }
	100% { box-shadow: 0 0 0 0 rgba(198, 242, 78, 0); }
}

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; line-height: 1; }
.brand__name span { color: var(--muted); font-weight: 600; }
.brand .custom-logo { max-height: 40px; width: auto; display: block; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-pill, 999px);
	font-size: 15px; font-weight: 500;
	text-decoration: none;
	color: var(--ink-2);
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-cat > a {
	background: var(--surface-2); color: var(--ink);
}
.main-nav .sub-menu {
	display: none;
	position: absolute; top: 100%; left: 0;
	min-width: 200px; padding: 6px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius-sm); box-shadow: var(--shadow);
	flex-direction: column;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.main-nav + .header-actions { margin-left: 0; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	text-decoration: none;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

.menu-toggle { display: none; }

.search-drawer {
	display: none;
	border-top: 1px solid var(--line);
	padding: 16px 0;
}
.search-drawer.is-open { display: block; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-grid; }
	.main-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: 12px var(--gutter) 20px;
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { border-radius: var(--radius-sm); font-size: 17px; }
	.main-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; background: none; }
	.header-actions { margin-left: auto; }
}

/* ==========================================================================
   4. Buttons, chips, search
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px;
	border-radius: var(--radius-pill, 999px);
	border: 1px solid var(--ink);
	background: var(--ink); color: var(--paper);
	font: 600 15px/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.btn--ghost { background: transparent; color: var(--ink); }

.tool-chip {
	--tool: var(--ink);
	display: inline-flex; align-items: center; gap: 7px;
	padding: 4px 10px 4px 8px;
	border-radius: var(--radius-pill, 999px);
	background: color-mix(in srgb, var(--tool) 12%, transparent);
	color: var(--ink);
	font: 500 12.5px/1.4 var(--font-mono);
	text-decoration: none;
	white-space: nowrap;
	position: relative; z-index: 2;
}
.tool-chip::before {
	content: ""; width: 8px; height: 8px; border-radius: 2px;
	background: var(--tool);
	transform: rotate(45deg);
}
a.tool-chip:hover { background: color-mix(in srgb, var(--tool) 22%, transparent); }

.fix-search { position: relative; }
.fix-search__field {
	display: flex; align-items: center; gap: 12px;
	background: var(--console);
	color: var(--console-ink);
	border-radius: var(--radius);
	padding: 8px 8px 8px 18px;
	box-shadow: var(--shadow);
	border: 1px solid transparent;
}
.fix-search__field:focus-within { border-color: var(--lime); }
.fix-search__prompt { font-family: var(--font-mono); color: var(--lime); font-weight: 500; flex: none; }
.fix-search input[type="search"] {
	flex: 1; min-width: 0;
	background: transparent; border: 0; outline: 0;
	color: var(--console-ink);
	font: 400 16px/1.4 var(--font-mono);
	padding: 12px 0;
}
.fix-search input::placeholder { color: #8b9098; }
.fix-search button {
	flex: none;
	padding: 12px 18px;
	border: 0; border-radius: 10px;
	background: var(--lime); color: var(--lime-ink);
	font: 600 15px/1 var(--font-body);
	cursor: pointer;
}
@media (max-width: 520px) {
	.fix-search button span { display: none; }
	.fix-search button { padding: 12px 14px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__label { font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 4px; }
.chip {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill, 999px);
	font-size: 14px;
	text-decoration: none;
	background: var(--surface);
}
.chip:hover { border-color: var(--ink); }

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.hero::before {
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000 10%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 30%, #000 10%, transparent 70%);
	opacity: .55;
	pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title {
	font-size: clamp(42px, 6.4vw, 82px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: .98;
	margin: 18px 0 20px;
}
.hero__title em {
	font-style: normal;
	background: linear-gradient(transparent 58%, var(--lime) 58%, var(--lime) 92%, transparent 92%);
	padding: 0 .06em;
	color: var(--ink);
}
:root[data-theme="dark"] .hero__title em { color: var(--lime); background: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero__title em { color: var(--lime); background: none; } }
.hero__lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero .fix-search { max-width: 640px; margin-bottom: 18px; }

/* Console demo card */
.console {
	background: var(--console);
	color: var(--console-ink);
	border-radius: var(--radius-lg, 18px);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
	font-family: var(--font-mono);
	font-size: 14px;
	overflow: hidden;
	transform: rotate(1.2deg);
}
.console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.console__bar i:first-child { background: var(--signal); }
.console__bar span { margin-left: auto; color: #8b9098; font-size: 12px; }
.console__body { padding: 20px 20px 22px; min-height: 260px; }
.console__row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 7px 0; }
.console__key { color: #8b9098; }
.console__tool { --tool: var(--lime); color: var(--tool); }
.console__err { color: #ffb199; }
.console__fix { color: var(--lime); }
.console__divider { border-top: 1px dashed rgba(255, 255, 255, .14); margin: 10px 0; }
.console__status { display: inline-flex; align-items: center; gap: 8px; background: rgba(198, 242, 78, .12); color: var(--lime); padding: 4px 10px; border-radius: 6px; }
.console__caret { display: inline-block; width: .6em; height: 1.1em; background: var(--lime); vertical-align: -0.2em; animation: blink 1s steps(1) infinite; margin-left: 2px; }
.console [data-slot] { transition: opacity .3s ease; }
.console.is-swapping [data-slot] { opacity: 0; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; }
	.console { transform: none; }
	.console__body { min-height: 0; }
}

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { font-size: clamp(28px, 3.4vw, 42px); margin: 6px 0 0; }
.section__link { font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }

/* Tool rail */
.tool-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tool-tile {
	--tool: var(--ink);
	position: relative;
	display: flex; flex-direction: column; gap: 18px;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
	text-decoration: none;
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease;
}
.tool-tile::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
	background: var(--tool);
}
.tool-tile:hover { border-color: var(--tool); transform: translateY(-2px); }
.tool-tile__glyph {
	width: 40px; height: 40px; border-radius: 10px;
	display: grid; place-items: center;
	background: color-mix(in srgb, var(--tool) 16%, transparent);
	color: var(--tool);
	font: 800 18px/1 var(--font-display);
}
.tool-tile__name { font: 700 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.tool-tile__count { font: 400 12.5px/1 var(--font-mono); color: var(--muted); margin-top: 4px; display: block; }

/* Fix cards */
.fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; gap: 18px; }
.fix-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .fix-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fix-grid, .fix-grid--2 { grid-template-columns: 1fr; } }

.fix-card {
	--tool: var(--ink);
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.fix-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tool) 50%, var(--line)); }
.fix-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.fix-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fix-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fix-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fix-card__time { font: 400 12.5px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.fix-card__title { font-size: 21px; line-height: 1.22; margin: 0; }
.fix-card__title a { text-decoration: none; }
.fix-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fix-card__symptom { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.fix-card__symptom b { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--signal); margin-right: 6px; }
.fix-card__foot {
	margin-top: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	font: 400 12.5px/1 var(--font-mono);
	color: var(--muted);
}

.fix-card--feature { grid-column: span 2; flex-direction: row; }
.fix-card--feature .fix-card__media { aspect-ratio: auto; flex: 0 0 46%; }
.fix-card--feature .fix-card__body { padding: 28px; }
.fix-card--feature .fix-card__title { font-size: clamp(24px, 2.6vw, 32px); }
.fix-card--feature .fix-card__symptom { font-size: 16.5px; }
.fix-card--feature:not(:has(.fix-card__media)) { background: #12161c; color: #f4f1ea; border-color: #12161c; }
.fix-card--feature:not(:has(.fix-card__media)) .tool-chip { color: #f4f1ea; background: rgba(255,255,255,.1); }
.fix-card--feature:not(:has(.fix-card__media)) .fix-card__symptom { color: color-mix(in srgb, #f4f1ea 78%, transparent); }
.fix-card--feature:not(:has(.fix-card__media)) .fix-card__foot,
.fix-card--feature:not(:has(.fix-card__media)) .fix-card__time { color: color-mix(in srgb, #f4f1ea 60%, transparent); border-color: rgba(255,255,255,.18); }
@media (max-width: 1000px) { .fix-card--feature { grid-column: 1 / -1; } }
@media (max-width: 640px) { .fix-card--feature { flex-direction: column; } .fix-card--feature .fix-card__media { aspect-ratio: 16 / 9; } }

.difficulty { display: inline-flex; align-items: center; gap: 6px; }
.difficulty i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; }
.difficulty i.on { background: currentColor; opacity: 1; }
.verified { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); }
.verified svg { width: 13px; height: 13px; }

/* Method strip */
.method { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg, 22px); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.method .eyebrow { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.method__title { font-size: clamp(28px, 3.6vw, 44px); max-width: 16em; margin: 10px 0 34px; }
.method__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.method__step { border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; }
.method__step::before {
	counter-increment: step;
	content: "0" counter(step);
	font: 500 13px/1 var(--font-mono); color: var(--lime);
	display: block; margin-bottom: 14px;
}
.method__step h3 { font-size: 20px; margin-bottom: 6px; }
.method__step p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--paper) 72%, transparent); }
:root[data-theme="dark"] .method { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .method .eyebrow, :root[data-theme="dark"] .method__step p { color: var(--muted); }
:root[data-theme="dark"] .method__step { border-color: var(--line); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .method { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
	:root:not([data-theme="light"]) .method .eyebrow, :root:not([data-theme="light"]) .method__step p { color: var(--muted); }
	:root:not([data-theme="light"]) .method__step { border-color: var(--line); }
}
@media (max-width: 900px) { .method__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method__steps { grid-template-columns: 1fr; } }

/* Newsletter */
.signup {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
	padding: clamp(28px, 4vw, 44px);
	border-radius: var(--radius-lg, 22px);
	background: var(--lime);
	color: var(--lime-ink);
}
.signup h2 { font-size: clamp(26px, 3vw, 38px); margin: 6px 0 8px; }
.signup p { margin: 0; }
.signup .eyebrow { color: var(--lime-ink); opacity: .7; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] {
	flex: 1 1 220px; min-width: 0;
	padding: 14px 16px;
	border-radius: var(--radius-pill, 999px);
	border: 1.5px solid var(--lime-ink);
	background: rgba(255,255,255,.55);
	font: 400 16px/1 var(--font-body);
	color: var(--lime-ink);
}
.signup .btn { background: var(--lime-ink); border-color: var(--lime-ink); color: var(--lime); }
.signup__actions { justify-self: end; }
@media (max-width: 800px) { .signup { grid-template-columns: 1fr; } .signup__actions { justify-self: start; } }

/* Empty state */
.empty {
	padding: 40px;
	border: 1.5px dashed var(--line);
	border-radius: var(--radius);
	text-align: center;
	color: var(--muted);
}
.empty h3 { color: var(--ink); }

/* ==========================================================================
   7. Archive / search headers
   ========================================================================== */
.page-head { padding: clamp(36px, 6vw, 72px) 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-head__title { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; margin: 12px 0 10px; }
.page-head__desc { color: var(--ink-2); max-width: 40em; font-size: 18px; }
.page-head__desc p { margin: 0; }
.page-head .fix-search { max-width: 640px; margin-top: 20px; }

.pagination { margin: 48px 0 0; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px;
	display: inline-grid; place-items: center;
	border-radius: var(--radius-pill, 999px); border: 1px solid var(--line);
	text-decoration: none; font: 500 14px/1 var(--font-mono);
	background: var(--surface);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   8. Single article
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--signal); z-index: 99; }

.article-head { padding: clamp(32px, 5vw, 60px) 0 28px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 400 13px/1.4 var(--font-mono); color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.article-head__title { font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.035em; line-height: 1.04; max-width: 20em; margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.article-meta img { border-radius: 50%; width: 28px; height: 28px; }
.article-meta__author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }

/* The ticket */
.ticket {
	--tool: var(--ink);
	display: grid; grid-template-columns: 1.4fr 1fr;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg, 18px);
	background: var(--surface);
	overflow: hidden;
	margin: 8px 0 40px;
	box-shadow: var(--shadow);
}
.ticket__main { padding: 26px 28px; border-right: 1px dashed var(--line); position: relative; }
.ticket__label { font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.ticket__label--err { color: var(--signal); }
.ticket__label--ok { color: var(--ok); }
.ticket__symptom { font-family: var(--font-mono); font-size: 15px; background: var(--surface-2); border-left: 3px solid var(--signal); padding: 10px 14px; border-radius: 0 8px 8px 0; margin: 0 0 22px; }
.ticket__quick { font-size: 17px; margin: 0; }
.ticket__quick p { margin: 0 0 .6em; }
.ticket__quick p:last-child { margin: 0; }
.ticket__side { padding: 22px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; background: color-mix(in srgb, var(--tool) 5%, var(--surface)); }
.ticket__side dt { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.ticket__side dd { margin: 0; font-weight: 600; font-size: 15px; }
.ticket__side .wide { grid-column: 1 / -1; }
.ticket__jump { margin-top: 18px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; border-bottom: 2px solid var(--lime); }
@media (max-width: 800px) {
	.ticket { grid-template-columns: 1fr; }
	.ticket__main { border-right: 0; border-bottom: 1px dashed var(--line); padding: 22px; }
	.ticket__side { padding: 20px 22px; }
}

.article-hero-img { margin: 0 0 40px; border-radius: var(--radius-lg, 18px); overflow: hidden; }
.article-hero-img img { display: block; width: 100%; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.article-layout--no-toc { grid-template-columns: minmax(0, 1fr); }
.article-layout--no-toc .entry { margin: 0 auto; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.toc { position: sticky; top: 96px; font-size: 14px; }
.admin-bar .toc { top: 128px; }
.toc__title { font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a {
	display: block;
	padding: 6px 0 6px 14px;
	margin-left: -1px;
	border-left: 2px solid transparent;
	text-decoration: none;
	color: var(--muted);
	line-height: 1.4;
}
.toc li.lvl-3 a { padding-left: 26px; font-size: 13.5px; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left-color: var(--signal); font-weight: 600; }
@media (max-width: 1000px) {
	.toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
	.toc details > summary { cursor: pointer; list-style: none; }
	.toc details > summary::-webkit-details-marker { display: none; }
	.toc details > summary .toc__title { margin: 0; display: flex; justify-content: space-between; }
	.toc details[open] > summary .toc__title { margin-bottom: 12px; }
}

/* Entry content */
.entry { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.entry > * { margin-top: 0; margin-bottom: 1.25em; }
.entry h2, .entry h3, .entry h4 { color: var(--ink); }
.entry h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 2em; padding-top: .2em; }
.entry h3 { font-size: 22px; margin-top: 1.8em; }
.entry h4 { font-size: 18px; margin-top: 1.6em; }
.entry h2[data-n]::before {
	content: attr(data-n);
	display: block;
	font: 500 13px/1 var(--font-mono);
	color: var(--signal);
	letter-spacing: .06em;
	margin-bottom: 10px;
}
.entry a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.entry strong { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .45em; }
.entry li::marker { color: var(--muted); }
.entry ol { counter-reset: none; }
.entry ol > li::marker { font-family: var(--font-mono); font-size: .85em; color: var(--signal); }
.entry img { border-radius: 12px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .entry .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.entry hr, .entry .wp-block-separator { border: 0; border-top: 1px dashed var(--line); margin: 2.5em 0; }

.entry blockquote, .entry .wp-block-quote {
	margin-left: 0; margin-right: 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--lime);
	font-family: var(--font-display);
	font-size: 22px; line-height: 1.45;
	color: var(--ink);
}
.entry blockquote cite { display: block; font: 400 14px/1.4 var(--font-mono); color: var(--muted); margin-top: 10px; font-style: normal; }

.entry code {
	font-family: var(--font-mono);
	font-size: .86em;
	background: var(--surface-2);
	padding: .14em .4em;
	border-radius: 5px;
	color: var(--ink);
}
.entry pre, .entry .wp-block-code, .entry .wp-block-preformatted {
	position: relative;
	background: var(--console);
	color: var(--console-ink);
	border-radius: 12px;
	padding: 20px 22px;
	overflow-x: auto;
	font: 400 14.5px/1.65 var(--font-mono);
	border: 0;
}
.entry pre code, .entry .wp-block-code code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre; }
.copy-btn {
	position: absolute; top: 10px; right: 10px;
	padding: 6px 10px;
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 6px;
	background: rgba(255,255,255,.06);
	color: var(--console-ink);
	font: 500 12px/1 var(--font-mono);
	cursor: pointer;
}
.copy-btn:hover { border-color: var(--lime); color: var(--lime); }
.copy-btn.is-done { color: var(--lime); border-color: var(--lime); }

.entry table, .entry .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry .wp-block-table { overflow-x: auto; }
.entry th, .entry td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry thead th { font: 500 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 2px solid var(--ink); }

.entry .wp-block-button__link, .wp-block-button__link {
	border-radius: var(--radius-pill, 999px);
	background: var(--ink); color: var(--paper);
	padding: 13px 22px;
	font-weight: 600; font-size: 15px;
	text-decoration: none;
}

/* Callout block styles (Paragraph → Styles in the editor) */
.entry .is-style-fw-tip, .entry .is-style-fw-warning, .entry .is-style-fw-error, .entry .is-style-fw-fixed,
.is-style-fw-tip, .is-style-fw-warning, .is-style-fw-error, .is-style-fw-fixed {
	position: relative;
	padding: 16px 18px 16px 52px;
	border-radius: 12px;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink);
}
.is-style-fw-tip::before, .is-style-fw-warning::before, .is-style-fw-error::before, .is-style-fw-fixed::before {
	position: absolute; left: 16px; top: 15px;
	width: 24px; height: 24px; border-radius: 6px;
	display: grid; place-items: center;
	font: 700 14px/1 var(--font-mono);
}
.is-style-fw-tip { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
.is-style-fw-tip::before { content: "i"; background: var(--lime); color: var(--lime-ink); }
.is-style-fw-warning { background: color-mix(in srgb, #ffb020 18%, var(--surface)); }
.is-style-fw-warning::before { content: "!"; background: #ffb020; color: #2a1a00; }
.is-style-fw-error { background: color-mix(in srgb, var(--signal) 13%, var(--surface)); font-family: var(--font-mono); font-size: 15px; }
.is-style-fw-error::before { content: "×"; background: var(--signal); color: #fff; }
.is-style-fw-fixed { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.is-style-fw-fixed::before { content: "✓"; background: var(--ok); color: #fff; }

/* Steps list style (List → Styles → Fix steps) */
.entry ol.is-style-fw-steps, ol.is-style-fw-steps { list-style: none; padding: 0; counter-reset: fwstep; }
ol.is-style-fw-steps > li {
	counter-increment: fwstep;
	position: relative;
	padding: 14px 16px 14px 60px;
	margin-bottom: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
}
ol.is-style-fw-steps > li::before {
	content: counter(fwstep);
	position: absolute; left: 14px; top: 13px;
	width: 30px; height: 30px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ink); color: var(--paper);
	font: 600 14px/1 var(--font-mono);
}

.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; }

/* Feedback */
.feedback {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 44px 0 0;
	padding: 20px 22px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: var(--surface);
}
.feedback__q { font: 700 19px/1.3 var(--font-display); margin: 0; color: var(--ink); }
.feedback__btns { display: flex; gap: 8px; }
.feedback__btns button {
	padding: 10px 18px; border-radius: var(--radius-pill, 999px);
	border: 1px solid var(--line); background: var(--paper);
	font: 600 15px/1 var(--font-body); color: var(--ink);
	cursor: pointer;
}
.feedback__btns button:hover { border-color: var(--ink); }
.feedback__thanks { display: none; margin: 0; color: var(--ink-2); font-size: 16px; }
.feedback.is-answered .feedback__btns, .feedback.is-answered .feedback__q { display: none; }
.feedback.is-answered .feedback__thanks { display: block; }

/* Author box */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.author-box img { border-radius: 50%; flex: none; }
.author-box h3 { font-size: 18px; margin: 0 0 4px; }
.author-box p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.post-nav a:hover { border-color: var(--ink); }
.post-nav span { display: block; font: 500 11.5px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.post-nav strong { font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

/* Comments */
.comments { margin-top: 56px; max-width: 720px; }
.comments__title { font-size: 26px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 24px; border-left: 1px solid var(--line); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font: 400 12.5px/1 var(--font-mono); color: var(--muted); margin: 6px 0 10px; }
.comment-metadata a { text-decoration: none; }
.reply a { font-size: 14px; font-weight: 600; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink);
	font: 400 16px/1.5 var(--font-body);
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit { padding: 12px 22px; border-radius: var(--radius-pill, 999px); border: 0; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--font-body); cursor: pointer; }

/* Static pages */
.page-entry { margin: 0 auto; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer { margin-top: clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--ink-2); max-width: 28em; margin: 14px 0 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font: 400 13px/1.5 var(--font-mono); }
.footer-bottom p { margin: 0; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* 404 */
.notfound { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.notfound__code { font: 800 clamp(80px, 16vw, 180px)/1 var(--font-display); letter-spacing: -0.06em; margin: 0; }
.notfound__code span { color: var(--signal); }
.notfound .fix-search { max-width: 560px; margin: 28px auto 0; text-align: left; }

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

/* Footer widgets (block widgets render their own headings) */
.site-footer .widget + .widget { margin-top: 24px; }
.site-footer .widget h2, .site-footer .widget .wp-block-heading { font: 500 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 6px 0 14px; }
.site-footer .widget ul { list-style: none; padding: 0; margin: 0; }

/* Table of contents toggle: only collapsible on small screens */
.toc summary { list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc__title span { display: none; }
@media (min-width: 1001px) { .toc summary { pointer-events: none; } }
@media (max-width: 1000px) { .toc__title span { display: inline; } }

@media (max-width: 640px) {
	.statusbar .wrap > span:not(.statusbar__dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

/* Dark-mode-stable surfaces */
.statusbar { background: #12161c; color: #ece8df; }
:root[data-theme="dark"] .statusbar { background: #07090c; border-bottom: 1px solid var(--line); }
.brand__mark rect { fill: #12161c; }
:root[data-theme="dark"] .brand__mark rect { fill: #262c35; }
:root[data-theme="dark"] .fix-card--feature:not(:has(.fix-card__media)) { background: var(--console); border-color: var(--line); }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .statusbar { background: #07090c; border-bottom: 1px solid var(--line); }
	:root:not([data-theme="light"]) .brand__mark rect { fill: #262c35; }
	:root:not([data-theme="light"]) .fix-card--feature:not(:has(.fix-card__media)) { background: var(--console); border-color: var(--line); }
}

/* ==========================================================================
   10. Layout options (Customizer + "Layout & images" box)
   ========================================================================== */
html, body { overflow-x: clip; }

/* Hero variants */
.hero--none .wrap { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.hero--media-left .hero__text { order: 2; }
.hero__image { margin: 0; }
.hero__image img { display: block; width: 100%; height: auto; }
.hero__image--plain img { border-radius: var(--radius-lg, 22px); }
.hero__image--tilted img { border-radius: var(--radius-lg, 22px); transform: rotate(1.5deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.hero__image--framed { background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: var(--radius-lg, 22px); box-shadow: var(--shadow); }
.hero__image--framed img { border-radius: calc(var(--radius-lg, 22px) - 6px); }
.hero__image--circle img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--lime); }
@media (max-width: 900px) { .hero--media-left .hero__text { order: 0; } }

/* Grid columns */
.fix-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fix-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.fix-grid--cols-4 .fix-card__title { font-size: 19px; }
@media (max-width: 1100px) { .fix-grid--cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .fix-grid--cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fix-grid--cols-2, .fix-grid--cols-4 { grid-template-columns: 1fr; } }
.method__steps { grid-template-columns: repeat(var(--steps, 4), 1fr); }
@media (max-width: 900px) { .method__steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method__steps { grid-template-columns: 1fr; } }

/* Featured image: behind the title */
.cover-head {
	position: relative;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: clamp(90px, 14vw, 180px) 0 clamp(36px, 5vw, 64px);
	margin-bottom: 32px;
}
.cover-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 12, 16, .9) 10%, rgba(10, 12, 16, .35)); }
.cover-head .wrap { position: relative; }
.cover-head__inner { max-width: 900px; }
.cover-head .article-head__title, .cover-head .article-meta__author { color: #fff; }
.cover-head .breadcrumbs, .cover-head .article-meta, .cover-head .article-head__lede { color: rgba(255, 255, 255, .8); }
.cover-head .tool-chip { color: #fff; background: rgba(255, 255, 255, .14); }
.cover-head .verified { color: #8be0ab; }
.page-article .cover-head__inner { margin: 0 auto; text-align: center; }

/* Featured image: beside the title */
.article-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.article-head__img { margin: 0; }
.article-head__img img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg, 18px); box-shadow: var(--shadow); }
@media (max-width: 860px) { .article-head--split { grid-template-columns: 1fr; } }

.article-head__lede { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 36em; margin: 0; }

/* Pages */
.page-article .article-head:not(.article-head--split) { max-width: 720px; margin: 0 auto; }
.fw-width-wide .page-article .article-head:not(.article-head--split) { max-width: 1000px; }
.fw-width-full .page-article .article-head:not(.article-head--split) { max-width: none; }
.page-entry { max-width: 720px; margin: 0 auto; }
.page-entry--wide { max-width: 1000px; }
.page-entry--full { max-width: none; }
.page-entry--untitled { padding-top: clamp(28px, 4vw, 48px); }
.page-hero-img { max-width: 1100px; margin-left: auto; margin-right: auto; }
.page-comments { max-width: 720px; margin: 0 auto; }
.home-content { padding-top: 0; }

/* Width modifiers for posts */
.single.fw-width-wide .entry { max-width: 920px; }
.single.fw-width-full .entry { max-width: none; }
.entry .wp-block-column > :first-child { margin-top: 0; }

/* Wide and full-width blocks break out of the reading column */
.page-entry > .alignwide,
.article-layout--no-toc .entry > .alignwide {
	max-width: none;
	width: auto;
	margin-left: calc(50% - min(550px, 50vw - var(--gutter)));
	margin-right: calc(50% - min(550px, 50vw - var(--gutter)));
}
.page-entry > .alignfull,
.article-layout--no-toc .entry > .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.article-layout:not(.article-layout--no-toc) .entry > .alignwide,
.article-layout:not(.article-layout--no-toc) .entry > .alignfull { margin-left: 0; margin-right: 0; width: auto; max-width: 100%; }
.entry > .alignfull.wp-block-cover, .entry > .alignfull.wp-block-group { border-radius: 0; }

/* ==========================================================================
   12. Contact form
   ========================================================================== */
.contact-form { display: grid; gap: 4px; }
.contact-form p { margin: 0 0 16px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form label, .contact-form legend { display: block; font: 600 14px/1.4 var(--font-body); color: var(--ink); margin-bottom: 6px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
	width: 100%; padding: 13px 15px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink);
	font: 400 16px/1.5 var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 0; border-color: var(--ink); }
.contact-form__topics { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form__topics legend { width: 100%; }
.contact-form__topics label { display: inline-flex; margin: 0; font-weight: 500; cursor: pointer; }
.contact-form__topics input { position: absolute; opacity: 0; }
.contact-form__topics span { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill, 999px); background: var(--surface); font-size: 15px; }
.contact-form__topics input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact-form__topics input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.contact-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form__foot small { color: var(--muted); font-size: 13.5px; }
.contact-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin-bottom: 20px !important; }

/* ==========================================================================
   13. Ads
   ========================================================================== */
.fw-ad { margin: 36px auto; text-align: center; clear: both; max-width: 100%; }
.fw-ad__label { display: block; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 8px; }
.fw-ad__unit { min-height: var(--ad-space, 0px); overflow: hidden; }
.fw-ad__unit ins { display: block; }
.fw-ad--after_summary { margin-top: -12px; margin-bottom: 40px; }
.entry .fw-ad { margin: 2.2em 0; }
.fix-grid__ad { grid-column: 1 / -1; }
.fix-grid__ad .fw-ad { margin: 6px 0; }
.fw-ad--preview .fw-ad__unit {
	display: grid; place-items: center; align-content: center;
	padding: 18px; border: 2px dashed var(--signal); border-radius: var(--radius);
	background: color-mix(in srgb, var(--signal) 6%, transparent);
	color: var(--ink-2); font-size: 14px; line-height: 1.5;
	min-height: max(var(--ad-space, 0px), 110px);
}
.fw-ad--preview strong { color: var(--ink); }

/* ==========================================================================
   14. Interactive hero network
   ========================================================================== */
.hero[data-fx="network"] { isolation: isolate; }
.hero__fx {
	position: absolute; inset: 0; z-index: 0;
	pointer-events: none;
	opacity: 0; transition: opacity .8s ease;
	-webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 38%, #000 58%);
	mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 38%, #000 58%);
}
.hero--media-left .hero__fx {
	-webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 38%, #000 58%);
	mask-image: linear-gradient(270deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.35) 38%, #000 58%);
}
.hero.fx-ready .hero__fx { opacity: 1; }
.hero .wrap { z-index: 1; }
.hero[data-fx="network"] .console { position: relative; z-index: 2; }
.console__status.is-pending { background: rgba(255, 95, 46, .14); color: #ffb199; }
.hero__hint {
	position: absolute; z-index: 1; right: var(--gutter); bottom: 14px; margin: 0;
	font: 400 11.5px/1 var(--font-mono); letter-spacing: .04em; color: var(--muted);
	transition: opacity .6s ease;
}
.hero.fx-touched .hero__hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 900px) {
	.hero__fx, .hero--media-left .hero__fx {
		-webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.3) 45%, #000 70%);
		mask-image: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.3) 45%, #000 70%);
	}
}
@media (prefers-reduced-motion: reduce) { .hero__hint { display: none; } }
