@font-face {font-family: 'Epilogue';font-style: normal;font-weight: 400;font-display: swap;src: url(/fonts/epilogue-400-latin.woff2) format('woff2');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: 'Epilogue';font-style: normal;font-weight: 600;font-display: swap;src: url(/fonts/epilogue-600-latin.woff2) format('woff2');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: 'Epilogue';font-style: normal;font-weight: 700;font-display: swap;src: url(/fonts/epilogue-700-latin.woff2) format('woff2');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: 'IBM Plex Mono';font-style: normal;font-weight: 400;font-display: swap;src: url(/fonts/ibm-plex-mono-400-latin.woff2) format('woff2');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: 'Manrope';font-style: normal;font-weight: 800;font-display: swap;src: url(/fonts/manrope-800-latin.woff2) format('woff2');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;}
/* Schemes.pk portal styles. Every colour and font is a token in :root; nothing below it uses a literal. */
:root {
  --bg: oklch(97.2% 0.006 165); --surface: oklch(100% 0 0); --surface-2: oklch(98.4% 0.004 165);
  --ink: oklch(21% 0.035 262); --ink-2: oklch(37% 0.035 258); --muted: oklch(52% 0.03 258);
  --line: oklch(91.5% 0.012 255); --line-2: oklch(86% 0.016 255);
  --brand: oklch(50% 0.115 163); --brand-strong: oklch(42% 0.1 163); --brand-soft: oklch(96.5% 0.035 163); --brand-line: oklch(87% 0.085 163); --brand-bright: oklch(80% 0.15 163);
  --amber: oklch(52% 0.13 62); --amber-soft: oklch(97% 0.04 88); --amber-line: oklch(89% 0.1 90);
  --red: oklch(50% 0.185 27); --red-soft: oklch(96.5% 0.02 20); --red-line: oklch(88% 0.06 22);
  --blue: oklch(48% 0.19 262); --blue-soft: oklch(96.5% 0.02 255);
  --night: oklch(21% 0.035 262); --night-brand: oklch(33% 0.07 168);
  --on-night: oklch(98% 0.004 165); --on-night-2: oklch(84% 0.02 250); --on-night-3: oklch(70% 0.03 252);
  --glass: oklch(100% 0 0 / 0.07); --glass-line: oklch(100% 0 0 / 0.15); --glass-2: oklch(100% 0 0 / 0.12);
  --font: "Epilogue", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --r-sm: 8px; --r: 14px; --r-pill: 999px;
  --shadow: 0 1px 2px oklch(21% 0.035 262 / 0.05), 0 8px 24px oklch(21% 0.035 262 / 0.06);
  --shadow-lift: 0 2px 4px oklch(21% 0.035 262 / 0.06), 0 16px 36px oklch(21% 0.035 262 / 0.11);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --wrap: 1240px; --gutter: 24px; --head-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --fast: 140ms; --mid: 260ms; --slow: 520ms;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--head-h) + var(--s4)); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--s1); }
::selection { background: var(--brand-line); color: var(--ink); }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 500; padding: var(--s2) var(--s4); background: var(--ink); color: var(--on-night); border-radius: var(--r-sm); }
.skip:focus-visible { top: var(--s4); }

/* top bar */
.topbar { background: var(--night); color: var(--on-night-2); font-size: 0.82rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s5); padding-block: var(--s2); }
.topbar strong { color: var(--on-night); font-weight: 600; }
.topbar a { text-decoration: underline; text-underline-offset: 3px; }
.ticker { display: inline-block; margin-right: var(--s2); padding: 1px var(--s2); border-radius: var(--s1); background: var(--brand); color: var(--on-night); font-weight: 700; font-size: 0.74rem; }

/* header */
.head { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--head-h); }
.logo { flex: none; display: inline-flex; align-items: center; gap: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.logo img { display: block; height: 36px; width: auto; }
.logo small { padding: 2px var(--s2); border: 1px solid var(--brand-line); border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 0.68rem; font-weight: 700; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: var(--s1); font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s3); border-radius: var(--r-sm); white-space: nowrap; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.nav a:hover { color: var(--brand-strong); background: var(--brand-soft); }
.nav a[aria-current] { color: var(--brand-strong); }
.nav .nav__cta { margin-left: var(--s2); background: var(--brand); color: var(--on-night); gap: var(--s2); }
.nav .nav__cta:hover { background: var(--brand-strong); color: var(--on-night); }

/* buttons, badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 46px; padding: 0 var(--s5); border: 1px solid var(--brand); border-radius: var(--r-sm); background: var(--brand); color: var(--on-night); font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg); }
.btn--sm { min-height: 36px; padding: 0 var(--s3); font-size: 0.84rem; }
.btn--soft { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--blue); }
.btn--soft:hover { background: var(--line); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.badge--open { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-strong); }
.badge--upcoming, .badge--unsure { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.badge--closed { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.badge--open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

/* hero */
.hero { background: linear-gradient(135deg, var(--night-brand) 0%, var(--night) 70%); color: var(--on-night); padding-block: var(--s7) var(--s8); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero__tag { display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s4); padding: var(--s1) var(--s3); border: 1px solid var(--glass-line); border-radius: var(--r-pill); background: var(--glass); color: var(--brand-bright); font-size: 0.8rem; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 3.2vw + 0.8rem, 3.1rem); margin-bottom: var(--s4); max-width: 18ch; }
.hero p { color: var(--on-night-2); font-size: 1.06rem; margin-bottom: var(--s5); max-width: 56ch; }
.search { display: flex; gap: var(--s2); max-width: 600px; padding: 6px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lift); }
.search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 var(--s4); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); font-size: 0.82rem; }
.pills a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--s3); border-radius: var(--r-sm); background: var(--glass); color: var(--on-night-2); transition: background-color var(--fast) var(--ease); }
.pills a:hover { background: var(--glass-2); color: var(--on-night); }
.pulse { padding: var(--s5); border: 1px solid var(--glass-line); border-radius: var(--r); background: var(--glass); }
.pulse h2 { margin-bottom: var(--s4); color: var(--brand-bright); font-size: 0.95rem; letter-spacing: 0; }
.pulse__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.pulse__grid div { padding: var(--s4); border: 1px solid var(--glass-line); border-radius: var(--r-sm); background: var(--glass); }
.pulse__grid strong { display: block; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.03em; }
.pulse__grid span { font-size: 0.8rem; color: var(--on-night-3); }
.pulse small { display: block; margin-top: var(--s3); color: var(--on-night-3); font-size: 0.78rem; }

