/* jyotish.vip — Black Label canon, edition 5, 06.11.2026: fonts, tokens of both themes and of the sky island,
   type roles and element base. Component rules live in each page and read these names only. */

/* Fonts: own files in /fonts/ (SIL OFL 1.1, /fonts/OFL.txt). Source Serif 4 — the official variable files, whole;
   Fira Sans and JetBrains Mono — subsets, unicode-range below.
   All three swap. Source Serif 4 has a metric-matched fallback (below); 'optional' was measured and refused: with it
   a cold first visit, even from a local server, never shows Source Serif 4. */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:200 900;font-display:swap;
  src:url(/fonts/SourceSerif4-VF.woff2) format('woff2')}
@font-face{font-family:'Source Serif 4';font-style:italic;font-weight:200 900;font-display:swap;
  src:url(/fonts/SourceSerif4-Italic-VF.woff2) format('woff2')}
/* The fallback of --font-display while Source Serif 4 loads: the local Georgia, sized to the widths Source Serif 4
   sets on this site and given its vertical metrics (ascent 1.036, descent 0.335 em), so that the swap does not reflow
   the page. Widths measured 12.11.2026 (500 at 24–32 px — 0.99–1.01 of Georgia, strong 700 at 18 px — 0.915 of
   Georgia Bold); the 400 and 600 sizes are fitted to the line count of every title and reading paragraph of the
   five pages at 375 and 1440 px. Overrides are divided by size-adjust, which scales them. */
@font-face{font-family:Georgia;font-style:normal;font-weight:400;src:local('Georgia');
  size-adjust:104.5%;ascent-override:99.14%;descent-override:32.06%;line-gap-override:0%}
@font-face{font-family:Georgia;font-style:normal;font-weight:500;src:local('Georgia');
  size-adjust:99.5%;ascent-override:104.12%;descent-override:33.67%;line-gap-override:0%}
@font-face{font-family:Georgia;font-style:normal;font-weight:600;src:local('Georgia Bold'),local('Georgia-Bold');
  size-adjust:82%;ascent-override:126.34%;descent-override:40.85%;line-gap-override:0%}
@font-face{font-family:Georgia;font-style:normal;font-weight:700 900;src:local('Georgia Bold'),local('Georgia-Bold');
  size-adjust:91.5%;ascent-override:113.22%;descent-override:36.61%;line-gap-override:0%}
@font-face{font-family:Georgia;font-style:italic;font-weight:400 900;src:local('Georgia Italic'),local('Georgia-Italic');
  size-adjust:102.8%;ascent-override:100.78%;descent-override:32.59%;line-gap-override:0%}
/* The same for --font-mono, whose figures and names sit inside reading lines: the local Consolas at the width of
   JetBrains Mono (1.091 of Consolas, measured) with its vertical metrics (ascent 1.02, descent 0.30 em). */
@font-face{font-family:Consolas;font-style:normal;font-weight:400 500;src:local('Consolas');
  size-adjust:109.1%;ascent-override:93.49%;descent-override:27.5%;line-gap-override:0%}
/* The same for --font-body: the local Segoe UI at the width of Fira Sans over the text of the ten pages (Fira Sans 400
   is 1.033 of Segoe UI, 500 and 600 are 1.004 of Segoe UI Semibold, italic is 1.045 of Segoe UI Italic; measured from
   the font files 13.11.2026) with the vertical metrics of Fira Sans (ascent 0.935, descent 0.265 em). Without it the
   swap reflowed the answer of the nakshatra page at phone width (L1, CLS 0.066). */
@font-face{font-family:'Segoe UI';font-style:normal;font-weight:400;src:local('Segoe UI'),local('SegoeUI');
  size-adjust:103.3%;ascent-override:90.51%;descent-override:25.65%;line-gap-override:0%}
@font-face{font-family:'Segoe UI';font-style:normal;font-weight:500 900;src:local('Segoe UI Semibold'),local('SegoeUI-Semibold');
  size-adjust:100.4%;ascent-override:93.13%;descent-override:26.39%;line-gap-override:0%}
