/* Frimpong Global Education: shared styles (mobile first) */
:root {
  --green: #0E4D45;
  --green-dark: #08332D;
  --gold: #E0A526;
  --gold-soft: #FBF1DA;
  --paper: #FAF7F0;
  --white: #FFFFFF;
  --ink: #1B1F24;
  --muted: #555E68;
  --line: #E3DED2;
  --radius: 14px;
  --wrap: 1080px;
  font-size: 17px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--green); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 700; line-height: 1.2; }
.brand small { display: block; font-weight: 400; font-size: 0.75rem; opacity: 0.85; }
.brand svg { flex: none; }
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; padding: 6px 14px; font-weight: 600; }
.nav summary::-webkit-details-marker { display: none; }
.nav ul { list-style: none; margin: 0; padding: 8px; position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,0.18); min-width: 230px; z-index: 5; }
.nav li a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.nav li a:hover, .nav li a[aria-current="page"] { background: var(--gold-soft); }
.nav .num { display: inline-block; width: 1.6em; color: var(--muted); }

/* Hero */
.hero { background: var(--green); color: var(--white); padding: 40px 0 56px; }
.hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 0 24px; opacity: 0.95; }
.page-head { background: var(--green); color: var(--white); padding: 28px 0 32px; }
.page-head h1 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.2; }
.page-head p { margin: 0; opacity: 0.92; max-width: 680px; }
.page-head a { color: var(--white); text-decoration: underline; }
.page-head .eyebrow a { color: var(--gold); text-decoration: none; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin: 0 0 8px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn-ghost[aria-disabled="true"] { opacity: 0.7; cursor: default; }
.btn-green { background: var(--green); color: var(--white); }

/* Sections */
main section { padding: 40px 0; }
main section + section { border-top: 1px solid var(--line); }
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 700px; margin-top: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
a.card { display: block; color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
a.card:hover { border-color: var(--green); }
.card .step { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 14px 16px; border-radius: 8px; }
.notice p { margin: 0; }
.soon { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.soon li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.soon li strong { display: block; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; background: var(--gold-soft); color: var(--green-dark); border-radius: 999px; padding: 2px 10px; margin-top: 4px; }
.founder { display: grid; gap: 20px; align-items: start; }
.path { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); }
.path li { padding: 0 0 14px 16px; position: relative; }
.path li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 28px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--green-dark); color: #DDE7E4; padding: 32px 0 20px; margin-top: 20px; font-size: 0.92rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.footer-name { font-weight: 700; color: var(--white); margin: 0 0 4px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 20px; padding-top: 14px; }
.version { opacity: 0.75; margin: 6px 0 0; }

@media (min-width: 720px) {
  :root { font-size: 18px; }
  .hero { padding: 64px 0 80px; }
  .hero h1 { font-size: 2.8rem; }
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .founder { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}

/* v002: header account link, forms, finder */
.header-actions { display: flex; align-items: center; gap: 10px; }
.account-link { color: var(--white); font-weight: 600; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.account-link:hover { text-decoration: underline; }
.narrow { max-width: 520px; }
.btn-green { background: var(--green); color: var(--white); }
.btn-outline { background: var(--white); color: var(--green); border-color: var(--green); }
button.btn { font: inherit; font-weight: 700; cursor: pointer; }
button.btn:disabled { opacity: 0.6; cursor: wait; }
.full { width: 100%; text-align: center; }
.stack { display: grid; gap: 14px; }
.stack label, .finder label { display: grid; gap: 4px; font-weight: 600; }
input[type="email"], input[type="password"], input[type="search"], input:not([type]), select {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
legend { font-weight: 700; padding: 0 6px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.or { text-align: center; color: var(--muted); margin: 16px 0; }
.linkish { background: none; border: 0; color: var(--green); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; justify-self: start; }
.status { min-height: 1.4em; font-weight: 600; }
.status.ok { color: var(--green); }
.status.err { color: #A3261B; }
.small { font-size: 0.9rem; }
.finder { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.modes label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.count { font-weight: 700; margin: 18px 0 8px; }
.results { display: grid; gap: 14px; }
.result { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.result h3 { margin: 0 0 4px; }
.result p { margin: 6px 0; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.b-high { background: #DDF1E8; border-color: #9BD2BA; }
.b-medium { background: var(--gold-soft); border-color: #EBCB7E; }
[hidden] { display: none !important; }
@media (min-width: 760px) { .finder { grid-template-columns: repeat(3, 1fr); } .finder .modes { grid-column: 1 / -1; } }

/* v003: owner dashboard */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: var(--muted); font-size: 0.9rem; }
.stat span { display: block; font-size: 1.7rem; font-weight: 800; color: var(--green); }
.table-wrap { overflow-x: auto; margin: 12px 0 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper); }
code { background: var(--white); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); word-break: break-all; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* v004: region settings */
.pick { display: grid; gap: 4px; font-weight: 700; max-width: 360px; }
.country h3 { margin-top: 22px; }
.src { font-size: 0.85rem; white-space: nowrap; }
.local { background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; }

/* v009: NA marker for facts not yet confirmed on a school's own site */
.na { border-left: 3px solid var(--gold, #c9a227); padding-left: 8px; }
.results h2.group { margin: 18px 0 2px; font-size: 1.2rem; }
.finder fieldset.slot { border: 1px solid var(--line, #d9dde3); border-radius: 8px; padding: 10px 12px; }
.finder fieldset.slot legend { font-weight: 600; padding: 0 4px; }
.state-list { list-style: none; padding: 0; margin: 12px 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.state-list li { padding: 6px 0; border-bottom: 1px solid var(--line, #d9dde3); display: flex; justify-content: space-between; gap: 8px; }
#us-table td:last-child a, #ca-table .small a, #uk-table .small a { display: inline-block; margin-right: 8px; white-space: nowrap; }
details.progs { margin-top: 4px; font-size: 0.85rem; }
details.progs summary { cursor: pointer; color: var(--green, #0E4D45); }
details.progs p { margin: 4px 0; }

.badge.warn { background: #fff4e5; border-color: #e0a040; color: #7a4500; }
.notice.warn { border-left: 4px solid #e0a040; background: #fffaf2; }
/* v049: scholarship database and deadline calendar */
.sch-list { display: grid; gap: 16px; margin-top: 18px; }
.sch h2 { font-size: 1.2rem; margin: 0 0 4px; }
.sch dl { margin: 12px 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 6px 14px; }
.sch dt { font-weight: 700; }
.sch dd { margin: 0; }
.sch[hidden] { display: none; }
@media (max-width: 640px) { .sch dl { grid-template-columns: 1fr; } .sch dd { margin-bottom: 6px; } }
ul.dates { list-style: none; padding: 0; }
ul.dates li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.dates .when { display: inline-block; min-width: 6.5em; font-weight: 700; }
ul.dates li.passed { color: var(--muted); }
ul.dates li.passed a { color: var(--muted); }
ul.dates .tag { font-size: .85em; font-weight: 700; margin-left: 6px; }
/* v050: roadmap, templates, recommender kit */
ol.roadmap { list-style: none; padding: 0; margin: 12px 0 24px; }
ol.roadmap li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
ol.roadmap li[hidden] { display: none; }
ol.roadmap li .when { display: block; font-weight: 700; color: var(--green); margin: 2px 0 0 26px; }
ol.roadmap li.late .when { color: #a35a00; }
ol.roadmap li p { margin: 4px 0 0 26px; }
ol.roadmap input { width: 18px; height: 18px; vertical-align: -3px; }
.tpl-list { display: grid; gap: 16px; margin-top: 18px; }
pre.tpl-text { white-space: pre-wrap; word-wrap: break-word; background: #f6f4ee; border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: .92rem; line-height: 1.5; }
.rec-form { display: grid; gap: 10px; }
.rec-form label { display: grid; gap: 4px; font-weight: 600; }
.rec-form input, .rec-form textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
@media print { .site-header, .site-footer, #road-form, .page-head p.eyebrow { display: none !important; } ol.roadmap li { break-inside: avoid; } }
/* v054: workspace */
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 8px 0 2px; }
.bar span { display: block; height: 100%; background: var(--green); }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 8px 0; }
.app h3 { margin: 0 0 4px; }
.app select { font: inherit; padding: 4px 6px; margin-left: 6px; }
#sync-status.ok { color: var(--green); }
@media print { .actions, #app-form, #sync-status { display: none !important; } .app details { display: block; } }

/* v072: sticky header, larger wordmark, category dropdown bar, home start-here tools */
.site-header { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,0.15); }
.header-row { padding: 10px 20px 8px; }
.brand img { width: 46px; height: 46px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wm-top { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: 0.01em; color: var(--white); }
.wm-bottom { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); margin-top: 5px; padding-top: 5px; border-top: 2px solid var(--gold); align-self: flex-start; }
.catbar { background: var(--green-dark); }
.catbar-row { max-width: var(--wrap); margin: 0 auto; padding: 7px 14px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.catbar-row::-webkit-scrollbar { display: none; }
.cat > summary { list-style: none; cursor: pointer; white-space: nowrap; color: var(--white); border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 5px 13px; font-size: 0.88rem; font-weight: 600; }
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::after { content: " \25BE"; color: var(--gold); }
.cat[open] > summary { background: var(--gold); color: var(--green-dark); border-color: var(--gold); }
.cat[open] > summary::after { color: var(--green-dark); }
.cat > ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 12px; right: 12px; top: 100%; background: var(--white); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 30px rgba(0,0,0,0.2); max-height: 70vh; overflow-y: auto; }
.cat li a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.cat li a:hover, .cat li a[aria-current="page"] { background: var(--gold-soft); }
.cat .num { display: inline-block; width: 1.6em; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-compact { padding: 28px 0 32px; }
.site-search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 620px; margin-top: 8px; }
.site-search input { flex: 1 1 220px; font: inherit; padding: 11px 14px; border-radius: 999px; border: 2px solid transparent; }
.site-search input:focus { outline: none; border-color: var(--gold); }
.search-msg { flex-basis: 100%; margin: 4px 0 0; font-size: 0.95rem; }
.search-msg a { color: var(--gold); }
.start-here h2 { margin-bottom: 14px; }
.tool { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); text-decoration: none; }
.tool span { color: var(--muted); font-size: 0.9rem; }
.tool:hover { border-color: var(--green); }
.tool-featured { background: var(--green); border-color: var(--green); color: var(--white); padding: 18px; margin-bottom: 12px; border-left: 6px solid var(--gold); }
.tool-featured strong { font-size: 1.25rem; }
.tool-featured span { color: #CFE0DC; }
.tool-featured:hover { background: var(--green-dark); }
.tools { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fold { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.fold > summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--green); list-style: none; display: flex; justify-content: space-between; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.fold[open] > summary::after { content: "\2212"; }
.fold-body { padding: 0 16px 16px; }
.linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.linklist a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.book-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 720px) {
  .wm-top { font-size: 1.85rem; }
  .wm-bottom { font-size: 0.75rem; }
  .brand img { width: 54px; height: 54px; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catbar-row { overflow: visible; flex-wrap: wrap; }
  .cat { position: relative; }
  .cat > ul { left: 0; right: auto; min-width: 250px; top: calc(100% + 6px); border-radius: var(--radius); }
  .cat-all > ul { max-height: 70vh; }
}
@media (max-width: 719px) {
  .catbar-row { flex-wrap: wrap; overflow: visible; padding: 6px 10px; gap: 5px; }
  .cat > summary { padding: 4px 10px; font-size: 0.8rem; }
  .hero-compact { padding: 20px 0 24px; }
  .hero-compact h1 { font-size: 1.75rem; }
  .hero-compact p { font-size: 1rem; margin-bottom: 12px; }
  .hero-compact p.small { font-size: 0.85rem; opacity: 0.85; }
  .wm-top { font-size: 1.3rem; }
}
[id] { scroll-margin-top: 185px; }
@media (min-width: 720px) { [id] { scroll-margin-top: 165px; } }

/* v073: header search at top right, account button, short footer */
.header-actions { gap: 8px; }
.account-link { display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: var(--green-dark); border-radius: 999px; padding: 8px 15px; font-weight: 700; font-size: 0.92rem; box-shadow: 0 2px 0 rgba(0,0,0,0.18); }
.account-link:hover { background: #F0B83A; text-decoration: none; }
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch input { font: inherit; font-size: 0.92rem; width: 0; padding: 0; border: 0; opacity: 0; transition: width 0.2s, padding 0.2s; background: var(--white); color: var(--ink); border-radius: 999px 0 0 999px; height: 38px; }
.hsearch-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 38px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,0.55); background: transparent; color: var(--white); cursor: pointer; }
.hsearch.open input, .hsearch:focus-within input { width: 170px; padding: 0 12px; opacity: 1; }
.hsearch.open .hsearch-btn, .hsearch:focus-within .hsearch-btn { border-radius: 0 999px 999px 0; background: var(--white); color: var(--green); border-color: var(--white); }
.hsearch-sugg { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 6px); width: min(300px, 86vw); background: var(--white); border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.22); z-index: 30; }
.hsearch-sugg a { display: block; padding: 9px 11px; color: var(--ink); text-decoration: none; border-radius: 8px; font-weight: 600; }
.hsearch-sugg li.on a, .hsearch-sugg a:hover { background: var(--gold-soft); }
.hsearch-sugg .none { padding: 9px 11px; color: var(--muted); font-size: 0.92rem; }
.footer-grid { grid-template-columns: 1fr; }
.fgroup ul { list-style: none; padding: 0; margin: 0; }
.fgroup li { margin-bottom: 6px; }
.fgroup-title { color: var(--gold); font-weight: 700; margin: 0 0 8px; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 719px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .account-link { padding: 7px 11px; font-size: 0.85rem; }
  .hsearch.open input, .hsearch:focus-within input { width: 130px; }
  .header-row { flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .hsearch input { width: 200px; padding: 0 12px; opacity: 1; }
  .hsearch-btn { border-radius: 0 999px 999px 0; background: var(--white); color: var(--green); border-color: var(--white); }
}
@media (max-width: 719px) {
  .header-row { flex-wrap: nowrap; position: relative; }
  .account-link span { display: none; }
  .account-link { padding: 0; width: 40px; height: 38px; justify-content: center; }
  .hsearch input { width: 0; }
  .hsearch.open, .hsearch:focus-within { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); z-index: 25; }
  .hsearch.open input, .hsearch:focus-within input { flex: 1; width: auto; }
  .hsearch-sugg { left: 0; right: 0; width: auto; }
}
.book-link { display: inline-flex; align-items: center; gap: 7px; color: var(--white); border: 1.5px solid var(--gold); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.book-link svg { color: var(--gold); }
.book-link:hover { background: rgba(224,165,38,0.15); }
@media (max-width: 719px) {
  .book-link span { display: none; }
  .book-link { padding: 0; width: 40px; height: 38px; justify-content: center; }
}
.wm-top { white-space: nowrap; }
@media (max-width: 719px) {
  .wm-top { font-size: 1.12rem; }
  .wm-bottom { font-size: 0.6rem; letter-spacing: 0.34em; }
  .brand img { width: 40px; height: 40px; }
  .brand { gap: 8px; min-width: 0; }
  .book-link, .account-link, .hsearch-btn { width: 36px; height: 36px; }
  .header-row { padding: 10px 12px 8px; }
}
.prepbar { background: var(--gold); }
.prepbar-row { max-width: var(--wrap); margin: 0 auto; padding: 5px 20px; display: flex; justify-content: flex-end; }
.prepbar a { color: var(--green-dark); text-decoration: none; font-size: 0.84rem; font-weight: 600; }
.prepbar a strong { font-weight: 800; }
.prepbar a:hover { text-decoration: underline; }
@media (max-width: 719px) {
  .prepbar-row { justify-content: center; padding: 4px 10px; }
  .prepbar a { font-size: 0.76rem; }
  .prep-long { display: none; }
}
.prep-short { display: none; }
@media (max-width: 719px) { .prep-short { display: inline; } }

/* v075: split hero with number tiles, 7-step timeline */
.hero-split { padding: 34px 0 38px; }
.hero-grid { display: grid; gap: 22px; align-items: center; }
.hero-split h1 { font-size: 2rem; line-height: 1.12; margin: 0 0 10px; }
.hero-split h1 .gold { color: var(--gold); }
.hero-intro { font-size: 1.05rem; margin: 0 0 18px; opacity: 0.95; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: #CFE0DC; }
.trust li::before { content: "\2713"; color: var(--gold); font-weight: 800; margin-right: 6px; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--green-dark); border-top: 3px solid var(--gold); border-radius: 12px; padding: 14px 14px 12px; }
.tile strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--white); }
.tile span { font-size: 0.82rem; color: #CFE0DC; }
.path-sec h2 { margin-bottom: 4px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; background: var(--gold); }
.timeline a { position: relative; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 6px 4px; color: var(--ink); text-decoration: none; border-radius: 10px; }
.timeline .dot { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; border: 3px solid var(--paper); }
.timeline .step-n { display: none; }
.timeline strong { font-size: 1rem; }
.timeline small { color: var(--muted); font-size: 0.88rem; }
.timeline a:hover .dot, .timeline a:focus-visible .dot { background: var(--gold); color: var(--green-dark); }
.timeline a:hover strong { color: var(--green); }
@media (min-width: 720px) {
  .hero-split { padding: 54px 0 58px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .hero-split h1 { font-size: 2.9rem; }
  .tile strong { font-size: 2.1rem; }
  .timeline { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .timeline::before { left: 7%; right: 7%; top: 30px; bottom: auto; width: auto; height: 3px; }
  .timeline a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 2px 10px; }
  .timeline .dot { width: 52px; height: 52px; margin-bottom: 4px; }
  .timeline .dot svg { width: 24px; height: 24px; }
}
@media (min-width: 720px) { .hero-split h1 { font-size: 2.45rem; } }

/* v079: account page */
.acct-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acct-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acct-avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; }
.acct-head h1 { margin: 0; }
.acct-head p { margin: 2px 0 0; overflow-wrap: anywhere; }
.signout { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.signout:hover { border-color: var(--gold); color: var(--gold); }
.acct-wrap { max-width: 860px; }
.acct-quick { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 18px; }
.acct-quick a { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.acct-quick a:hover { border-color: var(--green); border-left-color: var(--gold); }
.acct-quick span { color: var(--muted); font-size: 0.88rem; }
.acct-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.acct-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acct-card h2 { font-size: 1.25rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { background: var(--gold-soft); color: var(--green-dark); border-radius: 999px; padding: 4px 11px; font-size: 0.85rem; font-weight: 600; }
.meter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.meter { flex: 1; height: 10px; border-radius: 999px; background: #EDE8DC; overflow: hidden; max-width: 320px; }
.meter span { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.tier-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.tier { text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.tier strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.tier span { font-size: 0.8rem; color: var(--muted); }
.tier[aria-selected="true"] { border-color: var(--green); background: #E7F0EE; }
.tier.t-match strong { color: var(--green); }
.tier.t-reach strong { color: #B4651B; }
.tier.t-below strong { color: #8A3B2E; }
.school-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
.school-grid a { display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--white); }
.school-grid a:hover { border-color: var(--green); }
.school-grid strong { font-size: 0.95rem; line-height: 1.3; }
.school-grid span { font-size: 0.8rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 6px 0; font: inherit; font-weight: 600; color: var(--green); text-decoration: underline; cursor: pointer; }
.linkbtn.danger { color: #9B2C2C; }
.show-all { margin-top: 8px; }
.fold-card { padding: 0; }
.fold-card > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary h2::after { content: " +"; color: var(--gold); }
.fold-card[open] > summary h2::after { content: " \2212"; }
.fold-card > *:not(summary) { margin-left: 18px; margin-right: 18px; }
.fold-card > *:last-child { margin-bottom: 18px; }
.owner-link { text-align: right; }
@media (min-width: 720px) {
  .acct-quick { grid-template-columns: repeat(3, 1fr); }
  .school-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#account-message:empty { display: none; }
@media (max-width: 719px) {
  .acct-bar { flex-wrap: nowrap; align-items: flex-start; }
  .acct-head h1 { font-size: 1.35rem; }
  .acct-head p { font-size: 0.85rem; }
  .acct-avatar { width: 44px; height: 44px; font-size: 1.2rem; }
  .signout { padding: 6px 11px; font-size: 0.8rem; flex: none; }
  .acct-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .acct-quick a { padding: 10px 8px; text-align: center; border-left-width: 1px; border-top: 3px solid var(--gold); font-size: 0.85rem; }
  .acct-quick span { display: none; }
  .tier-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tier { padding: 8px; }
  .tier strong { font-size: 1.25rem; }
  .tier span { font-size: 0.72rem; line-height: 1.2; display: block; }
  .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .school-grid a { padding: 8px 9px; }
  .school-grid strong { font-size: 0.85rem; }
  .acct-card { padding: 14px; }
}

/* v082: Matcher form in numbered steps */
.mform { display: block; }
.mstep { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 16px 0 6px; min-width: 0; }
.mstep:first-child { border-top: 0; padding-top: 4px; }
.mstep > legend { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; color: var(--green); padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.mstep > legend + * { clear: both; }
.mnum { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 0.9rem; flex: none; }
.mform .modes { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mform .modes label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mrow { display: grid; gap: 12px; grid-template-columns: 1fr; }
.mbox { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.mbox-title { margin: 0 0 8px; font-weight: 800; font-size: 0.92rem; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.mbox .small { margin: 8px 0 0; }
.mform .check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 4px 0 12px; }
.mform > .actions { margin-top: 12px; }
@media (min-width: 760px) {
  .mrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mbox .mrow { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.mstep { border-radius: 0; }

/* v082: Cost calculator steps */
.cslots { display: grid; gap: 14px; grid-template-columns: 1fr; }
.finder fieldset.cslot { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; margin: 0; min-width: 0; }
.finder fieldset.cslot > legend { display: flex; align-items: center; gap: 8px; float: left; width: 100%; font-weight: 800; color: var(--green-dark, var(--green)); padding: 0; margin-bottom: 8px; }
.finder fieldset.cslot > legend + * { clear: both; }
.cnum { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold, #c9a227); color: #fff; font-size: .85rem; }
.cslot .mbox-title { margin: 6px 0 6px; }
.cslot .mrow { grid-template-columns: 1fr; gap: 10px; margin-bottom: 8px; }
.ccost { grid-template-columns: 1fr 1fr !important; }
.cslot label { display: flex; flex-direction: column; gap: 4px; }
.mform .mrow label { min-width: 0; }
@media (min-width: 1000px) { .cslots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 999px) { .cslot .cpick { grid-template-columns: 1fr 1fr; } .cslot .cpick label:first-child { grid-column: 1 / -1; } .ccost { grid-template-columns: repeat(4, minmax(0,1fr)) !important; } }
#costs-form.mform { display: block; }

/* v082: Finder steps */
.mode-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-pills label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; background: #fff; cursor: pointer; font-weight: 600; }
.mode-pills label:has(input:checked) { border-color: var(--green); background: var(--green); color: #fff; }
.mode-pills input { accent-color: var(--gold, #c9a227); }
.mform .mrow > label { display: flex; flex-direction: column; gap: 4px; }
.mform .mrow > label[hidden] { display: none; }
.fchecks { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.fchecks label[hidden] { display: none; }
#finder-form.mform { display: block; }

/* v084: How to apply as an international student (directory schools) */
details.req { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 8px 12px; margin: 8px 0; }
details.req > summary { cursor: pointer; font-weight: 700; color: var(--green); }
details.req dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 4px; }
details.req dt { font-weight: 700; }
details.req dd { margin: 0; }
@media (max-width: 560px) { details.req dl { grid-template-columns: 1fr; } details.req dd { margin-bottom: 6px; } }

/* v085: US application requirements list */
table.req td { vertical-align: top; }
table.req td:first-child { min-width: 180px; }
table.req tr[hidden] { display: none; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* v089: country guides */
.from-toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.from-toc a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; background: var(--paper); font-weight: 600; }
.from-sec { border-top: 1px solid var(--line); padding-top: 6px; }
.from-sec ul li { margin-bottom: 8px; }
.notice.alert { border-left: 5px solid #b3261e; background: #fdecea; }
.notice.alert strong { color: #8c1d18; }
.fge-help { margin: 28px 0; }
.fge-help h2 { margin: 0 0 8px; font-size: 1.25rem; }
.fge-help ul { margin: 8px 0 10px 1.2em; }
.fge-help p { margin: 0 0 8px; }
