/* The Karma — deep navy, subtle gold, calm and readable.
   Mobile-first. All interactive states have visible focus. */

:root {
  --navy-900: #070c1c;
  --navy-800: #0b1226;
  --navy-700: #111a35;
  --navy-600: #182444;
  --navy-500: #223055;
  --gold-400: #d9b45f;
  --gold-300: #e8cd8c;
  --gold-600: #a8842f;
  --ink: #f2f4fb;
  --ink-dim: #b8c0d6;
  --ink-faint: #8590ac;
  --line: rgba(217, 180, 95, 0.22);
  --line-soft: rgba(255, 255, 255, 0.09);
  --danger: #ff9a8b;
  --ok: #8fd6a8;
  --radius: 14px;
  --radius-sm: 9px;
  --shell: min(1120px, 100% - 2rem);
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Palatino, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 78% -12%, rgba(217, 180, 95, 0.13), transparent 62%),
    radial-gradient(820px 520px at 8% 4%, rgba(64, 96, 190, 0.16), transparent 60%),
    var(--navy-900);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
p { margin: 0 0 1rem; }
a { color: var(--gold-300); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-400); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-400); color: var(--navy-900); padding: 0.7rem 1.1rem; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 12, 28, 0.93);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold-400), #7d6320 45%, var(--gold-300) 75%, var(--gold-400));
  box-shadow: inset 0 0 0 3px var(--navy-900), 0 0 18px rgba(217, 180, 95, 0.35);
}
.brand small { display: block; font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--ink-faint); }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.86rem; }
.site-nav a { color: var(--ink-dim); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--gold-300); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* ---------- hero ---------- */

.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-300);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--gold-600); }
.hero p.lead { font-size: clamp(1rem, 2.1vw, 1.15rem); color: var(--ink-dim); max-width: 60ch; }
.hero .sinhala { font-family: var(--serif); color: var(--gold-300); font-size: 1.05rem; letter-spacing: 0.04em; }

/* ---------- cards & panels ---------- */

.panel {
  background: linear-gradient(168deg, rgba(24, 36, 68, 0.86), rgba(11, 18, 38, 0.94));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.15rem, 3vw, 1.9rem);
}
.panel + .panel { margin-top: 1.25rem; }
.panel-gold { border-color: var(--line); box-shadow: 0 0 0 1px rgba(217, 180, 95, 0.07), 0 18px 50px -30px rgba(0, 0, 0, 0.9); }

section { padding: 1.5rem 0; }
section[id] { scroll-margin-top: 88px; }

/* ---------- forms ---------- */

.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
label > input, label > select { margin-top: 0.4rem; }

input[type='text'], input[type='date'], input[type='time'], input[type='number'], input[type='search'], select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: rgba(7, 12, 28, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  text-transform: none;
  letter-spacing: normal;
}
input:hover, select:hover { border-color: rgba(217, 180, 95, 0.35); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-400) 50%), linear-gradient(135deg, var(--gold-400) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
option { background: var(--navy-800); color: var(--ink); }

.field-note { display: block; margin-top: 0.45rem; font-size: 0.78rem; line-height: 1.5; letter-spacing: normal; text-transform: none; font-weight: 400; color: var(--ink-faint); }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; text-transform: none; letter-spacing: normal; font-size: 0.85rem; font-weight: 400; color: var(--ink-dim); line-height: 1.55; }
.consent input[type='checkbox'] { width: 1.1rem; height: 1.1rem; margin: 0.2rem 0 0; flex: 0 0 auto; accent-color: var(--gold-400); }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy-900);
  background: linear-gradient(150deg, var(--gold-300), var(--gold-600));
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
button:hover:not(:disabled), .button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
button.ghost, .button.ghost { background: transparent; color: var(--gold-300); border: 1px solid var(--line); }
button.ghost:hover, .button.ghost:hover { background: rgba(217, 180, 95, 0.09); color: var(--gold-400); }

[role='alert'] { color: var(--danger); font-size: 0.88rem; margin: 0.75rem 0 0; min-height: 1.2em; }

