/* Page CSS: only what sits inside a visual or a form and the kit lacks. Tokens come from system.css. */
[hidden] { display: none !important; }

/* the lit ground in the brand's own colours (the kit's sand ground, retoned): peach on the cream page, deep brown behind the dark screen.
   Green stays only where the app itself uses it for "done" (ticks, the done days, the limit pill and bar). */
html[data-ground] { --ground-bg: #f8d9d1; --ground-surface: #feede9; --ground-ink: #492719; --ground-muted: #6a4434; --ground-accent: #e9a99b; }
#privacy .frame--lit { background: #492719; }

/* the hero's lit ground, one soft light; the window is the real Today screen, cut by the frame's right and bottom edges */
.hero__art { background:
    radial-gradient(70% 60% at 18% 12%, color-mix(in oklab, var(--ground-surface) 80%, white), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, color-mix(in oklab, var(--ground-bg) 80%, var(--ground-accent)), transparent 70%),
    var(--ground-bg); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
/* the hero window: the Today screen as live HTML in the app's own look; the check-in sequence ticks its rows (page-motion.js) */
.ly-piece--main.today { background: var(--p-bg); color: var(--ink); border-radius: 12px 0 0 0; overflow: hidden; font: 400 14px/1.4 var(--font-text);
  padding: var(--s-5) var(--ly-cut-room) var(--s-5) var(--s-5);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent), 0 30px 70px -30px color-mix(in oklab, var(--ink) 55%, transparent); }
.td__kicker { margin: 0; font-size: 13px; color: var(--muted); }
.td__date { margin: 0 0 var(--s-5); font: 500 22px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.td__sum { display: flex; align-items: center; gap: var(--s-5); padding-bottom: var(--s-5); }
.td__ring { position: relative; flex: none; width: 96px; height: 96px; }
.td__ring svg { display: block; width: 100%; height: 100%; }
.td__ring circle { fill: none; stroke-width: 7; }
.td__trk { stroke: color-mix(in oklab, var(--ink) 9%, transparent); }
.td__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 17; }
.td__ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.td__ring b { font: 500 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.td__ring small { font-size: 12px; color: var(--muted); }
.td__txt { flex: 1; min-width: 0; }
.td__big { margin: 0; font: 500 20px/1.2 var(--font-display); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; }
.td__small { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.td__txt .d-bar { margin: 10px 0 8px; }
.td__txt .d-bar > i { --s: .833; }
.td__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.td__rows > li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.td__rows b { display: block; font: 500 16px/1.2 var(--font-text); }
.td__rows small { font-size: 13px; color: var(--muted); }
.td__chk { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid color-mix(in oklab, var(--ink) 25%, transparent); }
.td__chk svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.td__rows > li.is-done .td__chk { background: #2f7a59; border-color: #2f7a59; }
.td__rows > li.is-done .td__chk svg { stroke-dashoffset: 0; }
@media (max-width: 639px) { .td__sum { padding-bottom: var(--s-4); } .td__date { margin-bottom: var(--s-4); } .td__ring { width: 80px; height: 80px; } }

/* month: four weeks of days, coloured as the app colours them; GSAP fills them in as the section is scrolled into view */
.month-frame { --ratio: 38%; }
.month { display: flex; align-items: center; justify-content: space-around; gap: var(--s-8); width: 100%; padding-inline: var(--s-5); }
.month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 76px)); gap: var(--s-3); }
.mc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; background: color-mix(in oklab, var(--ink) 9%, transparent); color: var(--ink); }
.mc[data-s="d"] { background: #2f7a59; color: #fff; }
.mc[data-s="p"] { background: transparent; box-shadow: inset 0 0 0 3px #d99a2b; color: var(--ink); }
.mc[data-s="m"] { background: #e8998c; color: #4a160d; }
.mc[data-s="t"] { background: var(--ink); color: var(--p-bg); }
.month__streak { display: grid; justify-items: start; gap: var(--s-2); }
.month__n { font: 500 clamp(64px, 7vw, 104px)/1 var(--font-display); letter-spacing: var(--display-tracking-xl); font-variant-numeric: tabular-nums; }
.month__lbl { font-size: var(--t-lead); font-weight: 500; }
.tickmark { width: 56px; height: 56px; fill: none; stroke: var(--ink); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tickmark--sent { margin-top: var(--s-3); }
@media (max-width: 1023px) { .month { gap: var(--s-6); } .month__grid { grid-template-columns: repeat(7, minmax(0, 44px)); } }
@media (max-width: 639px) { .month-frame { --ratio: 0; padding-block: var(--s-6); } .month { flex-direction: column; align-items: flex-start; gap: var(--s-5); padding-inline: 0; } .month__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; } }

/* the language picker: an indicator that a spring slides under the chosen language */
.langpick { position: relative; display: flex; align-items: center; gap: var(--s-2); border: 0; padding: 0; margin: var(--s-5) 0 var(--s-7); }
.langpick legend { float: left; padding: 0; margin-right: var(--s-3); font-size: var(--t-small); font-weight: 500; }
.langpick label { position: relative; z-index: 1; cursor: pointer; }
.langpick input { position: absolute; opacity: 0; pointer-events: none; }
.langpick label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-btn); font-weight: 500; border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); transition: color .15s; }
.langpick input:checked + span { background: var(--ink); color: var(--p-bg); border-color: var(--ink); }
.langpick.is-js input:checked + span { background: transparent; border-color: transparent; }
.langpick input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.langpick__ind { position: absolute; z-index: 0; top: 0; left: 0; height: 44px; width: 0; border-radius: var(--r-btn); background: var(--ink); }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

