/*
Theme Name: App How To Use It
Theme URI: https://app-how-to-use-it.com/
Author: App How To Use It
Description: Guides and extension pages for app-how-to-use-it.com. Light and dark theme, extension directory with store numbers fetched daily, reserved ad spaces.
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: apphowto
*/

/* Layout: one 1200px column. Pages switch to one column through container queries on .aht. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #0D1626;
  --ink-2: #3A4658;
  --muted: #586579;
  --line: #DCE2EA;
  --accent: #1D5FD8;
  --accent-ink: #1D5FD8;
  --accent-soft: #EBF1FC;
  --navy: #0F1B2E;
  --navy-2: #16243B;
  --navy-ink: #B9C5D7;
  --star: #E8A317;
  --ok: #0E7A4D;
  --warn: #A1520A;
  --warn-soft: #FDF2E3;
  --c-ext: #1D5FD8;
  --c-vpn: #0E7C6E;
  --c-dl: #C2570C;
  --c-fix: #B8324A;
  --c-dev: #6D44C9;
  --f-display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0A111D;
  --surface: #111B2B;
  --ink: #E7EDF6;
  --ink-2: #BAC5D4;
  --muted: #93A0B4;
  --line: #24334C;
  --accent-ink: #8FB4F5;
  --accent-soft: #16294A;
  --navy: #070D18;
  --navy-2: #0F192A;
  --ok: #4CC98A;
  --warn: #F0AE57;
  --warn-soft: #2A1F10;
  color-scheme: dark;
}
/* Light is the default for everyone; dark only after the visitor picks it with the header button (2026-11-29). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
/* Plain block on purpose: as a flex column, the auto side margins of .wrap made <main> shrink-to-fit its content. */
.aht { container-type: inline-size; }
.aht > main { min-height: 55vh; }
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 14px; background: var(--surface); color: var(--ink); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-fill { fill: currentColor; stroke: none; }
.eyebrow { font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .92em; }