/* ---------- place autocomplete ---------- */

.place-field { position: relative; }
.place-results {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px);
  margin: 0; padding: 0.3rem; list-style: none; max-height: 17rem; overflow-y: auto;
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.95);
}
.place-results:empty, .place-results[hidden] { display: none; }
.place-results li { padding: 0.55rem 0.7rem; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
.place-results li[aria-selected='true'], .place-results li:hover { background: rgba(217, 180, 95, 0.16); }
.place-results .zone { display: block; font-size: 0.74rem; color: var(--ink-faint); }

.resolved-place {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; align-items: baseline;
  margin-top: 0.6rem; padding: 0.6rem 0.8rem;
  font-size: 0.8rem; color: var(--ink-dim);
  background: rgba(217, 180, 95, 0.07); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.resolved-place b { color: var(--gold-300); font-weight: 600; }

details.advanced { margin-top: 0.5rem; }
details.advanced summary { cursor: pointer; font-size: 0.82rem; color: var(--gold-300); padding: 0.35rem 0; }
details.advanced[open] summary { margin-bottom: 0.8rem; }

/* ---------- charts ---------- */

.chart-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.chart-styles { display: inline-flex; padding: 3px; gap: 3px; background: rgba(7, 12, 28, 0.7); border: 1px solid var(--line-soft); border-radius: 999px; }
.chart-styles button {
  padding: 0.4rem 0.95rem; font-size: 0.8rem; border-radius: 999px;
  background: transparent; color: var(--ink-dim); font-weight: 500;
}
.chart-styles button[aria-pressed='true'] { background: var(--gold-400); color: var(--navy-900); font-weight: 600; }

.chart-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .chart-layout { grid-template-columns: 1fr; } }

.chart-frame { width: 100%; max-width: 520px; margin-inline: auto; }
.chart-frame svg { width: 100%; height: auto; display: block; }
.chart-frame .cell-bg { fill: rgba(255, 255, 255, 0.022); }
.chart-frame .cell-bg.lagna { fill: rgba(217, 180, 95, 0.13); }
.chart-frame .grid-line { stroke: var(--line); stroke-width: 1.1; fill: none; }
/* Font sizes here are SVG user units on a 100-unit viewBox, i.e. percentages
   of the chart's rendered width — not screen pixels. */
.chart-frame .sign-label { fill: var(--ink-faint); font-size: 2.5px; font-family: var(--sans); letter-spacing: 0.02em; }
.chart-frame .house-num { fill: var(--gold-600); font-size: 2.4px; font-family: var(--mono); }
.chart-frame .graha { fill: var(--ink); font-size: 3.2px; font-family: var(--sans); font-weight: 600; }
.chart-frame .graha.retro { fill: var(--gold-300); }
.chart-frame .retro-mark { fill: var(--gold-400); font-size: 2px; font-family: var(--sans); font-weight: 700; }
.chart-frame .lagna-mark { fill: var(--gold-400); font-size: 2.5px; font-weight: 700; font-family: var(--sans); }
.chart-frame .centre-title { fill: var(--ink-faint); font-size: 2.4px; font-family: var(--sans); letter-spacing: 0.12em; }
.chart-frame .centre-lagna { fill: var(--gold-300); font-size: 4px; font-family: var(--serif); font-weight: 600; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 33rem; }
caption { text-align: left; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 0.6rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: 0.82rem; white-space: nowrap; }
tbody tr:hover { background: rgba(255, 255, 255, 0.03); }

/* ---------- report ---------- */

.report-layout { display: grid; gap: 2rem; grid-template-columns: 230px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .report-layout { grid-template-columns: 1fr; } }

.report-nav { position: sticky; top: 76px; font-size: 0.85rem; }
@media (max-width: 900px) { .report-nav { position: static; } }
.report-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: nav; }
.report-nav li { counter-increment: nav; }
.report-nav a {
  display: block; padding: 0.4rem 0.6rem 0.4rem 2rem; position: relative;
  color: var(--ink-dim); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 6px 6px 0;
}
.report-nav a::before { content: counter(nav); position: absolute; left: 0.6rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); }
.report-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.report-nav a.active { color: var(--gold-300); border-left-color: var(--gold-400); background: rgba(217, 180, 95, 0.08); }

