/* ==========================================================================
   Opus Hub — theme stylesheet
   1. Tokens   2. Base   3. Ornaments   4. App shell & nav   5. Components
   6. Views    7. Sheets & detail   8. Editorial pages   9. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* Editorial light palette (prototype) */
  --bg: #F4F3EF; --surface-solid: #FBFAF8; --sunk: #ECEAE5;
  --ink: #1C1E21; --ink-2: #4F5257; --muted: #8A8C90;
  --line: #E2E0DA; --line-2: #D3D0C8; --hair: #EAE8E2;
  --accent: #2A43CF; --accent-ink: #ffffff; --accent-soft: #E7EAFA; --warn: #9A3B1E;

  /* Aliases onto the names used across the app, so components re-tone automatically */
  --noir: var(--bg); --noir-2: var(--surface-solid); --noir-3: var(--sunk);
  --surface: var(--surface-solid); --surface-2: var(--sunk);
  --paper: var(--surface-solid); --paper-2: var(--sunk); --paper-ink: var(--ink); --paper-mute: var(--muted);
  --ivory: var(--ink); --text: var(--ink); --text-2: var(--ink-2);
  --gold: var(--accent); --gold-hi: var(--accent); --gold-lo: var(--accent);
  --burgundy: var(--warn); --burgundy-hi: var(--warn);

  --teal: #1F7A6E;  --teal-hi: #1F7A6E;
  --rose: #A23A5B;  --rose-hi: #A23A5B;
  --olive: #5E6B2F; --olive-hi: #5E6B2F;

  --c-competition: #2A43CF;
  --c-audition: #A23A5B;
  --c-job: #1F7A6E;
  --c-masterclass: #5E6B2F;
  --c-festival: #8A6D2F;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --blur: blur(14px) saturate(120%);
  --col: 520px;
  --gutter: 20px;
  --nav-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-t: 0px;              /* WordPress admin bar */
}

/* Dark mode — follows the system, or forced with [data-theme] */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #141518; --surface-solid: #1B1D21; --sunk: #202227;
    --ink: #ECEBE7; --ink-2: #B4B5B8; --muted: #85878C;
    --line: #2A2C31; --line-2: #3A3C42; --hair: #26282D;
    --accent: #7F93FF; --accent-ink: #0F1220; --accent-soft: #222842; --warn: #F0A07F;
    --teal: #5FC2B3; --rose: #E79BB2; --olive: #B5C28C;
    --teal-hi: #5FC2B3; --rose-hi: #E79BB2; --olive-hi: #B5C28C;
    --c-competition: #7F93FF; --c-audition: #E79BB2; --c-job: #5FC2B3; --c-masterclass: #B5C28C; --c-festival: #D9CDB8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141518; --surface-solid: #1B1D21; --sunk: #202227;
  --ink: #ECEBE7; --ink-2: #B4B5B8; --muted: #85878C;
  --line: #2A2C31; --line-2: #3A3C42; --hair: #26282D;
  --accent: #7F93FF; --accent-ink: #0F1220; --accent-soft: #222842; --warn: #F0A07F;
  --teal: #5FC2B3; --rose: #E79BB2; --olive: #B5C28C;
  --teal-hi: #5FC2B3; --rose-hi: #E79BB2; --olive-hi: #B5C28C;
  --c-competition: #7F93FF; --c-audition: #E79BB2; --c-job: #5FC2B3; --c-masterclass: #B5C28C; --c-festival: #D9CDB8;
}
.admin-bar { --bar-t: 32px; }
@media (max-width: 782px) { .admin-bar { --bar-t: 46px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noir); -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--noir); color: var(--text);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
h1, h2, h3, h4, h5 { font-weight: 400; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; z-index: 100; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--gold); color: var(--noir); border-radius: 10px; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

/* Ambient concert-hall light + ornamental side pattern on wide screens */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 20% -10%, rgba(197,168,128,.10), transparent 60%),
    radial-gradient(40vmax 30vmax at 100% 0%, rgba(107,29,47,.18), transparent 60%),
    var(--noir);
}
@media (min-width: 560px) {
  body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23C5A880' stroke-opacity='.10'%3E%3Cpath d='M60 18 102 60 60 102 18 60Z'/%3E%3Crect x='38' y='38' width='44' height='44'/%3E%3Cpath d='M60 0v18M60 102v18M0 60h18M102 60h18'/%3E%3C/svg%3E");
    -webkit-mask: linear-gradient(90deg, #000 0, transparent calc(50% - var(--col) / 2 + 20px), transparent calc(50% + var(--col) / 2 - 20px), #000 100%);
            mask: linear-gradient(90deg, #000 0, transparent calc(50% - var(--col) / 2 + 20px), transparent calc(50% + var(--col) / 2 - 20px), #000 100%);
  }
  .app { border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
}

/* 3. Ornaments (from the brand board) ------------------------------------- */
/* Rule with diamond nodes: <div class="rule"><svg…diamond/></div> */
.rule { display: flex; align-items: center; gap: 10px; color: var(--gold); margin: 28px 0; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.rule::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.rule svg { width: 11px; height: 11px; opacity: .8; }
.rule.nodes { position: relative; }
.rule.nodes::before { background: var(--line-2); }
.rule.nodes::after { background: var(--line-2); }
.rule.nodes > i { position: absolute; top: 50%; width: 6px; height: 6px; border: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); background: var(--noir); }
.rule.nodes > i:first-child { left: 0; } .rule.nodes > i:last-of-type { right: 0; }

/* Corner flourishes for paper cards */
.corners { position: absolute; inset: 8px; pointer-events: none; color: var(--gold-lo); }
.corners svg { position: absolute; width: 22px; height: 22px; opacity: .75; }
.corners svg:nth-child(1) { top: 0; left: 0; }
.corners svg:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.corners svg:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.corners svg:nth-child(4) { bottom: 0; right: 0; transform: scale(-1); }
.on-dark .corners { color: var(--gold); }

/* Double frame (inner hairline) */
.frame { position: relative; }
.frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }

/* 4. App shell & navigation ----------------------------------------------- */
.app {
  position: relative; width: 100%; max-width: var(--col); margin: 0 auto; min-height: 100dvh;
}
.view { display: none; padding: calc(var(--safe-t) + 18px) var(--gutter) calc(var(--nav-h) + var(--safe-b) + 44px); }
.view.is-active { display: block; animation: viewIn .38s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

.nav {
  position: fixed; z-index: 20; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%);
  width: calc(min(100vw, var(--col)) - 28px); height: var(--nav-h); border-radius: 24px;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 0 4px;
  background: rgba(20, 25, 36, 0.74); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 500; position: relative; transition: color .3s var(--ease); }
.nav a svg { width: 23px; height: 23px; transition: transform .35s var(--spring); position: relative; z-index: 1; }
.nav a::before {
  content: ""; position: absolute; top: 7px; left: 50%; width: 46px; height: 34px; border-radius: 17px; transform: translateX(-50%) scale(.6); opacity: 0;
  background: radial-gradient(closest-side, rgba(197,168,128,.34), transparent); transition: opacity .35s, transform .35s var(--ease);
}
.nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"]::before { opacity: 1; transform: translateX(-50%) scale(1); }
.nav a[data-tab="saved"][aria-current="page"] { color: var(--teal-hi); }
.nav a[data-tab="saved"][aria-current="page"]::before { background: radial-gradient(closest-side, rgba(127,180,177,.34), transparent); }
.nav a:active svg { transform: scale(.86); }
.nav .badge {
  position: absolute; top: 8px; left: calc(50% + 6px); z-index: 2; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: var(--burgundy); color: var(--ivory); font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #151a26;
}
.nav .badge.bump { animation: pop .45s var(--spring); }

/* Top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--serif); font-size: 21px; color: var(--ivory); letter-spacing: -.02em; }
.brand img { max-height: 34px; width: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .pip { position: absolute; top: 10px; right: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--noir); }

/* 5. Components ------------------------------------------------------------ */
.press { transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s, opacity .2s; }
.press:active { transform: scale(.965); }

.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.display { font-family: var(--serif); font-weight: 350; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; color: var(--ivory); margin: 6px 0 0; font-variation-settings: "opsz" 144; }
.display em { font-style: italic; color: var(--gold); font-weight: 300; }
.h-section { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 0 14px; gap: 10px; }
.h-section h2 { font-family: var(--serif); font-size: 21px; letter-spacing: -.015em; margin: 0; color: var(--ivory); }
.link { font-size: 12.5px; color: var(--gold); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.link svg { width: 14px; height: 14px; }

/* Search */
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 7px 0 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); width: 100%; text-align: left; }
.search > svg { width: 19px; height: 19px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search .go { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--noir); position: relative; flex: none; }
.search .go svg { width: 18px; height: 18px; }
.search .go .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--burgundy); color: var(--ivory); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--noir); }
.search .clear { width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; color: var(--muted); }
.search .clear svg { width: 16px; height: 16px; }
.search.has-value .clear { display: grid; }
.filters-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; font-weight: 500; }
.filters-btn svg { width: 16px; height: 16px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 14px 0 13px; text-align: left; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 16px; }
.stat b { display: block; font-family: var(--serif); font-size: 27px; font-weight: 350; color: var(--ivory); line-height: 1; letter-spacing: -.02em; }
.stat b sup { font-family: var(--sans); font-size: 11px; color: var(--gold); margin-left: 2px; vertical-align: 12px; font-weight: 600; }
.stat span { font-size: 11.5px; color: var(--muted); margin-top: 6px; display: block; }

