/* Fairfind - hand-written stylesheet (no framework, no CDN).
   Look: a lost-property office. Charcoal masthead, oxblood stamp colour, manila luggage-tag labels
   on a cool grey page. Headings Libre Franklin, reading text Source Serif 4. Prefix: ff- */

:root {
    --ff-ink: #1C1F26;
    --ff-ink2: #4B5262;
    --ff-red: #9B1F36;
    --ff-red-dk: #7A1629;
    --ff-red-tint: #F7E8EB;
    --ff-tag: #F2E2A6;
    --ff-tag-tint: #FAF4D9;
    --ff-tag-line: #E3D18C;
    --ff-bg: #EDEFF2;
    --ff-card: #FFFFFF;
    --ff-line: #D3D8DF;
    --ff-mast2: #2A2E38;
    --ff-head: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
    --ff-text: "Source Serif 4", Georgia, "Times New Roman", serif;
    --ff-r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.ff-body {
    margin: 0;
    background: var(--ff-bg);
    color: var(--ff-ink);
    font-family: var(--ff-text);
    font-size: 18px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ff-red-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ff-red); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ff-red); outline-offset: 2px; border-radius: 3px; }

.ff-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.ff-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ff-skip { position: absolute; left: -999px; top: 8px; background: var(--ff-tag); color: var(--ff-ink); padding: 10px 16px; border-radius: 6px; z-index: 100; font-family: var(--ff-head); font-weight: 700; }
.ff-skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.ff-mast { background: var(--ff-ink); color: #fff; position: relative; }
.ff-mast__strip { border-bottom: 1px solid rgba(255,255,255,.12); font: 500 12.5px/1 var(--ff-head); letter-spacing: .05em; color: #B9BFCC; }
.ff-mast__strip .ff-wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.ff-mast__main { display: grid; grid-template-areas: "logo" "nav"; justify-items: center; padding-top: 22px; }
.ff-mast__main .ff-logo { grid-area: logo; }
.ff-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ff-logo:hover { text-decoration: none; }
.ff-logo__mark { flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.ff-logo__word { font: 800 30px/1 var(--ff-head); letter-spacing: -.035em; }
.ff-logo__a { color: #fff; }
.ff-logo__b { color: var(--ff-tag); }
.ff-nav { grid-area: nav; display: flex; justify-content: center; gap: 38px; width: 100%; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.ff-nav a {
    color: #D8DCE6; text-decoration: none; font: 600 13px/1 var(--ff-head); letter-spacing: .1em; text-transform: uppercase;
    padding: 16px 0 14px; border-bottom: 3px solid transparent;
}
.ff-nav a:hover { color: #fff; border-bottom-color: var(--ff-tag); text-decoration: none; }
.ff-burger { display: none; grid-area: burger; background: transparent; border: 1.5px solid rgba(255,255,255,.35); border-radius: 8px; width: 46px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.ff-burger__bars, .ff-burger__bars::before, .ff-burger__bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; content: ""; position: relative; }
.ff-burger__bars::before { position: absolute; top: -6px; left: 0; }
.ff-burger__bars::after { position: absolute; top: 6px; left: 0; }

/* ---------- labels and type ---------- */
.ff-adlabel {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 8px 24px 8px 12px;
    background: var(--ff-tag); color: var(--ff-ink);
    font: 700 12px/1 var(--ff-head); letter-spacing: .09em; text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.ff-adlabel::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ff-ink); }
.ff-kicker { font: 700 12.5px/1.2 var(--ff-head); letter-spacing: .13em; text-transform: uppercase; color: var(--ff-red); margin: 0 0 12px; }
.ff-h1 { font: 800 clamp(32px, 4vw, 48px)/1.07 var(--ff-head); letter-spacing: -.035em; margin: 0 0 20px; }
.ff-lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.55; color: var(--ff-ink2); margin: 0 0 16px; }
.ff-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 14px/1.4 var(--ff-head); color: var(--ff-ink2); padding-top: 14px; margin-top: 20px; border-top: 2px solid var(--ff-ink); }
.ff-byline strong { color: var(--ff-ink); }

/* ---------- hero (home) and page top ---------- */
.ff-hero { background: var(--ff-card); border-bottom: 1px solid var(--ff-line); padding: 42px 0 48px; }
.ff-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 52px; align-items: center; }
.ff-hero__media { margin: 0; }
.ff-hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--ff-r); border: 1px solid var(--ff-line); }
.ff-hero__media figcaption, .ff-top__media figcaption { font: 500 13px/1.45 var(--ff-head); color: var(--ff-ink2); padding: 10px 2px 0; }

