/* MBBS Abroad hub and country pages (generated by scripts/build-gp-pages.mjs). */
:root {
    --bg: #F0F2F7; --surface: #fff; --surface-tint: #E8EBF4; --text-p: #0E1420; --text-s: #556270;
    --brand: #1A4870; --brand-deep: #0F2D4A; --accent: #007A5A; --accent-dim: rgba(0, 122, 90, .1);
    --border: rgba(14, 20, 32, .1); --gutter: clamp(1rem, 5vw, 3rem); --w: 1160px;
    --mono: 'JetBrains Mono', monospace; --sans: 'Bricolage Grotesque', system-ui, sans-serif;
    --hero-a: #0F2D4A; --hero-b: #123F5C;
}
:root[data-theme="dark"] {
    --bg: #0A0D16; --surface: #121825; --surface-tint: #1A2136; --text-p: #EEF1F8; --text-s: #A3ADCB;
    --brand: #7FB2DA; --accent: #2DB88C; --accent-dim: rgba(45, 184, 140, .16); --border: rgba(238, 241, 248, .1);
    --hero-a: #0B1626; --hero-b: #0F2438;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0A0D16; --surface: #121825; --surface-tint: #1A2136; --text-p: #EEF1F8; --text-s: #A3ADCB;
        --brand: #7FB2DA; --accent: #2DB88C; --accent-dim: rgba(45, 184, 140, .16); --border: rgba(238, 241, 248, .1);
        --hero-a: #0B1626; --hero-b: #0F2438;
    }
}
*, *::before, *::after { box-sizing: border-box; }
body.guide-page { margin: 0; background: var(--bg); color: var(--text-p); font: 16px/1.6 var(--sans); overflow-x: hidden; }
/* Desktop nav layout, as the other destination pages set inline; site.css hides it on small screens. */
.nav-links { display: flex; list-style: none; }
.guide-page h1, .guide-page h2, .guide-page h3 { text-wrap: balance; }