@font-face{font-family:'Segoe UI';font-style:italic;font-weight:400 900;src:local('Segoe UI Italic'),local('SegoeUI-Italic');
  size-adjust:104.5%;ascent-override:89.47%;descent-override:25.36%;line-gap-override:0%}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:400;font-display:swap;
  src:url(/fonts/FiraSans-400.woff2) format('woff2');
  unicode-range:U+0000-024F,U+0250-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2190-21FF,U+2200-22FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:500;font-display:swap;
  src:url(/fonts/FiraSans-500.woff2) format('woff2');
  unicode-range:U+0000-024F,U+0250-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2190-21FF,U+2200-22FF}
@font-face{font-family:'Fira Sans';font-style:normal;font-weight:600;font-display:swap;
  src:url(/fonts/FiraSans-600.woff2) format('woff2');
  unicode-range:U+0000-024F,U+0250-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2190-21FF,U+2200-22FF}
@font-face{font-family:'Fira Sans';font-style:italic;font-weight:400;font-display:swap;
  src:url(/fonts/FiraSans-400i.woff2) format('woff2');
  unicode-range:U+0000-024F,U+0250-02FF,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2070-209F,U+20A0-20CF,U+2100-214F,U+2190-21FF,U+2200-22FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;
  src:url(/fonts/JetBrainsMono-400.woff2) format('woff2');
  unicode-range:U+0000-017F,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2190-21FF,U+2212}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;
  src:url(/fonts/JetBrainsMono-500.woff2) format('woff2');
  unicode-range:U+0000-017F,U+0300-036F,U+1E00-1EFF,U+2000-206F,U+2190-21FF,U+2212}

/* Tokens — blocks 1–3 of the canon file, edition 5, 06.11.2026, copied value for value. */
:root {
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;  --space-5: 20px;  --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-card: 4px;
  --radius-inner: 2px;
  --radius-chip: 2px;
  --radius-pill: 999px;
  --ease-inout: cubic-bezier(.4, 0, .2, 1);
  --ease-picture: cubic-bezier(.22, 1, .36, 1);
  --duration-fast: 120ms;
  --duration-mid: 220ms;
  --duration-slow: 600ms;
  --duration-picture: 1200ms;
  --stagger-picture: 80ms;
  --duration-ambient: 60s;
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body: 'Fira Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body-condensed: 'Fira Sans Condensed', 'Fira Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --fs-caption: 12px;   --fs-small: 14px;   --fs-body: 16px;   --fs-lead: 20px;   --fs-read: 18px;
  --fs-h4: 24px;        --fs-h3: 32px;      --fs-h2: 40px;
  --fs-h1: clamp(36px, 2.2vw + 28px, 48px);
  --fs-display: clamp(44px, 3.5vw + 30px, 64px);
  --fs-hero: clamp(52px, 5vw + 32px, 80px);
  --fs-data-hero: clamp(32px, 2vw + 24px, 40px);
  --lh-tight: 1.1;  --lh-snug: 1.25;  --lh-body: 1.6;  --lh-dense: 1.45;
  --track-caps: .14em;
  --track-display: -.01em;
  --surface-sky: #08060A;
}

/* Marks of other networks: each in its own colour, the same in both themes; --net-mark-ink is the white under a
   mark's open parts. Brass recolours only our own marks. */
:root {
  --net-whatsapp: #25D366;  --net-telegram: #26A5E4;  --net-facebook: #0866FF;  --net-x: #000000;
  --net-threads: #000000;   --net-reddit: #FF4500;    --net-pinterest: #E60023; --net-linkedin: #0A66C2;
  --net-instagram: #E4405F; --net-slack-blue: #36C5F0; --net-slack-green: #2EB67D; --net-slack-yellow: #ECB22E;
  --net-slack-red: #E01E5A; --net-mark-ink: #FFFFFF;
}