/* the small result cards (hero and features): live HTML on the lit ground */
.d-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 16px; font: 400 14px/1.4 var(--font-text); text-align: left;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 9%, transparent), 0 18px 44px -20px color-mix(in oklab, var(--ink) 45%, transparent); }
.d-card .d-title { margin: 0; font: 500 15px/1.3 var(--font-text); }
.d-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; background: #e3f1ea; color: #1f5c43; white-space: nowrap; }
.d-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.d-chip--quiet { background: color-mix(in oklab, var(--ink) 8%, #fff); color: var(--ink); }
.d-chip--quiet::before { display: none; }
.d-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink); border-top: 1px solid color-mix(in oklab, var(--ink) 8%, transparent); }
.d-card__row + .d-note__line { margin-top: 8px; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: color-mix(in oklab, var(--ink) 9%, transparent); color: var(--ink); font-style: normal; font-size: 13px; font-weight: 500; }
.d-note__line i.ok { background: #e3f1ea; color: #1f5c43; }
.d-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.d-chips > span { padding: 5px 10px; border: 1px solid color-mix(in oklab, var(--ink) 18%, transparent); border-radius: 99px; font-size: 13px; }
.d-chips > span.is-on { background: var(--ink); border-color: var(--ink); color: var(--p-bg); }
.d-chips--regions > span { border: 0; background: var(--surface); }
.d-dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; margin-top: 12px; }
.d-dots > i { aspect-ratio: 1; border-radius: 50%; background: color-mix(in oklab, var(--ink) 10%, transparent); }
.d-dots > i.on { background: var(--accent); }
.d-bar { height: 6px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 10%, transparent); overflow: hidden; margin-top: 12px; }
.d-bar > i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--s, .4)); border-radius: inherit; background: #3e8e6b; }
.d-limit { margin-top: 10px; justify-content: flex-start; align-items: baseline; gap: 8px; }
.d-big { font: 500 32px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.d-small { font-size: 13px; color: var(--muted); }
.stage > .fit > .d-card { width: 100%; max-width: var(--fit-max, 100%); margin-inline: auto; }
#features .card > .panel { --p-h: 300px; flex: 0 0 auto; height: var(--p-h); }
.stage > .fit > .d-card .d-chips > span { font-size: 13px; }
@media (min-width: 1024px) { #features .card--row > p { min-height: 3lh; } }
@media (max-width: 639px) { #features .card > .panel { --p-h: 180px; } }

/* the app frame: three real screens in the one [data-visual] frame, cut by its foot */
.app-frame .phones { right: 0; }
.app-frame .phones > img { display: block; width: 100%; height: auto; }
.phone-one > img, .lang-shot, .faq-phone > img { display: block; width: 100%; height: auto; border-radius: 20px 20px 0 0;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent), 0 30px 70px -30px color-mix(in oklab, var(--ink) 55%, transparent); }
.faq-shot { --ratio: 60%; }
.faq-phone { width: min(260px, calc(100% - 112px)); }
@media (max-width: 639px) { .faq-shot { --ratio: 100%; } .faq-phone { --ax: 24px !important; width: calc(100% - 48px); } .app-frame .phones { width: 300%; left: -100%; } }

/* privacy: one real screen in the split frame */
.phone-one { width: min(320px, calc(100% - 112px)); }
@media (max-width: 639px) { .phone-one { --ax: 24px !important; width: calc(100% - 48px); } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.facts li { display: flex; align-items: center; gap: var(--s-3); font-weight: 500; }
.facts .tick { width: 20px; height: 20px; flex: none; fill: none; stroke: #2f7a59; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* languages: three linked cards, each a real screen in its language */
.lang-cards .panel { --p-h: 300px; }
.lang-cards .at-rise { width: 240px; }
@media (max-width: 639px) { .lang-cards .panel { --p-h: 200px; } }

/* the wishlist form in the close */
.wishlist { margin-top: var(--s-6); max-width: none; }
.frame--split.frame--lit { --ratio: 100%; }
.app-frame { margin-top: var(--s-7); }
.wishlist .who { display: flex; align-items: center; gap: var(--s-2); border: 0; padding: 0; margin: 0; }
.wishlist .who legend { float: left; padding: 0; margin-right: var(--s-3); font-size: var(--t-small); font-weight: 500; }
.wishlist .who label { cursor: pointer; }
.wishlist .who input { position: absolute; opacity: 0; pointer-events: none; }
.wishlist .who label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border: 1px solid color-mix(in oklab, var(--ink) 25%, transparent); border-radius: var(--r-btn); font-weight: 500; }
.wishlist .who input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--p-bg); }
.wishlist .who input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 2px; }
.wishlist .btn-row { margin-top: var(--s-2); }
.faq__item h3 { font-weight: 500; }
.faq-shot + * { margin-top: 0; }
.faq__item:first-child { padding-top: 0; }
@media (max-width: 639px) {
  .wishlist .who { flex-wrap: wrap; gap: var(--s-3); }
  .wishlist .who legend { float: none; width: 100%; margin: 0 0 var(--s-1); }
}