.report-section { scroll-margin-top: 90px; padding-bottom: 2rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 2rem; }
.report-section:last-of-type { border-bottom: none; }
.report-section > .section-kicker { font-size: 0.75rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 0.35rem; }
.report-section h3.sub { margin-top: 1.75rem; padding-top: 0.9rem; border-top: 1px dashed var(--line-soft); color: var(--gold-300); font-size: 1.1rem; }
.report-section p { max-width: 68ch; color: var(--ink-dim); }
.report-section ul { max-width: 68ch; color: var(--ink-dim); padding-left: 1.2rem; }
.report-section li { margin-bottom: 0.45rem; }

.callout {
  margin: 1.1rem 0; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); border-left: 3px solid var(--gold-600);
  background: rgba(217, 180, 95, 0.06); font-size: 0.88rem; color: var(--ink-dim); max-width: 68ch;
}
.callout.prompt { border-left-color: #6f8fd6; background: rgba(111, 143, 214, 0.09); font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.callout strong { color: var(--gold-300); }

/* ---------- offer ---------- */

.offer { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }
.offer .price { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-300); line-height: 1; }
.offer .price small { font-size: 0.85rem; font-family: var(--sans); color: var(--ink-faint); letter-spacing: 0.05em; }
.tick { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--ink-dim); }
.tick li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; }
.tick li::before { content: '·'; position: absolute; left: 0.4rem; color: var(--gold-400); font-size: 1.5rem; line-height: 0.9; }
.vip-entry { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); }

.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); color: var(--gold-300); }

/* ---------- disclaimer & footer ---------- */

.disclaimer {
  margin: 2rem 0; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft); background: rgba(7, 12, 28, 0.55);
  font-size: 0.82rem; line-height: 1.6; color: var(--ink-faint);
}

.site-footer { margin-top: 3rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line-soft); font-size: 0.83rem; color: var(--ink-faint); }
.site-footer .shell { display: grid; gap: 1.5rem; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 720px) { .site-footer .shell { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }

/* ---------- legal pages ---------- */

.legal { max-width: 72ch; padding-bottom: 3rem; }
.legal h2 { margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-dim); }
.legal .updated { font-size: 0.8rem; color: var(--ink-faint); }
.legal .todo { border-left: 3px solid var(--danger); background: rgba(255, 154, 139, 0.07); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.86rem; }

.loading { display: inline-block; width: 1em; height: 1em; border: 2px solid rgba(7,12,28,0.35); border-top-color: var(--navy-900); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .report-nav, .offer, button { display: none !important; }
  .panel { border: 1px solid #ccc; background: none; }
  .report-section p, .report-section ul, .callout { color: #222; }
  a { color: #111; }
}

/* ==========================================================================
   Celestial imagery — added with the visual redesign.
   All artwork is original SVG generated by scripts/build-art.mjs.
   ========================================================================== */

body {
  background:
    radial-gradient(1100px 640px at 78% -12%, rgba(217, 180, 95, 0.13), transparent 62%),
    radial-gradient(820px 520px at 8% 4%, rgba(64, 96, 190, 0.16), transparent 60%),
    url('/art/starfield.svg') center / cover no-repeat,
    var(--navy-900);
  /* The starfield is fixed so it reads as depth behind the page rather than
     as a banner that ends partway down. */
  background-attachment: scroll, scroll, fixed, fixed;
}

/* Stars are lovely behind a headline and distracting behind a paragraph, so
   fade them out down the page. Sits above the background, below all content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(7, 12, 28, 0) 0,
    rgba(7, 12, 28, 0.45) 34%,
    rgba(7, 12, 28, 0.78) 72%,
    rgba(7, 12, 28, 0.88) 100%
  );
}

/* ---------- hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Art first, then the words — the wheel is what tells a visitor within a
     second what kind of site this is. */
  .hero-visual { order: -1; width: min(340px, 82%); margin-inline: auto; }
}

.hero-visual {
  position: relative;
  /* The wheel alone defines the height. The orbit ring and the halo are taken
     out of flow so that being wider than the wheel cannot stretch the box —
     sizing them as grid rows clipped the wheel's lower edge on narrow screens. */
}

.hero-visual .wheel {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(217, 180, 95, 0.22));
  animation: breathe 14s ease-in-out infinite;
}

.hero-visual .orbits {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 128%;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.75;
  animation: spin-slow-centred 150s linear infinite;
}

/* A soft halo behind the wheel so it sits in the page rather than on it. */
.hero-visual::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 78%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 180, 95, 0.16), transparent 68%);
  filter: blur(18px);
}