/* Hero with inline lead form */
.gp-hero { background: radial-gradient(120% 140% at 85% 0%, var(--hero-b), var(--hero-a) 60%); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(4rem, 8vw, 5.5rem); }
.gp-hero-inner { max-width: var(--w); margin: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.gp-crumbs { font-size: .8rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.4rem; }
.gp-crumbs a { color: rgba(255, 255, 255, .85); text-underline-offset: 2px; }
.gp-eyebrow, .gp-tag { display: inline-block; font: 700 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.gp-eyebrow { color: #7FE0BE; }
.gp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; margin: .7rem 0 1rem; max-width: 18ch; }
.gp-hero-copy > p { max-width: 60ch; color: rgba(255, 255, 255, .84); margin: 0; }
.gp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: 999px; font: 700 .92rem var(--sans); text-decoration: none; cursor: pointer; transition: filter .2s, background .2s; }
.gp-btn-primary { background: #007A5A; border-color: #007A5A; color: #fff; }
.gp-btn-primary:hover { filter: brightness(1.08); }
.gp-btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.gp-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.gp-btn:focus-visible, .gp-uni-cta:focus-visible, .gp-tile:focus-visible { outline: 3px solid #5EE0B0; outline-offset: 3px; }

.gp-lead { display: grid; gap: .75rem; padding: clamp(1.2rem, 3vw, 1.6rem); background: var(--surface); color: var(--text-p); border-radius: 20px; box-shadow: 0 24px 60px rgba(4, 12, 24, .35); }
.gp-lead-eyebrow { margin: 0; font: 700 .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.gp-lead-title { margin: 0 0 .2rem; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.02em; }
.gp-field { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--text-s); }
.gp-field em { font-weight: 500; font-style: normal; }
.gp-field input, .gp-field select { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text-p); font: 500 .95rem var(--sans); }
.gp-field input:focus, .gp-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.gp-field [aria-invalid="true"] { border-color: #C62828; }
.gp-lead-error { margin: 0; color: #C62828; font-size: .82rem; font-weight: 600; }
:root[data-theme="dark"] .gp-lead-error { color: #FF8A80; }
.gp-lead .gp-btn { width: 100%; }
.gp-lead-fine { margin: 0; font-size: .72rem; line-height: 1.45; color: var(--text-s); }
.gp-lead-fine a { color: var(--brand); }

/* Key facts strip */
.gp-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; max-width: var(--w); margin: -2.6rem auto 0; padding: 0 var(--gutter); }
.gp-facts > div { padding: 1rem 1.05rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 14px 34px rgba(14, 20, 32, .08); }
.gp-facts span { display: block; font-size: .72rem; font-weight: 700; color: var(--text-s); text-transform: uppercase; letter-spacing: .04em; }
.gp-facts strong { display: block; margin-top: .25rem; font-size: .98rem; line-height: 1.3; letter-spacing: -.01em; }

/* In-page section nav */
.gp-subnav { position: sticky; top: 68px; z-index: 50; margin-top: 1.5rem; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.gp-subnav-inner { max-width: var(--w); margin: auto; padding: 0 var(--gutter); display: flex; gap: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.gp-subnav-inner::-webkit-scrollbar { display: none; }
.gp-subnav a { flex: 0 0 auto; padding: .85rem 0; color: var(--text-s); font-size: .85rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; }
.gp-subnav a:hover, .gp-subnav a:focus-visible { color: var(--text-p); border-bottom-color: var(--accent); }

/* Sections */
.guide-page main { max-width: var(--w); margin: auto; padding: 0 var(--gutter); }
.gp-section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; border-bottom: 1px solid var(--border); scroll-margin-top: 8rem; }
.gp-tag { color: var(--accent); }
:root:not([data-theme="dark"]) .gp-tag { color: #005C44; }
.gp-section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.035em; margin: .5rem 0 1rem; max-width: 26ch; }
.gp-lead-text { max-width: 72ch; color: var(--text-s); margin: 0 0 1.4rem; }
.gp-lead-text a, .gp-note a, .gp-source a, .gp-faq a { color: var(--brand); text-underline-offset: 2px; }
.gp-grid-2, .gp-grid-3 { display: grid; gap: 1rem; margin-top: 1.4rem; }
.gp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-card { padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gp-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: -.01em; }
.gp-card p, .gp-card li { color: var(--text-s); font-size: .92rem; }
.gp-card p { margin: 0; }
.gp-card ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.gp-card li + li { margin-top: .35rem; }
.gp-note { margin: 1.4rem 0 0; padding: 1rem 1.15rem; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--surface-tint); color: var(--text-s); font-size: .9rem; max-width: 90ch; }
.gp-note strong { color: var(--text-p); }
.gp-source { margin-top: 1rem !important; font-size: .8rem !important; }

.gp-check { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .65rem; }
.gp-check li { position: relative; padding-left: 1.7rem; color: var(--text-s); font-size: .92rem; }
.gp-check li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--accent-dim) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23007A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }
.gp-check strong { color: var(--text-p); }
.gp-check--numbered { counter-reset: nmc; }
.gp-check--numbered li { counter-increment: nmc; }
.gp-check--numbered li::before { content: counter(nmc); background: var(--accent-dim); color: var(--accent); font: 800 .68rem/1.05rem var(--sans); text-align: center; }

/* Universities */
.gp-uni-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gp-uni { display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .2s, transform .2s; }
.gp-uni:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }
.gp-uni-city { font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-s); }
.gp-uni h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.gp-uni p { margin: 0; flex: 1; color: var(--text-s); font-size: .9rem; }
.gp-uni-cta { align-self: flex-start; margin-top: .6rem; color: var(--accent); font-weight: 800; font-size: .88rem; text-decoration: none; border-radius: 6px; }
:root:not([data-theme="dark"]) .gp-uni-cta { color: #005C44; }
.gp-uni-cta:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Admission steps */
.gp-steps { list-style: none; counter-reset: step; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gp-steps li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 3.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gp-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 1.15rem; top: 1.2rem; font: 800 .95rem var(--mono); color: var(--accent); }
.gp-steps h3 { margin: 0 0 .3rem; font-size: 1rem; }
.gp-steps p { margin: 0; color: var(--text-s); font-size: .9rem; }
.gp-docs { margin-top: 1rem; }
.gp-docs ul { columns: 2; column-gap: 2rem; }

/* Costs */
.gp-cost { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gp-cost-item { padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gp-cost-item span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-s); }
.gp-cost-item strong { display: block; margin: .3rem 0 .5rem; font-size: 1.3rem; letter-spacing: -.02em; }
.gp-cost-item p { margin: 0; color: var(--text-s); font-size: .88rem; }

.gp-compare { padding: 1.4rem; border-radius: 16px; background: var(--brand-deep); color: #fff; }
.gp-compare h3 { margin: 0 0 .4rem; }
.gp-compare p { margin: 0 0 1rem; color: rgba(255, 255, 255, .8); }

/* FAQ */
.gp-faq details { padding: 1rem 0; border-bottom: 1px solid var(--border); max-width: 88ch; }
.gp-faq summary { font-weight: 700; cursor: pointer; }
.gp-faq details p { margin: .6rem 0 0; color: var(--text-s); }

.gp-pill-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.gp-pill-links a { padding: .55rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-p); font-size: .88rem; font-weight: 700; text-decoration: none; }
.gp-pill-links a:hover { border-color: var(--accent); }

/* Hub: country cards and comparison table */
.gp-tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.gp-tile { position: relative; display: grid; gap: .2rem; padding: 1.3rem 3rem 1.3rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; color: var(--text-p); text-decoration: none; transition: border-color .2s, transform .2s; }
.gp-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.gp-tile-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.gp-tile-meta { font-size: .85rem; color: var(--text-s); }
.gp-tile-go { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); }
.gp-table-wrap { overflow-x: auto; margin-top: 1.4rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.gp-table-wrap:focus-visible { outline: 3px solid #3C8FD9; outline-offset: 2px; }
.gp-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .88rem; }
.gp-table th, .gp-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.gp-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-s); background: var(--surface-tint); }
.gp-table tbody tr:last-child > * { border-bottom: 0; }
.gp-table td { color: var(--text-s); }
.gp-table th a { color: var(--text-p); font-weight: 800; }