:root, [data-theme="light"], [data-theme="almanac"] {
  color-scheme: light;
  --surface-page: #EFE9DC;
  --surface-card: #FAF6EE;
  --surface-focal: #FDFBF6;
  --text-ink: #241F17;
  --text-body: #473F31;
  --text-muted: #6B5F4D;
  --text-soft: #8A7C68;
  --accent-struct: #B08D4F;
  --accent-struct-text: #7A5E32;
  --accent-emphasis: #B08D4F;
  --text-on-struct: #241F17;
  --accent-action: #2F6356;
  --accent-action-text: #2C5A4E;
  --text-on-action: #FDFBF6;
  --accent-hot: #9B2D1F;
  --text-on-hot: #FDF6E3;
  --status-good: #37704F;
  --status-warn: #7E5F22;
  --status-bad: #A6402E;
  --hairline: rgba(176, 141, 79, .26);
  --hairline-2: rgba(176, 141, 79, .14);
  --shadow-card: 0 1px 2px rgba(60, 48, 28, .04), 0 6px 20px rgba(60, 48, 28, .07), inset 0 0 0 1px var(--hairline-2);
  --shadow-card-hover: 0 2px 4px rgba(60, 48, 28, .06), 0 14px 34px rgba(60, 48, 28, .11), inset 0 0 0 1px var(--hairline);
  --shadow-focal: 0 2px 6px rgba(60, 48, 28, .05), 0 18px 46px rgba(60, 48, 28, .10), inset 0 0 0 1px rgba(176, 141, 79, .18);
  --glass-bg: transparent;  --glass-blur: 0px;  --glass-border: transparent;
  --glow-soft: none;  --glow-card: none;  --glow-strong: none;
}

[data-theme="dark"], [data-theme="astra"] {
  color-scheme: dark;
  --surface-page: #191816;
  --surface-card: #211F1C;
  --surface-focal: #2E2B27;
  --text-ink: #ECEAE4;
  --text-body: #D5CFC3;
  --text-muted: #ACA497;
  --text-soft: #8C857A;
  --accent-struct: #C19A6B;
  --accent-struct-text: #C19A6B;
  --accent-emphasis: #C19A6B;
  --text-on-struct: #191816;
  --accent-action: #8FC4B0;
  --accent-action-text: #8FC4B0;
  --text-on-action: #191816;
  --accent-hot: #9B2D1F;
  --text-on-hot: #FDF6E3;
  --status-good: #5A9E6A;
  --status-warn: #D4A830;
  --status-bad: #C97070;
  --hairline: rgba(193, 154, 107, .26);
  --hairline-2: rgba(193, 154, 107, .14);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--hairline-2);
  --shadow-card-hover: 0 0 15px rgba(193, 154, 107, .15), inset 0 0 0 1px var(--hairline);
  --shadow-focal: 0 0 0 1px rgba(193, 154, 107, .12), 0 6px 28px rgba(0, 0, 0, .50);
  --glass-bg: rgba(33, 31, 28, .62);  --glass-blur: 12px;  --glass-border: rgba(193, 154, 107, .18);
  --glow-soft: 0 0 5px rgba(193, 154, 107, .20);
  --glow-card: 0 0 15px rgba(193, 154, 107, .15);
  --glow-strong: 0 0 25px rgba(193, 154, 107, .50);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface-page: #191816;  --surface-card: #211F1C;  --surface-focal: #2E2B27;
    --text-ink: #ECEAE4;  --text-body: #D5CFC3;  --text-muted: #ACA497;  --text-soft: #8C857A;
    --accent-struct: #C19A6B;  --accent-struct-text: #C19A6B;  --accent-emphasis: #C19A6B;  --text-on-struct: #191816;
    --accent-action: #8FC4B0;  --accent-action-text: #8FC4B0;  --text-on-action: #191816;  --accent-hot: #9B2D1F;  --text-on-hot: #FDF6E3;
    --status-good: #5A9E6A;  --status-warn: #D4A830;  --status-bad: #C97070;
    --hairline: rgba(193, 154, 107, .26);  --hairline-2: rgba(193, 154, 107, .14);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--hairline-2);
    --shadow-card-hover: 0 0 15px rgba(193, 154, 107, .15), inset 0 0 0 1px var(--hairline);
    --shadow-focal: 0 0 0 1px rgba(193, 154, 107, .12), 0 6px 28px rgba(0, 0, 0, .50);
    --glass-bg: rgba(33, 31, 28, .62);  --glass-blur: 12px;  --glass-border: rgba(193, 154, 107, .18);
    --glow-soft: 0 0 5px rgba(193, 154, 107, .20);  --glow-card: 0 0 15px rgba(193, 154, 107, .15);
    --glow-strong: 0 0 25px rgba(193, 154, 107, .50);
  }
}

