/* BiteShorts Feedback Forum (public). Plain CSS, mobile-first, no build step.
   Palette and fonts follow Thousands of Years Media (thousandsofyearsmedia.com). */
:root {
    --bg: #f3f7fa;
    --surface: #ffffff;
    --text: #12212b;
    --muted: #5f7180;
    --border: #dfe7ed;
    --primary: #0067a9;        /* ToYm deep blue: buttons, links */
    --primary-hover: #00548a;
    --primary-soft: #e6f4fb;
    --accent: #2eb5dd;         /* ToYm cyan: highlights */
    --accent-ink: #003756;
    --navy: #003756;           /* ToYm navy */
    --gold: #6b5300;           /* text on ToYm yellow tint */
    --gold-soft: #fff7c2;
    --success: #067647;
    --success-soft: #ecfdf3;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --neutral-soft: #eef0f3;    /* grey pills (e.g. "Received") */
    --neutral-ink: #374151;
    --radius: 14px;
    --border-soft: #e8eef2;    /* card edges: lighter than --border, the shadow does most of the work */
    --shadow: 0 1px 2px rgba(0, 55, 86, .05), 0 4px 12px rgba(0, 55, 86, .06);
    --shadow-hover: 0 2px 4px rgba(0, 55, 86, .06), 0 10px 24px rgba(0, 55, 86, .10);
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: Montserrat, "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.55 var(--font-body);
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-family: var(--font-heading); font-weight: 700; }
.muted { color: var(--muted); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 16px; padding-bottom: 40px; min-height: 60vh; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark, .team-mark, .signin-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    flex-shrink: 0;
}
.logo { min-width: 0; }
.logo-text { font-size: 1rem; font-family: var(--font-heading); font-weight: 600; color: var(--navy); white-space: nowrap; }
@media (max-width: 420px) {
    .logo-text { font-size: .9rem; }
    .header-inner .btn-label-extra { display: none; }
    .nav-user { display: none; }
}
.logo-text b { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 0; }
.site-nav a, .link-button {
    padding: 8px 10px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}
.site-nav a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.nav-spacer { flex: 1; }

/* Phone menu: a ☰ button replaces the nav row (only with JavaScript; without it the row stays) */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-actions .menu-toggle { display: none; }
@media (max-width: 559px) {
    .js .header-actions .menu-toggle { display: inline-grid; }
    .js .header-actions .theme-toggle { display: none; } /* moved into the drawer */
    .js .site-nav { display: none; }
    .js .header-inner { padding-bottom: 12px; }
}

.drawer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.drawer.is-open { pointer-events: auto; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 55, 86, .45); opacity: 0; transition: opacity .2s ease; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 300px);
    display: flex; flex-direction: column; padding: 14px 16px 20px;
    background: var(--surface); box-shadow: -8px 0 24px rgba(0, 55, 86, .18);
    transform: translateX(100%); transition: transform .22s ease; overflow-y: auto;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-title { font-family: var(--font-heading); font-weight: 700; color: var(--navy); }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { padding: 13px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 500; }