/* Chips — tinted like the brand board (Violin / Festivals / Europe / Age) */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip {
  --c-bg: var(--surface); --c-bd: var(--line); --c-fg: var(--text-2);
  --a-bg: var(--gold); --a-bd: var(--gold); --a-fg: var(--noir);
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 500; color: var(--c-fg); background: var(--c-bg); border: 1px solid var(--c-bd);
  scroll-snap-align: start; white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip[aria-pressed="true"] { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-bd); font-weight: 600; }
.chip.teal  { --c-bd: rgba(111,169,166,.35); --c-fg: var(--teal-hi);  --a-bg: var(--teal);  --a-bd: #6FA9A6; --a-fg: var(--ivory); }
.chip.rose  { --c-bd: rgba(210,167,169,.30); --c-fg: var(--rose-hi);  --a-bg: var(--rose);  --a-bd: #93696E; --a-fg: var(--ivory); }
.chip.olive { --c-bd: rgba(181,194,140,.30); --c-fg: var(--olive-hi); --a-bg: var(--olive); --a-bd: #7D8C57; --a-fg: var(--ivory); }
.chip.burg  { --c-bd: rgba(192,96,121,.35);  --c-fg: #E3A6B5;         --a-bg: var(--burgundy); --a-bd: var(--burgundy-hi); --a-fg: var(--ivory); }
.chip .x { width: 0; overflow: hidden; transition: width .2s var(--ease); }
.chip[aria-pressed="true"] .x { width: 13px; }
.chip .x svg { width: 13px; height: 13px; }

/* Urgency pill */
.pill-urgent {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px;
  background: var(--burgundy); color: var(--ivory); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.pill-urgent::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #E8B9A4; animation: pulse 1.8s ease-in-out infinite; }
.pill-urgent.calm { background: rgba(197,168,128,.14); color: var(--gold-hi); }
.pill-urgent.calm::before { background: var(--gold); animation: none; }
.pill-urgent.closed { background: rgba(255,255,255,.08); color: var(--muted); }
.pill-urgent.closed::before { background: var(--muted); animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; color: var(--dot, var(--gold)); }
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: rotate(45deg); border-radius: 1px; }

/* Buttons */
.btn { height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 0 18px; border: 1px solid var(--line-2); color: var(--ivory); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { flex: 1; background: linear-gradient(180deg, #D8C09B, var(--gold) 55%, #B3966E); color: var(--noir); border-color: rgba(255,255,255,.18); box-shadow: 0 10px 30px -10px rgba(197,168,128,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary.done { background: rgba(111,169,166,.16); color: #BFE2E0; border-color: rgba(111,169,166,.55); box-shadow: none; }
.btn.ghost[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: rgba(197,168,128,.08); }
.btn.ghost[aria-pressed="true"] svg path { fill: currentColor; }
.btn.block { width: 100%; }
.btn.small { height: 40px; border-radius: 12px; font-size: 13.5px; padding: 0 14px; }
.mini-btn { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.mini-btn svg { width: 14px; height: 14px; }
.mini-btn.gold { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.mini-btn.done { color: var(--gold); border-color: var(--line); }

/* Hero carousel (paper / brass / velvet cards) */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.hero { flex: none; width: 82%; height: 236px; scroll-snap-align: center; border-radius: var(--r-lg); position: relative; overflow: hidden; text-align: left; display: flex; flex-direction: column; padding: 20px; cursor: pointer; }
.hero.paper { background: var(--paper); color: var(--paper-ink); }
.hero.paper::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156,128,88,.4); border-radius: 18px; pointer-events: none; }
.hero.brass { background: radial-gradient(120% 90% at 100% 0%, rgba(220,195,158,.38), transparent 55%), linear-gradient(155deg, #5A4A33 0%, #2A231A 45%, #15130F 100%); color: var(--ivory); border: 1px solid rgba(197,168,128,.38); }
.hero.velvet { background: radial-gradient(100% 80% at 0% 0%, rgba(197,168,128,.18), transparent 60%), linear-gradient(160deg, #3C1320 0%, #1C0B11 70%); color: var(--ivory); border: 1px solid rgba(197,168,128,.24); }
.hero .art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.hero .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero.paper .art { opacity: .32; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; gap: 8px; }
.hero-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; opacity: .75; padding-top: 5px; }
.hero h3 { color: inherit; position: relative; z-index: 1; margin: auto 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.12; letter-spacing: -.02em; max-width: 86%; }
.hero-meta { position: relative; z-index: 1; display: flex; gap: 14px; margin-top: 12px; font-size: 12.5px; opacity: .8; padding-right: 48px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 14px; height: 14px; }
.save-fab { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(13,14,18,.35); border: 1px solid rgba(197,168,128,.35); color: var(--ivory); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero.paper .save-fab { background: rgba(26,27,32,.05); color: var(--paper-ink); border-color: rgba(156,128,88,.45); }
.save-fab svg { width: 18px; height: 18px; }
.save-fab[aria-pressed="true"] { background: var(--gold); color: var(--noir); border-color: var(--gold); }
.save-fab[aria-pressed="true"] svg path, .bm[aria-pressed="true"] svg path { fill: currentColor; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 5px; height: 5px; border-radius: 3px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 18px; background: var(--gold); }

/* Opportunity row card */
.list { display: flex; flex-direction: column; gap: 10px; }
.card { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-align: left; width: 100%; animation: rise .5s var(--ease) both; cursor: pointer; color: inherit; }
.card:hover { border-color: var(--line-2); }
.card .thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; position: relative; background: var(--noir-3); }
.card .thumb svg, .card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { min-width: 0; }
.card .title { font-family: var(--serif); font-size: 16.5px; line-height: 1.2; color: var(--ivory); letter-spacing: -.01em; margin: 4px 0 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.card .sub span { display: inline-flex; align-items: center; gap: 4px; }
.card .sub svg { width: 13px; height: 13px; }
.card .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: 8px; }
.card .days { font-size: 11px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.card .days.hot { color: #E59AA9; }
.bm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); }
.bm svg { width: 17px; height: 17px; }
.bm[aria-pressed="true"] { color: var(--noir); background: var(--gold); border-color: var(--gold); }
.pop { animation: pop .4s var(--spring); }
@keyframes pop { 40% { transform: scale(1.22); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* Paper feature (Editor's note) */
.feature { margin-top: 12px; border-radius: var(--r-lg); background: var(--paper); color: var(--paper-ink); padding: 26px 24px; position: relative; overflow: hidden; display: block; }
.feature::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156,128,88,.35); border-radius: 18px; pointer-events: none; }
.feature .eyebrow { color: var(--gold-lo); }
.feature h3 { font-family: var(--serif); font-weight: 350; font-size: 25px; line-height: 1.1; letter-spacing: -.02em; margin: 10px 0; color: var(--paper-ink); }
.feature p { margin: 0; font-size: 13.5px; color: var(--paper-mute); max-width: 88%; }
.feature .cta { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--paper-ink); }
.feature .cta svg { width: 16px; height: 16px; }
.feature .staff { position: absolute; right: -10px; top: 20px; width: 150px; opacity: .3; color: var(--gold-lo); }

/* Segmented control */
.segmented { display: flex; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; }
.segmented button { flex: 1; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--muted); position: relative; z-index: 1; transition: color .25s; display: inline-flex; align-items: center; justify-content: center; gap: 5px; white-space: nowrap; min-width: 0; }
.segmented button[aria-selected="true"] { color: var(--noir); font-weight: 600; }
.segmented .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 10px; background: var(--gold); transition: transform .35s var(--ease), width .35s var(--ease); }
.segmented .n { font-size: 11px; opacity: .7; }

/* Empty state */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; color: var(--gold); opacity: .8; }
.empty h3 { font-family: var(--serif); font-size: 19px; color: var(--ivory); margin: 0 0 6px; }
.empty p { margin: 0 0 16px; font-size: 13px; }
mark { background: rgba(197,168,128,.25); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Toast */
.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + var(--bar-t) + 10px); transform: translate(-50%, calc(-100% - 40px)); display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 16px; max-width: calc(min(100vw, var(--col)) - 32px); width: max-content; background: rgba(30,34,46,.94); border: 1px solid var(--line-2); color: var(--ivory); font-size: 13.5px; font-weight: 500; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: transform .45s var(--spring); }
.toast.on { transform: translate(-50%, 0); }
.toast .t-ic { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--noir); display: grid; place-items: center; flex: none; }
.toast .t-ic svg { width: 14px; height: 14px; }
.toast button { color: var(--gold); font-weight: 700; font-size: 12.5px; padding: 6px 8px; letter-spacing: .04em; text-transform: uppercase; }

/* Switch */
.switch { width: 50px; height: 30px; border-radius: 15px; background: rgba(255,255,255,.12); position: relative; flex: none; transition: background .3s var(--ease); border: 1px solid var(--hair); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ivory); box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .35s var(--spring); }
.switch[aria-checked="true"] { background: var(--gold); border-color: var(--gold); }
.switch[aria-checked="true"]::after { transform: translateX(20px); background: var(--noir); }
.switch:disabled { opacity: .4; }

/* 6. Views ----------------------------------------------------------------- */
/* Discover */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; }
.toolbar .count { font-size: 13px; color: var(--muted); }
.toolbar .count b { color: var(--ivory); font-weight: 600; }
.sort { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); background: var(--surface); }
.sort svg { width: 14px; height: 14px; }
.sort b { color: var(--gold); font-weight: 600; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 14px; }
.cal-head h2 { font-family: var(--serif); font-weight: 350; font-size: 26px; margin: 0; letter-spacing: -.02em; color: var(--ivory); }
.cal-head h2 span { color: var(--muted); font-weight: 300; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav .icon-btn { width: 36px; height: 36px; }
.cal-nav .icon-btn svg { width: 17px; height: 17px; }
.cal { border-radius: var(--r-lg); padding: 16px 10px 12px; background: var(--surface); border: 1px solid var(--line); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal-dow span { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); font-weight: 600; padding-bottom: 8px; }
.cal-grid { row-gap: 4px; }
.day { height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text); position: relative; transition: background .2s, color .2s, transform .18s var(--ease); }
.day:active { transform: scale(.92); }
.day.out { color: rgba(142,144,153,.4); }
.day.today { color: var(--gold); font-weight: 700; }
.day.today::after { content: ""; position: absolute; inset: 3px 6px; border: 1px solid var(--line-2); border-radius: 10px; }
.day.sel { background: var(--gold); color: var(--noir); font-weight: 700; }
.day.sel::after { display: none; }
.day .marks { display: flex; gap: 3px; height: 5px; }
.day .marks i { width: 5px; height: 5px; border-radius: 50%; }
.day.sel .marks i { box-shadow: 0 0 0 1px rgba(13,14,18,.45); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 14px 6px 0; font-size: 11.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 6px; height: 6px; border-radius: 50%; }
.agenda { display: flex; flex-direction: column; gap: 10px; }
.ag { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.ag .date { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.ag .date b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 350; line-height: 1; color: var(--ivory); }
.ag .date span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ag h3 { margin: 4px 0; font-family: var(--serif); font-size: 16px; line-height: 1.2; color: var(--ivory); text-align: left; }
.ag .meta { font-size: 12px; color: var(--muted); }
.ag .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Saved */
.alert { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-md); margin-top: 20px; background: linear-gradient(135deg, rgba(107,29,47,.88), rgba(60,19,32,.92)); border: 1px solid rgba(197,168,128,.22); color: var(--ivory); }
.alert .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(244,237,225,.1); flex: none; }
.alert .ic svg { width: 20px; height: 20px; }
.alert b { font-family: var(--serif); font-weight: 400; font-size: 17px; display: block; line-height: 1.2; }
.alert span { font-size: 12px; opacity: .75; }
.alert.calm { background: var(--surface); border-color: var(--line); }
.alert.calm .ic { color: var(--gold); }
.swipe { position: relative; border-radius: var(--r-md); overflow: hidden; animation: rise .45s var(--ease) both; }
.swipe .under { position: absolute; inset: 0; display: flex; justify-content: flex-end; background: var(--burgundy); border-radius: var(--r-md); }
.swipe .under button { width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ivory); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.swipe .under svg { width: 20px; height: 20px; }
.swipe .card { animation: none; background: var(--noir-3); touch-action: pan-y; transition: transform .35s var(--ease); }
.swipe.dragging .card { transition: none; }
.swipe.removing { animation: collapse .38s var(--ease) forwards; }
@keyframes collapse { to { opacity: 0; height: 0; margin-top: -10px; transform: translateX(-30px); } }
.status-pill { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.status-pill svg { width: 11px; height: 11px; }
.status-pill[data-s="applied"] { color: var(--teal-hi); border-color: rgba(111,169,166,.5); }
.status-pill[data-s="shortlisted"] { color: var(--gold-hi); border-color: rgba(197,168,128,.55); background: rgba(197,168,128,.1); }
.hint { font-size: 11.5px; color: var(--muted); text-align: center; margin: 16px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hint svg { width: 14px; height: 14px; }
.guest-note { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); border: 1px dashed var(--line-2); font-size: 13px; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.guest-note svg { width: 20px; height: 20px; color: var(--gold); flex: none; }

/* Profile */
.prof { border-radius: var(--r-xl); padding: 22px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.prof .corners { inset: 10px; }
.prof-top { display: flex; gap: 16px; align-items: center; position: relative; }
.avatar { width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 30% 25%, #6A5A44, #231D16 70%); color: var(--ivory); font-family: var(--serif); font-size: 30px; font-weight: 350; font-style: italic; box-shadow: 0 0 0 1px var(--gold), 0 0 0 5px var(--noir), 0 0 0 6px var(--line-2); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: absolute; inset: 0; }
.verified { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: var(--noir); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--noir); }
.verified svg { width: 14px; height: 14px; }
.prof h1 { font-family: var(--serif); font-weight: 350; font-size: 26px; margin: 0; letter-spacing: -.02em; color: var(--ivory); line-height: 1.1; }
.prof .role { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.badge-v { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.badge-v svg { width: 13px; height: 13px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 20px; position: relative; border: 1px solid var(--line); }
.fact { background: var(--noir-2); padding: 12px 14px; min-width: 0; }
.fact span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fact span svg { width: 13px; height: 13px; color: var(--gold); }
.fact b { display: block; font-weight: 500; font-size: 14px; margin-top: 4px; color: var(--ivory); overflow-wrap: anywhere; }
.fact b.empty-val { color: var(--muted); font-weight: 400; }
.tracker { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.track-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 3px; margin: 14px 0 16px; background: rgba(255,255,255,.05); }
.track-bar i { display: block; height: 100%; border-radius: 3px; transition: flex-grow .6s var(--ease); }
.track-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track-legend b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 350; color: var(--ivory); line-height: 1; }
.track-legend span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.track-legend span i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.settings { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; width: 100%; text-align: left; color: inherit; }
.row + .row { border-top: 1px solid var(--hair); }
.row .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(197,168,128,.1); color: var(--gold); flex: none; }
.row .ic svg { width: 18px; height: 18px; }
.row .txt { flex: 1; min-width: 0; }
.row .txt b { display: block; font-weight: 500; font-size: 14.5px; color: var(--ivory); }
.row .txt span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.row .chev { width: 16px; height: 16px; color: var(--muted); flex: none; }
.row .val { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.welcome { border-radius: var(--r-xl); padding: 28px 22px; background: var(--paper); color: var(--paper-ink); position: relative; overflow: hidden; text-align: center; }
.welcome::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(156,128,88,.35); border-radius: 22px; pointer-events: none; }
.welcome .mark { width: 56px; height: 56px; margin: 0 auto 14px; color: var(--gold-lo); }
.welcome h1 { color: var(--paper-ink); font-family: var(--serif); font-size: 27px; line-height: 1.12; margin: 0 0 10px; letter-spacing: -.02em; }
.welcome p { margin: 0 auto 20px; color: var(--paper-mute); font-size: 14px; max-width: 300px; }
.welcome .btns { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.welcome .btn:not(.primary) { color: var(--paper-ink); border-color: rgba(156,128,88,.5); }
.foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 11.5px; }
.foot .brand { justify-content: center; margin-bottom: 8px; }
.foot .brand svg { width: 22px; height: 22px; }
.foot .brand span { font-size: 17px; }

/* 7. Sheets & detail ------------------------------------------------------- */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(5,6,8,.62); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 31; left: 50%; bottom: 0; width: min(100vw, var(--col));
  max-height: calc(100dvh - var(--safe-t) - var(--bar-t) - 10px);
  background: var(--noir-2); border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0;
  transform: translate(-50%, 105%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  display: flex; flex-direction: column; box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.sheet.on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.sheet.dragging { transition: none; }
.grab { padding: 10px 0 6px; display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; position: relative; z-index: 3; }
.grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.sheet-scroll { overflow-y: auto; overflow-x: hidden; flex: 1; overscroll-behavior: contain; scrollbar-width: none; }
.sheet-scroll::-webkit-scrollbar { display: none; }
.sheet-body { padding: 4px var(--gutter) 20px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; color: var(--ivory); }
.sheet-head button { font-size: 13px; color: var(--gold); font-weight: 600; }
.sheet-actions { display: flex; gap: 10px; padding: 14px var(--gutter) calc(var(--safe-b) + 14px); border-top: 1px solid var(--hair); }

#detail { height: calc(100dvh - var(--safe-t) - var(--bar-t) - 10px); }
#detail .grab { position: absolute; top: 0; left: 0; right: 0; }
#detail .grab i { background: rgba(244,237,225,.55); }
.banner { position: relative; height: 250px; overflow: hidden; border-radius: 28px 28px 0 0; background: var(--noir-3); }
.banner .art, .banner .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .photo + .art { opacity: .35; mix-blend-mode: screen; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,14,18,.15) 0%, rgba(18,20,26,0) 45%, var(--noir-2) 100%); }
.banner .top-actions { position: absolute; z-index: 2; top: 22px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.banner .top-actions .icon-btn { background: rgba(13,14,18,.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-color: rgba(244,237,225,.18); }
.banner .caption { position: absolute; z-index: 2; left: 20px; bottom: 16px; font-size: 11px; color: rgba(244,237,225,.72); letter-spacing: .1em; text-transform: uppercase; }
.d-body { padding: 4px var(--gutter) 130px; }
.d-kick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-body h2.d-title { font-family: var(--serif); font-weight: 350; font-size: 30px; line-height: 1.08; letter-spacing: -.025em; margin: 14px 0 8px; color: var(--ivory); font-variation-settings: "opsz" 144; }
.d-org { font-size: 13.5px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.d-org svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
.d-lede { font-size: 14.5px; color: var(--text-2); margin: 16px 0 0; line-height: 1.6; }
.prize-card { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-md); background: linear-gradient(120deg, rgba(197,168,128,.18), rgba(197,168,128,.03)); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prize-card span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.prize-card span svg { width: 15px; height: 15px; }
.prize-card b { font-family: var(--serif); font-size: 28px; font-weight: 350; color: var(--gold-hi); letter-spacing: -.01em; text-align: right; line-height: 1.1; }
/* Metadata rows — "Location ……… Oct 24" as on the brand board */
.meta-list { margin-top: 14px; }
.meta-list div { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.meta-list dt { display: flex; align-items: center; gap: 10px; color: var(--text-2); margin: 0; }
.meta-list dt svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.meta-list dd { margin: 0 0 0 auto; color: var(--ivory); font-weight: 500; text-align: right; }
.d-sec { margin-top: 28px; }
.d-sec > h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 12px; color: var(--ivory); display: flex; align-items: center; gap: 10px; }
.d-sec > h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.rep { border-radius: var(--r-md); background: var(--paper); color: var(--paper-ink); padding: 8px 18px; position: relative; }
.rep .round { padding: 12px 0; position: relative; z-index: 1; }
.rep .round + .round { border-top: 1px solid rgba(26,27,32,.1); }
.rep .round b { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-lo); font-weight: 700; }
.rep ul { margin: 6px 0 0; padding: 0; list-style: none; }
.rep li { font-family: var(--serif); font-size: 15px; padding: 3px 0 3px 18px; position: relative; line-height: 1.35; }
.rep li::before { content: "♪"; position: absolute; left: 0; top: 3px; font-size: 12px; color: var(--gold-lo); font-family: var(--sans); }
.jury { display: grid; gap: 12px; }
.juror { display: flex; align-items: center; gap: 12px; }
.juror .mono { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold-hi); border: 1px solid var(--line-2); background: rgba(197,168,128,.06); flex: none; }
.juror b { display: block; font-weight: 500; font-size: 14px; color: var(--ivory); }
.juror span { font-size: 12px; color: var(--muted); }
.stay { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.stay svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.d-content { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.d-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.actionbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; gap: 8px; padding: 14px 16px calc(var(--safe-b) + 14px); background: linear-gradient(180deg, rgba(19,24,37,0), rgba(19,24,37,.94) 30%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
.actionbar .btn:not(.primary) { padding: 0 14px; }

/* Filter sheet */
.f-group { padding: 18px 0; border-bottom: 1px solid var(--hair); }
.f-group:last-child { border-bottom: 0; }
.f-group .lbl { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.f-group .lbl b { color: var(--gold); letter-spacing: 0; text-transform: none; font-size: 13px; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; }
.range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p, 100%), rgba(255,255,255,.1) var(--p, 100%)); }
.range::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); }
.range::-moz-range-progress { height: 3px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); border: 5px solid var(--gold); margin-top: -10.5px; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 5px solid var(--gold); }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 4px; font-size: 15px; border-bottom: 1px solid var(--hair); color: var(--text); }
.opt svg { width: 18px; height: 18px; color: var(--gold); opacity: 0; }
.opt[aria-checked="true"] { color: var(--gold); }
.opt[aria-checked="true"] svg { opacity: 1; }

/* Profile form */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ivory); font-size: 16px; outline: 0; }
.field input:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 8. Editorial pages (posts, pages, blog) ---------------------------------- */
.page-wrap { padding: calc(var(--safe-t) + 18px) var(--gutter) calc(var(--nav-h) + var(--safe-b) + 48px); }
.entry-header { margin: 8px 0 22px; }
.entry-header .display { font-size: 34px; }
.entry-meta { font-size: 12.5px; color: var(--muted); margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.entry-hero { margin: 0 calc(var(--gutter) * -1) 24px; aspect-ratio: 16 / 10; overflow: hidden; }
.entry-hero img { width: 100%; height: 100%; object-fit: cover; }
.entry-content { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.entry-content > * { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--serif); color: var(--ivory); line-height: 1.2; letter-spacing: -.015em; margin: 1.6em 0 .5em; }
.entry-content h2 { font-size: 25px; } .entry-content h3 { font-size: 21px; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.4em 0; padding: 18px 20px; border-left: 2px solid var(--gold); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--serif); font-size: 19px; color: var(--ivory); }
.entry-content img, .entry-content figure { border-radius: var(--r-md); }
.entry-content figcaption { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content hr { border: 0; height: 1px; background: var(--line-2); margin: 2em 0; }
.entry-content .wp-block-button__link { background: var(--gold); color: var(--noir); border-radius: 14px; padding: 14px 22px; font-weight: 600; text-decoration: none; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--hair); padding: 10px 6px; text-align: left; }
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card { display: block; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; }
.post-card h2 { font-family: var(--serif); font-size: 21px; color: var(--ivory); margin: 8px 0 6px; line-height: 1.2; }
.post-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.post-card.paper { background: var(--paper); color: var(--paper-ink); position: relative; }
.post-card.paper h2 { color: var(--paper-ink); }
.post-card.paper p { color: var(--paper-mute); }
.pagination { display: flex; justify-content: space-between; margin-top: 22px; }
.comments-area { margin-top: 36px; }
.comments-area h2, .comments-area h3 { font-family: var(--serif); color: var(--ivory); font-size: 21px; }
.comments-area label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.comments-area input, .comments-area textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ivory); }
.comments-area .submit { background: var(--gold); color: var(--noir); border: 0; border-radius: 12px; height: 46px; padding: 0 18px; font-weight: 600; }