/* sections */
.section { padding-block: var(--s7) 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.section__head h2 { font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.9rem); }
.section__head p { margin-top: var(--s2); color: var(--muted); max-width: 70ch; }
.more { display: inline-flex; align-items: center; gap: var(--s1); color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.more:hover { text-decoration: underline; }

/* filter tabs and scheme cards */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.tab { min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.tab:hover { background: var(--bg); }
.tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-night); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: var(--s5); }
.card { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.card__who { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-align: right; }
.card h3 { font-size: 1.18rem; }
.card h3 a:hover { color: var(--brand-strong); }
.card > p { font-size: 0.92rem; color: var(--ink-2); }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); padding: var(--s3); border-radius: var(--r-sm); background: var(--bg); font-size: 0.86rem; }
.meta dt { color: var(--muted); font-size: 0.74rem; }
.meta dd { font-weight: 700; overflow-wrap: anywhere; }
.card__links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--line); }
.empty { padding: var(--s6); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); text-align: center; }

/* calculators */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s6); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.calc__fields { display: grid; gap: var(--s4); align-content: start; }
.field { display: grid; gap: var(--s1); }
.field label, .seg legend { font-size: 0.86rem; font-weight: 700; padding: 0; }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 var(--s3); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-variant-numeric: tabular-nums; }
.field input:focus-visible, .field select:focus-visible, .search input:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.field small { color: var(--muted); font-size: 0.8rem; min-height: 1lh; }
.seg { display: flex; flex-wrap: wrap; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend { margin-bottom: var(--s2); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; min-height: 42px; padding: 0 var(--s4); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 0.92rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color var(--fast) var(--ease); }
.seg label:hover { background: var(--bg); }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--on-night); }
.seg input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.calc__out { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-radius: var(--r); background: var(--night); color: var(--on-night); }
.calc__big { padding-bottom: var(--s4); border-bottom: 1px solid var(--glass-line); }
.calc__big small, .calc__grid small { display: block; color: var(--on-night-3); font-size: 0.82rem; }
.calc__big output { display: block; color: var(--brand-bright); font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.calc__grid output { display: block; font-size: 1.08rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__note { margin-top: auto; color: var(--on-night-3); font-size: 0.8rem; }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--s3); counter-reset: stage; }
.stage { counter-increment: stage; padding: var(--s4); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-sm); background: var(--surface); }
.stage--risk { border-top-color: var(--red); }
.stage__n { font-size: 0.76rem; font-weight: 700; color: var(--brand-strong); }
.stage__n::before { content: "Stage " counter(stage) ", "; }
.stage--risk .stage__n { color: var(--red); }
.stage h3 { margin: var(--s1) 0 var(--s2); font-size: 1rem; }
.stage p { font-size: 0.86rem; color: var(--ink-2); }
.risk { display: inline-block; margin-top: var(--s3); padding: 2px var(--s2); border-radius: var(--s1); background: var(--red-soft); color: var(--red); font-size: 0.76rem; font-weight: 700; }

/* panels, tables, bars */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.panel { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.panel > h2, .panel > h3 { margin-bottom: var(--s4); font-size: 1.15rem; }
.panel > p + p { margin-top: var(--s3); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg); color: var(--ink-2); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; }
tbody tr:last-child > * { border-bottom: 0; }
.facts th { width: 38%; color: var(--ink-2); font-weight: 600; background: var(--surface-2); }
.bar { margin-bottom: var(--s4); }
.bar__label { display: flex; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s1); font-size: 0.86rem; font-weight: 600; }
.bar__track { height: 12px; border-radius: var(--r-pill); background: var(--bg); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--brand); transform-origin: left; }
.bar__fill--warn { background: var(--amber); }
.fine { margin-top: var(--s3); color: var(--muted); font-size: 0.8rem; }
.fine a, .prose a, .panel p a, td a, .checks a, .steps a { color: var(--blue); font-weight: 600; }
.fine a:hover, .prose a:hover, .panel p a:hover, td a:hover, .checks a:hover, .steps a:hover { text-decoration: underline; }

/* trouble cards */
.trouble { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--s4); }
.fix { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r-sm); background: var(--surface); transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease); }
.fix:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.fix h3 { font-size: 1rem; }
.fix p { font-size: 0.88rem; color: var(--ink-2); }
.fix .more { margin-top: auto; padding-top: var(--s2); font-size: 0.86rem; }
.fix--tool { border-left-color: var(--brand); }
.fix--doc { border-left-color: var(--blue); }

/* inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); font-size: 0.84rem; color: var(--on-night-3); }
.crumbs a:hover { color: var(--on-night); text-decoration: underline; }
.crumbs li { display: flex; }
.crumbs li + li::before { content: "/"; margin-right: var(--s2); }
.phead { background: linear-gradient(135deg, var(--night-brand) 0%, var(--night) 75%); color: var(--on-night); padding-block: var(--s6) var(--s7); }
.phead h1 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 2.7rem); max-width: 24ch; }
.phead p { margin-top: var(--s3); color: var(--on-night-2); font-size: 1.05rem; max-width: 62ch; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s5); }
.statusbar small { color: var(--on-night-3); font-size: 0.84rem; }
.phead .btn--ghost { background: var(--glass); border-color: var(--glass-line); color: var(--on-night); }
.phead .btn--ghost:hover { background: var(--glass-2); }
.body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; padding-block: var(--s6) 0; }
.body--full { grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; gap: var(--s5); min-width: 0; }
.stack > section > h2 { margin-bottom: var(--s4); font-size: 1.4rem; }
.side { position: sticky; top: calc(var(--head-h) + var(--s4)); display: grid; gap: var(--s4); }
.side .panel { padding: var(--s4); }
.side h2 { font-size: 1rem; margin-bottom: var(--s3); }
.side li + li { border-top: 1px solid var(--line); }
.side li a { display: flex; align-items: center; gap: var(--s2); padding: var(--s3) 0; font-size: 0.9rem; font-weight: 600; }
.side li a:hover { color: var(--brand-strong); }
.side .btn { width: 100%; }
.checks li { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .icon { margin-top: 3px; color: var(--brand); }
.steps { counter-reset: step; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: 0.94rem; }
.prose { display: grid; gap: var(--s3); color: var(--ink-2); }
.prose p { max-width: 72ch; }
details { border-bottom: 1px solid var(--line); }
details:last-child { border-bottom: 0; }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 56px; padding-block: var(--s3); font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .icon { color: var(--muted); transition: transform var(--mid) var(--ease); }
details[open] summary .icon { transform: rotate(180deg); }
details p { padding-bottom: var(--s4); color: var(--ink-2); max-width: 72ch; }
.callout { display: flex; gap: var(--s3); padding: var(--s4); border: 1px solid var(--amber-line); border-radius: var(--r-sm); background: var(--amber-soft); font-size: 0.94rem; }
.callout .icon { margin-top: 3px; color: var(--amber); }
.callout--red { border-color: var(--red-line); background: var(--red-soft); }
.callout--red .icon { color: var(--red); }
.sources li { padding: var(--s1) 0; font-size: 0.86rem; overflow-wrap: anywhere; }
.sources a { color: var(--blue); }
.sources a:hover { text-decoration: underline; }

/* footer */
.foot { margin-top: var(--s8); padding-block: var(--s7) var(--s5); background: var(--night); color: var(--on-night-2); font-size: 0.9rem; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid var(--glass-line); }
.foot h2 { margin-bottom: var(--s3); color: var(--on-night); font-size: 1rem; letter-spacing: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 32px; }
.foot a:hover { color: var(--brand-bright); }
.foot__legal { margin-top: var(--s5); color: var(--on-night-3); font-size: 0.82rem; max-width: 110ch; }
.foot__legal strong { color: var(--on-night-2); }
.foot__base { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); color: var(--on-night-3); font-size: 0.82rem; }

/* motion: only when scripts run and the visitor has not asked for less */
.js [data-reveal] { opacity: 0; translate: 0 14px; transition: opacity var(--slow) var(--ease), translate var(--slow) var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; transition-delay: calc(var(--i, 0) * 55ms), calc(var(--i, 0) * 55ms), 0s, 0s, 0s; }
.js [data-reveal].is-in { opacity: 1; translate: none; }
.js .bar__fill { transform: scaleX(0); transition: transform 900ms var(--ease) 150ms; }
.js .is-in .bar__fill { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js .bar__fill { opacity: 1; transform: none; transition: none; }
  .card, .fix, .btn, summary .icon { transition: none; }
  .card:hover, .fix:hover { transform: none; }
}

