/* Tokens ------------------------------------------------------------ */
:root {
  --paper: #eef1f4;
  --card: #ffffff;
  --ink: #141c24;
  --ink-2: #4d5964;
  --ink-3: #5c6874; /* 5.4:1 on white; small labels, counts, credits */
  --rule: #d6dce2;
  --rule-strong: #b9c2cb;
  --accent: #1d4e89;
  --accent-ink: #163d6b;
  --accent-soft: #e3ebf5;

  /* Status scale: fixed, reused everywhere */
  --good: #1b7f4c;      --good-soft: #e1f3e8;
  --exempt: #0f6ba1;    --exempt-soft: #dff0f5;
  --warn: #b45309;      --warn-soft: #fbeedc;
  --bad: #c0271d;       --bad-soft: #fbe3e0;
  --none: #6b7280;      --none-soft: #e9ebee;





  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", serif; /* loaded only on /ur/ pages, later */

  --wrap: 72rem;
  --radius: 6px;
}

/* Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }
p, li, dd, dt, figcaption { text-wrap: pretty; }
@supports (padding: env(safe-area-inset-left)) { body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--body); font-variant-numeric: tabular-nums;
}
[dir="rtl"] body { font-family: var(--urdu), var(--body); line-height: 2; }
::selection { background: var(--accent-soft); color: var(--ink); }
.hero-band ::selection { background: rgba(255,255,255,.28); color: #fff; }
html { caret-color: var(--accent); }
.table-scroll, .vb-side, .compare-wrap { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 0.5rem; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem); }
p { margin: 0 0 0.9rem; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; }
.skip:focus { inset-inline-start: 1rem; z-index: 10; }
.eyebrow { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .5rem; font-weight: 600; }
.small, .sources, .cell-note, .muted { color: var(--ink-2); }
.small, .sources { font-size: .875rem; }
.sources { margin-top: .6rem; }
.cell-note { display: block; font-size: .78rem; line-height: 1.35; margin-top: .1rem; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* Header / footer --------------------------------------------------- */
.site-head { background: var(--card); border-bottom: 1px solid var(--rule); }
.site-head__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .8rem 0; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: .1rem .3rem; margin-inline-start: auto; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; padding: .3rem .5rem; border-radius: 4px; }
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-foot { margin-top: 4rem; border-top: 1px solid var(--rule); background: var(--card); padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--ink-2); }
.site-foot__grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .site-foot__grid { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.site-foot__about { color: var(--ink); }
.site-foot__links a { margin-inline-end: 1rem; }

/* Hero + strip ------------------------------------------------------ */
.hero { padding: 2.5rem 0 1.5rem; max-width: 52rem; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46rem; }
.strip { display: flex; gap: 2px; margin: 1.6rem 0 .7rem; height: 22px; }
.strip__cell { flex: 1 1 0; border-radius: 2px; }
.strip__cell--good { background: var(--good); }
.strip__cell--exempt { background: var(--exempt); }
.strip__cell--warn { background: var(--warn); }
.strip__cell--bad { background: var(--bad); }
.strip__cell--none { background: var(--none); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--rule-strong); background: var(--card); border-radius: 999px; padding: .3rem .8rem .3rem .6rem; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--ink-3); }
.chip b { font-weight: 600; color: var(--ink-2); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--none); }
.chip--good .chip__dot { background: var(--good); }
.chip--exempt .chip__dot { background: var(--exempt); }
.chip--warn .chip__dot { background: var(--warn); }
.chip--bad .chip__dot { background: var(--bad); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active b { color: #d9dee3; }

/* Filters ----------------------------------------------------------- */
.schools { margin-top: 1.5rem; }
.schools__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.5rem; margin-bottom: .8rem; }
.schools__head h2 { margin: 0; }
.schools__note { margin: 0; font-size: .9rem; color: var(--ink-2); }
.filters { display: grid; gap: .6rem .8rem; grid-template-columns: repeat(2, 1fr); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem; margin-bottom: 1rem; }
@media (min-width: 760px) { .filters { grid-template-columns: repeat(4, 1fr); } .filters__field--search { grid-column: span 2; } }
@media (min-width: 1000px) { .filters { grid-template-columns: repeat(6, 1fr); } }
.filters__field { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.filters select, .filters input[type="search"] { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); padding: .45rem .5rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; min-width: 0; width: 100%; }
.filters__check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; align-self: end; padding-bottom: .4rem; }
.filters__check small { color: var(--ink-2); font-weight: 400; }
.filters__count { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--ink-2); }
.filters__count .link { margin-inline-start: .6rem; }