/* No-JS / crawler fallback */
.seo { padding: calc(var(--safe-t) + 18px) var(--gutter) calc(var(--nav-h) + 40px); }
.js .seo { display: none; }
.seo h1 { font-family: var(--serif); color: var(--ivory); font-size: 30px; line-height: 1.1; }
.seo ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Laravel platform additions -------------------------------------------- */
.foot-links { display: flex; justify-content: center; gap: 16px; margin-top: 10px; font-size: 12px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--gold); }
.flash { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(197,168,128,.12); border: 1px solid var(--line-2); color: var(--ivory); font-size: 13.5px; }
.flash.warn { background: rgba(107,29,47,.35); border-color: rgba(192,96,121,.4); }
/* Auth & account forms */
.auth { padding: calc(var(--safe-t) + 36px) var(--gutter) calc(var(--nav-h) + var(--safe-b) + 48px); }
.auth .mark { width: 54px; height: 54px; color: var(--gold); margin: 0 auto 14px; }
.auth h1 { font-family: var(--serif); font-weight: 350; font-size: 30px; color: var(--ivory); text-align: center; margin: 0 0 6px; letter-spacing: -.02em; }
.auth .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.auth form, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-family: var(--serif); font-size: 20px; color: var(--ivory); margin: 0 0 14px; }
.panel p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.field .err { display: block; color: #E59AA9; font-size: 12.5px; margin-top: 6px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 4px 0 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 1px; flex: none; }
.auth .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.btn.danger { background: var(--burgundy); border-color: var(--burgundy-hi); color: var(--ivory); }

/* Install banner & guide ------------------------------------------------- */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; margin: -6px 0 20px; border-radius: var(--r-md); background: linear-gradient(120deg, rgba(197,168,128,.16), rgba(197,168,128,.04)); border: 1px solid var(--line-2); }
.install-banner .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(197,168,128,.14); color: var(--gold); flex: none; }
.install-banner .ic svg { width: 19px; height: 19px; }
.install-banner .txt { flex: 1; min-width: 0; }
.install-banner .txt b { display: block; font-size: 14px; font-weight: 600; color: var(--ivory); }
.install-banner .txt span { font-size: 12px; color: var(--muted); }
.install-banner .x { width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.install-banner .x svg { width: 15px; height: 15px; }
/* Install prompt — slide-up nudge for first-time visitors */
.install-pop { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 84px); width: min(420px, calc(100vw - 28px)); transform: translate(-50%, 160%); opacity: 0; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "mark txt" "actions actions"; gap: 4px 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -14px rgba(0,0,0,.45), 0 3px 10px rgba(0,0,0,.14); transition: transform .5s var(--spring), opacity .35s ease; }
.install-pop.on { transform: translate(-50%, 0); opacity: 1; }
.install-pop .ip-mark { grid-area: mark; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(197,168,128,.14); color: var(--gold); flex: none; }
.install-pop .ip-mark svg { width: 25px; height: 25px; }
.install-pop .ip-txt { grid-area: txt; align-self: center; min-width: 0; }
.install-pop .ip-txt b { display: block; font-size: 15px; font-weight: 600; color: var(--ivory); margin-bottom: 2px; }
.install-pop .ip-txt span { font-size: 12.5px; line-height: 1.42; color: var(--muted); }
.install-pop .ip-actions { grid-area: actions; display: flex; gap: 8px; margin-top: 8px; }
.install-pop .ip-actions .mini-btn { height: 38px; flex: 1; justify-content: center; font-size: 13px; }
.install-pop .ip-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.install-pop .ip-x svg { width: 15px; height: 15px; }
.mini-btn.ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
@media (min-width: 960px) { .install-pop { left: auto; right: 24px; bottom: 24px; transform: translate(0, 160%); } .install-pop.on { transform: translate(0, 0); } }
.install-lede { color: var(--text-2); font-size: 14.5px; margin: 4px 0 18px; line-height: 1.55; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.install-steps li { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.install-steps li b { color: var(--ivory); font-weight: 600; }
.install-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: var(--noir); font-weight: 700; font-size: 14px; }
.inline-ic { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; color: var(--gold); }
.install-note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* Landing (visitors) ---------------------------------------------------- */
.landing .topbar .mini-btn { height: 38px; padding: 0 14px; font-size: 13px; }
.hero-intro { margin: 6px 0 4px; }
.hero-intro .display { font-size: 34px; margin-bottom: 14px; }
.hero-intro .lead { color: var(--text-2); font-size: 15.5px; line-height: 1.6; margin: 0 0 22px; }
.free-badge { display: inline-block; padding: 2px 8px; margin-right: 8px; border-radius: 6px; background: var(--gold); color: var(--noir); letter-spacing: .08em; }
.free-note { text-align: center; font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.free-note a { color: var(--gold); }
.landing .stats { margin: 26px 0 0; }
.card.teaser .thumb { background: linear-gradient(145deg, #3a3024, #15120e); }
.card.teaser .thumb[data-palette="velvet"] { background: linear-gradient(145deg, #43152A, #150810); }
.card.teaser .thumb[data-palette="teal"] { background: linear-gradient(145deg, #1C3536, #0B1415); }
.card.teaser .thumb[data-palette="olive"] { background: linear-gradient(145deg, #2E3322, #101209); }
.card.teaser .thumb[data-palette="paper"] { background: linear-gradient(145deg, #F9F8F6, #D9CDB8); }
.card.teaser .thumb[data-palette="noir"] { background: linear-gradient(145deg, #1B2130, #0E121B); }
.skeleton { display: grid; gap: 6px; margin: 8px 0 8px; filter: blur(.5px); }
.skeleton i { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, rgba(244,237,225,.16), rgba(244,237,225,.06)); }
.skeleton i:last-child { width: 62%; }
.lock-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-2); }
.lock-dot svg { width: 16px; height: 16px; }
.h-section .link svg { width: 13px; height: 13px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.benefits .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(197,168,128,.1); color: var(--gold); flex: none; }
.benefits .ic svg { width: 18px; height: 18px; }
.benefits b { display: block; color: var(--ivory); font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.closing-cta { position: relative; margin-top: 30px; padding: 28px 22px 22px; border-radius: var(--r-xl); background: var(--paper); color: var(--paper-ink); text-align: center; }
.closing-cta h2 { font-family: var(--serif); font-weight: 350; font-size: 26px; margin: 0 0 8px; color: var(--paper-ink); letter-spacing: -.02em; }
.closing-cta p { margin: 0 0 18px; color: var(--paper-mute); font-size: 14px; }
.closing-cta .btn { position: relative; z-index: 1; }
.closing-cta .btn + .btn { margin-top: 10px; color: var(--paper-ink); border-color: rgba(156,128,88,.5); }
.landing .foot-links { margin: 26px 0 8px; }
.locked-card { position: relative; margin: 0 0 30px; padding: 26px 22px 22px; border-radius: var(--r-xl); background: var(--paper); color: var(--paper-ink); }
.locked-card .eyebrow { color: var(--gold-lo); }
.locked-kick { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 0; gap: 10px; position: relative; z-index: 1; }
.locked-card h1 { font-family: var(--serif); font-weight: 350; font-size: 27px; line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 8px; color: var(--paper-ink); }
.locked-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--paper-mute); margin: 0 0 16px; }
.locked-meta svg { width: 15px; height: 15px; }
.locked-rows { position: relative; display: grid; gap: 1px; margin-bottom: 18px; border-radius: 14px; overflow: hidden; background: rgba(26,27,32,.08); }
.locked-rows span { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper-2); font-size: 13.5px; color: var(--paper-mute); filter: blur(1.2px); }
.locked-rows span svg { width: 16px; height: 16px; color: var(--gold-lo); }
.locked-rows .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.locked-rows .lock svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper); color: var(--gold-lo); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.locked-card .btn { position: relative; z-index: 1; }
.locked-card .free-note { color: var(--paper-mute); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.opus-page:not(.opus-app) .page-wrap { padding-bottom: calc(var(--safe-b) + 40px); }
body:has(.nav) .page-wrap { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 48px); }

/* Sign in with Apple / Google ------------------------------------------- */
.social { display: grid; gap: 10px; margin: 0 0 18px; position: relative; z-index: 1; }
.social-btn { height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; text-decoration: none; }
.social-btn svg { width: 19px; height: 19px; flex: none; }
.social-btn.apple { background: #fff; color: #000; }
.social-btn.apple svg { width: 17px; height: 20px; margin-top: -3px; }
.social-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-family: Roboto, var(--sans); }
.social .or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.social .or::before, .social .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.locked-card .social .or, .closing-cta .social .or { color: var(--paper-mute); }
.locked-card .social .or::before, .locked-card .social .or::after { background: rgba(26,27,32,.12); }
.locked-card .social-btn.apple { background: #000; color: #fff; }

/* Private note on the opportunity detail */
.note-input { width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ivory); font-size: 16px; line-height: 1.5; outline: 0; }
.note-input:focus { border-color: var(--gold); }
.note-input::placeholder { color: var(--muted); }

/* Organizer link in the detail sheet */
a.d-org { text-decoration: none; }
a.d-org:hover { color: var(--ivory); }
a.d-org svg:last-child { width: 13px; height: 13px; color: var(--muted); margin-left: 2px; }

/* Saved searches strip (Discover) */
.saved-searches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ss-chip { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ss-chip .chip { border: 0; background: transparent; border-radius: 0; padding: 8px 6px 8px 12px; gap: 6px; }
.ss-chip .chip svg { width: 14px; height: 14px; color: var(--gold); }
.ss-x { border: 0; background: transparent; color: var(--muted); padding: 0 10px; display: inline-flex; align-items: center; }
.ss-x svg { width: 13px; height: 13px; }
.ss-x:hover { color: var(--ivory); }

/* In-site application sheet */
.apply-intro { color: var(--text-2); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.apply-intro b { color: var(--ivory); }

/* ==========================================================================
   Prototype redesign — light editorial skin (overrides)
   Re-tones the components above to the uploaded prototype: warm paper,
   Newsreader serif, Instrument Sans, electric-blue accent, hairline rules,
   a flat bottom navigation bar. Dark mode follows the system.
   ========================================================================== */
body { font-size: 16px; line-height: 1.55; }
body::before, body::after { display: none !important; content: none !important; }
a { color: var(--accent); }

/* Navigation — flat bar with a sliding top indicator */
.nav {
  left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none;
  border-radius: 0; border: 0; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  box-shadow: none; padding: 0 0 var(--safe-b);
}
@media (min-width: 560px) { .nav { left: 50%; transform: translateX(-50%); width: min(100vw, var(--col)); } }
.nav a::before { display: none !important; }
.nav a[aria-current="page"], .nav a[data-tab="saved"][aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 2px; border-radius: 2px; background: var(--accent); }
.nav .badge { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg); }

/* Top bar & brand */
.brand, .brand span, .foot .brand span { color: var(--ink); }
.brand svg { color: var(--accent); }
.icon-btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
.icon-btn .pip { background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }

/* Type */
.display { font-weight: 400; color: var(--ink); font-variation-settings: normal; }
.display em { color: var(--accent); font-weight: 400; }
.h-section h2, .cal-head h2, .sheet-head h2, .empty h3, .toolbar .count b, .stat b { color: var(--ink); }
.stat b sup { color: var(--accent); }
.link { color: var(--ink-2); } .link:hover { color: var(--accent); }

/* Search */
.search { background: var(--surface); border-color: var(--line); }
.search input { color: var(--ink); }
.search .go { background: var(--accent); color: var(--accent-ink); }
.search .go .count { background: var(--warn); color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.filters-btn { color: var(--ink); border-color: var(--line-2); }
.sort { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.sort b { color: var(--accent); }

/* Chips — pressed reads as ink, like the prototype */
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.teal[aria-pressed="true"], .chip.rose[aria-pressed="true"], .chip.olive[aria-pressed="true"], .chip.burg[aria-pressed="true"] { color: var(--bg); }

/* Urgency pill */
.pill-urgent { background: var(--warn); color: var(--accent-ink); box-shadow: none; }
.pill-urgent::before { background: var(--accent-ink); }
.pill-urgent.calm { background: var(--accent-soft); color: var(--accent); }
.pill-urgent.calm::before { background: var(--accent); }
.pill-urgent.closed { background: var(--sunk); color: var(--muted); }
.pill-urgent.closed::before { background: var(--muted); }

/* Buttons */
.btn { border-radius: 8px; height: 48px; color: var(--ink); border-color: var(--line-2); background: var(--surface); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: none; }
.btn.primary.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn.ghost[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.btn.danger { background: var(--warn); border-color: var(--warn); color: #fff; }
.mini-btn { color: var(--ink); border-color: var(--line-2); }
.mini-btn.gold { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mini-btn.done { color: var(--accent); border-color: var(--line); }

/* Hero carousel → flat editorial cards */
.hero, .hero.paper, .hero.brass, .hero.velvet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.hero.paper::after { display: none; }
.hero h3 { color: var(--ink); }
.hero .art { opacity: .12; color: var(--accent); }
.save-fab, .hero.paper .save-fab { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.save-fab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dots i.on { background: var(--accent); }

/* Cards */
.card { background: var(--surface); }
.card:hover { border-color: var(--line-2); }
.card .title { color: var(--ink); }
.card .thumb, .card.teaser .thumb, .card.teaser .thumb[data-palette] { background: var(--sunk); }
.card .days { color: var(--accent); } .card .days.hot { color: var(--warn); }
.bm { color: var(--ink-2); border-color: var(--line-2); }
.bm[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Paper panels (feature / welcome / closing / locked) */
.feature, .welcome, .closing-cta, .locked-card, .post-card, .post-card.paper { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.feature::after, .welcome::after, .closing-cta::after, .locked-card .corners { display: none; }
.feature h3, .welcome h1, .closing-cta h2, .locked-card h1, .post-card h2, .post-card.paper h2 { color: var(--ink); }
.feature p, .welcome p, .closing-cta p, .locked-meta, .post-card p, .post-card.paper p, .locked-card .free-note { color: var(--muted); }
.feature .eyebrow, .locked-card .eyebrow { color: var(--accent); }
.feature .staff, .welcome .mark { color: var(--accent); opacity: .16; }
.welcome .btn:not(.primary), .closing-cta .btn + .btn { color: var(--ink); border-color: var(--line-2); }

/* Segmented control */
.segmented { background: var(--surface); border-color: var(--line); }
.segmented .thumb { background: var(--accent); }
.segmented button[aria-selected="true"] { color: var(--accent-ink); }

/* Empty + highlight */
.empty { background: var(--surface); border-color: var(--line); }
.empty svg { color: var(--accent); }
mark { background: var(--accent-soft); color: var(--accent); }

/* Toast */
.toast { background: var(--ink); color: var(--bg); border: 0; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.toast .t-ic { background: var(--accent); color: #fff; }
.toast button { color: var(--bg); }

/* Switch */
.switch { background: var(--sunk); border-color: var(--line-2); }
.switch::after { background: #fff; }
.switch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-checked="true"]::after { background: #fff; }

/* Calendar */
.cal, .ag { background: var(--surface); border-color: var(--line); }
.cal-head h2, .ag .date b, .ag h3 { color: var(--ink); }
.ag .date { border-color: var(--line); }
.ag .date span { color: var(--accent); }
.day.today { color: var(--accent); }
.day.today::after { border-color: var(--accent); }
.day.sel { background: var(--accent); color: var(--accent-ink); }

/* Saved */
.alert { background: var(--accent-soft); border-color: var(--line); color: var(--ink); }
.alert .ic { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.alert b { color: var(--ink); } .alert span { color: var(--muted); opacity: 1; }
.alert.calm { background: var(--surface); }
.alert.calm .ic { color: var(--accent); }
.swipe .card { background: var(--surface); }
.swipe .under { background: var(--warn); }
.status-pill { color: var(--ink-2); border-color: var(--line-2); }
.status-pill[data-s="applied"] { color: var(--teal); border-color: var(--teal); }
.status-pill[data-s="shortlisted"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.guest-note { border-color: var(--line-2); color: var(--ink-2); }
.guest-note svg { color: var(--accent); }

/* Profile */
.prof, .tracker, .settings, .panel, .auth form { background: var(--surface); border-color: var(--line); }
.prof h1, .track-legend b, .fact b, .panel h2 { color: var(--ink); }
.avatar { background: var(--sunk); color: var(--ink); font-style: normal; box-shadow: 0 0 0 1px var(--line-2); }
.verified { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px var(--bg); }
.badge-v { color: var(--accent); }
.facts { background: var(--line); border-color: var(--line); }
.fact { background: var(--surface); }
.fact span svg { color: var(--accent); }
.row .ic { background: var(--accent-soft); color: var(--accent); }
.row .txt b { color: var(--ink); }
.row .val { color: var(--accent); }

/* Sheets & detail */
.sheet { background: var(--surface-solid); border-color: var(--line); box-shadow: 0 -20px 60px rgba(0,0,0,.18); }
.scrim { background: rgba(15,16,18,.38); }
.grab i, #detail .grab i { background: var(--line-2); }
.sheet-head button { color: var(--accent); }
.banner { background: var(--sunk); }
.banner::after { background: linear-gradient(180deg, rgba(0,0,0,.04), transparent 45%, var(--surface-solid) 100%); }
.banner .caption { color: var(--muted); }
.banner .top-actions .icon-btn { background: color-mix(in srgb, var(--bg) 70%, transparent); border-color: var(--line-2); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.d-body h2.d-title { color: var(--ink); font-variation-settings: normal; }
.d-lede, .d-content { color: var(--ink-2); }
.prize-card { background: var(--accent-soft); border-color: transparent; }
.prize-card span, .prize-card b { color: var(--accent); }
.meta-list dd { color: var(--ink); }
.meta-list dt { color: var(--ink-2); } .meta-list dt svg { color: var(--accent); }
.d-sec > h3 { color: var(--ink); }
.rep { background: var(--sunk); color: var(--ink); }
.rep .round b, .rep li::before { color: var(--accent); }
.juror .mono { color: var(--accent); border-color: var(--line-2); background: var(--accent-soft); }
.juror b { color: var(--ink); }
.stay { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.stay svg, .d-org svg, .inline-ic { color: var(--accent); }
.d-content a, .entry-content a, a.d-org:hover { color: var(--accent); }
.actionbar { background: linear-gradient(180deg, transparent, var(--surface-solid) 30%); border-color: var(--hair); }

/* Filter sheet */
.opt { color: var(--ink); } .opt svg { color: var(--accent); } .opt[aria-checked="true"] { color: var(--accent); }
.f-group .lbl b { color: var(--accent); }
.range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--p,100%), var(--sunk) var(--p,100%)); }
.range::-webkit-slider-thumb { background: #fff; border-color: var(--accent); }
.range::-moz-range-track { background: var(--sunk); }
.range::-moz-range-progress { background: var(--accent); }
.range::-moz-range-thumb { background: #fff; border-color: var(--accent); }

/* Forms */
.field input, .note-input, .comments-area input, .comments-area textarea { background: var(--surface); border-color: var(--line); color: var(--ink); }
.field input:focus, .note-input:focus { border-color: var(--accent); }
.check input { accent-color: var(--accent); }
.field .err { color: var(--warn); }

/* Editorial pages */
.entry-content { color: var(--ink-2); }
.entry-content h2, .entry-content h3, .entry-content h4, .entry-header .display, .seo h1, .auth h1, .comments-area h2, .comments-area h3 { color: var(--ink); }
.entry-content blockquote { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.entry-content .wp-block-button__link, .comments-area .submit { background: var(--accent); color: var(--accent-ink); }

/* Install */
.install-banner { background: var(--accent-soft); border-color: transparent; }
.install-banner .ic, .benefits .ic, .lock-dot, .install-pop .ip-mark { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); border-color: var(--line-2); }
.install-banner .txt b, .install-steps li b, .benefits b, .install-pop .ip-txt b { color: var(--ink); }
.install-steps li { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.install-steps .n { background: var(--accent); color: var(--accent-ink); }

/* Auth / landing */
.flash { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.flash.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); border-color: transparent; color: var(--ink); }
.free-badge { background: var(--accent); color: var(--accent-ink); }
.free-note a, .foot-links a:hover { color: var(--accent); }
.hero-intro .lead { color: var(--ink-2); }
.benefits li { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.skeleton i { background: linear-gradient(90deg, rgba(0,0,0,.09), rgba(0,0,0,.03)); }
.locked-rows { background: var(--line); }
.locked-rows span { background: var(--sunk); color: var(--muted); }
.locked-rows span svg { color: var(--accent); }
.locked-rows .lock svg { background: var(--surface-solid); color: var(--accent); }

/* Social buttons */
.social .or { color: var(--muted); }
.social .or::before, .social .or::after { background: var(--line); }
.locked-card .social .or, .closing-cta .social .or { color: var(--muted); }
.locked-card .social .or::before, .locked-card .social .or::after { background: var(--line); }

/* Saved searches strip */
.ss-chip { border-color: var(--line); background: var(--surface); }
.ss-chip .chip svg { color: var(--accent); }
.apply-intro b { color: var(--ink); }

/* Ornaments re-toned */
.rule { color: var(--accent); }
.corners { color: var(--accent); opacity: .5; }

/* Public opportunity page (signed-out, search-indexable) ------------------ */
.op-public { margin-top: 8px; }
.op-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.op-public h1.display { margin: 0 0 12px; }
.op-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.op-meta span { display: inline-flex; align-items: center; gap: 6px; }
.op-meta svg { width: 15px; height: 15px; opacity: .8; }
.op-lede { font-size: 17px; line-height: 1.55; color: var(--text); margin: 0 0 8px; }
.op-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; }
.op-facts > div { display: flex; flex-direction: column; gap: 2px; }
.op-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.op-facts dd { margin: 0; font-size: 15px; color: var(--text); }
.op-list { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.op-rounds { display: grid; gap: 16px; }
.op-round > b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.op-round .op-list { margin-top: 2px; }
.op-gate { margin-top: 34px; text-align: center; }
.op-gate h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.op-gate p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.op-more { margin: 20px 0 0; }
.op-more a { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .op-facts { grid-template-columns: 1fr; } }

/* Breadcrumbs + public category (browse) pages --------------------------- */
.crumbs { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.browse-head { margin: 4px 0 18px; }
.browse-head .lead { margin-top: 10px; max-width: 60ch; }
.browse-cats { margin: 0 0 22px; }
.browse-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.browse-item { display: block; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: inherit; }
.browse-item:hover { border-color: var(--line-2); }
.browse-item .tag { margin-bottom: 6px; }
.browse-item h2 { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -.01em; margin: 2px 0 8px; color: var(--ink); line-height: 1.2; }
.browse-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13px; align-items: center; }
.browse-meta span { display: inline-flex; align-items: center; gap: 5px; }
.browse-meta svg { width: 14px; height: 14px; opacity: .8; }
.browse-empty { color: var(--muted); font-size: 15px; padding: 24px 0; }
.browse-empty a { color: var(--accent); font-weight: 600; }
.browse-cta { margin-top: 30px; text-align: center; }
.browse-cta h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.browse-cta p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
@media (min-width: 960px) { .browse-list { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Desktop layout (≥960px) — left sidebar + wider content, like the prototype.
   Reuses the same .nav element; app.js logic is unchanged.
   ========================================================================== */
:root { --side-w: 240px; }
.nav .nav-brand { display: none; }

@media (min-width: 960px) {
  :root { --col: 760px; }

  /* Content column: centred band with room for the sidebar on its left */
  .app { max-width: calc(980px + var(--side-w)); margin: 0 auto; padding-left: var(--side-w); border: 0 !important; }
  .view { padding: 40px 48px 72px; }
  /* Landing, auth and editorial pages have no sidebar → centre them (no phantom
     left gap). Only when the app sidebar is actually present do we offset for it. */
  .page-wrap, .auth { max-width: 900px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
  body:has(.nav) .page-wrap { max-width: calc(980px + var(--side-w)); padding-left: calc(var(--side-w) + 48px); margin: 0 auto; }

  /* Landing: use the full width with a two-column hero (text left, live
     "Closing soon" cards right); the sections below stay full width. */
  .page-wrap.landing { max-width: 1180px; }
  .landing .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px 64px; align-items: start; }
  .landing .hero-left { align-self: center; }
  .landing .hero-intro .display { font-size: 46px; line-height: 1.05; }
  .landing .hero-right { margin-top: 6px; }
  .landing .hero-right .h-section { margin-top: 0; }
  /* Cards stack vertically in the hero's right column (not the 2/3-col grid). */
  .landing .hero-right .list { display: flex; flex-direction: column; gap: 10px; }
  .landing .benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
  .landing .closing-cta { text-align: center; }

  /* Bottom bar → fixed left sidebar, aligned to the centred band */
  .nav {
    left: max(0px, calc((100vw - 980px - var(--side-w)) / 2)); right: auto; top: 0; bottom: 0; transform: none;
    width: var(--side-w); height: 100dvh; border-radius: 0; border: 0; border-right: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px;
    padding: 26px 16px calc(26px + var(--safe-b)); background: var(--bg);
  }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 13px; height: auto; padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; }
  .nav a svg { width: 20px; height: 20px; }
  .nav a:hover { background: var(--sunk); color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .nav a[aria-current="page"]::after { top: 50%; left: 0; transform: translateY(-50%); width: 3px; height: 22px; }
  .nav .badge { position: static; margin-left: auto; box-shadow: none; }

  /* Brand at the top of the sidebar; hide the duplicate in-screen logo */
  .nav .nav-brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 22px; color: var(--ink); }
  .nav .nav-brand svg { width: 26px; height: 26px; color: var(--accent); }
  .nav .nav-brand span { font-family: var(--serif); font-size: 20px; letter-spacing: -.02em; }
  #app .topbar .brand { display: none; }

  /* Use the extra width: cards in two columns, larger display type */
  .display { font-size: 44px; }
  .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carousel { flex-wrap: wrap; margin: 0; padding: 0; }
  .carousel .hero { width: calc(50% - 6px); }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0; }

  /* Sheets sit a touch wider and detail reads like a panel */
  .sheet { width: min(100vw, 680px); }
  #detail { height: calc(100dvh - 48px); border-radius: 20px 20px 0 0; }
}

@media (min-width: 1240px) {
  .app { max-width: calc(1120px + var(--side-w)); }
  .nav { left: max(0px, calc((100vw - 1120px - var(--side-w)) / 2)); }
  .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
