/* =========================================================
   Morxavelintaq — "Quiet Street" theme
   Light (default): sage-mist daylight. Dark: evening street, porch lights on.
   ========================================================= */
:root {
  --bg: #EDF1EC;
  --surface: #FAFBF8;
  --surface-2: #E2E9E1;
  --ink: #1B2A27;
  --muted: #53625D;
  --line: #C9D4CB;
  --pine: #2C5A4E;
  --pine-deep: #1F443B;
  --on-pine: #F6F8F5;
  --amber: #E2A93B;
  --amber-soft: #F6E3B6;
  --sky-top: #B7D2E2;
  --sky-bottom: #E6EFEA;
  --hill: #C5D7C3;
  --h1: #DCE5DE; --h2: #F2E7D3; --h3: #D3DFE6; --h4: #E8DCD6;
  --roof: #3D5C55; --win: #A9C3CF; --win-lit: #A9C3CF; --road: #5E6C69; --walk: #D3D9D1; --leaf: #6E9A78;
  --plat-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%232C5A4E' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M0 60h140v90H0M140 0v150h120V40H140M260 40h160M260 150h160v-60H260M0 150v150M90 150v150M90 230h170V150M260 230h160M330 230v70M200 230v70'/%3E%3Ccircle cx='330' cy='190' r='3'/%3E%3Ccircle cx='60' cy='105' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(27,42,39,.06), 0 8px 24px -12px rgba(27,42,39,.18);
  --radius-l: 18px;
  --radius-s: 8px;
  --font-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1A20;
  --surface: #14232B;
  --surface-2: #1B2E37;
  --ink: #E3ECE8;
  --muted: #9CAEA9;
  --line: #29404A;
  --pine: #7EC2AE;
  --pine-deep: #A8D9C9;
  --on-pine: #0E1A20;
  --amber: #F2C062;
  --amber-soft: #3A3220;
  --sky-top: #0A1420;
  --sky-bottom: #1D3442;
  --hill: #15282F;
  --h1: #22353D; --h2: #2B3238; --h3: #1F3240; --h4: #2E3036;
  --roof: #0F1C22; --win: #2A3B44; --win-lit: #FFCB6B; --road: #0B1418; --walk: #24343B; --leaf: #1F3B36;
  --plat-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'%3E%3Cg fill='none' stroke='%237EC2AE' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M0 60h140v90H0M140 0v150h120V40H140M260 40h160M260 150h160v-60H260M0 150v150M90 150v150M90 230h170V150M260 230h160M330 230v70M200 230v70'/%3E%3Ccircle cx='330' cy='190' r='3'/%3E%3Ccircle cx='60' cy='105' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  /* Plat-map parcels: faint property lot lines behind everything */
  background-image: var(--plat-img);
  background-size: 420px 300px;
  transition: background-color .4s ease, color .4s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { 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(--pine); color: var(--on-pine); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45em; border: 0; cursor: pointer;
  font: 600 1rem/1 var(--font-ui); padding: .85em 1.3em; border-radius: 999px;
  background: var(--pine); color: var(--on-pine); text-decoration: none; transition: background .2s, transform .1s;
}
.btn:hover { background: var(--pine-deep); color: var(--on-pine); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .6em 1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); }
.btn-ghost:hover { background: var(--pine); color: var(--on-pine); }
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; color: var(--pine); }
.brand-wave { stroke: var(--amber); }
.brand-name { font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .98rem; }
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.mini-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding-left: 14px; }
.mini-search input { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; width: 170px; padding: 8px 0; outline: none; }
.mini-search button { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; cursor: pointer; display: grid; place-items: center; }
.mini-search:focus-within { border-color: var(--pine); }

