/* PromptScrub uses system fonts and local assets so the privacy promise does
   not depend on third-party font or asset requests. */

:root {
    --ink: #17211d;
    --paper: #ffffff;
    --bg: #f5f7f6;
    --line: #d8e0dc;
    --muted: #5d6a64;
    --stamp: #087a5b;
    --hl: #f6c453;
    --ok: #087a5b;
    --safe: #e9f6f0;

    --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, Consolas, "SF Mono", "Courier New", monospace;
    --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

    --tag: 650 13px/1.3 var(--sans);
    --tag-track: 0;

    --gap: 20px;
    --radius: 8px;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    /* the nav is sticky, so in-page anchors need clearance to land below it */
    scroll-padding-top: 72px;
}

/* visible to screen readers only: the rule chips show a bare number, this
   carries the phrase that explains it */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* keyboard users get past the nav without tabbing through every link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 0 0 var(--radius) 0;
    font: 600 13px var(--sans);
    text-decoration: none;
}

.skip-link:focus { left: 0; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.shell { max-width: 1120px; margin: 0 auto; padding: 0 var(--gap); }

h1, h2, h3 { font-family: var(--sans); letter-spacing: -0.025em; font-weight: 700; }

a { color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 2px;
    border-radius: 2px;
}

code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: #dedfd6;
    padding: 1px 5px;
    border-radius: 3px;
    word-break: break-word;
}

/* the document label, one class, used for every structural marker */
.doc-tag {
    font: var(--tag);
    letter-spacing: var(--tag-track);
    color: var(--muted);
    margin: 0;
}

/* Redaction bars in results and the 404 reveal their text on hover/focus. */

.redacted-word,
.output .bar {
    background: var(--ink);
    color: transparent;
    border-radius: 2px;
    transition: color 0.28s ease;
}

.redacted-word {
    display: inline-block;
    padding: 0.04em 0.16em 0.08em;
    margin: 0 0.03em;
    line-height: 0.82;
    vertical-align: 0.04em;
    cursor: default;
    text-shadow: none;
    white-space: nowrap;
}

.redacted-word:hover,
.redacted-word:focus-visible { color: #fff; outline-color: var(--ok); }

/* ---------- nav ---------- */

.nav {
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: 700 16px var(--sans);
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }

.nav-links a {
    font: 600 13px var(--sans);
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--ink); border-bottom-color: var(--stamp); }

/* ---------- hero ---------- */

.hero { padding: 48px var(--gap) 0; text-align: left; }

.hero h1 {
    font-size: clamp(40px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin: 0 0 14px;
    max-width: 25ch;
    text-wrap: balance;
}

.hero-sub {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
    max-width: 62ch;
    margin: 0 0 14px;
    text-wrap: pretty;
}

.hero-slim { padding-bottom: 26px; }

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ok);
    font-size: 13.5px;
    font-weight: 650;
}

.trust-points li::before { content: "✓"; margin-right: 7px; }

/* ---------- the scrubber: one folded archive form ---------- */

.scrubber {
    margin-top: 24px;
    padding: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgb(23 33 29 / 0.09);
    overflow: hidden;
}

.workflow {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 14px 20px;
    list-style: none;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.workflow li { display: flex; align-items: center; gap: 7px; }
.workflow span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--safe);
    color: var(--ok);
    font: 700 11px var(--mono);
}

.pane-tabs { display: none; }

.scrub-settings { border-top: 1px solid var(--line); }

.scrub-settings > summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 13px 20px;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
}

.scrub-settings > summary span { color: var(--muted); font-size: 12.5px; font-weight: 500; justify-self: end; }
.scrub-settings > summary::after { content: "+"; color: var(--ok); font-size: 18px; line-height: 1; }
.scrub-settings[open] > summary::after { content: "−"; }
.scrub-settings[open] > summary { border-bottom: 1px solid var(--line); }

.scrub-settings[open] > summary span { display: none; }

.scrub-toolbar {
    padding: 18px 20px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 24px;
}

.toolbar-block { display: grid; gap: 8px; }

.rule-toggles { display: flex; flex-wrap: wrap; gap: 7px; }

.rule-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: 500 12.5px var(--sans);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
    background: #f1f2ed;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rule-chip:hover { border-color: var(--muted); }
