/* Cycles Arc — Astronomy shop.
   Skinned to the Cycles Arc brand (emerald + cream), the sibling of nousark.shop:
     emerald #047857 · emerald-bright #34d399 · deep-emerald #0d2a1e
     cream #f5f4f0 · ink #272424 · Raleway headings · Open Sans body.
   Loaded after nous-base.css, so this file overrides the light "paper" skin
   the API-site base ships with. The product THUMBNAILS stay cream — they're
   real DE441-rendered book pages, and they read best as bright paper. */

/* ---- TWO-THEME PALETTE (Day default cream + Night deep-emerald) ----
   Accent is emerald #047857 (canonical Cycles Arc); the highlight is the
   brighter emerald #34d399 on the deep-emerald night surface.
   --dark* are PAGE/CARD backgrounds; --cream is the TEXT-on-surface colour;
   they invert between themes. --stock is an ABSOLUTE paper colour that never
   flips — the book thumbnails are real cream pages and must stay light in
   both modes (do NOT paint thumbnails with --cream). --band is the always-dark
   deep-emerald masthead. */
:root, html[data-theme="day"] {
  --burgundy: #047857;   /* accent (emerald) — name kept so shared rules apply */
  --burgundy-light: #059669;
  --cream: #272424;      /* ink text on the light cream Day page */
  --muted: #55605A;
  --dim: #55605A;
  --dimmer: #85908A;
  --dark: #F5F4F0;       /* page paper (cream) */
  --dark2: #ECEAE2;      /* card / raised panel */
  --dark3: #E6E3DA;      /* deeper inset panel */
  --line: #E0DCD2;
  --gold: #065F46;       /* deep-emerald highlight for em/brand on light */

  --accent: #047857;
  --accent-soft: rgba(4,120,87,0.14);
  --paper: #272424;
  --soft: #55605A;
  --faint: #85908A;
  --rule: #E0DCD2;
  --panel: #ECEAE2;
  --stock: #f5f4f0;      /* absolute paper for book thumbnails (never themed) */
  --band: #0d2a1e;       /* the always-dark deep-emerald masthead band */
  --page-ar: 210 / 297;  /* TRUE A4 page ratio (exact) — every real-page preview uses this so pages show whole, never squashed */

  --font-serif: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html[data-theme="night"] {
  --burgundy: #10b981;
  --burgundy-light: #34d399;
  --cream: #EAF3EE;      /* mint-cream text on the deep-emerald Night page */
  --muted: #A7C4B5;
  --dim: #A7C4B5;
  --dimmer: #6E8A7B;
  --dark: #0d2a1e;       /* deep-emerald page */
  --dark2: #123526;      /* card / raised panel */
  --dark3: #17402e;      /* deeper inset panel */
  --line: #24503a;
  --gold: #34d399;       /* bright-emerald highlight on deep emerald */

  --accent: #10b981;
  --accent-soft: rgba(16,185,129,0.16);
  --paper: #EAF3EE;
  --soft: #A7C4B5;
  --faint: #6E8A7B;
  --rule: #24503a;
  --panel: #123526;
  --stock: #f5f4f0;
  --band: #071c14;
}

/* ---- global dark canvas (override nous-base light body/sections) ---- */
body { background: var(--dark); color: var(--cream); font-family: var(--font-body); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; color: var(--cream); }
p { color: var(--muted); }

/* subtle film-grain, like the live site */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
header.site, .hero, .filterbar, #grid, #how, #bundles, footer.site, .trustbar, .modal { position: relative; z-index: 1; }

/* section headings + kickers on brand */
.kicker { color: var(--burgundy); font-family: var(--font-body); font-weight: 700; letter-spacing: 0.24em; font-size: 12px; }
.section-head h2 { font-family: var(--font-serif); font-weight: 300; font-size: 34px; color: var(--cream); }
.section-head h2 em, .hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.section-head p { color: var(--muted); }

/* Home rhythm — the sky sections sat too far apart; halve the vertical gap
   between every main-page section (was 88px top+bottom in nous-base). */
section { padding: 44px 0; }

/* the main-site link in the shop nav — one shade brighter than the in-page
   anchors so "cyclesarc.com ↗" reads as the way back to the website. */
header.site nav .nav-site { color: var(--paper); }
header.site nav .nav-site:hover { color: #fff; }
.drawer-panel .nav-site { color: var(--gold); font-weight: 700; }

/* buttons re-tinted to burgundy */
.btn-primary { background: var(--burgundy); color: #FBF8F3; border-color: var(--burgundy); font-family: var(--font-body); letter-spacing: 0.04em; }
.btn-primary:hover { background: var(--burgundy-light); opacity: 1; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(242,241,238,0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-outline:hover { border-color: var(--burgundy); color: var(--cream); }

/* header — dark gradient + serif brand, gold accent */
header.site { background: linear-gradient(to bottom, rgba(26,23,23,0.96), rgba(26,23,23,0.86)); border-bottom: 1px solid var(--line); }
header.site .brand { font-family: var(--font-serif); font-size: 18px; letter-spacing: 0.12em; }
header.site .brand .co { color: var(--muted); font-weight: 400; }
header.site .brand .product { color: var(--gold); }
header.site nav a { color: var(--muted); }
header.site nav a:hover { color: var(--cream); }

/* ---- mobile nav: hamburger + slide-in drawer ---- */
.nav-toggle { display:none; flex-direction:column; justify-content:center; gap:4px; width:40px; height:34px; padding:0 9px; background:transparent; border:1px solid rgba(242,241,238,0.22); border-radius:9px; cursor:pointer; }
.nav-toggle span { display:block; height:2px; width:20px; background:#f2f1ee; border-radius:2px; transition:transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
@media (max-width:760px){ .nav-toggle { display:flex; } header.site .cta .btn-primary { display:none; } }

.drawer { position:fixed; inset:0; z-index:120; }
.drawer[hidden]{ display:none; }
.drawer-scrim { position:absolute; inset:0; background:rgba(8,6,6,0.72); backdrop-filter:blur(3px); opacity:0; transition:opacity .24s ease; }
.drawer.open .drawer-scrim { opacity:1; }
.drawer-panel {
  position:absolute; top:0; right:0; height:100%; width:min(300px,82vw);
  background:#0d2a1e; border-left:1px solid rgba(242,241,238,0.10);
  padding:66px 26px 30px; display:flex; flex-direction:column; gap:4px;
  box-shadow:-24px 0 60px rgba(0,0,0,0.6);
  transform:translateX(100%); transition:transform .24s ease;
}
.drawer.open .drawer-panel { transform:translateX(0); }
.drawer-panel a { color:rgba(242,241,238,0.82); text-decoration:none; font-family:var(--font-serif); font-size:21px; padding:13px 0; border-bottom:1px solid rgba(242,241,238,0.08); }
.drawer-panel a:hover { color:#C9A84C; }
.drawer-cta { margin-top:18px; border-bottom:0 !important; color:#C9A84C !important; font-weight:600; }
.drawer-mini { margin-top:auto; border-bottom:0 !important; font-size:12px !important; letter-spacing:.06em; color:rgba(242,241,238,0.5) !important; font-family:var(--font-body) !important; text-transform:uppercase; }
.drawer-close { position:absolute; top:16px; right:20px; background:transparent; border:0; color:#f2f1ee; font-size:32px; line-height:1; cursor:pointer; }

/* ---- hero tuned for the shop ---- */
.hero { background: var(--dark); }
.hero.shop { padding: 96px 0 40px; }
.hero.shop h1 { font-family: var(--font-serif); font-weight: 300; font-size: clamp(38px,6vw,60px); line-height: 1.05; max-width: 820px; color: var(--cream); }
.hero .pitch { color: var(--muted); }
.hero .pitch em { font-family: var(--font-serif); font-style: italic; color: var(--gold); }
.hero.shop .motif {
  background:
    radial-gradient(700px circle at 50% 42%, rgba(4,120,87,0.16), transparent 62%),
    radial-gradient(500px circle at 88% 8%,  rgba(52,211,153,0.07), transparent 60%),
    radial-gradient(460px circle at 8% 96%,  rgba(4,120,87,0.10), transparent 60%);
  opacity: 1;
}
.hero.shop .three-fams { display:flex; gap:26px; flex-wrap:wrap; margin-top:34px; padding-top:28px; border-top:1px solid rgba(242,241,238,0.12); }
.hero.shop .fam { max-width:210px; }
.hero.shop .fam .w { font-size:11px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--burgundy); }
.hero.shop .fam .d { font-size:13.5px; color:var(--muted); margin-top:6px; line-height:1.6; }

/* ---- trust bar ---- */
.trustbar { background: var(--dark2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar .wrap { color: var(--muted); }
.trustbar b { color: var(--gold); font-weight: 600; }

/* ---- affiliate teaser strip (top of page → straight to the programme page) ---- */
.affil-teaser { display:flex; align-items:center; justify-content:center; gap:20px; flex-wrap:wrap;
  padding:17px 26px; text-decoration:none; position:relative; z-index:1; overflow:hidden;
  background:linear-gradient(103deg, #043726 0%, #047857 40%, #059669 66%, #047857 100%);
  border-top:1px solid rgba(52,211,153,.45); border-bottom:1px solid rgba(0,0,0,.30);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -14px 26px rgba(0,0,0,.22); }
/* soft mint vignettes at the edges */
.affil-teaser::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:radial-gradient(60% 120% at 0% 50%, rgba(52,211,153,.18), transparent 60%),
             radial-gradient(60% 120% at 100% 50%, rgba(52,211,153,.18), transparent 60%); }
/* a slow light sweep across the band */
.affil-teaser::after { content:""; position:absolute; top:0; left:-45%; width:45%; height:100%; z-index:1; pointer-events:none;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent); transform:skewX(-18deg);
  animation:atSheen 6.5s ease-in-out infinite; }
@keyframes atSheen { 0%{left:-45%;} 60%{left:135%;} 100%{left:135%;} }
.affil-teaser > * { position:relative; z-index:2; }
.affil-teaser .at-sigil { flex:0 0 auto; display:inline-flex; }
.affil-teaser .at-sigil svg { width:27px; height:27px; fill:none; stroke:#A7F3D0; stroke-width:1.4;
  filter:drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.affil-teaser .at-sigil .core, .affil-teaser .at-sigil .orb { fill:#A7F3D0; stroke:none; }
.affil-teaser .at-badge { flex:0 0 auto; display:inline-flex; align-items:center; gap:7px;
  font-family:var(--font-body); font-weight:700; letter-spacing:.15em; text-transform:uppercase; font-size:10px;
  color:#04372a; background:linear-gradient(#D1FAE5,#6EE7B7); border-radius:999px; padding:5px 11px 5px 10px;
  box-shadow:0 2px 8px rgba(0,0,0,.25); white-space:nowrap; }
.affil-teaser .at-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:#047857;
  box-shadow:0 0 0 0 rgba(4,120,87,.6); animation:affilPulse 2.4s ease-out infinite; }
.affil-teaser .at-text { color:#EAF3EE; font-size:15px; line-height:1.4; text-align:center; text-shadow:0 1px 2px rgba(0,0,0,.28); }
.affil-teaser .at-text b { color:#fff; font-weight:700; }
.affil-teaser .at-text em { font-style:normal; font-weight:800; color:#A7F3D0; }
.affil-teaser .at-go { flex:0 0 auto; font-family:var(--font-body); font-weight:800; letter-spacing:.04em;
  font-size:13.5px; color:#04372a; background:linear-gradient(#D1FAE5,#34d399); border:1px solid #6EE7B7;
  border-radius:999px; padding:9px 20px; white-space:nowrap; box-shadow:0 3px 12px rgba(0,0,0,.28);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.affil-teaser .at-go span { transition:transform .18s ease; display:inline-block; }
.affil-teaser:hover .at-go { transform:translateY(-1px); filter:brightness(1.06); box-shadow:0 5px 16px rgba(0,0,0,.34); }
.affil-teaser:hover .at-go span { transform:translateX(3px); }
@media (max-width:600px){ .affil-teaser { gap:12px; padding:15px 18px; } .affil-teaser .at-text { font-size:14px; } .affil-teaser .at-badge { display:none; } }

/* ---- affiliate campaign band ---- */
.affil-band { background:var(--band); border-top:1px solid var(--line); border-bottom:1px solid var(--line); position:relative; z-index:1; overflow:hidden; }
.affil-band::before { content:""; position:absolute; inset:0 0 auto 0; height:2px; background:linear-gradient(to right, transparent, #34d399, transparent); }
.affil-band::after { content:""; position:absolute; right:-8%; top:-40%; width:52%; height:180%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(52,211,153,0.14), transparent 70%); }
.affil-band .wrap { padding-top:52px; padding-bottom:52px; }
.affil-inner { display:flex; align-items:center; justify-content:space-between; gap:48px; flex-wrap:wrap; }
.affil-copy { flex:1 1 460px; min-width:280px; }
.affil-kick { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-body); font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; font-size:11px; color:#34d399; margin-bottom:12px; }
.affil-dot { width:7px; height:7px; border-radius:50%; background:#34d399; box-shadow:0 0 0 0 rgba(52,211,153,0.6); animation:affilPulse 2.4s ease-out infinite; }
@keyframes affilPulse { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.55);} 70%{box-shadow:0 0 0 9px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }
.affil-copy h2 { font-family:var(--font-serif); font-weight:300; font-size:clamp(28px,3.4vw,40px); line-height:1.05; color:#EAF3EE; margin:0 0 12px; }
.affil-copy h2 em { font-style:italic; color:#34d399; }
.affil-copy p { color:#A7C4B5; font-size:15px; line-height:1.7; max-width:560px; margin:0 0 20px; }
.affil-copy p b { color:#EAF3EE; font-weight:600; }
.affil-ladder { display:flex; align-items:stretch; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.affil-ladder .rung { display:flex; flex-direction:column; gap:2px; padding:9px 14px; border:1px solid #24503a; border-radius:10px;
  background:rgba(255,255,255,0.02); color:#6E8A7B; font-size:11px; letter-spacing:.03em; line-height:1.2; min-width:88px; }
.affil-ladder .rung b { font-family:var(--font-serif); font-weight:600; font-size:20px; color:#EAF3EE; letter-spacing:0; }
.affil-ladder .rung-top { border-color:#34d399; background:rgba(52,211,153,0.10); }
.affil-ladder .rung-top b { color:#34d399; }
.affil-ladder .sep { align-self:center; color:#4a6157; font-size:14px; }
.affil-cta { display:flex; flex-wrap:wrap; gap:12px; }
.affil-cta .btn-primary { color:#f2f1ee; border-color:var(--burgundy); }
.affil-cta .btn-ghost { color:#EAF3EE; border-color:#2f5a44; }
.affil-cta .btn-ghost:hover { color:#34d399; border-color:#34d399; }
.affil-seat { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;
  padding:30px 34px; border:1px solid #24503a; border-radius:16px; background:rgba(255,255,255,0.015); }
.affil-seat .seat-glyph svg { width:34px; height:34px; fill:none; stroke:#34d399; stroke-width:1.4; opacity:.9; }
.affil-seat .seat-glyph .core, .affil-seat .seat-glyph .orb { fill:#34d399; stroke:none; }
.affil-seat .seat-n { font-family:var(--font-serif); font-weight:300; font-size:52px; line-height:1; color:#EAF3EE; }
.affil-seat .seat-l { font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#6E8A7B; max-width:150px; }
@media (max-width:720px){ .affil-seat { display:none; } .affil-band .wrap { padding-top:40px; padding-bottom:40px; } .affil-cta .btn { flex:1 1 0; text-align:center; justify-content:center; } }

/* ---- sticky filter / category bar ---- */
.filterbar { position: sticky; top: 0; z-index: 30; background: rgba(26,23,23,0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
/* ONE row: All · families — everything on the same level. Span sub-filter
   drops to a contextual 2nd row only when a time-book family is in view. */
.filterbar .wrap { display:flex; flex-direction:column; gap:9px; padding-top:10px; padding-bottom:10px; }
.filter-main { display:flex; align-items:center; gap:12px; min-width:0; }
.filter-row { display:flex; align-items:center; gap:5px; flex:1 1 auto; min-width:0; overflow-x:auto; scrollbar-width:none; }
.filter-row::-webkit-scrollbar { display:none; }
.filter-row > * { flex:0 0 auto; }
.filter-group { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.filter-group .glab { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--dim); margin-right:4px; }
.chip {
  border:1px solid var(--line); background:transparent; color:var(--muted);
  font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:20px; cursor:pointer;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:hover { border-color:var(--burgundy); color:var(--cream); }
.chip.on { background:var(--burgundy); color:var(--cream); border-color:var(--burgundy); }
.chip.fam-agenda.on, .chip.fam-planner.on, .chip.fam-journal.on { background:var(--burgundy); border-color:var(--burgundy); }
.chip.fam-bundle.on { background:var(--gold); border-color:var(--gold); color:var(--dark); }
/* the row is capped by the page max-width, so the filter chips run compact
   to keep every option on ONE line beside the special room. */
.filter-row .chip { padding:6px 9px; font-size:12px; }
/* the single reset reads a touch stronger than families */
.chip-all { font-weight:700; }
.filter-count { flex:0 0 auto; white-space:nowrap; font-size:11.5px; color:var(--dim); font-style:italic; font-family:var(--font-serif); }
@media (max-width:640px){ .filter-count { display:none; } }

/* ---- product grid ---- */
#grid { padding: 44px 0 48px; }
.card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:900px){ .card-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:600px){ .card-grid{ grid-template-columns:1fr;} }

.pcard {
  display:flex; flex-direction:column; background:var(--dark2); border:1px solid var(--line);
  border-radius:20px; overflow:hidden; position:relative;
  transition:border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.pcard::before {
  content:""; position:absolute; top:0; left:0; right:0; height:2px; z-index:4;
  background:linear-gradient(to right, transparent, var(--burgundy), transparent);
  opacity:0; transition:opacity .25s ease;
}
.pcard:hover { border-color:rgba(4,120,87,0.55); transform:translateY(-4px); box-shadow:0 18px 40px rgba(0,0,0,0.4); }
.pcard:hover::before { opacity:1; }
.pcard.is-bundle { border-color:rgba(52,211,153,0.35); }
.pcard.is-bundle::before { background:linear-gradient(to right, transparent, var(--gold), transparent); }
.pcard.is-bundle:hover { border-color:rgba(52,211,153,0.6); }

/* the preview well — where the paper thumbnail sits */
.pcard .well {
  position:relative; background:radial-gradient(120% 90% at 50% 0%, #201c1c, #151212); padding:28px 26px 0; height:214px;
  display:flex; align-items:flex-end; justify-content:center; overflow:hidden; cursor:pointer;
  border-bottom:1px solid var(--line);
}
.pcard .well:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.28)); pointer-events:none; }
.pcard .famtag {
  position:absolute; top:12px; left:14px; z-index:3; font-size:10px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; padding:4px 10px; border-radius:20px;
  background:rgba(4,120,87,0.16); border:1px solid rgba(4,120,87,0.32); color:#34d399;
}
.pcard .famtag.agenda  { color:#34d399; }
.pcard .famtag.planner { color:#6ee7b7; background:rgba(52,211,153,0.12); border-color:rgba(52,211,153,0.30); }
.pcard .famtag.journal { color:var(--muted); background:rgba(242,241,238,0.06); border-color:rgba(242,241,238,0.14); }
.pcard .famtag.bundle  { color:var(--gold); background:rgba(52,211,153,0.14); border-color:rgba(52,211,153,0.4); }
.pcard .flagtag { position:absolute; top:13px; right:14px; z-index:3; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--gold); }
.pcard .zoom {
  position:absolute; bottom:12px; right:12px; z-index:3; font-size:11px; font-weight:600; color:var(--cream);
  background:rgba(26,23,23,0.85); border:1px solid var(--line); border-radius:20px; padding:5px 12px; opacity:0; transition:opacity .2s ease;
}
.pcard .well:hover .zoom { opacity:1; }

.pcard .body { padding:22px 22px 24px; display:flex; flex-direction:column; flex:1; }
.pcard h3 { font-family:var(--font-serif); font-size:22px; font-weight:400; margin:0 0 4px; color:var(--cream); line-height:1.15; }
.pcard .tag { font-family:var(--font-serif); font-style:italic; font-size:15px; color:var(--gold); margin-bottom:12px; }
.pcard .desc { font-size:13px; color:var(--dim); line-height:1.7; margin:0 0 16px; flex:1; }
.pcard .meta { font-size:11.5px; color:var(--dimmer); margin-bottom:16px; display:flex; gap:12px; flex-wrap:wrap; }
.pcard .meta span { display:inline-flex; align-items:center; gap:5px; }
.pcard .buyrow { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:14px; border-top:1px solid var(--line); }
.pcard .price { font-size:21px; font-weight:700; color:var(--cream); }
.pcard .price small { font-size:12px; font-weight:500; color:var(--dim); }
.pcard .price .was { font-size:12.5px; color:var(--dimmer); text-decoration:line-through; margin-right:6px; font-weight:500; }
.pcard .pers { display:block; font-size:11px; color:var(--gold); font-weight:600; margin-top:3px; letter-spacing:.02em; }
.pcard .buyrow { padding-bottom:0; border-bottom:0; }
.pcard .cardbtns { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:14px; }
.pcard .cardbtns .btn { width:100%; justify-content:center; text-align:center; padding:10px 6px; font-size:12.5px; border-radius:24px; }

.empty { text-align:center; color:var(--dim); padding:70px 0; font-size:16px; font-family:var(--font-serif); font-style:italic; }

/* ================= REAL PRODUCT THUMBNAIL ================= */
/* A page from the actual DE441 render (generator -> pdf_daemon -> PNG). */
.pv { position:relative; display:flex; align-items:flex-end; justify-content:center; }
.pv .mpfallback { display:none; }
.pv[data-fallback="1"] .thumb { display:none; }
.pv[data-fallback="1"] .stack .bk { display:none; }
.pv[data-fallback="1"] .mpfallback { display:block; }

/* The card face shows the TOP HERO of the real page — its kicker, title,
   subtitle and first data — enlarged so it is legible at card size. Showing
   the whole A4 sheet shrunk to 150px turned every page into illegible mush
   (card aspect == page aspect, so object-fit:cover never actually cropped —
   it just miniaturised the entire sheet). A wide top-slice reads like a page
   rising into the well and keeps the text crisp (~6× downscale, not ~9×). */
.thumb {
  width:230px; aspect-ratio:1.42; overflow:hidden; position:relative; z-index:3;
  background:var(--stock); border:1px solid rgba(0,0,0,0.35); border-top:3px solid var(--gold);
  border-radius:2px; box-shadow:0 12px 30px rgba(0,0,0,0.5); transform:translateY(6px);
  transition:transform .2s ease;
}
.pcard:hover .thumb { transform:translateY(0); }
.thumb img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
/* Full-bleed cover pages (the moon centred on black) carry no top title — a
   top slice would be an empty black band. Anchor them to the disc instead. */
.well[data-slug="info-moon"] .thumb img,
.well[data-slug="print-moon"] .thumb img { object-position:center center; }
/* modal / full: show the WHOLE first page, not a crop */
.thumb.full { aspect-ratio:auto; height:auto; overflow:visible; transform:none; }
.thumb.full img { height:auto; object-fit:contain; }

/* bundle: lead book's page with two blank pages stacked behind it */
.pv.stack { width:150px; }
.pv.stack .bk {
  position:absolute; inset:0; z-index:1; background:#e9e6df;
  border:1px solid rgba(0,0,0,0.35); border-top:3px solid var(--gold); border-radius:2px;
  box-shadow:0 8px 18px rgba(0,0,0,0.4);
}
.pv.stack .bk.b1 { transform:translate(8px,5px) rotate(2.2deg); z-index:2; }
.pv.stack .bk.b2 { transform:translate(16px,10px) rotate(4.4deg); z-index:1; }
.modal .m-preview .thumb { width:250px; box-shadow:0 18px 46px rgba(0,0,0,0.6); }
.modal .m-preview .pv.stack { width:230px; }
.modal .m-preview .pv.stack .thumb { width:230px; }

/* ================= CSS PAPER MOCKUP (fallback) ================= */
/* A miniature of the actual page layout. Portrait "page" on paper stock. */
.mp {
  background:var(--stock); border:1px solid rgba(0,0,0,0.35); border-top:3px solid var(--gold);
  width:150px; box-shadow:0 8px 22px rgba(0,0,0,0.4);
  padding:12px 12px 0; font-family:var(--font-body); color:#272424;
  border-radius:2px; aspect-ratio:var(--page-ar); overflow:hidden; transform:translatey(6px);
}
.pcard:hover .mp { transform:translateY(0); }
.mp .kick { font-size:5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#9A7B1E; }
.mp .h1 { font-family:var(--font-serif); font-size:12px; font-weight:600; margin:3px 0 6px; line-height:1; color:#272424; }
.mp .sub { font-size:5px; color:#5B5550; margin-bottom:6px; }
.mp .rule { height:1px; background:#D8D2C8; margin:5px 0; }
.mp .lines > i { display:block; height:1px; background:#D8D2C8; margin:6px 0; }
.mp .quote { font-size:5px; font-style:italic; color:#5B5550; line-height:1.5; margin-bottom:6px; }

/* hora / time column (day planner) */
.mp .hours { display:flex; gap:6px; }
.mp .hours .times { flex:0 0 22px; }
.mp .hours .times b { display:block; font-size:5px; color:#8D867F; font-weight:600; padding:2.5px 0; border-bottom:1px solid #D8D2C8; }
.mp .hours .blocks { flex:1; }
.mp .hours .blocks i { display:block; height:1px; background:#D8D2C8; margin:5.6px 0; }

/* calendar grid (month) */
.mp .cal { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.mp .cal b { font-size:4px; color:#8D867F; text-align:center; }
.mp .cal s { aspect-ratio:1/1; background:#fff; border:1px solid #D8D2C8; border-radius:1px; position:relative; }
.mp .cal s.nw:after { content:""; position:absolute; top:1px; right:1px; width:3px; height:3px; border-radius:50%; background:#272424; }
.mp .cal s.fl:after { content:""; position:absolute; top:1px; right:1px; width:3px; height:3px; border-radius:50%; background:#fff; border:1px solid #272424; }

/* week rows */
.mp .wk s { display:block; border:1px solid #D8D2C8; border-radius:1px; background:#fff; height:11px; margin-bottom:3px; position:relative; }
.mp .wk s:before { content:""; position:absolute; left:3px; top:3px; width:14px; height:1px; background:#8D867F; box-shadow:0 3px #D8D2C8; }

/* year: 12 month blocks */
.mp .yr { display:grid; grid-template-columns:repeat(3,1fr); gap:3px; }
.mp .yr s { aspect-ratio:1/0.9; background:#fff; border:1px solid #D8D2C8; border-radius:1px; position:relative; }
.mp .yr s:after { content:""; position:absolute; left:2px; right:2px; top:3px; height:1px; background:#D8D2C8; box-shadow:0 2.5px #D8D2C8,0 5px #D8D2C8; }

/* season: header band + 3 month strips */
.mp .season s { display:block; background:#fff; border:1px solid #D8D2C8; border-radius:1px; height:15px; margin-bottom:4px; position:relative; }
.mp .season s:before { content:""; position:absolute; left:3px; top:3px; width:20px; height:1px; background:#8D867F; box-shadow:0 4px #D8D2C8,0 8px #D8D2C8; }

/* bundle: stacked pages */
.mp.stack { background:none; border:none; box-shadow:none; border-top:none; padding:0; display:flex; align-items:flex-end; justify-content:center; }
.mp.stack .pg { width:96px; aspect-ratio:var(--page-ar); background:var(--stock); border:1px solid rgba(0,0,0,0.35); border-top:3px solid var(--gold); box-shadow:0 8px 18px rgba(0,0,0,0.4); border-radius:2px; position:absolute; }
.mp.stack .stackwrap { position:relative; width:150px; height:100%; }

/* ---- how it works / bundles sections (override light base) ---- */
.usecases, #how, #bundles { background:var(--dark); }
#how { border-top:1px solid var(--line); }
.step .n { color:var(--burgundy); font-weight:700; }
.step h4 { font-family:var(--font-serif); font-size:19px; color:var(--cream); }
.step p { color:var(--muted); }
.honesty-line {
  background:var(--dark3); border:1px dashed var(--line); color:var(--muted);
}
.honesty-line b { color:var(--gold); }
#bundle-note .honesty-line { background:var(--dark3); }

/* ---- footer (nudge base night -> shop dark) ---- */
footer.site { background:var(--dark2); color:var(--muted); border-top:1px solid var(--line); }
.footer-grid h5 { color:var(--cream); }
.footer-brand h5 { font-family:var(--font-serif); font-size:16px; letter-spacing:.06em; }
.footer-grid a { color:var(--muted); }
.footer-grid a:hover { color:var(--gold); }
.footer-bottom { border-top:1px solid var(--line); color:var(--dimmer); }

/* ================= QUICK-LOOK MODAL ================= */
.modal { position:fixed; inset:0; z-index:100; display:none; }
.modal.open { display:block; }
.modal .scrim { position:absolute; inset:0; background:rgba(8,6,6,0.82); backdrop-filter:blur(3px); }
.modal .sheet {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:min(900px,94vw); max-height:92vh; overflow:hidden; background:var(--dark2);
  border:1px solid var(--line);
  border-radius:20px; box-shadow:0 40px 100px rgba(0,0,0,0.7); display:grid; grid-template-columns:1.05fr 1fr;
}
@media (max-width:720px){ .modal .sheet{ grid-template-columns:1fr; max-height:94vh; overflow:auto; } }
.modal .m-preview { background:radial-gradient(120% 100% at 50% 0%, #201c1c, #141111); padding:30px 26px; display:flex; align-items:center; justify-content:center; border-right:1px solid var(--line); overflow:hidden; }
.modal .m-preview .carousel .cslide img { width:auto; max-width:100%; height:min(58vh,430px); }
.modal .m-preview .mp { width:230px; }
.modal .m-preview .mp.stack .pg { width:150px; }
.modal .m-preview .mp.stack .stackwrap { width:230px; }
.modal .m-info { padding:30px 32px; display:flex; flex-direction:column; min-height:0; max-height:92vh; }
.modal .m-info .m-top { min-height:0; flex:1 1 auto; overflow-y:auto; display:flex; flex-direction:column; }
.modal .m-info .m-foot { margin-top:auto; padding-top:16px; }
.modal .m-info .fam { font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--burgundy); }
.modal .m-info h2 { font-family:var(--font-serif); font-weight:400; font-size:30px; line-height:1.08; margin:9px 0 4px; color:var(--cream); }
.modal .m-info .tag { font-family:var(--font-serif); font-style:italic; font-size:16px; color:var(--gold); margin-bottom:14px; }
.modal .m-info .desc { font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:16px; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.modal .m-info .specs { list-style:none; padding:0; margin:0 0 22px; border-top:1px solid var(--line); }
.modal .m-info .specs li { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); font-size:13px; }
.modal .m-info .specs li .k { color:var(--dim); }
.modal .m-info .specs li .v { color:var(--cream); font-weight:600; text-align:right; }
.modal .m-info .contents { margin:0 0 20px; }
.modal .m-info .contents .h { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); margin-bottom:10px; }
.modal .m-info .contents .bk { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--cream); padding:5px 0; }
.modal .m-info .contents .bk:before { content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); }
.modal .m-info .buy { display:flex; align-items:baseline; gap:12px; margin-bottom:18px; }
.modal .m-info .buy .price { font-size:32px; font-weight:700; color:var(--cream); }
.modal .m-info .buy .was { font-size:15px; color:var(--dimmer); text-decoration:line-through; }
.modal .m-info .buy .save { font-size:12px; font-weight:700; color:var(--gold); background:rgba(52,211,153,0.12); border:1px solid rgba(52,211,153,0.28); padding:3px 10px; border-radius:20px; }
.modal .m-info .actions { display:flex; flex-direction:column; gap:10px; }
.modal .m-info .personalise {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--dark3); border:1px solid var(--line); border-radius:12px; padding:13px 15px; margin-top:6px;
}
.modal .m-info .personalise .pt { font-size:12.5px; color:var(--muted); }
.modal .m-info .personalise .pt b { color:var(--cream); }
.modal .m-info .personalise .price { color:var(--gold); }
.modal .m-info .upsell { margin-top:16px; font-size:13px; color:var(--muted); }
.modal .m-info .upsell a { color:var(--gold); font-weight:700; text-decoration:none; }
.modal .m-info .upsell a:hover { color:var(--burgundy-light); text-decoration:underline; }
.modal .m-close {
  position:absolute; top:14px; right:16px; z-index:2; width:34px; height:34px; border-radius:50%;
  background:rgba(0,0,0,0.4); color:var(--cream); border:1px solid var(--line); font-size:18px; cursor:pointer; line-height:1;
  transition:background .15s ease, border-color .15s ease;
}
.modal .m-close:hover { background:var(--burgundy); border-color:var(--burgundy); }
.modal .m-honesty { margin-top:18px; padding:13px 15px; background:var(--dark3); border:1px dashed var(--line); border-radius:12px; font-size:12px; color:var(--muted); }
.modal .m-honesty b { color:var(--gold); }

/* ---- card "N pages inside" hint ---- */
.pcard .peek {
  position:absolute; bottom:12px; left:12px; z-index:3; font-size:10.5px; font-weight:600; letter-spacing:.02em;
  color:var(--muted); background:rgba(26,23,23,0.82); border:1px solid var(--line);
  border-radius:20px; padding:4px 10px;
}

/* ================= QUICK-LOOK SLIDESHOW ================= */
/* Every slide is a real page of the DE441 render — the "main components" so a
   buyer sees exactly what they get. */
.carousel { width:100%; display:flex; flex-direction:column; align-items:center; gap:16px; }
.carousel .cframe { position:relative; width:100%; display:flex; justify-content:center; }
.carousel .cslide { display:none; flex-direction:column; align-items:center; gap:14px; width:100%; }
.carousel .cslide.on { display:flex; animation:slidein .28s ease; }
@keyframes slidein { from { opacity:0; transform:translateY(6px);} to { opacity:1; transform:none; } }
.carousel .cslide img {
  width:min(300px,74%); aspect-ratio:var(--page-ar); object-fit:contain; object-position:center;
  background:var(--stock); border:1px solid rgba(0,0,0,0.4); border-top:3px solid var(--gold);
  border-radius:2px; box-shadow:0 18px 44px rgba(0,0,0,0.6);
}
.carousel .cslide figcaption {
  font-family:var(--font-serif); font-style:italic; font-size:16px; color:var(--gold);
  text-align:center; max-width:320px; line-height:1.35;
}
.carousel .cslide.noimg img { display:none; }
.carousel .cnav {
  position:absolute; top:34%; transform:translateY(-50%); z-index:4;
  width:38px; height:38px; border-radius:50%; cursor:pointer;
  background:rgba(26,23,23,0.86); border:1px solid var(--line); color:var(--cream);
  font-size:22px; line-height:1; display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, border-color .15s ease;
}
.carousel .cnav:hover { background:var(--burgundy); border-color:var(--burgundy); }
.carousel .cnav.prev { left:2px; } .carousel .cnav.next { right:2px; }
.carousel .ccount {
  position:absolute; top:6px; right:8px; z-index:4; font-size:11px; font-weight:600;
  color:var(--muted); background:rgba(26,23,23,0.8); border:1px solid var(--line);
  border-radius:20px; padding:3px 10px;
}
.carousel .cdots { display:flex; gap:8px; }
.carousel .cdot {
  width:8px; height:8px; border-radius:50%; cursor:pointer; padding:0;
  background:transparent; border:1px solid var(--dim); transition:background .15s ease, border-color .15s ease;
}
.carousel .cdot:hover { border-color:var(--gold); }
.carousel .cdot.on { background:var(--gold); border-color:var(--gold); }

::selection { background:var(--burgundy); color:#f2f1ee; }

/* ============================================================
   THEME LAYER — Day default + Night toggle
   Layered last so it overrides the base skin above. The masthead
   (header · hero · trust · filter · footer) stays the dark drama
   band in BOTH themes: its light-on-dark tokens are pinned here so
   the band's text never inverts when the page flips to Day.
   ============================================================ */

/* masthead band: pin the on-dark tokens + dark surfaces regardless of theme */
header.site, .hero, .trustbar, .filterbar, footer.site {
  --dark:#0d2a1e; --dark2:#123526; --dark3:#17402e;
  --cream:#EAF3EE; --muted:#A7C4B5; --dim:#A7C4B5; --dimmer:#6E8A7B;
  --line:#24503a; --rule:#24503a; --gold:#34d399;
  --burgundy:#10b981; --burgundy-light:#34d399;
  --paper:#EAF3EE; --soft:#A7C4B5; --faint:#6E8A7B;
}
header.site { background:var(--band); }
.filterbar { background:rgba(13,42,30,0.94); }
html[data-theme="night"] .filterbar { background:rgba(7,28,20,0.94); }

/* Emerald where the brand accent was hardcoded in rgba() */
.hero.shop .motif {
  background:
    radial-gradient(700px circle at 50% 42%, rgba(4,120,87,0.18), transparent 62%),
    radial-gradient(500px circle at 88% 8%,  rgba(52,211,153,0.10), transparent 60%),
    radial-gradient(460px circle at 8% 96%,  rgba(4,120,87,0.12), transparent 60%);
}
.pcard:hover { border-color:rgba(4,120,87,0.55); }
.pcard .famtag { background:rgba(4,120,87,0.16); border-color:rgba(4,120,87,0.32); }
.pcard .famtag.agenda { color:#0f9d70; }

/* film grain: barely-there on the light Day paper, a touch more at Night */
body::before { opacity:.12; }
html[data-theme="night"] body::before { opacity:.28; }

/* theme toggle (sits in the dark header, so its text reads light) */
.theme-toggle {
  background:none; border:1px solid rgba(242,241,238,0.28); color:var(--cream);
  width:34px; height:34px; border-radius:50%; cursor:pointer; font-size:15px;
  line-height:1; display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-body); transition:border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color:var(--burgundy); color:var(--gold); }

/* ============================================================
   SHELVES — sectioned display (reports lead, then ACG, then books)
   The grid is split into titled bands, one per family. Reports come
   first; astrocartography gets a highlighted "special" band.
   ============================================================ */
.shelf-wrap { display:flex; flex-direction:column; gap:52px; }
.shelf { position:relative; }
.shelf-head { margin-bottom:20px; }
.shelf-title {
  font-family:var(--font-serif); font-size:27px; font-weight:400; line-height:1.1;
  color:var(--cream); margin:0;
}
.shelf-sub { font-size:14px; color:var(--dim); margin:5px 0 0; max-width:64ch; line-height:1.6; }
.shelf > .card-grid { margin:0; }

/* astrocartography — a class of its own: a framed band that lifts it off the page */
.shelf.special {
  background:var(--dark2); border:1px solid var(--line); border-radius:16px;
  padding:30px 30px 34px;
}
.shelf.special .shelf-title:before {
  content:"✦ "; color:var(--gold); font-size:20px;
}

/* report + astrocartography family tags (light-on-dark, sit in the well) */
.pcard .famtag.report { color:#e6b4b8; background:rgba(4,120,87,0.20); border-color:rgba(4,120,87,0.42); }
.pcard .famtag.infographic { color:#c3a9e0; background:rgba(150,120,190,0.16); border-color:rgba(150,120,190,0.34); }
.pcard .famtag.print  { color:#6ee7b7; background:rgba(52,211,153,0.14); border-color:rgba(52,211,153,0.32); }
.pcard .famtag.acg    { color:#a9d3dd; background:rgba(90,150,170,0.16); border-color:rgba(90,150,170,0.36); }
.pcard .famtag.calendar { color:#8fd6b0; background:rgba(90,170,120,0.14); border-color:rgba(90,170,120,0.34); }
.pcard .famtag.astro  { color:#9fb8e6; background:rgba(110,140,200,0.15); border-color:rgba(110,140,200,0.34); }

/* subscription pill (top-right, where cyclo has no flagship star) */
.pcard .subtag {
  position:absolute; top:12px; right:14px; z-index:3; font-size:9px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; padding:4px 9px; border-radius:20px;
  color:#a9d3dd; background:rgba(90,150,170,0.16); border:1px solid rgba(90,150,170,0.36);
}

/* Price TBD — honest placeholder until a real price is set */
.pcard .price .tbd, .modal .m-info .buy .price .tbd {
  font-weight:600; font-size:15px; letter-spacing:.02em; color:var(--dim);
  font-family:var(--font-body);
}
.modal .m-info .buy .price .tbd { font-size:22px; }
.btn.btn-primary:disabled { opacity:.5; cursor:not-allowed; }

/* subscription per-month suffix */
.pcard .price .permo, .modal .m-info .buy .price .permo {
  font-size:.62em; font-weight:600; color:var(--dim); letter-spacing:.02em; margin-left:1px;
}

/* bundled-calendar note inside the quick-look */
.modal .m-info .calnote {
  margin:10px 0 2px; padding:10px 12px; font-size:12.5px; line-height:1.5;
  color:var(--muted); background:rgba(90,170,120,0.08);
  border:1px solid rgba(90,170,120,0.24); border-radius:8px;
}
.modal .m-info .calnote a { color:#8fd6b0; text-decoration:underline; }

/* report / transit / acg paper mocks (absolute light palette, like the book mocks) */
.mp .wheel {
  width:46px; height:46px; border-radius:50%; border:1.5px solid #A40F10;
  margin:7px auto 4px; position:relative;
}
.mp .wheel:before { content:""; position:absolute; inset:9px; border-radius:50%; border:1px solid #D8D2C8; }
.mp .wheel:after  { content:""; position:absolute; left:50%; top:2px; bottom:2px; width:1px; background:#D8D2C8; }
.mp .tl { display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.mp .tl s { display:block; height:4px; border-radius:2px; background:#D8D2C8; }
.mp .tl s.hi { background:#A40F10; }
.mp .worldmap {
  height:34px; border-radius:3px; margin:6px 0; position:relative; overflow:hidden;
  background:linear-gradient(180deg,#eef1f2,#e3e8ea); border:1px solid #D8D2C8;
}
.mp .worldmap:before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(10px 6px at 28% 45%, #cdd6d2 60%, transparent 62%),
    radial-gradient(14px 7px at 62% 55%, #cdd6d2 60%, transparent 62%),
    radial-gradient(7px 5px at 82% 40%, #cdd6d2 60%, transparent 62%);
}
.mp .worldmap:after {
  content:""; position:absolute; left:38%; top:0; bottom:0; width:1px; background:#A40F10;
  box-shadow:8px 0 #A40F10, -12px 0 rgba(4,120,87,0.5);
}
.mp .plate {
  height:40px; border-radius:3px; margin:6px 0; position:relative; overflow:hidden;
  background:radial-gradient(120% 90% at 50% 30%, #1a2230 0%, #0d1017 80%); border:1px solid #A40F10;
  display:flex; align-items:center; justify-content:space-around; padding:0 6px;
}
.mp .plate b { width:2px; height:2px; border-radius:50%; background:#f2f1ee; box-shadow:0 0 3px #cdd6ea; }
.mp .plate b:nth-child(3n){ width:3px; height:3px; background:#fff; }

/* ============================================================
   FILTER BAR — contextual span + visual grouping
   ============================================================ */
.chip-sep { width:1px; height:20px; background:rgba(242,241,238,0.22); margin:0 4px; display:inline-block; align-self:center; }
.filter-group.span-only[hidden] { display:none; }

/* ============================================================
   SHELVES — richer section heads (kicker · title · count · sub)
   ============================================================ */
.shelf-kicker {
  display:block; font-family:var(--font-body); font-weight:700; font-size:11px;
  letter-spacing:.22em; text-transform:uppercase; color:var(--burgundy); margin-bottom:8px;
}
.shelf-titlebar { display:flex; align-items:baseline; gap:14px; }
.shelf-count {
  font-size:11px; font-weight:600; letter-spacing:.06em; color:var(--dim);
  border:1px solid var(--line); border-radius:20px; padding:3px 11px; white-space:nowrap;
}
.shelf.special .shelf-kicker { color:var(--gold); }

/* clickable card title (opens the full product page) */
.pcard h3.pname { cursor:pointer; transition:color .15s ease; }
.pcard h3.pname:hover { color:var(--gold); }

/* ============================================================
   THE COMPLETE LOOK-UP — full product page (fixed overlay)
   ============================================================ */
body.mode-product { overflow:hidden; }
.pview[hidden] { display:none; }
.pview {
  position:fixed; inset:0; z-index:90; overflow-y:auto;
  background:var(--dark); color:var(--cream);
}

/* small dark header band — pinned on-dark tokens like the masthead */
.pview-bar {
  position:sticky; top:0; z-index:6; background:var(--band);
  border-bottom:1px solid #3a3636;
  --cream:#ECEAE6; --muted:#B7B1AA; --dim:#B7B1AA; --line:#3a3636; --gold:#C9A84C;
}
.pview-bar .wrap { display:flex; align-items:center; gap:20px; min-height:54px; padding-top:0; padding-bottom:0; }
.pv-back {
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  background:none; border:1px solid rgba(242,241,238,0.24); color:var(--cream);
  font-family:var(--font-body); font-size:13px; border-radius:20px; padding:7px 14px;
  transition:border-color .15s ease, color .15s ease;
}
.pv-back:hover { border-color:var(--burgundy); color:var(--gold); }
.pview-bar .brand { font-family:var(--font-serif); font-size:19px; letter-spacing:.02em; text-decoration:none; }
.pview-bar .brand .co { color:var(--cream); } .pview-bar .brand .product { color:var(--gold); }
.pv-crumb { display:flex; align-items:center; gap:8px; margin-right:auto; font-size:12.5px; color:var(--dim); flex-wrap:wrap; }
.pv-crumb a { color:var(--muted); text-decoration:none; } .pv-crumb a:hover { color:var(--gold); }
.pv-crumb em { color:var(--dimmer); font-style:normal; } .pv-crumb b { color:var(--cream); font-weight:600; }

.pview-wrap { padding-top:40px; padding-bottom:48px; }
/* left = the large preview gallery, right = a narrow receipt-style column
   (detailed description + payment options below). */
.pview-grid { display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:72px; align-items:start; }
@media (max-width:900px){ .pview-grid { grid-template-columns:1fr; gap:32px; } }

/* left — showcase (gallery only, enlarged) */
.pv-showcase { display:block; }
.pv-media { background:radial-gradient(120% 100% at 50% 0%, var(--dark3), var(--dark2)); border:1px solid var(--line); border-radius:16px; padding:48px 40px; }

/* the preview gallery — a main stage + a selectable thumbnail strip, the
   "change the preview picture" pattern every shop has. */
.pv-gallery { display:flex; flex-direction:column; gap:22px; }
.pv-stage { position:relative; display:flex; flex-direction:column; align-items:center; gap:16px; }
.pv-filetype {
  position:absolute; top:0; left:0; z-index:2; font-family:var(--font-body); font-size:10.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--cream); padding:5px 11px; border-radius:16px;
  background:rgba(4,120,87,0.85); border:1px solid rgba(4,120,87,0.55);
}
.pv-frame {
  position:relative; width:100%; max-width:440px; aspect-ratio:var(--page-ar);
  border:1px solid rgba(0,0,0,0.35); border-top:3px solid var(--gold);
  border-radius:3px; box-shadow:0 22px 54px rgba(0,0,0,0.5); overflow:hidden; background:var(--stock);
}
.pv-stage-img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center; background:var(--stock); }
.pv-stage.noimg .pv-stage-img { display:none; }
/* the walkthrough clip plays inside the same frame, on top of the still */
.pv-stage-vid { position:absolute; inset:0; z-index:3; width:100%; height:100%; object-fit:contain; background:#0b0a09; }
.pv-stage.playing .pv-ph { display:none; }
/* placeholder shown when no render exists yet — sits behind the image, so a
   real thumbnail simply covers it once bots/pdf_c drops the PNG in. */
.pv-ph {
  position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center; text-align:center;
  font-family:var(--font-serif); font-style:italic; font-size:13px; line-height:1.35; color:#8a827a;
  background:repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 10px, rgba(0,0,0,0.06) 10px 20px), var(--stock);
}
.pv-stage-img { z-index:1; }
.pv-stage-cap { font-family:var(--font-serif); font-style:italic; font-size:14px; color:var(--muted); text-align:center; }
.pv-thumbs { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
.pv-thumb {
  position:relative; width:70px; aspect-ratio:var(--page-ar); padding:0; overflow:hidden; cursor:pointer;
  background:var(--stock); border:1px solid var(--line); border-radius:3px; opacity:.6;
  transition:opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.pv-thumb img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.pv-thumb:hover { opacity:1; transform:translateY(-2px); }
.pv-thumb.on { opacity:1; border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
/* empty / not-yet-rendered slots stay visible as subtle placeholder tiles */
.pv-thumb.noimg img { display:none; }
.pv-thumb.ph, .pv-thumb.noimg {
  background:repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 7px, rgba(0,0,0,0.06) 7px 14px), var(--stock);
}
.pv-thumb.ph::after {
  content:""; position:absolute; inset:0; margin:auto; width:11px; height:11px;
  border:1px solid rgba(0,0,0,0.28); border-radius:50%;
}
/* the video walkthrough tile — dark, with a gold play badge */
.pv-thumb-vid { background:#171310; border-color:var(--line); opacity:.9; }
.pv-thumb-vid.ph::after { content:none; }
.pv-thumb-vid.on, .pv-thumb-vid:hover { opacity:1; border-color:var(--gold); }
.pv-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:26px; height:26px; border-radius:50%; background:rgba(52,211,153,0.92); }
.pv-play::after { content:""; position:absolute; top:50%; left:54%; transform:translate(-50%,-50%); width:0; height:0; border-style:solid; border-width:6px 0 6px 10px; border-color:transparent transparent transparent #171310; }

/* "see a real sample" download sitting below the thumbnail strip */
.pv-sample {
  display:flex; align-items:center; gap:12px; margin-top:20px; padding:13px 15px; width:100%;
  text-decoration:none; border:1px solid var(--line); border-radius:12px; background:var(--dark3);
  transition:border-color .15s ease, transform .15s ease;
}
.pv-sample:hover { border-color:var(--gold); transform:translateY(-1px); }
.pv-sample-ic {
  flex:none; width:34px; height:34px; display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:rgba(52,211,153,0.14); border:1px solid rgba(52,211,153,0.4); color:var(--gold); font-size:16px; font-weight:700;
}
.pv-sample-t { display:flex; flex-direction:column; gap:2px; min-width:0; }
.pv-sample-t b { font-size:13.5px; color:var(--cream); }
.pv-sample-t em { font-style:normal; font-size:12px; color:var(--muted); line-height:1.4; }
.pv-sample.is-soon { cursor:default; opacity:.72; }
.pv-sample.is-soon:hover { border-color:var(--line); transform:none; }

.pv-kicker { font-family:var(--font-body); font-weight:700; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--burgundy); }
.pv-title { font-family:var(--font-serif); font-weight:300; font-size:clamp(30px,4vw,44px); line-height:1.05; margin:8px 0 6px; color:var(--cream); }
.pv-tagline { font-family:var(--font-serif); font-style:italic; font-size:19px; color:var(--gold); margin-bottom:18px; }
.pv-desc { font-size:15px; color:var(--muted); line-height:1.7; margin:0 0 22px; }
.pv-contents { margin:0 0 22px; }
.pv-contents .h { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); margin-bottom:10px; }
.pv-contents .bk { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--cream); padding:5px 0; }
.pv-contents .bk:before { content:""; width:6px; height:6px; border-radius:50%; background:var(--gold); flex:none; }
.pv-specs { list-style:none; padding:0; margin:0 0 22px; border-top:1px solid var(--line); }
.pv-specs li { display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.pv-specs li .k { color:var(--dim); } .pv-specs li .v { color:var(--cream); font-weight:600; text-align:right; }
.pv-calnote {
  margin:0 0 20px; padding:12px 14px; font-size:13px; line-height:1.55; color:var(--muted);
  background:rgba(90,170,120,0.08); border:1px solid rgba(90,170,120,0.24); border-radius:10px;
}
.pv-calnote a { color:#8fd6b0; text-decoration:underline; }
.pv-honesty { padding:14px 16px; background:var(--dark3); border:1px dashed var(--line); border-radius:12px; font-size:12.5px; color:var(--muted); line-height:1.6; }
.pv-honesty b { color:var(--gold); }

/* right — the bill (sticky) */
.pv-bill {
  background:var(--dark2); border:1px solid var(--line);
  border-top:3px solid var(--burgundy); border-radius:16px; padding:26px 24px;
  box-shadow:0 24px 60px rgba(0,0,0,0.28);
}
.bill-head .bill-fam { font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--burgundy); }
.bill-name { font-family:var(--font-serif); font-weight:400; font-size:26px; line-height:1.12; margin:6px 0 0; color:var(--cream); }
.bill-desc { font-family:var(--font-serif); font-style:italic; font-size:15.5px; color:var(--gold); margin:10px 0 16px; line-height:1.4; }
.bill-blurb { font-size:13.5px; color:var(--muted); line-height:1.65; margin:0 0 18px; }
/* the detailed spec table + calendar note read tighter inside the narrow receipt */
.pv-bill .pv-specs { margin:0 0 18px; }
.pv-bill .pv-specs li { padding:9px 0; font-size:12.5px; }
.pv-bill .pv-contents { margin:0 0 18px; }
.pv-bill .pv-calnote { font-size:12px; }
/* the buy section — price + config + pay — sits below the description, set off
   by a rule so the receipt reads: what it is, then how to buy it. */
.bill-buy { border-top:1px solid var(--line); padding-top:20px; }
.bill-price { font-size:36px; font-weight:700; color:var(--cream); line-height:1; display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.bill-price .was { font-size:17px; font-weight:400; color:var(--dimmer); text-decoration:line-through; }
.bill-price .save { font-size:12px; font-weight:700; color:var(--gold); background:rgba(52,211,153,0.12); border:1px solid rgba(52,211,153,0.28); padding:3px 10px; border-radius:20px; }
.bill-price .permo { font-size:.5em; font-weight:600; color:var(--dim); }
.bill-price .tbd { font-size:22px; font-weight:600; color:var(--dim); font-family:var(--font-body); }
.bill-billing { font-size:12.5px; color:var(--dim); margin:8px 0 20px; }

.bill-config { border-top:1px solid var(--line); padding-top:18px; margin-bottom:18px; }
.bill-config.none { opacity:.9; }
.cfg-lab { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--dim); margin-bottom:12px; }
.cfg-field { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.cfg-field span { font-size:12px; color:var(--muted); }
.cfg-field input {
  background:var(--dark3); border:1px solid var(--line); border-radius:9px; color:var(--cream);
  font-family:var(--font-body); font-size:14px; padding:10px 12px; width:100%;
  transition:border-color .15s ease;
}
.cfg-field input:focus { outline:none; border-color:var(--burgundy); }
.cfg-note { font-size:11.5px; color:var(--dimmer); line-height:1.5; margin-top:2px; }

.bill-pers {
  display:flex; align-items:flex-start; gap:10px; cursor:pointer;
  background:var(--dark3); border:1px solid var(--line); border-radius:12px; padding:13px 15px; margin-bottom:18px;
}
.bill-pers input { margin-top:2px; accent-color:var(--burgundy); }
.bill-pers span { font-size:12.5px; color:var(--muted); line-height:1.5; }
.bill-pers b { color:var(--cream); } .bill-pers em { color:var(--gold); font-style:normal; font-weight:700; }

.bill-pay { margin-bottom:16px; }
.btn-block { width:100%; justify-content:center; }
.pay-methods { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.pay-methods span { font-size:11px; color:var(--dim); letter-spacing:.04em; margin-right:2px; }
.pm { font-style:normal; font-size:11px; font-weight:600; color:var(--muted); border:1px solid var(--line); border-radius:6px; padding:4px 9px; background:var(--dark3); }
.bill-trust { font-size:11.5px; color:var(--dim); line-height:1.7; border-top:1px solid var(--line); padding-top:14px; }

/* below — related rails */
.pv-related { border-top:1px solid var(--line); padding:40px 0 60px; margin-top:12px; background:var(--dark2); }
.pv-related-head { margin-bottom:22px; }
.rail { margin-bottom:32px; }
.rail-title { font-family:var(--font-serif); font-weight:400; font-size:21px; color:var(--cream); margin:0 0 16px; }
.rail-track {
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(180px,1fr);
  gap:16px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x proximity;
}
.rail-track::-webkit-scrollbar { height:8px; }
.rail-track::-webkit-scrollbar-thumb { background:var(--line); border-radius:8px; }
.minicard {
  display:flex; flex-direction:column; gap:6px; text-align:left; cursor:pointer; scroll-snap-align:start;
  background:var(--dark3); border:1px solid var(--line); border-radius:12px; padding:14px; color:var(--cream);
  font-family:var(--font-body); transition:border-color .15s ease, transform .15s ease;
}
.minicard:hover { border-color:var(--burgundy); transform:translateY(-2px); }
.mini-thumb {
  display:flex; align-items:center; justify-content:center; height:120px; border-radius:8px; overflow:hidden;
  background:var(--stock); border:1px solid rgba(0,0,0,0.25); margin-bottom:6px;
}
.mini-thumb img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.mini-thumb.noimg { background:radial-gradient(120% 100% at 50% 0%, var(--dark2), var(--dark3)); }
.mini-fam { font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--burgundy); }
.mini-name { font-family:var(--font-serif); font-size:16px; line-height:1.15; color:var(--cream); }
.mini-price { font-size:14px; font-weight:700; color:var(--cream); margin-top:auto; }
.mini-price .was { font-size:12px; font-weight:400; color:var(--dimmer); text-decoration:line-through; margin-left:6px; }
.mini-price .save { display:none; }
.mini-price .permo { font-size:.7em; font-weight:600; color:var(--dim); }
.mini-price .tbd { font-size:12px; font-weight:600; color:var(--dim); }

/* ============================================================
   POWERED BY NOUS API — the orbit sigil (header + footer)
   An elegant, quiet mark: a tilted orbit with a core star and one
   orbiting body. Links to the API site. Gold on the dark band.
   ============================================================ */
.powered {
  display:inline-flex; align-items:center; gap:9px; text-decoration:none;
  color:var(--muted); font-family:var(--font-body); font-size:11.5px;
  letter-spacing:.06em; white-space:nowrap; transition:color .2s ease;
}
.powered:hover { color:var(--gold); }
.powered .sigil { display:inline-flex; width:24px; height:24px; flex:none; }
.powered .sigil svg { width:100%; height:100%; overflow:visible; }
.powered .sigil ellipse { fill:none; stroke:var(--gold); stroke-width:1.1; opacity:.75; transition:opacity .2s ease; }
.powered .sigil .core { fill:var(--gold); }
.powered .sigil .orb  { fill:var(--gold); transform-origin:14px 14px; transition:opacity .2s ease; }
.powered:hover .sigil ellipse { opacity:1; }
.powered:hover .sigil .orb { animation:orbit 3.2s linear infinite; }
@keyframes orbit { to { transform:rotate(360deg); } }
.powered-txt { font-weight:600; }
.powered-txt b { color:var(--gold); font-weight:700; letter-spacing:.03em; }
.powered:hover .powered-txt b { color:var(--gold); }

/* header placement — quiet divider before the theme toggle */
header.site .cta .powered {
  border-left:1px solid rgba(242,241,238,0.16); padding-left:12px; margin-left:2px;
}
@media (max-width:760px){ header.site .cta .powered .powered-txt { display:none; } }

/* footer placement — centred, its own line above the copyright bar */
.powered-foot {
  display:flex; justify-content:center; gap:11px; font-size:12.5px;
  padding:22px 0 6px; margin-top:10px; border-top:1px solid var(--line);
}
.powered-foot .sigil { width:28px; height:28px; }
.powered-sub { color:var(--dim); font-weight:400; letter-spacing:.02em; }
@media (max-width:560px){ .powered-foot .powered-sub { display:none; } }

/* ===================================================================
   COMMERCE — cart · checkout · wishlist · search/sort · trust · faq
   · newsletter · personal rails. All client-side; the pay step hands
   off to the gate/Treasury later (see shop.js).
   =================================================================== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.cart-open { overflow:hidden; }

/* ---- header cart button + badge (matches the nav-toggle chrome) ---- */
.cart-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; width:40px; height:34px; background:transparent; border:1px solid rgba(242,241,238,0.22); border-radius:9px; cursor:pointer; color:rgba(242,241,238,0.72); }
.cart-btn:hover { border-color:var(--gold); color:#fff; }
.cart-btn svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.cart-btn .cart-count { position:absolute; top:-7px; right:-7px; min-width:17px; height:17px; padding:0 4px; box-sizing:border-box; display:none; align-items:center; justify-content:center; background:var(--burgundy); color:#FBF8F3; font-size:10.5px; font-weight:700; font-family:var(--font-body); border-radius:9px; }
.cart-count.has { display:inline-flex; }

/* ---- the slide-in mini-cart ---- */
.cartdrawer { position:fixed; inset:0; z-index:120; }
.cart-scrim { position:absolute; inset:0; background:rgba(8,6,6,0.62); backdrop-filter:blur(3px); opacity:0; transition:opacity .24s ease; }
.cartdrawer.open .cart-scrim { opacity:1; }
.cart-panel { position:absolute; top:0; right:0; height:100%; width:min(420px,92vw); background:var(--dark2); border-left:1px solid var(--line); box-shadow:-24px 0 60px rgba(0,0,0,0.5); display:flex; flex-direction:column; transform:translateX(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); }
.cartdrawer.open .cart-panel { transform:translateX(0); }
.cart-top { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--line); }
.cart-top h3 { font-family:var(--font-serif); font-size:21px; color:var(--cream); margin:0; }
.cart-x { background:transparent; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; }
.cart-x:hover { color:var(--cream); }
.cart-items { flex:1 1 auto; overflow-y:auto; padding:6px 22px; }
.cart-empty { text-align:center; padding:60px 10px; color:var(--dim); }
.cart-empty-i { font-size:34px; color:var(--line); display:block; margin-bottom:12px; }
.cart-empty p { margin:0 0 18px; font-family:var(--font-serif); font-style:italic; font-size:15px; }
.cart-line { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--line); }
.cl-thumb { flex:0 0 54px; width:54px; height:70px; border-radius:3px; overflow:hidden; background:var(--dark3); border:1px solid var(--line); }
.cl-thumb img { width:100%; height:100%; object-fit:cover; object-position:center top; }
.cl-thumb.noimg { background:radial-gradient(120% 100% at 50% 0%, var(--dark2), var(--dark3)); }
.cl-info { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cl-info b { font-family:var(--font-serif); font-size:15.5px; color:var(--cream); font-weight:400; line-height:1.2; }
.cl-info em { font-style:normal; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--burgundy); font-weight:700; }
.cl-pers { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:var(--muted); margin-top:5px; cursor:pointer; }
.cl-right { flex:0 0 auto; display:flex; flex-direction:column; align-items:flex-end; justify-content:space-between; }
.cl-price { font-size:14px; font-weight:700; color:var(--cream); }
.cl-price i { font-style:normal; font-size:.7em; color:var(--dim); font-weight:600; }
.cl-remove { background:transparent; border:0; color:var(--dim); font-size:11.5px; cursor:pointer; text-decoration:underline; padding:0; }
.cl-remove:hover { color:var(--burgundy); }
.cart-foot { flex:0 0 auto; padding:18px 22px 22px; border-top:1px solid var(--line); background:var(--dark3); display:flex; flex-direction:column; gap:10px; }
.cart-subrow { display:flex; align-items:baseline; justify-content:space-between; }
.cart-subrow span { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.cart-subrow b { font-size:26px; font-family:var(--font-serif); color:var(--cream); }
.cart-note { font-size:11.5px; color:var(--dim); margin:0; line-height:1.5; }
.cart-foot .btn { margin:0; }

/* ---- checkout overlay ---- */
.checkout { position:fixed; inset:0; z-index:130; }
.co-scrim { position:absolute; inset:0; background:rgba(8,6,6,0.78); backdrop-filter:blur(4px); opacity:0; transition:opacity .24s ease; }
.checkout.open .co-scrim { opacity:1; }
.co-sheet { position:absolute; top:50%; left:50%; transform:translate(-50%,-46%); opacity:0; width:min(460px,94vw); max-height:92vh; overflow:auto; background:var(--dark2); border:1px solid var(--line); border-top:3px solid var(--burgundy); border-radius:18px; box-shadow:0 40px 100px rgba(0,0,0,0.6); transition:transform .26s ease, opacity .26s ease; }
.checkout.open .co-sheet { transform:translate(-50%,-50%); opacity:1; }
.co-x { position:absolute; top:14px; right:16px; background:transparent; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; z-index:2; }
.co-x:hover { color:var(--cream); }
.co-body { padding:30px 30px 32px; }
.co-body h2 { font-family:var(--font-serif); font-weight:300; font-size:27px; color:var(--cream); margin:6px 0 18px; }
.co-items { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:6px 0; margin-bottom:14px; }
.co-line { display:flex; justify-content:space-between; gap:12px; padding:8px 0; font-size:13.5px; color:var(--muted); }
.co-line span:first-child { color:var(--cream); }
.co-line i { font-style:normal; color:var(--gold); font-size:.85em; }
.co-totalrow { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:20px; }
.co-totalrow span { font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); font-weight:700; }
.co-totalrow b { font-size:30px; font-family:var(--font-serif); color:var(--cream); }
.co-form label { display:block; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.co-form input { width:100%; box-sizing:border-box; background:var(--dark); border:1px solid var(--line); border-radius:8px; padding:12px 13px; color:var(--cream); font-family:var(--font-body); font-size:14.5px; }
.co-form input:focus { outline:none; border-color:var(--gold); }
.co-err { display:block; min-height:16px; color:var(--burgundy-light); font-size:12px; margin:6px 0 8px; }
.co-fine { font-size:11px; color:var(--dim); text-align:center; margin:12px 0 0; }
.co-done { text-align:center; padding:14px 0 6px; }
.co-tick { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius:50%; background:rgba(52,211,153,0.14); border:1px solid var(--gold); color:var(--gold); font-size:26px; margin-bottom:14px; }
.co-done h3 { font-family:var(--font-serif); font-weight:400; font-size:23px; color:var(--cream); margin:0 0 10px; }
.co-done p { font-size:14px; color:var(--muted); line-height:1.6; margin:0 0 20px; }
.co-done b { color:var(--gold); }

/* ---- wishlist heart on the receipt + add-to-cart in-cart state ---- */
.bill-headtop { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.wishbtn { flex:0 0 auto; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--line); border-radius:50%; cursor:pointer; color:var(--dim); transition:border-color .16s ease, color .16s ease, background .16s ease; }
.wishbtn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; }
.wishbtn:hover { border-color:var(--burgundy); color:var(--burgundy); }
.wishbtn.on { border-color:var(--burgundy); color:var(--burgundy); background:rgba(4,120,87,0.08); }
.wishbtn.on svg { fill:currentColor; }
.js-addcart.in-cart { background:transparent; color:var(--gold); border-color:var(--gold); }
.js-addcart.in-cart:hover { background:rgba(52,211,153,0.1); color:var(--gold); }

/* ---- filter tools: search + sort ---- */
.filter-tools { display:flex; align-items:center; gap:12px; }
.filter-search { position:relative; flex:1 1 auto; min-width:0; max-width:340px; }
.filter-search .fs-ic { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:15px; height:15px; fill:none; stroke:var(--dim); stroke-width:1.8; stroke-linecap:round; pointer-events:none; }
.filter-search input { width:100%; box-sizing:border-box; background:var(--dark); border:1px solid var(--line); border-radius:20px; padding:8px 32px 8px 34px; color:var(--cream); font-family:var(--font-body); font-size:13px; }
.filter-search input:focus { outline:none; border-color:var(--gold); }
.filter-search input::placeholder { color:var(--dim); }
.filter-search input::-webkit-search-cancel-button { display:none; }
.fs-clear { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:20px; height:20px; border:0; border-radius:50%; background:var(--line); color:var(--dark); font-size:14px; line-height:1; cursor:pointer; }
.filter-sort { flex:0 0 auto; display:flex; align-items:center; gap:8px; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-left:auto; }
.filter-sort select { background:var(--dark); border:1px solid var(--line); border-radius:20px; padding:7px 12px; color:var(--cream); font-family:var(--font-body); font-size:12.5px; font-weight:600; letter-spacing:0; text-transform:none; cursor:pointer; }
.filter-sort select:focus { outline:none; border-color:var(--gold); }
@media (max-width:640px){ .filter-search { max-width:none; } .filter-sort span { display:none; } }

/* ---- active-filter summary ---- */
.filter-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-top:2px; }
.fsum-lab { font-size:11.5px; color:var(--dim); font-family:var(--font-serif); font-style:italic; margin-right:2px; }
.fsum-pill { display:inline-flex; align-items:center; gap:7px; background:var(--dark3); border:1px solid var(--line); border-radius:20px; padding:4px 11px; font-size:12px; color:var(--cream); cursor:pointer; }
.fsum-pill span { color:var(--dim); font-size:13px; }
.fsum-pill:hover { border-color:var(--burgundy); }
.fsum-pill:hover span { color:var(--burgundy); }
.fsum-clear { background:transparent; border:0; color:var(--burgundy); font-size:12px; font-weight:700; cursor:pointer; text-decoration:underline; }
.empty .btn { margin-left:10px; vertical-align:middle; }

/* ---- personal rails (saved / recently viewed) ---- */
.personal { padding:26px 0 8px; background:var(--dark); }
.personal .rail { margin-bottom:22px; }

/* ---- trust / guarantees ---- */
.trust { background:var(--dark2); border-top:1px solid var(--line); }
.guarantees { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:880px){ .guarantees { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .guarantees { grid-template-columns:1fr; } }
.grt { background:var(--dark); border:1px solid var(--line); border-radius:14px; padding:24px 22px; }
.grt-i { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; background:var(--dark3); border:1px solid var(--line); color:var(--gold); font-size:20px; margin-bottom:14px; }
.grt h4 { font-family:var(--font-serif); font-weight:400; font-size:18px; color:var(--cream); margin:0 0 8px; }
.grt p { font-size:13px; color:var(--muted); line-height:1.6; margin:0; }

/* ---- FAQ accordion ---- */
.faq { background:var(--dark); border-top:1px solid var(--line); }
.faq-list { max-width:760px; }
.faq-q { display:block; border-bottom:1px solid var(--line); }
.faq-q[open] .faq-a { display:block; }
.faq-q summary { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 2px; font-family:var(--font-serif); font-size:19px; color:var(--cream); }
.faq-q summary::-webkit-details-marker { display:none; }
.faq-q summary:hover { color:var(--gold); }
.faq-mk { position:relative; flex:0 0 auto; width:16px; height:16px; }
.faq-mk::before, .faq-mk::after { content:""; position:absolute; background:var(--gold); transition:transform .2s ease, opacity .2s ease; }
.faq-mk::before { top:7px; left:0; width:16px; height:2px; }
.faq-mk::after { top:0; left:7px; width:2px; height:16px; }
.faq-q[open] .faq-mk::after { transform:rotate(90deg); opacity:0; }
.faq-a { padding:0 2px 22px; font-size:14px; color:var(--muted); line-height:1.7; max-width:660px; }
.faq-a b { color:var(--gold); font-weight:600; }

/* ---- newsletter ---- */
.newsletter { background:var(--dark2); border-top:1px solid var(--line); }
.nl-card { background:radial-gradient(120% 140% at 0% 0%, var(--dark3), var(--dark)); border:1px solid var(--line); border-radius:18px; padding:40px 44px; display:flex; align-items:center; justify-content:space-between; gap:40px; flex-wrap:wrap; }
.nl-copy { flex:1 1 340px; }
.nl-copy h2 { font-family:var(--font-serif); font-weight:300; font-size:clamp(24px,3vw,30px); color:var(--cream); margin:8px 0 8px; }
.nl-copy p { font-size:14px; color:var(--muted); margin:0; max-width:460px; line-height:1.6; }
.nl-form { flex:1 1 300px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.nl-form input { flex:1 1 200px; min-width:0; box-sizing:border-box; background:var(--dark); border:1px solid var(--line); border-radius:9px; padding:12px 14px; color:var(--cream); font-family:var(--font-body); font-size:14.5px; }
.nl-form input:focus { outline:none; border-color:var(--gold); }
.nl-form .btn { flex:0 0 auto; }
.nl-msg { flex:1 1 100%; font-size:12.5px; min-height:16px; }
.nl-msg.ok { color:var(--gold); }
.nl-msg.err { color:var(--burgundy-light); }
@media (max-width:600px){ .nl-card { padding:30px 26px; } .nl-form .btn { width:100%; } }

/* ===================================================================
   FREE SKY TOOLS — the live-sky band + the "moon of your date" popup.
   Scientific-but-slick: emerald starfield section, instrument-style
   cards, tabular numerics, a client-drawn moon disc that visualises the
   daemon's illumination fraction (presentation, not a re-computation).
   =================================================================== */
.skytools { background:var(--dark2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); position:relative; overflow:hidden; }
.skytools::before { content:""; position:absolute; inset:0 0 auto 0; height:2px; background:linear-gradient(to right, transparent, var(--gold), transparent); }
.skytools::after { content:""; position:absolute; inset:0; pointer-events:none; opacity:.6;
  background:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(52,211,153,.5), transparent),
    radial-gradient(1.4px 1.4px at 78% 16%, rgba(167,243,208,.45), transparent),
    radial-gradient(1.2px 1.2px at 40% 68%, rgba(52,211,153,.4), transparent),
    radial-gradient(1.2px 1.2px at 88% 74%, rgba(167,243,208,.4), transparent),
    radial-gradient(1.1px 1.1px at 60% 40%, rgba(52,211,153,.35), transparent); }
.skytools .wrap { position:relative; z-index:1; }

.st-head { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; margin-bottom:34px; }
.st-head-main { max-width:700px; }
.st-head h2 { font-family:var(--font-serif); font-weight:300; font-size:clamp(26px,3.4vw,36px); color:var(--cream); margin:10px 0 10px; line-height:1.08; }
.st-head h2 em { font-style:italic; color:var(--gold); }
.st-head-main > p { color:var(--muted); font-size:15px; line-height:1.6; margin:0; max-width:600px; }

/* next full moon — an elegant white card with an emerald border, set to the
   right of the heading (fills the empty space beside the copy) */
.st-nextfull { flex:0 0 auto; align-self:flex-start; min-width:158px; text-align:center;
  background:#f7f8f4; border:1.5px solid var(--accent); border-radius:15px;
  padding:16px 22px 15px; box-shadow:0 10px 30px rgba(0,0,0,0.25); }
.st-nextfull-lab { display:block; font-family:var(--font-body); font-weight:700; text-transform:uppercase; letter-spacing:.14em; font-size:10px; color:#4a6b58; margin-bottom:6px; }
.st-nextfull-n { font-family:var(--font-serif); font-size:32px; color:#0d3324; font-variant-numeric:tabular-nums; letter-spacing:.02em; line-height:1.05; }
.st-nextfull-sub { display:block; color:#516b5d; font-size:12.5px; margin-top:5px; font-variant-numeric:tabular-nums; }
/* day theme: the section turns cream, so the white card would blend into the
   page. Invert it to a deep-green chip with light text so it stays legible. */
[data-theme="day"] .st-nextfull { background:#0d3324; border-color:#0d3324; box-shadow:0 8px 22px rgba(13,51,36,0.22); }
[data-theme="day"] .st-nextfull-lab { color:#7fc3a8; }
[data-theme="day"] .st-nextfull-n { color:#fbfdfb; }
[data-theme="day"] .st-nextfull-sub { color:#bfe0d0; }

/* location controls */
.st-loc { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:22px; }
#geo-btn { display:inline-flex; align-items:center; gap:7px; }
#geo-btn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.st-place { display:flex; gap:8px; flex-wrap:wrap; }
.st-place input { background:var(--dark); border:1px solid var(--line); border-radius:9px; padding:10px 13px; color:var(--cream); font-family:var(--font-body); font-size:14px; min-width:180px; }
.st-place input::placeholder { color:var(--dim); }
.st-place input:focus { outline:none; border-color:var(--gold); }
.st-loc-name { font-family:var(--font-serif); font-style:italic; font-size:13.5px; color:var(--gold); }

/* the card grid — a purpose-built layout, not equal tiles: one row of three.
   • The left column holds a compact Sun box sized to its own read-outs (it
     ends at the golden-hour line, nothing more), with the season filling the
     space beneath it down to the Moon's foot.
   • Moon is the tall centre card (it carries the disc).
   • Visible-tonight matches the Moon's height exactly. */
.st-grid {
  display:grid;
  grid-template-columns:minmax(200px,238px) minmax(0,1.1fr) minmax(0,1fr);
  grid-template-areas:"left moon vis";
  gap:16px 18px;
  align-items:stretch;
}
.st-lcol        { grid-area:left; display:flex; flex-direction:column; gap:16px; }
.st-sun         { flex:0 0 auto; }   /* hug the four read-outs; no dead space */
.st-season-bare { flex:1 1 auto; }   /* fill the space below the Sun box */
.st-moon        { grid-area:moon; }
.st-vis         { grid-area:vis; }
.st-card { position:relative; background:var(--dark); border:1px solid var(--line); border-radius:16px; padding:22px 22px 20px; transition:border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.st-card:hover { border-color:rgba(52,211,153,0.4); transform:translateY(-2px); box-shadow:0 14px 34px rgba(0,0,0,0.28); }
.st-card h3 { font-family:var(--font-serif); font-weight:400; font-size:16px; color:var(--cream); margin:0 0 12px; letter-spacing:.02em; }
.st-ic { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; background:var(--dark3); border:1px solid var(--line); color:var(--gold); font-size:18px; margin-bottom:12px; }

/* value rows — instrument read-out */
.st-rows { list-style:none; margin:0; padding:0; }
.st-rows li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.st-rows li:last-child { border-bottom:0; }
.st-rows li span { color:var(--muted); }
.st-rows li b { color:var(--cream); font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:.01em; }

/* sun card — warm, compact, sized to its four read-outs; just the orange
   border, no fill, and the disc icon centred over the read-outs */
.st-sun { background:var(--dark); border-color:rgba(240,150,70,0.34); }
.st-sun:hover { border-color:rgba(247,162,74,0.55); }
.st-sun .st-ic { color:#f7a24a; border-color:rgba(240,150,70,0.42); background:rgba(240,150,70,0.11); display:flex; margin-left:auto; margin-right:auto; }
.st-sun h3 { text-align:center; }
.st-sun h3 { color:#f6d9b8; }
.st-sun .st-rows li b { color:#f8e5cf; }
[data-theme="day"] .st-sun h3 { color:#272424; }
[data-theme="day"] .st-sun .st-rows li b { color:#272424; }

/* moon-today card */
.st-moon { text-align:center; }
.st-moondisc { position:relative; width:100px; height:100px; margin:2px auto 14px; border-radius:50%; }
.st-moondisc .moon-svg, .mp-disc .moon-svg { display:block; width:100%; height:100%; filter:drop-shadow(0 4px 16px rgba(0,0,0,.45)); }
.md-shadow { display:block; width:100%; height:100%; border-radius:50%; background:radial-gradient(circle at 38% 34%, #17402e, #0b2019); border:1px solid var(--line); }
.st-phase { font-family:var(--font-serif); font-size:17px; color:var(--gold); margin-bottom:12px; }
.st-moon .st-rows { text-align:left; }

/* visible-tonight card */
.st-planets { list-style:none; margin:6px 0 0; padding:0; }
.st-planets li { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px; }
.st-planets li:last-child { border-bottom:0; }
.vp-n { color:var(--cream); font-weight:600; }
.vp-d { font-style:normal; font-size:11px; color:var(--gold); font-weight:600; letter-spacing:.05em; margin-left:6px; opacity:.92; }
.vp-t { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.st-empty { color:var(--dim); font-style:italic; }

/* season bar — boxless, tucked right under the Sun box, its content centred so
   it fills the stretched cell and lines up with the taller cards beside it */
.st-season-bare { padding:6px 4px 0; display:flex; flex-direction:column; justify-content:center; }
.st-season-bare h3 { font-family:var(--font-serif); font-weight:400; font-size:15px; color:var(--cream); margin:0 0 2px; letter-spacing:.02em; }
.st-bar { height:9px; border-radius:6px; background:var(--dark3); border:1px solid var(--line); overflow:hidden; margin:12px 0 10px; }
.st-bar-fill { display:block; height:100%; width:0; background:linear-gradient(to right, var(--burgundy), var(--gold)); border-radius:6px; transition:width .7s cubic-bezier(.4,0,.2,1); }
.st-season-meta { font-size:12.5px; color:var(--muted); margin:0; }
.st-season-meta b { color:var(--cream); font-variant-numeric:tabular-nums; }

/* the make-your-moon call-to-action card */
.st-make { background:linear-gradient(140% 140% at 100% 0%, var(--accent-soft), var(--dark)); border-color:rgba(52,211,153,0.4); display:flex; flex-direction:column; }
.st-make p { color:var(--muted); font-size:13px; line-height:1.55; margin:0 0 16px; }
.st-make .btn { margin-top:auto; }

.st-note { margin-top:24px; font-size:12.5px; color:var(--dim); font-style:italic; font-family:var(--font-serif); line-height:1.5; max-width:620px; }

/* medium: heading stacks above its next-full-moon card; grid keeps Sun+season
   beside the Moon with Visible tonight below */
@media (max-width:860px){
  .st-head { flex-direction:column; gap:22px; }
  .st-nextfull { align-self:flex-start; }
  .st-grid {
    grid-template-columns:minmax(180px,220px) minmax(0,1fr);
    grid-template-areas:
      "left moon"
      "vis  vis";
  }
}
/* narrow: single column, DOM order */
@media (max-width:560px){
  .st-grid {
    grid-template-columns:1fr;
    grid-template-areas:"left" "moon" "vis";
  }
  .st-place, .st-place input { width:100%; }
  .st-loc .btn { width:100%; justify-content:center; }
}

/* ---- MOON POPUP — "the moon of your date" ---- */
body.moon-open { overflow:hidden; }
.moonpop { position:fixed; inset:0; z-index:140; display:flex; align-items:center; justify-content:center; padding:24px; }
.moonpop[hidden] { display:none; }
.mp-scrim { position:absolute; inset:0; background:rgba(6,20,14,0.84); backdrop-filter:blur(5px); }
.mp-sheet { position:relative; width:min(460px,96vw); max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); overflow:auto;
  background:var(--dark2); border:1px solid var(--line); border-top:3px solid var(--burgundy); border-radius:18px;
  box-shadow:0 40px 100px rgba(0,0,0,0.6); animation:mp-in .28s cubic-bezier(.4,0,.2,1);
  transition:width .3s cubic-bezier(.4,0,.2,1); }
/* once a moon is drawn the sheet widens into a two-column instrument panel:
   controls on the left, the read-out on the right — so it grows sideways,
   never downward into a scrollbar. */
.mp-sheet:has(.mp-body.has-result) { width:min(720px,96vw); }
@keyframes mp-in { from { opacity:0; transform:translateY(16px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.mp-x { position:absolute; top:14px; right:16px; background:transparent; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; z-index:2; }
.mp-x:hover { color:var(--cream); }
.mp-body { padding:24px 30px 22px; }
.mp-body h2 { font-family:var(--font-serif); font-weight:300; font-size:25px; color:var(--cream); margin:4px 0 6px; }
.mp-lead { color:var(--muted); font-size:13.5px; line-height:1.5; margin:0 0 14px; }
.mp-form { display:flex; flex-direction:column; gap:12px; }
.mp-frow { display:flex; gap:12px; flex-wrap:wrap; }
.mp-fld { flex:1 1 130px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.mp-fld-sm { flex:0 0 116px; }
.mp-fld label { font-family:var(--font-body); font-weight:700; letter-spacing:.14em; text-transform:uppercase; font-size:10.5px; color:var(--muted); }
.mp-fld label span { font-weight:400; letter-spacing:0; text-transform:none; color:var(--dim); font-style:italic; }
.mp-fld input { width:100%; box-sizing:border-box; background:var(--dark); border:1px solid var(--line); border-radius:9px; padding:11px 13px; color:var(--cream); font-family:var(--font-body); font-size:14px; }
.mp-fld input::placeholder { color:var(--dim); }
.mp-fld input:focus { outline:none; border-color:var(--gold); }
.mp-err { color:var(--burgundy-light); font-size:12.5px; min-height:1em; }
.mp-consent { display:block; color:var(--dim); font-size:11.5px; line-height:1.5; margin-top:2px; }
.mp-result { margin-top:22px; padding-top:20px; border-top:1px solid var(--line);
  display:grid; grid-template-columns:150px 1fr; gap:18px 26px; align-items:center; text-align:left; }
/* the display:grid above outranks the [hidden] attribute, so hide it explicitly
   until a moon is drawn — otherwise the empty read-out inflates the popup. */
.mp-result[hidden] { display:none !important; }

/* two-column instrument layout (set by JS once a moon is computed) */
.mp-body.has-result { display:grid; grid-template-columns:minmax(220px,270px) 1fr;
  column-gap:40px; row-gap:4px; align-items:start; }
.mp-body.has-result > .kicker,
.mp-body.has-result > h2 { grid-column:1 / -1; }
.mp-body.has-result > .mp-lead { display:none; }          /* the pitch is spent — reclaim the height */
.mp-body.has-result > .mp-form { grid-column:1; margin-top:6px; }
.mp-body.has-result > .mp-result { grid-column:2; grid-row:3 / span 4; align-self:start;
  margin-top:14px; padding-top:0; border-top:0; }
.mp-disc { position:relative; width:150px; height:150px; margin:0; border-radius:50%; align-self:start; }
.mp-facts { min-width:0; }
.mp-phase { font-family:var(--font-serif); font-size:21px; color:var(--gold); margin:0 0 10px; }
.mp-rows { list-style:none; margin:0; padding:0; display:block; }
.mp-rows li { display:flex; justify-content:space-between; gap:22px; padding:7px 0; font-size:13.5px; border-bottom:1px solid var(--line); }
.mp-rows li:last-child { border-bottom:0; }
.mp-rows li span { color:var(--muted); }
.mp-rows li b { color:var(--cream); font-variant-numeric:tabular-nums; }
.mp-actions { grid-column:1 / -1; display:flex; gap:10px; justify-content:flex-start; margin:2px 0 4px; flex-wrap:wrap; }
.mp-fine { grid-column:1 / -1; font-size:12px; color:var(--dim); line-height:1.55; margin:0; }
.mp-fine a { color:var(--gold); }
.mp-new { display:none; }   /* a "start over" control — only needed on phones (below) */
@media (max-width:640px){
  /* phones: give the sheet the screen, kill the iOS focus-zoom, fit the URL bar */
  .moonpop { padding:12px; align-items:flex-start; }
  .mp-sheet { width:100%; max-height:calc(100dvh - 24px); border-radius:16px; }
  .mp-fld input { font-size:16px; }   /* ≥16px stops iOS Safari zooming on focus */
  .mp-x { top:10px; right:12px; padding:6px; }
  .btn-block { min-height:48px; }
  .mp-body { padding:26px 18px 24px; }
  .mp-fld-sm { flex:1 1 130px; }
  /* stack again on phones: viewport is tall, the column split isn't worth it.
     Once the moon is drawn, fold the input form away so the read-out fits the
     screen with no scrollbar; "New date" brings the form back. */
  .mp-body.has-result { display:block; }
  .mp-body.has-result > .mp-form { display:none; }
  .mp-body.has-result > .mp-result { margin-top:4px; padding-top:0; border-top:0; }
  .mp-new { display:inline-flex; }
  .mp-result { grid-template-columns:1fr; justify-items:center; text-align:center; gap:14px; }
  .mp-disc { width:130px; height:130px; }
  .mp-rows { width:100%; max-width:280px; }
  .mp-actions { justify-content:center; }
}
.mp-fld-wide { flex:1 1 100%; }

/* ============================================================
   CITY AUTOCOMPLETE — candidate list from nemo NEMO_NAME_OPTIONS
   So the visitor confirms WHICH place (which "Pokhara") they meant.
   ============================================================ */
.has-suggest { position:relative; }
.geo-suggest { position:absolute; top:calc(100% + 6px); left:0; z-index:60; margin:0; padding:5px; list-style:none;
  min-width:min(260px,100%); max-width:340px; max-height:270px; overflow:auto;
  background:var(--dark2); border:1px solid var(--line); border-radius:12px; box-shadow:0 22px 54px rgba(0,0,0,0.42); }
.geo-suggest[hidden] { display:none; }
.geo-opt { display:grid; grid-template-columns:1fr auto; align-items:baseline; column-gap:12px; row-gap:2px;
  padding:9px 11px; border-radius:8px; cursor:pointer; }
.geo-opt .geo-city { grid-column:1; grid-row:1; color:var(--cream); font-size:14px; font-weight:600; }
.geo-opt .geo-reg  { grid-column:1; grid-row:2; color:var(--muted); font-size:11.5px; letter-spacing:.03em; }
.geo-opt .geo-pop  { grid-column:2; grid-row:1 / span 2; align-self:center; color:var(--dim); font-size:11px; font-variant-numeric:tabular-nums; }
.geo-opt.on, .geo-opt:hover { background:var(--accent-soft); }
.geo-opt.on .geo-city, .geo-opt:hover .geo-city { color:var(--gold); }

/* ============================================================
   FREE FEATURE BANNER — "the moon of your date" lifted above the
   read-out grid and highlighted as the flagship free tool.
   ============================================================ */
.st-feature { position:relative; overflow:hidden; display:grid; grid-template-columns:auto 1fr auto; align-items:center;
  gap:30px; margin:0 0 22px; padding:26px 32px; border-radius:20px;
  background:linear-gradient(118deg, var(--accent-soft), transparent 58%), var(--dark2);
  border:1px solid rgba(52,211,153,0.45); box-shadow:0 20px 50px rgba(0,0,0,0.28); }
.st-feature-glow { position:absolute; inset:auto -40px -80px auto; width:260px; height:260px; pointer-events:none;
  background:radial-gradient(circle, rgba(52,211,153,0.22), transparent 68%); }
.st-feature-disc { position:relative; width:90px; height:90px; flex:none; filter:drop-shadow(0 8px 22px rgba(0,0,0,0.5)); }
.st-feature-disc .moon-svg { display:block; width:100%; height:100%; }
.st-feature-copy { position:relative; }
.st-feature-badge { display:inline-block; font-family:var(--font-body); font-weight:700; font-size:10px; letter-spacing:.15em;
  text-transform:uppercase; color:var(--gold); margin-bottom:9px; }
.st-feature h3 { font-family:var(--font-serif); font-weight:300; font-size:clamp(21px,2.6vw,28px); color:var(--cream); margin:0 0 7px; line-height:1.1; }
.st-feature h3 em { font-style:italic; color:var(--gold); }
.st-feature p { color:var(--muted); font-size:13.5px; line-height:1.55; margin:0; max-width:660px; }
.st-feature-act { position:relative; display:flex; flex-direction:column; align-items:flex-end; gap:9px; }
.st-feature-fine { font-size:11px; color:var(--dim); letter-spacing:.02em; }
.btn-lg { padding:14px 26px; font-size:15px; border-radius:28px; }
@media (max-width:760px){
  .st-feature { grid-template-columns:1fr; text-align:center; gap:16px; padding:24px 22px; }
  .st-feature-disc { margin:0 auto; }
  .st-feature-act { align-items:center; }
  .st-feature p { margin:0 auto; }
}

/* ============================================================
   PRODUCT CARDS — scientific-instrument panels, one identity per
   family. --fam drives the accent stripe, hover edge, tab marker
   and famtag; a per-TYPE motif on the well distinguishes at a glance
   (calendar grid · data-sheet dots · poster mat).
   ============================================================ */
.pcard { --fam: var(--accent); }
.pcard[data-fam="almanac"]     { --fam:#c98a2b; }
.pcard[data-fam="infographic"] { --fam:#9d78d0; }
.pcard[data-fam="print"]       { --fam:#2fa588; }
.pcard[data-fam="calendar"]    { --fam:#3f9e6e; }
.pcard[data-fam="agenda"]      { --fam:#10a06f; }
.pcard[data-fam="planner"]     { --fam:#12b07a; }
.pcard[data-fam="journal"]     { --fam:#7d8a80; }
.pcard[data-fam="bundle"]      { --fam:var(--gold); }
html[data-theme="night"] .pcard[data-fam="almanac"]     { --fam:#e0b25a; }
html[data-theme="night"] .pcard[data-fam="infographic"] { --fam:#c3a9e0; }
html[data-theme="night"] .pcard[data-fam="print"]       { --fam:#6ee7b7; }
html[data-theme="night"] .pcard[data-fam="calendar"]    { --fam:#8fd6b0; }
html[data-theme="night"] .pcard[data-fam="journal"]     { --fam:#9aa8a0; }

.pcard::before { background:linear-gradient(to right, transparent, var(--fam), transparent) !important; opacity:.5; }
.pcard:hover::before { opacity:1; }
.pcard:hover { border-color:var(--fam) !important; }
.pcard .famtag { color:var(--fam) !important; }
/* instrument tab-marker at the well/body seam */
.pcard .body { position:relative; }
.pcard .body::before { content:""; position:absolute; top:-1px; left:0; width:46px; height:2px; background:var(--fam); }
/* mono, tabular read-out feel for the spec line */
.pcard .meta { font-variant-numeric:tabular-nums; letter-spacing:.01em; }

/* per-TYPE motif overlay on the well (below the labels, above the art) */
.pcard .well::before { content:""; position:absolute; inset:0; z-index:2; pointer-events:none; opacity:.55; }
.pcard[data-fam="calendar"] .well::before {
  background:
    repeating-linear-gradient(0deg,  rgba(143,214,176,0.22) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(143,214,176,0.22) 0 1px, transparent 1px 20px); }
.pcard[data-fam="infographic"] .well::before {
  background:radial-gradient(rgba(157,120,208,0.40) 1px, transparent 1.5px); background-size:13px 13px; }
.pcard[data-fam="print"] .well::before {
  box-shadow: inset 0 0 0 7px rgba(11,32,25,0.5), inset 0 0 0 8px var(--fam); opacity:.6; }

/* ============================================================
   4-CHANGE SET — section dividers · featured showcase see-alls ·
   category pages (hero + static menu) · product-page context.
   ============================================================ */

/* ---- Change 2: subtle ~0.5px section divider ---- */
.section-divider {
  height: 1px; max-width: 1160px; margin: 4px auto; opacity: .7;
  transform: scaleY(.5); transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--line) 14%, var(--line) 86%, transparent);
}

/* ---- Change 4 (home): "See all" links on each featured shelf ---- */
.shelf-titlebar { justify-content: space-between; }
.shelf-seeall {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); text-decoration: none; white-space: nowrap; flex: none;
  margin-right: 10px;   /* breathing room from the right margin */
  transition: color .15s ease, transform .15s ease;
}
.shelf-seeall:hover { color: var(--burgundy-light); transform: translateX(2px); }
.shelf-more {
  display: flex; width: fit-content; margin: 24px auto 6px; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 24px; padding: 11px 26px;
  background: var(--accent-soft);
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.shelf-more:hover { background: var(--accent); color: var(--dark); transform: translateY(-1px); }
.shelf-more span { transition: transform .15s ease; }
.shelf-more:hover span { transform: translateX(3px); }
@media (max-width:520px){ .shelf-seeall { font-size:11.5px; } }

/* ---- subcategory bands inside a category listing (organisation only) ---- */
.subcat { margin: 0 0 38px; }
.subcat-head { display:flex; align-items:baseline; gap:12px; margin:0 0 18px; padding-bottom:9px; border-bottom:1px solid var(--line); }
.subcat-title { font-family:var(--font-serif); font-weight:400; font-size:20px; color:var(--cream); }
.subcat-count { font-size:11px; font-weight:700; letter-spacing:.08em; color:var(--dim); }

/* ---- cross-shelf / featured marquee (category listing + product page) ---- */
.crosssell { margin-top: 10px; padding: 34px 0 6px; border-top: 1px solid var(--line); }
.pv-featured { margin-top: 34px; }
.movecar .rail-title { margin-bottom: 14px; }
.movecar-vp {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.movecar-track { display: flex; width: max-content; animation: movecar 42s linear infinite; }
.movecar:hover .movecar-track, .movecar:focus-within .movecar-track { animation-play-state: paused; }
.movecar-track .minicard { width: 210px; flex: 0 0 210px; margin-right: 16px; }
@keyframes movecar { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .movecar-track { animation: none; }
  .movecar-vp { overflow-x: auto; }
}

/* ---- Change 4 (category page): the larger hero header ---- */
.cat-hero { background: var(--dark); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.cat-hero .motif {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px circle at 22% 30%, rgba(4,120,87,0.16), transparent 60%),
    radial-gradient(460px circle at 92% 12%, rgba(52,211,153,0.08), transparent 58%);
}
.cat-hero .wrap { position: relative; z-index: 1; padding: 34px 24px 26px; }
.cat-hero-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--burgundy);
}
.cat-hero h1 {
  font-family: var(--font-serif); font-weight: 300; font-size: clamp(26px,3.8vw,38px);
  line-height: 1.08; margin: 8px 0 0; max-width: none; color: var(--cream);
}
.cat-hero-desc { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: none; margin: 12px 0 0; }
.cat-hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.cat-hero-count {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--soft);
  border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px;
}
.cat-hero-back { font-size: 13px; color: var(--faint); text-decoration: none; }
.cat-hero-back:hover { color: var(--cream); }

/* ---- static category menu (product page + category page) ---- */
.catmenu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--dark2); }
.catmenu .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.catmenu-lab {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
}
.catmenu-row { display: flex; gap: 8px; flex-wrap: wrap; }
.catmenu-link {
  font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted);
  text-decoration: none; border: 1px solid var(--line); border-radius: 20px; padding: 7px 14px;
  background: transparent; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.catmenu-link:hover { border-color: var(--accent); color: var(--cream); }
.catmenu-link.on { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="day"] .catmenu-link.on { color: #fff; }
@media (max-width:640px){ .catmenu .wrap { gap: 12px; } .catmenu-lab { width: 100%; } }

/* the category page's own listing sits directly under the hero/menu */
.cat-grid { margin-top: 30px; }

/* ---- Change 3: the section named above the product ---- */
.pv-cat {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  text-decoration: none; align-self: flex-start;
}
.pv-cat-lab {
  font-family: var(--font-serif); font-size: 15px; font-weight: 600; letter-spacing: .02em;
  color: var(--cream);
  border-left: 3px solid var(--accent); padding-left: 11px;
}
.pv-cat-go {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); opacity: 0; transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.pv-cat:hover .pv-cat-go { opacity: 1; transform: translateX(0); }
.pv-cat:hover .pv-cat-lab { color: var(--accent); }
.pv-showcase { display: flex; flex-direction: column; }

.pv-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.pv-related-all {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent); text-decoration: none;
}
.pv-related-all:hover { color: var(--burgundy-light); }
.pv-related .catmenu { margin-top: 30px; }
/* per-product page — the category menu reads as a solid brand-green band */
.pv-related .catmenu { background: #065F46; border-color: transparent; }
.pv-related .catmenu-lab { color: rgba(255,255,255,0.75); }
.pv-related .catmenu-link { color: #fff; border-color: rgba(255,255,255,0.34); background: transparent; }
.pv-related .catmenu-link:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.14); }
.pv-related .catmenu-link.on { color: #065F46; background: #fff; border-color: #fff; }
html[data-theme="day"] .pv-related .catmenu-link.on { color: #065F46; }