/* Porch-light switch: the theme toggle */
.porch-switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px 5px 6px; cursor: pointer; font: 600 .9rem var(--font-ui); }
.switch-plate { width: 22px; height: 30px; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; display: block; }
.switch-lever { position: absolute; left: 7px; width: 8px; height: 12px; border-radius: 3px; background: var(--pine); top: 4px; transition: top .25s ease, background .25s; }
:root[data-theme="dark"] .switch-lever { top: 14px; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.switch-label { display: inline-flex; }
.switch-label span { display: inline-flex; align-items: center; gap: 5px; }
.when-dark { display: none !important; }
:root[data-theme="dark"] .when-dark { display: inline-flex !important; }
:root[data-theme="dark"] .when-light { display: none !important; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 7px; cursor: pointer; }

/* ---------- Hero with the street ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 84px); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 620px; margin-top: 26px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); color: var(--muted);
}
.hero-search:focus-within { border-color: var(--pine); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 1.02rem; padding: 10px 0; }
.hero-links { margin-top: 16px; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.hero-links a { font-weight: 600; }
.hero-street { margin-top: -10px; line-height: 0; }
.street { width: 100%; height: clamp(220px, 28vw, 360px); display: block; }
.sky-top { stop-color: var(--sky-top); transition: stop-color .6s; }
.sky-bottom { stop-color: var(--sky-bottom); transition: stop-color .6s; }
.street .sun { fill: #F7D27A; transition: opacity .6s, transform .8s; }
.street .moon { fill: #F1E7C9; opacity: 0; transition: opacity .6s; }
.street .moon-cut { fill: var(--sky-top); }
.street .stars { fill: #F5EFD8; opacity: 0; transition: opacity .8s; }
.street .clouds { fill: #fff; opacity: .75; transition: opacity .6s; }
.street .hills { fill: var(--hill); transition: fill .6s; }
.street .wall { transition: fill .6s; }
.street .h1 .wall { fill: var(--h1); } .street .h2 .wall { fill: var(--h2); } .street .h3 .wall { fill: var(--h3); } .street .h4 .wall { fill: var(--h4); }
.street .roof, .street .chimney { fill: var(--roof); transition: fill .6s; }
.street .win { fill: var(--win); transition: fill .5s ease var(--d, 0ms); }
.street .door { fill: var(--pine); }
.street .porch { fill: var(--amber); opacity: .5; }
.street .porch-glow { opacity: 0; transition: opacity .6s; }
.street .sidewalk { fill: var(--walk); }
.street .road { fill: var(--road); }
.street .lane { fill: var(--amber); opacity: .8; }
.street .trunk { fill: #6B5A48; }
.street .leaf { fill: var(--leaf); transition: fill .6s; }
:root[data-theme="dark"] .street .sun { opacity: 0; transform: translateY(40px); }
:root[data-theme="dark"] .street .moon { opacity: 1; }
:root[data-theme="dark"] .street .stars { opacity: .9; }
:root[data-theme="dark"] .street .clouds { opacity: .08; }
:root[data-theme="dark"] .street .win.lit { fill: var(--win-lit); filter: drop-shadow(0 0 6px rgba(255, 203, 107, .7)); }
:root[data-theme="dark"] .street .porch { opacity: 1; }
:root[data-theme="dark"] .street .porch-glow { opacity: 1; }
:root[data-theme="dark"] .street .lane { opacity: .35; }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { margin-bottom: 28px; max-width: 64ch; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; max-width: none; }
.topics { background: var(--surface); border-bottom: 1px solid var(--line); }

/* Category "address plates" */
.plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.plates li { border-top: 1px solid var(--line); }
.plates li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.plate { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 18px; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.plate:hover { color: var(--ink); }
.plate:hover .plate-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.plate-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--pine); color: var(--on-pine); }
.plate:hover .plate-icon { background: var(--amber); color: #1B2A27; }
.plate-text { display: grid; gap: 2px; }
.plate-name { font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.plate-desc { color: var(--muted); font-size: .95rem; line-height: 1.4; }
.plate-count { font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: .85rem; font-weight: 700; color: var(--pine); text-decoration: none; }
.card-title { font-size: 1.16rem; margin: 0; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.card-excerpt { color: var(--muted); font-size: .96rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin: auto 0 0; color: var(--muted); font-size: .85rem; display: flex; gap: 6px; align-items: center; padding-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.latest-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; margin-bottom: 26px; }
.card.feature .card-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.card.feature .card-body { padding: 24px 26px 26px; }
.latest-list { display: grid; gap: 14px; }
.card.compact { flex-direction: row; align-items: stretch; }
.card.compact .card-img { aspect-ratio: auto; width: 40%; flex-shrink: 0; }
.card.compact .card-body { padding: 14px 16px; gap: 4px; }
.card.compact .card-title { font-size: 1rem; }

/* ---------- Promise band ---------- */
.promise { background: var(--pine); color: var(--on-pine); }
.promise a.btn-ghost { color: var(--on-pine); box-shadow: inset 0 0 0 1.5px var(--on-pine); }
.promise a.btn-ghost:hover { background: var(--on-pine); color: var(--pine); }
.promise-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.promise p { opacity: .88; max-width: 52ch; }
.promise-list { margin: 0; display: grid; gap: 22px; }
.promise-list div { padding-left: 20px; border-left: 3px solid var(--amber); }
.promise-list dt { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.promise-list dd { margin: 0; opacity: .85; }

/* ---------- Listing ---------- */
.list-hero { padding: clamp(36px, 6vw, 64px) 0 8px; }
.list-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cat-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cat-tabs a:hover { border-color: var(--pine); }
.cat-tabs a[aria-current="page"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a[aria-current="page"] { background: var(--pine); color: var(--on-pine); border-color: var(--pine); }
.empty { text-align: left; max-width: 52ch; padding: 30px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-l); }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.article-head { padding-top: clamp(32px, 5vw, 60px); }
.article-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.article-dek { font-family: var(--font-read); font-size: 1.22rem; color: var(--muted); line-height: 1.5; }
.byline { display: flex; gap: 12px; align-items: center; font-size: .95rem; margin: 22px 0 30px; }
.byline a { font-weight: 600; }
.byline-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; flex-shrink: 0; }
.article-hero { margin: 0 auto 8px; width: min(1080px, 100% - 32px); }
.article-hero img { width: 100%; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.article-hero figcaption, .prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 56px; justify-content: center; padding: 40px 0 20px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc summary { font-weight: 700; cursor: pointer; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover { color: var(--ink); border-left-color: var(--amber); }
.article-layout:not(:has(.toc)) { grid-template-columns: minmax(0, 720px); }

.prose { font-family: var(--font-read); font-size: 1.12rem; line-height: 1.72; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.prose h3 { margin-top: 1.5em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--pine); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--amber); font-style: italic; color: var(--muted); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em; font-family: var(--font-ui); font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--surface-2); font-weight: 700; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.prose code { font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
.prose .takeaways { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--pine); border-radius: 12px; padding: 18px 22px 8px; margin: 0 0 1.8em; font-family: var(--font-ui); font-size: 1rem; }
.prose .takeaways h2 { margin: 0 0 8px; font-size: 1.1rem; }
.prose .example { background: var(--amber-soft); border-radius: 12px; padding: 18px 22px 6px; margin: 1.5em 0; font-family: var(--font-ui); font-size: 1rem; }
.prose .faq h3 { font-size: 1.12rem; margin-top: 1.2em; }
.note-box { margin-top: 2.4em; padding: 18px 22px; border-radius: 12px; background: var(--surface-2); font-family: var(--font-ui); font-size: .92rem; color: var(--muted); }
.note-box p { margin: 0; }
.related { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Pages & forms ---------- */
.callout { padding: 14px 18px; background: var(--amber-soft); border-radius: 10px; font-family: var(--font-ui); font-size: 1rem; }
.contact-form { display: grid; gap: 16px; margin: 24px 0; font-family: var(--font-ui); font-size: 1rem; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--pine); outline: none; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -5000px; }
.form-ok, .form-err { padding: 14px 18px; border-radius: 10px; margin: 18px 0; font-family: var(--font-ui); font-size: 1rem; }
.form-ok { background: color-mix(in srgb, var(--pine) 16%, var(--surface)); }
.form-err { background: #F7DCD6; color: #6B1E12; }
.notfound { min-height: 50vh; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--ink); color: var(--bg); position: relative; }
:root[data-theme="dark"] .site-footer { background: #081116; color: var(--ink); }
.footer-roofline { display: block; width: 100%; height: 46px; fill: var(--ink); margin-top: -45px; }
:root[data-theme="dark"] .footer-roofline { fill: #081116; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 32px; }
.site-footer a { color: inherit; opacity: .82; text-decoration: none; }
.site-footer a:hover { opacity: 1; text-decoration: underline; color: inherit; }
.brand-foot .brand-name { font-size: 1.5rem; }
.footer-about p { opacity: .8; max-width: 42ch; font-size: .95rem; }
.footer-about .fine { font-size: .85rem; opacity: .65; }
.foot-h { font-size: 1rem; margin-bottom: 14px; color: var(--amber); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .95rem; }
.footer-base { border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); padding: 20px 0 28px; font-size: .85rem; opacity: .7; }
.footer-base p { margin: 0; }

.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; display: flex; gap: 16px; align-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 14px 20px; box-shadow: var(--shadow); font-size: .93rem; }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .toc { position: static; margin-bottom: 26px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mini-search { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; gap: 0; padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 10px; }
  .nav-toggle { display: grid; }
  .switch-label { display: none; }
  .porch-switch { padding: 5px; }
  .plates { grid-template-columns: 1fr; }
  .plates li:nth-last-child(2) { border-bottom: 0; }
  .plate { grid-template-columns: 46px 1fr; }
  .plate-icon { width: 46px; height: 46px; }
  .plate-count { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .card.compact .card-img { width: 36%; }
  .promise-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-search .btn { padding: .8em 1em; }
  .prose { font-size: 1.06rem; }
  .cookie-note { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
