/* Maadhyam v2: page CSS. The world: Karnataka's bilingual route boards. Every procedure is a route
   with its own code, colour, terminus and timetable; the board is the night ground with light text.
   Tokens come from the :root block start.mjs printed; this file adds only what sits inside a visual,
   the route colours and the browser surfaces. */

:root {
  /* the lit ground behind UI pictures: the brand's teal-grey, set here so it never depends on <html data-ground> */
  --ground-bg: #cfdcd8; --ground-surface: #dce7e3; --ground-ink: #12211f; --ground-muted: #435250; --ground-accent: #0b6b66;
  /* route colours: the product's own procedure colours (plum is only ever "protected by its own law") */
  --rt-eq: #1f5fa8; --rt-gr: #0b6b66; --rt-om: #33434f; --rt-ic: #6b2a6b; --rt-ar: #8a3a86; --rt-ag: #1e6b3a; --rt-ex: #5a6872;
  --board: #0f2a2b; --board-2: #14363a; --board-line: #2e5153; --board-ink: #e8f0ee; --board-soft: #a9c3bf; --board-hi: #8fc9c2;
  --amber: #9a4d00; --amber-50: #fcefd9; --plum-50: #f4e8f3; --green-50: #e5f3ea;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: color-mix(in oklab, var(--ink) 28%, transparent) transparent;
}
::selection { background: #cfe7e3; color: #12211f; }
.ground-inverse ::selection { background: var(--board-hi); color: var(--board); }
:lang(kn) { font-family: "Noto Sans Kannada", var(--font-text); line-height: 1.6; }
.num, .mw__ref, .mb__ref, .rg-when, .rt__clock, .tr-ext { font-variant-numeric: tabular-nums; }

/* the logo: the client's two rings and the Kannada name */
.nav__logo { gap: 10px; }
.mz-mark { width: 34px; height: 20px; flex: none; }
.mz-kn { font-size: 15px; color: var(--muted); letter-spacing: 0; }
@media (max-width: 639px) { .nav .mz-kn { display: none; } .mz-mark { width: 28px; height: 17px; } }

/* a route roundel: the code of a procedure, white on its route colour */
.rt-dot { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--c, var(--rt-gr)); color: #fff; font: 500 12px/1 var(--font-mono); letter-spacing: .02em; }
.rt--eq { --c: var(--rt-eq); } .rt--gr { --c: var(--rt-gr); } .rt--om { --c: var(--rt-om); } .rt--ic { --c: var(--rt-ic); }
.rt--ar { --c: var(--rt-ar); } .rt--ag { --c: var(--rt-ag); } .rt--ex { --c: var(--rt-ex); }

/* ---------- hero: the board ground, the routing review window, the route board card ---------- */
.hero__art { --ground-bg: var(--board); --ground-surface: var(--board-2); --ground-ink: var(--board-ink); --ground-muted: var(--board-soft); --ground-accent: #5fb8af;
  background: radial-gradient(80% 60% at 20% 8%, #1b4548, transparent 70%), var(--board); }
.mw { background: #fff; color: #12211f; border-radius: var(--r-md); overflow: hidden; font: 400 13px/1.4 var(--font-text);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .06); }
.mw__bar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #f1f4f3; border-bottom: 1px solid #dfe6e4; color: #4d5d5a; font-size: 12px; }
.mw__dots { display: inline-flex; gap: 6px; } .mw__dots i { width: 9px; height: 9px; border-radius: 50%; background: #cdd6d3; }
.mw__body { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.mw__side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; background: #f8faf9; border-right: 1px solid #e4eae8; font-size: 12.5px; color: #4d5d5a; }
.mw__side > span { padding: 6px 8px; border-radius: 6px; display: flex; justify-content: space-between; }
.mw__side > span.is-on { background: #e3f1ef; color: #084f4b; font-weight: 500; }
.mw__side b { font-weight: 500; }
.mw__label { margin-top: 10px; font-size: 12px; color: #6a7781; }
.mw__main { display: grid; gap: 12px; padding: 18px var(--ly-cut-room, 48px) 18px 18px; align-content: start; }
.mw__head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.mw__head small { display: block; color: #6a7781; font-size: 12px; margin-top: 2px; }
.mw__ref { font: 500 14px/1.3 var(--font-mono); letter-spacing: -.01em; }
.mw__chip { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.mw__chip--amber { background: var(--amber-50); color: var(--amber); }
.mw__quote { margin: 0; padding: 10px 12px; background: #f5f7f6; border-radius: 8px; color: #33434f; }
.mw__checks { display: grid; gap: 4px; font-size: 12px; color: #4d5d5a; }
.mw__checks span { display: flex; align-items: center; gap: 8px; }
.mw__ok { width: 14px; height: 14px; border-radius: 50%; background: #e5f3ea; box-shadow: inset 0 0 0 4px #e5f3ea, inset 0 0 0 7px #1e6b3a; flex: none; }
.mw__parts { display: grid; gap: 8px; }
.mw__part { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #dfe6e4; border-radius: 10px; }
.mw__part > div { display: grid; gap: 2px; min-width: 0; }
.mw__part small { color: #6a7781; font-size: 12px; }
.mw__part b { font-weight: 500; }
.mw__part span:not(.rt-dot) { color: #4d5d5a; font-size: 12px; }
.mw__part--sealed { background: var(--plum-50); border-color: #dec3dc; }
.mw__part--sealed small, .mw__part--sealed span:not(.rt-dot) { color: #5b3f59; }
.mw__reasons { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #dfe6e4; border-radius: 8px; }
.mw__reasons small { color: #6a7781; font-size: 12px; }
.mw__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mw__btn { padding: 7px 12px; border-radius: 8px; background: #0b6b66; color: #fff; font-weight: 500; font-size: 12.5px; }
.mw__btn--ghost { background: #fff; color: #12211f; box-shadow: inset 0 0 0 1px #cdd6d3; }

/* the route board: the result of the routing, on the night ground with light text */
.mb { position: absolute; display: grid; gap: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--board); color: var(--board-ink);
  box-shadow: 0 24px 48px -18px rgb(0 0 0 / .6), 0 0 0 1px var(--board-line); font: 400 13px/1.35 var(--font-text); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.mb__row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; }
.mb__ref { font: 500 13px/1 var(--font-mono); color: var(--board-hi); }
.mb__chip { padding: 3px 8px; border-radius: 999px; background: var(--board-2); color: var(--board-ink); font-size: 12px; box-shadow: inset 0 0 0 1px var(--board-line); }
.mb__line { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--board-line); }
.mb__line em { font-style: normal; font: 400 12px/1 var(--font-mono); color: var(--board-hi); }
.mb__tick { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--board-line); position: relative; }
.mb__tick::after { content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 10px; border: solid var(--board-hi); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mb__line [lang="kn"] { font-size: 15px; line-height: 1.45; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 290px; } }
@media (max-width: 639px) { .mw__body { grid-template-columns: minmax(0, 1fr); } .mw__side { display: none; } .mw__parts { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) and (max-width: 1279px) { .mw__body { grid-template-columns: minmax(0, 1fr); } .mw__side { display: none; } }

/* ---------- the register (app-frame recipe) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}
.rg { --u-bg: #ffffff; --u-ink: #12211f; --u-muted: #5a6872; --u-accent: #0b6b66; font: 400 14px/1.4 var(--font-text); color: #12211f; }
.rg small { display: block; color: #5a6872; font-size: 13px; margin-top: 2px; }
.rg b { font-weight: 500; }
.rg-list__head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid #e4eae8; }
.rg-list__head span { color: #5a6872; font-size: 13px; }
.rg-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #eef2f1; }
.rg-row > div { min-width: 0; }
.rg-row b { font: 500 13.5px/1.3 var(--font-mono); letter-spacing: -.01em; }
.rg-row.is-open { background: #e3f1ef; }
.rg-row.is-open b { color: #084f4b; }
.rg-row--sealed { background: #fbf8fb; }
.rg-tag { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; color: #33434f; white-space: nowrap; }
.rg-tag .rt-dot { width: 26px; height: 26px; }
.rg-open { padding: 20px 28px 28px; display: grid; gap: 20px; align-content: start; }
.rg-open__head { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #e4eae8; }
.rg-open__head b { font-size: 20px; letter-spacing: -.01em; }
.rg-clock { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 5px 10px 5px 5px; border-radius: 999px; background: #e3f1ef; color: #084f4b; font-size: 13px; font-weight: 500; }
.rg-clock .rt-dot { width: 26px; height: 26px; }
.rg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rg-steps li { display: grid; grid-template-columns: 64px 16px minmax(0, 1fr); gap: 12px; padding: 0 0 14px; position: relative; }
.rg-steps li::before { content: ""; grid-column: 2; grid-row: 1; width: 10px; height: 10px; margin: 5px 3px 0; border-radius: 50%; background: #0b6b66; }
.rg-steps li::after { content: ""; position: absolute; left: calc(64px + 12px + 7px); top: 18px; bottom: 0; width: 2px; background: #cfe7e3; }
.rg-steps li > div { grid-column: 3; grid-row: 1; }
.rg-when { grid-column: 1; grid-row: 1; font: 400 13px/1.5 var(--font-mono); color: #5a6872; }
.rg-dirs { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid #e4eae8; border-radius: 10px; }
.rg-dir { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; border-top: 1px solid #eef2f1; }
.rg-dirs > small + .rg-dir { border-top: 0; padding-top: 0; }
.rg-dir em { font-style: normal; font-size: 13px; color: #5a6872; white-space: nowrap; }
.rg-dir.is-done em { color: #1e6b3a; }
.rg-dir.is-due em { color: var(--amber); font-weight: 500; }
@media (max-width: 639px) { .rg-open { padding: 16px; } .rg-dir { flex-direction: column; gap: 2px; } .rg-dir em { white-space: normal; } }

/* ---------- how: each step's picture on the lit board ground ---------- */
[data-moment="pinned-chapters"] .hw.mo-pc__visual--lit { background: radial-gradient(70% 60% at 25% 10%, #dce7e3, transparent 70%), #cfdcd8; }
[data-moment="pinned-chapters"].is-live .hw.mo-pc__visual--lit { display: block; padding: 0; overflow: hidden; }
.hw > img { object-fit: contain !important; background: transparent; }
[data-moment="pinned-chapters"].is-live .hw--phone > img { position: absolute; left: 50%; top: 40px; height: 128% !important; transform: translateX(-50%); }
[data-moment="pinned-chapters"].is-live .hw--wide > img { position: absolute; left: 40px; top: 40px; width: calc(100% - 40px) !important; border-radius: 10px 0 0 10px; }
.hw--phone > img { width: auto !important; height: 100% !important; max-height: 100%; border-radius: 22px; box-shadow: 0 24px 48px -20px rgb(15 42 43 / .45), 0 0 0 1px rgb(15 42 43 / .08); aspect-ratio: auto !important; }
.hw--wide > img { width: 100% !important; height: auto !important; border-radius: 10px; box-shadow: 0 24px 48px -20px rgb(15 42 43 / .45), 0 0 0 1px rgb(15 42 43 / .08); aspect-ratio: auto !important; }
[data-moment="pinned-chapters"]:not(.is-live) .hw { aspect-ratio: 16 / 10; max-height: 30svh; }
[data-moment="pinned-chapters"]:not(.is-live) .hw > img { max-height: 100%; }

/* ---------- procedures: the route board ---------- */
.rt-board { margin-top: var(--s-7); position: relative; display: grid; grid-template-columns: 240px 120px minmax(0, 1fr); align-items: center; padding: 40px 40px 40px 40px;
  border-radius: var(--r-lg); color: var(--board-ink); background: radial-gradient(70% 90% at 12% 0%, #1b4548, transparent 70%), var(--board); overflow: hidden; }
.rt-board::before { display: none; }
.rt-board.ui { --ui-font: var(--font-text); font-size: 15px; line-height: 1.4; }
.rt__entry { display: grid; gap: 10px; padding: 0 24px 0 0; }
.rt__hub { font: 400 28px/1.1 var(--font-display); letter-spacing: -.02em; }
.rt__entry small { color: var(--board-soft); font-size: 14px; line-height: 1.5; }
.rt__wires { width: 120px; height: 384px; display: block; }
.rt__wires path:nth-child(1) { stroke: #5e93d6; } .rt__wires path:nth-child(2) { stroke: #43a79e; } .rt__wires path:nth-child(3) { stroke: #8d9ca6; }
.rt__wires path:nth-child(4) { stroke: #c98ac7; } .rt__wires path:nth-child(5) { stroke: #d6a3d3; } .rt__wires path:nth-child(6) { stroke: #6fbf87; stroke-dasharray: 7 6; }
.rt__lines { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: 64px; }
.rt__line { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 0 0 0 16px; border-bottom: 1px solid var(--board-line); font-size: 15px; }
.rt__line:last-child { border-bottom: 0; }
.rt__line::after { content: ""; position: absolute; left: -8px; top: 50%; width: 10px; height: 4px; margin-top: -2px; border-radius: 2px; background: #fff; opacity: 0; }
/* the pulses run along the routes while the pointer is on the board (a hover loop, restarted on each visit) */
.rt-board:hover .rt__line::after { animation: rt-pulse 2.6s cubic-bezier(.45, 0, .2, 1) infinite; }
.rt__line:nth-child(2)::after { animation-delay: .3s !important; } .rt__line:nth-child(3)::after { animation-delay: .6s !important; } .rt__line:nth-child(4)::after { animation-delay: .9s !important; }
.rt__line:nth-child(5)::after { animation-delay: 1.2s !important; } .rt__line:nth-child(6)::after { animation-delay: 1.5s !important; }
@keyframes rt-pulse { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: .9; } 70% { transform: translateX(22px); opacity: .9; } 85%, 100% { transform: translateX(22px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rt-board:hover .rt__line::after { animation: none; } }
.rt__what { font-weight: 500; }
.rt__line--sealed .rt__what { color: #e2b8e0; }
.rt__who { color: var(--board-ink); }
.rt__law { color: var(--board-soft); font-size: 14px; }
.rt__clock { font: 400 14px/1.35 var(--font-mono); color: var(--board-hi); text-align: right; }
.rt-board .rt--eq { --c: #2f6fbd; } .rt-board .rt--om { --c: #4f6170; } .rt-board .rt--ar { --c: #9a4a96; }
.rt__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 1279px) {
  .rt-board { grid-template-columns: 200px 80px minmax(0, 1fr); padding: 32px; }
  .rt__wires { width: 80px; }
  .rt__lines { grid-auto-rows: 64px; }
  .rt__line { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); row-gap: 0; column-gap: 14px; }
  .rt__law { display: none; }
}
@media (max-width: 1023px) {
  .rt-board { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .rt__wires { display: none; }
  .rt__entry { margin-bottom: 8px; padding: 16px 20px; }
  .rt__lines { grid-auto-rows: auto; }
  .rt__line { padding: 12px 0 12px 0; }
  .rt__line::after { display: none; }
}
@media (max-width: 639px) {
  .rt-board { padding: 16px; flex: none; align-content: start; }
  .rt__line { grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; font-size: 15px; padding: 10px 0; }
  .rt__line .rt-dot { grid-row: 1 / span 3; align-self: start; }
  .rt__what, .rt__who, .rt__clock { grid-column: 2; text-align: left; }
  .rt__clock { font-size: 13px; }
  .rt__hub { font-size: 22px; }
}

/* ---------- access: the phone and the help-desk reading on the lit ground ---------- */
.frame--lit.ax { background: radial-gradient(70% 60% at 25% 10%, #dce7e3, transparent 70%), #cfdcd8; }
.ax .stage { position: absolute; inset: 0; }
.ax__phone { position: absolute; left: 40px; top: 48px; width: 236px; }
.ax__phone img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 24px 48px -20px rgb(15 42 43 / .45), 0 0 0 1px rgb(15 42 43 / .08); }
.ax__letter { position: absolute; right: 32px; top: 96px; width: 304px; display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; color: #12211f;
  box-shadow: 0 24px 48px -18px rgb(15 42 43 / .45), 0 0 0 1px rgb(15 42 43 / .08); font-size: 14px; line-height: 1.45; }
.ax__letter-head { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid #e4eae8; }
.ax__letter-head span { color: #5a6872; font-size: 13px; }
.ax__letter p { margin: 0; }
.ax__letter p[lang="kn"] { padding: 8px 10px; border-radius: 8px; background: #f5f7f6; font-size: 15px; }
.ax__otp { font: 400 12px/1.3 var(--font-mono); color: #1e6b3a; }
.mz-facts { list-style: none; margin: 0; padding: 0; display: grid; }
.mz-facts li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.mz-facts li:last-child { border-bottom: 1px solid var(--line); }
.mz-facts img { width: 20px; height: 20px; flex: none; }
@media (max-width: 1279px) { .ax__letter { width: 270px; right: 20px; top: 72px; } .ax__phone { left: 24px; width: 200px; } }
@media (max-width: 639px) { .ax .stage { display: flex; flex-direction: column; align-items: center; overflow: hidden; } .ax__letter { position: static; width: auto; margin: 16px 16px 0; align-self: stretch; } .ax__phone { position: static; width: 220px; margin-top: 20px; flex: none; } }

/* ---------- the statement ---------- */
.mz-statement .mo-lt__type { max-width: 16ch; font-size: clamp(48px, 7.6vw, 128px); line-height: 1; letter-spacing: var(--display-tracking-xl); font-weight: var(--display-weight); }
.mz-statement__foot { margin-top: auto; }
.mz-statement > .wrap { justify-content: space-between; }
@media (max-width: 639px) { .mz-statement__foot { margin-top: var(--s-7); } }

/* ---------- security: three cards with their UI ---------- */
.tr { row-gap: var(--s-7); }
.tr .panel { --p-h: 300px; background: radial-gradient(70% 60% at 25% 10%, #dce7e3, transparent 70%), #cfdcd8; }
.tr .panel .stage--fade-b { --fade-h: 36px; }
.tr-ui { position: absolute; left: 24px; right: 24px; top: 22px; display: grid; gap: 8px; padding: 16px; border-radius: 12px; background: #fff; color: #12211f; font-size: 14px; line-height: 1.4;
  box-shadow: 0 20px 40px -18px rgb(15 42 43 / .4), 0 0 0 1px rgb(15 42 43 / .08); }
.tr-deny { background: var(--plum-50); }
.tr-deny__head { display: flex; align-items: center; gap: 8px; color: #6b2a6b; }
.tr-deny__head b { font-weight: 500; }
.tr-lock { width: 14px; height: 12px; border-radius: 2px; background: #6b2a6b; position: relative; margin-top: 4px; }
.tr-lock::before { content: ""; position: absolute; left: 3px; top: -6px; width: 8px; height: 8px; border: 2px solid #6b2a6b; border-bottom: 0; border-radius: 6px 6px 0 0; box-sizing: border-box; }
.tr-deny p { margin: 0; color: #4a2448; }
.tr-deny__log { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid #dec3dc; font: 400 12px/1.3 var(--font-mono); color: #6b2a6b; }
.tr-step { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: #f5f7f6; }
.tr-step span { font-size: 12px; color: #5a6872; }
.tr-step b { font-weight: 500; }
.tr-step.is-warn { background: var(--amber-50); } .tr-step.is-warn span { color: #6e3a00; }
.tr-step.is-late { background: #fdecea; } .tr-step.is-late span { color: #8f1d14; }
.tr-file { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f1; }
.tr-file:first-child { border-top: 0; }
.tr-ext { display: grid; place-items: center; height: 26px; border-radius: 6px; background: #e3f1ef; color: #084f4b; font: 500 12px/1 var(--font-mono); }
.tr-file b { font-weight: 500; }
.tr-file em { font-style: normal; font-size: 12px; color: #1e6b3a; }
@media (max-width: 639px) { .tr .panel { --p-h: 150px; } .tr-ui { top: 16px; left: 16px; right: 16px; } }

/* ---------- the request: the seven cases and the form ---------- */
.rq-cases { margin: 0; padding: 0; list-style: none; counter-reset: rq; display: grid; }
.rq-cases li { counter-increment: rq; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16px; }
.rq-cases li:last-child { border-bottom: 1px solid var(--line); }
.rq-cases li::before { content: counter(rq); font: 400 14px/1.6 var(--font-mono); color: var(--accent); }
.rq-form { background: var(--surface); padding: var(--s-7); border-radius: var(--r-lg); align-self: start; }
@media (max-width: 639px) { .rq-form { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); } .rq-form > .field { grid-column: 1 / -1; } }

/* ---------- the close and footer on the board ---------- */
.closing.ground-inverse { --bg: var(--board); --surface: var(--board-2); --ink: var(--board-ink); --muted: var(--board-soft); background: var(--board); }
.closing .close__word { color: var(--board-hi); }
.closing .mz-kn { color: var(--board-soft); }

/* phone fits: the hero ends on its picture inside one screen; the steps at rest and the access frame stay within their screens */
@media (max-width: 639px) {
  .hero__proof { display: none; }
  [data-moment="pinned-chapters"]:not(.is-live) .hw { aspect-ratio: 2 / 1; }
  .ax.frame--split { aspect-ratio: auto; height: auto; }
  .mz-facts li { padding: 7px 0; font-size: 15px; }
  #access .stack-6 { gap: var(--s-5); }
}

/* type finish: no lone last words, readable leading on the footer's display line */
p, li, .faq__item h3 { text-wrap: pretty; }
.closing .footer__lede { line-height: 1.3; }

/* the register's chrome icons */
.rg-ic { width: 16px; height: 16px; color: #5a6872; flex: none; }
.rg-list__head { gap: 12px; } .rg-list__head span { margin-left: auto; }
.rg-open__title { display: flex; gap: 12px; align-items: start; }
.rg-ic--doc { width: 20px; height: 20px; margin-top: 2px; color: #0b6b66; }
/* security cards on a phone: the panel holds its UI, three steps of the ladder */
.tr .panel { overflow: hidden; }
@media (max-width: 639px) { .tr-ladder .tr-step:nth-child(4), .tr-files .tr-file:nth-child(4) { display: none; } }
/* the close: room for the name's ascenders and descenders; the button full width on a phone */
.closing .close__word { line-height: 1.02; padding-block: .03em .06em; }
@media (max-width: 639px) { .closing .section-head--split > .btn { width: 100%; justify-content: center; } }

/* ---------- two groups on a phone (g2m), one grid on wider screens ---------- */
@media (min-width: 640px) {
  .fq__g, .tr__g { display: contents; }
  .fq { row-gap: 0; align-items: start; }
  .fq .stack-4 { grid-row: span 2; }
  .fq__more { margin-top: 0; }
}
@media (max-width: 639px) {
  .g2m > .wrap > .grid { display: contents; }
  .fq__g, .tr__g { display: grid; gap: var(--s-6); align-content: start; }
  .fq__g > .faq, .fq__more { margin: 0; }
  .tr__g > .card { margin: 0; }
  #access .ax.frame--split { height: 100%; align-self: stretch; }
  #access .ax .stage { position: absolute; inset: 0; height: auto; }
  .rq-form { padding: var(--s-5); gap: var(--s-3); }
  .rq-form .field:has(> textarea) { display: none; } /* the optional note waits for a wider screen: the form fits one phone screen */
  /* the route board fits one screen: crisp two-column alignment with zero orphan middots */
  #procedures .rt-board { margin-top: var(--s-5); padding: 12px 16px; flex: 0 0 auto; }
  #procedures .rt__entry { padding: 8px 4px 12px; margin-bottom: 4px; }
  #procedures .rt__hub { font-size: 18px; }
  #procedures .rt__entry small { font-size: 13px; }
  #procedures .rt__line { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 8px 0; }
  #procedures .rt__line .rt-dot { grid-column: 1; grid-row: 1 / span 3; align-self: start; margin-top: 2px; }
  #procedures .rt__what { grid-column: 2; font-size: 15px; line-height: 1.3; }
  #procedures .rt__who { grid-column: 2; margin-left: 0; font-size: 13px; line-height: 1.35; }
  #procedures .rt__clock { grid-column: 2; margin-left: 0; text-align: left; font-size: 13px; line-height: 1.35; }
  #procedures .rt__clock::before { content: none; }
  #procedures .rt__note { display: none; }
  #procedures .t-lead { display: none; } /* the approval line waits for a wider screen: the board fits one phone screen */
}
/* the seven cases: each with the routes it runs on */
.rq-cases li { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
.rq-dots { display: inline-flex; gap: 4px; }
.rq-dot { width: 24px; height: 24px; }
.closing .section-head--split { min-width: 0; }
@media (max-width: 639px) { .closing .section-head--split { display: grid; gap: var(--s-5); } .closing .section-head--split > .btn { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; } }
@media (max-width: 639px) { .ax .stage { flex-direction: column; } .ax__letter { order: -1; } }

/* gate round 1 */
#access .grid.fill { align-items: stretch; }
#access .ax.frame--split { align-self: stretch; }
@media (max-width: 639px) {
  /* the close's name fits the 342 column, so nothing in the footer runs past its right line */
  .closing .close__word { font-size: clamp(48px, 16.5vw, 96px); }
  /* how it works rests as exactly two screens, so every later section starts on a screen line */
  main > #how:not(.is-live) { min-height: calc(2 * 100lvh); }
  /* the second group of questions spreads to its screen's foot */
  .fq__more { align-content: space-between; }
  /* security cards: each panel holds what it shows */
  .tr .panel { --p-h: 168px; }
  .tr-ladder .tr-step:nth-child(n+3), .tr-files .tr-file:nth-child(n+3) { display: none; }
  .tr-deny p { font-size: 13px; }
  .tr__g { gap: var(--s-7); }
}

/* gate round 2 */
.mz-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 639px) {
  /* every group runs to its screen's foot, so no empty band opens inside a two-screen section */
  .fq__more { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
  .tr__g--1 { align-self: stretch; grid-template-rows: auto auto minmax(0, 1fr); }
  .tr__g--1 > .card { display: flex; flex-direction: column; }
  .tr__g--1 > .card > .panel { flex: 1 1 auto; height: auto; min-height: 168px; }
  #request .wrap > .grid > .stack-6 { align-self: stretch; display: flex; flex-direction: column; }
  #request .rq-cases { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; }
}

@media (max-width: 639px) {
  /* three link columns across the 342 column; the legal links on the column lines */
  .closing__links .footer__col { grid-column: auto / span 4; }
  .mz-legal { display: flex; flex-wrap: wrap; width: 100%; gap: 4px 16px; }
  .mz-legal > span { flex-basis: 100%; }
}

/* ---------- launch review fixes: form contrast, honeypot, footer geometry, Kannada & inner pages ---------- */
.nowrap { white-space: nowrap; }
.mz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.rq-form .field :is(input, select, textarea) { border-color: #6a7781; background: #ffffff; }
.rq-form .field :is(input, select, textarea):focus-visible { border-color: var(--action); }
.rq-form .field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--error); }

/* desktop footer geometry: scale close__word with viewport height so it never collides with closing__links */
@media (min-width: 640px) {
  footer.closing > .wrap { row-gap: var(--s-6); }
  .closing .closing__cta { gap: var(--s-5); }
  .closing .closing__links { gap: var(--s-6); }
  .closing .close__word { font-size: clamp(56px, min(11vw, 15.5svh), 152px); line-height: 0.96; padding-block: 0.02em 0.08em; }
}
.mz-sample { font-size: var(--t-label); color: var(--muted); }
.footer__legal { align-items: center; }
.footer__legal a { text-decoration: underline; text-decoration-color: var(--board-line); text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--board-ink); text-decoration-color: currentColor; }

/* Kannada locale typography: >= 15px floor, comfortable line height, no Latin tight tracking or hyphenation */
html[lang^="kn"] body { font-family: "Noto Sans Kannada", "Onest", system-ui, sans-serif; line-height: 1.65; }
html[lang^="kn"] h1, html[lang^="kn"] h2, html[lang^="kn"] h3, html[lang^="kn"] h4 {
  font-family: "Noto Sans Kannada", "Onest", system-ui, sans-serif;
  letter-spacing: 0; hyphens: none; -webkit-hyphens: none; line-height: 1.25;
}
html[lang^="kn"] .hero h1 { font-size: clamp(32px, 2.3vw + 22px, 50px); line-height: 1.2; }
html[lang^="kn"] h2 { font-size: clamp(26px, 1.35vw + 20px, 40px); line-height: 1.25; }
html[lang^="kn"] .mz-statement .mo-lt__type { font-size: clamp(36px, 5vw, 76px); line-height: 1.22; letter-spacing: 0; max-width: 18ch; }
html[lang^="kn"] .closing .close__word { font-size: clamp(46px, min(9.5vw, 13svh), 124px); letter-spacing: 0; line-height: 1.12; }
html[lang^="kn"] .t-small, html[lang^="kn"] .footer ul { font-size: 15px; line-height: 1.55; }
html[lang^="kn"] .nav__link { font-size: 15px; }
html[lang^="kn"] .rt__line { font-size: 15px; }
html[lang^="kn"] .rt__law { font-size: 15px; }
html[lang^="kn"] .rt__entry small { font-size: 15px; }
html[lang^="kn"] .mz-sample, html[lang^="kn"] .footer__legal { font-size: 15px; }
@media (max-width: 639px) {
  html[lang^="kn"] .closing .close__word { font-size: clamp(42px, 13vw, 72px); }
}

/* ---------- inner document pages (/procurement/, /privacy/, /accessibility/, /security/, /404) ---------- */
.doc-main { padding-top: calc(var(--nav) + var(--s-8)); padding-bottom: var(--s-9); }
.doc-head { max-width: 72ch; display: grid; gap: var(--s-4); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s-7); }
.doc-head h1 { font-size: clamp(32px, 2.6vw + 20px, 52px); line-height: 1.1; }
.doc-meta { font-size: var(--t-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 20px; }
.doc-body { max-width: 72ch; display: grid; gap: var(--s-5); }
.doc-body h2 { font-size: clamp(22px, 1.1vw + 18px, 30px); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { font-size: 19px; font-weight: 500; margin-top: var(--s-3); }
.doc-body p { color: var(--ink); line-height: 1.65; }
.doc-body ul, .doc-body ol { display: grid; gap: var(--s-2); padding-left: 1.3em; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { line-height: 1.6; }
.doc-body a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { color: #084f4b; }
.doc-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #ffffff; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: left; }
.doc-table th, .doc-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th { background: var(--surface); font-weight: 500; color: var(--ink); }
.doc-callout { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-strong); display: grid; gap: var(--s-2); }
.doc-callout--sealed { background: var(--plum-50); border-color: #dec3dc; color: #4a2448; }
.doc-cta { margin-top: var(--s-7); padding: 28px; border-radius: var(--r-lg); background: var(--board); color: var(--board-ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); }
.doc-cta h2 { border: 0; margin: 0; padding: 0; color: var(--board-ink); font-size: clamp(22px, 1.3vw + 16px, 28px); }
.doc-cta p { color: var(--board-soft); max-width: 52ch; }
.doc-cta .btn--primary { background: var(--board-ink); color: var(--board); }
.doc-cta .btn--primary:hover { background: #ffffff; }
.doc-footer { background: var(--board); color: var(--board-ink); padding: var(--s-7) 0 var(--s-6); --ink: var(--board-ink); --muted: var(--board-soft); --line: var(--board-line); }
.doc-footer .footer__legal { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--board-line); }
.doc-footer .nav__logo { color: var(--board-ink); }
.doc-footer .mz-kn { color: var(--board-soft); }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-small); font-weight: 500; color: var(--action); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.doc-back:hover { color: #084f4b; }
@media (max-width: 639px) {
  .doc-main { padding-top: calc(var(--nav) + var(--s-6)); padding-bottom: var(--s-8); }
  .doc-cta { padding: 20px; }
}