/* the app frame sizes to its picture below the desktop, so no empty ground fills the rest of the screen */
@media (max-width: 1279px) { .app-frame { flex: none !important; height: auto !important; --ratio: 50%; } }
@media (max-width: 639px) { .app-frame { --ratio: 100%; } }

/* the brand tick stands in for the FAQ's picture below the desktop; the wishlist pills share the row evenly */
.faq-tick { display: none; width: 56px; height: 56px; }
@media (min-width: 800px) and (max-width: 1023px) { #features .card > .panel { --p-h: 380px; } }
@media (max-width: 1023px) { .wishlist .who label { flex: 1; } .wishlist .who label span { width: 100%; justify-content: center; } }

/* small laptops (1024 to 1279): the feature cards go two-up on two screens, the language cards take two screens, the FAQ rows tighten */
@media (min-width: 1024px) and (max-width: 1279px) {
  #features, #languages, #faq { --h: 2; }
  #features .grid > .card { grid-column: span 6; }
  .faq__item { padding-block: var(--s-3); }
}

/* tablet: the privacy frame is shorter, the language cards and the features take two screens, the hero window shows whole rows */
@media (min-width: 640px) and (max-width: 1023px) {
  .frame--split.frame--lit { --ratio: 60%; }
  #features, #languages { --h: 2; }
  #features .card > .panel { --p-h: 300px; }
  .lang-cards .panel { --p-h: 430px; }
  .lang-cards .at-rise { width: 300px; --ax: max(24px, 50% - 150px) !important; }
  #faq .faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
  .faq-shot { display: none; }
  .faq-tick { display: block; }
  .td__rows > li:nth-child(n+3) { display: none; }
}
@media (max-width: 639px) {
  .td__rows { display: none; }
  .frame--split.frame--lit { --ratio: 75%; }
  .langpick { display: none; } /* on a phone the three language cards are the switch */
  .lang-cards .panel { --p-h: 280px; }
  .faq-shot { --ratio: 160%; }
  .faq__item { padding-block: var(--s-5); }
  .faq-tick { display: block; }
}

/* footer: a dark stage in the brand's deep brown. The name NIYAM, large, sits at its foot and fades up once when the footer
   comes into view (page-motion.js adds .is-armed, then .is-in). Without script it just sits there. */
.foot { --bg: var(--p-inv-bg); --ink: var(--p-inv-ink); --muted: var(--p-inv-muted); --action: var(--p-inv-action); --action-ink: var(--p-inv-action-ink);
  --line: color-mix(in oklab, var(--p-inv-ink) 14%, transparent); --line-strong: color-mix(in oklab, var(--p-inv-ink) 30%, transparent);
  position: relative; isolation: isolate; overflow: hidden; border-top: 0;
  min-height: 100vh; min-height: 100svh; padding: var(--padt) 0 0; color: var(--ink);
  background:
    radial-gradient(48% 46% at 50% 100%, color-mix(in oklab, var(--p-accent) 34%, transparent), transparent 72%),
    radial-gradient(80% 60% at 0% 0%, color-mix(in oklab, var(--p-inv-surface) 90%, transparent), transparent 70%),
    var(--p-inv-bg); }
.foot > .wrap { position: relative; z-index: 2; }
.foot__grid { align-items: start; row-gap: var(--s-8); }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; }
.foot__tag { margin: var(--s-6) 0 0; max-width: 17ch; font: 500 clamp(26px, 1.4vw + 17px, 36px)/1.12 var(--font-display); letter-spacing: var(--display-tracking-xl); text-wrap: balance; }
.foot__sub { margin: var(--s-3) 0 0; max-width: 34ch; font-size: var(--t-body); color: var(--muted); }
.foot__cta { display: inline-flex; align-items: center; gap: var(--s-3); min-height: 52px; margin-top: var(--s-6); padding: 0 var(--s-5) 0 var(--s-6); border-radius: 999px;
  background: var(--p-bg); color: var(--p-ink); font: 600 var(--t-body)/1 var(--font-text); text-decoration: none;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--p-accent) 0%, transparent);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease; }