.ff-top { background: var(--ff-card); border-bottom: 1px solid var(--ff-line); padding: 6px 0 40px; }
.ff-top--split .ff-top__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 50px; align-items: center; }
.ff-top__media { margin: 0; }
.ff-top__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--ff-r); border: 1px solid var(--ff-line); }
.ff-crumbs { font: 500 13.5px/1.4 var(--ff-head); margin: 20px 0 22px; color: var(--ff-ink2); }
.ff-crumbs a { color: var(--ff-ink2); }
.ff-page-head { max-width: 820px; }
.ff-top--split .ff-page-head { max-width: none; }
.ff-page-head .ff-h1 { font-size: clamp(30px, 3.8vw, 44px); }

/* ---------- page grid: left rail + reading column ---------- */
.ff-grid { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 64px; justify-content: start; padding: 46px 22px 64px; }
.ff-pagebody { padding-top: 40px; padding-bottom: 64px; }
.ff-rail { position: sticky; top: 24px; align-self: start; }
.ff-rail__h { font: 700 12px/1 var(--ff-head); letter-spacing: .13em; text-transform: uppercase; color: var(--ff-ink2); margin: 0 0 14px; }
.ff-toc { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ff-line); counter-reset: toc; }
.ff-toc li { counter-increment: toc; }
.ff-toc a {
    display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 2px solid transparent;
    font: 600 14.5px/1.35 var(--ff-head); color: var(--ff-ink2); text-decoration: none;
}
.ff-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ff-red); font-weight: 800; margin-right: 9px; }
.ff-toc a:hover, .ff-toc a.is-active { color: var(--ff-ink); border-left-color: var(--ff-red); text-decoration: none; }
.ff-rail__note { margin: 22px 0 0; padding: 14px 15px; background: var(--ff-tag-tint); border: 1px solid var(--ff-tag-line); border-radius: var(--ff-r); font: 500 13.5px/1.5 var(--ff-head); color: var(--ff-ink); }