.drawer-links a:hover { background: var(--bg); }
.drawer-links a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.drawer-theme {
    display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 6px; padding: 13px 12px;
    border: 0; border-top: 1px solid var(--border-soft); border-radius: 0; background: none;
    color: var(--text); font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.drawer-theme:hover { background: var(--bg); }
.drawer-theme .icon { color: var(--muted); }
.drawer-account { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.drawer-user { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
body.drawer-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer-backdrop, .drawer-panel { transition: none; } }
.nav-user { font-size: .85rem; color: var(--muted); white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.link-button { background: none; border: 0; font: inherit; font-size: .9rem; cursor: pointer; }
.inline-form { display: inline; margin: 0; }

.site-footer { padding: 24px 0 32px; text-align: center; color: var(--muted); font-size: .9rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, opacity .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 7px 13px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn.disabled { opacity: .45; pointer-events: none; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: var(--success-soft); border-color: #abefc6; color: var(--success); }
.alert-error { background: var(--danger-soft); border-color: #fecdca; color: var(--danger); }

/* Pills */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 500;
    background: var(--neutral-soft);
    color: var(--neutral-ink);
    white-space: nowrap;
}
.pill-sm { font-size: .72rem; padding: 1px 7px; }
.pill { gap: 4px; }

/* General line icons (resources/views/public/partials/icon.blade.php): sit on the text baseline, take the text colour */
.icon { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; flex-shrink: 0; }
.icon-gold { color: #b88a00; }
.icon-silver { color: #7b8794; }
.icon-bronze { color: #b0602b; }
.icon-blue { color: var(--primary); }
.icon-green { color: var(--success); }
.me-too-count .icon { color: var(--primary); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
/* Founding Builder: a richer gold pill with a sheen sweeping across it (Builder of the Month keeps the plain gold pill) */
.pill-founding {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fff3c4, #f2d272); color: #6b4a00;
    border: 1px solid #e2b33c; font-weight: 600;
}
.pill-founding::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
    animation: founding-sheen 3.5s ease-in-out infinite;
}
@keyframes founding-sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .pill-founding::after { animation: none; } }
.status-received { background: var(--neutral-soft); color: var(--neutral-ink); }
.status-under-review { background: #eff4ff; color: #1d4ed8; }
.status-planned { background: #f4f3ff; color: #5925dc; }
.status-in-progress { background: #fff6ed; color: #c4320a; }
.status-completed { background: var(--success-soft); color: var(--success); }
.category { font-size: .85rem; color: var(--muted); white-space: nowrap; }
/* Which part of the app (post page): quiet like the category, its icon in the accent colour */
.area-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.area-tag .icon { color: var(--primary); }

/* Category icons (SVG, sized by font-size, coloured per category) */
.cat-icon { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex-shrink: 0; }
.cat-icon-bug { color: #d92d20; }
.cat-icon-lightbulb { color: #dc6803; }
.cat-icon-sparkles { color: #7a5af8; }
.cat-icon-heart { color: #e31b54; }
.chip.active .cat-icon { color: inherit; }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
    margin-bottom: 16px;
}
.hero h1 { font-size: 1.6rem; margin-bottom: 8px; }
.hero .accent { color: var(--accent); }
.hero p { margin: 0 0 16px; color: #d6e7f1; }
.hero-actions { margin-bottom: 18px; }
.hero .btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn-primary:hover { background: #5cc6e6; }
.hero-note { font-size: .85rem; margin: 0 !important; }

/* Board hero ✕: hides the banner for the rest of the session (needs JavaScript, so hidden without it) */
.hero-dismissible { position: relative; overflow: hidden; }
.hero-dismissible h1 { padding-right: 32px; }
.hero-dismiss {
    position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
    width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12);
    color: #fff; cursor: pointer;
}
.hero-dismiss:hover, .hero-dismiss:focus-visible { background: rgba(255, 255, 255, .25); }
.hero-dismiss:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-dismiss .icon { width: 18px; height: 18px; vertical-align: 0; }
.no-js .hero-dismiss { display: none; }
.hero-dismissible.is-collapsing { height: 0 !important; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; transition: height .25s ease, padding .25s ease, margin .25s ease, opacity .2s ease; }
.hero-dismissed .hero-dismissible { display: none; }

/* Board filters */
.board-filters { margin-bottom: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
/* "More this way": the chips fade out at an edge that has more chips beyond it (set by the board's script) */
.chips.fade-end { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.chips.fade-start { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px); mask-image: linear-gradient(to right, transparent, #000 32px); }
.chips.fade-start.fade-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 40px), transparent);
}
.chip {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    text-decoration: none;
    font-size: .85rem;
    white-space: nowrap;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-row select { width: auto; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; cursor: pointer; }

/* Board toolbar: summary on the left, search + Filters buttons on the right; both open on demand */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.board-summary { margin: 0; font-weight: 600; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.icon-btn:hover, .icon-btn.is-active { border-color: var(--accent); color: var(--primary); }
.icon-btn .icon { width: 18px; height: 18px; vertical-align: 0; }
.icon-btn-sm { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); }
#filter-toggle.is-active { border-color: var(--accent); color: var(--primary); }
.filter-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700; }

.board-search { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 6px 4px 12px; background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; }
.board-search[hidden], .filter-panel[hidden] { display: none; }
.board-search > .icon { color: var(--muted); }
.board-search input[type=search] { flex: 1; min-width: 0; border: 0; padding: 6px 0; background: transparent; }
.board-search input[type=search]:focus { outline: none; }
/* Hide the browser's own clear ✕ inside search boxes; the "Clear" link does that job */
.board-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { padding: 4px 8px; border-radius: 999px; color: var(--primary); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.search-clear:hover { background: var(--primary-soft); }
.search-clear[hidden] { display: none; }

/* Flat filter bar: sits on the page background between two dividers, so it never looks like a feedback card */
.filter-panel { margin: 0 0 12px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.filter-panel .filter-row { align-items: center; gap: 16px; }
.filter-label { font-size: .88rem; font-weight: 600; color: var(--muted); }
.filter-inline { display: inline-flex; align-items: center; gap: 6px; }
.filter-inline select { width: auto; padding: 6px 30px 6px 10px; }
.clear-filters { margin-left: auto; font-size: .85rem; color: var(--primary); }

/* Category chips: always visible, outside the Filters panel */
.category-chips { margin: 0 0 12px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Cards */
.fb-list { display: flex; flex-direction: column; gap: 10px; }

/* Page entrance (Board, My Feedback): things ease up into place once, on page load.
   - .rise-in on any element: a single gentle rise (the board hero gets it built in).
   - .cards-entering on a wrapper: its feedback cards cascade in. The board removes this class after
     loading, so filter/search updates don't replay it.
   "backwards" means the animation lets go when finished, so the card hover lift and the hero's ✕ collapse still work. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-dismissible, .rise-in { animation: rise-in .5s ease-out backwards; }
/* Board toolbar (summary, search, Filters) and category chips follow the hero, then the cards cascade. */
.cards-entering .board-toolbar,
.cards-entering .board-search,
.cards-entering .filter-panel { animation: rise-in .4s ease-out backwards; animation-delay: .08s; }
.cards-entering .category-chips { animation: rise-in .4s ease-out backwards; animation-delay: .14s; }
.cards-entering .fb-list > .fb-card { animation: rise-in .4s ease-out backwards; animation-delay: .55s; }
.cards-entering .fb-list > .fb-card:nth-child(1) { animation-delay: .2s; }
.cards-entering .fb-list > .fb-card:nth-child(2) { animation-delay: .25s; }
.cards-entering .fb-list > .fb-card:nth-child(3) { animation-delay: .3s; }
.cards-entering .fb-list > .fb-card:nth-child(4) { animation-delay: .35s; }
.cards-entering .fb-list > .fb-card:nth-child(5) { animation-delay: .4s; }
.cards-entering .fb-list > .fb-card:nth-child(6) { animation-delay: .45s; }
.cards-entering .fb-list > .fb-card:nth-child(7) { animation-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
    .hero-dismissible, .rise-in, .cards-entering .fb-list > .fb-card,
    .cards-entering .board-toolbar, .cards-entering .board-search, .cards-entering .filter-panel,
    .cards-entering .category-chips { animation: none; }
}

/* Reveal on scroll: anything marked data-reveal slides in from the left as it comes into view
   (script in the layout). Only hidden when JavaScript runs, so nothing stays invisible without it.
   Stagger with style="--reveal-delay: .1s". */
.js [data-reveal] { opacity: 0; transform: translateX(-20px); transition: opacity .55s ease-out, transform .55s ease-out; transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* While the board updates in place: grey out the current results and pulse gently */
.board-results.is-loading { filter: grayscale(1); pointer-events: none; animation: board-loading-pulse 1.1s ease-in-out infinite; }
@keyframes board-loading-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .board-results.is-loading { animation: none; opacity: .45; } }
.fb-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.fb-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .fb-card { transition: none; } .fb-card:hover { transform: none; } }
/* Thumbnail on the right of the card, only when the post has screenshots */
/* Grid: text and thumbnail side by side, the meta row spanning the full width underneath both */
.fb-card-with-thumb { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body thumb" "meta meta"; column-gap: 14px; }
.fb-card-with-thumb .fb-card-body { grid-area: body; }
.fb-card-with-thumb .fb-card-thumb { grid-area: thumb; align-self: center; }
.fb-card-with-thumb .fb-card-meta { grid-area: meta; }
.fb-card-body { min-width: 0; }
.fb-card-thumb { position: relative; width: 64px; height: 64px; }
.fb-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--border-soft); background: var(--bg); }
.fb-card-thumb-more { position: absolute; right: 4px; bottom: 4px; padding: 0 5px; border-radius: 6px; background: rgba(0, 55, 86, .78); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1.5; }
@media (min-width: 560px) { .fb-card-thumb { width: 80px; height: 80px; } }
.fb-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; }
/* One line each on the board; the full text is on the post's page */
.fb-card-title { font-size: .95rem; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-card-excerpt { margin: 0; color: #46586a; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Meta row: author, badges and time on the left; "affected" and "Team replied" pushed to the right */
.fb-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.fb-card-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.fb-card-meta .author { color: var(--text); font-weight: 500; }
.fb-card-stats { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.stat { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.team-replied { color: var(--success); font-weight: 500; }
.affected { color: var(--primary); font-weight: 600; }

/* Desktop shows the full wording; phones show the compact version and keep the words for screen readers */
.compact-show { display: none; }
@media (max-width: 559px) {
    .fb-card-meta .compact-hide { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .fb-card-meta .compact-show { display: inline; }
    .fb-card-meta .pill-sm { padding: 2px 5px; }
}

.empty { text-align: center; padding: 32px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.empty p { margin: 0 0 12px; }

/* Numbered pager: ‹ Newer  1 … 4 5 [6] 7 8 … 20  Older › (one page either side on phones) */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; font-size: .85rem; }
.pager-pages { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pager-pages-narrow { display: none; }
.pager-page, .pager-step {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow);
    color: var(--text); font-weight: 600; text-decoration: none;
}
.pager-page { padding: 0 6px; }
a.pager-page:hover, a.pager-step:hover { border-color: var(--accent); color: var(--primary); }
.pager-page.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-step.is-disabled { opacity: .45; box-shadow: none; }
.pager-gap { min-width: 16px; text-align: center; color: var(--muted); }
@media (max-width: 559px) {
    .pager-pages-wide { display: none; }
    .pager-pages-narrow { display: flex; }
    .pager-step { padding: 0; width: 34px; }
    .pager-word { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

/* Detail */
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.fb-detail, .fb-progress {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 14px;
}
@media (min-width: 560px) { .fb-detail, .fb-progress { padding: 24px 26px; } }
/* Post page reading order: what it is (title) → what it says → one action → progress and replies. */
.fb-detail-title { font-size: 1.5rem; line-height: 1.25; margin: 8px 0 10px; overflow-wrap: anywhere; }
/* Author line on the post page (separate from the board cards' meta row, which spreads items to both ends) */
.fb-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.fb-detail-meta .author { color: var(--text); font-weight: 600; }
.author-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .72rem; font-weight: 700; }

.fb-recognition { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.recog { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: .8rem; line-height: 1.35; }
.recog .icon { flex-shrink: 0; }
.recog-adopted { background: var(--success-soft); color: var(--success); }

.fb-body { margin-top: 18px; font-size: 1rem; line-height: 1.7; color: var(--text); }
.fb-suggestion { margin-top: 16px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--bg); line-height: 1.6; }
.fb-suggestion-label { margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: var(--navy); }
.fb-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.fb-shots img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); transition: transform .15s; }
.fb-shots a:hover img { transform: scale(1.03); }
/* Me too sits at the end of the post as its closing action, not as a coloured box near the top. */
.fb-detail .me-too { margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--border-soft); border-radius: 0; background: none; }

.fb-progress-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.fb-progress-head h2 { font-size: 1.05rem; margin: 0; }
.fb-progress-head .muted { font-size: .82rem; }

.stepper { display: flex; list-style: none; padding: 0; margin: 18px 0 4px; }
.stepper li { flex: 1; min-width: 0; padding: 0 2px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: .72rem; color: var(--muted); }
.stepper li::before {
    content: "";
    position: absolute;
    top: 12px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }
/* Each step is its status icon sitting on the line (no circle): blue when done, darker and glowing when current, grey ahead. */
.step-node { position: relative; z-index: 1; display: grid; place-items: center; height: 26px; padding: 0 5px; margin-bottom: 4px; background: var(--surface); color: #b3c1cc; font-size: 19px; }
.step-node .icon { width: 1em; height: 1em; vertical-align: 0; transition: transform .2s; }
.stepper li.done .step-node { color: var(--accent); }
.stepper li.current .step-node { color: var(--primary); font-size: 24px; }
.stepper li.current .step-node .icon { animation: step-glow 2.6s ease-in-out infinite; }
@keyframes step-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(46, 181, 221, 0)); } 50% { filter: drop-shadow(0 0 5px rgba(46, 181, 221, .75)); } }
@media (prefers-reduced-motion: reduce) { .stepper li.current .step-node .icon { animation: none; filter: drop-shadow(0 0 4px rgba(46, 181, 221, .55)); } }
.stepper li.current { color: var(--text); font-weight: 600; }
.step-label { line-height: 1.2; }
.step-date { font-size: .68rem; color: var(--muted); font-weight: 400; }

.prose { overflow-wrap: anywhere; }

.fb-updates { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.fb-updates-title { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.fb-updates-empty { margin: 4px 0 0; font-size: .9rem; }
.reply { padding: 12px 0; border-top: 1px solid var(--border-soft); line-height: 1.6; }
.fb-updates-title + .reply { border-top: 0; padding-top: 8px; }
.reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .9rem; }.team-mark { width: 24px; height: 24px; border-radius: 6px; font-size: .75rem; }

/* Post form */
.page-title { font-size: 1.4rem; margin-bottom: 6px; }
.post-form { margin-top: 16px; display: flex; flex-direction: column; gap: 18px; }
.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.field legend { margin-bottom: 8px; }

input[type=text], input[type=password], input[type=email], textarea, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}
select { padding: 8px 12px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46, 181, 221, .22); }
textarea { resize: none; overflow: hidden; min-height: 3.2em; }
input[type=text], input[type=password], input[type=email], textarea, select { transition: border-color .2s, background-color .25s, box-shadow .2s, height .12s; }
input[type=file] { font: inherit; font-size: .9rem; }

.category-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .category-options { grid-template-columns: 1fr 1fr; } }
.category-option { cursor: pointer; }
.category-option input { position: absolute; opacity: 0; pointer-events: none; }
.category-option-body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.category-option:active .category-option-body { transform: scale(.985); }
.category-option-body small { display: block; color: var(--muted); font-size: .8rem; }
.category-option-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); font-size: 1.2rem; flex-shrink: 0; }
.category-option-icon .cat-icon { vertical-align: 0; }
/* Chosen tile: the whole tile eases to blue at once, and a small ripple spreads from the tap/click point as feedback. */
.category-option input:checked + .category-option-body { border-color: var(--accent); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(46, 181, 221, .14), var(--shadow); }
.category-option-body { position: relative; overflow: hidden; isolation: isolate; }
.tap-ripple { position: absolute; z-index: -1; width: 200px; height: 200px; margin: -100px 0 0 -100px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, 0) 70%); /* light glow over the tile's blue */ filter: blur(3px); pointer-events: none; transform: scale(.15); animation: tap-ripple .9s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes tap-ripple { 0% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } } /* soft glow that blooms and dissolves */
.category-option-icon { transition: background-color .3s ease; }
.category-option input:focus-visible + .category-option-body { outline: 2px solid #bfe6f4; }

.hint { margin: 0; font-size: .8rem; color: var(--muted); }

/* "What happens next" strip above the submit button */
/* "Keep it private" reminder above the submit button */
.privacy-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); font-size: .86rem; }
.privacy-note .icon { width: 20px; height: 20px; margin-top: 1px; vertical-align: 0; }
.privacy-note p { margin: 0; }
.privacy-confirm { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-weight: 600; cursor: pointer; }
.privacy-confirm input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }

.next-steps { padding: 14px; border-radius: 12px; background: var(--primary-soft); }
.next-steps-title { margin: 0 0 8px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.next-steps-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; font-size: .8rem; }
.next-steps-list li { display: inline-flex; align-items: center; gap: 6px; }
.next-steps-list li:not(:last-child)::after { content: "→"; color: var(--accent); }
.next-steps-step { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--surface); color: var(--text); }
.next-steps-number { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 700; }
.hint-error { color: var(--danger); }
/* ✕ on each screenshot while posting */
.shot-remove {

    position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
    width: 24px; height: 24px; padding: 0; border: 2px solid var(--surface); border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 16px; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow);
}
.shot-remove:hover { background: var(--danger); }
.shot-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Search */
.search-field { flex: 1 1 100%; }
input[type=search] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

/* Me too */
.me-too { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--primary-soft); font-size: .9rem; }
.me-too-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.me-too-active:hover { background: var(--primary-hover); border-color: var(--primary-hover); }



/* Awards page */
.hero a { color: var(--accent); }
.award-programme { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; }
.award-programme h2 { font-size: 1.1rem; margin-bottom: 6px; }
.award-programme p { margin: 0 0 12px; }
.award-programme p:last-child { margin-bottom: 0; }
/* Awards hero: the usual blue hero with a gold trophy on a soft glow beside the text, and the top prizes as chips */
/* Awards hero: the usual blue hero, centred, with a gold trophy above the title and "Awards" in gold */
.awards-hero { text-align: center; }
.awards-hero p { max-width: 520px; margin: 0 auto; }
.awards-trophy {
    display: block; width: 64px; height: 64px; margin: -4px auto 8px;
    background: radial-gradient(circle at 50% 45%, rgba(242, 201, 76, .35), transparent 68%);
    filter: drop-shadow(0 4px 12px rgba(242, 201, 76, .35));
}
.awards-gold-text {
    background: linear-gradient(100deg, #fff1b8, #f2c94c 45%, #e2b33c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Prize cards: one card per place, wrapping and centred (3 per row on desktop, 2 on phones) */
.prize-section { text-align: center; margin: 28px 0 32px; }
.prize-section > h2 { font-size: 1.35rem; color: var(--navy); margin-bottom: 6px; }
.prize-section > p { max-width: 520px; margin: 0 auto 18px; }
/* The top margin leaves room for the 1st place "Top prize" ribbon */
.prize-grid { list-style: none; padding: 0; margin: 30px 0 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.prize-card {
    flex: 0 1 calc((100% - 12px) / 2);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 12px 16px;
}
@media (min-width: 600px) { .prize-card { flex-basis: calc((100% - 24px) / 3); } }
/* 1st place: framed in gold like a Founding Builders seat (see .fnd-card-filled below), with a "Top prize"
   ribbon, sparkles and, side by side on wider screens, a slight lift. 2nd/3rd get a silver/bronze edge. */
.prize-card { position: relative; }
.prize-card-top .prize-medal.prize-medal-gold { /* also beats the dark theme's flat gold medal */
    color: #5a3d00; background: radial-gradient(circle at 35% 30%, #fff3c4, #e8bb45 55%, #a8770a);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 4px 10px rgba(168, 119, 10, .3);
}
.prize-card-top h3 { color: #a8770a; }
.prize-ribbon {
    position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
    font-family: var(--font-heading); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    color: #4a3200; background: linear-gradient(135deg, #ffe17a, #e8a92c); box-shadow: 0 2px 6px rgba(168, 119, 10, .3);
}
.prize-card .fnd-spark { color: #e2b33c; }
/* Podium on wider screens: 2nd · 1st · 3rd, stepped heights, bottoms lined up. Phones keep 1, 2, 3 in order.
   Screen readers still get them in rank order (only the visual order changes). */
@media (min-width: 600px) {
    .prize-grid { align-items: flex-end; }
    .prize-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
    .prize-rank-1 { order: 2; min-height: 250px; }
    .prize-rank-2 { order: 1; min-height: 222px; }
    .prize-rank-3 { order: 3; min-height: 203px; }
    .prize-card:not(.prize-rank-1, .prize-rank-2, .prize-rank-3) { order: 4; }
}
.prize-card-silver { border-color: #c3ccd5; box-shadow: 0 8px 24px rgba(123, 135, 148, .2), 0 2px 6px rgba(0, 55, 86, .06); }
.prize-card-bronze { border-color: #e6bd9f; box-shadow: 0 8px 24px rgba(176, 96, 43, .16), 0 2px 6px rgba(0, 55, 86, .06); }
.award-founding-link { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.award-founding-link a { font-weight: 600; }
.prize-card h3 { font-size: 1.05rem; color: var(--navy); margin: 10px 0 8px; }
.prize-medal { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 1.7rem; }
.prize-medal-gold { background: #fff4cc; color: #b88a00; }
.prize-medal-silver { background: #eef1f4; color: #7b8794; }
.prize-medal-bronze { background: #fbe9dc; color: #b0602b; }
.prize-medal-blue { background: var(--primary-soft); color: var(--primary); }
.prize-line { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 4px; font-weight: 600; }
.prize-line .icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.prize-cash { color: var(--success); }
.prize-cash .icon { color: var(--success); }
.prize-worth { margin: 0; font-size: .8rem; color: var(--muted); }
.award-badge-line { font-size: .88rem; color: var(--muted); margin: 0; }

/* "Get the app" page: one card per store, side by side on wider screens */
.store-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .store-grid { grid-template-columns: 1fr 1fr; } }
.store-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.store-card h2 { font-size: 1.1rem; color: var(--navy); margin: 12px 0 2px; }
.store-card p { margin: 0 0 16px; font-size: .9rem; }
.store-card .btn, .store-badge-link { margin-top: auto; }
/* Official store badges, shown at the same visible height (48px). Google's PNG has transparent padding
   around the black badge (badge ≈ 168 of 250px high), so it's drawn larger and the padding is pulled in. */
.store-badge-link { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store-badge { display: block; height: 48px; width: auto; }
.store-badge-google { height: 71px; margin: -11.7px -11.4px; }
.store-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.6rem; }

/* Thin centred line between page sections */
.section-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #a9c3d4, transparent); width: 70%; margin: 36px auto; }
/* Awards page: "What we look for" tips and the "If we use your idea" preview */
.look-for { margin-bottom: 8px; }
.tip-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr; gap: 12px; text-align: left; }
@media (min-width: 560px) { .tip-grid { grid-template-columns: 1fr 1fr; } }
.tip-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.tip-card strong { display: block; color: var(--navy); margin-bottom: 2px; }
.tip-card .muted { font-size: .88rem; }
.tip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 1.15rem; flex-shrink: 0; }
/* Gold medal gradient (not the flat pale yellow used for warnings), with deep brown text for contrast */
.adopted-preview {
    padding: 20px 18px; border-radius: var(--radius);
    background: linear-gradient(135deg, #ffd940 0%, #f6c453 55%, #e8a92c 100%);
    color: #4a3200; box-shadow: 0 6px 18px rgba(184, 138, 0, .22);
}
.adopted-preview-title { margin: 0 0 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: #3d2900; }
.adopted-preview-pills { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin-bottom: 10px; }
.adopted-preview .pill-gold { background: rgba(255, 255, 255, .92); color: #6b4a00; font-weight: 700; font-size: .85rem; padding: 4px 12px; box-shadow: 0 1px 3px rgba(74, 50, 0, .15); }
.adopted-preview-credit { font-size: .9rem; }
.adopted-preview-note { margin: 0 auto; max-width: 440px; font-size: .86rem; }

/* ---------- Founding Builders page: the regular hero and cards, dressed in gold ---------- */
.fnd-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hero.fnd-hero {
    position: relative; overflow: hidden; text-align: center; padding: 40px 20px 34px;
    background: radial-gradient(ellipse at 50% 0%, rgba(242, 201, 76, .28), transparent 60%), linear-gradient(160deg, #001f33, #003756 45%, #0067a9);
    border: 1px solid rgba(242, 201, 76, .35);
}
/* Slow-turning light rays behind the crest */
.fnd-hero::before {
    content: ""; position: absolute; inset: -60%; translate: 0 -18%; pointer-events: none;
    background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 223, 128, .09) 0deg 6deg, transparent 6deg 18deg);
    mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 48%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 48%);
    animation: fnd-spin 60s linear infinite;
}
.fnd-hero > * { position: relative; }
@keyframes fnd-spin { to { rotate: 360deg; } }
.fnd-crest { display: block; width: 132px; height: 132px; margin: 0 auto 10px; overflow: visible; filter: drop-shadow(0 6px 18px rgba(242, 201, 76, .35)); }
.fnd-eyebrow { display: inline-block; margin-bottom: 8px; font-family: var(--font-heading); font-weight: 700; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: #fbe7a1; }
.hero.fnd-hero h1 {
    font-size: clamp(2rem, 7vw, 2.9rem); letter-spacing: -.01em; margin-bottom: 10px;
    background: linear-gradient(100deg, #fff6d6 0%, #f2c94c 30%, #fff6d6 50%, #d9a520 70%, #fff6d6 100%) 0 50% / 220% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: fnd-shimmer 6s ease-in-out infinite;
}
@keyframes fnd-shimmer { 50% { background-position: 100% 50%; } }
.fnd-hero p { max-width: 480px; margin: 0 auto; }
.fnd-hero-stats { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.fnd-hero-stat { padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #fbe7a1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(242, 201, 76, .35); }
.fnd-spark { position: absolute; width: var(--spark-size, 10px); height: var(--spark-size, 10px); color: #fbe7a1; opacity: 0; animation: fnd-twinkle 4s ease-in-out infinite; animation-delay: var(--spark-delay, 0s); }
@keyframes fnd-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; transform: none; } }

/* Section heading with a gold hairline either side */
.fnd-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px 0 6px; }
.fnd-heading h2 { font-size: 1.35rem; color: var(--navy); margin: 0; flex-shrink: 0; }
.fnd-heading::before, .fnd-heading::after { content: ""; flex: 0 1 60px; height: 1px; background: linear-gradient(90deg, transparent, #e2b33c); }
.fnd-heading::after { transform: scaleX(-1); }
.fnd-sub { text-align: center; max-width: 520px; margin: 0 auto 18px; }

/* Gold-framed card (gradient border) */
.fnd-card-filled, .fnd-closing, .prize-card-top {
    background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #f7dc83, #c99319 45%, #f3d57a 70%, #a8770a) border-box;
    border: 1.5px solid transparent; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(184, 138, 0, .18), 0 2px 6px rgba(0, 55, 86, .08);
}

/* The five seats: identical cards, wrapping and centred (3 + 2 on desktop) */
.fnd-grid { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fnd-card { flex: 0 1 100%; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 14px 18px; transition: translate .2s ease, box-shadow .2s ease; }
/* Keep the hover lift quick even though data-reveal sets its own (slower) transition */
.js .fnd-grid .fnd-card[data-reveal] { transition: opacity .55s ease-out, transform .55s ease-out, translate .2s ease, box-shadow .2s ease; transition-delay: var(--reveal-delay, 0s), var(--reveal-delay, 0s), 0s, 0s; }
@media (min-width: 480px) { .fnd-card { flex-basis: calc((100% - 14px) / 2); } }
@media (min-width: 680px) { .fnd-card { flex-basis: calc((100% - 28px) / 3); } }
.fnd-card-filled:hover { translate: 0 -3px; box-shadow: 0 14px 34px rgba(184, 138, 0, .24), 0 2px 6px rgba(0, 55, 86, .08); }
.fnd-laurel { position: relative; display: grid; place-items: center; width: 120px; height: 120px; margin-bottom: 4px; }
.fnd-laurel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 8px rgba(226, 179, 60, .3)); }
.fnd-seal {
    position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: #5a3d00;
    background: radial-gradient(circle at 35% 30%, #fff3c4, #e8bb45 55%, #a8770a);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .45), inset 0 0 0 5px rgba(168, 119, 10, .5), 0 4px 10px rgba(168, 119, 10, .3);
}
.fnd-name { font-size: 1.25rem; color: var(--navy); margin: 0 0 8px; overflow-wrap: anywhere; }
.fnd-card .pill { font-size: .85rem; padding: 4px 12px; }
.fnd-inducted { margin-top: 12px; font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
/* Open seat: same footprint, but a dashed, dimmed placeholder */
.fnd-card-open { border: 1.5px dashed #e3cf95; border-radius: var(--radius); }
.fnd-card-open .fnd-laurel svg { opacity: .3; filter: grayscale(.4); }
.fnd-card-open .fnd-seal { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 2px var(--border); }
.fnd-card-open .fnd-name { color: var(--muted); }
.pill-open { background: var(--neutral-soft); color: var(--muted); }

.fnd-closing { text-align: center; padding: 26px 20px; margin-top: 30px; }
.fnd-closing h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.fnd-closing p { margin: 0 auto 16px; max-width: 460px; }
.fnd-closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    .fnd-hero::before, .fnd-hero h1, .fnd-spark { animation: none; }
    .fnd-spark { opacity: .6; }
}

/* My feedback & sign-in */
.my-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }

.signin { text-align: center; max-width: 420px; margin: 24px auto; }
.signin-mark { margin: 0 auto 14px; width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
.signin p { margin: 8px 0 18px; }
.signin-form { display: flex; flex-direction: column; gap: 14px; margin: 0 0 16px; text-align: left; }
.signin-form .hint { margin: 0; text-align: center; }
.input-short { max-width: 110px; }
.code-input { font-size: 1.5rem; letter-spacing: .35em; text-align: center; }
.signin-alt { margin: 0 0 16px; text-align: left; }
.signin-alt summary { cursor: pointer; color: var(--muted); text-align: center; margin-bottom: 10px; }
.signin-alt .hint { text-align: center; margin: 0 0 10px; }
.dev-box { margin-top: 28px; padding: 14px; border: 1px dashed var(--accent); border-radius: 12px; background: var(--primary-soft); text-align: left; font-size: .9rem; }
.dev-box p { margin: 4px 0 10px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 720px) {
    .hero { padding: 32px 28px; }
    .hero h1 { font-size: 2rem; }
    .stepper li { font-size: .8rem; }
}

/* Sign-in code: expiry countdown and resend */
.code-timer { margin: 4px 0 18px; text-align: left; }
.code-timer-label { display: flex; justify-content: center; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.code-timer-label strong { color: var(--text); font-variant-numeric: tabular-nums; }
.code-timer-bar { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.code-timer-bar span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transition: width 1s linear; }
.code-timer-low .code-timer-bar span { background: #f79009; }
.code-timer-low .code-timer-label strong { color: #b54708; }
.code-timer-expired .code-timer-label { color: var(--danger); }
.code-actions { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); }
.link-button:disabled { opacity: .55; cursor: default; }
.link-button { display: inline-flex; align-items: center; gap: 6px; }
.spinner { display: none; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } .code-timer-bar span { transition: none; } }

/* Uploaded logo (Admin → Settings) */
.logo-image { display: block; height: 32px; width: auto; max-width: 120px; object-fit: contain; flex-shrink: 0; }
.logo-image-alone { height: 36px; max-width: 200px; }

/* ---------- Post form: live checks, screenshots, similar posts ---------- */

/* Slide open/closed instead of popping in (grid rows animate from 0 to the content's height). */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .25s ease, opacity .2s ease, margin-top .25s ease; }
.reveal > * { overflow: hidden; min-height: 0; }
.reveal.is-visible { grid-template-rows: 1fr; opacity: 1; }
.field > .reveal:not(.is-visible) { margin-top: -6px; } /* don't leave the field's gap behind */
.post-form > .reveal:not(.is-visible) { margin-top: -18px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.field-head label, .field-label { font-weight: 600; font-size: .95rem; }
.char-count { color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; transition: color .15s; }
.char-count.is-near-limit { color: var(--danger); }

/* Errors: red outline on the box, message slides in underneath */
.field-error > span { display: flex; align-items: center; gap: 6px; padding-top: 2px; color: var(--danger); font-size: .82rem; font-weight: 600; }
.field-error.is-visible > span { animation: error-in .3s ease; }
@keyframes error-in { from { opacity: 0; transform: translateY(-5px); } }
.field-error > span::before { content: "!"; display: inline-grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .7rem; }
input.is-invalid, textarea.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
input.is-invalid:focus, textarea.is-invalid:focus { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.category-options.is-invalid .category-option-body { border-color: #f4a29a; }
.privacy-note { border: 1.5px solid transparent; transition: border-color .15s, background-color .15s; }
.privacy-note.is-invalid { border-color: var(--danger); background: var(--danger-soft); }
.privacy-note .field-error { margin-top: 6px; }

/* Chosen feedback type: filled tile with a tick */
.category-option-text { flex: 1; min-width: 0; }
.category-option-check { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; opacity: 0; transform: scale(.4); transition: opacity .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.category-option input:checked + .category-option-body .category-option-check { opacity: 1; transform: none; }
.category-option input:checked + .category-option-body .category-option-icon { background: var(--surface); }

/* Screenshots: one button that opens the phone's photo picker or the computer's file dialog */
.shots { display: flex; flex-wrap: wrap; gap: 10px; border-radius: 12px; transition: background-color .15s, outline-color .15s; outline: 2px dashed transparent; outline-offset: 4px; }
.shots.is-dragging { outline-color: var(--accent); background: var(--primary-soft); }
.shot-add { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 100%; min-height: 52px; padding: 10px 16px; border: 1.5px dashed #b9cbd8; border-radius: 12px; background: var(--surface); color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; transition: border-color .15s, background-color .15s, transform .1s; }
.shot-add .icon { width: 20px; height: 20px; }
.shot-add:hover { border-color: var(--accent); background: var(--primary-soft); }
.shot-add:active { transform: scale(.98); }
.shot-add:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(46, 181, 221, .35); }
.shot-add:disabled { opacity: .5; cursor: wait; }
.shots.has-shots .shot-add { flex: 0 0 auto; flex-direction: column; gap: 2px; width: 84px; height: 84px; min-height: 0; padding: 0; font-size: .78rem; }
.shot { position: relative; width: 84px; height: 84px; border-radius: 12px; background: var(--bg); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.shot.is-new { animation: shot-in .25s cubic-bezier(.3, 1.4, .5, 1); }
.shot.is-leaving { transition: opacity .15s, transform .15s; opacity: 0; transform: scale(.8); }
.shot.is-loading { border: 1px solid var(--border); background: linear-gradient(100deg, var(--bg) 40%, #fff 50%, var(--bg) 60%) 0 0 / 300% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shot-in { from { opacity: 0; transform: scale(.7); } }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Similar posts: one quiet line under the title; tap to see them */
.similar-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--primary-soft); color: var(--navy); font: inherit; font-size: .86rem; text-align: left; cursor: pointer; }
.similar-toggle:hover { background: #d9eef8; }
.similar-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; }
.similar-summary { flex: 1; }
.similar-chevron { flex-shrink: 0; transition: transform .2s; }
.similar-toggle[aria-expanded=true] .similar-chevron { transform: rotate(180deg); }
.similar-list { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.similar-list a { display: flex; flex-direction: column; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--text); transition: border-color .15s; }
.similar-list a:hover { border-color: var(--accent); }
.similar-item-title { font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.similar-item-meta { color: var(--muted); font-size: .76rem; }
.similar-panel .hint { margin-bottom: 2px; }

.draft-notice > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--navy); font-size: .88rem; }
.draft-notice p { margin: 0; }
.submit-row { display: flex; flex-direction: column; gap: 6px; }
.draft-status { min-height: 1.2em; margin: 0; text-align: center; color: var(--muted); font-size: .75rem; transition: opacity .3s ease; }
.draft-status.is-fading { opacity: 0; }

/* Thank-you page */
.thanks { max-width: 480px; margin: 140px auto 0; text-align: center; }
.thanks-check { width: 96px; height: 96px; margin: 8px auto 18px; }
.thanks-check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks-check-circle { stroke: var(--success); stroke-width: 2.5; fill: var(--success-soft); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .55s ease-out forwards; }
.thanks-check-tick { stroke: var(--success); stroke-width: 4; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .35s .45s ease-out forwards; }
.thanks-check { animation: pop .45s .7s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 50% { transform: scale(1.08); } }
.thanks-title { font-size: 1.6rem; margin-bottom: 6px; }
.thanks-text { margin: 0 0 22px; color: var(--muted); overflow-wrap: anywhere; }
.thanks-text strong { color: var(--text); }
.thanks-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .thanks-actions { flex-direction: row; justify-content: center; } }
.thanks-steps { margin-top: 28px; text-align: left; }

/* 404 page: laid out like the thank-you page */
.not-found { max-width: 480px; margin: 120px auto 0; text-align: center; }
.not-found-code {
    margin: 0 0 8px;
    font: 700 5.5rem/1 var(--font-heading);
    letter-spacing: -.04em;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.not-found-title { font-size: 1.6rem; margin-bottom: 6px; }
.not-found-text { margin: 0 0 22px; color: var(--muted); }
.not-found-actions { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 480px) { .not-found-actions { flex-direction: row; justify-content: center; } }
.next-steps-step.is-current { background: var(--primary); color: #fff; }
.next-steps-step.is-current .next-steps-number { background: #fff; color: var(--primary); }

/* Small polish for everything else that changes on the form */
.reveal > * { transform: translateY(-4px); transition: transform .25s ease; }
.reveal.is-visible > * { transform: none; }
.alert { animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } }
.is-shaking { animation: nudge .35s ease; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.is-bumped { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.25); } }
.category-option-body small, .char-count { transition: color .2s; }

/* Reduced motion (an OS setting): keep the gentle fades, colour changes and slides, drop the bouncy and shaking effects. */
@media (prefers-reduced-motion: reduce) {
    .shot.is-new { animation: fade-in .25s ease; }
    .shot.is-loading { animation: none; }
    .thanks-check, .is-shaking, .is-bumped { animation: none; }
    .category-option-check { transition: opacity .15s; transform: none; }
}
/* ---------- Light / dark theme ----------
   The theme is set on <html data-theme> by resources/views/partials/theme-script.blade.php (toggle in the header).
   Dark mode redefines the palette variables above; the rules after it only cover colours written out in full. */
.theme-toggle .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline-block; }
[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }

[data-theme="dark"] {
    color-scheme: dark; /* native form controls and scrollbars */
    --bg: #0e1821;
    --surface: #16232e;
    --text: #e3ecf2;
    --muted: #93a7b6;
    --border: #2a3b4a;
    --border-soft: #223241;
    --primary: #1f86c8;
    --primary-hover: #3598d6;
    --primary-soft: #123047;
    --navy: #cfe4f2;           /* used for heading text; places that paint navy as a background are overridden below */
    --gold: #f2d36b;
    --gold-soft: #3a3010;
    --success: #4cc38a;
    --success-soft: #11301f;
    --danger: #f97066;
    --danger-soft: #3a1714;
    --neutral-soft: #26333f;
    --neutral-ink: #c6d1db;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 10px 24px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .hero { background: linear-gradient(135deg, #003756, #0067a9); }
[data-theme="dark"] .chip.active { background: #0a4a6e; border-color: #0a4a6e; }
[data-theme="dark"] .shot-remove { background: #0a4a6e; }
[data-theme="dark"] .drawer-backdrop { background: rgba(0, 0, 0, .55); }
[data-theme="dark"] .alert-success { border-color: #1d5c3c; }
[data-theme="dark"] .alert-error { border-color: #6b2620; }
[data-theme="dark"] .status-under-review { background: #1b2a4d; color: #9db8ff; }
[data-theme="dark"] .status-planned { background: #2a2350; color: #bcaeff; }
[data-theme="dark"] .status-in-progress { background: #3a2414; color: #ffad7a; }
[data-theme="dark"] .pill-founding { background: linear-gradient(135deg, #4a3a0c, #6b5310); color: #ffe39a; border-color: #a8770a; }
[data-theme="dark"] .icon-gold { color: #e0b42a; }
[data-theme="dark"] .icon-silver { color: #a7b3bf; }
[data-theme="dark"] .icon-bronze { color: #d98a55; }
[data-theme="dark"] .cat-icon-bug { color: #f97066; }
[data-theme="dark"] .cat-icon-lightbulb { color: #fdb022; }
[data-theme="dark"] .cat-icon-sparkles { color: #a48afb; }
[data-theme="dark"] .cat-icon-heart { color: #fd6f8e; }
[data-theme="dark"] .fb-card-excerpt { color: #b3c3cf; }
[data-theme="dark"] .step-node { color: #3d5263; } /* steps not reached yet; done/current keep their own colours */
[data-theme="dark"] .prize-medal-gold { background: #3a3010; color: #e0b42a; }
[data-theme="dark"] .prize-medal-silver { background: #26333f; color: #a7b3bf; }
[data-theme="dark"] .prize-medal-bronze { background: #3a2416; color: #d98a55; }
[data-theme="dark"] .prize-card-top h3 { color: #f2c94c; }
[data-theme="dark"] .prize-card-silver { border-color: #4a5866; box-shadow: 0 8px 26px rgba(167, 179, 191, .12), 0 2px 6px rgba(0, 0, 0, .3); }
[data-theme="dark"] .prize-card-bronze { border-color: #6b4630; box-shadow: 0 8px 26px rgba(217, 138, 85, .12), 0 2px 6px rgba(0, 0, 0, .3); }
[data-theme="dark"] .hero.fnd-hero { background: radial-gradient(ellipse at 50% 0%, rgba(242, 201, 76, .22), transparent 60%), linear-gradient(160deg, #04121c, #0a2a40 50%, #0e4a73); }
[data-theme="dark"] .fnd-card-filled, [data-theme="dark"] .fnd-closing, [data-theme="dark"] .prize-card-top { box-shadow: 0 10px 30px rgba(226, 179, 60, .14), 0 2px 6px rgba(0, 0, 0, .3); }
[data-theme="dark"] .fnd-card-open { border-color: #5a4a1e; }
[data-theme="dark"] .pill-open { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .section-divider { background: linear-gradient(90deg, transparent, #3a5163, transparent); }
[data-theme="dark"] .code-timer-low .code-timer-label strong { color: #fdb022; }
[data-theme="dark"] .category-options.is-invalid .category-option-body { border-color: #8a3a33; }
[data-theme="dark"] .category-option input:focus-visible + .category-option-body { outline-color: #1f6f93; }
[data-theme="dark"] .shot-add { border-color: #3a5163; }
[data-theme="dark"] .shot.is-loading { background: linear-gradient(100deg, var(--bg) 40%, #24384a 50%, var(--bg) 60%) 0 0 / 300% 100%; }
[data-theme="dark"] .similar-toggle:hover { background: #18405c; }

/* App version flair on posts: solid purple for the current latest version, grey for older ones.
   Solid (not a soft tint) so it isn't mistaken for the "Planned" status, which is a soft purple. */
.pill-version { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); font-variant-numeric: tabular-nums; }
.pill-version-latest { background: #6d28d9; color: #fff; font-variant-numeric: tabular-nums; }
.pill-version .icon, .pill-version-latest .icon { width: .95em; height: .95em; margin-left: -1px; }
[data-theme="dark"] .pill-version-latest { background: #7c5ce6; color: #fff; }

/* "Not Planned": read and declined by the team. A muted red, so it reads as closed but not as an error. */
.status-not-planned { background: #fef3f2; color: #b42318; }
[data-theme="dark"] .status-not-planned { background: #3b1c1a; color: #ffa197; }
.fb-closed { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 4px 0 18px; border-radius: 12px; background: #fef3f2; color: #7a271a; }
.fb-closed .icon { width: 22px; height: 22px; margin-top: 1px; color: #b42318; flex-shrink: 0; }
.fb-closed strong { display: block; color: #b42318; }
.fb-closed p { margin: 2px 0 0; font-size: .92rem; }
[data-theme="dark"] .fb-closed { background: #2c1715; color: #f3c9c4; }
[data-theme="dark"] .fb-closed .icon, [data-theme="dark"] .fb-closed strong { color: #ffa197; }

/* "This post is a duplicate" (an admin's decision): its own card at the top of the post page, before the post, so
   it's the first thing seen. Blue = information (the Not Planned red is for declined posts). */
.fb-duplicate {
    margin-bottom: 14px; padding: 18px 20px; border-radius: var(--radius);
    background: var(--primary-soft); border: 1px solid #b9dcf0; border-left: 6px solid var(--primary);
    box-shadow: 0 4px 16px rgba(0, 103, 169, .14);
}
@media (min-width: 560px) { .fb-duplicate { padding: 20px 24px; } }
.fb-duplicate-head { display: flex; gap: 12px; align-items: flex-start; }
.fb-duplicate-head > .icon { width: 26px; height: 26px; margin-top: 2px; color: var(--primary); flex-shrink: 0; }
.fb-duplicate-head h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--primary); }
.fb-duplicate-head p { margin: 0; font-size: .93rem; }
.fb-duplicate-original {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid #b9dcf0;
    color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.fb-duplicate-original:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0, 103, 169, .15); }
.fb-duplicate-original-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fb-duplicate-original-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; }
.fb-duplicate-original-title { font-size: 1rem; }
.fb-duplicate-go { flex-shrink: 0; }
.fb-duplicate-gone { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
[data-theme="dark"] .fb-duplicate { border-color: #1d4a6b; border-left-color: #4aa8e0; box-shadow: 0 4px 18px rgba(0, 0, 0, .4); }
[data-theme="dark"] .fb-duplicate-head > .icon, [data-theme="dark"] .fb-duplicate-head h2 { color: #7cc4ef; }
[data-theme="dark"] .fb-duplicate-original { border-color: #1d4a6b; }
[data-theme="dark"] .fb-duplicate-original:hover { border-color: #4aa8e0; }
.fb-closed.fb-closed-duplicate { background: var(--primary-soft); color: inherit; }
.fb-closed.fb-closed-duplicate .icon, .fb-closed.fb-closed-duplicate strong { color: var(--primary); }
[data-theme="dark"] .fb-closed.fb-closed-duplicate { background: var(--primary-soft); color: inherit; }
[data-theme="dark"] .fb-closed.fb-closed-duplicate .icon, [data-theme="dark"] .fb-closed.fb-closed-duplicate strong { color: #7cc4ef; }
.pill-duplicate { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
