/* Ленорман: night sky from the "Луна" card, parchment of the card frames, candle gold. */
:root {
  --ink: #131A2F;        /* page */
  --night: #1C2541;      /* raised surfaces */
  --mist: #2E3858;       /* lines */
  --parchment: #EFE4CC;  /* main text, card frames */
  --haze: #A3A6BF;       /* secondary text */
  --gold: #C8A35F;       /* accent */
  --gold-dim: rgba(200, 163, 95, .14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --col: 36rem;
  --pad: 1.25rem;
  --r-card: 6px;
  --r-ui: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--parchment);
  background-color: var(--ink);
  /* a sparse, fixed starfield */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(239,228,204,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 9%, rgba(239,228,204,.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 31%, rgba(200,163,95,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 31% 47%, rgba(239,228,204,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 58%, rgba(239,228,204,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 72%, rgba(200,163,95,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 86%, rgba(239,228,204,.35) 50%, transparent 51%),
    radial-gradient(120% 60% at 50% -10%, #22305A 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .005em;
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
h2 { font-size: clamp(1.9rem, 6.5vw, 2.4rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--haze); }
.small { font-size: .875rem; line-height: 1.5; }

/* ---------------------------------------------------------- top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem var(--pad);
  padding-top: max(.75rem, env(safe-area-inset-top));
  background: rgba(19, 26, 47, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 56, 88, .6);
}
.brand {
  display: flex; align-items: center; gap: .5rem;
  font: 500 1.6rem/1 var(--serif);
  color: var(--parchment); text-decoration: none;
}
.brand-mark { width: 1.2rem; height: 1.2rem; color: var(--gold); }
.account-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--mist); border-radius: 999px;
  background: var(--night); cursor: pointer; font-size: .9375rem;
}
.account-btn .coin {
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(200,163,95,.7);
}

/* ---------------------------------------------------------- layout */
main { padding: 0 var(--pad); }
.hero, .block, .footer { max-width: var(--col); margin: 0 auto; }
.block { padding: 3.5rem 0 1rem; scroll-margin-top: 4rem; }
.block + .block { border-top: 1px solid var(--mist); margin-top: 2rem; }

/* ---------------------------------------------------------- hero */
.hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.fan {
  position: relative; height: 13rem; margin: 0 auto 1.75rem; width: 14rem;
}
.fan-card {
  position: absolute; left: 50%; bottom: 0;
  width: 6.4rem; height: auto; aspect-ratio: 188 / 338;
  margin-left: -3.2rem;
  transform-origin: 50% 120%;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  animation: fan-open 1.1s cubic-bezier(.2,.7,.2,1) .2s both;
}
.fan-card:nth-child(1) { --a: -14deg; }
.fan-card:nth-child(2) { --a: 0deg; z-index: 1; }
.fan-card:nth-child(3) { --a: 14deg; }
@keyframes fan-open {
  from { transform: rotate(0deg) translateY(10px); opacity: 0; }
  to   { transform: rotate(var(--a)) translateY(0); opacity: 1; }
}
.lead { color: var(--haze); max-width: 30rem; margin: 0 auto 1.75rem; font-size: 1.0625rem; }
.hero-actions { display: grid; gap: .75rem; }
@media (min-width: 30rem) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: 0 1.4rem;
  border-radius: var(--r-ui); border: 1px solid transparent;
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.btn-gold { background: var(--gold); color: #1A1A24; }
.btn-gold:hover { background: #D4B272; }
.btn-ghost { background: transparent; color: var(--parchment); border-color: var(--mist); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-wide { width: 100%; margin-top: 1.25rem; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: default; }
.link-btn {
  background: none; border: 0; padding: .5rem 0; margin-top: 1.5rem;
  color: var(--haze); text-decoration: underline; cursor: pointer;
}

/* ---------------------------------------------------------- choices */
.daily-themes, .spreads { display: grid; gap: .5rem; margin-top: 1.25rem; }
.option {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; padding: .85rem 1rem; text-align: left;
  background: var(--night); border: 1px solid var(--mist); border-radius: var(--r-ui);
  cursor: pointer;
}
.option[aria-checked="true"] { border-color: var(--gold); background: #232B45; }
.option[aria-checked="true"] .option-title { color: var(--gold); }
.option-body { flex: 1; min-width: 0; }
.option-title { display: block; font-weight: 500; }
.option-sub { display: block; color: var(--haze); font-size: .875rem; line-height: 1.4; }
.option-price { color: var(--gold); font-size: .875rem; white-space: nowrap; }

/* small glyph of the spread layout: one dot per card */
.glyph {
  flex: none; width: 2.75rem; height: 2.25rem;
  display: grid; gap: 2px; place-content: center;
}
.glyph i { display: block; background: var(--parchment); opacity: .8; border-radius: 1px; }
.glyph[data-n="3"] { grid-template-columns: repeat(3, 8px); }
.glyph[data-n="3"] i { height: 14px; }
.glyph[data-n="5"] { grid-template-columns: repeat(5, 6px); }
.glyph[data-n="5"] i { height: 11px; }
.glyph[data-n="9"] { grid-template-columns: repeat(3, 7px); }
.glyph[data-n="9"] i { height: 9px; }
.glyph[data-n="36"] { grid-template-columns: repeat(9, 3px); gap: 1.5px; }
.glyph[data-n="36"] i { height: 5px; }
.glyph[data-n="1"] { grid-template-columns: 11px; }
.glyph[data-n="1"] i { height: 19px; background: var(--gold); opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip {
  min-height: 2.5rem; padding: 0 1rem;
  border: 1px solid var(--mist); border-radius: 999px;
  background: transparent; cursor: pointer; font-size: .9375rem;
}
.chip[aria-checked="true"] { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------- fields */
.field { margin-top: 1.25rem; }
.field label, .field .label { display: block; margin-bottom: .4rem; font-size: .9375rem; color: var(--haze); }
textarea, input {
  width: 100%; padding: .8rem .9rem;
  background: var(--night); border: 1px solid var(--mist); border-radius: var(--r-ui);
  font-size: 1rem; /* 16px: no zoom on iOS */
  resize: vertical;
}
textarea::placeholder, input::placeholder { color: #6F7493; }
textarea:focus, input:focus { outline: none; border-color: var(--gold); }
.field-foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; }
.counter { color: var(--haze); white-space: nowrap; }
.counter.over { color: #E59A8A; }
.row { display: flex; gap: .5rem; }
.row input { flex: 1; }

/* ---------------------------------------------------------- cards */
.card3d {
  position: relative; aspect-ratio: 188 / 338; perspective: 900px;
  border: 0; padding: 0; background: none; cursor: pointer; width: 100%;
}
.card3d-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3,.7,.2,1);
}
.card3d.open .card3d-inner { transform: rotateY(180deg); }
.card3d-face, .card3d-back {
  position: absolute; inset: 0; border-radius: var(--r-card); overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.card3d-back svg { width: 100%; height: 100%; }
.card3d-face { transform: rotateY(180deg); background: var(--parchment); }
.card3d-face img { width: 100%; height: 100%; object-fit: cover; }
.card3d.dealt { animation: deal .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes deal {
  from { transform: translateY(-24px) scale(.92); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ---------------------------------------------------------- daily result */
.daily-result { margin-top: 2rem; display: grid; gap: 1.5rem; }
.daily-card-slot { width: min(55%, 12rem); margin: 0 auto; }
.daily-text h3, .reading-text h3 {
  font: 500 1.6rem/1.2 var(--serif); margin: 0 0 .75rem; color: var(--parchment);
}
.upsell {
  padding: 1.25rem; border: 1px solid var(--mist); border-radius: var(--r-ui);
}
.upsell-title { font: 500 1.35rem/1.2 var(--serif); margin-bottom: .4rem; }
.upsell .btn-wide { margin-top: .5rem; }

/* ---------------------------------------------------------- reading */
.reading { margin-top: 2.25rem; }
.reading-q { font: italic 500 1.35rem/1.35 var(--serif); text-align: center; margin-bottom: 1.25rem; }
.table { display: grid; gap: .6rem .5rem; margin: 0 auto; }
.table[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 22rem; }
.table[data-n="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem .35rem; }
.table[data-n="5"] .slot-pos { font-size: .6875rem; }
.table[data-n="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 20rem; }
.table[data-n="36"] { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px 3px; }
.table[data-n="36"] .card3d-face, .table[data-n="36"] .card3d-back { border-radius: 2px; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.slot { display: grid; gap: .35rem; align-content: start; }
.slot-pos { font-size: .75rem; line-height: 1.25; color: var(--haze); text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.table[data-n="36"] .slot-pos, .table[data-n="9"] .slot-pos { display: none; }
.status { text-align: center; color: var(--haze); margin: 1.25rem 0 0; min-height: 1.6em; }
.status.error { color: #E59A8A; }
.reading-text { margin-top: 1.5rem; }
.reading-text p { margin-bottom: .9rem; }
.reading-text i, .daily-text i { color: var(--haze); }
.reading-text b, .daily-text b { color: var(--parchment); font-weight: 600; }
.reading-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.5rem; }
.reading-actions #againBtn { grid-column: 1 / -1; }
.followup { margin-top: 1.5rem; padding-top: .5rem; border-top: 1px solid var(--mist); }
.demo-note {
  font-size: .8125rem; color: var(--haze);
  border-left: 2px solid var(--gold); padding: .2rem 0 .2rem .75rem; margin-top: 1rem;
}

/* waiting dots */
.waiting { display: flex; gap: .4rem; justify-content: center; margin: 1rem 0; }
.dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--gold); animation: pulse 1.2s infinite ease-in-out; }
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------------------------------------------------------- packages */
.packages { list-style: none; padding: 0; margin: 1.25rem 0 1rem; border-top: 1px solid var(--mist); }
.package {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .25rem 1rem;
  padding: .9rem 0; border-bottom: 1px solid var(--mist);
}
.package-name { font: 500 1.35rem/1.2 var(--serif); }
.package-meta { grid-column: 1; color: var(--haze); font-size: .875rem; }
.package .btn { grid-row: 1 / span 2; grid-column: 2; min-height: 2.75rem; padding: 0 1.1rem; }
.package-save { color: var(--gold); }

/* ---------------------------------------------------------- faq */
.faq { margin-top: 1rem; }
.faq details { border-bottom: 1px solid var(--mist); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 1.4rem;
  width: .5rem; height: .5rem; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details p { color: var(--haze); }

/* ---------------------------------------------------------- articles */
.articles { list-style: none; padding: 0; margin: 1rem 0 0; }
.articles li { border-bottom: 1px solid var(--mist); }
.articles a {
  display: block; padding: .9rem 0; color: var(--parchment); text-decoration: none;
  font: 500 1.3rem/1.3 var(--serif);
}
.articles a:hover { color: var(--gold); }

/* ---------------------------------------------------------- footer */
.footer {
  padding: 3rem var(--pad) max(2rem, env(safe-area-inset-bottom));
  margin-top: 3rem; border-top: 1px solid var(--mist);
  font-size: .875rem; color: var(--haze);
}
.footer-links { display: grid; gap: .5rem; margin: 1.25rem 0; }
.footer-links a { color: var(--parchment); }
.footer-legal a { color: var(--haze); }

/* ---------------------------------------------------------- sheets */
dialog { color: var(--parchment); }
.sheet {
  width: 100%; max-width: 32rem; max-height: 88vh;
  margin: auto auto 0; padding: 0; border: 0;
  background: var(--night); border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--mist);
}
.sheet[open] { animation: sheet-up .28s cubic-bezier(.2,.7,.2,1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet::backdrop, .viewer::backdrop { background: rgba(8, 11, 22, .72); }
.sheet-body { position: relative; padding: 1.5rem var(--pad) max(1.75rem, env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 2rem; padding-right: 2.5rem; }
.sheet-close {
  position: absolute; top: .9rem; right: .9rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--mist); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer;
}
@media (min-width: 40rem) {
  .sheet { margin: auto; border-radius: 18px; border: 1px solid var(--mist); }
}

.tabs { display: flex; gap: .25rem; margin: .75rem 0 1.25rem; overflow-x: auto; border-bottom: 1px solid var(--mist); }
.tabs button {
  flex: 1 0 auto; padding: .6rem .35rem; font-size: .9375rem; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--haze); cursor: pointer; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--parchment); border-bottom-color: var(--gold); }

.balance-total { font: 500 3rem/1 var(--serif); }
.balance-total span { font: 400 1rem var(--sans); color: var(--haze); margin-left: .35rem; }
.kv { list-style: none; padding: 0; margin: 1rem 0; }
.kv li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--mist); font-size: .9375rem; }
.kv li span:first-child { color: var(--haze); }
.history-item {
  display: block; width: 100%; text-align: left; padding: .8rem 0;
  background: none; border: 0; border-bottom: 1px solid var(--mist); cursor: pointer;
}
.history-item small { display: block; color: var(--haze); }
.copy-box { display: flex; gap: .5rem; margin: .75rem 0; }
.copy-box input { flex: 1; font-size: .875rem; }

/* card viewer */
.viewer {
  border: 0; padding: 1.25rem; background: transparent; text-align: center;
  max-width: 22rem; width: 90vw;
}
.viewer img { width: 70%; margin: 0 auto 1rem; border-radius: var(--r-card); box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.viewer-name { font: 500 2rem/1.1 var(--serif); margin-bottom: .25rem; }
.viewer .sheet-close { position: static; margin: 0 0 .75rem auto; display: block; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  max-width: calc(100% - 2.5rem); padding: .75rem 1.1rem;
  background: var(--parchment); color: #1A1A24; border-radius: var(--r-ui);
  font-size: .9375rem; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- desktop */
@media (min-width: 48rem) {
  :root { --pad: 2rem; }
  .hero { padding-top: 4rem; }
  .fan { height: 16rem; width: 18rem; }
  .fan-card { width: 8rem; margin-left: -4rem; }
  .table[data-n="5"] { gap: .75rem .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- legal documents */
.doc { max-width: 44rem; margin: 0 auto; padding: 2.5rem var(--pad) 1rem; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.75rem); margin-bottom: .75rem; }
.doc h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.doc p, .doc li { color: #E4DAC3; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: .4rem; }
.doc-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: .9rem 0; border-block: 1px solid var(--mist); margin: 1.25rem 0 .5rem; font-size: .9375rem; }
.doc-nav a { color: var(--haze); }
.doc-nav a[aria-current] { color: var(--gold); }
.doc-table { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .9375rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--mist); }
.doc-table th { color: var(--haze); font-weight: 500; }
.doc-table td:last-child, .doc-table th:last-child { padding-right: 0; }
.doc-req { list-style: none; padding: 0 !important; }
.doc-page .footer { max-width: 44rem; }
@media (max-width: 30rem) {
  .doc-table { font-size: .875rem; }
}
a.account-btn { text-decoration: none; color: var(--parchment); }
@media (max-width: 37.5rem) {
  .doc-table.stack tr:first-child { display: none; }
  .doc-table.stack tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--mist); }
  .doc-table.stack td { display: block; border: 0; padding: .2rem 0; }
  .doc-table.stack td::before { content: attr(data-l); display: block; font-size: .8125rem; color: var(--haze); }
  .doc-table.stack td:first-child { font-weight: 500; color: var(--parchment); }
  .doc-table.stack td:first-child::before { display: none; }
}

.check { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0 .75rem; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; flex: none; margin: .1rem 0 0; accent-color: var(--gold); padding: 0; }
#loginGo[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.login-hint { margin-top: .6rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--haze); font-size: .875rem; margin: 1.5rem 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--mist); }
.code-input { font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.link-inline { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; cursor: pointer; font-size: inherit; }
.reading-for { text-align: center; color: var(--gold); font: italic 500 1.15rem/1.3 var(--serif); margin: 0 0 .35rem; }
.msg-error { color: #E59A8A; }

/* merged readings block */
.anchor { position: relative; top: -4rem; display: block; height: 0; }
.field-label { display: block; margin: 1.5rem 0 .1rem; font-size: .9375rem; color: var(--haze); }
.theme-q { font: italic 500 1.15rem/1.35 var(--serif); color: var(--parchment); margin: 1rem 0 0; }
.option[data-value="daily"] .option-price { color: var(--gold); }

/* ---------------------------------------------------------- articles */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.article-wrap { max-width: 42rem; margin: 0 auto; padding: 1.25rem var(--pad) 1rem; }
.article-wrap > h1, .article h1 { font-size: clamp(2.1rem, 8vw, 3rem); line-height: 1.08; margin: .5rem 0 .75rem; text-wrap: balance; }
.lead-left { font-size: 1.0625rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--haze); }
.breadcrumbs li + li::before { content: "›"; margin-right: .5rem; color: var(--mist); }
.breadcrumbs a { color: var(--haze); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--parchment); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

.article-search { position: relative; margin: 0 0 1.5rem; }
.article-search input { padding-left: 2.6rem; border-radius: 999px; min-height: 2.9rem; -webkit-appearance: none; appearance: none; }
.search-icon { position: absolute; left: .95rem; top: .8rem; width: 1.25rem; height: 1.25rem; color: var(--haze); pointer-events: none; }
.search-results { list-style: none; margin: .4rem 0 0; padding: .35rem; position: absolute; left: 0; right: 0; z-index: 5;
  background: var(--night); border: 1px solid var(--mist); border-radius: var(--r-ui); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
#allArticles ~ .search-results, .article-wrap > .article-search .search-results:only-child { position: static; }
.search-results a { display: block; padding: .65rem .7rem; border-radius: 8px; text-decoration: none; color: var(--parchment); }
.search-results a:hover, .search-results a:focus { background: #232B45; }
.sr-title { display: block; font-weight: 500; }
.sr-desc { display: block; font-size: .8125rem; color: var(--haze); line-height: 1.4; margin-top: .15rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { padding: .7rem; color: var(--haze); font-size: .9375rem; }

.article-meta { color: var(--haze); font-size: .875rem; margin-bottom: 1.25rem; }
.article-cover { margin: 0 0 1.5rem; aspect-ratio: 16 / 9; border-radius: var(--r-ui); overflow: hidden; background: var(--night); border: 1px solid var(--mist); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover.placeholder { display: grid; place-items: center;
  background: radial-gradient(60% 80% at 50% 30%, #24305A, var(--night)); }
.article-cover.placeholder svg { width: 3rem; height: 3rem; color: var(--gold); opacity: .55; }

.toc { border: 1px solid var(--mist); border-radius: var(--r-ui); padding: 1rem 1.1rem .6rem; margin: 0 0 2rem; }
.toc-title { font: 500 1.3rem/1.2 var(--serif); margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; color: var(--haze); }
.toc li { margin-bottom: .4rem; font-size: .9375rem; }
.toc a { color: var(--parchment); text-decoration: none; }
.toc a:hover { color: var(--gold); }

.article-text { font-size: 1.0625rem; line-height: 1.7; }
.article-text h2 { font-size: clamp(1.6rem, 6vw, 2rem); margin: 2.25rem 0 .75rem; scroll-margin-top: 4.5rem; }
.article-text h3 { font: 600 1.05rem/1.4 var(--sans); margin: 1.5rem 0 .5rem; }
.article-text p, .article-text li { color: #E4DAC3; }
.article-text ul, .article-text ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.article-text li { margin-bottom: .45rem; }
.article-text strong { color: var(--parchment); font-weight: 600; }
.article-text .note { border-left: 2px solid var(--gold); padding: .25rem 0 .25rem 1rem; margin: 1.25rem 0; }
.article-text .note p { margin: 0; color: var(--haze); }
.table-wrap { overflow-x: auto; margin: .5rem 0 1.25rem; }

.article-cta { margin: 2.5rem 0 1rem; padding: 1.4rem 1.25rem; border: 1px solid var(--gold); border-radius: var(--r-ui);
  background: radial-gradient(90% 120% at 50% 0%, rgba(200,163,95,.12), transparent 70%); text-align: center; }
.article-cta-title { font: 500 1.7rem/1.15 var(--serif); margin-bottom: .5rem; }
.article-cta .btn-wide { margin-top: .75rem; }

.related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--mist); }
.related h2 { font-size: 2rem; }
.article-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.article-card { display: block; padding: 1rem 1.1rem; background: var(--night); border: 1px solid var(--mist); border-radius: var(--r-ui); text-decoration: none; }
.article-card:hover { border-color: var(--gold); }
.article-card-title { display: block; font: 500 1.3rem/1.2 var(--serif); color: var(--parchment); }
.article-card-desc { display: block; margin-top: .35rem; font-size: .875rem; color: var(--haze); line-height: 1.45; }
@media (min-width: 40rem) { .related .article-list { grid-template-columns: 1fr 1fr; } }
.article-body .footer { max-width: 42rem; }
.all-articles { display: inline-block; margin-top: 1rem; }
.article-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 1rem; width: 1rem; cursor: pointer;
  background: linear-gradient(45deg, transparent 45%, var(--haze) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--haze) 45% 55%, transparent 55%); }

/* articles on wide screens: reading column + sticky contents on the right */
@media (min-width: 64rem) {
  .article-body .topbar, .article-body .footer { padding-left: 2rem; padding-right: 2rem; }
  .article-wrap { max-width: 68rem; padding-top: 2rem; }
  .article-wrap > .breadcrumbs, .article-wrap > .article-search, .article-wrap > h1, .article-wrap > .lead-left { max-width: 44rem; }
  .article { display: grid; grid-template-columns: minmax(0, 44rem) 18rem; column-gap: 4rem; align-items: start; }
  .article > * { grid-column: 1; }
  .article > .toc { grid-column: 2; grid-row: 1 / span 6; position: sticky; top: 5.5rem; margin: 0; }
  .article-cover { margin-bottom: 2rem; }
  .related { max-width: 44rem; }
  .related .article-list { grid-template-columns: 1fr 1fr; }
  #allArticles { grid-template-columns: 1fr 1fr; max-width: 68rem; }
  .article-wrap > .article-cta { max-width: 44rem; }
  .article-body .footer { max-width: 68rem; }
}

/* ---------------------------------------------------------- 36 cards hub */
.card-grid ol { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem .4rem; }
.card-grid a { display: block; text-decoration: none; color: var(--haze); text-align: center; }
.card-grid img { width: 100%; height: auto; aspect-ratio: 188 / 338; border-radius: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.card-grid span { display: block; font-size: .6875rem; line-height: 1.2; margin-top: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-grid a:hover span, .card-grid a:focus span { color: var(--gold); }
@media (min-width: 40rem) { .card-grid ol { grid-template-columns: repeat(9, minmax(0, 1fr)); } .card-grid span { font-size: .75rem; } }
.card-entry { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--mist); scroll-margin-top: 4.5rem; }
.card-entry-img { width: 100%; height: auto; border-radius: 5px; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.card-entry h3 { font: 500 1.6rem/1.1 var(--serif); margin: 0 0 .25rem; }
.card-entry-meta { font-size: .875rem; color: var(--gold); margin-bottom: .6rem; }
.card-entry-body p { margin-bottom: .5rem; font-size: 1rem; line-height: 1.6; }
.card-more { font-size: .9375rem; }
@media (min-width: 40rem) { .card-entry { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.5rem; } }
.card-grid span i { font-style: normal; }
@media (max-width: 39.99rem) { .card-grid span i { display: none; } .card-grid span { font-size: .75rem; } }

/* ---------------------------------------------------------- card pages */
.card-hero { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; align-items: start; margin-bottom: 1.75rem; }
.card-hero-img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.card-hero h1 { font-size: clamp(1.9rem, 7.5vw, 2.8rem); margin-top: 0; }
.card-facts { margin: .5rem 0 0; display: grid; gap: .35rem; font-size: .875rem; }
.card-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .5rem; }
.card-facts dt { color: var(--haze); }
.card-facts dd { margin: 0; color: var(--parchment); }
@media (max-width: 30rem) {
  .card-hero { grid-template-columns: 6rem minmax(0, 1fr); }
  .card-facts { grid-column: 1 / -1; }
  .card-hero > div { display: contents; }
  .card-hero h1 { grid-column: 2; grid-row: 1; align-self: center; }
  .card-facts div { grid-template-columns: 8rem minmax(0, 1fr); }
}
@media (min-width: 40rem) { .card-hero { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; } }
.combos td:first-child { white-space: nowrap; padding-right: 1rem; }
@media (max-width: 30rem) { .combos td:first-child { white-space: normal; width: 45%; } }
.article-cta .btn-ghost { margin-top: .5rem; }
.card-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; margin: 1.5rem 0 0; }
.card-pager a { color: var(--parchment); text-decoration: none; font: 500 1.15rem/1.2 var(--serif); }
.card-pager a span { display: block; font: 400 .75rem/1.4 var(--sans); color: var(--haze); }
.card-pager a[rel="next"] { text-align: right; }
.card-pager-all { font: 400 .875rem var(--sans) !important; color: var(--gold) !important; text-decoration: underline !important; }
.card-pager a:hover { color: var(--gold); }

/* equal-height cards in every list grid */
.article-list > li { display: flex; }
.article-list > li[hidden] { display: none !important; }
.article-card { flex: 1; display: flex; flex-direction: column; }

/* article cards with a cover thumbnail: side by side on phones, cover on top on wider screens */
.article-card.has-img { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .9rem; align-items: start; padding: .8rem; }
.article-card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--ink); }
.article-card.has-img .article-card-title { font-size: 1.15rem; }
.article-card.has-img .article-card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 40rem) {
  .article-card.has-img { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  .article-card.has-img .article-card-img { border-radius: 0; }
  .article-card.has-img .article-card-body { padding: 1rem 1.1rem 1.1rem; }
  .article-card.has-img .article-card-title { font-size: 1.3rem; }
}

/* cookie notice */
.cookie-note {
  position: fixed; z-index: 60; left: 50%; bottom: calc(.75rem + env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(calc(100% - 1.5rem), 34rem);
  display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem .8rem 1.1rem;
  background: var(--night); color: var(--parchment); border: 1px solid var(--mist); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font-size: .9rem; line-height: 1.45;
}
.cookie-note p { margin: 0; flex: 1; }
.cookie-note a { color: var(--gold); }
.cookie-note .btn { flex: none; min-height: 2.6rem; padding: 0 1.1rem; }
@media (max-width: 26rem) { .cookie-note { flex-direction: column; align-items: stretch; } }