/* Collapsible callout (e.g. country-specific rules) */
.gp-callout { margin-top: 1.2rem; padding: 0 1.2rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--surface); }
.gp-callout summary { padding: 1rem 0; font-weight: 800; cursor: pointer; }
.gp-callout[open] { padding-bottom: 1.1rem; }
.gp-callout .gp-source { margin: 1rem 0 0; font-size: .8rem; color: var(--text-s); }
.gp-card a { color: var(--brand); font-weight: 700; text-underline-offset: 2px; }

/* Test preparation: exam cards */
.gp-exam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.gp-exam { display: flex; flex-direction: column; gap: .35rem; padding: 1.4rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: var(--text-p); text-decoration: none; transition: border-color .2s, transform .2s; }
.gp-exam:hover { border-color: var(--accent); transform: translateY(-3px); }
.gp-exam:focus-visible { outline: 3px solid #5EE0B0; outline-offset: 3px; }
.gp-exam-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: .4rem; border-radius: 14px; background: var(--accent-dim); color: var(--accent); }
.gp-exam-icon svg { width: 28px; height: 28px; }
.gp-exam-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.gp-exam-full { font: 700 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-s); }
.gp-exam-text { flex: 1; color: var(--text-s); font-size: .9rem; }
.gp-exam-meta { font-size: .8rem; font-weight: 700; color: var(--text-p); }
.gp-exam-go { margin-top: .4rem; color: var(--accent); font-weight: 800; font-size: .9rem; }
:root:not([data-theme="dark"]) .gp-exam-go, :root:not([data-theme="dark"]) .gp-exam-icon { color: #005C44; }

/* Visa assistance: per-country cards */
.gp-visa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gp-visa { display: flex; flex-direction: column; gap: .35rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gp-visa h3 { margin: 0; font-size: 1.1rem; }
.gp-visa-route { align-self: flex-start; padding: .2rem .6rem; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: .74rem; font-weight: 800; }
:root:not([data-theme="dark"]) .gp-visa-route { color: #005C44; }
.gp-visa p { flex: 1; margin: .2rem 0 0; color: var(--text-s); font-size: .9rem; }
.gp-visa-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; }
.gp-visa-links a { color: var(--brand); font-size: .84rem; font-weight: 700; text-underline-offset: 2px; }
.gp-table--compact { min-width: 560px; }

/* Scholarships: level filter and cards */
.gp-level-filter { display: inline-flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: .3rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.gp-level-filter button { min-height: 38px; padding: .4rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--text-s); font: 700 .86rem var(--sans); cursor: pointer; }
.gp-level-filter button[aria-pressed="true"] { background: #007A5A; color: #fff; }
.gp-level-filter button:focus-visible { outline: 3px solid #3C8FD9; outline-offset: 2px; }
.gp-level-empty { margin: 0 0 1rem; color: var(--text-s); }
.gp-schol-list { display: grid; gap: 1rem; }
.gp-schol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.gp-schol[hidden] { display: none; }
.gp-schol-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.gp-schol-head h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.015em; }
.gp-schol-levels { display: flex; gap: .35rem; }
.gp-schol-levels span { padding: .15rem .55rem; border-radius: 999px; background: var(--accent-dim); color: var(--accent); font-size: .72rem; font-weight: 800; }
:root:not([data-theme="dark"]) .gp-schol-levels span { color: #005C44; }
.gp-schol-provider { margin: .3rem 0 .9rem; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-s); }
.gp-schol-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1.4rem; margin: 0; }
.gp-schol-facts dt { margin-bottom: .2rem; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-s); }
.gp-schol-facts dd { margin: 0; color: var(--text-p); font-size: .9rem; line-height: 1.5; }
.gp-schol-actions { display: grid; gap: .6rem; justify-items: center; min-width: 190px; }
.gp-schol-actions .gp-btn { width: 100%; white-space: nowrap; }
.gp-schol-official { color: var(--brand); font-size: .85rem; font-weight: 700; text-underline-offset: 2px; }

/* Course Finder */
.gp-hero--compact { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.gp-hero-inner--single { grid-template-columns: minmax(0, 1fr); }
.gp-hero--compact h1 { max-width: 22ch; }
.gp-finder-search { margin-top: 1.4rem; max-width: 640px; }
.gp-finder-search input { width: 100%; min-height: 54px; padding: .8rem 1.1rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 14px; background: rgba(255, 255, 255, .96); color: #0E1420; font: 500 1rem var(--sans); }
.gp-finder-search input:focus { outline: 3px solid #5EE0B0; outline-offset: 2px; }
.gp-finder-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.6rem; align-items: start; padding: 2rem 0 0; }
.gp-filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
.gp-filter-panel { padding: 1rem 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.gp-filter-panel summary { font-weight: 800; cursor: pointer; padding: .2rem 0 .4rem; }
.gp-filter-count { color: var(--accent); }
.gp-filter-panel fieldset { margin: .9rem 0 0; padding: .9rem 0 0; border: 0; border-top: 1px solid var(--border); }
.gp-filter-panel legend { padding: 0; margin-bottom: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-s); }
.gp-filter-option { display: flex; align-items: center; gap: .55rem; min-height: 34px; font-size: .88rem; color: var(--text-p); cursor: pointer; }
.gp-filter-option input { width: 1.05rem; height: 1.05rem; accent-color: #007A5A; flex: 0 0 auto; }
.gp-filter-reset { width: 100%; margin-top: 1rem; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text-s); font: 700 .84rem var(--sans); cursor: pointer; }
.gp-filter-reset:hover { color: var(--text-p); border-color: var(--text-s); }
:is(.gp-filter-option input, .gp-filter-reset, .gp-show-more, .gp-sort select):focus-visible { outline: 3px solid #3C8FD9; outline-offset: 2px; }
.gp-results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.gp-results-count { margin: 0; color: var(--text-s); }
.gp-results-count strong { color: var(--text-p); }
.gp-sort { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-s); }
.gp-sort select { min-height: 40px; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-p); font: 600 .85rem var(--sans); }
.gp-results-empty { padding: 1.5rem; background: var(--surface); border: 1px dashed var(--border); border-radius: 16px; }
.gp-results-empty h3 { margin: 0 0 .4rem; }
.gp-results-empty p { margin: 0; color: var(--text-s); }
.gp-results-empty a { color: var(--brand); font-weight: 700; }
.gp-results-list { display: grid; gap: 1rem; }
.gp-uni-result { padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.gp-uni-result[hidden] { display: none; }
.gp-uni-result-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.gp-uni-result-head h3 { margin: 0; font-size: 1.2rem; letter-spacing: -.02em; }
.gp-uni-result-place { margin: .2rem 0 0; color: var(--text-s); font-size: .88rem; }
.gp-qs { flex: 0 0 auto; padding: .3rem .65rem; border-radius: 999px; background: var(--brand-deep); color: #fff; font: 700 .72rem var(--mono); }
.gp-uni-result-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem 1rem; margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; background: var(--surface-tint); }
.gp-uni-result-facts dt, .gp-course-facts dt { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-s); }
.gp-uni-result-facts dd, .gp-course-facts dd { margin: .1rem 0 0; font-size: .88rem; font-weight: 700; color: var(--text-p); }
.gp-uni-result-facts a { color: var(--brand); }
.gp-course-list { list-style: none; margin: 0; padding: 0; display: grid; }
.gp-course { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: .8rem 1.2rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--border); }
.gp-course[hidden] { display: none; }
.gp-course h4 { margin: 0; font-size: 1rem; }
.gp-course-subject { font-size: .78rem; color: var(--text-s); }
.gp-course-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .9rem; margin: 0; }
.gp-course-actions { display: grid; justify-items: center; gap: .35rem; }
.gp-btn-sm { min-height: 40px; padding: .5rem 1.2rem; font-size: .86rem; }
.gp-course-link { color: var(--brand); font-size: .78rem; font-weight: 700; white-space: nowrap; text-underline-offset: 2px; }
.gp-show-more { margin-top: .6rem; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text-p); font: 700 .84rem var(--sans); cursor: pointer; }
.gp-show-more:hover { border-color: var(--accent); }
.gp-show-more[hidden] { display: none; }
@media (max-width: 1100px) {
    .gp-course { grid-template-columns: minmax(0, 1fr) auto; }
    .gp-course-facts { grid-column: 1 / -1; grid-row: 2; }
    .gp-course-actions { grid-row: 1; grid-column: 2; }
}
@media (max-width: 860px) {
    .gp-finder-layout { grid-template-columns: 1fr; padding-top: 1.2rem; }
    .gp-filters { position: static; max-height: none; overflow: visible; }
    .gp-uni-result-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .gp-uni-result { padding: 1.1rem; }
    .gp-uni-result-head { flex-direction: column; gap: .5rem; }
    .gp-course { grid-template-columns: 1fr; }
    .gp-course-actions { grid-row: auto; grid-column: auto; grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: .9rem; }
    .gp-course-facts { grid-row: auto; grid-template-columns: 1fr 1fr; }
    .gp-course-facts > div:last-child { grid-column: 1 / -1; }
}

