/* ==========================================================================
   backlink.lv – public theme "modern" (rev. 2, 2026-11-08)
   Design language: flat colour blocks, heavy condensed display type,
   square corners, no shadows/gradients. Reference: freimans.com, algas-kalkulators.com.
   Fonts are self-hosted (SIL OFL): Mona Sans (GitHub), Geist (Vercel).
   ========================================================================== */

@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
    src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: swap;
    src: url("../fonts/mona-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/geist-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/geist-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Metric-matched fallbacks: while the web fonts load, Arial (desktop, iOS) or Roboto (Android)
   take the same width and line height as Mona Sans / Geist, so text does not reflow when the
   real font arrives (no layout shift). Ratios measured in the browser on 2026-11-08. */
@font-face { font-family: "Mona Sans Fallback A"; font-style: normal; font-weight: 100 900; src: local("Arial Bold"), local("Arial-BoldMT");
    size-adjust: 66.4%; ascent-override: 164.2%; descent-override: 48.2%; line-gap-override: 0%; }
@font-face { font-family: "Mona Sans Fallback R"; font-style: normal; font-weight: 100 900; src: local("Roboto Bold"), local("Roboto-Bold");
    size-adjust: 66.3%; ascent-override: 164.4%; descent-override: 48.3%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback A"; font-style: normal; font-weight: 100 500; src: local("Arial"), local("ArialMT");
    size-adjust: 102.9%; ascent-override: 98.2%; descent-override: 28.2%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback A"; font-style: normal; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT");
    size-adjust: 99.5%; ascent-override: 101.5%; descent-override: 29.1%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback R"; font-style: normal; font-weight: 100 500; src: local("Roboto"), local("Roboto-Regular");
    size-adjust: 112.7%; ascent-override: 89.6%; descent-override: 25.7%; line-gap-override: 0%; }
