/*
Theme Name: HornBytes
Theme URI: https://hornbytes.com
Author: Fiddo Technology
Description: Practical tech guides for Africa. Clean, fast, AdSense-ready blog theme.
Version: 3.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hornbytes
*/

:root {
  --bg: #ffffff; --bg-2: #f5f7fb; --card: #ffffff; --line: #e3e8f0; --line-2: #d3dbe7;
  --ink: #0a1f44; --ink-2: #3a4864; --mut: #6b7890;
  --accent: #ff7a00; --accent-2: #ff9b3d; --accent-ink: #c25700; --accent-soft: #fff1e5;
  --navy: #0a1f44; --navy-2: #12306b;
  --shadow: 0 1px 2px rgba(10,31,68,.04), 0 8px 24px -8px rgba(10,31,68,.10);
  --shadow-lg: 0 2px 4px rgba(10,31,68,.04), 0 24px 48px -16px rgba(10,31,68,.18);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: var(--font);
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #060f22; --bg-2: #0a1730; --card: #0d1d3d; --line: #1a2c52; --line-2: #24396a;
  --ink: #f3f6fa; --ink-2: #c4cee0; --mut: #8d9bb7;
  --accent-ink: #ff9b3d; --accent-soft: rgba(255,122,0,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 24px -8px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 48px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; margin: 0 0 .5em; color: var(--ink); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons, pills, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--accent); color: #fff; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(255,122,0,.55); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { background: #f06f00; transform: translateY(-1px); }
.btn.alt { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn.alt:hover { border-color: var(--mut); }
.btn.navy { background: var(--navy); box-shadow: none; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: 500 13.5px/1.2 var(--font); color: var(--ink-2); box-shadow: var(--shadow); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: 600 12px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 500 14.5px/1 var(--font); text-decoration: none; transition: border-color .15s, color .15s; }
.chip svg { color: var(--accent); }
.chip:hover, .chip.on { border-color: var(--accent); }
.chip.on { background: var(--accent-soft); color: var(--accent-ink); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg-2); }
input[type="search"], input[type="text"], input[type="email"], input[type="url"], textarea { font: inherit; font-size: 16px; width: 100%; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-form { display: flex; gap: 10px; }
.search-form input { flex: 1; min-width: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.logo .mark { height: 34px; width: auto; }
.mark-dark { display: none; }
[data-theme="dark"] .site-header .mark-dark { display: block; }
[data-theme="dark"] .site-header .mark-light { display: none; }
.wordmark { font: 800 21px/1 var(--head); letter-spacing: -.03em; }
.wordmark b { color: var(--accent); font-weight: 800; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ink); background: var(--bg-2); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-actions .btn { margin-left: 8px; }
.menu-btn { display: none; }
.search-bar { padding: 14px 0; border-top: 1px solid var(--line); }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Shared section bits */
.section { padding: 96px 0; }
.section.tint { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.section-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 560px; font-size: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 12.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--accent); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.link-more:hover { gap: 10px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font: 500 13px/1.4 var(--font); color: var(--mut); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.meta a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }

/* Patterns */
.pattern { position: relative; isolation: isolate; overflow: hidden; }
.pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line-2) 1px, transparent 1.4px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 75%); opacity: .8; }
.pattern::after { content: ""; position: absolute; z-index: -2; width: 620px; height: 620px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,0,.16), transparent 65%); }
.dark-band { background: var(--navy); color: #fff; }
.dark-band h2, .dark-band h3 { color: #fff; }
.dark-band .pattern::before, .dark-band.pattern::before { background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.4px); }

/* Hero */
.hero { padding: 72px 0 88px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; margin: 24px 0 22px; }
.hero p.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 32px; max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--mut); font-size: 14px; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks svg { color: #16a34a; }
.collage { position: relative; height: 480px; }
.collage .ph { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--card); background: var(--bg-2); }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .p1 { inset: 0 18% 22% 0; }
.collage .p2 { width: 46%; height: 46%; right: 0; top: 10%; }
.collage .p3 { width: 50%; height: 40%; right: 6%; bottom: 0; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-size: 13px; color: var(--mut); z-index: 2; }
.float b { display: block; color: var(--ink); font: 800 18px/1.1 var(--head); }
.float .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.float.f1 { left: -18px; bottom: 16%; }
.float.f2 { right: -10px; top: -14px; }