.gp-cta { margin: 3rem 0; padding: clamp(1.6rem, 4vw, 3rem); background: var(--brand-deep); color: #fff; border-radius: 20px; }
.gp-cta h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; }
.gp-cta p { margin: 0 0 1.2rem; color: rgba(255, 255, 255, .8); max-width: 60ch; }


@media (max-width: 980px) {
    .gp-schol-facts { grid-template-columns: 1fr 1fr; }
    .gp-schol-facts > div:last-child { grid-column: 1 / -1; }
    .gp-hero-inner { grid-template-columns: 1fr; }
    .gp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gp-facts > div:last-child { grid-column: 1 / -1; }
    .gp-uni-grid, .gp-steps, .gp-tile-grid, .gp-grid-3, .gp-cost, .gp-exam-grid, .gp-visa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .gp-schol { grid-template-columns: 1fr; padding: 1.2rem; }
    .gp-schol-facts { grid-template-columns: 1fr; }
    .gp-schol-actions { justify-items: stretch; min-width: 0; }
    .gp-grid-2, .gp-grid-3, .gp-uni-grid, .gp-steps, .gp-tile-grid, .gp-cost, .gp-exam-grid, .gp-visa-grid { grid-template-columns: 1fr; }
    .gp-docs ul { columns: 1; }
    .gp-facts { margin-top: -1.8rem; }
    /* Short tables (e.g. exam sections) stack into cards instead of scrolling sideways. */
    .gp-table--compact { min-width: 0; }
    .gp-table--compact thead { display: none; }
    .gp-table--compact tr { display: block; padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
    .gp-table--compact tbody tr:last-child { border-bottom: 0; }
    .gp-table--compact th, .gp-table--compact td { display: block; padding: 0; border: 0; }
    .gp-table--compact th { font-size: .98rem; }
    .gp-table--compact td:nth-of-type(1) { margin: .15rem 0 .35rem; font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
    .gp-uni, .gp-tile, .gp-btn, .gp-exam { transition: none; }
    .gp-uni:hover, .gp-tile:hover, .gp-exam:hover { transform: none; }
}

/* Course Finder: single-university filter banner */
.gp-uni-filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1rem; padding: .85rem 1.1rem; border-radius: 14px; background: var(--accent-dim); }
.gp-uni-filter[hidden] { display: none; }
.gp-uni-filter p { margin: 0; color: var(--text-p); }
.gp-uni-filter-clear { min-height: 38px; padding: .35rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-p); font: 700 .84rem var(--sans); cursor: pointer; }
.gp-uni-filter-clear:focus-visible { outline: 3px solid #3C8FD9; outline-offset: 2px; }

/* Student dashboard */
.sd-main { max-width: var(--w); margin: 0 auto; padding-inline: var(--gutter); }
.sd-journey { margin-bottom: 1rem; }
.sd-stages { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin: .4rem 0 0; padding: 0; }
.sd-stage { position: relative; display: grid; justify-items: center; gap: .45rem; text-align: center; font-size: .8rem; color: var(--text-s); }
.sd-stage::before { content: ""; position: absolute; top: 11px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 3px; border-radius: 3px; background: var(--border); }
.sd-stage:first-child::before { display: none; }
.sd-stage[data-state="done"]::before, .sd-stage[data-state="current"]::before { background: #007A5A; }
.sd-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--border); background: var(--surface); }
.sd-stage[data-state="done"] .sd-dot { border-color: #007A5A; background: #007A5A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat; }
.sd-stage[data-state="current"] .sd-dot { border-color: #007A5A; box-shadow: 0 0 0 5px var(--accent-dim); }
.sd-stage[data-state="current"], .sd-stage[data-state="done"] { color: var(--text-p); }
.sd-stage[data-state="current"] .sd-stage-label { font-weight: 800; }
.sd-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.sd-side { display: grid; gap: 1rem; }
.sd-apps { display: grid; gap: .8rem; }
.sd-app { padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); }
.sd-app-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; }
.sd-app h3 { margin: 0; font-size: 1.05rem; }
.sd-app-course { margin: .25rem 0 .5rem; color: var(--text-s); font-size: .9rem; }
.sd-status { padding: .22rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.sd-status--good { background: var(--accent-dim); color: var(--accent); }
.sd-status--progress { background: color-mix(in srgb, #2F6FB5 14%, transparent); color: #2F6FB5; }
.sd-status--bad { background: color-mix(in srgb, #C62828 12%, transparent); color: #C62828; }
.sd-status--neutral { background: var(--surface-tint); color: var(--text-s); }
:root:not([data-theme="dark"]) .sd-status--good { color: #005C44; }
:root[data-theme="dark"] .sd-status--progress { color: #8FB4FF; }
:root[data-theme="dark"] .sd-status--bad { color: #FF8A80; }
.sd-deadline { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--text-p); }
.sd-deadline.is-soon { color: #C62828; }
:root[data-theme="dark"] .sd-deadline.is-soon { color: #FF8A80; }
.sd-note { margin: .6rem 0 0; padding: .6rem .8rem; border-left: 3px solid #007A5A; border-radius: 0 10px 10px 0; background: var(--surface); font-size: .88rem; color: var(--text-p); }
.sd-updated { margin: .5rem 0 0; font-size: .74rem; color: var(--text-s); }
.sd-next-type { font-weight: 800; }
.sd-side p { margin: .2rem 0 .6rem; }
.sd-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.sd-links a { color: var(--brand); font-weight: 700; text-underline-offset: 2px; }
@media (max-width: 860px) {
    .sd-grid { grid-template-columns: 1fr; }
    .sd-stages { grid-template-columns: 1fr; gap: .7rem; }
    .sd-stage { grid-template-columns: 24px 1fr; justify-items: start; text-align: left; align-items: center; }
    .sd-stage::before { top: calc(-.7rem - 2px); left: 10px; right: auto; width: 3px; height: calc(.7rem + 4px); }
}

/* Staff: student applications */
.as-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
.as-search { display: flex; gap: .5rem; }
.as-search input { flex: 1; min-width: 0; min-height: 42px; padding: .5rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text-p); font: 500 .95rem var(--sans); }
.as-students { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.as-student { display: grid; gap: .1rem; width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-p); text-align: left; font: inherit; cursor: pointer; }
.as-student span { font-size: .78rem; color: var(--text-s); }
.as-student:hover, .as-student:focus-visible { border-color: var(--accent); outline: none; }
.as-table th span { display: block; font-weight: 500; font-size: .8rem; color: var(--text-s); }
.as-row-actions { white-space: nowrap; }
.as-row-actions .gp-btn + .gp-btn { margin-left: .35rem; }
.as-form { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.as-form h3 { margin: 0 0 .8rem; }
.as-form textarea, .as-form input, .as-form select { width: 100%; }
@media (max-width: 860px) { .as-layout { grid-template-columns: 1fr; } }