@media (max-width: 1080px) {
  :root { --head-h: 108px; }
  .head .wrap { flex-wrap: wrap; row-gap: 0; padding-block: var(--s2); }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .nav::-webkit-scrollbar { display: none; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --s7: 40px; --s8: 48px; }
  .hero__grid, .calc, .split, .body { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: var(--s6); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { position: static; }
  .calc { padding: var(--s4); gap: var(--s5); }
}
@media (max-width: 560px) {
  .pipeline, .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .search { flex-direction: column; }
  .logo small { display: none; }
  .calc__grid, .meta { grid-template-columns: minmax(0, 1fr); }
  .facts th { width: 44%; }
  .topbar .wrap > :last-child { display: none; }
}
@media print {
  .topbar, .head, .foot, .side, .no-print, .phead .btn { display: none !important; }
  body { background: var(--surface); }
  .phead { background: none; color: var(--ink); padding: 0; }
  .phead p, .statusbar small, .crumbs { color: var(--ink-2); }
  .panel { box-shadow: none; break-inside: avoid; }
  .body { display: block; padding: 0; }
  [data-reveal], .bar__fill { opacity: 1 !important; transform: none !important; }
}

/* ---------- Home: finder ---------- */
.finder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.finder__q { display: grid; gap: var(--s4); align-content: start; }
.finder__q .field input { max-width: 10rem; }
.finder__out { display: grid; gap: var(--s3); align-content: start; }
.verdict { padding: var(--s4); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.verdict h3 { margin: var(--s1) 0 0; font-size: 1.02rem; }
.verdict h3 a:hover { text-decoration: underline; }
.verdict ul { margin-top: var(--s2); padding-left: 1.1em; list-style: disc; font-size: 0.86rem; color: var(--ink-2); }
.verdict__tag { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.verdict--yes { border-left-color: var(--brand); background: var(--brand-soft); }
.verdict--yes .verdict__tag { color: var(--brand-strong); }
.verdict--check { border-left-color: var(--amber); background: var(--amber-soft); }
.verdict--no { border-left-color: var(--red); }
.verdict--no .verdict__tag { color: var(--red); }
.verdict--no h3 { color: var(--muted); }

/* ---------- Home: status board, numbers, links, change log ---------- */
.board { min-width: 680px; }
.board td, .board th { white-space: nowrap; }
.board th a { color: var(--ink); font-weight: 700; }
.board th a:hover { color: var(--brand-strong); text-decoration: underline; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--s4); }
.stat { margin: 0; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.stat strong { display: block; font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.stat figcaption { display: grid; gap: var(--s1); margin-top: var(--s2); font-size: 0.86rem; }
.stat span { color: var(--muted); }
.stat a { margin-top: var(--s2); color: var(--blue); font-size: 0.78rem; font-weight: 600; }
.stat a:hover { text-decoration: underline; }
.links { display: grid; gap: var(--s2); margin-top: var(--s4); }
.links a { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); font-size: 0.86rem; color: var(--ink-2); }
.links a:hover { background: var(--bg); }
.links .icon { color: var(--brand); margin-top: 2px; }
.links b { display: block; color: var(--ink); }
.log { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: var(--s2); }
.log li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s4); padding: 0 0 var(--s5) var(--s5); position: relative; }
.log li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid var(--surface); }
.log time { font-size: 0.84rem; font-weight: 700; color: var(--muted); }
.log h3 { font-size: 1rem; }
.log h3 a:hover { color: var(--brand-strong); text-decoration: underline; }
.log p { margin-top: var(--s1); font-size: 0.88rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .finder { grid-template-columns: minmax(0, 1fr); padding: var(--s4); }
  .log li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
}
.hub__h { margin-bottom: var(--s4); font-size: clamp(1.25rem, 1vw + 1rem, 1.6rem); }

.feat { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.feat img { display: block; width: 100%; height: auto; }
.ig { margin: 0; }
.ig img { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; border-radius: var(--r); box-shadow: var(--shadow); }
.ig figcaption { text-align: center; margin-top: var(--s3); }

/* Page header photo: sits on the right and fades into the dark gradient; on phones it fills the header behind a dark wash */
.phead--photo { position: relative; overflow: hidden; isolation: isolate; }
.phead--photo::before { content: ""; position: absolute; inset: 0 0 0 42%; z-index: -1; background: var(--hero) var(--hero-pos, center) / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.phead--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 55%, color-mix(in oklch, var(--night) 25%, transparent) 100%); }
@media (max-width: 760px) {
  .phead--photo::before { inset: 0; -webkit-mask-image: none; mask-image: none; }
  .phead--photo::after { background: linear-gradient(180deg, color-mix(in oklch, var(--night) 78%, transparent) 0%, color-mix(in oklch, var(--night) 90%, transparent) 100%); }
}

/* ---------- Motion layer (carloancalc.pk style) ---------- */
/* Buttons lift and pop */
.btn { transition: background-color var(--fast) var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px color-mix(in oklch, var(--brand) 70%, transparent); }
.btn:active { transform: scale(.96); box-shadow: none; transition-duration: .08s; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(2px) scale(1.08); }
.nav a, .nav .nav__cta { transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform .2s var(--ease); }
.nav .nav__cta:hover { transform: translateY(-1px); }
.pills a { transition: background-color var(--fast) var(--ease), transform .2s var(--ease), color var(--fast); }
.pills a:hover { transform: translateY(-2px); }
.pills a:active { transform: scale(.96); }
.tab { transition: background-color var(--fast) var(--ease), transform .15s var(--ease), color var(--fast); }
.tab:active { transform: scale(.95); }

/* Cards: lift, tilt toward the pointer, and a soft brand glow under the cursor */
.card, .fix, .pulse__grid > div, .verdict, .stage { position: relative; isolation: isolate; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.card::before, .fix::before, .pulse__grid > div::before, .verdict::before, .panel::before, .stage::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease); background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--brand) 12%, transparent), transparent 60%); }
.pulse__grid > div::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklch, var(--brand-bright) 22%, transparent), transparent 65%); }
.card:hover::before, .fix:hover::before, .pulse__grid > div:hover::before, .verdict:hover::before, .panel:hover::before, .stage:hover::before { opacity: 1; }
.card:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-4px); border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-lift); }
.fix:hover, .verdict:hover, .stage:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-3px); box-shadow: var(--shadow-lift); }
.pulse__grid > div:hover { transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-3px); border-color: color-mix(in oklch, var(--brand-bright) 50%, transparent); }
.panel { position: relative; isolation: isolate; }
.card h3 a, .fix h3 { transition: color var(--fast); }
.fix:hover h3 { color: var(--brand-strong); }
.fix .more, .more { display: inline-flex; align-items: center; gap: 4px; transition: gap .25s var(--ease), color var(--fast); }
.fix:hover .more, .more:hover { gap: 9px; }
.pulse__grid strong { font-variant-numeric: tabular-nums; }

