/* Hallmark · shape: Workbench · genre: modern-minimal · theme: Midnight (deal 3/3, seed loan-emi-calculator-amount-bcb6·50eedcde·2026-12-05·r6) · job: try · draw: manual
 * hero: the head over the calculator band whose answer is a display-cut figure · nav: edge-aligned, the wordmark and two links · footer: a ruled note over the credit lines · imagery: none, the loan's own chart drawn from its schedule · signature: the EMI in the wide light cut, with the yearly bars of interest and principal under it, both redrawn as you type
 * axes: dark/grotesk-sans/cool · posture: committed · copy: verbatim · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, one calculator and one worked page; the band, the wide figure and the chart carry the look */
/* Hallmark · waive 77 · every page · a calculator and a page that works its formula through, not a landing strip */
/* Hallmark · waive 44c · every page · the calculator band is the first screen's visual; on the formula page the head stands over its steps */
/* Hallmark · waive 79 · the calculator · the space under the band is the margin before the prepayment line and the chart */
/* Hallmark · waive 23 · the calculator · the EMI is the one figure Midnight lets carry the azure; every other figure and all display type stay in ink */
/* Hallmark · answered F25 · the schedule and the chart · up to 600px the schedule turns into one labelled card per row and the chart is redrawn to the phone's width; nothing scrolls sideways */
:root {
  color-scheme: dark;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(72% 0.15 27); --color-success: oklch(76% 0.13 150);
  --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 144px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: oklch(14% 0.048 264); --color-paper-2: oklch(18.5% 0.052 264); --color-paper-3: oklch(23% 0.055 264);
  --color-ink: oklch(95% 0.016 250); --color-ink-2: oklch(88% 0.05 245); --color-muted: oklch(73% 0.04 256);
  --color-rule: oklch(29% 0.058 264); --color-rule-2: oklch(40% 0.06 262);
  --color-accent: oklch(80% 0.11 230); --color-accent-2: oklch(58% 0.1 236); --color-accent-ink: oklch(16% 0.05 264); --color-focus: oklch(84% 0.12 228);
  --font-display: "Mona Sans", ui-sans-serif, system-ui, sans-serif; --font-body: var(--font-display); --font-outlier: var(--font-display);
  --radius-card: 0; --radius-pill: 0; --rule-hair: 1px;
  --shadow-card: 0 24px 48px -24px oklch(6% 0.04 264 / 0.7);
  --tracking-display: -0.015em; --display-weight: 300; --display-stretch: 125%;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
/* photographs: duotone paper ink-2 */
[data-slot]:has(> img) { isolation: isolate; background: var(--color-ink-2); outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
[data-slot] > img { z-index: 0; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; }
[data-slot]:has(> img)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-paper); mix-blend-mode: lighten; pointer-events: none; }

:root {
  --color-chart-int: oklch(65% 0.12 290); --color-chart-pri: oklch(50% 0.11 230);
}

@font-face { font-family: "Mona Sans"; src: url("/fonts/mona-latin.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona Sans"; src: url("/fonts/mona-ext.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body { color: var(--color-ink-2); font-size: 1.0625rem; line-height: 1.6; }
h1, h2 { font-weight: var(--display-weight); font-stretch: var(--display-stretch); color: var(--color-ink); line-height: 1.04; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: -100px; background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); z-index: var(--z-modal); }
.skip:focus-visible { top: var(--space-md); }
a { color: var(--color-ink); text-decoration-color: var(--color-rule-2); }
a:hover { text-decoration-color: var(--color-accent); }

.bar { border-bottom: var(--rule-hair) solid var(--color-rule); }
.bar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-xl); padding-block: var(--space-sm); }
.wordmark { font-weight: 300; font-stretch: 125%; font-size: var(--text-xl); color: var(--color-ink); text-decoration: none; letter-spacing: -0.015em; }
.wordmark span { color: var(--color-muted); }
.bar__nav { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.bar__nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 500; color: var(--color-muted); }
.bar__nav a:hover { color: var(--color-ink); }
.bar__nav a:active, .seg label:active span { transform: translateY(1px); }
.bar__nav a[aria-current="page"] { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

.hero { padding-block: var(--space-2xl) 0; }
.hero h1 { font-size: var(--text-display-s); max-width: 16ch; }
.hero .lead { margin-top: var(--space-sm); max-width: 44ch; }
.settle { animation: settle var(--dur-long) var(--ease-out) both; }
@keyframes settle { from { opacity: 0.6; } }

/* the calculator band: four inputs over the answer */
.calc { margin-top: var(--space-xl); }
.band { background: var(--color-paper-2); color: var(--color-ink-2); padding: var(--space-xl); }
.grid4 { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr; gap: var(--space-lg); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 16rem)); gap: var(--space-lg); }
.field { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.field input { font-size: 1.5rem; line-height: 1; height: 52px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--color-ink); width: 100%; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper); }
.field input::placeholder { color: var(--color-muted); }
.field input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled { opacity: 0.5; cursor: not-allowed; }
.out { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.out[data-state="empty"] .emi, .out[data-state="empty"] .totals { opacity: 0.35; }
.emi { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
.emi__fig { font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--text-display); letter-spacing: -0.03em; line-height: 0.95; color: var(--color-accent); overflow-wrap: anywhere; }
.emi__unit { font-size: var(--text-lg); color: var(--color-ink-2); }
.totals { margin: var(--space-lg) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-md) var(--space-2xl); }
.totals dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.totals dd { margin: 0; font-size: var(--text-xl); font-weight: 300; font-stretch: 125%; color: var(--color-ink); }
.say { margin: var(--space-lg) 0 0; font-size: var(--text-md); color: var(--color-ink-2); max-width: 62ch; }