.rule-chip:has(input:checked) { background: #edf2ed; color: var(--ink); border-color: #9fb5a5; }
.rule-chip:has(input:focus-visible) { outline: 2px solid var(--stamp); outline-offset: 2px; }
.rule-chip input { accent-color: var(--ink); margin: 0; }
.rule-chip:has(input:checked) input { accent-color: var(--ok); }

.rule-chip em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 5px;
    background: var(--line);
    color: var(--ink);
    /* counts update on every keystroke; fixed-width digits stop the jitter */
    font-variant-numeric: tabular-nums;
}

.rule-chip em.has-hits { background: var(--hl); color: var(--ink); }

.strategy-row { display: flex; flex-wrap: wrap; gap: 8px; }

.strategy-row label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 11px;
    background: #f1f2ed;
    transition: border-color 0.15s ease;
}

.strategy-row label:hover { border-color: var(--muted); }
.strategy-row label:has(input:checked) { border-color: #899087; background: var(--paper); }
.strategy-row label:has(input:focus-visible) { outline: 2px solid var(--stamp); outline-offset: 2px; }
.strategy-row input { accent-color: var(--stamp); margin: 0; }
.strategy-row code { background: transparent; padding: 0; color: var(--muted); }

.scrub-summary {
    margin: 0;
    padding: 11px 20px;
    font: 500 13px var(--sans);
    border-top: 1px solid var(--line);
    background: #fafbfa;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
}

/* a status dot rather than colored text alone, color is never the only signal */
.scrub-summary::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    flex-shrink: 0;
}

.scrub-summary.warn { color: #7a5400; }
.scrub-summary.warn::before { background: var(--hl); }
.scrub-summary.ok { color: var(--ok); }
.scrub-summary.ok::before { background: var(--ok); }

.panes { display: grid; grid-template-columns: 1fr 1fr; }

.pane {
    border: none;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pane:first-child { border-right: 1px solid var(--line); }
.pane-output { background: #f1f3f2; transition: background-color 0.28s ease; }
.scrubber.has-input .pane-output { background: var(--safe); }
.scrubber.is-scanning .pane-output { background: #fbf3dc; }
.scrubber:not(.has-input) .panes { grid-template-columns: 1fr; }
.scrubber:not(.has-input) .pane-output { display: none; }

.pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px dashed var(--line);
    min-height: 46px;
}

.pane-head h2 {
    font: var(--tag);
    letter-spacing: var(--tag-track);
    margin: 0;
    color: var(--muted);
}

.pane-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
    font: 650 13px var(--sans);
    border-radius: var(--radius);
    padding: 7px 13px;
    cursor: pointer;
    /* kills the 300ms tap delay and the grey flash on mobile */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--ok); color: #fff; border: 1px solid var(--ok); }
.btn-primary:hover:not(:disabled) { background: #06694e; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }

/* a button that is actually a link (404, empty states) */
.btn-link { display: inline-block; text-decoration: none; }

/* the input pane is a transparent textarea over a mirror div carrying the
   highlights. both MUST share identical font metrics, padding and wrapping
   or the highlights drift off the text. change one, change both. */
.editor { position: relative; flex: 1; min-height: 340px; }

.backdrop, #scrub-input {
    font: 13px/1.65 var(--mono);
    padding: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border: none;
    margin: 0;
    letter-spacing: 0;
    tab-size: 4;
}

.backdrop {
    position: absolute;
    inset: 0;
    overflow: auto;
    color: transparent;
    pointer-events: none;
}

#scrub-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--ink);
    caret-color: var(--stamp);
    resize: none;
}

#scrub-input::placeholder { color: #a3a49b; }

.backdrop mark.hl {
    background: var(--hl);
    color: transparent;
    border-radius: 2px;
    /* a marker stroke bleeds slightly past the text */
    box-shadow: 0 0 0 1px var(--hl);
}

.output {
    flex: 1;
    min-height: 340px;
    margin: 0;
    padding: 14px;
    font: 13px/1.65 var(--mono);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: auto;
    tab-size: 4;
}

/* redaction bars in the output reveal on hover, same gesture as the headline */
.output .bar {
    padding: 0 5px;
    font-size: 0.94em;
    cursor: default;
}

.output .bar:hover { color: #fff; }

/* the empty right pane is an instruction, not dead space */
.output:empty::after {
    content: "The scrubbed version appears here, ready to copy.";
    color: #a3a49b;
    font-style: normal;
}

/* ---------- ad slots ---------- */

/* the following section supplies its own padding-top, so the slot only needs
   space above it, otherwise ads sit in ~100px of air and outweigh the content */
.ad-slot {
    margin: 46px auto 0;
    max-width: 100%;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
}

.ad-label { color: var(--muted); font-size: 11px; line-height: 1; }
.ad-slot--home_banner1 { min-height: 122px; }

/* banner1 sits directly under the nav as the first thing on the page, so it
   needs a normal gap, not the section-separating one */
main > aside:first-child .ad-slot { margin-top: 18px; }

.ad-slot > * { max-width: 100%; }

/* inside an article the slot needs the article's rhythm, not the page's */
.prose .ad-slot { margin: 34px auto; }

/* a slot with no section after it has nothing to supply the gap below */
main > aside:last-of-type .ad-slot { margin-bottom: 46px; }

/* ---------- content sections ---------- */

.catches, .checklist, .local-proof, .home-faq, .home-blog { padding-top: 58px; }

.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: 22px; margin: 6px 0 0; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 15px; margin: 8px 0 0; max-width: 62ch; text-wrap: pretty; }

.catch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

.catch {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.catch h3 { font-size: 13.5px; margin: 0 0 7px; letter-spacing: 0.01em; }
.catch p { margin: 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.catch code { font-size: 0.82em; }

.catches-note { color: var(--muted); font-size: 14.5px; margin-top: 20px; max-width: 68ch; text-wrap: pretty; }

.checklist ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 64ch;
}

.checklist li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--hl);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 11px 15px;
    font-size: 14.5px;
    text-wrap: pretty;
}

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof-grid > div {
    background: var(--safe);
    border: 1px solid #cbe5d9;
    border-radius: var(--radius);
    padding: 18px;
}
.proof-grid strong { font-size: 14px; }
.proof-grid p { margin: 6px 0 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }

.home-faq details {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 9px;
    padding: 0 18px;
    max-width: 780px;
}

.home-faq summary {
    font-weight: 600;
    padding: 14px 0;
    cursor: pointer;
    font-size: 15px;
    list-style-position: inside;
}

.home-faq summary:hover { color: var(--stamp); }
.home-faq details p { color: var(--muted); margin: 0 0 15px; font-size: 14.5px; text-wrap: pretty; }
.home-faq details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 13px; }

/* ---------- blog ---------- */

.blog-list { display: grid; gap: 12px; padding-bottom: 32px; }
.home-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }

.blog-card {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.blog-card:hover { border-color: var(--muted); }
.blog-card time { font: 600 11.5px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.blog-card h2, .blog-card h3 { margin: 7px 0 8px; font-size: 17px; line-height: 1.35; }
.blog-card p { margin: 0; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
/* an empty index is a normal state before launch, not an error: give it the
   same paper panel the cards get, so the page still looks composed */
.blog-empty {
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--hl);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 22px 24px;
    max-width: 62ch;
}

.blog-empty p { margin: 0 0 14px; text-wrap: pretty; }
.blog-empty p:last-child { margin-bottom: 0; }

/* ---------- prose: articles and static pages ----------
   these carry admin-authored HTML, so every element an editor can produce
   needs a style here, not just the ones the current content happens to use */

.prose { max-width: 760px; padding-top: 34px; padding-bottom: 48px; }

.prose > .doc-tag { margin-bottom: 10px; }

.prose h1 { font-size: clamp(25px, 3.6vw, 35px); line-height: 1.22; margin: 0 0 22px; text-wrap: balance; }
.prose h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 12px; text-wrap: balance; }
.prose h3 { font-size: 17px; line-height: 1.35; margin: 30px 0 10px; }
.prose h4 { font-family: var(--sans); font-size: 15px; margin: 24px 0 8px; }

.prose p, .prose li { font-size: 16.5px; line-height: 1.75; }
.prose p { margin: 0 0 1.2em; text-wrap: pretty; }

.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--muted); }

.prose a { color: var(--stamp); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }

.prose strong { font-weight: 700; }

.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--hl);
    color: var(--muted);
    font-style: normal;
}

.prose blockquote p:last-child { margin-bottom: 0; }