/* Home hero: the logo mark, faded, floating on the right */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__mark { position: absolute; z-index: -1; right: max(2vw, calc(50% - 680px)); top: 50%; width: clamp(260px, 30vw, 460px); height: auto; opacity: .09; transform: translateY(-50%) rotate(-8deg); filter: saturate(1.2) drop-shadow(0 0 60px color-mix(in oklch, var(--brand-bright) 40%, transparent)); animation: mark-in 1.4s var(--ease) both, mark-float 9s ease-in-out 1.4s infinite; transition: translate .6s var(--ease); pointer-events: none; }
@keyframes mark-in { from { opacity: 0; transform: translateY(-46%) rotate(-14deg) scale(.9); } }
@keyframes mark-float { 50% { transform: translateY(-53%) rotate(-5deg); } }
.hero__grid > div:first-child > * { animation: rise .8s var(--ease) both; }
.hero__grid > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero__grid > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero__grid > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero__grid > div:first-child > :nth-child(5) { animation-delay: .32s; }
.pulse { animation: rise .9s var(--ease) .35s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.search { transition: box-shadow .25s var(--ease); }
.search:focus-within { box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand-bright) 35%, transparent); }
@media (max-width: 760px) { .hero__mark { top: 18%; right: -60px; width: 240px; opacity: .07; } }

/* Dropdowns: custom chevron, hover and focus states */
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E") no-repeat right .8rem center; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-position .25s var(--ease); }
.field select:hover, .field input:hover { border-color: var(--brand); }
.field select:hover { background-position: right .8rem center, 0 0; }
.field select:focus-visible, .field input:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 18%, transparent); }
.field input { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field label, .seg legend { font-size: .92rem; color: var(--ink); }
[data-district]:not([hidden]) { animation: rise .45s var(--ease) both; }

/* Option buttons (finder, calculators): hover outline, pop when picked */
.seg label { transition: background-color var(--fast) var(--ease), border-color var(--fast), color var(--fast), transform .15s var(--ease), box-shadow .2s; }
.seg label:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.seg label:active { transform: scale(.95); }
.seg input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--on-night); box-shadow: 0 6px 16px -8px var(--brand); animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(1.07); } }

/* Finder results slide in one after another */
.finder { position: relative; }
.verdict { animation: rise .45s var(--ease) both; }
.verdict:nth-child(2) { animation-delay: .05s; } .verdict:nth-child(3) { animation-delay: .1s; } .verdict:nth-child(4) { animation-delay: .15s; } .verdict:nth-child(5) { animation-delay: .2s; } .verdict:nth-child(n+6) { animation-delay: .25s; }
.verdict__tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface); }
.verdict__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict--yes .verdict__tag::before { animation: beat 1.8s ease-in-out infinite; }
.verdict--check .verdict__tag { color: var(--amber, #b45309); }
@keyframes beat { 50% { box-shadow: 0 0 0 5px color-mix(in oklch, currentColor 25%, transparent); } }

/* Calculator results: clear labels, tiles, a flash when a figure changes */
.calc__big small, .calc__grid small { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-bright); opacity: .85; margin-bottom: 4px; }
.calc__grid { gap: var(--s3); }
.calc__grid > div { padding: var(--s3) var(--s4); border: 1px solid var(--glass-line); border-radius: var(--r-sm); background: var(--glass); transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.calc__grid > div:hover { border-color: color-mix(in oklch, var(--brand-bright) 55%, transparent); transform: translateY(-2px); }
.calc__grid output { font-size: 1.22rem; }
.calc__out { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklch, var(--brand) 35%, transparent), transparent 60%), var(--night); }
output.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { color: #fff; transform: translateY(-3px); text-shadow: 0 0 18px var(--brand-bright); } }
.calc { transition: box-shadow .3s var(--ease); }
.calc:focus-within { box-shadow: var(--shadow-lift); }

/* Accordions ("Questions people ask"): roomy rows, a round toggle, brand colour when open */
details { transition: background-color .25s var(--ease); border-radius: var(--r-sm); }
details summary { padding-inline: var(--s3); border-radius: var(--r-sm); transition: background-color .2s var(--ease), color .2s; }
details summary:hover { background: var(--brand-soft); color: var(--brand-strong); }
details summary .icon { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--bg); color: var(--brand); transition: transform .35s var(--ease), background-color .2s, color .2s; }
details[open] summary .icon, details.is-open summary .icon { transform: rotate(180deg); background: var(--brand); color: var(--on-night); }
details.is-open summary, details[open] summary { color: var(--brand-strong); }
details > p, details > ul { padding-inline: var(--s3); }
details.is-open > :not(summary) { animation: rise .4s var(--ease) both; }

/* "Before you apply": tap-to-tick checklist */
.tick-bar { display: grid; gap: 8px; margin-bottom: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--bg); font-size: .86rem; font-weight: 700; color: var(--ink-2); transition: background-color .3s, color .3s; }
.tick-bar__track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.tick-bar__fill { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tick-bar.is-done { background: var(--brand-soft); color: var(--brand-strong); }
.checks--tick li { position: relative; align-items: flex-start; margin-inline: calc(var(--s2) * -1); padding-inline: var(--s2); border-radius: var(--r-sm); cursor: pointer; user-select: none; transition: background-color .2s var(--ease), color .2s; }
.checks--tick li:hover { background: var(--bg); }
.checks--tick li:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.checks--tick .icon { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--muted); transition: transform .3s var(--ease), opacity .2s, color .2s; }
.checks--tick .icon + .icon { position: absolute; left: var(--s2); top: var(--s3); opacity: 0; transform: scale(.4) rotate(-40deg); color: var(--brand); }
.checks--tick li[aria-checked="true"] { background: var(--brand-soft); }
.checks--tick li[aria-checked="true"] .icon:first-of-type { opacity: 0; transform: scale(.6); }
.checks--tick li[aria-checked="true"] .icon + .icon { opacity: 1; transform: none; }
.checks--tick li[aria-checked="true"] span { color: var(--brand-strong); }
.checks--tick li:active { transform: scale(.99); }