/* Site names outside the canon contract: the stack for graha and rāśi glyphs. Fira Sans, the text face, comes first
   and the symbol fonts stay a fallback, not a fourth face (Black Label §3). No face of the site holds these glyphs,
   so each one is drawn from the first symbol font the device has. */
:root {
  --font-glyph: 'Fira Sans', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', serif;
}

/* The sky island: the night surface in both themes; inside it the contract names take the obsidian values.
   --planet-rahu (SUTRA layer) — only the glyphs of Rāhu and Ketu. */
.sky-island {
  color-scheme: dark;
  --text-ink: #ECEAE4;
  --text-body: #D5CFC3;
  --text-muted: #ACA497;
  --accent-struct: #C19A6B;
  --accent-struct-text: #C19A6B;
  --hairline: rgba(193, 154, 107, .26);
  --hairline-2: rgba(193, 154, 107, .14);
  --accent-action: #8FC4B0;
  --accent-action-text: #8FC4B0;
  --planet-rahu: #8B7EC8;
}

/* Element base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; background-color: var(--surface-page) }
body {
  background-color: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit }
a { color: var(--accent-action-text); text-decoration: underline; text-underline-offset: 3px }
a:hover { color: var(--accent-struct-text) }
:focus-visible { outline: 2px solid var(--accent-action); outline-offset: 2px }
strong { color: var(--text-ink); font-weight: 700 }   /* Source Serif 4 Bold in reading; Fira Sans takes its 600 */

/* Title: Source Serif 4 */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variant-numeric: lining-nums;
  color: var(--text-ink);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight) }
h2 { font-size: var(--fs-h3); line-height: var(--lh-snug) }
h3 { font-size: var(--fs-h4); line-height: var(--lh-snug) }
@media (min-width: 546px) { h1 { letter-spacing: var(--track-display) } }   /* the title tracks from 40 px */

/* Long reading: Source Serif 4 at 18 px */
.reading p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-read);
  line-height: var(--lh-body);
  color: var(--text-body);
  max-width: 30.5em;   /* ≤ 72 characters a line at 18 px (measured); em, not ch: ch follows the face in use and moved the measure at the swap */
}
.reading em { font-style: italic; font-weight: 400 }

/* Text with figures: #dasha-now carries IAST lord names with the date, so Fira Sans with tabular figures. */
#dasha-now { font-family: var(--font-body); font-variant-numeric: tabular-nums; color: var(--text-ink) }

/* Figures: JetBrains Mono */
.mono, td.mono, .badge, #desk-shift-out, #chart-epoch-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--text-ink);
}

/* Label: JetBrains Mono 500, capitals */
.kicker, .brand-sub, th, .folio-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: var(--lh-dense);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--accent-struct-text);
}

/* Sanskrit in transliteration is not set in JetBrains Mono: inside a figure or a label the word takes Fira Sans,
   the figure stays mono. */
.iast { font-family: var(--font-body) }

/* Glyphs: the symbol fonts */
.w-glyph, .w-sign { font-family: var(--font-glyph) }

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

