/* Eye of Light – design system */
:root {
  --night: #2A0610; --night-2: #3A0915; --night-3: #4C0F1D; --plum: #9A1C45; --wine: #5A0C1E;
  --ruby: #7D0717; --crimson: #B92B43; --rose: #E26D84; --blush: #F6C9CF;
  --gold: #C8973A; --gold-2: #ECC86F; --champagne: #E6C99E; --copper: #AC5234;
  --jade: #2F6F68; --aqua: #7FC4B2; --saffron: #E39B2D; --indigo: #4B3E86;
  --ivory: #FEF9ED; --sandal: #F4E6C8; --parchment: #FBF1DC; --ink: #2B1218; --ink-2: #5E3B41; --ink-3: #8A6A6E;
  --line: rgba(200, 151, 58, .5); --line-soft: rgba(200, 151, 58, .25); --line-night: rgba(236, 200, 111, .28);
  --good: #2F6F68; --bad: #B92B43; --neutral: #9A7A36;
  --serif: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --sans: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --deva: 'Tiro Devanagari Sanskrit', 'Noto Serif Devanagari', serif;
  --step--1: .8rem; --step-0: 1.0625rem; --step-1: 1.33rem; --step-2: 1.66rem; --step-3: 2.07rem;
  --step-4: clamp(2.2rem, 4vw, 2.6rem); --step-5: clamp(2.05rem, 6vw, 3.6rem); --step-6: clamp(3rem, 8vw, 5rem);
  --gutter: clamp(16px, 4vw, 40px); --max: 1180px; --facet: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 var(--step-0)/1.6 var(--sans); font-feature-settings: 'tnum' 0; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--ruby); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blush); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; color: var(--ruby); }