/* ---------- Header ---------- */
.hdr { background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
a.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 18px/1 var(--f-display); letter-spacing: -0.025em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #FFFFFF; display: grid; place-items: center; flex: none; }
.logo-mark .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.logo img { max-height: 34px; width: auto; }
.nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
/* When the menu is wider than the space, its right edge fades so the hidden items read as "scroll for more". */
.nav.is-overflow { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1px; }
.nav a { display: block; color: var(--ink-2); text-decoration: none; font: 500 14px/1 var(--f-body); padding: 10px 8px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav .current-menu-item > a, .nav .current-menu-parent > a, .nav .current-post-ancestor > a, .nav .current-category-ancestor > a, .nav .is-on > a { color: var(--ink); background: var(--bg); }
.nav .nav-ext > a { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; margin-right: 4px; }
.nav-ext .ico { width: 16px; height: 16px; }
.hdr-tools { display: flex; gap: 8px; margin-left: auto; flex: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex: none; padding: 0; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-btn .i-moon { display: none; }
html[data-theme="dark"] .theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-moon { display: block; }
.search-panel { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 14px; }
.search-panel .omni { max-width: 720px; margin-inline: auto; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 var(--f-body); text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
a.btn-primary, .btn-primary { background: var(--accent); color: #FFFFFF; }
a.btn-primary:hover { background: #164CB0; }
a.btn-ghost, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
a.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip, .chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px/1 var(--f-body); padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; }
a.chip:hover, .chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cat { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--accent)); flex: none; }
a.cat:hover { color: var(--accent-ink); }
.c-ext { --dot: var(--c-ext); }
.c-vpn { --dot: var(--c-vpn); }
.c-dl { --dot: var(--c-dl); }
.c-fix { --dot: var(--c-fix); }
.c-dev { --dot: var(--c-dev); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta .ico { width: 15px; height: 15px; }

/* ---------- Search box (address bar style) ---------- */
.omni { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 580px; box-shadow: 0 1px 0 rgba(13, 22, 38, .04), 0 12px 28px -16px rgba(13, 22, 38, .22); }
.omni:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.omni .ico { color: var(--muted); }
.omni input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/1.2 var(--f-body); padding: 10px 0; outline: none; }
.omni input::placeholder { color: var(--muted); }
.omni input::-webkit-search-cancel-button { display: none; }
.omni button { border: 0; border-radius: 999px; background: var(--accent); color: #FFFFFF; font: 600 14.5px/1 var(--f-body); padding: 0 20px; min-height: 44px; }

/* ---------- Home hero ---------- */
.hero { padding-block: 72px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
/* Home hero: one centred column (headline, text, search, common fixes). */
.hero-center { max-width: 1000px; text-align: center; }
.hero-center .hero-copy { justify-items: center; }
.hero-center .lead { max-width: 62ch; }
.hero-center .omni { width: 100%; max-width: 680px; text-align: left; }
.hero-center .hint { justify-content: center; }
.hero-center .hint .eyebrow { flex-basis: 100%; margin: 0 0 2px; }
.hero-copy { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(40px, 6.2cqi, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hint .eyebrow { margin-right: 4px; }

a.feat { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: inherit; }
.feat img, .feat .ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.feat-body { padding: 20px 22px 22px; display: grid; gap: 10px; }
.feat-title { font: 800 23px/1.18 var(--f-display); letter-spacing: -0.025em; color: var(--ink); }
a.feat:hover .feat-title { color: var(--accent-ink); }
.feat-body p { color: var(--ink-2); font-size: 15px; }
.tag-new { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font: 600 11.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }
.tag-new::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Sections and post cards ---------- */
.sec { padding-block: 56px; }
.sec:not(.band) + .sec:not(.band) { padding-top: 8px; }
.hero + .sec { padding-top: 16px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.sec-head p { color: var(--muted); margin-top: 6px; font-size: 15px; max-width: 70ch; }
a.more { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--f-body); text-decoration: none; color: var(--accent-ink); }
.more .ico { width: 16px; height: 16px; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
a.card { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.card img, .card .ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-m); border: 1px solid var(--line); }
.card-title { font: 700 19px/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
a.card:hover .card-title { color: var(--accent-ink); }
.card p { color: var(--ink-2); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Placeholder cover for posts without a featured image: category colour + icon. */
.ph { position: relative; display: grid; place-items: center; background: var(--dot, var(--accent)); color: #FFFFFF; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .2) 1.1px, transparent 1.5px); background-size: 14px 14px; }
.ph .ico { position: relative; width: 22%; height: auto; aspect-ratio: 1; stroke-width: 1.4; opacity: .95; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 14.5px/1 var(--f-body); }
.pager .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager .dots { border: 0; background: none; }

/* ---------- Extensions band (home) ---------- */
.band { background: var(--navy); color: var(--navy-ink); }
.band .sec-head h2 { color: #FFFFFF; }
.band .sec-head p { color: var(--navy-ink); }
.band a.more { color: #8CC4FF; }
a.xt { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-content: start; padding: 18px; border-radius: var(--r-m); background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; color: inherit; }
a.xt:hover { border-color: rgba(140, 196, 255, .55); }
.xt img, .xt .xi { width: 52px; height: 52px; border-radius: 12px; }
/* Store icons are drawn for light backgrounds: give them a white tile on the navy band. */
.xt img { background: #FFFFFF; padding: 5px; }
.xt-name { font: 700 16px/1.25 var(--f-display); color: #FFFFFF; letter-spacing: -0.015em; }
.xt p { font-size: 14px; line-height: 1.5; color: var(--navy-ink); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xt-br { font: 500 11.5px/1.3 var(--f-mono); color: #8FA1BA; letter-spacing: .03em; margin-top: 10px; text-transform: uppercase; }
.xi { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }

/* ---------- Topics: one row per category ---------- */
.topics { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.topic { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.topic:last-child { border-bottom: 0; }
.topic-head { display: flex; align-items: center; gap: 14px; }
.topic-icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--dot, var(--accent)) 13%, var(--surface)); color: var(--dot, var(--accent)); flex: none; }
.topic h3 { font-size: 18px; font-weight: 700; }
.topic h3 a { color: var(--ink); text-decoration: none; }
.topic h3 a:hover { color: var(--accent-ink); }
.topic-head small { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.topic ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.topic li a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.45; }
.topic li a:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Footer ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.ftr h2 { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr ul a { color: var(--ink-2); text-decoration: none; }
.ftr ul a:hover { color: var(--accent-ink); }
.ftr-about { display: grid; gap: 14px; color: var(--ink-2); max-width: 40ch; align-content: start; }
.ftr-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }

/* ---------- Page headers (archive, search, extensions) ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 13.5px/1.3 var(--f-body); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs .ico { width: 14px; height: 14px; }
.page-hero { padding-block: 40px 28px; display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(32px, 4.3cqi, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.page-hero .lead { max-width: 64ch; }
.arch-head { display: flex; align-items: center; gap: 16px; }
.arch-head .topic-icon { width: 52px; height: 52px; border-radius: 14px; }
.arch-head .topic-icon .ico { width: 24px; height: 24px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px; border-block: 1px solid var(--line); }
.empty { padding: 40px 0; color: var(--ink-2); display: grid; gap: 18px; justify-items: start; }

/* ---------- Single post ---------- */
.post-head { padding-block: 28px 32px; display: grid; gap: 18px; max-width: 860px; }
.post-head h1 { font-size: clamp(32px, 4.3cqi, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; }
.dek { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: grid; place-items: center; font: 700 15px/1 var(--f-display); flex: none; }
html[data-theme="dark"] .avatar { background: var(--accent); }
.byline-who { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.byline-who strong { display: block; font-weight: 600; color: var(--ink); }
.byline-who span { color: var(--muted); font-size: 13px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--f-mono); color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 28%, var(--surface)); padding: 8px 11px; border-radius: 999px; }
.stamp .ico { width: 15px; height: 15px; }
.post-cover { margin: 0; }
.post-cover img, .post-cover .ph { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r-l); }
.post-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: 40px 24px; }
.post-main { flex: 999 1 560px; min-width: 0; max-width: 740px; }
.post-rail { flex: 1 1 280px; min-width: 0; display: grid; gap: 20px; position: sticky; top: 20px; }
.toc-inline { display: none; }

.prose { font-size: 18px; line-height: 1.72; color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; margin-top: 1.9em; }
.prose h3 { font-size: 21px; line-height: 1.3; font-weight: 700; margin-top: 1.6em; }
.prose h4 { font-size: 18px; margin-top: 1.4em; }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose figure { margin: 1.7em 0 0; }
.prose figure img, .prose > p img { border-radius: var(--r-m); }
.prose img { max-width: 100%; height: auto; }
.prose figcaption, .prose .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: left; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose strong { font-weight: 650; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.prose pre, .prose code { font-family: var(--f-mono); }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose :not(pre) > code { font-size: .86em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .15em .4em; }
.prose .wp-block-button__link, .prose .wp-element-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; }
.prose .wp-block-embed iframe, .prose iframe { max-width: 100%; }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.prose .aligncenter { margin-inline: auto; }
.path { font: 500 .84em/1 var(--f-mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .22em .45em; color: var(--ink); white-space: nowrap; }
kbd { font: 600 .78em/1 var(--f-mono); padding: .26em .5em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--ink); white-space: nowrap; }

/* Ordered lists in articles read as steps. */
.prose ol:not([class*="is-style"]):not(.no-steps), .steps { list-style: none; padding-left: 0; counter-reset: s; display: grid; gap: 12px; }
.prose ol:not([class*="is-style"]):not(.no-steps) > li, .steps > li { position: relative; padding-left: 46px; counter-increment: s; }
.prose ol:not([class*="is-style"]):not(.no-steps) > li + li, .steps > li + li { margin-top: 0; }
.prose ol:not([class*="is-style"]):not(.no-steps) > li::before, .steps > li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 14px/30px var(--f-display); text-align: center; }

.prose .wp-block-table, .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.prose .wp-block-table table, .tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; min-width: 520px; }
/* A bare table (older posts) scrolls inside itself; no min-width on the scrolling box. */
.prose > table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.prose th, .tbl th { text-align: left; font: 600 11.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.prose td, .tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td, .tbl tr:last-child td { border-bottom: 0; }
.prose td:first-child, .tbl td:first-child { font-weight: 600; }
.prose .wp-block-table thead, .prose .wp-block-table tfoot { border: 0; }
/* Core block CSS draws a dark 1px box around every cell; keep only the row lines. */
.prose .wp-block-table td, .prose .wp-block-table th { border: 0; border-bottom: 1px solid var(--line); }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }

.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: var(--r-m); background: var(--accent-soft); font-size: 16px; line-height: 1.6; color: var(--ink); }
.note .ico { color: var(--accent-ink); margin-top: 3px; }
.note-warn { background: var(--warn-soft); }
.note-warn .ico { color: var(--warn); }

.xbox { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); font-size: 15px; line-height: 1.5; margin-top: 40px; }
.xbox img, .xbox .xi { width: 64px; height: 64px; border-radius: 14px; }
.xbox-name { font: 700 17px/1.25 var(--f-display); color: var(--ink); letter-spacing: -0.015em; }
.xbox-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.made-by { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 8px; border-radius: 6px; margin-bottom: 6px; }

.toc { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-l); padding: 18px 20px 14px; }
.toc ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 1px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 7px 0; color: var(--ink-2); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.toc a:hover, .toc a.is-on { color: var(--accent-ink); }
.toc a::before { content: counter(t, decimal-leading-zero); font: 500 12px/1.9 var(--f-mono); color: var(--muted); }
.toc-inline summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "+"; font: 500 18px/1 var(--f-mono); color: var(--muted); }
.toc-inline[open] summary::after { content: "–"; }

/* Reserved ad spaces: fixed minimum height so a late ad does not push the text. */
.ad-slot { display: grid; gap: 6px; }
.ad-slot > span { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-slot .ad-box { min-height: 280px; border-radius: var(--r-m); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); overflow: hidden; }
.ad-slot-article { margin-block: 2em; }
.ad-slot-article .ad-box { min-height: 280px; }
.ad-slot ins { display: block; }

.author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); max-width: 740px; }
.author .avatar { width: 64px; height: 64px; font-size: 22px; }
.author h2 { font-size: 18px; }
.author .eyebrow { display: block; margin-bottom: 4px; }
.author p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* ---------- Extensions ---------- */
a.xcard { display: grid; gap: 14px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; text-decoration: none; color: inherit; }
a.xcard:hover { border-color: var(--accent); }
.xcard img, .xcard .xi { width: 60px; height: 60px; border-radius: 14px; }
.xcard-name { font: 700 18px/1.25 var(--f-display); letter-spacing: -0.02em; color: var(--ink); }
.xcard p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.xcard-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 13px/1.3 var(--f-body); color: var(--muted); }
.xcard-stats b { color: var(--ink); font-weight: 600; }
.br-row { display: flex; flex-wrap: wrap; gap: 6px; }
.br { font: 500 11.5px/1 var(--f-mono); padding: 6px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.xcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.xcard-foot strong { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.xcard-foot .ico { width: 15px; height: 15px; }

.xhero { background: var(--surface); border-bottom: 1px solid var(--line); }
.xhero-in { padding-block: 22px 40px; display: grid; gap: 26px; }
.xhero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.xid { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 26px; align-items: start; }
.xid > img, .xid > .xi { width: 112px; height: 112px; border-radius: 24px; box-shadow: 0 10px 30px -14px rgba(13, 22, 38, .35); }
.xid h1 { font-size: clamp(30px, 3.6cqi, 42px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.xid .dek { margin-top: 12px; font-size: 18px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.rating strong { font: 800 18px/1 var(--f-display); color: var(--ink); }
.stars { position: relative; display: inline-block; width: 96px; height: 18px; flex: none; }
.stars-row { display: flex; gap: 1.5px; position: absolute; inset: 0; overflow: hidden; color: var(--line); }
.stars-row.on { color: var(--star); }
.stars-row .ico { width: 18px; height: 18px; }
.install { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 10px; }
.install h2 { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
a.store-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 50px; padding: 8px 16px; border-radius: 11px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
a.store-btn:hover { border-color: var(--accent); }
.store-btn b { font-weight: 600; font-size: 15px; display: block; }
.store-btn small { display: block; font-size: 12.5px; color: var(--muted); }
a.store-btn.is-main { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
a.store-btn.is-main:hover { background: #164CB0; }
.store-btn.is-main small { color: rgba(255, 255, 255, .85); }
.install-foot { font-size: 13px; color: var(--muted); text-align: center; padding-top: 4px; }

.specs { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; margin: 0; }
.spec { padding: 16px 18px; display: grid; gap: 6px; border-right: 1px solid var(--line); align-content: start; }
.spec:last-child { border-right: 0; }
.spec dt { font: 500 11.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 0; font: 700 19px/1.2 var(--f-display); color: var(--ink); letter-spacing: -0.01em; }
.spec-src { font: 500 12px/1.4 var(--f-body); color: var(--muted); margin-top: 10px; }

.gallery { display: grid; gap: 12px; }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { width: 120px; height: 75px; padding: 0; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--accent); }

.xsec { display: grid; gap: 16px; }
.xsec + .xsec { margin-top: 48px; }
.xsec > h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.xsec .prose { font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); }
.feature .topic-icon { width: 40px; height: 40px; }
.feature h3 { font-size: 16.5px; font-weight: 700; }
.feature p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 20px/1 var(--f-mono); color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.changes { display: grid; border-left: 2px solid var(--line); margin-left: 6px; }
.change { position: relative; padding: 0 0 22px 24px; }
.change::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.change h3 { font: 600 15px/1.3 var(--f-mono); }
.change p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.rail-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; display: grid; gap: 12px; }
.rail-box > h2 { font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rail-box > p { color: var(--ink-2); font-size: 15px; }
.rail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-list a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font: 600 15px/1.35 var(--f-display); letter-spacing: -0.01em; border-bottom: 1px solid var(--line); }
.rail-list li:last-child a { border-bottom: 0; }
.rail-list a:hover { color: var(--accent-ink); }
.rail-list span { display: block; font: 500 12.5px/1.4 var(--f-body); color: var(--muted); margin-top: 3px; }

/* ---------- Comments ---------- */
.comments { max-width: 740px; margin-top: 48px; display: grid; gap: 18px; }
.comments ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.comments .comment-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; font-size: 15.5px; }
.comments .children { list-style: none; padding-left: 24px; margin-top: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.comment-form .submit { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--accent); color: #FFFFFF; font-weight: 600; }

/* ---------- Responsive (container width) ---------- */
@container (max-width: 1100px) {
  .hdr-in { flex-wrap: wrap; gap: 0 12px; padding-block: 12px 6px; }
  .nav { order: 3; flex-basis: 100%; margin-inline: -11px; padding-block: 6px 4px; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec { border-bottom: 1px solid var(--line); }
  .spec:nth-child(3n) { border-right: 0; }
}
@container (max-width: 960px) {
  .hero-grid, .xhero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr-about { grid-column: 1 / -1; }
  .topic { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .topic ul { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-left: 56px; }
  .post-rail { position: static; }
  .post-rail .toc { display: none; }
  .toc-inline { display: block; margin-bottom: 28px; }
}
@container (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { padding-block: 32px 36px; }
  .grid3, .grid4, .features { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding-block: 40px; }
  .sec-head h2 { font-size: 25px; }
  .xid { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .xid > img, .xid > .xi { width: 72px; height: 72px; border-radius: 16px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec { border-right: 0; }
  .spec:nth-child(odd) { border-right: 1px solid var(--line); }
  .xbox { grid-template-columns: 52px minmax(0, 1fr); }
  .xbox img, .xbox .xi { width: 52px; height: 52px; }
  .xbox .btn { grid-column: 1 / -1; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .post-layout { gap: 32px; padding-top: 28px; }
  .omni { padding-left: 14px; }
  .omni button { padding: 0 14px; }
  .thumb { width: 88px; height: 56px; }
  .topic ul { padding-left: 0; }
  .hdr-tools { gap: 6px; }
}
