/* ===== OperoGames — dark gaming magazine theme =====
   Brand: charcoal #323232 + marigold amber #F7C00E (from X profile). */
:root {
    --bg: #1a1a1a;
    --surface: #242424;
    --surface-2: #2c2c2c;
    --charcoal: #323232;
    --ink: #f2f2f0;
    --ink-soft: #a2a2a0;
    --ink-dim: #6f6f6d;
    --line: #383838;
    --line-soft: #2f2f2f;
    --accent: #f7c00e;
    --accent-dim: #b8900a;
    --accent-ink: #1a1a1a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 6px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.35);
    --glow: 0 0 0 1px rgba(247,192,14,.35), 0 10px 30px rgba(247,192,14,.10);
    --sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    --brand: "Outfit", "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(180deg, #262626, var(--charcoal));
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.site-header .bar {
    max-width: 1220px;
    margin: 0 auto;
    padding: 15px 22px 11px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; display: block; }
.brand-name {
    font-family: var(--brand);
    font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: var(--ink);
}
.brand-accent { color: var(--accent); }
.brand-tag {
    color: var(--accent); font-size: 11.5px; font-weight: 800;
    letter-spacing: .18em; align-self: center;
}
@media (max-width: 760px) { .brand-tag { display: none; } }

.search { margin-left: auto; flex: 0 0 auto; }
.search input {
    width: 240px; padding: 8px 16px;
    border: 1px solid var(--line); border-radius: 999px;
    font-size: 14px; background: #1c1c1c; color: var(--ink);
}
.search input::placeholder { color: var(--ink-dim); }
.search input:focus { outline: none; border-color: var(--accent); background: #171717; }
@media (max-width: 620px) { .site-header .bar { flex-wrap: wrap; } .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }

.sect-nav {
    max-width: 1220px; margin: 0 auto;
    padding: 0 22px 12px;
    display: flex; gap: 8px; overflow-x: auto;
    scrollbar-width: none;
}
.sect-nav::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    padding: 6px 15px;
    border-radius: 999px;
    font-family: var(--brand);
    font-size: 13.5px; font-weight: 700; white-space: nowrap;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: #202020;
    transition: all .14s ease;
}
.chip:hover { color: var(--ink); border-color: var(--accent-dim); }
.chip.is-active { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ---------- Trending rail ---------- */
.trending { margin: 22px 0 6px; }
.trending-head {
    font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
}
.trending-head .flame { filter: saturate(1.2); }
.trending-rail {
    display: flex; gap: 12px; overflow-x: auto;
    /* top/bottom padding leaves room for the hover lift + shadow (overflow-x forces overflow-y:auto) */
    padding: 6px 2px 12px;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.trending-rail::-webkit-scrollbar { height: 6px; }
.trending-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.trend-card {
    position: relative;
    flex: 0 0 232px; width: 232px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .14s ease, transform .14s ease;
}
.trend-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--glow); }
.trend-card img, .trend-ph { width: 100%; height: 108px; object-fit: cover; display: block; }
.trend-ph { background: linear-gradient(135deg, #2f2f2f, #202020); }
.trend-body { padding: 9px 11px 11px; display: flex; flex-direction: column; gap: 6px; }
.trend-meta { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; }
.trend-badge {
    font-family: var(--brand); flex: 0 0 auto;
    font-size: 10px; font-weight: 700; letter-spacing: .02em;
    padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.hype-surging { background: rgba(247,192,14,.18); color: var(--accent); }
.hype-rising  { background: rgba(78,201,120,.16); color: #7fdca0; }
.hype-steady  { background: rgba(160,160,160,.16); color: #cfcfcd; }
.hype-cooling { background: rgba(120,120,120,.12); color: var(--ink-dim); }
.trend-count {
    font-size: 10.5px; font-weight: 600; color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.trend-title {
    font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Page heading ---------- */
.page-head {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    margin: 22px 0 18px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 12px;
}
.page-head h1 { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.page-head .count { color: var(--ink-dim); font-size: 12.5px; }
.head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.platfilter { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pf {
    padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    color: var(--ink-soft); border: 1px solid var(--line); background: #202020; transition: all .14s ease;
}
.pf:hover { color: var(--ink); border-color: var(--accent-dim); }
.pf.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #202020; }
.viewtoggle a { padding: 5px 14px; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.viewtoggle a.on { background: var(--accent); color: var(--accent-ink); }
.viewtoggle a:not(.on):hover { color: var(--ink); }

/* ---------- Tags & badges ---------- */
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag {
    font-family: var(--brand);
    font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 3px 8px; border-radius: 5px; line-height: 1.4;
}
.tag.sources { background: rgba(247,192,14,.14); color: var(--accent); }

/* section colors */
.sect-news     { background: rgba(160,160,160,.16); color: #cfcfcd; }
.sect-reviews  { background: rgba(247,192,14,.16); color: var(--accent); }
.sect-esports  { background: rgba(168,110,255,.18); color: #c3a0ff; }
.sect-hardware { background: rgba(64,196,214,.16); color: #6fd8e6; }
.sect-deals    { background: rgba(78,201,120,.16); color: #7fdca0; }

/* platform colors */
.plat { background: #2b2b2b; color: var(--ink-soft); border: 1px solid var(--line); }
.plat-pc          { color: #f0c04a; border-color: rgba(247,192,14,.4); }
.plat-playstation { color: #7aa8ff; border-color: rgba(70,120,255,.4); }
.plat-xbox        { color: #7fdca0; border-color: rgba(60,180,90,.4); }
.plat-nintendo    { color: #ff8a8a; border-color: rgba(224,64,64,.4); }
.plat-mobile      { color: #cfcfcd; border-color: var(--line); }

.sect-badge {
    position: absolute; top: 10px; left: 10px;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    padding: 4px 9px; border-radius: 5px; backdrop-filter: blur(3px);
}

/* Image credit — which source the story's picture came from */
.img-credit {
    position: absolute; z-index: 2;
    font-family: var(--brand);
    font-size: 10px; font-weight: 600; letter-spacing: .01em;
    color: #ededeb;
    background: rgba(10,10,10,.62);
    backdrop-filter: blur(3px);
    padding: 2px 7px; border-radius: 999px;
    max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    pointer-events: none;
}
.hero .img-credit { top: 14px; right: 14px; font-size: 11px; padding: 3px 9px; }
.card-media .img-credit { bottom: 8px; right: 8px; }
.trend-card .img-credit { top: 6px; right: 6px; font-size: 9px; padding: 2px 6px; max-width: 70%; }

/* ---------- Hero ---------- */
.hero {
    display: block; position: relative; border-radius: var(--radius); overflow: hidden;
    margin-bottom: 22px; border: 1px solid var(--line); background: var(--surface);
    min-height: 300px; transition: border-color .15s ease;
}
.hero:hover { border-color: var(--accent-dim); }
.hero-img { width: 100%; height: 460px; object-fit: cover; display: block; }
.hero-ph { background: linear-gradient(135deg, #2f2f2f, #1c1c1c); }
.hero-body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 30px 26px;
    background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(16,16,16,.72) 45%, rgba(12,12,12,.94) 100%);
}
.hero-title {
    font-family: var(--display);
    font-size: 34px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em;
    margin: 12px 0 8px; max-width: 900px;
    text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.hero-perex {
    margin: 0; color: #d8d8d6; font-size: 15px; line-height: 1.5; max-width: 760px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { margin-top: 12px; color: var(--ink-soft); font-size: 12.5px; font-weight: 600; }
@media (max-width: 640px) {
    .hero-img { height: 280px; }
    .hero-title { font-size: 24px; }
    .hero-body { padding: 20px; }
}

/* ---------- Card grid ---------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-bottom: 52px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-dim); box-shadow: var(--glow); }
/* Layered media: the branded placeholder always sits behind; the image (if any) covers it and,
   on load failure, is hidden via .noimg so a clean logo slate shows instead of a broken glyph. */
.card-media { position: relative; display: block; height: 172px; overflow: hidden; }
.card-media > .thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .thumb-img { object-fit: cover; background: #202020; }
.card-media.noimg .thumb-img, .card-media.noimg .img-credit { display: none; }
/* Branded slate for image-less cards / hero / trending: one centred logo watermark.
   Selectors are doubled (.thumb.thumb-ph, .hero-img.hero-ph) to outrank the base
   `.card .thumb { display:block }` / `.hero-img` rules and actually centre the mark. */
.thumb.thumb-ph, .hero-img.hero-ph, .trend-ph {
    display: flex; align-items: center; justify-content: center;
}
.thumb.thumb-ph { background: radial-gradient(80% 80% at 50% 42%, rgba(247,192,14,.09), transparent 62%), linear-gradient(140deg, #2c2c2c, #181818); }
.hero-img.hero-ph { background: radial-gradient(55% 70% at 50% 45%, rgba(247,192,14,.08), transparent 60%), linear-gradient(140deg, #2b2b2b, #161616); }
.trend-ph { background: radial-gradient(90% 90% at 50% 45%, rgba(247,192,14,.09), transparent 62%), linear-gradient(140deg, #2c2c2c, #1b1b1b); }
.ph-mark { display: block; flex: 0 0 auto; opacity: .5; filter: drop-shadow(0 3px 12px rgba(0,0,0,.35)); }
.thumb.thumb-ph .ph-mark { width: 58px; height: 58px; }
.hero-img.hero-ph .ph-mark { width: 104px; height: 104px; }
.trend-ph .ph-mark { width: 40px; height: 40px; }
.card .body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -.01em; }
.card h3 a:hover { color: var(--accent); }
.card-perex {
    margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.meta-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--ink-dim); font-size: 12px; }

.empty {
    background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 44px; text-align: center; color: var(--ink-soft); margin-bottom: 48px;
}

/* ---------- Story detail ---------- */
.back { display: inline-block; color: var(--ink-soft); font-size: 14px; font-weight: 600; margin: 22px 0 12px; }
.back:hover { color: var(--accent); }
.story-head { border-bottom: 2px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.story-head h1 { font-family: var(--display); font-size: 33px; font-weight: 700; line-height: 1.14; margin: 12px 0 0; letter-spacing: -.02em; }
.story-sub { color: var(--ink-soft); margin: 12px 0 0; font-size: 14px; }
.story-sub strong { color: var(--ink); }

/* Original cross-source synthesis (templated, no LLM) */
.synthesis {
    margin: 18px 0 0;
    padding: 14px 18px;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink);
    font-size: 15.5px; line-height: 1.55;
}

/* ---------- Covered-by source strip ---------- */
.covered-by { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 8px; flex-wrap: wrap; }
.cb-label {
    font-family: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .1em; color: var(--ink-dim); flex: 0 0 auto;
}
.cb-sources { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px 5px 8px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 13px; font-weight: 600; color: var(--ink);
    transition: border-color .14s ease, background .14s ease;
}
.cb-chip:hover { border-color: var(--accent); background: var(--surface-2); }
.cb-fav { width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto; background: #333; }
.cb-name { white-space: nowrap; }
.cb-count {
    font-family: var(--brand); font-size: 10.5px; font-weight: 800;
    background: rgba(247,192,14,.16); color: var(--accent);
    padding: 1px 6px; border-radius: 999px;
}

.sources-heading {
    font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .01em;
    text-transform: uppercase; color: var(--ink-soft);
    margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}

.sources-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 52px; }
.src {
    display: flex; gap: 15px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line);
    padding: 15px 16px; transition: background .12s ease;
}
.src:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.src:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.src + .src { border-top: none; }
.src:hover { background: var(--surface-2); }
.src .s-thumb { width: 116px; height: 76px; object-fit: cover; border-radius: 7px; flex: 0 0 auto; }
.src .s-main { min-width: 0; }
.src .s-title { font-family: var(--display); font-size: 16.5px; font-weight: 600; line-height: 1.34; margin: 3px 0 0; }
.src:hover .s-title { color: var(--accent); }
.src .s-meta { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12.5px; }
.src .s-fav { width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto; background: #333; }
.src .s-source { font-family: var(--brand); font-weight: 400; color: var(--accent); }
.src .s-when { color: var(--ink-dim); }
.src .s-when::before { content: "·"; margin-right: 8px; color: var(--line); }
.src .s-perex {
    margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 520px) { .src .s-thumb { width: 88px; height: 60px; } .story-head h1 { font-size: 25px; } }

/* ---------- Game tagging (Platform integration) ---------- */
/* Amber game chip shown on cards / hero / story detail. As a link it stays clickable. */
.tag.game-tag {
    background: rgba(247,192,14,.14); color: var(--accent);
    border: 1px solid rgba(247,192,14,.4);
    text-transform: none; letter-spacing: 0; font-weight: 700;
    max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.tag.game-tag:hover { background: rgba(247,192,14,.24); }
.tag.genre { background: #2b2b2b; color: var(--ink-soft); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; }

/* "In this story" game strip on the story detail page */
.in-games { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 4px; flex-wrap: wrap; }
.ig-label { font-family: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); }
.ig-list { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-chip {
    font-family: var(--brand); font-size: 13px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px;
    background: rgba(247,192,14,.12); color: var(--accent); border: 1px solid rgba(247,192,14,.35);
}
.ig-chip:hover { background: rgba(247,192,14,.22); border-color: var(--accent); }

/* ---------- Game detail page ---------- */
.game-hero { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; margin: 6px 0 26px; }
.game-cover img, .game-cover-ph {
    width: 220px; aspect-ratio: 3 / 4; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface-2);
}
.game-cover-ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; color: var(--ink-dim); font-family: var(--display); font-weight: 600; border: 1px solid var(--line); }
.game-info h1 { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 10px 0 0; }
.game-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 4px; color: var(--ink-soft); font-size: 13.5px; }
.game-facts .fact b { color: var(--ink-dim); font-weight: 600; font-family: var(--brand); text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; margin-right: 6px; }
.game-chips { margin-top: 12px; }
.game-summary { margin: 16px 0 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; max-width: 65ch; }
.game-ext { display: inline-block; margin-top: 14px; font-family: var(--brand); font-weight: 600; font-size: 13.5px; color: var(--accent); }
.game-ext:hover { text-decoration: underline; }
@media (max-width: 620px) {
    .game-hero { grid-template-columns: 120px 1fr; gap: 16px; }
    .game-cover img, .game-cover-ph { width: 120px; }
    .game-info h1 { font-size: 24px; }
}

/* ---------- Static content pages (prose) ---------- */
.prose { max-width: 760px; margin: 8px 0 40px; }
.prose h1 { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; margin: 6px 0 18px; }
.prose h2 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 30px 0 10px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.prose p { margin: 0 0 14px; }
.prose .lead { font-size: 18px; color: var(--ink); line-height: 1.6; margin-bottom: 20px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin: 5px 0; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(247,192,14,.35); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .muted { color: var(--ink-dim); }
.prose .small { font-size: 13px; }

/* ---------- Contact form ---------- */
.contact-form { margin: 18px 0 0; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-family: var(--brand); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 6px; }
.contact-form label .opt { text-transform: none; letter-spacing: 0; color: var(--ink-dim); font-weight: 400; }
.contact-form input, .contact-form textarea {
    width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,192,14,.14); }
.contact-form .field-err { display: block; color: #ff9a9a; font-size: 13px; margin-top: 5px; }
.btn-send {
    font-family: var(--brand); font-weight: 700; font-size: 15px; cursor: pointer;
    background: var(--accent); color: var(--accent-ink);
    border: none; border-radius: var(--radius-sm); padding: 11px 22px;
}
.btn-send:hover { background: #ffcf2a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { border-radius: var(--radius-sm); padding: 12px 15px; margin: 4px 0 18px; font-size: 14.5px; }
.form-note.ok { background: rgba(78,201,120,.12); color: #8fe0ab; border: 1px solid rgba(78,201,120,.35); }
.form-note.err { background: rgba(224,80,80,.12); color: #ff9a9a; border: 1px solid rgba(224,80,80,.35); }
.form-note.err:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--charcoal); padding: 34px 0 22px; color: var(--ink-soft); font-size: 14px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px 24px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-blurb { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; max-width: 34ch; margin: 0 0 12px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--accent); font-family: var(--brand); font-weight: 600; font-size: 13px; }
.footer-col h3 { font-family: var(--brand); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin: 4px 0 12px; }
.footer-col a { display: block; color: var(--ink-soft); padding: 4px 0; font-size: 13.5px; }
.footer-col a:hover, .footer-social a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-soft); color: var(--ink-dim); font-size: 12.5px; }
.footer-bottom span:last-child { font-family: var(--brand); letter-spacing: .06em; }
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Billboard ad slot ----------
   Set apart from the content by a panel a shade lighter than the page, with the AD label sitting
   on the same line as the copy. No amber accent and no card shape - those belong to our own
   stories, and an ad that borrows them is passing itself off as one. */
.bb-slot { margin: 20px 0 6px; }
.bb-ad {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    padding: 12px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    line-height: 1.5;
    transition: background .14s ease;
}
.bb-ad:hover { background: var(--surface-2); }
.bb-ad__label {
    flex: 0 0 auto;
    font-family: var(--brand); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: var(--ink-dim);
}
.bb-ad__image { align-self: center; max-width: 120px; height: auto; border-radius: var(--radius-sm); }
.bb-ad__headline { font-size: 14px; font-weight: 700; color: var(--ink); }
.bb-ad:hover .bb-ad__headline { color: var(--accent); }
.bb-ad__body { color: var(--ink-soft); font-size: 13.5px; }
.bb-ad__cta { color: var(--accent); font-weight: 650; font-size: 13.5px; }
.bb-ad__cta::after { content: " →"; }
/* Pushed to the far edge: it is the disclosure, not part of the sentence. */
.bb-ad__advertiser { color: var(--ink-dim); font-size: 12px; margin-left: auto; }

/* In the card grid the same panel spans every column, so it sits between rows as a band rather
   than as a cell pretending to be another story. 6 (and 3) divide evenly into the 1-3 columns the
   grid produces, so it lands on a row boundary instead of punching a hole in one. */
.bb-slot[data-bb-zone="feed-inline"] { grid-column: 1 / -1; margin: 0; }

/* Layout tool, visible only to an allowed viewer with ?bbslots=on: an unfilled slot leaves an
   outline naming its zone, so ad positions can be judged before there is inventory to fill them. */
.bb-slot--empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--ink-dim);
    font-family: var(--brand); font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
}
.bb-slot--empty[data-bb-zone="feed-inline"] { grid-column: 1 / -1; margin: 0; text-align: center; }