/* Topic strip */
.strip { padding: 36px 0; border-bottom: 1px solid var(--line); }
.strip .inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.strip .label { font: 700 12.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .media { aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.02em; margin: 0; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p.excerpt { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.6; }
.card .meta { margin-top: auto; padding-top: 8px; }
.card .tag { position: relative; z-index: 1; align-self: flex-start; }
.thumb-plain { width: 100%; height: 100%; display: grid; place-items: center; color: var(--mut); font: 700 14px var(--font); letter-spacing: .12em; text-transform: uppercase; }

/* Featured card */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.feature .media { min-height: 100%; background: var(--bg-2); }
.feature .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.feature .body { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.feature h3 a { text-decoration: none; }
.feature p { margin: 0; color: var(--ink-2); font-size: 17px; }
.feature .btn { align-self: flex-start; margin-top: 8px; }

/* Topic cards */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.topic:hover { transform: translateY(-3px); border-color: var(--accent); }
.topic h3 { font-size: 20px; margin: 4px 0 0; }
.topic p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.6; flex: 1; }
.topic span { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.ic-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; box-shadow: 0 8px 16px -8px rgba(10,31,68,.5); }
.ic-tile.orange { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 16px -8px rgba(255,122,0,.6); }

/* Features on dark */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feat { padding: 28px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.feat h3 { font-size: 19px; margin: 18px 0 8px; }
.feat p { margin: 0; color: #b9c4da; font-size: 15px; line-height: 1.6; }
.dark-band .eyebrow { color: var(--accent-2); }
.dark-band .section-head p { color: #b9c4da; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.stat { padding: 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 800 38px/1 var(--head); letter-spacing: -.03em; color: var(--ink); }
.stat span { color: var(--mut); font-size: 14.5px; }

/* CTA */
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 56px; border-radius: 28px; background: var(--navy); color: #fff; }
.cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; }
.cta p { margin: 0; color: #b9c4da; font-size: 18px; max-width: 560px; }

/* Page hero + listings */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); letter-spacing: -.045em; margin: 0 0 16px; max-width: 860px; }
.page-hero p.lead { font-size: 19px; color: var(--ink-2); margin: 0; max-width: 680px; }
.page-hero .chips { margin-top: 28px; }
.listing { padding: 56px 0 96px; }
.empty-state { text-align: center; padding: 96px 0; max-width: 560px; margin: 0 auto; }
.empty-state .search-form { margin: 24px 0; }
.pagination { margin: 56px 0 0; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Article ---------- */
.post-head { padding: 64px 0 40px; text-align: center; }
.post-head .crumbs { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 14px; color: var(--mut); margin-bottom: 22px; }
.post-head .crumbs a { color: var(--mut); text-decoration: none; }
.post-head .crumbs a:hover { color: var(--ink); }
.post-head h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; margin: 22px auto 20px; max-width: 900px; }
.post-head .lead { font-size: 21px; line-height: 1.55; color: var(--ink-2); margin: 0 auto; max-width: 720px; }
.post-byline { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; font-size: 14.5px; color: var(--mut); }
.post-byline .who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.post-byline .avatar { border-radius: 50%; }
.post-byline span { display: inline-flex; align-items: center; gap: 6px; }
.post-hero { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.post-hero img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.post-hero figcaption { text-align: center; font-size: 13px; color: var(--mut); margin-top: 12px; }
.post-hero figcaption a { color: var(--mut); }
.post-body { display: grid; grid-template-columns: 240px minmax(0, 720px) 64px; justify-content: center; gap: 56px; padding: 64px 24px 32px; }
.toc { position: sticky; top: 104px; align-self: start; font-size: 14px; }
.toc-title { font: 700 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--mut); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; border-color: var(--accent); }
.share-rail { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.share-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; text-decoration: none; transition: color .15s, border-color .15s; }
.share-btn:hover { color: var(--accent); border-color: var(--accent); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }

.prose { font-size: 19px; line-height: 1.8; color: var(--ink-2); min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.5em; }
.prose h2 { font-size: 30px; margin: 2.2em 0 .7em; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { font-size: 23px; margin: 1.8em 0 .6em; letter-spacing: -.02em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.6em; padding: 0; list-style: none; }
.prose li { position: relative; padding-left: 34px; margin: 0 0 .7em; }
.prose ul > li::before { content: ""; position: absolute; left: 10px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .25em; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 12.5px/24px var(--font); text-align: center; }
[data-theme="dark"] .prose ol > li::before { background: var(--accent); }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--accent); font: 600 23px/1.5 var(--head); letter-spacing: -.015em; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: 18px; }
.prose figcaption { font-size: 14px; color: var(--mut); margin-top: 10px; text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.prose code { font: 0.86em/1.5 var(--mono); background: var(--bg-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose pre { position: relative; margin: 2em 0; padding: 22px 24px; background: #0a1f44; color: #e6ecf7; border-radius: 16px; overflow-x: auto; font: 14.5px/1.7 var(--mono); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose .copy { position: absolute; top: 10px; right: 10px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #e6ecf7; font: 500 12px var(--font); cursor: pointer; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 2em 0; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .takeaways, .prose .callout { margin: 0 0 2.2em; padding: 26px 28px; border-radius: 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: 17px; }
.prose .takeaways h2, .prose .takeaways h3, .prose .takeaways p:first-child strong { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--accent-ink); font-family: var(--font); }
.prose .takeaways ul { margin: 0; }
.prose .takeaways li:last-child { margin-bottom: 0; }

.post-foot { max-width: 720px; margin: 0 auto; padding: 0 24px 72px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.tags a { padding: 6px 12px; border-radius: 10px; background: var(--bg-2); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.share-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.share-box b { font-family: var(--head); }
.author-card { display: flex; gap: 20px; padding: 28px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.author-card .avatar { border-radius: 50%; flex: 0 0 auto; }
.author-card b { font: 800 18px/1.3 var(--head); }
.author-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: var(--card); transition: border-color .15s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { display: block; color: var(--mut); font-size: 13px; margin-bottom: 6px; }
.post-nav b { font: 700 16px/1.35 var(--head); }
.post-nav .next { text-align: right; grid-column: 2; }

/* Ads */
.ad { margin: 2em 0; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }

/* ---------- Pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.8vw, 42px); }
.split p { color: var(--ink-2); font-size: 18px; }
.split .photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: var(--bg-2); }
.split .photo img, .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: var(--bg-2); border: 6px solid var(--card); }
.step-n { counter-increment: s; }
.step-n::before { content: "0" counter(s); display: block; font: 800 15px/1 var(--head); color: var(--accent-2); margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); counter-increment: s; }
.step::before { content: "0" counter(s); display: block; font: 800 15px/1 var(--head); color: var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 19px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--mut); font-size: 15px; line-height: 1.6; }
.info-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -40px; position: relative; z-index: 2; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.info b { display: block; font: 700 16px/1.3 var(--head); margin-bottom: 4px; }
.info span, .info a { color: var(--mut); font-size: 15px; text-decoration: none; }
.info a:hover { color: var(--accent-ink); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card { padding: 36px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.form-card h2 { font-size: 26px; margin: 0 0 6px; }
.form-card > p { color: var(--mut); margin: 0 0 8px; }
.hb-form { display: grid; gap: 16px; margin-top: 20px; }
.hb-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hb-form label { font-size: 14px; font-weight: 600; display: grid; gap: 8px; color: var(--ink); }
.hb-form .hp { position: absolute; left: -9999px; }
.hb-form .btn { justify-self: start; }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin: 0 0 8px; }
.faq h2 { font-size: 26px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 16.5px/1.4 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 15.5px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: 56px; padding: 64px 24px 96px; }
.doc .updated { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: var(--mut); font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c4da; padding: 72px 0 32px; margin-top: 0; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 18px 0; max-width: 340px; font-size: 15px; line-height: 1.7; }
.footer-h { font: 700 12.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin: 6px 0 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-list a, .social a { color: #b9c4da; text-decoration: none; font-size: 15px; }
.footer-list a:hover, .social a:hover { color: #fff; }
.social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.site-footer .mark-light { display: none; }
.site-footer .mark-dark { display: block; }

/* Consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 14px; }
.consent p { margin: 0; flex: 1; color: var(--ink-2); }
.consent .btn { min-height: 40px; padding: 8px 18px; }

/* Comments */
.comments-wrap { padding-bottom: 72px; }
.comment-list { list-style: none; padding: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .post-body { grid-template-columns: minmax(0, 720px); }
  .toc, .share-rail { display: none; }
  .doc { grid-template-columns: minmax(0, 720px); }
  .topics, .features, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 14px; font-size: 17px; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .hero-grid, .split, .contact-grid, .feature { grid-template-columns: 1fr; }
  .collage { height: 380px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
  .feature .body { padding: 32px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .admin-bar .site-header { top: 0; }
  .header-inner { height: 64px; }
  .main-nav { top: 64px; }
  .logo .mark { height: 28px; }
  .hero { padding: 48px 0 64px; }
  .hero p.lead { font-size: 18px; }
  .collage { height: 300px; }
  .float.f1 { left: 0; }
  .float.f2 { right: 0; }
  .grid, .topics, .features, .steps { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .post-head { padding: 40px 0 28px; }
  .post-head .lead { font-size: 18px; }
  .post-hero { padding: 0; }
  .post-hero img { border-radius: 0; aspect-ratio: 16 / 10; }
  .post-body { padding: 40px 18px 24px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 25px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
  .hb-form .row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .doc { padding: 40px 18px 72px; }
  .footer-grid { grid-template-columns: 1fr; }
}