/* Table ------------------------------------------------------------- */
.table-scroll { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll--plain { background: none; border: 0; border-radius: 0; }
.schools-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.schools-table th, .schools-table td { text-align: start; padding: .7rem .75rem; vertical-align: top; border-top: 1px solid var(--rule); }
.schools-table thead th { border-top: 0; border-bottom: 2px solid var(--rule-strong); background: #f7f9fb; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.schools-table thead button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.schools-table thead button::after { content: "↕"; opacity: .35; margin-inline-start: .3rem; }
.schools-table thead button[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
.schools-table thead button[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
.schools-table .num { text-align: end; }
.schools-table tbody tr:hover { background: #fafbfc; }
.school-link { font-weight: 600; }
.school-link--pending { color: var(--ink); }
.school-full { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.35; max-width: 26rem; }
.js .schools:not([data-filtered]) tbody tr[data-enrol="no"] { display: none; }
tr[hidden] { display: none; }

@media (max-width: 759px) {
  .table-scroll { background: none; border: 0; }
  .schools-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .schools-table, .schools-table tbody, .schools-table tr, .schools-table td { display: block; }
  .schools-table tr { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .5rem .9rem .7rem; margin-bottom: .6rem; }
  .schools-table td { border: 0; padding: .35rem 0; display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; text-align: start; }
  .schools-table td::before { content: attr(data-label); font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); padding-top: .15rem; }
  .schools-table td[data-label="School"] { grid-template-columns: 1fr; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); margin-bottom: .2rem; }
  .schools-table td[data-label="School"]::before { display: none; }
  .schools-table .num { text-align: start; }
}

/* Status pills ------------------------------------------------------ */
.status { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status--good { color: var(--good); } .status--good .status__dot { background: var(--good); }
.status--exempt { color: var(--exempt); } .status--exempt .status__dot { background: var(--exempt); }
.status--warn { color: var(--warn); } .status--warn .status__dot { background: var(--warn); }
.status--bad { color: var(--bad); } .status--bad .status__dot { background: var(--bad); }
.status--none { color: var(--none); } .status--none .status__dot { background: var(--none); }
.table-foot { font-size: .85rem; color: var(--ink-2); margin-top: .8rem; max-width: 60rem; }

.home-notes { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .home-notes { grid-template-columns: 1fr 1fr; } }
.note-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.note-card h2 { font-size: 1.15rem; }

/* School page ------------------------------------------------------- */
.crumbs { font-size: .85rem; color: var(--ink-2); padding-top: 1rem; }
.crumbs span { margin: 0 .3rem; }
.school-head { padding: 1rem 0 1.5rem; max-width: 56rem; }
.school-ru { color: var(--ink-2); margin: .2rem 0 .6rem; }
.school-links { font-size: .92rem; }

.status-box { display: grid; gap: 1.5rem; background: var(--card); border: 1px solid var(--rule); border-inline-start: 3px solid var(--none); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; }
@media (min-width: 860px) { .status-box { grid-template-columns: 1.4fr 1fr; gap: 2.5rem; } }
.status-box--good { border-inline-start-color: var(--good); }
.status-box--exempt { border-inline-start-color: var(--exempt); }
.status-box--warn { border-inline-start-color: var(--warn); }
.status-box--bad { border-inline-start-color: var(--bad); }
.status-box h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 700; margin-bottom: .6rem; }
.status-box--good h2 { color: var(--good); }
.status-box--exempt h2 { color: var(--exempt); }
.status-box--warn h2 { color: var(--warn); }
.status-box--bad h2 { color: var(--bad); }
.status-box__sentence { font-size: 1.05rem; font-weight: 600; }
.status-box__defn { color: var(--ink-2); }
.status-box__facts { display: grid; gap: .5rem 1.5rem; margin: .8rem 0; padding: .8rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .92rem; }
@media (min-width: 560px) { .status-box__facts { grid-template-columns: auto 1fr; } .status-box__facts div { display: contents; } }
.status-box__facts dt { color: var(--ink-2); font-weight: 600; }
.status-box__facts dd { margin: 0; }
.means { background: var(--paper); border-radius: 4px; padding: .7rem .9rem; margin: .4rem 0 .6rem; }

/* The ladder: the fixed five-step scale */
.ladder { list-style: none; margin: 0; padding: 0; align-self: start; }
.ladder__step { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 4px; color: var(--ink-3); font-size: .9rem; position: relative; }
.ladder__step + .ladder__step::before { content: ""; position: absolute; inset-inline-start: calc(.5rem + .7rem - 1px); top: -.5rem; height: .5rem; width: 2px; background: var(--rule-strong); }
.ladder__mark { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; justify-self: center; background: #fff; }
.ladder__step--good { color: var(--good); } .ladder__step--exempt { color: var(--exempt); } .ladder__step--warn { color: var(--warn); } .ladder__step--bad { color: var(--bad); } .ladder__step--none { color: var(--none); }
.ladder__step:not(.is-here) { color: var(--ink-3); }
.ladder__step:not(.is-here) .ladder__mark { border-color: var(--rule-strong); }
.ladder__count { font-size: .78rem; color: var(--ink-3); }
.ladder__step.is-here { font-weight: 700; color: var(--ink); }
.ladder__step.is-here .ladder__mark { background: currentColor; border-color: currentColor; box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }
.ladder__step--good.is-here .ladder__mark { color: var(--good); } .ladder__step--exempt.is-here .ladder__mark { color: var(--exempt); } .ladder__step--warn.is-here .ladder__mark { color: var(--warn); } .ladder__step--bad.is-here .ladder__mark { color: var(--bad); } .ladder__step--none.is-here .ladder__mark { color: var(--none); }
.ladder__step.is-here { background: var(--paper); }

.block { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .8rem; }
.block__head h2 { margin: 0; }
.block > p:not(.sources):not(.table-foot):not(.small), .block > .plain-list, .lede, .tl-intro, .tl__body p, .list-section > p { max-width: 72ch; }
.verified { font-size: .78rem; color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 3px; padding: .1rem .45rem; letter-spacing: .02em; white-space: nowrap; }
@media (max-width: 560px) { .verified { white-space: normal; } }
.facts { display: grid; gap: .6rem 1.5rem; margin: 0; }
@media (min-width: 620px) { .facts { grid-template-columns: 11rem 1fr; } .facts > div { display: contents; } }
.facts dt { color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.facts dd { margin: 0; }
.facts--tight { font-size: .95rem; margin-top: .6rem; }
.facts + .small { margin-top: .9rem; }
.facts__fee dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.fee-text { flex: 1 1 100%; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: .1rem .5rem; border-radius: 3px; border: 1px solid; white-space: nowrap; }
.recog .tag, td .tag { white-space: normal; }
.tag--estimate { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }
.tag--official { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.tag--expired { color: var(--ink-2); border-color: var(--rule-strong); background: var(--none-soft); }
.tag--ok { color: var(--good); border-color: var(--good); background: var(--good-soft); }
.tag--visit { color: var(--exempt); border-color: var(--exempt); background: var(--exempt-soft); }

/* Exam results: counts only, one line per session ------------------- */
.exam { list-style: none; margin: 0 0 .8rem; padding: 0; }
.exam li { padding: .6rem 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .5rem; }
.exam__count { font-weight: 600; font-size: 1.05rem; }
.exam__session { color: var(--ink-2); }
.exam__src { flex: 1 1 100%; font-size: .85rem; color: var(--ink-2); }
.exam__flag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--warn); background: var(--warn-soft); border: 1px solid currentColor; border-radius: 3px; padding: .05rem .45rem; line-height: 1.4; }
.flag { display: inline-block; font-size: .72rem; font-weight: 600; color: var(--warn); border: 1px solid var(--warn); border-radius: 3px; padding: 0 .35rem; white-space: normal; }

/* Where will you practise? ------------------------------------------ */
.practise { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: 1.4rem; }
.practise__q { font-weight: 600; font-size: .95rem; }
.practise__opts { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; background: var(--card); }
.practise__opts button { font: inherit; font-size: .9rem; padding: .45rem .9rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.practise__opts button + button { border-inline-start: 1px solid var(--rule-strong); }
.practise__opts button:hover { background: var(--paper); }
.practise__opts button:focus-visible { outline-offset: -3px; }
.practise__opts button[aria-pressed="true"], .practise__opts button[aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
.practise__rate { flex: 1 1 100%; font-size: .8rem; color: var(--ink-2); }
.practise__note { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .6rem .9rem; margin: .8rem 0 0; font-size: .92rem; max-width: 46rem; }
.school-head .practise { margin-top: 1rem; }
html:not(.js) .practise { display: none; }
.pair-switch { margin: .4rem 0 .8rem; }
.pair-switch__note { margin: 0 0 .4rem; font-size: .9rem; color: var(--ink-2); max-width: 72ch; }
.practise--inline { margin-top: 0; }
html:not(.js) .pair-switch { display: none; }
[data-country-box][hidden] { display: none; }

/* Fairness and observations ----------------------------------------- */
.fairness { font-size: .9rem; color: var(--ink-2); border-top: 1px dashed var(--rule-strong); padding-top: .6rem; margin-top: .8rem; }
.observed { background: var(--exempt-soft); border-radius: 4px; padding: .6rem .8rem; }
.status-box__no { display: inline-block; background: var(--bad); color: #fff; font-weight: 700; padding: .25rem .7rem; border-radius: 4px; margin: 0 0 .7rem; }

/* Recognition ------------------------------------------------------- */
.recog { width: 100%; border-collapse: collapse; font-size: .92rem; }
.recog th, .recog td { text-align: start; padding: .5rem .5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.recog thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
.recog__note td { color: var(--ink-2); font-size: .88rem; }
@media (max-width: 560px) { .recog thead { display: none; } .recog tr { display: grid; grid-template-columns: 1fr 1fr; padding: .4rem 0; border-bottom: 1px solid var(--rule); } .recog td { border: 0; padding: .15rem .3rem; } .recog td:nth-child(2) { grid-column: 1 / -1; } }

/* Two boxes --------------------------------------------------------- */
.pair { display: grid; gap: 1.2rem; margin-bottom: 1.2rem; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.box { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.box h2 { font-size: 1.3rem; }
.box--country > summary { list-style: none; cursor: pointer; margin: -.2rem 0; padding: .2rem 0; display: flex; align-items: baseline; gap: .6rem; }
.box--country > summary::-webkit-details-marker { display: none; }
.box--country > summary h2 { margin: 0; flex: 1; }
.box--country > summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-inline-end: .2rem; border-inline-end: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .18s ease-out; }
.box--country[open] > summary::after { transform: rotate(-135deg); }
.box--country[open] > summary { margin-bottom: .6rem; }
html:not(.js) .box--country > summary::after { display: none; }
.checks { list-style: none; padding: 0; margin: .6rem 0; }
.checks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--rule); font-size: .95rem; }
.chk { width: 12px; height: 12px; border-radius: 50%; margin-top: .35rem; background: var(--none); }
.chk--ok { background: var(--good); } .chk--warn { background: var(--warn); } .chk--bad { background: var(--bad); } .chk--none { background: var(--rule-strong); }

.block--self { border-style: dashed; background: #fbfcfd; }
.related ul { margin: 0; padding-inline-start: 1.2rem; }
.related li { margin: .2rem 0; }
.source-list { padding-inline-start: 1.3rem; font-size: .92rem; }
.source-list li { margin: .3rem 0; }
.stamp { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin: 1rem 0 0; font-size: .82rem; }
.stamp span { border: 1px solid var(--rule-strong); border-radius: 3px; padding: .15rem .55rem; color: var(--ink-2); }

/* Listing cards and filter sidebar (home page) ---------------------- */

.vb-hero { padding: 1.8rem 0 1.2rem; max-width: 60rem; }
.vb-hero h1 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; }
.vb-hero p { color: var(--ink-2); max-width: 46rem; }
.vb-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1rem; }
@media (min-width: 700px) { .vb-stats { grid-template-columns: repeat(4, 1fr); } }
.vb-stats div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .7rem .9rem; display: flex; flex-direction: column; }
.vb-stats b { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.vb-stats span { font-size: .8rem; color: var(--ink-2); }

.vb-layout { display: grid; gap: 1.2rem; align-items: start; margin-top: .5rem; }
@media (min-width: 900px) { .vb-layout { grid-template-columns: 16rem 1fr; gap: 1.5rem; } .vb-side { position: sticky; top: .8rem; max-height: calc(100vh - 1.6rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-inline-end: .2rem; } }

.vb-filters { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem; }
.vb-filters__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .6rem; }
.vb-filters__toggle { display: none; font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: .1rem 0; cursor: pointer; align-items: center; gap: .5rem; }
.vb-filters__toggle::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.vb-filters.is-open .vb-filters__toggle::after { transform: translateY(2px) rotate(-135deg); }
.vb-search input { color: var(--ink); width: 100%; font: inherit; padding: .45rem .6rem; border: 1px solid var(--rule-strong); border-radius: 4px; margin-bottom: .6rem; }
.vb-filters details { border-top: 1px solid var(--rule); padding: .45rem 0 .35rem; }
.vb-filters summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); padding: .15rem 0; }
.vb-filters summary::-webkit-details-marker { display: none; }
.vb-filters summary::after { content: ""; width: 7px; height: 7px; border-inline-end: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; margin-inline-end: .2rem; }
.vb-filters details[open] summary::after { transform: rotate(-135deg); }
.vb-filters details > label:first-of-type { margin-top: .25rem; }

.vb-filters label { display: flex; align-items: center; gap: .4rem; padding: .18rem 0; cursor: pointer; }
.vb-filters label small { color: var(--ink-3); margin-inline-start: auto; }
.vb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--none); flex: none; }
.vb-dot--good { background: var(--good); } .vb-dot--exempt { background: var(--exempt); } .vb-dot--warn { background: var(--warn); } .vb-dot--bad { background: var(--bad); }
@media (max-width: 899px) {
  .vb-filters__title { display: none; }
  .vb-filters__toggle { display: inline-flex; }
  .vb-filters__groups { display: none; }
  .vb-filters.is-open .vb-filters__groups { display: block; }
  .vb-filters.is-open .vb-search input { margin-bottom: .2rem; }
}

.vb-results { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; margin-bottom: .8rem; }
.vb-results h2 { margin: 0; font-size: 1.2rem; }
.vb-sort { font-size: .85rem; color: var(--ink-2); display: flex; align-items: center; gap: .4rem; }
.vb-sort select { font: inherit; padding: .35rem .5rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; color: var(--ink); }

.vb-cards { display: grid; gap: .8rem; }
.vb-card { display: grid; grid-template-columns: 3.4rem 1fr; gap: .9rem; background: var(--card); border: 1px solid var(--rule); border-inline-start: 3px solid var(--none); border-radius: var(--radius); padding: 1rem 1.1rem; }
@media (min-width: 760px) { .vb-card { grid-template-columns: 3.6rem 1fr 9.5rem; } }
.vb-card--good { border-inline-start-color: var(--good); } .vb-card--exempt { border-inline-start-color: var(--exempt); } .vb-card--warn { border-inline-start-color: var(--warn); } .vb-card--bad { border-inline-start-color: var(--bad); }
.vb-card[hidden] { display: none; }
.vb-mono { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.vb-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.vb-card__top h3 { margin: 0; font-size: 1.15rem; }
.vb-card__top h3 a { text-decoration: none; }
.vb-card__top h3 a:hover { text-decoration: underline; }
.vb-card__full { margin: .1rem 0 0; font-size: .82rem; color: var(--ink-2); }
.vb-card__meta { margin: .2rem 0 .6rem; font-size: .85rem; color: var(--ink-2); }
.vb-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; margin: 0; padding-top: .6rem; border-top: 1px solid var(--rule); }
/* Each label and value pair spans two shared rows, so values line up across the columns even when a label wraps */
.vb-card__stats > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; align-content: start; }
.vb-card__stats > div:nth-child(n+3) { margin-top: .55rem; }
@media (min-width: 560px) { .vb-card__stats { grid-template-columns: repeat(4, 1fr); } .vb-card__stats > div:nth-child(n+3) { margin-top: 0; } }
.vb-card__stats dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.vb-card__stats dd { margin: 0; font-weight: 600; font-size: .95rem; }
.vb-card__stats dd small { display: block; font-weight: 400; color: var(--ink-2); font-size: .75rem; }
.vb-card__note { margin: .6rem 0 0; font-size: .82rem; color: var(--ink-2); }
.vb-card__help { margin: .5rem 0 0; font-size: .78rem; }
.vb-card__help a { color: var(--ink-2); }
.vb-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; grid-column: 2; }
@media (min-width: 760px) { .vb-card__actions { grid-column: 3; flex-direction: column; align-items: stretch; text-align: center; justify-content: center; } }
.vb-btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .9rem; border-radius: 4px; }
.vb-btn:hover { background: var(--accent-ink); color: #fff; }
.vb-btn--off { background: var(--rule-strong); color: #fff; cursor: not-allowed; }
.vb-compare { font-size: .85rem; color: var(--ink-2); display: inline-flex; gap: .3rem; align-items: center; justify-content: center; }
.vb-verified { font-size: .72rem; color: var(--ink-3); }
.vb-empty { background: var(--card); border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: 1rem; }
.vb-compare-bar { position: sticky; bottom: 0; margin-top: 1rem; background: var(--ink); color: #fff; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px)); border-radius: var(--radius); font-size: .9rem; }
html { scroll-padding-bottom: 4rem; }
.vb-compare-bar a { color: #fff; }

/* Photos, contact, trust line ---------------------------------------- */
.hero--compact { padding-top: 1rem; }
.trust-line { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: .9rem 0 0; font-size: .82rem; }
.trust-line span { border: 1px solid var(--rule-strong); border-radius: 3px; padding: .15rem .55rem; color: var(--ink-2); background: var(--card); }
.vb-side__alt { font-size: .9rem; margin: .6rem 0 0; }
.vb-thumb { display: block; width: 3.4rem; height: 3.4rem; border-radius: 8px; overflow: hidden; background: var(--accent-soft); }
.vb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vb-thumb--placeholder { opacity: .9; }
.vb-contact { font-size: .85rem; }
.gallery { display: grid; gap: .8rem; margin-top: .4rem; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.photo { margin: 0; }
.photo__img, .photo picture img { width: 100%; height: auto; display: block; border-radius: 6px; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper); }
.photo figcaption { font-size: .8rem; color: var(--ink-2); margin-top: .35rem; }
.photo__credit { color: var(--ink-3); }
.photo--placeholder picture img { filter: saturate(.85); }
.photo-empty { border: 1px dashed var(--rule-strong); border-radius: 6px; padding: 1.4rem 1rem; text-align: center; color: var(--ink-2); font-size: .9rem; background: var(--paper); margin: 0; }
.block--contact { border-color: var(--rule-strong); }
.contact dd a { font-weight: 600; }

/* List pages, compare ---------------------------------------------- */
.list-section { margin-top: 1.8rem; }
.list-section h2 { margin-bottom: .4rem; }
.list-section > p { max-width: 60rem; }
.plain-list { margin: 0; padding-inline-start: 1.2rem; }
.plain-list li { margin: .25rem 0; }
.timeline { margin: 0; padding-inline-start: 1.2rem; }
.timeline li { margin: .3rem 0; }
.timeline b { font-weight: 600; margin-inline-end: .3rem; white-space: nowrap; }
.compare-wrap { margin-top: 1.2rem; }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; }
.compare th, .compare td { text-align: start; padding: .6rem .75rem; vertical-align: top; border-top: 1px solid var(--rule); }
.compare thead th { border-top: 0; border-bottom: 2px solid var(--rule-strong); background: #f7f9fb; font-family: var(--display); font-size: 1.05rem; }
.compare thead th a { text-decoration: none; }
.compare__full { display: block; font-family: var(--body); font-size: .75rem; font-weight: 400; color: var(--ink-2); line-height: 1.3; }
.compare tbody th { width: 11rem; color: var(--ink-2); font-weight: 600; font-size: .85rem; background: #fafbfc; }
.compare td > div + div { margin-top: .25rem; }
@media (max-width: 640px) { .compare tbody th { width: 7rem; font-size: .78rem; } .compare th, .compare td { padding: .5rem .4rem; } }
.compare-pick { display: grid; gap: .8rem; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; margin-top: .5rem; align-items: end; }
@media (min-width: 760px) { .compare-pick { grid-template-columns: 1fr 1fr 1fr auto; } }
.compare-pick select { font: inherit; font-weight: 400; color: var(--ink); padding: .45rem .5rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; width: 100%; }
.compare-pick .vb-btn { border: 0; cursor: pointer; }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare td { min-width: 11rem; }

/* Methodology, changelog ------------------------------------------- */
.method th[scope="row"] { white-space: nowrap; }
.method td, .method th { font-size: .9rem; }
.recog tr.is-here th, .recog tr.is-here td { background: var(--accent-soft); font-weight: 600; }
.changelog { list-style: none; margin: 0; padding: 0; }
.changelog li { display: grid; grid-template-columns: 7rem auto 1fr; gap: .4rem 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--rule); }
.changelog time { font-weight: 600; white-space: nowrap; }
.changelog p { margin: 0; grid-column: 3; }
@media (max-width: 560px) { .changelog li { grid-template-columns: auto auto; } .changelog p { grid-column: 1 / -1; } }
.fee-table { border-collapse: collapse; margin: 0 0 .3rem; font-size: .95rem; }
.fee-table th { text-align: start; font-weight: 600; color: var(--ink-2); padding: .15rem 0; padding-inline-end: 1rem; }
.fee-table td { padding: .15rem 0; }

/* Working abroad later (details block) ------------------------------ */
.abroad { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0 1.5rem; margin-bottom: 1.2rem; }
.abroad summary { list-style: none; cursor: pointer; padding: 1.1rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.abroad summary::-webkit-details-marker { display: none; }
.abroad summary h2 { margin: 0; display: inline; }
.abroad summary h2::before { content: ""; display: inline-block; width: .55rem; height: .55rem; margin-inline-end: .75rem; vertical-align: .15em; border-inline-end: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); transition: transform .18s ease-out; }
.abroad[open] summary h2::before { transform: rotate(45deg); }
.abroad__hint { font-size: .85rem; color: var(--ink-2); }
.abroad[open] .abroad__hint { display: none; }
.abroad > p, .abroad > ul, .abroad__routes { margin-bottom: 1rem; }
.abroad > .small { padding-bottom: 1.1rem; }
.abroad__routes { display: grid; gap: 1rem; }
@media (min-width: 760px) { .abroad__routes { grid-template-columns: 1fr 1fr; } }
.abroad__route { background: var(--paper); border-radius: 6px; padding: .9rem 1rem; }
.abroad__route h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.abroad__route p { font-size: .92rem; margin-bottom: .4rem; }
.checks li .cell-note { grid-column: 2; }
.checks__src { font-size: .9rem; white-space: nowrap; }

/* Editor notes (dev server only) ------------------------------------ */
.block--editor { background: #fff8dc; border: 2px dashed #d4b106; }
.block--editor code { background: #fff; padding: 0 .3rem; border-radius: 3px; }

/* Questions and answers --------------------------------------------- */
.qa { margin: 0 0 1rem; }
.qa__item { padding: .8rem 0; border-top: 1px solid var(--rule); }
.qa__item dt { font-weight: 600; font-size: 1.02rem; margin-bottom: .3rem; }
.qa__item dd { margin: 0; }
.qa__item dd p { margin-bottom: .4rem; }
.qa__meta { font-size: .85rem; color: var(--ink-2); }
.qa__more { margin: 0; font-size: .92rem; }
.qa__more a::after { content: " \203A"; }
[dir="rtl"] .qa__more a::after { content: " \2039"; }
.qa__ask { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: .4rem 0 0; }
.qa__ask .small { flex: 1 1 18rem; }

/* Ask a question --------------------------------------------------- */
.ask { margin-top: .6rem; padding-top: .8rem; border-top: 1px solid var(--rule); }
.ask label { display: block; margin-bottom: .4rem; }
.ask textarea { width: 100%; font: inherit; color: var(--ink); padding: .55rem .7rem; border: 1px solid var(--rule-strong); border-radius: 4px; resize: vertical; min-height: 4.5rem; }
.ask__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .6rem 0 .5rem; }
.ask__actions .vb-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.ask__actions .vb-btn[disabled] { opacity: .55; cursor: default; }
.ask__hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.ask__email { margin: .2rem 0 .6rem; }
.ask__email summary { cursor: pointer; font-size: .9rem; color: var(--accent); text-decoration: underline; list-style: none; }
.ask__email summary::-webkit-details-marker { display: none; }
.ask__email .ask__actions { margin-top: .5rem; }
.ask__widget:empty { display: none; }
.correct__grid { display: grid; gap: .7rem 1rem; grid-template-columns: minmax(0, 1fr); margin-bottom: .7rem; }
@media (min-width: 700px) { .correct__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.correct__grid > label { min-width: 0; }
.correct label { display: block; font-weight: 600; font-size: .9rem; }
.correct input, .correct select, .correct textarea { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: .3rem; font: inherit; font-weight: 400; color: var(--ink); padding: .5rem .65rem; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; }
.correct textarea { min-height: 7rem; resize: vertical; }
[data-ask-status].is-ok { color: var(--good); font-weight: 600; }
[data-ask-status].is-bad { color: var(--bad); }
.vb-btn--light { background: var(--accent-soft); color: var(--accent-ink); }
.vb-btn--light:hover { background: #d3dff0; color: var(--accent-ink); }

/* Hindi and Urdu ----------------------------------------------------- */
html[lang="hi"] body { font-family: "Noto Sans Devanagari", var(--body); }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { font-family: "Noto Sans Devanagari", var(--display); letter-spacing: 0; }
html[lang="ur"] body { font-family: "Noto Nastaliq Urdu", var(--body); line-height: 2.1; font-size: 17px; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3 { font-family: "Noto Nastaliq Urdu", var(--display); letter-spacing: 0; line-height: 1.9; }
html[lang="ur"] .eyebrow { letter-spacing: 0; text-transform: none; }
html[lang="ur"] .money, html[lang="ur"] .exam__count, html[lang="ur"] .nowrap, html[lang="ur"] a[href^="mailto"], html[lang="ur"] a[href^="tel"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.lang-switch { display: flex; gap: .3rem; align-items: center; font-size: .85rem; margin-inline-start: 1rem; }
.lang-switch a, .lang-switch span { padding: .2rem .45rem; border-radius: 4px; text-decoration: none; color: var(--ink-2); }
.lang-switch span { background: var(--ink); color: #fff; }
.en-block__note { font-size: .8rem; color: var(--ink-3); margin: 1.2rem 0 -.6rem; text-align: start; }
.review-note { background: #fff7d6; border: 1px solid #e6cf6a; color: #5b4a00; border-radius: 4px; padding: .5rem .8rem; font-size: .88rem; margin: 1rem 0 0; }
.school-alias { color: var(--ink-2); margin: -.2rem 0 .4rem; font-size: .95rem; }

html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] .wordmark { font-family: var(--body); letter-spacing: -0.01em; }

/* Clarity pass: legend for country-box dots, ladder label, map caption, recognition notes */
.pair-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin: 1.2rem 0 .4rem; color: var(--ink-2); }
.pair-legend .chk { margin-inline-end: .3rem; }
.ladder-wrap { align-self: start; }
.ladder__eyebrow { margin: 0 0 .5rem; text-wrap: balance; }
.eyebrow--docs { margin-top: 1rem; }
.ladder__foot { margin-top: .6rem; color: var(--ink-2); }
.map-caption { margin-top: .3rem; color: var(--ink-2); }
.recog__notes { margin-top: .5rem; color: var(--ink-2); }
@media (max-width: 560px) { .recog tr { grid-template-columns: 1fr; } .recog td.nowrap { white-space: normal; } }

/* Right-to-left pages: the drawn chevrons use a logical border, so the physical rotation must mirror too. */
html[dir="rtl"] .vb-filters summary::after, html[dir="rtl"] .box--country > summary::after { transform: rotate(-45deg); }
html[dir="rtl"] .vb-filters details[open] summary::after, html[dir="rtl"] .box--country[open] > summary::after { transform: rotate(135deg); }
html[dir="rtl"] .vb-filters__toggle::after { transform: translateY(-2px) rotate(-45deg); }