.foot__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px color-mix(in oklab, var(--p-accent) 70%, transparent); }
.foot__cta:active { transform: translateY(0) scale(.98); }
.foot__cta:focus-visible { outline: 2px solid var(--p-inv-ink); outline-offset: 3px; }
.foot__cta .m-arrow { width: 14px; height: 14px; }
.foot__legal { margin: var(--s-7) 0 0; font-size: var(--t-small); color: var(--muted); }
.foot__made { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: var(--t-small); font-weight: 500; }
.foot__made svg { width: 16px; height: 16px; flex: none; fill: var(--p-accent); }
.foot .foot__col h3 { margin: 0 0 var(--s-4); font: 600 var(--t-lead)/1.2 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); }
.foot__col ul { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; font-size: var(--t-small); color: var(--muted); }
.foot__col a { display: inline-block; padding-block: 3px; color: inherit; text-decoration: none; transition: color .15s; }
.foot__col a:hover { color: var(--ink); }
.foot__col a:focus-visible { outline: 2px solid var(--p-inv-ink); outline-offset: 3px; border-radius: 4px; }

/* tablet and phone */
@media (max-width: 1023px) {
  .foot { min-height: 0; }
  .foot__grid { row-gap: var(--s-7); }
  .foot__brand { grid-column: 1 / -1; }
  .foot__col { grid-column: auto / span 4; }
}
@media (max-width: 639px) {
  .foot { padding-top: calc(var(--nav, 72px) + var(--s-6)); }
  .foot__col { grid-column: auto / span 6; }
  .foot__tag { max-width: 14ch; }
}