/* Sources: one official link, the rest behind "More" */
.sources--main li { display: flex; }
.sources--main a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--brand-line, var(--line)); border-radius: var(--r-pill); background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s; }
.sources--main a::before { content: "Official"; padding: 1px 8px; border-radius: var(--r-pill); background: var(--brand); color: var(--on-night); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; }
.sources--main a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.more-src { margin-top: var(--s2); border: 0; }
.more-src summary { display: inline-flex; min-height: 36px; padding: 0 6px 0 12px; gap: 6px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: .82rem; color: var(--ink-2); }
.more-src summary .icon { width: 22px; height: 22px; padding: 4px; }
.more-src .sources { padding: var(--s2) var(--s3) 0; }

@media (prefers-reduced-motion: reduce) {
  .hero__mark, .hero__grid > div:first-child > *, .pulse, .verdict, output.bump, details.is-open > :not(summary), [data-district]:not([hidden]), .seg input:checked + label, .verdict--yes .verdict__tag::before { animation: none; }
  .card, .fix, .pulse__grid > div, .verdict, .stage, .btn, .pills a { transform: none !important; }
}

/* ---------- Home: scheme map ---------- */
.smap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.smap__col { position: relative; display: flex; flex-direction: column; gap: var(--s3); }
.smap__need { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: center; padding: var(--s4); border-radius: var(--r); background: linear-gradient(135deg, var(--night-brand), var(--night)); color: var(--on-night); }
.smap__need .icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--glass-2); color: var(--brand-bright); }
.smap__need span { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-3); }
.smap__need b { font-size: 1.05rem; }
.smap ul { position: relative; display: grid; gap: var(--s2); padding-left: 22px; }
.smap ul::before { content: ""; position: absolute; left: 8px; top: -12px; bottom: 22px; width: 2px; background: linear-gradient(var(--brand), var(--line-2)); transform-origin: top; transform: scaleY(0); transition: transform .9s var(--ease) calc(var(--c) * 120ms); }
.is-in .smap ul::before, .smap.is-in ul::before { transform: none; }
.smap li { position: relative; opacity: 0; translate: -8px 0; transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: calc(var(--c) * 120ms + var(--i) * 80ms + 300ms); }
.smap.is-in li { opacity: 1; translate: none; }
.smap li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--line-2); }
.smap a { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
.smap a:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow); }
.smap a > .icon { margin-left: auto; flex: none; color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.smap a:hover > .icon { transform: translateX(3px); color: var(--brand); }
.smap__txt { display: grid; min-width: 0; }
.smap__txt b { font-size: .92rem; line-height: 1.3; }
.smap__txt small { font-size: .76rem; color: var(--muted); }
.sdot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.sdot--open { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.sdot--upcoming, .sdot--unsure { background: var(--amber); }
.sdot--closed { background: var(--line-2); }
.smap__key { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s4); font-size: .82rem; color: var(--ink-2); }
.smap__key span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1000px) { .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .smap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Home: loan vs markup bubble chart ---------- */
.lc { margin: 0; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.lc svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.lc__grid line { stroke: var(--line); stroke-dasharray: 3 5; }
.lc__grid text, .lc__ax { fill: var(--muted); font-size: 12px; font-weight: 600; }
.lc__ax { fill: var(--ink-2); font-weight: 700; }
.lc__pt circle { fill: color-mix(in oklch, var(--brand) 22%, transparent); stroke: var(--brand); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i) * 90ms + 200ms), fill .2s; }
.lc__pt--upcoming circle { fill: color-mix(in oklch, var(--amber) 22%, transparent); stroke: var(--amber); }
.lc__pt text { fill: var(--ink); font-size: 12.5px; font-weight: 700; opacity: 0; transition: opacity .4s calc(var(--i) * 90ms + 500ms), fill .2s; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; }
.lc.is-in .lc__pt circle { transform: scale(1); }
.lc.is-in .lc__pt text { opacity: 1; }
.lc__pt:hover circle, .lc__pt:focus-visible circle { fill: var(--brand); transform: scale(1.15); transition-delay: 0s; }
.lc__pt:hover text { fill: var(--brand-strong); }
@media (max-width: 600px) { .lc { padding: var(--s3); } .lc__pt text { font-size: 15px; } .lc__grid text { font-size: 14px; } }

/* ---------- Home: district quota chart ---------- */
.qc__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s3); }
.qc__head strong { display: block; font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; color: var(--brand-strong); }
.qc__head span { font-size: .86rem; color: var(--muted); }
.qc__head .field { min-width: min(100%, 260px); }
.qc__out { margin-bottom: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand-strong); font-size: .92rem; }
.qc__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); }
.qc__list li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 3.4rem; align-items: center; gap: var(--s3); padding: 7px var(--s2); border-radius: var(--r-sm); font-size: .88rem; transition: background-color .2s; }
.qc__list li:hover { background: var(--bg); }
.qc__d { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc__d small { margin-left: 6px; font-size: .7rem; color: var(--muted); font-weight: 600; }
.qc__t { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.qc__f { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease) calc(var(--i) * 50ms + 150ms); }
.qc.is-in .qc__f, .qc__more.is-open .qc__f, .qc__more[open] .qc__f { transform: none; }
.qc__list b { text-align: right; font-variant-numeric: tabular-nums; }
.qc__list li.is-pick { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); animation: pop .4s var(--ease); }
.qc__list li.is-pick b, .qc__list li.is-pick .qc__d { color: var(--brand-strong); }
.qc__more { margin: var(--s3) 0; }
@media (max-width: 760px) { .qc__list { grid-template-columns: minmax(0, 1fr); } .qc__list li { grid-template-columns: 7.5rem minmax(0, 1fr) 3rem; } }

