/* ==========================================================================
   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 {
  --noir: #0E121B;          /* concert navy */
  --noir-2: #131825;
  --noir-3: #191F2D;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(197, 168, 128, 0.16);
  --line-2: rgba(197, 168, 128, 0.32);
  --hair: rgba(255, 255, 255, 0.06);
  --paper: #F9F8F6;
  --paper-2: #F1ECE3;
  --paper-ink: #1A1B20;
  --paper-mute: #6E6A63;
  --gold: #C5A880;
  --gold-hi: #DCC39E;
  --gold-lo: #9C8058;
  --burgundy: #6B1D2F;
  --burgundy-hi: #8A2A40;
  --ivory: #F4EDE1;
  --muted: #8E9099;
  --text: #ECE8E1;
  --text-2: #BDB9B2;

  --teal: #3E6B6B;  --teal-hi: #7FB4B1;
  --rose: #6A4A4E;  --rose-hi: #D2A7A9;
  --olive: #4D5A35; --olive-hi: #B5C28C;

  --c-competition: #C5A880;
  --c-audition: #C06079;
  --c-job: #6FA9A6;
  --c-masterclass: #9FAE72;
  --c-festival: #D9CDB8;

  --serif: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --blur: blur(20px) saturate(140%);
  --col: 480px;
  --gutter: 20px;
  --nav-h: 68px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bar-t: 0px;              /* WordPress admin bar */
}
.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-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; }