/* Author block */
.author-block { margin: 0 0 var(--space-10) }
.reading .author-block { margin: var(--space-6) 0 }
.author-block h2 { margin: 0 0 var(--space-4) }
.author-block p { color: var(--text-body); margin: 0 0 var(--space-4) }
.author-lead, .author-note { max-width: 36em }
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin: var(--space-5) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.author-item { min-width: 0 }
.author-item + .author-item { padding-top: var(--space-5); border-top: 1px solid var(--hairline-2) }
.author-item h3 { margin: 0 0 var(--space-2) }
.author-block .author-item p, .author-block .author-note { margin: 0 }
@media (min-width: 900px) {
  .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6) }
  .author-item + .author-item { padding-top: 0; border-top: 0; padding-left: var(--space-6); border-left: 1px solid var(--hairline-2) }
}

/* Phone width: static tables stack into cards (a label before each value) and the menu sits in one row under the
   brand and the theme button, so nothing is hidden behind a scroll. The longest item drops its second word at this
   width so that five items fit the row. Calculator results have their own rules in crystal.css. */
@media (max-width: 600px) {
  .header-inner .brand { grid-column: 1; grid-row: 1; min-width: 0; flex-wrap: wrap; }
  .header-inner .theme-btn { grid-column: 2; grid-row: 1; }
  .header-inner .site-nav { grid-column: 1 / -1; grid-row: 2; overflow: visible; flex-wrap: wrap; row-gap: 0; }
  header.site-header { padding: var(--space-1) var(--space-2); }
  .header-inner { row-gap: 0; }
  .header-inner .site-nav { justify-content: space-between; gap: 0; }
  .header-inner .site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: 0; }
  .header-inner .site-nav .nav-long { display: none; }

  table.stack, table.stack tbody, table.stack tr { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  table.stack caption { display: block; }
  table.stack tr { border-top: 1px solid var(--hairline-2); padding: var(--space-2) 0; }
  table.stack td { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); border: 0; padding: var(--space-1) 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  table.stack tr > td:first-child { display: block; text-align: left; font-weight: 500; color: var(--text-ink); }
  table.stack td::before { flex: none; color: var(--text-muted); text-align: left; }
  table.stack td[data-label]::before { content: attr(data-label); }
  table.stack td > time, table.stack td > span.t-local { display: block; grid-column: 2; }
  table.stack td.mono { white-space: normal; }
  /* A row heading (th in tbody) is the card's title. A table of prose (rules, the readings of the book) puts the
     label above its text, both from the left: beside a long value the label column would leave it a sliver. */
  table.stack tbody th { display: block; border: 0; padding: var(--space-1) 0; text-align: left; white-space: normal; }
  table.stack.stack-text td { display: block; text-align: left; }
  table.stack.stack-text td[data-label]::before { display: block; font-size: var(--fs-caption); }
  .planet-table tr > td:first-child { display: block; }
  .planet-table, .planet-table tbody, .planet-table tr, #sky-nine, #sky-nine tbody, #sky-nine tr { display: block; table-layout: auto; width: 100%; }
  .planet-table thead, #sky-nine thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .planet-table tr, #sky-nine tr { border-top: 1px solid var(--hairline-2); padding: var(--space-2) 0; }
  .planet-table td, table#sky-nine td { display: flex; justify-content: space-between; gap: var(--space-3); border: 0; padding: var(--space-1) 0; text-align: right; white-space: normal; }
  .planet-table td::before, table#sky-nine td::before { flex: none; color: var(--text-muted); text-align: left; }
  .planet-table td:first-child, table#sky-nine td:first-child { display: block; text-align: left; }
  .planet-table td:first-child::before, table#sky-nine td:first-child::before { content: none; }
  .planet-table td:nth-child(2)::before { content: "Rāśi"; }
  .planet-table td:nth-child(3)::before { content: "Longitude"; }
  .planet-table td:nth-child(4)::before { content: "Nakshatra · Pada"; }
  .planet-table td:nth-child(5)::before { content: "D9 Navāṁśa"; }
  table#sky-nine td:nth-child(2)::before { content: "Sign"; }
  table#sky-nine td:nth-child(3)::before { content: "Degree"; }
  table#sky-nine td:nth-child(4)::before { content: "Nakshatra"; }
  table#sky-nine td:nth-child(5)::before { content: "Pada"; }
  table#sky-nine td:nth-child(6)::before { content: "Motion"; }
  table#sky-nine td:nth-child(7)::before { content: "State"; }
  table#sky-nine td:nth-child(8)::before { content: "From your Moon"; }
  #pos-table, #pos-table tbody, #pos-table tr, #aya-table, #aya-table tbody, #aya-table tr { display: block; width: 100%; }
  #pos-table thead, #aya-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  #pos-table tr, #aya-table tr { border-top: 1px solid var(--hairline-2); padding: var(--space-2) 0; }
  #pos-table td, #aya-table td { display: flex; justify-content: space-between; gap: var(--space-3); border: 0; padding: var(--space-1) 0; text-align: right; white-space: normal; overflow-wrap: anywhere; }
  #pos-table td::before, #aya-table td::before { flex: none; color: var(--text-muted); text-align: left; }
  #pos-table td:first-child, #aya-table td:first-child { display: block; text-align: left; font-weight: 500; color: var(--text-ink); }
  #pos-table td:first-child::before, #aya-table td:first-child::before { content: none; }
  #pos-table td:nth-child(2)::before { content: "Sign"; }
  #pos-table td:nth-child(3)::before { content: "Longitude"; }
  #pos-table td:nth-child(4)::before { content: "Nakshatra · Pada"; }
  #pos-table td:nth-child(5)::before { content: "Daily motion"; }
  #aya-table td:nth-child(2)::before { content: "Mean"; }
  #aya-table td:nth-child(3)::before { content: "With nutation"; }
  #aya-table td:nth-child(4)::before { content: "From Lahiri"; }
}