.sec { padding-top: var(--section-gap-s); }
.sec h2 { font-size: var(--text-section); }
.sec h2 + * { margin-top: var(--space-lg); }
.sec--plain { padding-block: var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); }
.sec--first { padding-top: var(--space-2xl); }
.head + .sec { border-top: var(--rule-hair) solid var(--color-rule); }
.sec__note { margin-top: var(--space-lg); max-width: 62ch; }
.head ~ .sec { padding-top: var(--section-gap); padding-bottom: var(--space-md); }
.head + .sec { padding-top: var(--space-2xl); }
.head ~ .sec:last-of-type { padding-bottom: var(--section-gap-s); }

/* the chart: the schedule's own numbers, coloured by the two tokens above */
.key { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.key span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.key i { display: inline-block; width: 14px; height: 14px; }
.key__int { background: var(--color-chart-int); }
.key__pri { background: var(--color-chart-pri); }
.chart-wrap { margin-top: var(--space-md); overflow-x: auto; max-width: 860px; }
.chart { width: 100%; height: auto; }
.c-grid { stroke: var(--color-rule); stroke-width: 1; }
.c-ax { fill: var(--color-muted); font-size: 15px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.c-int { fill: var(--color-chart-int); }
.c-pri { fill: var(--color-chart-pri); }
.c-bar:hover rect { opacity: 0.8; }

/* the schedule */
.seg { border: 0; margin: var(--space-lg) 0 0; padding: 0; display: flex; gap: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); font-weight: 500; color: var(--color-ink-2); }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.t-wrap { margin-top: var(--space-md); overflow-x: auto; max-width: 860px; }
.t-wrap[data-by="month"] { max-height: 70vh; overflow-y: auto; }
.t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.t caption { text-align: left; caption-side: top; padding-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.t th, .t td { text-align: right; padding: var(--space-md) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); white-space: nowrap; }
.t thead { position: sticky; top: 0; background: var(--color-paper); }
.t thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.t th:first-child { text-align: left; }
.t tbody th { font-weight: 500; color: var(--color-muted); }
.t tbody td { color: var(--color-ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); max-width: 68ch; }
.steps li { padding: var(--space-sm) var(--space-md); background: var(--color-paper-2); }
.steps b { color: var(--color-ink); font-weight: 500; }

.head { padding-block: var(--space-3xl) var(--space-2xl); }
.head h1 { font-size: var(--text-display-s); max-width: 18ch; }
.head .lead { margin-top: var(--space-md); max-width: 56ch; }

.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__in { padding-block: var(--space-xl); display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.foot__note, .foot__line { margin: 0; max-width: 72ch; }

@media (max-width: 860px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .head { padding-block: var(--space-xl) var(--space-lg); }
  .hero { padding-top: var(--space-xl); }
  .band { padding: var(--space-lg) var(--space-md); }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emi__fig { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  /* the schedule as one card per row: the year (or month) and the balance on top, interest and principal under them */
  .t-wrap { overflow-x: visible; }
  .t, .t tbody, .t caption { display: block; }
  .t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .t tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "when bal" "int pri"; gap: var(--space-xs) var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .t th, .t td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .t tbody th { grid-area: when; align-self: end; font-size: var(--text-lg); color: var(--color-ink); }
  .t tbody th::before { content: attr(data-label) " "; }
  .t td:nth-of-type(1) { grid-area: int; }
  .t td:nth-of-type(2) { grid-area: pri; }
  .t td:nth-of-type(3) { grid-area: bal; }
  .t td::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
}

/* the Menu toggle (crease.in's pattern): on a phone the list opens from it, by its address (#menu) when the script is not there */
.bar__menu { display: none; min-height: 44px; align-items: center; padding: 0 var(--space-md); font-weight: 500; color: var(--color-ink); text-decoration: none; border: var(--rule-hair) solid var(--color-rule-2); }
.bar__menu:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* breadcrumbs over an inner page */
.crumbs { padding-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-xs); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-rule-2); }
.crumbs a { color: var(--color-muted); }
.crumbs + .hero { padding-top: var(--space-lg); }
.crumbs + .head { padding-top: var(--space-xl); }

/* a small tool: its fields over its answer, in the calculator's band */
.tool { margin-top: var(--space-lg); max-width: 1040px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.tool__out { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.tool__out .say:first-child { margin-top: 0; }
.tool__fig { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
.tool__fig .num { font-variant-numeric: tabular-nums; font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: var(--text-3xl); line-height: 1; letter-spacing: -0.02em; color: var(--color-accent); overflow-wrap: anywhere; }
.tool__unit { font-size: var(--text-lg); color: var(--color-ink-2); }
.say[data-state="empty"] { color: var(--color-muted); }

/* comparison tables: a few rows, a few columns */
.cmp { border-collapse: collapse; width: 100%; max-width: 860px; margin-top: var(--space-md); font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: right; }
.cmp thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.cmp th:first-child { text-align: left; padding-left: 0; }
.cmp tbody th { font-weight: 500; color: var(--color-ink); }
.cmp td { color: var(--color-ink); }

/* the EMI chart per lakh: compact enough to stay a table on a phone */
.lakh-wrap { margin-top: var(--space-md); max-width: 860px; }
.lakh { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.lakh caption { text-align: left; caption-side: top; padding-bottom: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.lakh th, .lakh td { padding: var(--space-xs) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: right; }
.lakh thead th { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.lakh tbody th { text-align: left; font-weight: 500; color: var(--color-muted); }
.lakh td { color: var(--color-ink); }
.lakh tbody tr:hover td { background: var(--color-paper-2); }

/* a rule quoted from RBI: the plain line, its words, where they stand */
.rule { margin-top: var(--space-xl); max-width: 68ch; }
.sec h2 + .rule, .sec__note + .rule { margin-top: var(--space-lg); }
.rule__say { margin: 0; color: var(--color-ink); font-weight: 500; }
.rule blockquote, .register blockquote { margin: var(--space-sm) 0 0; padding: var(--space-sm) var(--space-md); border-left: 2px solid var(--color-accent-2); background: var(--color-paper-2); color: var(--color-ink-2); }
.rule blockquote p, .register blockquote p { margin: 0; }
.rule__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.ref { color: var(--color-muted); }
.sec--src .sec__note { margin-top: 0; font-size: var(--text-sm); color: var(--color-muted); }
.head + .sec--src { padding-top: var(--space-lg); padding-bottom: 0; }

/* lists of pages */
.idx { list-style: none; margin: var(--space-lg) 0 0; padding: 0; max-width: 860px; border-top: var(--rule-hair) solid var(--color-rule); }
.idx li { padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2xs) var(--space-lg); align-items: baseline; }
.idx a { font-size: var(--text-lg); font-weight: 500; text-underline-offset: 0.2em; }
.idx .num { color: var(--color-muted); font-size: var(--text-sm); }
.idx p { margin: 0; grid-column: 1 / -1; color: var(--color-ink-2); max-width: 64ch; }

/* the register of sources */
.register { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xl); max-width: 72ch; }
.register__claim { margin: 0; color: var(--color-ink); font-weight: 500; }
.register__src { margin: var(--space-xs) 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.register li:target blockquote { border-left-color: var(--color-accent); }

@media (max-width: 760px) {
  .bar__menu { display: inline-flex; }
  .bar__nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-block: var(--space-2xs) var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
  .bar__nav:target, .bar__nav[data-open] { display: flex; }
  .bar__nav a { min-height: 48px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sec, .head ~ .sec { padding-top: var(--space-2xl); }
  .head ~ .sec:last-of-type { padding-bottom: var(--space-2xl); }
  .tool__fig .num { font-size: var(--text-2xl); }
  /* a comparison table as one card per row: its name on top, each figure under its column's name */
  .cmp, .cmp tbody { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cmp tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .cmp th, .cmp td { display: block; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  .cmp tbody th { grid-column: 1 / -1; font-size: var(--text-lg); }
  .cmp td::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); }
  .lakh th, .lakh td { padding: var(--space-xs) var(--space-2xs); font-size: var(--text-xs); }
  .idx li { grid-template-columns: minmax(0, 1fr); }
}

/* the tools that take dates: two fields side by side, one under the other on a phone (a date field will not shrink far) */
.field { min-width: 0; }
.grid3--dates { grid-template-columns: repeat(2, minmax(0, 16rem)); }
.field input[type="date"] { font-size: var(--text-lg); min-width: 0; }
/* the RBI hub: a table of documents reads left to right */
.docs .cmp th, .docs .cmp td { text-align: left; }
@media (max-width: 600px) {
  .grid3--dates { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .docs .cmp tr { grid-template-columns: minmax(0, 1fr); }
}