/* the name, large: set in type, fading into the dark at the foot of the page */
.foot { display: flex; flex-direction: column; }
.foot__giant { display: block; position: relative; z-index: 1; margin: 0 auto; padding-top: var(--s-8); font: 600 min(29vw, 425px)/.8 var(--font-display); letter-spacing: -.01em; text-align: center; white-space: nowrap; text-decoration: none;
  background: linear-gradient(180deg, var(--p-inv-ink) 0%, color-mix(in oklab, var(--p-inv-ink) 55%, transparent) 55%, transparent 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em; margin-top: auto; }
.foot__giant:focus-visible { outline: 2px solid var(--p-inv-ink); outline-offset: 8px; border-radius: 12px; }
.foot.is-armed .foot__giant { opacity: 0; transform: translateY(28px); }
.foot.is-armed.is-in .foot__giant { opacity: 1; transform: none; transition: opacity .9s ease .05s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .05s; }

/* languages, features, privacy and questions: one screen when the content fits, taller when the viewport is short, so nothing runs into the next section (the kit does the same under 1280) */
@media (min-width: 1280px) {
  main > :is(#tithi, #features, #privacy, #languages, #faq) { height: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
  main > :is(#tithi, #features, #privacy, #languages, #faq) > .wrap { flex: 1 0 auto; height: auto; }
}

/* phone view: from 640px the screens are cropped by their frames as the kit lays them out; on a phone every screen is shown whole, inside a phone body,
   so a visitor sees exactly how the app looks on their own screen. */
.hero__phone, .phone-row { display: none; }
@media (max-width: 639px) {
  .phone-shot, .device-frame .stage img { display: block; width: 100%; height: auto; border-radius: 34px; border: 8px solid #1d1411; background: #1d1411;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), 0 0 0 1px rgb(0 0 0 / .25), 0 28px 50px -22px rgb(41 18 8 / .55); }
  /* hero: the Today screen in a phone, under the words */
  .hero--collage { height: auto; min-height: 100svh; }
  .hero__art { flex: none; height: auto; min-height: 0; display: grid; place-items: center; padding: var(--s-6) var(--s-5); }
  .hero__art > .ly-piece--main { display: none; }
  .hero__phone { display: block; width: min(250px, 72%); }
  /* app: the three screens side by side, swipe for the next */
  .app-frame.device-frame { --ratio: 0 !important; padding-inline: 0; padding-block: var(--s-6); }
  main > #app { height: auto; min-height: 0; }
  main > #app > .wrap { height: auto; }
  .app-frame.device-frame { flex: none !important; height: auto !important; }
  .phone-row { display: flex; gap: var(--s-4); width: 100%; padding-inline: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .phone-row::-webkit-scrollbar { display: none; }
  .phone-row .phone-shot { flex: none; width: min(240px, 66vw); max-width: none; scroll-snap-align: center; }
  /* privacy, calendar and language cards: the stage stops pinning the picture to the frame's corner, so the whole phone shows */
  .frame.device-frame { --ratio: 0 !important; padding-block: var(--s-6); }
  .device-frame .stage { position: static; display: flex; justify-content: center; width: 100%; -webkit-mask: none; mask: none; }
  .device-frame:not(.app-frame) .stage > * { position: static; width: min(250px, 72%) !important; }
  .app-frame.device-frame .stage { display: none; }
  .lang-cards .panel { --p-h: 0px; min-height: 0; }
  .lang-cards .stage { padding-block: var(--s-6); }
}

/* hindu calendar: a live month in the app's own look; each date carries its tithi tag, tap one to read it in full (tithi.js) */
.td__tithi { display: inline-flex; align-items: center; gap: 6px; margin: -10px 0 var(--s-4); padding: 3px 10px; border-radius: 99px; background: #fdeab8; color: #5a3410; font-size: 13px; font-weight: 500; }
.tcal-frame { --ratio: 0; padding: var(--s-6); display: block; }
.tcal { width: 100%; max-width: 520px; margin-inline: auto; padding: var(--s-5); background: var(--p-bg); color: var(--ink); border-radius: 16px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent), 0 30px 70px -30px color-mix(in oklab, var(--ink) 55%, transparent); }
.tcal__head { text-align: center; margin-bottom: var(--s-4); }
.tcal__month { margin: 0; font: 600 22px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.tcal__sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.tcal__week, .tcal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tcal__week { margin-bottom: var(--s-2); text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
.tcal__grid { row-gap: 6px; }
.tc { display: grid; justify-items: center; gap: 3px; padding: 4px 0; border: 0; background: none; border-radius: 12px; font: inherit; color: inherit; cursor: pointer;
  transition: background-color .15s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.tc__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tc--today .tc__n { background: var(--ink); color: var(--p-bg); }
.tc[aria-pressed="true"] { background: color-mix(in oklab, var(--accent) 16%, transparent); }
.tc:hover { transform: translateY(-1px); }
.tc:active { transform: scale(.96); }
.tc:focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
/* the tithi tags, as the app draws them: Sud on gold, Vad on grey-lilac, Purnima a bright moon on gold, Amavasya a dark moon on navy */
.tg { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 16px; padding: 0 6px; border-radius: 99px; font: 600 11px/1 var(--font-text); font-style: normal; font-variant-numeric: tabular-nums; }
.tg--sud { background: #fdeab8; color: #5a3410; }
.tg--vad { background: #e5e3ed; color: #3b3850; }
.tg--pur, .tg--ama { min-width: 30px; }
.tg--pur { background: #f0b429; }
.tg--ama { background: #25233f; }
.tg b { width: 9px; height: 9px; border-radius: 50%; }
.tg--pur b { background: #fff; }
.tg--ama b { background: #25233f; box-shadow: 0 0 0 1.5px #c9c6de; }
.tcal__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-4); list-style: none; margin: var(--s-4) 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.tcal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.tcal__detail { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); }
.tcal__date { margin: 0; font: 600 18px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.tcal__full { display: inline-block; margin: var(--s-2) 0 0; padding: 4px 12px; border-radius: 99px; background: #fdeab8; color: #5a3410; font-size: 14px; font-weight: 500; }
@media (max-width: 639px) { .tcal-frame { padding: var(--s-4) var(--s-3); } .tcal { padding: var(--s-4) var(--s-3); } .tc__n { width: 30px; height: 30px; font-size: 14px; } .tg { min-width: 22px; padding: 0 4px; } }
@media (prefers-reduced-motion: reduce) { .tc { transition: none; } .tc:hover, .tc:active { transform: none; } }
#tithi .facts { margin-top: var(--s-2); }
