/* Paper: the look of the whole site, matched to the EsuZone site (Study Routine Tracker), upscpath.com and the Photo Sorter
   page the user pointed to (21 Nov 2026), with their colours and type read from their own style sheets:
   - warm paper: #ece5db behind the page, the page itself in a desktop-style window #fbf8f3 with a title bar (three
     lights and the page's name), cards #fffdfa, bands #efe7dc, hairlines #e6ddd0 and #d3c6b5;
   - ink #1f1a16 for text and for what is chosen (black pills), body text #4a3f35, notes #6f6255;
   - a sage green #3c5d4d for links, focus rings and picked chips, terracotta #874623 for small labels, amber #d97706;
   - Inter for every word (css/fonts.css), headings at weight 650, page titles in an italic book serif.
   Only the look changes here: every page keeps its own order, parts and words. Loaded last on every page (seo.app_tags);
   the dark theme takes the same warm colours, in their dark values. */

/* html:root outranks design-system.css's own :root[data-theme="light"] tokens, whichever file loads last */
html:root[data-theme="light"] {
  /* Deeper since 29 Nov 2026 (owner: the site "looks like someone bleached its color"; sections "get mixed up with each
     other"): every layer one clear step apart on the same warm scale, so each part has its own edge and colour.
     behind the window #d8ccb9 > the window #f2ebdf > cards #fffcf7 > a box inside a card #f6efe4; hairlines #d6c9b6,
     firm edges #bba98f; text a shade darker; the sage and amber a shade deeper. */
  --bg-deep: #d8ccb9;                 /* behind the window */
  --bg-surface: #fffcf7;
  --bg-card: #fffcf7;
  --bg-card-hover: #fffaf2;
  --bg-card-highlight: #e8dfd0;
  --bg-glass-input: #fffdf9;
  --accent-teal: #345646;
  --accent-teal-glow: rgba(52, 86, 70, 0.16);
  --accent-sky: #345646;
  --accent-saffron: #a14a07;          /* as text on paper (5.6:1); the amber #d97706 fills only (--paper-amber) */
  --text-primary: #1a1511;
  --text-secondary: #3e342b;
  --text-muted: #615447;
  --border-subtle: #ddd1c0;
  --border-card: #d6c9b6;
  --border-glow: #bba98f;
  --shadow-sm: 0 1px 2px rgba(40, 34, 24, 0.07);
  --shadow-md: 0 1px 2px rgba(40, 34, 24, 0.08), 0 8px 20px -12px rgba(40, 34, 24, 0.22);
  --shadow-glow: none;
  /* cards lift a little off the window: a firm hairline and a soft shadow under it, so a section never melts into the
     page around it */
  --shadow-card: 0 1px 2px rgba(40, 34, 24, 0.07), 0 12px 28px -20px rgba(40, 34, 24, 0.42);
  --paper-window: #f2ebdf;
  --paper-surface-2: #ece3d5;
  --paper-nested: #f6efe4;            /* a box inside a card: tables of figures, tiles, inner cards */
  --paper-card-solid: #fffcf7;        /* the card colour itself, kept when --bg-card is the nested tint */
  --paper-band: #e6dccb;
  --paper-strong: #bba98f;
  --paper-ink: #1a1511;
  --paper-on-ink: #fbf8f3;
  --paper-sage: #345646;
  --paper-sage-hover: #263f33;
  --paper-sage-soft: rgba(52, 86, 70, 0.13);
  --paper-terra: #7a3e1d;
  --paper-amber: #d97706;
  --paper-orange: #d97706;            /* the older name, still read by a few rules */
  --paper-focus: 0 0 0 3px rgba(52, 86, 70, 0.32);
  --paper-shadow-window: 0 30px 80px -24px rgba(40, 34, 24, 0.40), 0 10px 30px -12px rgba(40, 34, 24, 0.26);
  --paper-shadow-pop: 0 18px 50px -12px rgba(40, 34, 24, 0.40), 0 4px 14px -6px rgba(40, 34, 24, 0.20);
  --paper-bar: linear-gradient(#f6f0e6, #e8dfd0);
}
/* the dark theme: EsuZone's warm dark in place of the slate blue */
html:root[data-theme="dark"] {
  --bg-deep: #0b0a09;
  --bg-surface: #1c1a18;
  --bg-card: #1c1a18;
  --bg-card-hover: #252320;
  --bg-card-highlight: #252320;
  --bg-glass-input: #1c1a18;
  --accent-teal: #7da390;
  --accent-teal-glow: rgba(125, 163, 144, 0.16);
  --accent-sky: #7da390;
  --accent-saffron: #e6b460;
  --text-primary: #f3eee7;
  --text-secondary: #d2cbc2;
  --text-muted: #a39c92;
  --border-subtle: rgba(243, 238, 231, 0.10);
  --border-card: rgba(243, 238, 231, 0.10);
  --border-glow: rgba(243, 238, 231, 0.20);
  --shadow-glow: none;
  --shadow-card: none;
  --paper-window: #141311;
  --paper-nested: #232120;
  --paper-card-solid: #1c1a18;
  --paper-surface-2: #252320;
  --paper-band: #211f1c;
  --paper-strong: rgba(243, 238, 231, 0.20);
  --paper-ink: #f3eee7;
  --paper-on-ink: #141311;
  --paper-sage: #7da390;
  --paper-sage-hover: #8fb09f;
  --paper-sage-soft: rgba(125, 163, 144, 0.16);
  --paper-terra: #e0946c;
  --paper-amber: #e6b460;
  --paper-orange: #e6b460;
  --paper-focus: 0 0 0 3px rgba(125, 163, 144, 0.40);
  --paper-shadow-window: 0 30px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(243, 238, 231, 0.04);
  --paper-shadow-pop: 0 16px 48px rgba(0, 0, 0, 0.6);
  --paper-bar: linear-gradient(#191816, #211f1c);
}
/* Inter for every word, as EsuZone and upscpath.com set it; the device's own UI font if Inter cannot load */
html:root {
  --font-body: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
html:root body {
  background-color: var(--bg-deep) !important;
  background-image: none !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
table, .stat-val, .lp-num, .kpi-value, .ticker-val { font-variant-numeric: tabular-nums; }
html:root ::selection { background: color-mix(in srgb, var(--paper-amber) 28%, transparent); }

/* headings as EsuZone sets them: weight 650, tight; the page's title in the italic book serif, as on its page heads */
html:root h1, html:root h2, html:root h3, html:root h4 { font-weight: 650; }
html:root h1 { color: var(--paper-ink); letter-spacing: -0.025em; }
html:root h2 { color: var(--paper-ink); letter-spacing: -0.02em; }
html:root h3 { color: var(--paper-ink); letter-spacing: -0.015em; }
html:root .app-container h1 {
  font-family: var(--font-serif) !important; font-style: italic !important; font-weight: 400 !important;
  letter-spacing: -0.01em !important; line-height: 1.12; color: var(--paper-ink) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; }
html:root .app-container h1 * { font-style: italic; }
/* a title on a photo banner stays white (the Tourism page's banner, tourism.css .tm-land) */
html:root .app-container .tm-land h1 { color: #fff !important; }
html:root a { text-underline-offset: 3px; }
/* a plain link (no class of its own) in the site's accent, never the browser's own blue or purple */
html:root a:not([class]), html:root a:not([class]):visited { color: var(--accent-teal); }
html:root .lp-lead, html:root .tm .lp-lead { color: var(--text-secondary); }
html:root :focus-visible { outline: none !important; box-shadow: var(--paper-focus) !important; }

/* the page in a desktop-style window with a title bar of three lights, as EsuZone and the Photo Sorter show their pages
   (the server marks the page's main part with data-wintitle). No words in the bar: the page's name was there, and the
   user asked for it to go (21 Nov 2026). Phones and tablets (1024px and less, the app frame's widths): no window, the
   paper fills the screen, as in an app (css/touch.css). */
@media (min-width: 1025px) {
  html:root .app-container[data-wintitle] {
    --win-pad: clamp(16px, 2.4vw, 32px);
    background: var(--paper-window); border: 1px solid var(--border-card); border-radius: 16px; box-shadow: var(--paper-shadow-window);
    margin: 22px auto 44px; padding-left: var(--win-pad) !important; padding-right: var(--win-pad) !important; padding-top: 0 !important;
    width: calc(100% - 2 * clamp(14px, 2.6vw, 30px)); }
  html:root .app-container[data-wintitle]::before {
    content: ""; display: block; height: 40px; line-height: 40px; margin: 0 calc(-1 * var(--win-pad)) 24px;
    padding: 0 84px; border-bottom: 1px solid var(--border-card); border-radius: 15px 15px 0 0; text-align: center;
    font: 600 0.8rem/40px var(--font-body); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    user-select: none;
    background:
      radial-gradient(circle at 21.5px 20px, #ee9d93 5px, rgba(0, 0, 0, 0.10) 5.5px, transparent 6px),
      radial-gradient(circle at 39.5px 20px, #f1cd7d 5px, rgba(0, 0, 0, 0.10) 5.5px, transparent 6px),
      radial-gradient(circle at 57.5px 20px, #9fd08f 5px, rgba(0, 0, 0, 0.10) 5.5px, transparent 6px),
      var(--paper-bar); }
}
@media (max-width: 1024px) {
  html:root body { background-color: var(--paper-window) !important; }
}
/* the page's main part is at least a screen tall, so what comes after it (the shortcuts, the footer) never shows first and
   is then pushed away while the page's figures load (the home page did that on a slow phone connection, 21 Nov 2026) */
html:root main.app-container { min-height: 100vh; min-height: 100svh; }
/* parts drawn after their data arrives keep their room while empty (measured on a 390 px phone and a laptop, 21 Nov 2026):
   the Institutions tab (14,000 px when drawn; the reforms list under it showed first and was then pushed away) and its
   figure boxes, which push the office details down by their own height: 120 to 155 px, Parliament's 361 px on a phone,
   324 px on a tablet and 284 px on a laptop (js/institutions.js marks the box with its office) */
html:root #institutions-content { min-height: 100vh; min-height: 100svh; }
html:root #inst-glance:empty { min-height: 125px; }
html:root #inst-glance[data-pillar="legislature"]:empty { min-height: 361px; }
@media (min-width: 700px) { html:root #inst-glance[data-pillar="legislature"]:empty { min-height: 324px; } }
@media (min-width: 1200px) { html:root #inst-glance[data-pillar="legislature"]:empty { min-height: 284px; } }
/* the office's details, unseen until the figures above take them in (js/institutions.js holdDetails) */
html:root #inst-details.inst-wait { visibility: hidden; }

/* the header: the window's paper with a hairline under it; menu items as text, the open section an ink pill, as EsuZone's
   top bar. Solid, never blurred: a blur (backdrop-filter) makes the header the box its fixed children are placed in, and
   on phones the menu drawer then opened squeezed inside the header bar, showing only the logo (21 Nov 2026) */
html:root .main-header { background: var(--paper-window) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--border-card) !important; box-shadow: none !important; }
@media (min-width: 1025px) {
  html:root .nav-tabs { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 2px 0 !important; }
}
/* phones: the same menu is a drawer from the left (style.css), on the window's paper so the page does not show through */
@media (max-width: 1024px) {
  html:root #main-nav { background: var(--paper-window) !important; border-right: 1px solid var(--border-card) !important;
    box-shadow: 18px 0 48px rgba(31, 26, 22, 0.28) !important; }
  html:root .nav-drawer-head { background: var(--paper-window) !important; border-bottom-color: var(--border-card) !important; }
}
html:root .nav-tab-btn, html:root .nav-dropdown-trigger {
  color: var(--text-secondary) !important; background: transparent !important; border: 1px solid transparent !important; box-shadow: none !important;
  border-radius: 999px !important; font-weight: 560 !important; letter-spacing: -0.005em; }
html:root .nav-tab-btn:hover, html:root .nav-dropdown-trigger:hover { color: var(--paper-ink) !important; background: var(--paper-surface-2) !important; }
html:root #main-nav > .nav-tab-btn.active, html:root .nav-dropdown-trigger.active {
  color: var(--paper-on-ink) !important; background: var(--paper-ink) !important; border-color: var(--paper-ink) !important; font-weight: 620 !important; }
@media (min-width: 1025px) {     /* phones keep the drawer's own flat lists (style.css) */
  html:root .nav-dropdown-menu { background: var(--bg-card) !important; border: 1px solid var(--border-card) !important;
    box-shadow: var(--paper-shadow-pop) !important; border-radius: 14px !important; }
}
html:root .nav-dropdown-menu .nav-tab-btn { border-radius: 10px !important; }
/* the page open now, inside a menu: a soft green fill, green words and a green bar on the left, in both themes (the band
   colour alone was the menu's own colour in the dark theme, so nothing showed which page was open; user, 22 Nov 2026) */
html:root .nav-dropdown-menu .nav-tab-btn.active { color: var(--paper-sage) !important; background: var(--paper-sage-soft) !important;
  border-color: transparent !important; box-shadow: inset 3px 0 0 var(--paper-sage) !important; font-weight: 650 !important; }
html:root .nav-dropdown-menu .nav-tab-btn.active .nav-name { color: var(--paper-sage) !important; }
html:root .nav-dropdown-menu .nav-tab-btn.active .nav-note { color: var(--text-secondary) !important; }
html:root .nav-name { color: var(--paper-ink) !important; }
html:root .nav-note { color: var(--text-muted) !important; }
/* a menu's group titles: small dark capitals on the band (they were grey on slate, and could not be read) */
html:root #main-nav .nav-group-title, html:root .nav-group-title {
  color: var(--text-secondary) !important; background: var(--paper-band) !important; border: 0 !important;
  font-size: 11px !important; font-weight: 650 !important; letter-spacing: 0.08em !important; text-transform: uppercase; }
html:root .nav-menu-title { color: var(--text-secondary) !important; font-size: 11px !important; letter-spacing: 0.08em; text-transform: uppercase; }
html:root .nav-expand { background: var(--paper-sage) !important; color: #fff !important; border: 0 !important;
  box-shadow: none !important; border-radius: 999px !important; font-weight: 600 !important; }
html:root[data-theme="dark"] .nav-expand { color: #12110f !important; }
html:root .nav-expand:hover { background: var(--paper-sage-hover) !important; }

/* buttons as EsuZone has them: pills; the main action in ink (cream on near-black, near-black on cream in the dark
   theme), the rest on the card colour with a firm hairline; no glow, no lift */
html:root .btn { border-radius: 999px; box-shadow: none !important; transform: none !important; filter: none !important; font-weight: 560; }
html:root .btn-saffron, html:root .btn-primary {
  background: var(--paper-ink) !important; color: var(--paper-on-ink) !important; border: 1px solid var(--paper-ink) !important; font-weight: 600; }
html:root .btn-saffron:hover, html:root .btn-primary:hover {
  background: color-mix(in srgb, var(--paper-ink) 84%, var(--paper-window)) !important; border-color: color-mix(in srgb, var(--paper-ink) 84%, var(--paper-window)) !important; }
html:root .btn-outline { background: var(--bg-card) !important; color: var(--paper-ink) !important; border: 1px solid var(--paper-strong) !important; }
html:root .btn-outline:hover { background: var(--paper-surface-2) !important; }

/* cards and sections: the card paper, a hairline, almost flat, corners 14px */
html:root .glass-panel, html:root .glass-card, html:root .lp-sec,
html:root .tm-sec, html:root .tm-card, html:root .jb-card,
html:root .jb-guide, html:root .kpi-card {
  background: var(--bg-card); border-color: var(--border-card) !important; box-shadow: var(--shadow-card) !important; }
html:root .tm-sec, html:root .lp-sec { border-radius: 14px; }
/* a box inside a card takes the nested tint, one step darker than the card, so figures, tiles and inner cards have their
   own ground (owner, 29 Nov 2026): every part that paints itself with the card colour inside a card gets the tint */
html:root :is(.glass-panel, .glass-card, .lp-sec:not(.lp-sec-plain), .tm-sec:not(.tm-plain), .jb-card, .jb-guide, .kpi-card, .lp-hub-group) * {
  --bg-card: var(--paper-nested); --bg-card-hover: var(--paper-nested); }
html:root :is(.glass-panel, .glass-card, .lp-sec:not(.lp-sec-plain), .tm-sec:not(.tm-plain)) :is(.glass-panel, .glass-card, .kpi-card, .lp-card, .tm-card, .jb-card) {
  box-shadow: none !important; }
/* plain sections stay plain: no box, no padding of their own, so a box around them made the heading and cards touch
   its edge (the Schemes page's groups, 22 Nov 2026) */
html:root .lp-sec.lp-sec-plain, html:root .lp-sec-plain, html:root .tm-sec.tm-plain { background: none !important; border: 0 !important; box-shadow: none !important; }
html:root .tm-card:hover { border-color: var(--paper-strong) !important; transform: none; }
html:root[data-theme="light"] .lp.tm, html:root[data-theme="light"] .tm { --tm-line: #d6c9b6; --tm-soft: #ece3d5; --tm-shadow: 0 1px 2px rgba(40, 34, 24, 0.07), 0 10px 24px -18px rgba(40, 34, 24, 0.38); }
html:root .tm-ph-none { background: var(--paper-band) !important; }
html:root[data-theme="light"] .tm-ph-none b { color: #c9bcab !important; }

/* labels: small spaced capitals, as EsuZone's stat strips; quiet breadcrumbs */
html:root .lp-crumbs, html:root .tm .lp-crumbs { background: transparent !important; border: 0 !important; padding-left: 0 !important; box-shadow: none !important; }
html:root .lp-meta, html:root .kpi-label {
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 11px !important; font-weight: 650; color: var(--text-muted) !important; }
html:root .kpi-value { font-weight: 620; letter-spacing: -0.015em; }
html:root .tm-mut, html:root .lp-note { color: var(--text-muted) !important; }
/* table heads: small spaced capitals on a hairline */
html:root .app-container table th { font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; }
html:root .app-container table td { border-color: var(--border-card); }

/* chips and choices: pills on the card colour; a picked one in soft sage, as EsuZone's filters */
html:root .tm-chip { background: var(--bg-card); border-color: var(--paper-strong); color: var(--text-secondary); font-weight: 550; }
html:root .tm-chip:hover { color: var(--paper-ink); background: var(--paper-surface-2); }
html:root .tm-chip.on, html:root .jm-chip[aria-pressed="true"]:not(.jv-house-chip) {
  background: var(--paper-sage-soft) !important; border-color: var(--paper-sage) !important; color: var(--paper-sage) !important; }

/* inputs: the card colour with a firm hairline, corners 10px, a sage ring when in use */
html:root input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), html:root select, html:root textarea {
  border-color: var(--paper-strong); }
html:root input:focus-visible, html:root select:focus-visible, html:root textarea:focus-visible {
  outline: none !important; border-color: var(--paper-sage) !important; box-shadow: var(--paper-focus) !important; }
html:root input[type=checkbox], html:root input[type=radio], html:root input[type=range] { accent-color: var(--paper-sage); }

/* nothing wider than its box: a list box is as wide as its longest choice ("-- Choose Sector (Health, Education, etc.) --"
   pushed the Audit tab sideways on a 360 px phone), so form boxes never pass the width they are given */
html:root select, html:root input:not([type=checkbox]):not([type=radio]):not([type=range]), html:root textarea { max-width: 100%; }

/* the footer on a band, as upscpath's alternate sections */
html:root .site-footer { background: var(--paper-band); border-top: 1px solid var(--border-card); max-width: none;
  padding-left: max(24px, calc((100% - var(--page-max, 1760px)) / 2 + 24px)); padding-right: max(24px, calc((100% - var(--page-max, 1760px)) / 2 + 24px)); }

/* phones: the bottom bar is the window's paper with a hairline; the section open now is ink on the band */
@media (max-width: 1024px) {
  html:root .m-tabbar { background: color-mix(in srgb, var(--paper-window) 96%, transparent) !important; border-top: 1px solid var(--border-card) !important; box-shadow: none !important; }
  html:root .m-tab.active { color: var(--paper-ink) !important; }
  html:root .m-tab.active .m-tab-ic { background: var(--paper-band) !important; }
}

/* parts with their own colours written in, brought onto paper */
html:root .lp-sec.lp-hub-group { background: var(--bg-card) !important; border: 1px solid var(--border-card) !important; box-shadow: var(--shadow-card) !important; }
html:root .lp-card { background: var(--bg-card) !important; border: 1px solid var(--border-card) !important; box-shadow: none !important; }
html:root .lp-card:hover { border-color: var(--paper-strong) !important; }
html:root .lp-card-go { color: var(--accent-teal) !important; }
html:root .lp-hub-jump a, html:root .lp-hub-jump button { background: var(--paper-band) !important; color: var(--paper-ink) !important; border: 1px solid transparent !important; box-shadow: none !important; }
html:root .lp-hub-jump a:hover { background: var(--paper-surface-2) !important; box-shadow: inset 0 0 0 1px var(--border-card) !important; }
html:root .lp.tm a.tm-btn { color: var(--paper-ink) !important; background: var(--bg-card) !important; border: 1px solid var(--paper-strong) !important; border-radius: 999px !important; }
html:root .lp.tm a.tm-btn:hover { background: var(--paper-surface-2) !important; }
html:root .lp.tm a.tm-btn-main { color: var(--paper-on-ink) !important; background: var(--paper-ink) !important; border-color: var(--paper-ink) !important; }
html:root .lp.tm a.tm-btn-main:hover { background: color-mix(in srgb, var(--paper-ink) 84%, var(--paper-window)) !important; }

/* contrast: every pair of text and background at least 4.5:1 (3:1 for large text), checked with the audit on the main
   pages (21 Nov 2026); older light-theme colours that fell just short are darkened here */
html:root .top-ticker { background: var(--paper-band) !important; border-color: var(--border-card) !important; }
html:root .ticker-val, html:root .top-ticker .ticker-val[style] { color: var(--paper-ink) !important; }
html:root[data-theme="light"] .badge-teal { color: #0b5a73 !important; }
html:root[data-theme="light"] .badge-emerald { color: #04603f !important; }
html:root[data-theme="light"] .badge-saffron { color: #8a4a06 !important; }
html:root[data-theme="light"] .badge-indigo { color: #4338ca !important; }
html:root[data-theme="light"] .badge-crimson { color: #a3123a !important; }
html:root[data-theme="light"] .jb-open { color: #04603f !important; }
html:root[data-theme="light"] .jb-closing { color: #a3123a !important; }
html:root[data-theme="light"] .jb-soon { color: #0b5a73 !important; }
html:root[data-theme="light"] .lp-pill-muted { color: #4f5875 !important; }
html:root[data-theme="light"] .jv-mind-root { background: #1f5aa6 !important; }
html:root[data-theme="light"] .tab-count { color: #8f0f2e !important; }
html:root[data-theme="light"] .dm-tag.dm-warn { color: #6b5600 !important; }
html:root[data-theme="light"] .dm-tag.dm-good { color: #04603f !important; }

/* Tab rows: every small switch (Central / State, Supreme Court / High Court, a home tab's sub-tabs, a page's tabs, levels,
   the Institutions money parts) looks like the big tabs of the Local Government page (Panchayats / Municipal bodies): one
   card across the width, the choices in equal cells, the open one on a soft sage fill with a sage edge and a bar under it
   (user, 26 Nov 2026: "change all first image type of tab button to second type of big tab button"). Rows with many
   choices wrap into equal rows instead of scrolling sideways. */
html:root .tier-nav, html:root .sub-nav-tabs, html:root .page-tabs, html:root .lu-levels, html:root .jb-levels,
html:root .ws-nav-tabs, html:root .exp-cat-tabs, html:root .ps-tabs {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 6px;
  width: 100% !important; max-width: 100%; padding: 6px; margin-bottom: 20px; overflow: visible;
  border-radius: 14px; border: 1px solid var(--border-card) !important; background: var(--paper-band) !important; box-shadow: inset 0 1px 2px rgba(40, 34, 24, 0.06) !important; }
html:root .tier-btn, html:root .sub-nav-btn, html:root .page-tab, html:root .lu-level, html:root .jb-level,
html:root .ws-nav-tab, html:root .exp-cat-tab, html:root .ps-tab {
  display: flex !important; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; min-height: 50px; margin: 0;
  padding: 10px 14px !important; border-radius: 10px !important; border: 1px solid transparent !important;
  background: transparent !important; box-shadow: none !important; transform: none !important;
  font: 650 15px/1.3 var(--font-body) !important; letter-spacing: -0.01em; color: var(--paper-ink) !important;
  text-align: left; white-space: normal !important; cursor: pointer; transition: background-color .15s, border-color .15s; }
html:root .tier-btn:hover, html:root .sub-nav-btn:hover, html:root .page-tab:hover, html:root .lu-level:hover, html:root .jb-level:hover,
html:root .ws-nav-tab:hover, html:root .exp-cat-tab:hover, html:root .ps-tab:hover { background: var(--paper-sage-soft) !important; }
html:root .tier-btn.active, html:root .sub-nav-btn.active, html:root .page-tab.active, html:root .lu-level.active, html:root .jb-level.active,
html:root .ws-nav-tab.active, html:root .exp-cat-tab.active, html:root .ps-tab[aria-selected="true"] {
  background: var(--paper-card-solid) !important; border-color: var(--paper-sage) !important;
  box-shadow: inset 0 -3px 0 var(--paper-sage), 0 4px 12px -8px rgba(40, 34, 24, 0.4) !important; color: var(--paper-ink) !important; }
/* a tab a page has hidden stays hidden: the big-tab look above sets display with !important, which outranked the hidden
   attribute (the Officials page's Union-only tabs showed under a State, 29 Nov 2026) */
html:root :is(.tier-btn, .sub-nav-btn, .page-tab, .lu-level, .jb-level, .ws-nav-tab, .exp-cat-tab, .ps-tab)[hidden] { display: none !important; }
/* counts and small words inside a tab stay quiet */
html:root .tier-btn span, html:root .sub-nav-btn span, html:root .page-tab span, html:root .jb-level span,
html:root .ws-nav-tab .tab-badge, html:root .exp-cat-tab .tab-badge { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
html:root .ps-tab-panel[hidden] { display: none !important; }
html:root .ps-shared-title { margin: 26px 0 12px; font-size: 18px; }
@media (max-width: 640px) {
  html:root .tier-nav, html:root .sub-nav-tabs, html:root .page-tabs, html:root .lu-levels, html:root .jb-levels,
  html:root .ws-nav-tabs, html:root .exp-cat-tabs, html:root .ps-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:root .tier-btn, html:root .sub-nav-btn, html:root .page-tab, html:root .lu-level, html:root .jb-level,
  html:root .ws-nav-tab, html:root .exp-cat-tab, html:root .ps-tab { min-height: 46px; padding: 9px 12px !important; font-size: 14px !important; }
}
html:root .ws-nav-tab .tab-badge, html:root .exp-cat-tab .tab-badge { flex: none; margin-left: auto; font-family: var(--font-body) !important; font-size: 11.5px !important; }
/* Tourism's India / Foreign Trip switch in the same big tabs (user, 26 Nov 2026) */
html:root .lp.tm .tm-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 100%;
  padding: 6px; margin: 0 0 16px; border-radius: 14px; border: 1px solid var(--border-card) !important; background: var(--paper-band) !important; box-shadow: inset 0 1px 2px rgba(40, 34, 24, 0.06) !important; }
html:root .lp.tm .tm-tabs a { display: flex; align-items: center; min-height: 50px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; font: 650 15px/1.3 var(--font-body); color: var(--paper-ink) !important;
  text-decoration: none; transition: background-color .15s, border-color .15s; }
html:root .lp.tm .tm-tabs a:hover { background: var(--paper-sage-soft); }
html:root .lp.tm .tm-tabs a.on { color: var(--paper-ink) !important; background: var(--paper-card-solid) !important; border-color: var(--paper-sage);
  box-shadow: inset 0 -3px 0 var(--paper-sage), 0 4px 12px -8px rgba(40, 34, 24, 0.4); }

/* List boxes: every plain one looks like the finders' own (schemes.css .sf-field select): a rounded box with a chevron,
   in place of the browser's grey box (Officials, News, Tourism and Local Government had it; 28 Nov 2026). The
   language menu and the boxes fancy-select.js replaces keep their own look. */
html:root select:not(.lang-select):not(.fs-native):not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding: 9px 38px 9px 13px; border-radius: 12px;
  border: 1px solid var(--paper-strong, var(--border-card)); color: var(--text-primary); background-color: var(--bg-glass-input, var(--bg-card));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7d6e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.3; text-overflow: ellipsis; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s; }
html:root[data-theme="dark"] select:not(.lang-select):not(.fs-native):not([multiple]):not([size]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a39c92' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html:root select:not(.lang-select):not(.fs-native):not([multiple]):not([size]):hover { border-color: var(--paper-sage); }
html:root select option { color: initial; }

/* Two page heads still drawn for the old dark theme (Officials .exp-hero, Women .ws-hero: pink and purple glows,
   headings in a gradient, figures in pink or orange code type) brought onto paper like every other page head: a soft
   wash of the page's own colour, the title in the italic book serif, the figure in the heading type. The words, badges
   and order stay as they are. */
html:root .exp-hero, html:root .ws-hero {
  border: 1px solid var(--border-card) !important; box-shadow: var(--shadow-card) !important;
  background: linear-gradient(120deg, color-mix(in srgb, var(--paper-amber) 9%, var(--bg-card)) 0%, var(--bg-card) 48%,
    color-mix(in srgb, var(--paper-sage) 7%, var(--bg-card)) 100%) !important; }
html:root .ws-hero {
  background: linear-gradient(120deg, color-mix(in srgb, #be185d 7%, var(--bg-card)) 0%, var(--bg-card) 48%,
    color-mix(in srgb, var(--paper-sage) 7%, var(--bg-card)) 100%) !important; }
html:root .exp-hero::before, html:root .exp-hero::after, html:root .ws-hero::before, html:root .ws-hero::after { display: none !important; }
html:root :is(.exp-hero, .ws-hero) h1 {
  font-family: var(--font-serif) !important; font-style: italic !important; font-weight: 400 !important; letter-spacing: -0.01em !important;
  line-height: 1.15; color: var(--paper-ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
html:root :is(.exp-hero, .ws-hero) h1 * { background: none !important; -webkit-text-fill-color: currentColor !important; color: inherit !important; }
html:root :is(.exp-hero, .ws-hero) .mono { font-family: var(--font-display) !important; font-weight: 700 !important; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--paper-terra) !important; }
html:root .ws-hero .mono { color: #9d174d !important; }
html:root .ws-gb-figure { font-family: var(--font-display) !important; font-weight: 700 !important; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: #9d174d !important; }
html:root[data-theme="dark"] :is(.ws-hero .mono, .ws-gb-figure) { color: #f0a6c8 !important; }
/* the Women and Officials figure cards: the same heading type for their figures */
html:root :is(.ws-kpi-value, .exp-kpi-value) { font-family: var(--font-display) !important; font-weight: 700 !important; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; }

/* More parts drawn after their data arrives keep their room while empty (measured 29 Nov 2026 on a phone on slow 4G:
   the Budget tab's last panel showed in the first screen and was then pushed 11,000px away, layout shift 0.36; the Jobs
   filters grew 350px under the reader, 0.26; Local Government's figures pushed its tabs down 312px, 0.17). Heights are
   the filled ones at each width. */
html:root #union-budget-panel:has(> .pd-empty:only-child) { min-height: 100vh; min-height: 100svh; }
html:root #jb-open-filters:empty { min-height: 344px; }
html:root #lg-figures:empty { min-height: 266px; }
@media (min-width: 641px) {
  html:root #jb-open-filters:empty { min-height: 274px; }
  html:root #lg-figures:empty { min-height: 124px; }
}
@media (min-width: 1101px) { html:root #jb-open-filters:empty { min-height: 185px; } }
@media (min-width: 1025px) { html:root #lg-figures:empty { min-height: 102px; } }