@font-face { font-family: "Geist Fallback R"; font-style: normal; font-weight: 600 900; src: local("Roboto Bold"), local("Roboto-Bold");
    size-adjust: 111.1%; ascent-override: 90.9%; descent-override: 26.1%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
    --ink: #101010;
    --paper: #ffffff;
    --field: #f0f0f0;
    --panel: #f4f4f2;
    --muted: #5c5c5c;
    --rule: rgba(16, 16, 16, .14);
    --dark: #121212;
    --dark-2: #1d1d1d;
    --dark-rule: rgba(255, 255, 255, .16);

    /* palette (overridden by [data-palette]) */
    --accent: #2be4a4;
    --on-accent: #101010;

    --display: "Mona Sans", "Mona Sans Fallback A", "Mona Sans Fallback R", "Arial Narrow", Arial, sans-serif;
    --text: "Geist", "Geist Fallback A", "Geist Fallback R", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --gutter: 12px;
    --pad: 12px;   /* side padding inside blocks on phones (same as the outer gutter) */
    --wrap: 1440px;
}
[data-palette="blue"]   { --accent: #2f3dff; --on-accent: #ffffff; }
[data-palette="orange"] { --accent: #ff5a1f; --on-accent: #101010; }
[data-palette="yellow"] { --accent: #f2fa00; --on-accent: #101010; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-y: scroll; } /* always reserve the scrollbar: no layout shift between short and long pages */
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 16px/1.5 var(--text);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
h3 { font-size: 1.6rem; font-weight: 800; }
h4 { font-size: 1.15rem; font-weight: 800; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 99; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 12px; top: 12px; }
.text-break { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.frame { padding: var(--gutter) var(--gutter) 0; }
@media (min-width: 768px) { :root { --gutter: 16px; } }

/* ---------- Type helpers ---------- */
.label { font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: .95rem; letter-spacing: .01em; }
.lead { font-size: 1.08rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0;
    background: var(--ink); color: #fff; cursor: pointer;
    font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em;
    text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-lg { min-height: 60px; padding: 0 28px; font-size: 1.3rem; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.on-dark .btn-outline { color: #fff; border-color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--ink); }
.on-accent .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Tags (square labels) ---------- */
.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
    font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1;
    background: var(--ink); color: #fff; white-space: nowrap; vertical-align: middle;
}
.tag-accent { background: var(--accent); color: var(--on-accent); }
.tag-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.tag-big { height: auto; padding: 7px 10px 5px; font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); font-weight: 900; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.count { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 7px 2px; background: var(--ink); color: #fff; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.count small { font-size: .62em; font-weight: 800; }
.on-accent .count { background: var(--on-accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header .bar { display: flex; align-items: stretch; min-height: 64px; background: var(--accent); color: var(--on-accent); }
.logo { display: inline-flex; align-items: center; padding: 0 18px; color: inherit; text-decoration: none; }
@media (min-width: 768px) { .logo { padding: 0 24px; } }
/* SVG logo (views/layouts/_logo.php). Each size is drawn on its own pixel grid: keep 32 px / 40 px. */
.logo-svg { display: block; width: auto; overflow: visible; }
.logo-svg.s32 { height: 32px; }
.logo-svg.s40 { height: 40px; }
.logo .logo-svg.s40 { display: none; }
@media (min-width: 440px) { .logo .logo-svg.s32 { display: none; } .logo .logo-svg.s40 { display: block; } }
@media (max-width: 359px) { .logo .logo-svg.s32 { height: 28px; } } /* very narrow phones: fit next to the menu button */
.logo-tile, .logo-word { fill: currentColor; }
.logo-glyph { stroke: var(--accent); }
/* The two links of the symbol come apart and join again (4.8 s loop); off for reduced motion. */
.logo-link-a { animation: logo-link-a 4.8s ease-in-out infinite; }
.logo-link-b { animation: logo-link-b 4.8s ease-in-out infinite; }
.logo-joint { animation: logo-joint 4.8s ease-in-out infinite; }
@keyframes logo-link-a { 0%, 8%, 45%, 100% { transform: translate(0, 0); } 20% { transform: translate(1.5px, -1.5px); } }
@keyframes logo-link-b { 0%, 8%, 45%, 100% { transform: translate(0, 0); } 20% { transform: translate(-1.5px, 1.5px); } }
@keyframes logo-joint { 0%, 8%, 45%, 100% { opacity: 1; } 20% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .logo-link-a, .logo-link-b, .logo-joint { animation: none; } }
.main-nav { display: none; flex: 1; align-items: center; justify-content: center; gap: 28px; }
.main-nav a { font-size: .95rem; font-weight: 500; color: inherit; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: currentColor; }
.header-cta { display: none; align-items: center; padding: 0 24px; background: var(--ink); color: #fff; text-decoration: none;
    font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; line-height: 1; }
.header-cta:hover { background: var(--paper); color: var(--ink); }
.nav-toggle { margin-left: auto; width: 64px; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.nav-toggle .burger, .nav-toggle .burger::before, .nav-toggle .burger::after { display: block; width: 24px; height: 2.5px; background: currentColor; content: ""; }
.nav-toggle .burger { position: relative; }
.nav-toggle .burger::before { position: absolute; left: 0; top: -7px; }
.nav-toggle .burger::after { position: absolute; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
.mobile-nav { display: none; background: var(--ink); color: #fff; padding: 8px 18px 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--dark-rule); color: #fff; text-decoration: none; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.mobile-nav .btn { margin-top: 16px; width: 100%; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
@media (min-width: 1024px) {
    .main-nav { display: flex; }
    .header-cta { display: inline-flex; }
    .nav-toggle, .mobile-nav, .mobile-nav.open { display: none; }
}
/* "Add website" on smaller screens: its own full-width row under the bar on phones,
   next to the menu button on tablets. Hidden while the menu (which has the same button) is open. */
@media (max-width: 599px) {
    .site-header .bar { flex-wrap: wrap; align-content: flex-start; }
    .site-header .bar .logo, .site-header .bar .nav-toggle { min-height: 64px; }
    .header-cta { display: flex; order: 3; flex: 1 0 100%; justify-content: center; gap: 10px; min-height: 48px; padding: 0 var(--pad); }
    .header-cta::after { content: "\2192"; }
    .site-header:has(.mobile-nav.open) .header-cta { display: none; }
}
@media (min-width: 600px) and (max-width: 1023px) {
    .header-cta { display: inline-flex; margin-left: auto; }
    .header-cta + .nav-toggle { margin-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; } /* only vertical: .section is often combined with .wrap */
@media (min-width: 900px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.band { background: var(--dark); color: #fff; margin: 0 var(--gutter); }
.band-panel { background: var(--panel); margin: 0 var(--gutter); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.head p { margin: 0; max-width: 56ch; }
@media (max-width: 599px) { .head { flex-direction: column; align-items: flex-start; } } /* same height with any font: no wrap that depends on glyph widths */

/* ---------- Page head ---------- */
.page-head { padding: 40px 0 30px; border-bottom: 2px solid var(--ink); }
@media (min-width: 900px) { .page-head { padding: 64px 0 40px; } }
.page-head h1 { display: inline; }
.page-head .tag-big { margin-left: 10px; vertical-align: .4em; }
.page-head .lead { margin: 20px 0 0; }
.page-head .row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }

/* ---------- Hero (home) ---------- */
.hero { display: grid; gap: 40px; padding: 40px 0 64px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; padding: 64px 0 96px; align-items: start; } }
.hero h1 { display: inline; }
.hero h1 + .tag-big { margin-left: 12px; vertical-align: .55em; }
.hero .lead { margin: 24px 0 30px; }

/* ---------- Fields (flat, grey) ---------- */
.field { margin-bottom: 20px; }
.field > label, .field > .flabel { display: block; margin-bottom: 8px; font-weight: 600; font-size: .95rem; }
.field .hint { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 0;
    background: var(--field); color: var(--ink); font: 500 1.02rem/1.4 var(--text);
    transition: box-shadow .12s, background-color .12s;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
    background-image: 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='%23101010' stroke-width='2.4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; }
input:focus, select:focus, textarea:focus { outline: none; background-color: #e8e8e8; box-shadow: inset 0 -3px 0 var(--ink); }
input.error, select.error, textarea.error { box-shadow: inset 0 -3px 0 #d0021b; background-color: #fff0f0; }
label.error { color: #b00016; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.searchbar { display: flex; flex-wrap: wrap; }
.searchbar input[type="search"] { flex: 1 1 240px; width: auto; min-height: 64px; font: 800 1.55rem/1 var(--display); font-stretch: 75%; }
.searchbar input::placeholder { color: #8d8d8d; font-weight: 700; }
.searchbar .btn { min-height: 64px; }
@media (max-width: 479px) { .searchbar .btn { width: 100%; } }

/* segmented switch (two big options) */
.segmented { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); margin-top: 14px; }
.segmented > a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 12px; text-align: center;
    font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; text-decoration: none; }
.segmented > a:first-child { background: var(--ink); color: #fff; }
.segmented > a:hover { background: var(--accent); color: var(--on-accent); }

/* ---------- Panel (result-panel style) ---------- */
.panel { background: var(--panel); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); }
.panel-head h2, .panel-head h3 { font-size: 1.4rem; font-weight: 900; }
.panel-head a { flex: 0 0 auto; color: inherit; font-family: var(--display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; text-decoration: none; box-shadow: inset 0 0 0 2px currentColor; padding: 5px 10px 4px; }
.panel-head a:hover { background: var(--ink); color: #fff; box-shadow: none; }
.panel-head.dark { background: var(--ink); color: #fff; }
.panel-body { padding: 6px 18px 18px; }
.panel-foot { padding: 18px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { border-bottom: 1px solid var(--rule); }
.rows > li:last-child { border-bottom: 0; }
.rows .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; color: inherit; text-decoration: none; }
.rows a.row:hover .name strong { text-decoration: underline; }
.rows .name { min-width: 0; }
.rows .name strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .name small { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .end { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px -18px -18px; padding: 14px 18px; background: var(--accent); color: var(--on-accent); }
.total .label { font-size: 1.2rem; }
.total .count { font-size: 1.5rem; background: var(--on-accent); color: var(--accent); }

/* ---------- Category grid (table of blocks) ---------- */
.cat-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-grid a { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 150px; padding: 18px 20px;
    border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-decoration: none; color: var(--ink); }
.cat-grid a:hover { background: var(--accent); color: var(--on-accent); }
.cat-grid .cat-name { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 1.9rem; line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.cat-grid .cat-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }

/* ---------- Listing cards ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; color: inherit; background: var(--panel); }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.card h3 { font-size: 1.5rem; text-transform: none; line-height: 1; overflow-wrap: anywhere; }
.card .domain { font-size: .86rem; color: var(--muted); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .tags { margin-top: auto; padding-top: 6px; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.on-dark .card { background: var(--dark-2); }
.on-dark .card .domain, .on-dark .card p { color: #b9b9b9; }
.on-dark .card .tag:not(.tag-accent):not(.tag-line) { background: #fff; color: var(--ink); }

/* thumbnail: flat block with initials, screenshot swapped in when it exists */
.thumb { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; background: var(--field); color: var(--ink); }
.thumb .ini { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 3.4rem; line-height: 1; text-transform: uppercase; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.thumb.is-premium { background: var(--accent); color: var(--on-accent); }
.on-dark .thumb { background: #2a2a2a; color: #fff; }
.on-dark .thumb.is-premium { background: #262626; color: var(--accent); }
.thumb.sm { width: 48px; height: 48px; aspect-ratio: auto; flex: 0 0 48px; }
.thumb.sm .ini { font-size: 1.2rem; }

/* ---------- Result list (category / search / country) ---------- */
.results { border-top: 2px solid var(--ink); }
.result { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding: 24px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .result { grid-template-columns: 168px minmax(0, 1fr); gap: 24px; } }
.result h3 { font-size: 2rem; text-transform: none; line-height: 1; margin: 10px 0 6px; overflow-wrap: anywhere; }
.result h3 a { text-decoration: none; }
.result h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.result .domain { font-size: .9rem; color: var(--muted); }
.result p { margin: 10px 0 16px; max-width: 72ch; }
.result .actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 24px; }
@media (min-width: 1024px) {
    .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-top: 44px; }
    .layout.side-left { grid-template-columns: 300px minmax(0, 1fr); }
    .sticky { position: sticky; top: 16px; }
}
.side { display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.cta-block { background: var(--accent); color: var(--on-accent); padding: 24px; }
.cta-block h3 { font-size: 2.1rem; margin-bottom: 12px; }
.cta-block p { font-size: .95rem; }
.cta-block .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 24px 0 8px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .step { padding: 28px 28px 8px 0; border-bottom: 0; } .step + .step { padding-left: 28px; border-left: 1px solid var(--rule); } }
.step .num { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 4.4rem; line-height: .85; }
.step h3 { font-size: 2rem; margin: 16px 0 12px; }
.step p { color: var(--muted); }
.on-dark .step p { color: #b9b9b9; }
.on-dark .steps, .on-dark .step { border-color: var(--dark-rule); }
.on-dark .steps { border-top-color: #fff; }

/* ---------- Plans ---------- */
.plans { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 28px; background: var(--panel); }
@media (min-width: 900px) { .plan { padding: 36px; } }
.plan.featured { background: var(--accent); color: var(--on-accent); }
.plan .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plan h3 { font-size: 2.6rem; }
.plan .price { margin: 24px 0 6px; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: clamp(4rem, 3rem + 4vw, 6.6rem); line-height: .85; }
.plan .price-note { font-size: .92rem; margin-bottom: 22px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; border-top: 2px solid currentColor; }
.plan li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.plan.featured li { border-bottom-color: currentColor; border-bottom-width: 1px; opacity: 1; }
.plan li .mark { width: 18px; flex: 0 0 18px; font-weight: 800; }
.plan li.no { opacity: .45; }
.plan .btn { margin-top: auto; }
.plan.featured .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pay-note { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- FAQ (arrow list) ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq:has(> .faq-group) { border-top: 0; }
.faq .faq-group { padding: 30px 0 12px; border-bottom: 2px solid var(--ink); font-size: 1.15rem; letter-spacing: .02em; }
.faq .faq-group:first-child { padding-top: 0; }
.faq .faq-last { margin-top: 24px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; gap: 14px; align-items: baseline; padding: 18px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "→"; font-weight: 700; transition: transform .15s; }
.faq details[open] summary::before { transform: rotate(90deg); }
.faq details p { margin: 0 0 20px 30px; max-width: 72ch; color: var(--muted); }

/* ---------- Profile ---------- */
.profile { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding: 36px 0; border-bottom: 2px solid var(--ink); }
@media (min-width: 900px) { .profile { grid-template-columns: 360px minmax(0, 1fr); gap: 48px; padding: 52px 0 44px; align-items: end; } }
.profile .thumb .ini { font-size: 6rem; }
.profile h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.8rem); text-transform: none; overflow-wrap: anywhere; margin: 14px 0 12px; }
.profile .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.side-links { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.side-links a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.side-links a::after { content: "→"; }
.side-links a:hover { text-decoration: underline; }

/* ---------- Submit form ---------- */
.form-step { margin-bottom: 44px; }
.form-step > h2 { font-size: 2.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-step > h2 .n { font-size: 1rem; padding: 5px 8px 4px; background: var(--ink); color: #fff; }
.plan-pick { display: grid; grid-template-columns: minmax(0, 1fr); border: 2px solid var(--ink); }
@media (min-width: 640px) { .plan-pick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.plan-pick label { position: relative; display: block; padding: 18px 20px 20px; cursor: pointer; }
@media (min-width: 640px) { .plan-pick label + label { border-left: 2px solid var(--ink); } }
@media (max-width: 639px) { .plan-pick label + label { border-top: 2px solid var(--ink); } }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick .pp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-pick .pp-name { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.plan-pick .pp-price { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 2.3rem; line-height: 1; }
.plan-pick .pp-desc { display: block; margin: 8px 0 12px; font-size: .92rem; }
.plan-pick label.is-checked, .plan-pick label:has(input:checked) { background: var(--ink); color: #fff; }
.plan-pick label:hover:not(.is-checked) { background: var(--field); }
.plan-pick label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -6px; }
.chosen-cat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: var(--field); font-weight: 600; }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.captcha img { float: none !important; }
.captcha button, .captcha .btn { min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 600 .95rem var(--text); text-transform: none; cursor: pointer; }
.captcha .col-xs-4 { flex: 1 1 160px; max-width: 240px; padding: 0; }
.secure { margin-top: 14px; font-size: .86rem; color: var(--muted); }

/* ---------- Alerts ---------- */
.alert { position: relative; margin: 0 0 18px; padding: 14px 48px 14px 16px; border-left: 6px solid var(--ink); background: var(--field); font-weight: 500; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert p { margin: 0; font-weight: 700; }
.alert-success { border-left-color: #12a150; }
.alert-danger { border-left-color: #d0021b; background: #fff0f0; }
.alert-warning { border-left-color: #f0a400; }
.alert .close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }
.flash { padding-top: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; }
.pagination a { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 2px solid var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: 1.1rem; }
.pagination a:hover { background: var(--accent); color: var(--on-accent); }
.pagination .active a { background: var(--ink); color: #fff; }
.pagination .disabled a { opacity: .3; pointer-events: none; }

/* ---------- Countries ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.letters a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); text-decoration: none; font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; }
.letters a:hover { background: var(--accent); color: var(--on-accent); }
.letters a.active { background: var(--ink); color: #fff; }
.country-rows { columns: 1; column-gap: 40px; }
@media (min-width: 640px) { .country-rows { columns: 2; } }
@media (min-width: 1024px) { .country-rows { columns: 3; } }
.country-rows a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; break-inside: avoid; font-weight: 500; }
.country-rows a:hover span:first-child { text-decoration: underline; }

/* ---------- Order status ---------- */
.status h2 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); margin-bottom: 16px; }
.track { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.track li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-weight: 600; }
.track li.todo { color: var(--muted); font-weight: 400; }

/* ---------- Footer (accent block with big black CTA bar) ---------- */
.site-footer { background: var(--accent); color: var(--on-accent); margin: 72px var(--gutter) var(--gutter); padding: 28px 0 20px; }
.site-footer .footer-cta { display: block; padding: 24px 20px 20px; background: var(--ink); color: #fff; text-align: center; text-decoration: none;
    font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.6rem); line-height: .9; text-transform: uppercase; }
.site-footer .footer-cta:hover { background: var(--paper); color: var(--ink); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 34px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid .about { grid-column: auto; } }
.site-footer h4 { font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.site-footer a { color: inherit; }
.footer-logo { display: inline-block; margin-bottom: 14px; color: inherit; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 36px; padding-top: 16px; border-top: 2px solid currentColor; font-size: .86rem; }
.footer-bottom .badges { display: flex; gap: 8px; align-items: center; }
.footer-bottom img { display: block; }

/* ---------- Misc ---------- */
.code { position: relative; margin-top: 10px; }
.code textarea { min-height: 92px; padding-right: 100px; font: 400 .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code .btn { position: absolute; right: 8px; top: 8px; }
.banner-row { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.banner-row img { display: block; margin-bottom: 8px; max-width: 100%; height: auto; }
.empty { padding: 40px 0; border-top: 2px solid var(--ink); }
.empty h2 { margin-bottom: 14px; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }

/* legacy cookie banner */
.cc_banner-wrapper .cc_banner { font-family: var(--text) !important; border-radius: 0 !important; }
.cc_banner .cc_btn { border-radius: 0 !important; background: var(--ink) !important; color: #fff !important; font-family: var(--display) !important; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* two panels side by side */
.two-col { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 639px) {
    .hero h1 + .tag-big, .page-head .tag-big { margin-left: 0; margin-top: 12px; }
}


/* ==========================================================================
   rev. 3 – hero with screenshot mosaic, real screenshots, premium highlight
   ========================================================================== */
.thumb.has-shot .ini { visibility: hidden; }
.thumb.has-shot { background: #ddd; }

/* Hero block: dark, inset like the header */
.hero-block { margin: var(--gutter) var(--gutter) 0; background: var(--dark); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 680px; } }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 40px 20px 36px; }
@media (min-width: 768px) { .hero-copy { padding: 64px 48px; } }
@media (min-width: 1500px) { .hero-copy { padding-left: max(64px, calc((100vw - var(--wrap)) / 2 + 24px - var(--gutter))); } }
.hero-copy h1 { color: #fff; font-size: clamp(3rem, 1.6rem + 5.4vw, 7.4rem); }
.hero-copy h1 + .tag-big { margin-left: 12px; vertical-align: .55em; }
.hero-copy .lead { margin: 26px 0 30px; color: #cfcfcf; }
.hero-copy .lead strong { color: #fff; }
.hero-block .searchbar input[type="search"] { background: #fff; }
.hero-block .searchbar input[type="search"]:focus { box-shadow: inset 0 -4px 0 var(--accent); }
.hero-block .searchbar .btn { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.hero-block .searchbar .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-block .segmented { border-color: #fff; }
.hero-block .segmented > a { color: #fff; }
.hero-block .segmented > a:first-child { background: #fff; color: var(--ink); }
.hero-block .segmented > a:hover { background: var(--accent); color: var(--on-accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--dark-rule); }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--display); font-stretch: 75%; font-weight: 900; font-size: 2.8rem; line-height: .85; color: var(--accent); }
.hero-stats span { font-size: .85rem; color: #bdbdbd; }

/* Mosaic: three staggered columns of real screenshots */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 20px 24px; }
.mosaic .mcol { display: contents; }
.mosaic .tile { display: none; }
.mosaic .mcol:nth-child(-n+2) .tile:nth-child(-n+2) { display: block; }   /* phones: 2 x 2 */
@media (min-width: 640px) and (max-width: 1099px) {
    .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 48px 48px; }
    .mosaic .mcol .tile:first-child { display: block; }                       /* tablets: 3 x 1 */
    .mosaic .mcol:nth-child(-n+2) .tile:nth-child(2) { display: none; }
}
@media (min-width: 1100px) {
    .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 12px 0 0; align-items: start; max-height: 680px; overflow: hidden; }
    .mosaic .mcol { display: grid; gap: 12px; }
    .mosaic .mcol .tile { display: block; }
    .mosaic .mcol:nth-child(1) { margin-top: -40px; }
    .mosaic .mcol:nth-child(2) { margin-top: 56px; }
    .mosaic .mcol:nth-child(3) { margin-top: -96px; }
}
.tile { display: block; background: #262626; color: #fff; text-decoration: none; }
.tile .thumb { aspect-ratio: 4 / 3; }
.tile .cap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 7px 10px; background: #000; font-size: .82rem; }
.tile .cap span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:hover .cap { background: var(--accent); color: var(--on-accent); }
.tile:hover .cap .tag-accent { background: var(--ink); color: #fff; }

/* Premium highlight in rows and result lists */
/* premium: only the PREMIUM tag carries the accent colour */
.rows.two-cols { columns: 1; column-gap: 36px; }
@media (min-width: 900px) { .rows.two-cols { columns: 2; } }
.rows.two-cols > li { break-inside: avoid; }

.card .tags:empty { display: none; }

/* sample screenshots inside category tiles */
.cat-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cat-shots .thumb .ini { font-size: 1.3rem; }
.cat-grid a { min-height: 0; }
.cat-grid a:hover .cat-shots .thumb { outline: 2px solid var(--on-accent); outline-offset: -2px; }

/* contact panel on the listing page */
.contact-panel .rows .name small { display: block; color: var(--muted); font-size: .8rem; }
.contact-panel .rows .name strong { overflow-wrap: anywhere; white-space: normal; }

/* Popular searches (link list, 4 columns) */
.popular { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 36px; border-top: 2px solid var(--ink); }
@media (min-width: 640px) { .popular { columns: 2; } }
@media (min-width: 1024px) { .popular { columns: 4; } }
.popular li { break-inside: avoid; }
.popular a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.popular a:hover span:first-child { text-decoration: underline; text-decoration-thickness: 2px; }
.popular a span:last-child { opacity: .45; }
.popular a:hover span:last-child { opacity: 1; }

/* Searchable category picker (static/js/category-picker.js) */
.cpick { position: relative; }
.cpick-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; min-width: 0 !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.cpick .cpick-input { padding-left: 46px;
    background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center; }
.cpick.has-value .cpick-input { font-weight: 600; }
.cpick-list { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40; max-height: 380px; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: #fff; border: 2px solid var(--ink); }
.cpick.open .cpick-list { display: block; }
.cpick-list li { padding: 9px 14px; border-bottom: 1px solid var(--rule); cursor: pointer; }
.cpick-list li strong { font-weight: 600; }
.cpick-list li small { display: block; margin-top: 1px; color: var(--muted); font-size: .82rem; }
.cpick-list li mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; font-weight: 800; }
.cpick-list li.tree.d2 { background: var(--panel); }
.cpick-list li.tree.d2 strong { font-family: var(--display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: 1.05rem; }
.cpick-list li.tree.d3 { padding-left: 28px; }
.cpick-list li.tree.d4 { padding-left: 44px; }
.cpick-list li.tree.d5 { padding-left: 60px; }
.cpick-list li.selected strong::after { content: " ✓"; }
.cpick-list li.active, .cpick-list li.cpick-item:hover { background: var(--accent); color: var(--on-accent); }
.cpick-list li.active small, .cpick-list li.cpick-item:hover small { color: inherit; opacity: .75; }
.cpick-list li.cpick-empty { color: var(--muted); cursor: default; }

/* footer vote link (top.ieej.lv) right after "Payments by Stripe" */
.footer-meta { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .vote-link { display: inline-grid; place-items: center; width: 26px; height: 26px; color: inherit; }
.site-footer .vote-link:hover { background: var(--ink); color: var(--accent); }

/* Listing guidelines */
.rules { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rules { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.rules-title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rule-list li::before { grid-row: span 2; font-weight: 800; line-height: 1.5; }
.rule-list.yes li::before { content: "✓"; color: var(--ink); }
.rule-list.no li::before { content: "✕"; color: var(--muted); }
.rule-list strong { font-weight: 700; }
.rule-list span { color: var(--muted); margin-top: 2px; }
.rules-outro { margin: 36px 0 0; max-width: 72ch; color: var(--muted); }
.rules-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

/* Notes added with the 2026-11 copy revision */
.form-step > .step-note { margin: -6px 0 18px; max-width: 70ch; font-size: .92rem; color: var(--muted); }
.after-pay { margin-top: 40px; border-top: 2px solid var(--ink); }
.after-pay h3 { font-size: 1.3rem; padding: 18px 0 6px; }
.after-pay ol { list-style: none; counter-reset: ap; margin: 0; padding: 0; }
.after-pay li { counter-increment: ap; display: grid; grid-template-columns: 34px minmax(0, 150px) minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.after-pay li::before { content: counter(ap, decimal-leading-zero); font-family: var(--display); font-stretch: 75%; font-weight: 800; font-size: .95rem; }
.after-pay li span { color: var(--muted); }
@media (max-width: 599px) { .after-pay li { grid-template-columns: 34px minmax(0, 1fr); } .after-pay li span { grid-column: 2; } }
.listing-note { margin-bottom: 18px; padding: 14px 0 0; border-top: 2px solid var(--ink); font-size: .9rem; }
.listing-note strong { display: block; margin-bottom: 4px; }
.listing-note p { margin: 0; color: var(--muted); }
.list-note { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.req { position: relative; top: .2em; color: var(--accent); font-weight: 900; font-size: 1.35em; line-height: 0; }
.req-legend { margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.cat-subs { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.cat-subs span { padding: 4px 9px; border: 1px solid var(--rule); font-size: .8rem; line-height: 1.3; white-space: nowrap; }
.cat-subs .more { border-color: transparent; padding-left: 2px; color: var(--muted); }
.cat-grid a:hover .cat-subs span { border-color: var(--on-accent); }
.cat-grid a:hover .cat-subs .more { border-color: transparent; color: inherit; }
.site-footer .wrap > .footer-grid:first-child { margin-top: 8px; }

/* Legal pages */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); margin: 38px 0 12px; }
.legal h3 { font-family: var(--text); font-stretch: 100%; text-transform: none; font-size: 1.05rem; font-weight: 700; margin: 22px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal-updated { color: var(--muted); font-size: .9rem; margin: 0; }
.legal-company { padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(0, 0, 0, .04); }
.legal-links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); }

/* ---------- Phones: one side padding everywhere (--pad, 12 px) ---------- */
@media (max-width: 767px) {
    .wrap { padding-left: var(--pad); padding-right: var(--pad); }
    .logo { padding-left: var(--pad); padding-right: var(--pad); }
    .nav-toggle { width: calc(24px + 2 * var(--pad)); }
    .mobile-nav { padding-left: var(--pad); padding-right: var(--pad); padding-bottom: var(--pad); }
    .mobile-nav .btn { padding-left: var(--pad); padding-right: var(--pad); }
    .hero-copy { padding-left: var(--pad); padding-right: var(--pad); }
    .mosaic { padding-left: var(--pad); padding-right: var(--pad); }
    .panel-head { padding-left: var(--pad); padding-right: var(--pad); }
    .panel-body { padding-left: var(--pad); padding-right: var(--pad); padding-bottom: var(--pad); }
    .panel-foot { padding: var(--pad); }
    .total { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); margin-bottom: calc(-1 * var(--pad)); padding-left: var(--pad); padding-right: var(--pad); }
    .cat-grid a { padding-left: var(--pad); padding-right: var(--pad); }
    .card .body { padding-left: var(--pad); padding-right: var(--pad); }
    .cta-block { padding-left: var(--pad); padding-right: var(--pad); }
    .plan { padding-left: var(--pad); padding-right: var(--pad); }
    .plan-pick label { padding-left: var(--pad); padding-right: var(--pad); }
    .chosen-cat { padding-left: var(--pad); padding-right: var(--pad); }
    .alert { padding-left: var(--pad); }
}