/* ---------- Home: infographic strip ---------- */
.igs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: var(--s4); overflow-x: auto; padding: 4px 4px var(--s4); scroll-snap-type: x mandatory; scrollbar-width: thin; }
.igs__card { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.igs__card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s var(--ease); }
.igs__card span { display: grid; gap: 6px; padding: var(--s3); border-top: 1px solid var(--line); }
.igs__card b { font-size: .9rem; line-height: 1.3; }
.igs__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: color-mix(in oklch, var(--brand) 45%, var(--line)); }
.igs__card:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .smap li, .smap ul::before, .lc__pt circle, .lc__pt text, .qc__f { transition: none; opacity: 1; translate: none; transform: none; }
}
@media (max-width: 600px) {
  .lc { overflow-x: auto; }
  .lc svg { width: 640px; max-width: none; }
  .lc__pt text { font-size: 12.5px; } .lc__grid text { font-size: 12px; }
  .qc__d small { display: none; }
}
.lc__swipe { display: none; } @media (max-width: 600px) { .lc__swipe { display: inline; } }

/* ---------- Calculator results: navy, white figures, one gold line ---------- */
.calc__out { --gold: #EAB308; background: var(--night); border-top: 4px solid var(--gold); }
.calc__out output { font-family: "Manrope", var(--font); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: #F8FAFC; }
.calc__big output { color: #fff; font-size: clamp(2rem, 2.4vw + 1rem, 2.9rem); }
.calc__big output .rs { color: var(--gold); font-size: .55em; vertical-align: .35em; margin-right: 2px; }
.calc__big small, .calc__grid small { color: #94A3B8; opacity: 1; }
.calc__big { border-bottom-color: rgba(255,255,255,.1); }
.calc__grid > div { background: #1E293B; border-color: transparent; }
.calc__grid > div:hover { background: #243247; border-color: color-mix(in oklch, var(--gold) 45%, transparent); }
.calc__grid output { font-size: 1.3rem; }
@keyframes bump { 0% { color: var(--gold); transform: translateY(-3px); } }

/* ---------- AI guide ---------- */
.ai { position: fixed; right: 20px; bottom: 20px; z-index: 1000; }
.ai__fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--night); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(2, 6, 23, .6), inset 0 0 0 1px rgba(255,255,255,.08); transition: transform .25s var(--ease), box-shadow .25s; animation: rise .6s var(--ease) .8s both; }
.ai__fab .icon { width: 24px; height: 24px; color: var(--brand-bright); }
.ai__fab:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(2, 6, 23, .7), inset 0 0 0 1px #EAB30880; }
.ai__fab:active { transform: scale(.96); }
.ai.is-open .ai__fab { opacity: 0; pointer-events: none; transform: scale(.8); }
.ai__panel { position: absolute; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 40px)); border-radius: 20px; background: var(--surface); box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .55), 0 0 0 1px var(--line); overflow: hidden; transform-origin: bottom right; animation: ai-in .35s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes ai-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.ai__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--night); color: #fff; border-top: 3px solid #EAB308; }
.ai__head b { display: block; font-size: 1rem; }
.ai__head small { color: #94A3B8; font-size: .76rem; }
.ai__badge { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); color: var(--brand-bright); }
.ai__x { margin-left: auto; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #CBD5E1; cursor: pointer; transition: background-color .2s; }
.ai__x:hover { background: rgba(255,255,255,.1); color: #fff; }
.ai__log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg); overscroll-behavior: contain; }
.ai__msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; animation: rise .3s var(--ease) both; overflow-wrap: anywhere; }
.ai__msg p + p, .ai__msg ul + p, .ai__msg p + ul { margin-top: 8px; }
.ai__msg ul { padding-left: 1.1em; list-style: disc; }
.ai__msg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ai__msg--me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.ai__link { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; padding: 1px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.ai__link:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.ai__link--ext::after { content: "↗"; font-size: .8em; }
.ai__sugs { display: flex; flex-wrap: wrap; gap: 8px; }
.ai__sugs[hidden] { display: none; }
.ai__sugs button { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: .84rem; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.ai__sugs button:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); }
.ai__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s ease-in-out infinite; }
.ai__dots i:nth-child(2) { animation-delay: .15s; } .ai__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 50% { transform: translateY(-4px); opacity: .4; } }
.ai__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ai__form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 14px; font: inherit; font-size: .95rem; resize: none; transition: border-color .2s, box-shadow .2s; }
.ai__form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in oklch, var(--brand) 18%, transparent); }
.ai__send { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.ai__send:hover { background: var(--brand-strong); transform: translateY(-2px); }
.ai__send:active { transform: scale(.92); }
.ai__form.is-busy .ai__send { opacity: .5; pointer-events: none; }
.ai__fine { padding: 0 12px 10px; background: var(--surface); color: var(--muted); font-size: .72rem; }
@media (max-width: 600px) {
  .ai { right: 14px; bottom: 14px; }
  .ai__fab span { display: none; }
  .ai__fab { width: 56px; padding: 0; justify-content: center; }
  .ai.is-open { inset: 0; }
  .ai__panel { position: fixed; inset: auto 0 0 0; width: 100%; height: min(88vh, 100%); border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .ai__fab, .ai__panel, .ai__msg, .ai__dots i { animation: none; } }
@media print { .ai { display: none !important; } }

/* pill nav + mobile burger */
.nav { gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2, #F4F6F5); }
.nav a { min-height: 38px; padding: 0 16px; border-radius: 999px; }
.nav a:hover { background: var(--surface); color: var(--brand-strong); box-shadow: 0 1px 3px rgb(15 23 42 / .08); }
.nav a[aria-current] { background: var(--brand-soft); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--brand-line); }
.nav .nav__cta { margin-left: 4px; border-radius: 999px; }
.burger { display: none; }
@media (max-width: 1080px) {
  :root { --head-h: 64px; }
  .head .wrap { flex-wrap: nowrap; padding-block: 0; position: relative; }
  .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), transform .15s var(--ease); }
  .burger:active { transform: scale(.94); }
  .burger svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity .2s var(--ease), rotate .25s var(--ease), scale .25s var(--ease); }
  .burger svg:last-child, .burger[aria-expanded="true"] svg:first-child { opacity: 0; rotate: -90deg; scale: .6; }
  .burger[aria-expanded="true"] svg:last-child { opacity: 1; rotate: 0deg; scale: 1; }
  .burger[aria-expanded="true"] { background: var(--brand-soft); color: var(--brand-strong); }
  .nav { position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter); margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px; overflow: visible; border-radius: 20px; background: var(--surface); box-shadow: 0 18px 40px -12px rgb(15 23 42 / .28); transform-origin: top right; opacity: 0; scale: .96; translate: 0 -8px; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), scale .25s var(--ease), translate .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { opacity: 1; scale: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav a { min-height: 48px; padding: 0 16px; font-size: 1rem; opacity: 0; translate: 0 -6px; transition: opacity .25s var(--ease), translate .3s var(--ease), background-color .2s; }
  .nav.is-open a { opacity: 1; translate: 0 0; }
  .nav.is-open a:nth-child(2) { transition-delay: .03s; } .nav.is-open a:nth-child(3) { transition-delay: .06s; } .nav.is-open a:nth-child(4) { transition-delay: .09s; } .nav.is-open a:nth-child(5) { transition-delay: .12s; } .nav.is-open a:nth-child(6) { transition-delay: .15s; }
  .nav .nav__cta { margin: 4px 0 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .nav, .nav a, .burger svg { transition: none !important; } }

/* calculators hub */
.chub__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 20px; background: #1E293B; border-top: 4px solid #D4A017; }
.chub__stats > div { display: grid; gap: 4px; padding: 22px 24px; background: #0F172A; }
.chub__stats strong { font-family: Manrope, var(--font); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; line-height: 1; }
.chub__stats span { color: #94A3B8; font-size: .86rem; }
.chub__filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s5); }
.chub__filter button { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.chub__filter button:hover { border-color: var(--brand-line); color: var(--brand-strong); }
.chub__filter button:active { transform: scale(.96); }
.chub__filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chub__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--s4); }
.ctool { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease); }
.ctool:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: 0 16px 32px -16px rgb(15 23 42 / .25); }
.ctool[hidden] { display: none; }
.ctool__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ctool__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); }
.ctool__icon svg { width: 26px; height: 26px; }
.ctool h3 { margin: 0; font-size: 1.15rem; }
.ctool p { margin: 0; color: var(--ink-2); flex: 1; }
.ctool__eg { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #0F172A; border-top: 3px solid #D4A017; }
.ctool__eg small { color: #94A3B8; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.ctool__eg strong { font-family: Manrope, var(--font); font-weight: 800; font-size: 1.5rem; color: #fff; }
.ctool__eg span { color: #94A3B8; font-size: .84rem; }
.ctool .btn { align-self: flex-start; gap: 6px; }
.chub__none { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.chub__none a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; color: var(--ink-2); }
.chub__none a:hover { color: var(--brand-strong); border-color: var(--brand-line); }
.chub__none svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .chub__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chub__stats > div { padding: 16px; } }

/* logo: footer copy + hover pulse */
.logo--foot { display: inline-flex; margin-bottom: var(--s3); }
.logo--foot img { height: 44px; width: auto; }
.logo img { transform-origin: left center; }
@keyframes logo-pulse { 0% { scale: 1; } 35% { scale: 1.08; } 65% { scale: .97; } 100% { scale: 1; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .logo:hover img, .logo:focus-visible img { animation: logo-pulse .6s cubic-bezier(.34, 1.56, .64, 1); }
}

/* Urdu summary */
.ur { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", serif; }
.ur p { font-size: 1.05rem; line-height: 2.2; margin: 0; }
.ur h2 { font-family: inherit; }

/* glossary terms */
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
/* author box */
.byline { display: flex; gap: var(--s3); align-items: flex-start; }
.byline__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #047857; color: #fff; font-weight: 700; }

/* form walkthrough */
.walk { list-style: decimal; margin: var(--s3) 0; padding-left: 1.4em; display: grid; gap: 6px; }
.walk-anim summary { cursor: pointer; font-weight: 600; }
.walk-anim img { margin-top: var(--s3); width: 100%; height: auto; border-radius: 10px; }
/* timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl__i { position: relative; padding: 0 0 var(--s4) 28px; display: grid; gap: 2px; }
.tl__i::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: #d1d5db; }
.tl__i:last-child::before { display: none; }
.tl__i::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #047857; }
.tl__i--now::after { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
.tl__i--next::after { background: #fff; border: 2px solid #9ca3af; }

/* printable letter template */
.letter { border: 1px dashed #9ca3af; border-radius: 10px; padding: var(--s4); margin: var(--s3) 0; background: #fff; }
.letter p { margin: 0 0 .6em; }
.letter[dir="rtl"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; line-height: 2.2; }
@media print { body.print-one * { visibility: hidden; } body.print-one .letter.printing, body.print-one .letter.printing * { visibility: visible; } body.print-one .letter.printing { position: absolute; left: 0; top: 0; width: 100%; border: 0; } }

/* full Urdu pages */
.ur-page { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Segoe UI", serif; line-height: 2.1; }
.ur-page h2 { font-family: inherit; }
.ur-page th, .ur-page td { text-align: right; }