.prose pre {
    background: var(--ink);
    color: #e8e9e3;
    padding: 15px 17px;
    border-radius: var(--radius);
    overflow-x: auto;
    font: 13px/1.6 var(--mono);
    margin: 1.4em 0;
}

.prose pre code { background: transparent; padding: 0; color: inherit; font-size: inherit; }

.prose img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* tables can be wider than the column, let them scroll rather than
   forcing a horizontal scrollbar onto the whole page */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.prose th, .prose td { border: 1px solid var(--line); padding: 9px 13px; text-align: left; }
.prose th { background: var(--paper); font: 700 12px var(--sans); }

.blog-meta { font: 600 11.5px var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.blog-meta a { color: var(--muted); text-decoration: none; }
.blog-meta a:hover { color: var(--ink); }

/* the tool is the answer to every article, so its exit is the one panel that
   is darker than the page rather than another paper card */
.article-cta {
    margin-top: 44px;
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--radius);
    padding: 24px 26px;
}

.article-cta p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.article-cta p:last-child { margin-bottom: 0; }
.article-cta .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.article-cta .btn-primary:hover { background: #fff; }

.related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 20px; }
.related h2 { font-size: 16px; margin: 0 0 12px; }
.related ul { margin: 0; padding-left: 1.2em; }
.related li { font-size: 15.5px; margin-bottom: 0.45em; }
.related a { color: var(--stamp); }

.pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.page-link { font: 600 13px var(--sans); text-decoration: none; }
.page-link.disabled { color: var(--line); pointer-events: none; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); margin-top: 72px; background: var(--paper); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 38px; padding-bottom: 22px; }

.footer-brand .brand { font-size: 15px; margin: 0 0 9px; }
.footer-note { color: var(--muted); font-size: 13.5px; max-width: 46ch; margin: 0; text-wrap: pretty; }

.footer-links { display: grid; gap: 9px; align-content: start; }
.footer-links a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.footer-bottom { border-top: 1px solid var(--line); padding-top: 15px; padding-bottom: 20px; }
.footer-bottom p { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .scrub-toolbar { grid-template-columns: 1fr; gap: 15px; }
    .editor, .output { min-height: 270px; }
    .proof-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
    :root { --gap: 16px; }

    .hero { padding-top: 28px; padding-bottom: 0; }
    .hero h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.08; margin-bottom: 12px; }
    .hero-sub { font-size: 15px; line-height: 1.5; }
    .trust-points { display: grid; gap: 4px; font-size: 12.5px; }
    .scrubber { margin-top: 18px; }

    .editor, .output { min-height: 210px; }

    .workflow { gap: 10px; justify-content: space-between; padding: 11px 13px; font-size: 11.5px; }
    .workflow span { width: 20px; height: 20px; }

    .pane-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 8px;
        border-bottom: 1px solid var(--line);
        background: #f1f3f2;
    }

    .pane-tabs button {
        border: 0;
        border-radius: 6px;
        padding: 8px;
        background: transparent;
        color: var(--muted);
        font: 650 13px var(--sans);
        cursor: pointer;
    }

    .pane-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgb(23 33 29 / 0.12); }
    .panes { display: block; }
    .pane { display: none; }
    .scrubber[data-active-pane="input"] .pane-input,
    .scrubber.has-input[data-active-pane="output"] .pane-output { display: flex; }
    .pane:first-child { border-right: 0; }

    /* nav wraps to a second line rather than dropping links, the anchor to
       "what it catches" is the main entry point and must survive on mobile */
    .nav-row { flex-wrap: wrap; gap: 10px; }
    .nav-links { gap: 14px; width: 100%; }
    .nav-links a { font-size: 11.5px; }

    /* rule chips are the densest control on the page; give them room */
    .scrub-toolbar { padding: 12px 13px; }
    .rule-chip { font-size: 12px; padding: 5px 9px; }
    .strategy-row label { font-size: 12.5px; flex: 1 1 auto; }

    .pane-head { padding: 9px 12px; }
    .btn-primary, .btn-ghost { font-size: 12px; padding: 7px 11px; }

    .catches, .checklist, .local-proof, .home-faq, .home-blog { padding-top: 44px; }
    .prose p, .prose li { font-size: 16px; }
    .prose h2 { margin-top: 32px; }
}

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