h1 { font-size: var(--step-6); font-weight: 500; }
h2 { font-size: var(--step-5); font-weight: 500; }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
p { margin: 0 0 1em; max-width: 68ch; }
.num, time, .tnum { font-variant-numeric: tabular-nums lining-nums; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ivory); color: var(--ruby); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.band { padding-block: clamp(44px, 9vw, 112px); position: relative; }
.band--night { background: var(--night); color: #F3E6D8; }
.band--night h2, .band--night h3 { color: var(--champagne); }
.band--night a { color: var(--gold-2); }
.band--sandal { background: linear-gradient(180deg, var(--parchment), var(--sandal)); }
.band--wine { background: radial-gradient(120% 90% at 85% 0%, #8A1530 0%, var(--wine) 45%, var(--night) 100%); color: #F7E7DA; }
.band--wine h2, .band--wine h3 { color: var(--champagne); }
.band--tight { padding-block: clamp(36px, 5vw, 64px); }
.band--join { padding-bottom: clamp(14px, 2vw, 24px); }   /* two sections that belong together: they meet without a band's full breath between */
.band--join + .band { padding-top: clamp(14px, 2vw, 24px); }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 60ch; }
.band--night .lede, .band--wine .lede { color: #D9C5BC; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
.band--night .section-head p, .band--wine .section-head p { color: #EAD5CC; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ornament: the logo's diamond divider */
.diamond-rule { display: flex; align-items: center; gap: 14px; color: var(--gold); margin: 22px 0; }
.diamond-rule::before, .diamond-rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.diamond-rule span { width: 10px; height: 10px; transform: rotate(45deg); background: linear-gradient(135deg, var(--rose), var(--ruby)); box-shadow: 0 0 0 1px var(--gold); }

/* ---------- facet panels (chamfered like the lotus gem facets) */
.facet { --c: var(--facet); position: relative; padding: 1px; background: linear-gradient(160deg, var(--gold-2), var(--line) 40%, var(--gold)); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.facet > .facet__in { height: 100%; background: var(--ivory); padding: clamp(18px, 2.4vw, 28px); clip-path: polygon(calc(var(--c) - .5px) 0, calc(100% - var(--c) + .5px) 0, 100% calc(var(--c) - .5px), 100% calc(100% - var(--c) + .5px), calc(100% - var(--c) + .5px) 100%, calc(var(--c) - .5px) 100%, 0 calc(100% - var(--c) + .5px), 0 calc(var(--c) - .5px)); }
.facet--sandal > .facet__in { background: var(--parchment); }
.facet--night { background: linear-gradient(160deg, rgba(236,200,111,.7), rgba(236,200,111,.15) 45%, rgba(200,151,58,.6)); }
.facet--night > .facet__in { background: linear-gradient(180deg, var(--night-3), var(--night-2)); color: #F3E6D8; }
.facet--lg { --c: 22px; }
.facet h3 { font-size: var(--step-2); margin-bottom: .5em; }
.facet--night h3 { color: var(--champagne); }

/* ---------- buttons */
/* a soft pill: one colour, a hairline of light along the top, a shadow that lifts it a little on hover */
.btn { --bg: var(--ruby); --fg: var(--ivory); --lift: 0 10px 22px -12px rgba(110, 8, 28, .6);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1 var(--sans); letter-spacing: .015em; color: var(--fg); background: var(--bg); text-decoration: none; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 -1px 0 rgba(0, 0, 0, .12), var(--lift);
  transition: background .25s var(--ease), color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.btn:hover { --bg: var(--crimson); --lift: 0 14px 26px -12px rgba(110, 8, 28, .7); color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--gold { --bg: linear-gradient(180deg, var(--gold-2), var(--gold)); --fg: var(--wine); }
.btn--gold:hover { --bg: linear-gradient(180deg, #f5d68a, var(--gold-2)); color: var(--wine); }
.btn--ghost { --bg: transparent; --fg: var(--ruby); box-shadow: inset 0 0 0 1px var(--gold); }
.btn--ghost:hover { --bg: rgba(200, 151, 58, .12); color: var(--ruby); box-shadow: inset 0 0 0 1px var(--gold); transform: none; }
.band--night .btn--ghost, .hero .btn--ghost, .band--wine .btn--ghost { --fg: var(--champagne); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
.btn--sm { min-height: 38px; padding: 8px 18px; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ruby); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.band--night .link-btn, .page-hero .link-btn { color: var(--gold-2); }

/* ---------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.site-header.is-solid, .site-header--solid { background: rgba(42, 6, 16, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-night); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--champagne); }
.brand img { width: 52px; height: auto; }
.brand__name { font: 600 1.45rem/1 var(--serif); letter-spacing: .03em; background: linear-gradient(180deg, #F7DA8E, #C8973A 60%, #9C6A1E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__tag { display: block; font: 400 .7rem/1 var(--sans); letter-spacing: .14em; color: #D9A9B2; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #E9D8CB; text-decoration: none; font-size: .96rem; padding: 10px 10px; position: relative; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--gold-2); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; background: var(--gold-2); transform: translateX(-50%) rotate(45deg); }
.nav .btn { margin-left: 10px; white-space: nowrap; }
/* the home page's opening screen has its own booking button, so while that one is in view the header's folds away and the
   links glide across into its place, and back again when the visitor scrolls on (home.js) */
@media (min-width: 1061px) {
  .nav .btn { max-width: 230px; overflow: hidden; transition: max-width .42s var(--ease), padding .42s var(--ease), margin .42s var(--ease), opacity .26s ease, transform .42s var(--ease), visibility 0s; }
  body.book-tucked .nav .btn { max-width: 0; padding-inline: 0; margin-left: 0; opacity: 0; transform: translateX(12px) scale(.94); visibility: hidden;
    transition: max-width .42s var(--ease), padding .42s var(--ease), margin .42s var(--ease), opacity .18s ease, transform .42s var(--ease), visibility 0s .42s; }
}
@media (prefers-reduced-motion: reduce) { .nav .btn { transition: none !important; } }
@media (min-width: 1061px) and (max-width: 1260px) { .nav { gap: 2px; } .nav a:not(.btn) { padding: 10px 7px; font-size: .93rem; } }
/* the short menu under Planets: below the link on a wide screen, set out in the menu sheet on a narrow one */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__group > a { padding-right: 3px !important; }
.nav__caret { display: grid; place-items: center; width: 20px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.nav__caret svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.nav__group.is-open .nav__caret svg { transform: rotate(180deg); }
.nav__caret:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.nav__sub { display: none; position: absolute; top: calc(100% + 4px); left: -10px; z-index: 60; min-width: 226px; padding: 7px; background: #FFF9F3;
  border: 1px solid rgba(176, 124, 46, .5); border-radius: 14px; box-shadow: 0 18px 40px rgba(60, 6, 18, .22); }
.nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* keeps the pointer over the menu on its way down */
.nav__group.is-open .nav__sub { display: block; }
.nav .nav__sub a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font: 500 .95rem/1.2 var(--sans); white-space: nowrap; }
.nav .nav__sub a:hover { background: rgba(200, 16, 46, .08); }
.nav .nav__sub a[aria-current] { background: rgba(200, 16, 46, .1); font-weight: 600; }
.sec-icon { width: 18px; height: 18px; flex: none; color: #C8102E; }
@media (min-width: 1061px) and (hover: hover) {
  .nav__group:hover .nav__sub { display: block; }
  .nav__group.is-dismissed .nav__sub { display: none; }
  .nav__group:hover .nav__caret svg { transform: rotate(180deg); }
}
.menu-btn { display: none; background: none; border: 1px solid var(--line-night); color: var(--champagne); width: 46px; height: 46px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 1.5px; background: currentColor; margin: auto; position: relative; content: ''; transition: transform .25s; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 74px 0 0 0; background: var(--night); flex-direction: column; align-items: stretch; padding: 24px var(--gutter); gap: 0; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font: 500 1.6rem/1.2 var(--serif); padding: 14px 0; border-bottom: 1px solid var(--line-night); }
  .nav a[aria-current='page']::after { left: auto; right: 4px; bottom: 50%; }
  .nav .btn { margin: 24px 0 0; font: 500 1.05rem/1 var(--sans); border: 0; }
}

/* ---------- home hero */
.hero { position: relative; min-height: 100svh; background: var(--night); color: #F3E6D8; overflow: hidden; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__stage canvas { width: 100% !important; height: 100% !important; }
.hero__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 30vh; }
.hero__fallback img { width: min(420px, 70vw); filter: drop-shadow(0 0 40px rgba(236, 160, 90, .35)); }
.hero__content { position: absolute; inset: auto 0 0 0; padding: 0 var(--gutter) clamp(24px, 5vh, 56px); display: grid; justify-items: center; text-align: center; background: linear-gradient(0deg, rgba(42,6,16,.95) 20%, rgba(42,6,16,0)); padding-top: 120px; }
.verse { max-width: 780px; display: grid; justify-items: center; }
/* the Sanskrit line itself, then its meaning in a band of its own so the two never read as one text */
.verse__sa { font: 400 clamp(1.15rem, 2.2vw, 1.6rem)/1.65 var(--deva); color: var(--gold-2); margin: 0 auto .55em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .4); }
.verse__sa--long { font-size: clamp(1rem, 1.85vw, 1.36rem); line-height: 1.6; overflow-wrap: anywhere; }
.verse__meaning { max-width: 640px; margin: 0 auto .8em; padding: 10px clamp(14px, 3vw, 28px) 12px;
  background: linear-gradient(90deg, transparent, rgba(246, 195, 209, .1) 18%, rgba(246, 195, 209, .1) 82%, transparent);
  border-block: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(236, 200, 111, .55), transparent) 1; }
.verse__en { font: italic 400 clamp(1.05rem, 2vw, 1.4rem)/1.45 var(--serif); color: #F7CCD8; margin: 0; text-wrap: balance; }
.verse__en::before { content: '“'; } .verse__en::after { content: '”'; }
.verse__src { font-size: .85rem; color: #B99A92; margin: 0 auto 1.3em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__skip { position: absolute; right: var(--gutter); top: 90px; z-index: 5; background: none; border: 1px solid var(--line-night); color: #EAD5CC; padding: 8px 14px; font: 400 .85rem var(--sans); cursor: pointer; }
.hero__skip:hover { color: var(--gold-2); border-color: var(--gold-2); }
.is-loading .site-header, .is-loading .hero__content, .is-loading main > :not(.hero) { opacity: 0; }
.reveal-ready .site-header, .reveal-ready .hero__content { transition: opacity 1.2s var(--ease); }
.is-loading .hero__content { transform: translateY(14px); }
.reveal-ready .hero__content { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }

/* ---------- inner page hero */
.page-hero { background: radial-gradient(90% 140% at 80% -10%, #8C1634 0%, var(--night) 60%); color: #EBDACB; padding: 130px 0 54px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--champagne); margin-bottom: .15em; }
.page-hero p { color: #EAD5CC; font-size: var(--step-1); margin: 0; }
.page-hero__bar { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* ---------- controls */
.control { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line-night); color: #F1DECF; padding: 9px 14px; font: 400 .95rem var(--sans); cursor: pointer; }
.control:hover { border-color: var(--gold-2); }
.control svg { width: 18px; height: 18px; color: var(--gold-2); }
.ivory-controls .control { background: var(--ivory); color: var(--ink); border-color: var(--line); }
input[type='date'].control, select.control { appearance: none; -webkit-appearance: none; }
input[type='date'].control::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) saturate(3) hue-rotate(5deg); cursor: pointer; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: .92rem; color: var(--ink-2); }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fffdf7; border: 1px solid #DCC59A; padding: 12px 14px; width: 100%; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--ink-3); }
.field .error { font-size: .88rem; color: var(--bad); }
.field input[aria-invalid='true'] { border-color: var(--bad); }
.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #DCC59A; padding: 10px 14px; cursor: pointer; background: #fffdf7; font-size: .95rem; }
.choice input { accent-color: var(--ruby); }
.choice label:has(input:checked) { border-color: var(--ruby); background: #fbe9ea; color: var(--ruby); }

/* ---------- dialog (place picker etc.) */
dialog.sheet { border: 0; padding: 0; width: min(560px, 100% - 24px); max-height: min(80vh, 680px); background: var(--ivory); color: var(--ink); box-shadow: 0 30px 80px rgba(42, 6, 16, .55); }
dialog.sheet::backdrop { background: rgba(42, 6, 16, .66); backdrop-filter: blur(3px); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.sheet__head h2 { font-size: var(--step-2); margin: 0; }
.sheet__body { padding: 18px 22px 22px; overflow-y: auto; max-height: calc(min(80vh, 680px) - 70px); }
.icon-btn { background: none; border: 0; width: 40px; height: 40px; cursor: pointer; color: var(--ink-2); font-size: 1.5rem; }
.place-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
@media (max-width: 520px) { .place-pick { grid-template-columns: minmax(0, 1fr); } }
.place-count { min-height: 1.2em; margin: 6px 0 0; font-size: .82rem; color: var(--ink-3); }
.place-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: min(40vh, 360px); overflow-y: auto; border-top: 1px solid var(--line-soft); overscroll-behavior: contain; }
.place-list__group { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 6px 6px; background: var(--ivory); font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9A6A2A; }
.place-list button { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft); padding: 11px 6px; font: 400 1rem var(--sans); color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.place-list button:hover, .place-list button:focus-visible { background: var(--parchment); }
.place-list small { color: var(--ink-3); text-align: right; }
.place-manual { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.place-manual summary { cursor: pointer; color: var(--accent-ink, var(--ruby)); font-size: .95rem; }

/* ---------- data rows */
.rows { display: grid; gap: 0; margin: 0; }
.row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row dt { color: var(--ink-3); font-size: .93rem; }
.row dd { margin: 0; color: var(--ink); }
.row dd small { display: block; color: var(--ink-3); font-size: .85rem; }
.facet--night .row { border-color: rgba(236, 200, 111, .16); }
.facet--night .row dt { color: #E3CAC0; }
.facet--night .row dd { color: #F5E8DC; }
.facet--night .row dd small { color: #DFC4BA; }
.tone-good { color: var(--good) !important; }
.tone-bad { color: var(--bad) !important; }
.tone-neutral { color: var(--neutral) !important; }
.band--night .tone-good, .facet--night .tone-good { color: #93E6CC !important; }
.band--night .tone-bad, .facet--night .tone-bad { color: #FFA9B8 !important; }
.band--night .tone-neutral, .facet--night .tone-neutral { color: #F5D684 !important; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 10px; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent); line-height: 1.5; margin-left: 6px; vertical-align: 2px; }
.tag--good { color: var(--good); } .tag--bad { color: var(--bad); } .tag--gold { color: #8C6420; } .tag--rose { color: var(--crimson); }
/* on the dark bands the tags are lit, so they never sink into the red */
.band--night .tag, .facet--night .tag { border-color: var(--te); background: var(--tb); }
.band--night .tag--rose, .facet--night .tag--rose { color: #FFD7DE; --te: rgba(255, 165, 180, .7); --tb: rgba(226, 35, 63, .34); }
.band--night .tag--gold, .facet--night .tag--gold { color: #FDE6AA; --te: rgba(236, 200, 111, .7); --tb: rgba(236, 200, 111, .18); }
.band--night .tag--good, .facet--night .tag--good { color: #D6FBEE; --te: rgba(127, 224, 196, .75); --tb: rgba(38, 150, 118, .5); }
.band--night .tag--bad, .facet--night .tag--bad { color: #FFDACB; --te: rgba(255, 160, 130, .7); --tb: rgba(214, 84, 52, .34); }

/* ---------- the five limbs strip */
.limbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.limb { padding: 18px 16px; border-right: 1px solid var(--line-soft); }
.limb:last-child { border-right: 0; }
.limb__k { color: var(--ink-3); font-size: .9rem; }
.limb__v { font: 600 var(--step-2)/1.15 var(--serif); color: var(--ruby); margin: 4px 0 2px; }
.limb__t { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 860px) { .limbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .limb { border-bottom: 1px solid var(--line-soft); } .limb:nth-child(2n) { border-right: 0; } .limb:last-child { grid-column: 1 / -1; border-bottom: 0; } }

/* ---------- day arc: the Sun's path with its kalams, the choghadiyas on the axis, and a Sun to move through the day */
.arc { margin: 0; }
.day-arc { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: pointer; -webkit-user-select: none; user-select: none; }
.day-arc text { font: 400 12px var(--sans); fill: var(--ink-2); }
.day-arc .arc__seg { font: 600 11.5px var(--sans); }
.day-arc .arc__hour { font-size: 11px; fill: var(--ink-3); }
.day-arc .arc__axis-name { font: 600 10.5px var(--sans); letter-spacing: .06em; fill: #9A6A2A; }
.day-arc .arc__end { font-size: 13px; }
.day-arc .arc__pill text { font: 600 13px var(--sans); fill: #FFF4EE; }
.arc__sun { cursor: grab; outline: none; }
.arc.is-dragging .arc__sun, .arc.is-dragging .day-arc { cursor: grabbing; }
.arc__ring { fill: none; stroke: var(--accent, var(--ruby)); stroke-width: 2; opacity: 0; }
.arc__sun:focus-visible .arc__ring { opacity: 1; }
.arc__rays { animation: arc-rays 30s linear infinite; }
@keyframes arc-rays { to { transform: rotate(360deg); } }
/* arrows either side of the Sun, breathing outward, to say at a glance that it can be moved; once it has been, they go */
.arc__cue { transform-box: fill-box; transition: opacity .5s var(--ease); }
.arc__cue--back { animation: arc-cue-back 1.6s ease-in-out infinite; }
.arc__cue--on { animation: arc-cue-on 1.6s ease-in-out infinite; }
@keyframes arc-cue-back { 0%, 100% { transform: translateX(0); opacity: .95; } 50% { transform: translateX(-6px); opacity: .45; } }
@keyframes arc-cue-on { 0%, 100% { transform: translateX(0); opacity: .95; } 50% { transform: translateX(6px); opacity: .45; } }
.arc.is-touched .arc__cues { opacity: 0; transition: opacity .6s var(--ease); }
.arc__sun[data-at='sunrise'] .arc__cue--back, .arc__sun[data-at='sunset'] .arc__cue--on { display: none; }
.arc__badge { cursor: pointer; }
.day-arc .arc__name { font: 600 12.5px var(--sans); paint-order: stroke; stroke: #FFF8F0; stroke-width: 3.5px; stroke-linejoin: round; letter-spacing: .01em; transition: opacity .25s; }
.day-arc .arc__name.is-under { opacity: .1; }
.arc__panel { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 12px 28px; align-items: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.arc__now b { display: block; font: 600 1.75rem/1 var(--serif); color: var(--ruby); font-variant-numeric: lining-nums tabular-nums; }
.arc__now span { display: block; margin-top: 6px; font-size: .86rem; color: var(--ink-3); max-width: 24ch; }
.arc__now .link-btn { margin-top: 6px; font-size: .86rem; }
.arc__cells { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.arc__cells dt { font-size: .8rem; color: var(--ink-3); }
.arc__cells dd { margin: 3px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.arc__cells dd small { flex-basis: 100%; font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.arc__cells .gmark { width: 22px; height: 22px; margin: 0; }
.arc__cells .glyph { width: 17px; height: 17px; color: #B0782E; }
.arc__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.arc__state { grid-column: 1 / -1; margin: 0; font-size: .95rem; color: var(--ink-2); }
.arc__chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.arc__chip .glyph { width: 15px; height: 15px; color: inherit; }
.arc__key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.arc__k { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: rgba(255, 252, 246, .6); transition: border-color .2s, background .2s; }
.arc__k:hover { border-color: var(--c); background: rgba(255, 252, 246, .95); }
.arc__sw { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #FFF6EE; }
/* the sign in a coloured disc is white with a white halo, so it never sinks into the colour */
.arc__sw .glyph { width: 17px; height: 17px; color: #FFFFFF; stroke-width: 2; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .95)) drop-shadow(0 0 2.5px rgba(255, 255, 255, .55)); }
.arc__k b { display: block; font-size: .9rem; line-height: 1.2; }
.arc__k small { display: block; font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .arc__panel { grid-template-columns: minmax(0, 1fr); } .arc__cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .arc__now span { max-width: none; } }
@media (max-width: 600px) { .day-arc .arc__seg, .day-arc .arc__hour, .day-arc .arc__axis-name { display: none; } .day-arc .arc__end { font-size: 21px; } .day-arc .arc__name { font-size: 17px; stroke-width: 4.5px; } }
@media (prefers-reduced-motion: reduce) { .arc__rays, .arc__cue { animation: none; } }

/* ---------- the marks of the grahas and rashis */
/* a graha on its seat from the navagraha mandala, with its Devanagari letters */
.gmark { --gedge: #C8973A; display: inline-block; width: 30px; height: 30px; vertical-align: middle; margin-right: 8px; overflow: visible; flex: none; }
.gmark text, .wheel text.deva { font-family: var(--deva); }
.band--night .gmark, .facet--night .gmark { --gedge: #ECC86F; }
.glyph { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.16em; color: var(--gold); flex: none; }
.band--night .glyph, .facet--night .glyph { color: var(--gold-2); }

/* ---------- navagraha wheel */
.wheel { display: block; width: 100%; max-width: 600px; margin-inline: auto; }
.wheel text { font-family: var(--sans); }
.wheel [data-k] { transition: opacity .3s var(--ease); }
.wheel.is-focus [data-k]:not(.is-lit) { opacity: .3; }
.wheel-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); }
.wheel-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.wheel-key__note { flex-basis: 100%; text-align: center; font-size: .8rem; opacity: .85; }
.band--night .wheel-key, .facet--night .wheel-key { color: #EAD5CC; }
.graha-list { display: grid; gap: 0; }
.graha { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; margin: 0 -8px; border-bottom: 1px solid rgba(236, 200, 111, .14); transition: background .3s; }
/* a graha pointed at, in the list or on the wheel: its row lit in gold (above the table's own stripes) */
.graha.is-lit { background: rgba(236, 200, 111, .22); box-shadow: inset 3px 0 0 var(--gold-2); }
.t tbody tr.is-lit td, .t tbody tr.is-lit:nth-child(n) td { background: rgba(242, 182, 48, .3); transition: background .2s; }
.t tbody tr.is-lit td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.wheel [data-k] { cursor: pointer; }
.wheel [data-k].is-lit circle:first-of-type { fill-opacity: .45; }
.graha .gmark { width: 40px; height: 40px; margin: 0; }
.graha__name { color: #F5E8DC; }
.graha__name small { display: block; color: #E6CEC4; font-size: .85rem; }
.graha__pos { text-align: right; font-variant-numeric: tabular-nums; color: var(--champagne); }
.graha__pos small { display: block; color: #E6CEC4; font-size: .82rem; }
.graha__pos .glyph { margin-right: 4px; }

/* ---------- event lists */
.events { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); align-items: start; }
.event__date { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px 0 8px; background: var(--parchment); }
.event__date b { display: block; font: 600 1.9rem/1 var(--serif); color: var(--ruby); }
.event__date span { font-size: .78rem; color: var(--ink-3); }
.event__name { font: 600 1.3rem/1.2 var(--serif); color: var(--ink); }
.event__name .alt { font: 400 .92rem var(--sans); color: var(--ink-3); display: block; margin-top: 2px; }
.event__meta { font-size: .88rem; color: var(--ink-2); margin-top: 3px; }
.event--major .event__date { background: linear-gradient(180deg, #fbe6e9, var(--parchment)); border-color: var(--crimson); }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font: 500 .9rem var(--sans); color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.t tr.is-now td { background: #fbeccd; }
.t tr.is-now td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.facet--night .t th { color: #E3CAC0; border-color: var(--line-night); }
.facet--night .t td { border-color: rgba(236,200,111,.12); color: #F2E4D8; }
.facet--night .t tr.is-now td { background: rgba(236, 200, 111, .12); }

/* ---------- calendar grid */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { text-align: center; font-size: .82rem; color: var(--ink-3); padding: 6px 0; }
.cal__day { min-height: 108px; background: #fffdf7; border: 1px solid #EAD7B0; padding: 8px; position: relative; display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--ink-2); text-align: left; }
.cal__day b { font: 600 1.35rem/1 var(--serif); color: var(--ink); }
.cal__day.is-today { border-color: var(--ruby); box-shadow: inset 0 0 0 1px var(--ruby); }
.cal__day.is-other { opacity: .35; }
.cal__day .ev { color: var(--ruby); font-weight: 500; line-height: 1.25; }
.cal__day .ev--major { color: var(--crimson); }
.cal__moon { position: absolute; right: 8px; top: 8px; width: 14px; height: 14px; }
@media (max-width: 700px) { .cal__day { min-height: 74px; padding: 5px; font-size: .68rem; } .cal__day .tt { display: none; } .cal__day b { font-size: 1.05rem; } }

/* ---------- wisdom / quote */
.quote { font: 500 clamp(1.7rem, 3.4vw, 2.6rem)/1.22 var(--serif); color: var(--ruby); margin: 0 0 .5em; text-wrap: balance; }
.quote-sa { font: 400 1.2rem/1.7 var(--deva); color: var(--copper); margin: 0 0 .3em; overflow-wrap: anywhere; }
.quote-hi { font: 400 1.08rem/1.65 var(--deva); color: var(--ink); margin: 0 0 .5em; }
.quote-en { font: 500 1.14rem/1.45 var(--serif); color: var(--ink); margin: 0 0 .5em; }
.quote-tr { font: italic 400 1.08rem/1.55 var(--serif); color: var(--ink-2); margin: 0 0 .6em; }
.quote-src { font-size: .95rem; color: var(--ink-3); }
.affirm { font: 400 var(--step-1)/1.45 var(--sans); color: var(--ink); border-left: 2px solid var(--gold); padding-left: 16px; margin: 18px 0; }

/* ---------- booking */
.book { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: minmax(0, 1fr); } }
.steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; flex-wrap: wrap; }
.steps li { flex: 1; min-width: 120px; padding: 10px 12px 12px; border-bottom: 2px solid var(--line-soft); color: var(--ink-3); font-size: .92rem; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: #EBDDBE; color: var(--ink-2); font-size: .78rem; vertical-align: -7px; }
.steps li[aria-current='step']::before { background: var(--ruby); color: var(--ivory); }
.steps li.is-done::before { background: var(--jade); color: #fff; }
.steps li[aria-current='step'] { color: var(--ruby); border-color: var(--ruby); }
.steps li.is-done { color: var(--jade); border-color: var(--jade); }
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.service { text-align: left; cursor: pointer; border: 1px solid #E2CB9C; background: #fffdf7; padding: 20px; font: inherit; color: inherit; display: grid; gap: 6px; position: relative; transition: border-color .2s, background .2s; }
.service:hover { border-color: var(--gold); }
.service[aria-pressed='true'] { border-color: var(--ruby); background: #fdf0f0; box-shadow: inset 0 0 0 1px var(--ruby); }
.service__name { font: 600 1.35rem/1.15 var(--serif); color: var(--ruby); }
.service__meta { font-size: .88rem; color: var(--ink-3); }
.service__desc { font-size: .95rem; color: var(--ink-2); }
.bcal { border: 1px solid #E2CB9C; background: #fffdf7; padding: 16px; }
.bcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bcal__head h3 { font-size: var(--step-2); margin: 0; }
.bcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bcal__grid .dow { text-align: center; font-size: .78rem; color: var(--ink-3); padding: 4px 0; }
.bday { aspect-ratio: 1; border: 1px solid transparent; background: none; font: 500 1rem var(--sans); color: var(--ink-3); cursor: default; position: relative; }
.bday.is-open { color: var(--ink); cursor: pointer; background: #fbf3e2; border-color: #EAD7B0; }
.bday.is-open::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; background: var(--jade); transform: translateX(-50%) rotate(45deg); }
.bday.is-open:hover { border-color: var(--gold); }
.bday[aria-pressed='true'] { background: var(--ruby); color: var(--ivory); border-color: var(--ruby); }
.bday[aria-pressed='true']::after { background: var(--gold-2); }
.bday.is-today { box-shadow: inset 0 0 0 1px var(--gold); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border: 1px solid #E2CB9C; background: #fffdf7; font: 500 1rem var(--sans); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.slot small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 400; }
.slot:hover { border-color: var(--gold); }
.slot[aria-pressed='true'] { background: var(--ruby); color: var(--ivory); border-color: var(--ruby); }
.slot[aria-pressed='true'] small { color: var(--blush); }
.slot-group h4 { font: 500 .95rem var(--sans); color: var(--ink-3); margin: 16px 0 8px; }
.slot em { font: normal 400 .72rem var(--sans); color: var(--accent-ink, var(--ruby)); }
/* booking: tools, availability shading and the times panel */
.bk { display: grid; grid-template-columns: minmax(290px, 1.05fr) 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .bk { grid-template-columns: minmax(0, 1fr); } }
.bk-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 16px; }
.bk-select { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-3); }
.bk-select select { font: 500 .92rem var(--sans); padding: 8px 10px; border: 1px solid #E2CB9C; background: #fffdf7; color: var(--ink); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #E2CB9C; background: #fffdf7; }
.seg button { border: 0; background: none; padding: 8px 12px; font: 400 .88rem var(--sans); color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid #E2CB9C; }
.seg button[aria-pressed='true'] { background: var(--accent); color: #fff; }
.bday { display: grid; place-items: center; align-content: center; gap: 1px; padding: 0; }
.bday b { font: 500 1rem/1 var(--sans); }
.bday small { font-size: .62rem; line-height: 1; color: #2C6B5F; }
.bday.is-open::after { display: none; }
.bday.lvl-1 { background: #FBF4E4; } .bday.lvl-2 { background: #E9F5EF; border-color: #C9E6D8; } .bday.lvl-3 { background: #D5EEE2; border-color: #A9D8C3; }
.bday[aria-pressed='true'] small { color: var(--blush); }
.bday[aria-disabled='true'] { color: #C2AFA0; cursor: not-allowed; }
.bday:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bk-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); margin-top: 12px; }
.bk-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 1px solid #E2CB9C; background: #fffdf7; }
.bk-legend i.lvl-1 { background: #FBF4E4; } .bk-legend i.lvl-3 { background: #D5EEE2; border-color: #A9D8C3; }
.bk-times__head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 6px; margin-bottom: 6px; }
.bk-times__head h3 { font-size: var(--step-2); margin: 0; text-align: center; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.summary { position: sticky; top: 96px; }
.summary .rows .row { grid-template-columns: 90px 1fr; }
.notice { padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--parchment); font-size: .95rem; color: var(--ink-2); margin: 16px 0; }
.notice--error { border-color: var(--bad); background: #fcebed; color: #7a1626; }
.notice--ok { border-color: var(--jade); background: #e9f4f1; color: #1d4a45; }
.confirm-code { font: 600 clamp(2rem, 5vw, 3rem)/1 var(--serif); letter-spacing: .08em; color: var(--ruby); }
.empty { color: var(--ink-3); font-style: italic; padding: 12px 0; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--ruby); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- kundali chart */
.chart { width: 100%; max-width: 440px; }
.chart text { font-family: var(--sans); }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; font: 500 .98rem var(--sans); color: var(--ink-3); cursor: pointer; margin-bottom: -1px; }
.tabs button[aria-selected='true'] { color: var(--ruby); border-color: var(--ruby); }
.syllables { display: flex; gap: 10px; flex-wrap: wrap; }
.syllables span { font: 600 1.5rem/1 var(--serif); padding: 10px 14px; border: 1px solid var(--line); background: var(--parchment); color: var(--ink-2); }
.syllables span.is-yours { background: var(--ruby); color: var(--ivory); border-color: var(--ruby); }

/* ---------- filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filters button { border: 1px solid #E2CB9C; background: #fffdf7; padding: 8px 14px; font: 400 .92rem var(--sans); cursor: pointer; color: var(--ink-2); }
.filters button[aria-pressed='true'] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- footer */
.site-footer { background: var(--night); color: #EAD5CC; padding: 64px 0 32px; border-top: 1px solid var(--line-night); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h3 { font-size: 1.2rem; color: var(--champagne); margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E7D3C4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer small { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(236,200,111,.14); color: #957C82; font-size: .85rem; }

/* ---------- misc */
.muted { color: var(--ink-3); }
.band--night .muted, .facet--night .muted { color: #DFC4BA; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.portrait { aspect-ratio: 4 / 5; background: radial-gradient(80% 70% at 50% 35%, #7A1530, var(--night)); display: grid; place-items: center; }
.portrait img { width: 70%; }
details.faq { border-bottom: 1px solid var(--line-soft); padding: 14px 0; }
details.faq summary { cursor: pointer; font: 600 1.25rem/1.3 var(--serif); color: var(--ink); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; float: right; color: var(--gold); font-family: var(--sans); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.loading-line { display: flex; align-items: center; gap: 12px; color: var(--ink-3); padding: 20px 0; }
.band--night .loading-line { color: #DFC4BA; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

#step-body { scroll-margin-top: 96px; outline: none; }
.field input[type='checkbox'], .field input[type='radio'] { width: auto; padding: 0; flex: none; }
.field { align-content: start; }
.confirm-code { font-variant-numeric: lining-nums tabular-nums; }

/* ================================================================ lively pages: per-page hue, washes, ornaments */
body { --accent: #C42A55; --accent-2: #F6C3D1; --wash: #FDEEF2; --accent-ink: #8E1235; }
body[data-hue='panchang'] { --accent: #D2386A; --accent-2: #F7C6D3; --wash: #FDEDF2; --accent-ink: #9B1640; }
body[data-hue='calendar'] { --accent: #E07B12; --accent-2: #FFDDB0; --wash: #FFF3E2; --accent-ink: #9A4E05; }
body[data-hue='planets'] { --accent: #B31E3F; --accent-2: #F4BFCA; --wash: #FCECEF; --accent-ink: #861228; }
body[data-hue='muhurat'] { --accent: #2C8C7A; --accent-2: #BFE7DE; --wash: #EBF7F3; --accent-ink: #1C5E52; }
body[data-hue='kundali'] { --accent: #C2722A; --accent-2: #F6D7B2; --wash: #FFF2E4; --accent-ink: #84460F; }
body[data-hue='wisdom'] { --accent: #DE4F7A; --accent-2: #FAD0DD; --wash: #FEEFF4; --accent-ink: #A0244B; }
body[data-hue='about'] { --accent: #A3163A; --accent-2: #F2C4CF; --wash: #FCEDF0; --accent-ink: #7D0717; }
body[data-hue='book'] { --accent: #C42A55; --accent-2: #F7CBD6; --wash: #FDEEF2; --accent-ink: #8E1235; }

.page-hero { background:
    radial-gradient(55% 110% at 88% 10%, color-mix(in srgb, var(--accent) 70%, transparent) 0%, transparent 62%),
    radial-gradient(45% 90% at 10% 120%, color-mix(in srgb, var(--rose) 45%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #5A0C1E 0%, #2A0610 70%); }
.page-hero::after { display: none; }
.page-hero h1 { color: #FFE9D6; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.page-hero p { color: #F6D9D6; }
.page-hero__art { position: absolute; right: clamp(-60px, 2vw, 40px); bottom: 8px; width: min(380px, 44vw); pointer-events: none; opacity: .95; }
.page-hero__art img, .page-hero__art canvas { width: 100%; height: auto; animation: hero-sway 9s ease-in-out infinite alternate; transform-origin: 50% 85%; }
@keyframes hero-sway { from { transform: rotate(-1.4deg) translateY(0); } to { transform: rotate(1.4deg) translateY(-6px); } }
@media (max-width: 760px) { .page-hero__art { opacity: .28; width: 300px; right: -70px; } }
.page-hero .wrap { position: relative; z-index: 1; }
.gold-dots { display: flex; gap: 8px; margin: 14px 0 0; }
.gold-dots i { width: 6px; height: 6px; background: var(--gold-2); transform: rotate(45deg); opacity: .85; }
.gold-dots i:nth-child(2n) { background: var(--accent-2); }
/* scalloped petal edge where the hero meets the page */
.page-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px; z-index: 2;
  background: radial-gradient(circle at 14px 18px, var(--wash) 13px, transparent 14px) repeat-x; background-size: 28px 18px; }
#page > section.band:first-child, main > section.band--tight:first-of-type { background: linear-gradient(180deg, var(--wash) 0, var(--ivory) 520px); }
.band--blush { background: linear-gradient(180deg, #FDEEF2, #FBE2E9); }
.band--saffron { background: linear-gradient(180deg, #FFF6E8, #FFEBD0); }
.band--jade { background: linear-gradient(180deg, #EEF8F5, #DFF1EB); }

/* cards pick up the page hue along their top edge */
.facet > .facet__in { background: linear-gradient(90deg, var(--accent), var(--gold-2) 55%, var(--rose)) top / 100% 4px no-repeat, var(--ivory); }
.facet--sandal > .facet__in { background: linear-gradient(90deg, var(--accent), var(--gold-2)) top / 100% 4px no-repeat, var(--parchment); }
.facet--night > .facet__in { background: linear-gradient(90deg, var(--rose), var(--gold-2)) top / 100% 3px no-repeat, linear-gradient(180deg, var(--night-3), var(--night-2)); }
.facet--good > .facet__in { background: linear-gradient(90deg, #2C8C7A, #7FC4B2) top / 100% 4px no-repeat, #F1FAF7; }
.facet--warn > .facet__in { background: linear-gradient(90deg, #B92B43, #E26D84) top / 100% 4px no-repeat, #FDF0F2; }
.facet h3 { display: flex; align-items: center; gap: 10px; }
.facet h3::before { content: ''; flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.facet--good h3::before { background: linear-gradient(135deg, #BFE7DE, #2C8C7A); }
.facet--warn h3::before { background: linear-gradient(135deg, #F6C9CF, #B92B43); }
.section-head h2, .band > .wrap > h2 { position: relative; }
.t th { background: color-mix(in srgb, var(--accent-2) 45%, transparent); color: var(--accent-ink); }
.t tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--wash) 70%, transparent); }
.facet--night .t th { background: rgba(236, 200, 111, .08); color: #F0C9B9; }
.facet--night .t tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }

/* five limbs: each with its own colour */
.limb { border-top: 3px solid transparent; }
.limb:nth-child(1) { border-top-color: #D2386A; } .limb:nth-child(2) { border-top-color: #E0A526; } .limb:nth-child(3) { border-top-color: #2C8C7A; }
.limb:nth-child(4) { border-top-color: #E07B12; } .limb:nth-child(5) { border-top-color: #9E1233; }

/* events coloured by kind */
.event[data-kind] .event__date { border-width: 1px 1px 1px 4px; }
.event[data-kind='festival'] .event__date, .event[data-kind='jayanti'] .event__date { border-color: #C42A55; background: #FDEEF2; }
.event[data-kind='ekadashi'] .event__date { border-color: #2C8C7A; background: #EBF7F3; }
.event[data-kind='purnima'] .event__date { border-color: #D9A21E; background: #FFF6DF; }
.event[data-kind='amavasya'] .event__date { border-color: #5A0C1E; background: #F7E9EA; }
.event[data-kind='chaturthi'] .event__date { border-color: #E07B12; background: #FFF1DE; }
.event[data-kind='pradosh'] .event__date, .event[data-kind='shivaratri'] .event__date { border-color: #8E5A86; background: #F7EEF5; }
.event[data-kind='sankranti'] .event__date { border-color: #C2722A; background: #FFF0E0; }
.event[data-kind='vrat'] .event__date, .event[data-kind='ashtami'] .event__date, .event[data-kind='observance'] .event__date { border-color: #B31E3F; background: #FCECEF; }
.cal__day .ev { padding: 1px 5px; border-left: 3px solid #C42A55; background: #FDEEF2; color: #8E1235; }
.cal__day .ev[data-kind='ekadashi'] { border-color: #2C8C7A; background: #EBF7F3; color: #1C5E52; }
.cal__day .ev[data-kind='purnima'] { border-color: #D9A21E; background: #FFF6DF; color: #7A5600; }
.cal__day .ev[data-kind='amavasya'] { border-color: #5A0C1E; background: #F4E6E8; color: #5A0C1E; }
.cal__day .ev[data-kind='chaturthi'] { border-color: #E07B12; background: #FFF1DE; color: #8A4505; }
.cal__day .ev[data-kind='sankranti'] { border-color: #C2722A; background: #FFF0E0; color: #84460F; }
.cal__day .ev[data-kind='pradosh'], .cal__day .ev[data-kind='shivaratri'] { border-color: #8E5A86; background: #F7EEF5; color: #5E3459; }
.cal__day.is-shukla { background: linear-gradient(180deg, #FFFDF7, #FFF7E8); }
.cal__day.is-krishna { background: linear-gradient(180deg, #FFFBFA, #FCF0F2); }
.filters button[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabs button[aria-selected='true'] { color: var(--accent-ink); border-color: var(--accent); }

/* ---------- date picker: a calendar with the tithi of each day */
.dpick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dpick__open { min-width: 200px; }
.dpick__caret { margin-left: auto; font-size: .75rem; color: var(--gold-2); }
.dp { position: fixed; z-index: 80; width: 352px; background: var(--ivory); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  box-shadow: 0 28px 70px rgba(42, 6, 16, .45); padding: 14px 14px 12px; }
.dp--sheet { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100svh - 16px); overflow-y: auto; }
.dp__head { display: grid; grid-template-columns: 36px 1fr 82px 36px; gap: 6px; align-items: center; margin-bottom: 10px; }
.dp__head select { font: 500 .95rem var(--sans); padding: 7px 8px; border: 1px solid #E2CB9C; background: #fffdf7; color: var(--ink); min-width: 0; }
.dp__nav { height: 36px; border: 1px solid #E2CB9C; background: #fffdf7; cursor: pointer; font-size: 1.15rem; color: var(--ink-2); }
.dp__nav:hover { border-color: var(--accent); color: var(--accent-ink); }
.dp__dow, .dp__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.dp__dow span { text-align: center; font-size: .72rem; color: var(--ink-3); padding: 2px 0 4px; }
.dp__day { position: relative; min-height: 44px; border: 1px solid #F0E2C4; background: #fffdf7; cursor: pointer; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 3px 0 7px; font: 500 .95rem/1 var(--sans); color: var(--ink); }
.dp__day i { font: normal 400 .56rem/1 var(--sans); color: var(--ink-3); letter-spacing: .01em; }
.dp__day.is-other { opacity: .4; }
.dp__day.is-today { box-shadow: inset 0 0 0 1px var(--gold); }
.dp__day.is-ekadashi i { color: #1C5E52; font-weight: 500; }
.dp__day.is-purnima { background: #FFF6DF; } .dp__day.is-amavasya { background: #F4E6E8; }
.dp__day.is-purnima::before, .dp__day.is-amavasya::before { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; }
.dp__day.is-purnima::before { background: #ECC86F; box-shadow: 0 0 0 1px #C8973A; }
.dp__day.is-amavasya::before { background: #2B1218; }
.dp__day:hover { border-color: var(--accent); }
.dp__day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dp__day[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp__day[aria-selected='true'] i { color: rgba(255, 255, 255, .88); }
.dp__dots { position: absolute; bottom: 3px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.dp__dots em { width: 4px; height: 4px; transform: rotate(45deg); background: #C42A55; }
.dp__dots em[data-kind='ekadashi'] { background: #2C8C7A; } .dp__dots em[data-kind='purnima'] { background: #D9A21E; }
.dp__dots em[data-kind='amavasya'] { background: #5A0C1E; } .dp__dots em[data-kind='chaturthi'] { background: #E07B12; }
.dp__dots em[data-kind='sankranti'] { background: #C2722A; } .dp__dots em[data-kind='pradosh'], .dp__dots em[data-kind='shivaratri'] { background: #8E5A86; }
.dp__day[aria-selected='true'] .dp__dots em { background: #fff; }
.dp__info { min-height: 2.7em; margin: 10px 0 8px; font-size: .84rem; line-height: 1.35; color: var(--ink-2); }
.dp__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dp__quick button { border: 1px solid #E2CB9C; background: #fffdf7; padding: 6px 10px; font: 400 .8rem var(--sans); cursor: pointer; color: var(--ink-2); }
.dp__quick button:hover { border-color: var(--accent); color: var(--accent-ink); }
.dp__quick button:disabled { opacity: .5; cursor: progress; }
.dp__key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: .72rem; color: var(--ink-3); }
.dp__key i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.dp__key .k-full { border-radius: 50%; background: #ECC86F; box-shadow: 0 0 0 1px #C8973A; } .dp__key .k-new { border-radius: 50%; background: #2B1218; }
.dp__key .k-fest { transform: rotate(45deg); width: 6px; height: 6px; background: #C42A55; } .dp__key .k-ek { transform: rotate(45deg); width: 6px; height: 6px; background: #2C8C7A; }
/* selects in the hero bars: a gold caret in place of the native arrow */
select.control { padding-right: 30px; background-color: rgba(255, 255, 255, .04); background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select.control option { color: var(--ink); background: var(--ivory); }

/* ---------- practitioner desk clock */
.desk-clock { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-bottom: 26px; padding: 18px 22px;
  background: linear-gradient(135deg, #5A0C1E, #2A0610); color: #F5E8DC; border-top: 4px solid var(--accent); }
.desk-clock p { margin: 0; }
.desk-clock__time { font: 600 clamp(2rem, 5vw, 2.9rem)/1 var(--serif); color: #FFE9D6; font-variant-numeric: tabular-nums lining-nums; }
.desk-clock__time span { font: 500 .95rem var(--sans); color: var(--gold-2); margin-left: 10px; }
.desk-clock__date { margin-top: 6px !important; color: #E8CFC5; font-size: .95rem; }
.desk-clock__side { display: grid; gap: 8px; justify-items: end; }
.desk-clock__other { color: #E8CFC5; font-size: .95rem; } .desk-clock__other strong { color: #FFE9D6; font-weight: 500; }
.desk-clock .seg { background: rgba(255, 255, 255, .06); border-color: var(--line-night); }
.desk-clock .seg button { color: #F1DECF; } .desk-clock .seg button + button { border-color: var(--line-night); }
.desk-clock .seg button[aria-pressed='true'] { background: var(--gold-2); color: var(--wine); }
.desk-clock__sync { font-size: .78rem; color: #EAD5CC; }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #7FC4B2; box-shadow: 0 0 0 3px rgba(127, 196, 178, .2); vertical-align: 1px; }
.dot--warn { background: #E39B2D; box-shadow: 0 0 0 3px rgba(227, 155, 45, .2); }
@media (max-width: 700px) { .desk-clock__side { justify-items: start; } }

/* ---------- planet transits (gochar): the graha chooser, the level tabs and the list of entries */
.yearpick { display: flex; gap: 8px; align-items: center; }
.yearpick__sel { position: relative; padding-right: 30px; }
.yearpick__sel select { appearance: none; -webkit-appearance: none; border: 0; background: none; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.yearpick__sel::after { content: '▾'; position: absolute; right: 12px; font-size: .75rem; color: var(--gold-2); pointer-events: none; }
.gpicks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
.gpick { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer;
  position: relative; background: #FFF; color: var(--ink); font: inherit; box-shadow: 0 1px 3px rgba(90, 10, 24, .12); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.gpick:hover { transform: translateY(-2px); border-color: #B80D29; box-shadow: 0 8px 18px rgba(110, 8, 28, .16); }
.gpick:focus-visible { outline: 2px solid var(--accent, #C8102E); outline-offset: 2px; }
/* the chosen graha stands out at a glance: filled in ruby, lifted, and pointing down to its list */
.gpick[aria-checked='true'] { background: linear-gradient(180deg, #C8102E, #8E0A20); border-color: #8E0A20; box-shadow: 0 12px 24px rgba(110, 8, 28, .34); transform: translateY(-3px); }
.gpick[aria-checked='true']::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #8E0A20; transform: rotate(45deg); }
.gpick[aria-checked='true'] .gpick__n { color: #FFF; }
.gpick[aria-checked='true'] .gpick__en { color: #FAD9D3; }
.gpick[aria-checked='true'] .gpick__disc { box-shadow: 0 0 0 3px #FFF; }
.gpick__disc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gc); color: var(--gi);
  box-shadow: inset 0 0 0 1.5px rgba(176, 124, 46, .7); }
.gpick__disc .glyph { width: 24px; height: 24px; stroke-width: 1.8; }
.gpick__n { font: 600 1.02rem/1.2 var(--serif); color: var(--ruby); margin-top: 4px; }
.gpick__en { font-size: .78rem; color: var(--ink-3); }
.gochar-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.gochar-tools .tabs { border-bottom: 0; margin: 0; }
.gochar-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.gochar-opts .seg { border-radius: 999px; overflow: hidden; }
.gochar-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin: 6px 0 16px; }
.gochar-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .15em; }
.gochar-now { display: flex; gap: 16px; align-items: center; padding: 14px 18px; margin-bottom: 6px; background: #FBEFDD; border: 1px solid rgba(176, 124, 46, .35); border-radius: 12px; }
.gochar-now__mark { margin: 0; }
.gochar-now__line { margin: 0 0 2px; font: 400 1.15rem/1.4 var(--serif); color: var(--ink); }
.gochar-now__line b { color: var(--ruby); }
.gochar-abhijit { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(255, 246, 232, .7); font-size: .95rem; }
.gochar-empty { margin: 18px 0 0; font-size: 1.05rem; }
.gochar { list-style: none; margin: 14px 0 0; padding: 0; }
.gochar__item { display: grid; grid-template-columns: 30px 38px minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 4px 14px; align-items: center;
  padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
.gochar__item.is-now { background: linear-gradient(90deg, rgba(236, 200, 111, .32), rgba(236, 200, 111, .08)); box-shadow: inset 3px 0 0 var(--gold); border-radius: 6px; }
.gochar__i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); background: rgba(255, 249, 240, .8); }
.gochar__mark { display: grid; place-items: center; color: var(--ruby); }
.gochar__mark .glyph { width: 26px; height: 26px; }
.gochar__num { font: 600 .95rem/1 var(--serif); color: #9E0B25; border: 1px solid rgba(184, 13, 41, .45); border-radius: 8px; padding: 6px 6px 5px; min-width: 32px; text-align: center; }
.gochar__what b { font: 600 1.12rem/1.2 var(--serif); color: var(--ink); }
.gochar__what small, .gochar__stay small { display: block; font-size: .82rem; color: var(--ink-3); margin-top: 1px; }
.gochar__what .tag { margin-left: 4px; vertical-align: 2px; }
.gochar__retro { color: #B80D29; font-weight: 700; margin-left: 2px; }
.gochar__when span { display: block; font-size: .9rem; color: var(--ink-2); }
.gochar__when b { font: 600 1.05rem/1.2 var(--sans); color: var(--ruby); font-variant-numeric: tabular-nums; }
.gochar__stay { font-size: .88rem; color: var(--ink-2); }
.gochar-month { border-bottom: 1px solid var(--line); }
.gochar-month summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; cursor: pointer; list-style: none;
  font: 600 1.15rem/1.2 var(--serif); color: var(--ruby); }
.gochar-month summary::-webkit-details-marker { display: none; }
.gochar-month summary::after { content: '▾'; font-size: .8rem; color: var(--gold); margin-left: 10px; transition: transform .25s var(--ease); }
.gochar-month[open] summary::after { transform: rotate(180deg); }
.gochar-month summary span { margin-left: auto; font: 400 .85rem var(--sans); color: var(--ink-3); }
.gochar-month .gochar { margin: 0 0 10px; }
.gochar-notes { padding-left: 18px; margin: 0; }
.gochar-notes li { font-size: .95rem; }
@media (max-width: 900px) { .gpicks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .gpicks { gap: 8px; margin-bottom: 16px; }
  .gpick { padding: 9px 4px 8px; border-radius: 12px; }
  .gpick__disc { width: 34px; height: 34px; }
  .gpick__disc .glyph { width: 20px; height: 20px; }
  .gpick__n { font-size: .92rem; }
  .gpick__en { display: none; }
  .gochar-tools { align-items: stretch; }
  .gochar-tools .tabs { width: 100%; }
  .gochar-tools .tabs button { flex: 1; padding: 10px 8px; }
  .gochar__item { grid-template-columns: 26px 32px minmax(0, 1fr); gap: 2px 10px; padding: 10px 6px; }
  .gochar__when, .gochar__stay { grid-column: 3; }
  .gochar__when { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
  .gochar__when span { display: inline; }
  .gochar__stay small { display: inline; margin-left: 6px; }
  .gochar-now { padding: 12px; gap: 12px; }
  .gochar-now__line { font-size: 1.05rem; }
}

/* ---------- gochar at a glance: each year a band of rows, one row for each graha, coloured by the rashi it is in */
.gc-card, .gochar-card { position: relative; background: #FFF9F3; border: 1px solid rgba(176, 124, 46, .45); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(110, 8, 28, .1); padding: clamp(14px, 2.4vw, 26px); }
.gc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 20px; margin-bottom: 14px; }
.gc-head h3 { margin: 0 0 .25em; }
.gc-head .seg { border-radius: 999px; overflow: hidden; }
.gc-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 12px; font-size: .82rem; color: var(--ink-2); }
.gc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.gc-legend i { display: inline-grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; background: var(--rc); color: var(--ri); }
.gc-legend i .glyph { width: 13px; height: 13px; color: inherit; }
.gc-legend i.gc-legend__retro { background: repeating-linear-gradient(135deg, rgba(43, 18, 24, .55) 0 2px, transparent 2px 6px), #E9DCCB; }
.gc-year { margin-top: 16px; }
.gc-year__title { margin: 0 0 6px; font: 600 1.25rem/1.2 var(--serif); color: var(--ruby); }
.gc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.gc-body { position: relative; min-width: 720px; --gc-name: 96px; }
.gc-row { display: grid; grid-template-columns: var(--gc-name) 1fr; align-items: center; height: 34px; }
.gc-row + .gc-row { margin-top: 4px; }
.gc-name { position: sticky; left: 0; z-index: 4; display: flex; align-items: center; gap: 6px; height: 100%; padding-right: 8px; background: #FFF9F3;
  font: 600 .92rem/1 var(--serif); color: var(--ink); }
.gc-name .glyph { width: 17px; height: 17px; color: var(--ruby); }
.gc-track { position: relative; height: 100%; border-radius: 8px; background: rgba(176, 124, 46, .08); overflow: hidden; }
.gc-row--months { height: 20px; }
.gc-row--months .gc-track { background: none; overflow: visible; }
.gc-row--months .gc-track span { position: absolute; top: 3px; padding-left: 4px; font: 500 .74rem/1 var(--sans); letter-spacing: .04em; color: var(--ink-3); }
.gc-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 3px; overflow: hidden; white-space: nowrap;
  border: 0; border-right: 1.5px solid #FFF9F3; background: var(--rc); color: var(--ri); font: 600 .8rem/1 var(--sans); cursor: pointer; }
.gc-seg .glyph { width: 15px; height: 15px; color: inherit; flex: none; }
.gc-seg span { overflow: hidden; text-overflow: ellipsis; }
.gc-seg:hover, .gc-seg:focus-visible { filter: brightness(1.07) saturate(1.1); box-shadow: inset 0 0 0 2px #2B1218; outline: none; z-index: 1; }
.gc-retro { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(135deg, rgba(43, 18, 24, .36) 0 2px, transparent 2px 7px);
  box-shadow: inset 0 2px 0 rgba(43, 18, 24, .5), inset 0 -2px 0 rgba(43, 18, 24, .5); }
.gc-lines { position: absolute; top: 20px; bottom: 0; left: var(--gc-name); right: 0; pointer-events: none; z-index: 3; }
.gc-lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 249, 243, .75); }
.gc-body:has(.gc-today) { padding-bottom: 15px; }
.gc-today { position: absolute; top: -4px; bottom: 0; width: 2px; margin-left: -1px; background: #B80D29; }
.gc-today span { position: absolute; bottom: 0; left: 4px; padding: 1px 4px; border-radius: 3px; background: #FFF9F3; font: 700 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #B80D29; }
.gc-today--end span { left: auto; right: 4px; }   /* near the year's end the word stays inside the band */
.gc-tip { position: absolute; z-index: 20; width: min(340px, calc(100% - 16px)); padding: 14px 16px; background: #FFFDF9; border: 1px solid rgba(176, 124, 46, .6);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(60, 6, 18, .22); }
.gc-tip[hidden] { display: none; }
.gc-tip__t { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.gc-tip__t b { font: 600 1.12rem/1.2 var(--serif); color: var(--ruby); }
.gc-tip__t small { margin-left: auto; color: var(--ink-3); }
.gc-tip .gpick__disc, .gc-list .gpick__disc { width: 30px; height: 30px; flex: none; }
.gc-tip .gpick__disc .glyph, .gc-list .gpick__disc .glyph { width: 18px; height: 18px; }
.gc-tip__rows { display: grid; gap: 7px; margin: 0 0 12px; }
.gc-tip__rows div { display: grid; grid-template-columns: 58px 1fr; gap: 8px; font-size: .92rem; }
.gc-tip__rows dt { padding-top: 2px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.gc-tip__rows dd { margin: 0; color: var(--ink); }
.gc-tip__rows dd b { color: var(--ruby); }
.gc-tip__rows dd small { display: block; color: var(--ink-3); }
.gc-more { margin-top: 18px; text-align: center; }
.gc-hint { display: none; margin: 10px 0 0; font-size: .82rem; color: var(--ink-3); }
.gc-moon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; margin: 16px 0 0; padding: 12px clamp(14px, 2.4vw, 26px);
  background: #FFF9F3; border: 1px solid rgba(176, 124, 46, .35); border-radius: 14px; font-size: .95rem; }
.gc-moon p { margin: 0; max-width: none; }
.gc-moon .glyph { color: var(--ruby); }
.gc-moon__next { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.gc-moon__next small { display: block; font-size: .82rem; color: var(--ink-3); }
/* each graha in detail: one card holding the choice and its list */
.gc-detail { position: relative; margin-top: clamp(20px, 3vw, 32px); padding: clamp(14px, 2.4vw, 26px); background: #FFF9F3; border: 1px solid rgba(176, 124, 46, .45); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(110, 8, 28, .1); scroll-margin-top: 90px; }
.gc-detail__title { margin: 0 0 .2em; }
.gc-detail .gochar-card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
#gc-detail-body { scroll-margin-top: 90px; }
.gochar-opts .control { min-height: 36px; padding: 6px 12px; background: #FFF; color: var(--ink); border-color: rgba(176, 124, 46, .65); border-radius: 8px; font-weight: 500; }
.gochar-opts .control:hover { border-color: #B80D29; }
.gochar-opts .yearpick__sel::after { color: #B80D29; }
.gochar-opts .yearpick__sel select option { color: var(--ink); }
.gochar-step { margin: 14px 0 10px; font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gc-card p, .gochar-card p { max-width: none; }
.gc-head p { max-width: 70ch; }
/* the same years as one list in order of time */
/* the choice of grahas: raised buttons on their own shelf; "All grahas" stands chosen at first, the rest plainly waiting to be pressed */
.gc-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; background: #FBF0E0; border: 1px solid rgba(176, 124, 46, .3); border-radius: 12px; }
.gc-filter__label { margin-right: 2px; font: 600 .78rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gc-filter__hint { margin-left: auto; font-size: .84rem; color: var(--ink-2); }
.gc-fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 13px 4px 5px; border-radius: 999px; border: 1.5px solid rgba(176, 124, 46, .65); background: #FFF;
  font: 600 .9rem/1 var(--sans); color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(90, 10, 24, .14);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), border-color .15s, background .15s; }
.gc-fchip--all { padding-left: 14px; }
.gc-fchip:hover { transform: translateY(-1px); border-color: #B80D29; box-shadow: 0 5px 12px rgba(110, 8, 28, .18); }
.gc-fchip:focus-visible { outline: 2px solid #B80D29; outline-offset: 2px; }
.gc-fchip .gpick__disc { width: 26px; height: 26px; }
.gc-fchip .gpick__disc .glyph { width: 16px; height: 16px; }
.gc-fchip[aria-pressed='true'] { background: linear-gradient(180deg, #C8102E, #9E0B25); border-color: #8E0A20; color: #FFF; box-shadow: 0 5px 12px rgba(110, 8, 28, .3); }
.gc-fchip[aria-pressed='true']::after { content: '✓'; font-size: .85rem; }
.gc-fchip[aria-pressed='true'] .gpick__disc { box-shadow: 0 0 0 2px #FFF; }
.gc-list td { vertical-align: middle; }
.gc-list td b { font-weight: 600; }
.gc-list td small { display: block; font-size: .82rem; color: var(--ink-3); }
.gc-list .gpick__disc { display: inline-grid; vertical-align: middle; margin-right: 8px; }
.gc-g { font: 600 1rem var(--serif); }
.gc-move { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gc-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border-radius: 999px; background: var(--rc); color: var(--ri); font: 600 .84rem/1.2 var(--sans); }
.gc-chip .glyph { width: 14px; height: 14px; color: inherit; }
.gc-arrow { color: var(--ink-3); }
.gc-list .gc-note { color: #B80D29; }
.t.gc-list tbody tr.is-next td { background: #FBECCD; }
.t.gc-list tbody tr.is-next td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.gochar__item.is-picked { background: linear-gradient(90deg, rgba(184, 13, 41, .14), rgba(184, 13, 41, .03)); box-shadow: inset 3px 0 0 #B80D29; border-radius: 6px; }
@media (max-width: 800px) { .gc-hint { display: block; } .gc-body { --gc-name: 84px; } .gc-seg { justify-content: flex-start; padding-left: 5px; } }
@media (max-width: 700px) {
  .gc-head h3, .gc-detail__title { font-size: 1.5rem; }
  .gc-filter { gap: 6px; padding: 8px; }
  .gc-filter__hint { display: none; }
  .gc-fchip { min-height: 30px; padding: 2px 9px 2px 3px; gap: 5px; font-size: .8rem; }
  .gc-fchip--all { padding-left: 10px; }
  .gc-fchip .gpick__disc { width: 22px; height: 22px; }
  .gc-fchip .gpick__disc .glyph { width: 14px; height: 14px; }
  .gochar-opts .yearpick { order: -1; width: 100%; }
}

/* ---------- the scriptures: the works set out by tradition, on a card of their own so that they read clearly over the paper */
.on-paper { color: #5E1A26; }
.shelves { display: grid; gap: 12px; margin: 0 0 26px; padding: clamp(12px, 2vw, 18px); background: #FFF9F3; border: 1px solid rgba(176, 124, 46, .45); border-radius: 16px; }
.shelves__all { justify-self: start; }
.shelf { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.shelf__name { margin: 0; font: 600 1.02rem/1.2 var(--serif); color: var(--ruby); }
.shelf__name small { display: block; margin-top: 2px; font: 400 .78rem/1.2 var(--sans); color: var(--ink-3); }
.shelves .filters { margin: 0; }
.shelves button { border-radius: 999px; border: 1.5px solid rgba(176, 124, 46, .6); background: #FFF; padding: 6px 13px; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.shelves button:hover { border-color: #B80D29; }
.shelves button:focus-visible { outline: 2px solid #B80D29; outline-offset: 2px; }
.shelves button small { margin-left: 3px; font-size: .78rem; opacity: .7; }
.shelves button[aria-pressed='true'] { background: linear-gradient(180deg, #C8102E, #9E0B25); border-color: #8E0A20; color: #FFF; }
.shelf__work { margin: 26px 0 12px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: #9E0B25; }
@media (max-width: 700px) { .shelf { grid-template-columns: minmax(0, 1fr); } }