/* Term hints: marks, the hint panel, the header button. A mark is a dotted underline in the structure colour and
   nothing else, so the layout does not move; the hint is a panel in body. */
span.t[data-t] {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--accent-struct);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html[data-term-hints="on"] span.t[data-t] { cursor: help }
/* A finger needs 36 px: vertical padding of an inline box does not move the lines. */
@media (pointer: coarse) { span.t[data-t] { padding-block: calc(19px - .6em) } }

#term-tip {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: max-content;
  max-width: min(22rem, calc(100vw - 16px));
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-card);
  background-color: var(--surface-focal);
  box-shadow: var(--shadow-focal);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: var(--lh-dense);
  text-align: left;
  overflow-wrap: break-word;
}
#term-tip[hidden] { display: none }
#term-tip p { margin: 0 0 var(--space-2); max-width: none; color: var(--text-body); font-family: var(--font-body); font-size: var(--fs-small); line-height: var(--lh-dense) }
#term-tip .tt-iast { color: var(--text-ink); font-weight: 600 }
#term-tip .tt-en { margin-left: var(--space-2); color: var(--text-muted) }
#term-tip .tt-src { color: var(--text-muted) }
#term-tip .tt-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); margin: 0 }
#term-tip .tt-hide {
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-inner);
  background: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--text-ink);
  font-size: var(--fs-small);
  cursor: pointer;
}
#term-tip .tt-hide:hover { box-shadow: inset 0 0 0 1px var(--accent-struct) }

/* The "Term hints" switch sits beside the theme switch: one row on the desktop, the second row of the header from
   601 to 1100 px, the first row on the phone, where both switches take the caption size so that the header keeps
   its height (the brand needs 160 px of the 344 at 360 px). The width is that of "Term hints: off" in both states. */
.header-inner .hints-btn { min-width: 9.1em }
@media (max-width: 1100px) {
  .header-inner:has(> .hints-btn) { grid-template-columns: minmax(0, 1fr) auto auto }
}
@media (max-width: 600px) {
  .header-inner:has(> .hints-btn) { column-gap: var(--space-1) }
  .header-inner .hints-btn { grid-column: 3; grid-row: 1 }
  .header-inner:has(> .hints-btn) .theme-btn { font-size: var(--fs-caption); padding-inline: var(--space-1) }
}

@media print {
  span.t[data-t] { text-decoration: none; padding: 0 }
  #term-tip { display: none !important }
}