/* ---------- prose ---------- */
.ff-prose { min-width: 0; max-width: 760px; }
.ff-prose p { margin: 0 0 18px; }
.ff-prose h2 { font: 800 clamp(25px, 3vw, 33px)/1.14 var(--ff-head); letter-spacing: -.025em; margin: 52px 0 16px; scroll-margin-top: 24px; }
.ff-prose h3 { font: 800 20px/1.25 var(--ff-head); letter-spacing: -.01em; margin: 30px 0 10px; }
.ff-prose--num { counter-reset: sec; }
.ff-prose--num h2 { counter-increment: sec; }
.ff-prose--num h2::before {
    content: "No. " counter(sec, decimal-leading-zero); display: block; width: max-content; margin-bottom: 12px; padding: 6px 18px 6px 10px;
    background: var(--ff-tag); color: var(--ff-ink); font: 700 11.5px/1 var(--ff-head); letter-spacing: .1em; text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.ff-prose .ff-intro { font-size: 20px; line-height: 1.6; color: var(--ff-ink2); margin: 0 0 8px; padding-left: 18px; border-left: 5px solid var(--ff-tag); }
.ff-prose ul, .ff-prose ol { margin: 0 0 20px; padding-left: 24px; }
.ff-prose li { margin-bottom: 8px; }
.ff-prose li::marker { color: var(--ff-red); font-weight: 700; }
.ff-prose em { font-style: italic; }

.ff-figure { margin: 26px 0 8px; }
.ff-figure img { border-radius: var(--ff-r); width: 100%; border: 1px solid var(--ff-line); }
.ff-figure figcaption { font: 500 13px/1.45 var(--ff-head); color: var(--ff-ink2); padding: 8px 2px 0; }

.ff-card { background: var(--ff-card); border: 1px solid var(--ff-line); border-radius: var(--ff-r); padding: 20px 22px; }
.ff-card h2, .ff-card h3 { font: 800 18px/1.25 var(--ff-head); margin: 0 0 10px; }

/* ---------- buttons ---------- */
.ff-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 8px; border: 2px solid var(--ff-ink);
    background: var(--ff-ink); color: #fff; font: 700 15px/1.2 var(--ff-head); letter-spacing: .01em;
    text-decoration: none; cursor: pointer; transition: background .12s ease, color .12s ease;
}
.ff-btn:hover { background: #000; color: #fff; text-decoration: none; }
.ff-btn--cta { background: var(--ff-red); border-color: var(--ff-red); color: #fff; }
.ff-btn--cta:hover { background: var(--ff-red-dk); border-color: var(--ff-red-dk); color: #fff; }
.ff-btn--block { width: 100%; }
.ff-cta-note { font: 400 14px/1.55 var(--ff-text); color: var(--ff-ink2); margin: 12px 0 0; }

/* ---------- nations ledger ---------- */
.ff-nations { background: var(--ff-card); border: 1px solid var(--ff-line); border-radius: var(--ff-r); margin: 22px 0; overflow: hidden; }
.ff-nation { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 26px; padding: 22px 24px; border-bottom: 1px solid var(--ff-line); }
.ff-nation:last-child { border-bottom: 0; }
.ff-nation > * { grid-column: 2; }
.ff-nation__tag {
    grid-column: 1; grid-row: 1 / span 4; align-self: start; justify-self: start; padding: 7px 16px 7px 10px;
    background: var(--ff-red-tint); color: var(--ff-red-dk); font: 800 11.5px/1.25 var(--ff-head); letter-spacing: .09em; text-transform: uppercase;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
}
.ff-nation h3 { margin: 0 0 6px !important; font-size: 20px; }
.ff-nation p { font-size: 16.5px; line-height: 1.6; margin: 0 0 10px; }
.ff-nation p:last-child { margin-bottom: 0; }

/* ---------- callouts ---------- */
.ff-callout { background: var(--ff-tag-tint); border: 1px solid var(--ff-tag-line); border-radius: var(--ff-r); padding: 22px 24px; margin: 30px 0; }
.ff-callout h3 { margin: 0 0 8px !important; font-size: 19px; }
.ff-callout p:last-child, .ff-callout ul:last-child { margin-bottom: 0; }
.ff-callout--note { background: var(--ff-card); border-color: var(--ff-line); border-top: 4px solid var(--ff-ink); }

/* ---------- ticket steps ---------- */
.ff-steps { list-style: none; padding: 0 !important; margin: 22px 0 26px !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.ff-steps > li {
    counter-increment: step; position: relative; background: var(--ff-card); border: 1px solid var(--ff-line); border-radius: var(--ff-r);
    padding: 50px 20px 20px; margin: 0 !important;
}
.ff-steps > li::before {
    content: "Step " counter(step); position: absolute; top: -1px; left: -1px; padding: 8px 16px 8px 14px;
    background: var(--ff-ink); color: #fff; font: 700 11.5px/1 var(--ff-head); letter-spacing: .1em; text-transform: uppercase;
    border-radius: var(--ff-r) 0 var(--ff-r) 0;
}
.ff-steps > li::after { content: ""; position: absolute; top: 34px; left: 14px; right: 14px; border-top: 2px dashed var(--ff-line); }
.ff-steps strong { display: block; font: 800 17.5px/1.3 var(--ff-head); margin: 10px 0 6px; }
.ff-steps p { margin: 0; font-size: 16px; line-height: 1.6; }

/* ---------- situation picker (dark panel) ---------- */
.ff-tool { background: var(--ff-ink); color: #fff; border-radius: 12px; padding: 28px; margin: 28px 0; }
.ff-prose .ff-tool h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.ff-tool__sub { margin: 0 0 18px !important; font: 500 14.5px/1.4 var(--ff-head); color: #B9BFCC; }
.ff-tool__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ff-field { display: flex; flex-direction: column; gap: 7px; }
.ff-field label { font: 700 13.5px/1.35 var(--ff-head); letter-spacing: .02em; color: var(--ff-tag); min-height: 2.7em; display: flex; align-items: flex-end; }
.ff-field select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 50px; padding: 0 42px 0 14px; border: 2px solid transparent; border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231C1F26' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
    font: 600 16px var(--ff-head); color: var(--ff-ink);
}
.ff-field select:focus { border-color: var(--ff-tag); }
.ff-tool__out { margin-top: 20px; padding: 18px 20px; border-radius: 8px; background: var(--ff-mast2); border-left: 5px solid var(--ff-tag); min-height: 76px; }
.ff-tool__out h4 { margin: 0 0 8px; font: 800 18px/1.3 var(--ff-head); color: var(--ff-tag); }
.ff-tool__out p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.6; }
.ff-tool__out ul { margin: 0 0 10px; padding-left: 20px; font-size: 16.5px; line-height: 1.6; }
.ff-tool__out li::marker { color: var(--ff-tag); }
.ff-tool__out p:last-child, .ff-tool__out ul:last-child { margin-bottom: 0; }
.ff-tool__out p:last-child { color: #B9BFCC; font-size: 14.5px; }

/* ---------- table ---------- */
.ff-tablewrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--ff-line); border-radius: var(--ff-r); background: var(--ff-card); }
.ff-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; min-width: 600px; }
.ff-table th, .ff-table td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--ff-line); }
.ff-table thead th { background: var(--ff-tag); color: var(--ff-ink); font: 800 13px/1.3 var(--ff-head); letter-spacing: .06em; text-transform: uppercase; }
.ff-table tbody tr:last-child td, .ff-table tbody tr:last-child th { border-bottom: 0; }
.ff-table tbody th { font: 700 15px/1.4 var(--ff-head); width: 24%; background: #F6F7F9; }

/* ---------- FAQ ---------- */
.ff-faq { border-top: 1px solid var(--ff-line); margin: 18px 0 8px; }
.ff-faq details { border-bottom: 1px solid var(--ff-line); }
.ff-faq summary { cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 14px; padding: 18px 2px; font: 700 17.5px/1.4 var(--ff-head); }
.ff-faq summary::-webkit-details-marker { display: none; }
.ff-faq summary::before { content: "Q"; flex: none; width: 27px; height: 27px; border-radius: 50%; background: var(--ff-red); color: #fff; font: 800 13px/27px var(--ff-head); text-align: center; margin-top: 1px; }
.ff-faq summary::after { content: "+"; margin-left: auto; font: 500 26px/1 var(--ff-head); color: var(--ff-red); flex: none; }
.ff-faq details[open] summary::after { content: "\2212"; }
.ff-faq details > div { padding: 0 2px 8px 41px; }
.ff-faq details > div p:last-child { margin-bottom: 14px; }

/* ---------- checklist ---------- */
.ff-check { list-style: none; padding: 0 !important; margin: 20px 0 !important; display: grid; gap: 10px; }
.ff-check li { margin: 0 !important; }
.ff-check label { display: flex; gap: 16px; align-items: flex-start; background: var(--ff-card); border: 1px solid var(--ff-line); border-radius: var(--ff-r); padding: 17px 20px; cursor: pointer; }
.ff-check input {
    flex: none; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 2px 0 0; border: 2px solid var(--ff-ink); border-radius: 6px;
    background: #fff; cursor: pointer; display: grid; place-content: center;
}
.ff-check input::after { content: ""; width: 12px; height: 7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.ff-check input:checked { background: var(--ff-red); border-color: var(--ff-red); }
.ff-check input:checked::after { opacity: 1; }
.ff-check strong { display: block; font: 800 17.5px/1.3 var(--ff-head); }
.ff-check span { font-size: 16px; line-height: 1.6; color: var(--ff-ink2); }
.ff-check input:checked + div strong { text-decoration: line-through; text-decoration-color: var(--ff-red); text-decoration-thickness: 2px; }
.ff-progress { height: 12px; border-radius: 999px; background: var(--ff-line); overflow: hidden; margin: 4px 0 6px; }
.ff-progress i { display: block; height: 100%; width: 0; background: var(--ff-red); transition: width .2s ease; }

/* ---------- sources / small ---------- */
.ff-src { font-size: 16px; line-height: 1.6; }
.ff-src li { margin-bottom: 10px; }
.ff-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.ff-two .ff-card h3 { margin-top: 0; }
.ff-two .ff-card ul { margin-bottom: 0; }
.ff-kv { display: grid; grid-template-columns: 190px 1fr; border: 1px solid var(--ff-line); border-radius: var(--ff-r); overflow: hidden; background: var(--ff-card); margin: 20px 0 26px; }
.ff-kv dt, .ff-kv dd { margin: 0; padding: 13px 18px; border-bottom: 1px solid var(--ff-line); font-size: 16.5px; line-height: 1.55; }
.ff-kv dt { font: 700 14.5px/1.5 var(--ff-head); background: var(--ff-tag-tint); }
.ff-kv dt:last-of-type, .ff-kv dd:last-of-type { border-bottom: 0; }

/* ---------- closing call-out band ---------- */
.ff-band { background: var(--ff-red); color: #fff; padding: 48px 0; }
.ff-band__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 44px; align-items: center; }
.ff-band h2 { font: 800 clamp(24px, 3vw, 32px)/1.15 var(--ff-head); letter-spacing: -.025em; margin: 0 0 8px; }
.ff-band p { margin: 0; color: #FBE3E8; font-size: 17px; line-height: 1.6; max-width: 640px; }
.ff-band .ff-btn { background: var(--ff-tag); border-color: var(--ff-tag); color: var(--ff-ink); }
.ff-band .ff-btn:hover { background: #fff; border-color: #fff; color: var(--ff-ink); }
.ff-band .ff-cta-note { grid-column: 1 / -1; color: #F5CBD3; max-width: 760px; margin: 4px 0 0; }

/* ---------- footer ---------- */
.ff-foot { background: var(--ff-ink); color: #C9CFDB; padding: 52px 0 36px; }
.ff-foot a { color: #fff; text-decoration-color: rgba(242,226,166,.6); }
.ff-foot a:hover { color: var(--ff-tag); }
.ff-foot__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ff-foot__blurb { font-size: 16px; line-height: 1.6; margin: 16px 0 10px; max-width: 380px; }
.ff-foot__mail { font: 500 15px var(--ff-head); margin: 0; }
.ff-foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ff-foot__nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
.ff-foot__nav a, .ff-foot__nav .ff-linkbtn { display: block; width: 100%; text-align: left; padding: 11px 0; font: 600 14.5px/1.3 var(--ff-head); text-decoration: none; }
.ff-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.ff-linkbtn:hover { color: var(--ff-tag); }
.ff-prose .ff-linkbtn { color: var(--ff-red-dk); text-decoration: underline; font: inherit; }
.ff-foot__fine { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.ff-foot__disc { font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; }
.ff-foot__legal { font: 500 13px/1.55 var(--ff-head); color: #98A0B1; margin: 0; }

/* ---------- consent card ---------- */
.ff-cc { position: fixed; left: 16px; bottom: 16px; z-index: 90; width: min(470px, calc(100vw - 32px)); display: none; }
.ff-cc.is-open { display: block; }
.ff-cc__box { background: var(--ff-card); border: 1px solid var(--ff-line); border-top: 5px solid var(--ff-red); border-radius: var(--ff-r); box-shadow: 0 18px 50px rgba(28,31,38,.32); padding: 18px 20px 20px; }
.ff-cc__title { font: 800 18px/1.3 var(--ff-head); margin: 0 0 6px; }
.ff-cc__text { font-size: 15px; line-height: 1.55; margin: 0 0 14px; color: var(--ff-ink2); }
.ff-cc__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ff-cc__btn { height: 46px; border-radius: 8px; border: 2px solid var(--ff-ink); background: var(--ff-card); color: var(--ff-ink); font: 700 13.5px var(--ff-head); cursor: pointer; padding: 0 8px; }
.ff-cc__btn:hover { background: var(--ff-tag-tint); }
.ff-cc__prefs { display: none; margin: 0 0 14px; border-top: 1px solid var(--ff-line); padding-top: 12px; }
.ff-cc__prefs.is-open { display: grid; gap: 10px; }
.ff-cc__pref { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.ff-cc__pref input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ff-red); flex: none; }
.ff-cc__pref b { display: block; font-family: var(--ff-head); }

/* ---------- 404 ---------- */
.ff-lost { padding: 70px 0 90px; max-width: 640px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
    .ff-hero__grid, .ff-top--split .ff-top__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .ff-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; }
    .ff-rail { position: static; }
    .ff-rail__h, .ff-rail__note { display: none; }
    .ff-toc { display: flex; gap: 8px; border-left: 0; overflow-x: auto; padding-bottom: 6px; }
    .ff-toc a { border: 1px solid var(--ff-line); border-radius: 999px; background: var(--ff-card); padding: 7px 14px; margin: 0; white-space: nowrap; font-size: 13.5px; }
    .ff-toc a::before { display: none; }
    .ff-toc a:hover, .ff-toc a.is-active { border-color: var(--ff-red); }
    .ff-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
    body.ff-body { font-size: 17px; }
    .ff-mast__strip-r { display: none; }
    .ff-mast__main { grid-template-areas: "logo burger" "nav nav"; grid-template-columns: 1fr auto; align-items: center; justify-items: start; padding-top: 14px; padding-bottom: 14px; }
    .ff-burger { display: inline-flex; justify-self: end; }
    .ff-logo__word { font-size: 26px; }
    .ff-nav { display: none; flex-direction: column; gap: 0; margin-top: 12px; }
    .ff-nav.is-open { display: flex; }
    .ff-nav a { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .ff-hero { padding: 28px 0 34px; }
    .ff-nation { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .ff-nation > *, .ff-nation__tag { grid-column: 1; grid-row: auto; }
    .ff-nation__tag { margin-bottom: 10px; }
    .ff-steps, .ff-two { grid-template-columns: minmax(0, 1fr); }
    .ff-tool { padding: 20px; }
    .ff-tool__row { grid-template-columns: minmax(0, 1fr); }
    .ff-field label { min-height: 0; }
    .ff-kv { grid-template-columns: minmax(0, 1fr); }
    .ff-kv dt { border-bottom: 0; padding-bottom: 2px; }
    .ff-band__row { grid-template-columns: minmax(0, 1fr); }
    .ff-foot__nav ul { grid-template-columns: minmax(0, 1fr); }
    .ff-cc { left: 8px; right: 8px; bottom: 8px; width: auto; }
    .ff-cc__box { padding: 14px 14px 16px; }
    .ff-cc__text { font-size: 14px; margin-bottom: 12px; }
    .ff-cc__btn { font-size: 12.5px; padding: 0 4px; }
}
@media (max-width: 359px) {
    .ff-cc__row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ff-btn, .ff-progress i { transition: none; }
}