/* The orbit ring is wider than the wheel by design; clip it at the section so
   it never widens the page. */
.hero { overflow: hidden; }

@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-slow-centred {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.018); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual .wheel, .hero-visual .orbits { animation: none; }
}

/* ---------- credential strip ---------- */

.credentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}
@media (max-width: 720px) { .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.credentials div {
  padding: 1rem 1.1rem;
  background: rgba(11, 18, 38, 0.82);
}
.credentials b {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold-300);
  line-height: 1.15;
}
.credentials span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- section ornament ---------- */

.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { color: var(--ink-dim); max-width: 62ch; margin-inline: auto; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--gold-400);
}
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  width: clamp(30px, 12vw, 90px);
  background: linear-gradient(90deg, transparent, var(--gold-600));
}
.ornament::after { background: linear-gradient(90deg, var(--gold-600), transparent); }
.ornament span { font-size: 1rem; line-height: 1; opacity: 0.9; }

/* ---------- medallion cards ---------- */

.medallions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.medallion {
  position: relative;
  padding: 1.9rem 1.25rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(168deg, rgba(24, 36, 68, 0.7), rgba(11, 18, 38, 0.9));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.medallion:hover { border-color: var(--line); transform: translateY(-3px); }

.medallion .disc {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(217, 180, 95, 0.22), rgba(7, 12, 28, 0.9));
  box-shadow: 0 0 24px -8px rgba(217, 180, 95, 0.5);
}
.medallion .disc svg { width: 30px; height: 30px; stroke: var(--gold-300); fill: none; stroke-width: 1.4; }
.medallion h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.medallion p { font-size: 0.85rem; color: var(--ink-dim); margin: 0; }

/* ---------- rashi strip ---------- */

.rashi-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (max-width: 900px) { .rashi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rashi-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rashi-tile {
  padding: 1rem 0.6rem;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 38, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rashi-tile:hover { border-color: var(--line); background: rgba(217, 180, 95, 0.06); }
.rashi-tile .sym {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--gold-300);
  margin-bottom: 0.5rem;
  font-family: 'Apple Symbols', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}
.rashi-tile b { display: block; font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.rashi-tile span { display: block; font-size: 0.72rem; color: var(--ink-faint); }
.rashi-tile span[lang='si'] { color: var(--gold-600); font-size: 0.8rem; }

/* ---------- offer panel with orbit backdrop ---------- */

.offer-panel { position: relative; overflow: hidden; }
.offer-panel .orbit-bg {
  position: absolute;
  right: -12%;
  top: 50%;
  width: min(480px, 60%);
  transform: translateY(-50%);
  opacity: 0.32;
  pointer-events: none;
  animation: spin-slow 200s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .offer-panel .orbit-bg { animation: none; } }
@media (max-width: 760px) { .offer-panel .orbit-bg { display: none; } }
.offer-panel > * { position: relative; }

/* ---------- report page watermark ---------- */

.report-hero { position: relative; }
.report-hero .watermark {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 320px;
  opacity: 0.13;
  pointer-events: none;
}
@media (max-width: 900px) { .report-hero .watermark { display: none; } }

/* ---------- chart panel gets a faint wheel behind it ---------- */

.chart-frame { position: relative; }
