/* uniacross UI spike (2026-10-30): a reference work, not a SaaS landing page. Loaded after app.css and overrides it.
   Serif display face, paper background, thin rules instead of shadows, one accent used rarely (dark blue since 2026-10-30, owner: "change the accent on all the pages to dark blue"; terracotta before), no gradients, no stock photos. */
/* the two faces, self-hosted (latin subset, variable weights); preloaded in layout.php */
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: block; }   /* headings (owner 2026-11-09: Inter Tight instead of Bricolage Grotesque, all across sites) */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; }
:root {
  --bg: #f7f5f0; --surface: #fffdf9; --surface-2: #efece4; --fg: #15192a; --muted: #5f6577; --line: #d9d4c8;
  --brand: #1e3a7a; --brand-2: #14295a; --teal: #1e3a7a; --accent: #0f2a5f; --accent-2: #0a1d44;
  --brand-soft: #e9ecf3; --teal-soft: #e9ecf3; --accent-soft: #e4e9f4;
  --grad: #1e3a7a;
  --radius: 6px; --radius-sm: 4px;
  --shadow-sm: none; --shadow: none; --shadow-lg: none;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   /* v6: a grotesque with character instead of the book serif (owner: "too scholar") */
  --accent-ink: #0f2a5f; --accent-btn: #0f2a5f; --accent-btn-2: #0a1d44;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14151a; --surface: #1b1d24; --surface-2: #23262f; --fg: #ecebe6; --muted: #a2a5ae; --line: #343843;
    --brand: #9db3e8; --brand-2: #c1cff0; --teal: #9db3e8; --accent: #7f9ce0; --accent-2: #a9bdf0; --brand-soft: #222a3c; --teal-soft: #222a3c; --accent-soft: #1e2740; --grad: #9db3e8;
    --accent-ink: #a9bdf0; --accent-btn: #7f9ce0; --accent-btn-2: #a9bdf0; --on-brand: #14151a; }
}
:root[data-theme="dark"] { --bg: #14151a; --surface: #1b1d24; --surface-2: #23262f; --fg: #ecebe6; --muted: #a2a5ae; --line: #343843;
    --brand: #9db3e8; --brand-2: #c1cff0; --teal: #9db3e8; --accent: #7f9ce0; --accent-2: #a9bdf0; --brand-soft: #222a3c; --teal-soft: #222a3c; --accent-soft: #1e2740; --grad: #9db3e8;
    --accent-ink: #a9bdf0; --accent-btn: #7f9ce0; --accent-btn-2: #a9bdf0; --on-brand: #14151a; }

body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, .hero-title, .fold-title { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
time, .num, .task-date, .deadline-list time, .money, .score, .lik-range, .vtl-when, .cc-facts dd, .place-table td, .tool-ref td { font-variant-numeric: tabular-nums; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead { color: var(--fg); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.eyebrow { font-size: .72rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.eyebrow::before { content: none; }
.section { padding: 40px 20px; }

/* header: a masthead rule, no blur */
.site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--fg); }
.logo { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.site-header .logo-text span { background: none; color: var(--fg); -webkit-text-fill-color: currentColor; }
.site-footer .logo-text span, footer .logo-text span { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.site-nav a { border-radius: 2px; font-weight: 500; font-size: .9rem; padding: 8px 6px; letter-spacing: -.005em; }   /* Inter is loaded now and runs wider than the system font: the full menu must still fit at 1280 px (owner: the top menu always on top was better) */
.site-nav a[aria-current="page"] { background: none; color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
.beta-badge { border-radius: 2px; }

/* buttons: flat, square-ish, no lift */
.btn { border-radius: var(--radius-sm); box-shadow: none; font-weight: 600; padding: 10px 18px; }
.btn:hover { transform: none; box-shadow: none; }
.btn-accent, .btn-accent:hover { box-shadow: none; }
.btn-light { background: transparent; color: var(--brand); border-color: var(--line); backdrop-filter: none; }
.btn-light:hover { background: var(--surface-2); color: var(--brand-2); }
.btn-ghost-light { background: transparent; color: var(--brand); border-color: var(--line); }

/* cards: a rule, not a shadow; no hover lift */
.card { border-radius: var(--radius); box-shadow: none; padding: 20px 22px; }
a.card:hover { transform: none; box-shadow: none; border-color: var(--fg); }
.tool-icon, .feature-icon { display: none; }
.tool-card .ph, .country-card .cc-top { border-radius: var(--radius) var(--radius) 0 0; }
.tool-card .ph img, .country-card .cc-top img { filter: saturate(1.12) contrast(1.03); }
.badge, .lik, .score, .stage-chip, .setup-chips li > a, .setup-chips li > span, .sr-chip, .tabs a, .uni-tab { border-radius: 3px; }

/* page headers: ink on paper, a rule underneath; the photo and gradient are gone */
.page-hero:not(:has(.ph)) { background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); }
.page-hero:not(:has(.ph))::before { content: none; }
.page-hero:has(.ph) { color: #fff; }
.page-hero:has(.ph)::before { background: linear-gradient(100deg, rgba(14, 18, 40, .86) 0%, rgba(14, 18, 40, .55) 42%, rgba(14, 18, 40, .22) 68%, rgba(14, 18, 40, .06) 100%); }   /* the owner's photos (2026-10-30): the fade covers the text side, the right half shows the picture */
.page-hero:has(.ph) h1, .page-hero:has(.ph) .lead, .page-hero:has(.ph) .crumbs, .page-hero:has(.ph) .crumbs a, .page-hero:has(.ph) .doc-meta { color: #fff; }
.page-hero:has(.ph) .lead { color: rgba(255,255,255,.88); }
.page-hero:has(.ph) .btn-light { color: #fff; border-color: rgba(255,255,255,.5); }
.page-hero:has(.ph) .btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.page-hero:has(.ph) .btn-accent { background: var(--accent-btn); color: #fff; border-color: transparent; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero h1 { font-weight: 600; }
.hero h1 span, .hero .hero-title span { background: none; -webkit-text-fill-color: #a9c4ff; color: #a9c4ff; }
.hero .eyebrow { color: #a9c4ff; }
.hero-trust span::before { border-radius: 2px; }
.hero-inner { padding-top: 40px; padding-bottom: 40px; }
.page-hero-inner { padding-top: 28px; padding-bottom: 26px; }
.page-hero:not(:has(.ph)) h1 { color: var(--fg); max-width: 30ch; }
.page-hero:not(:has(.ph)) .lead { color: var(--muted); font-family: var(--font); font-size: 1.02rem; max-width: 70ch; }
.page-hero:not(:has(.ph)) .crumbs, .page-hero:not(:has(.ph)) .crumbs a, .page-hero:not(:has(.ph)) .doc-meta { color: var(--muted); }
.page-hero:not(:has(.ph)) .btn-accent { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.page-hero-actions { margin-top: 14px; }
.flagbg { display: none; }

/* documents: numbered rail, key facts as a definition row */
.toc { background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 0 18px 0 0; box-shadow: none; }
.toc-title { color: var(--fg); }
.toc li a { border-radius: 2px; }
.key-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); margin: 0 0 22px; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.key-facts > div { padding: 12px 14px 12px 0; }
.key-facts > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.key-facts .kf-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.key-facts .kf-label .icon { display: none; }
.key-facts p { margin: 4px 0 0; font-weight: 500; }
.key-facts .kf-fit { grid-column: 1 / -1; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.doc h2 { border-top: 1px solid var(--fg); }
.doc table th { font-family: var(--font); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.uni-in-country, .country-next .card { border-radius: var(--radius); }
.next-tool .tool-icon { display: none; }

/* tools: the questionnaire reads as a form, the results as a table of findings */
.tool-form.card { background: transparent; border: 0; padding: 0; }
.quiz .q legend { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.q-num { border-radius: 2px; background: var(--fg); color: var(--bg); }
.tool-form .choices label { border-radius: 3px; }
.tool-form .choices label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.result::before { width: 3px; }
.podium, .pod { border-radius: var(--radius); box-shadow: none; }
.finder-sum { border-radius: var(--radius); }

/* family space: the dashboard reads as one dossier */
.tabs { background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0; gap: 0; margin: 0 0 22px; }
.tabs a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 8px 12px; }
.dash-tabs a.active { background: transparent; color: var(--fg); border-color: var(--fg); }
.tab-head, .tab-head:not(.card) { border: 0; border-left: 3px solid var(--fg); border-radius: 0; background: transparent; padding: 2px 0 2px 16px; }
.tiles { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { flex-direction: row; align-items: baseline; gap: 8px; padding: 10px 18px 10px 0; border: 0; border-radius: 0; background: transparent; }
.tile + .tile { border-left: 1px solid var(--line); padding-left: 18px; }
.tile:hover { border-color: var(--line); }
.tile-value, .tile-value.small-value { font-size: 1rem; font-weight: 650; }
.tile .meter { display: none; }
.tile-sub { display: none; }
.meter span, .kid-facts .meter span { background: var(--fg); }
.next-step { border-left-color: var(--fg); }
.ask-ai { border-radius: var(--radius); }
.fold > summary { padding: 14px 0; }
.card.fold { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; margin-bottom: 0; }
.card.fold:last-of-type { border-bottom: 1px solid var(--line); }
.choice-row .choice, .rec { border-radius: var(--radius); box-shadow: none; }
.rec-group h4 { font-family: var(--serif); font-size: 1.05rem; border-bottom: 1px solid var(--fg); padding-bottom: 4px; }
.warn-box { border-radius: 3px; }
.glass { border-radius: var(--radius); }
.glass h2 { font-family: var(--serif); }
.deadline-list li { border-color: var(--line); }

/* home (spike): the masthead and the finder */
.sp-masthead { padding: 26px 20px 8px; }
.sp-masthead .sp-kicker { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--fg); padding-bottom: 8px; margin: 0 0 22px; }
.sp-masthead h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 22ch; margin: 0 0 10px; }
.sp-masthead .lead { max-width: 60ch; margin: 0 0 6px; }
.sp-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
.sp-grid .tool-results { min-width: 0; }
.sp-finder .tool-form { position: static; max-height: none; overflow: visible; }
.sp-finder .finder-live { display: none; }
.sp-section { border-top: 1px solid var(--fg); padding-top: 18px; margin-top: 44px; }
.sp-section > h2 { margin: 0 0 4px; }
.sp-section > .sp-sub { color: var(--muted); margin: 0 0 18px; }
.sp-dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.sp-dates li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sp-dates time { font-weight: 650; }
.sp-dates em { font-style: normal; color: var(--muted); }
.sp-example { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 36px; }
.sp-example .sp-profile { font-size: .95rem; }
.sp-example .sp-profile dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.sp-example .sp-profile dt { color: var(--muted); } .sp-example .sp-profile dd { margin: 0; }
.sp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sp-cols h3 { margin: 0 0 8px; border-bottom: 1px solid var(--fg); padding-bottom: 4px; font-size: 1rem; }
.sp-cols ul { list-style: none; padding: 0; margin: 0; }
.sp-cols li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.sp-cols li .lik { font-size: .75rem; }
.sp-cols li .sp-lik { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: 0 0 auto; }
.sp-cols li .sp-bud { font-size: .72rem; color: var(--accent); white-space: nowrap; }
.sp-ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-ex-head .sp-sub { margin-bottom: 0; }
.sp-ex-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-ex-chip { font: inherit; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.sp-ex-chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sp-ex-name { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 12px; }
.sp-ex-slides { position: relative; }
.sp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sp-table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 12px 8px 0; border-bottom: 1px solid var(--fg); }
.sp-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sp-table td:first-child { white-space: nowrap; font-weight: 600; }
.sp-table a { text-decoration: none; }
.sp-guides { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.sp-guides li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sp-guides a { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; text-decoration: none; color: var(--fg); }
.sp-guides p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.sp-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; font-size: .95rem; color: var(--muted); }
.sp-method strong { color: var(--fg); display: block; margin-bottom: 4px; }
.sp-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 900px) {
  .sp-grid, .sp-example { grid-template-columns: 1fr; }
  .sp-cols { grid-template-columns: 1fr; }
  .sp-guides { columns: 1; }
  .sp-method { grid-template-columns: 1fr; gap: 16px; }
  .key-facts { grid-template-columns: 1fr; } .key-facts > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .tiles { grid-template-columns: 1fr 1fr; } .tile + .tile { border-left: 0; padding-left: 0; } .tile:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
}
/* home: the finder's own call-to-action and ad space stay on /tools; the example family section below plays that part */
.sp-finder .tool-cta, .sp-finder .ua-ad, .sp-finder .ua-ad-wrap, .sp-finder [class*="ad-slot"] { display: none !important; }
.sp-finder .result-rest { border-radius: var(--radius); }

/* v2 (owner: "put back some life"): photos on the cards and the closing band, flat corners */
.cta-band { border-radius: var(--radius); }
.cta-band h2 { font-family: var(--serif); }
.country-card .cc-flag { border-radius: 4px; }
.cc-facts dt .icon { display: none; }
.sp-section .section-head h2 { margin: 0; }
.sp-section .eyebrow { color: var(--accent-ink); }
.hero-search .search-box { border-radius: var(--radius); box-shadow: none; }

/* v3: a shorter banner so the page shows under it (owner 2026-10-30); compact dates in its panel */
.hero-inner, .hero-carousel .hero-inner { padding-top: 26px; padding-bottom: 56px; }
.hero-slide .lead { font-size: 1.05rem; margin-bottom: 4px; }
.hero-cta { margin-top: 16px; }
.hero-trust { margin-top: 16px; }
.glass { padding: 14px 18px; }
.glass .deadline-list li { padding: 5px 0; font-size: .88rem; line-height: 1.4; }
.account-page .page-hero-inner, .page-hero:has(.ph) .page-hero-inner { padding-top: 30px; padding-bottom: 30px; }

/* v4: the banner panel hugs its five dates (no stretched empty space); the stats strip flat; the home sections in their old order */
.hero-carousel .hero-inner { align-items: start; padding-bottom: 64px; }
.hero-carousel .hero-inner > aside { display: block; }
.hero-carousel .hero-inner > aside .deadline-list { display: block; }
.hero-carousel .hero-slide { align-self: start; }
.hero-points { margin: 10px 0 0; gap: 6px; }
.stats { margin-top: -36px; }
.stats-inner { border-radius: var(--radius); box-shadow: none; }
.stat-item strong { background: none; -webkit-text-fill-color: var(--fg); color: var(--fg); font-family: var(--serif); font-weight: 600; }
.sp-section .section-head { margin-bottom: 18px; }
/* v5: the search bar close under the banner text (the row gap was 40 px plus the tallest slide's spare height); the secondary banner button readable */
.hero-inner { row-gap: 14px; }
.hero-carousel .hero-inner { padding-bottom: 40px; }
.hero-points li { font-size: .95rem; }
.hero .btn-light, .hero .btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero .btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-nav { margin-top: 10px; }
/* v6 (owner): every slide the same height, so the search bar never moves; the deadlines panel fills that height and its dates scroll by themselves */
.hero-carousel .hero-inner { align-items: stretch; grid-template-rows: minmax(400px, auto) auto; row-gap: 18px; }
.hero-carousel .hero-slides, .hero-carousel .hero-inner > aside { height: 100%; }
.hero-carousel .hero-slide { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-carousel .hero-inner > aside { display: flex; flex-direction: column; }
.hero-carousel .hero-inner > aside .deadline-list { display: block; flex: 1; min-height: 0; overflow: hidden; position: relative; }
.hero-carousel .hero-inner > aside .deadline-list > li { padding: 6px 0; }
.dl-scroll { animation: dl-roll var(--dl-roll, 40s) linear infinite; }
.glass:hover .dl-scroll, .glass:focus-within .dl-scroll { animation-play-state: paused; }
@keyframes dl-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .dl-scroll { animation: none; } }
@media (max-width: 920px) { .hero-carousel .hero-inner { grid-template-rows: auto; } .hero-carousel .hero-inner > aside .deadline-list { max-height: 280px; } }
/* v7: the banner panel is capped, so the banner keeps one height whatever the number of dates (the list rolls inside it) */
.hero-carousel .hero-inner > aside { max-height: 430px; }
.hero-carousel .hero-inner { grid-template-rows: auto auto; }
@media (max-width: 920px) { .hero-carousel .hero-inner > aside { max-height: 320px; } }
/* country page: the year at a glance (the next twelve months' official dates on one line) */
.year-strip { margin: 0 0 22px; }
.year-strip .ys-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ys-line { position: relative; height: 2px; background: var(--line); margin: 26px 0 8px; }
.ys-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ys-months span.now { color: var(--fg); font-weight: 700; }
.ys-dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); transform: translate(-50%, -50%); }
.ys-dot.ys-key { background: var(--accent); border-color: var(--accent); }
.ys-dot.ys-past { border-color: var(--line); background: var(--line); }
.ys-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; font-size: .9rem; }
.ys-list li { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.ys-list time { font-weight: 650; }
/* university page: the cost of a year as a bar (tuition and living) */
.cost-bar { margin: 8px 0 0; }
.cost-bar .cb-track { display: flex; height: 14px; border-radius: 3px; overflow: hidden; background: var(--surface-2); }
.cost-bar .cb-tuition { background: var(--brand); } .cost-bar .cb-living { background: var(--accent); }
.cost-bar .cb-legend { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.cost-bar .cb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.key-facts.kf-4 { grid-template-columns: repeat(2, 1fr); }
.key-facts.kf-4 > div { padding: 12px 14px 12px 0; border-left: 0; }
.key-facts.kf-4 > div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
.key-facts.kf-4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.key-facts > div { overflow: visible; max-height: none; }
.key-facts.kf-4, .key-facts.kf-4 > div { height: auto; min-height: 0; max-height: none; overflow: visible; }
.key-facts.kf-4 { align-items: start; }

/* v8: the banner panel as tall as the slide (app.js fitPanel), more room under the search bar, the stats strip not overlapping it */
.hero-carousel .hero-inner > aside { max-height: none; }
.hero-carousel .hero-inner { padding-bottom: 84px; }
.stats { margin-top: -30px; }
@media (max-width: 920px) { .hero-carousel .hero-inner > aside { max-height: 320px; } }
.app-next { margin: 6px 0 8px; color: var(--muted); } .app-next strong { color: var(--fg); } .app-next .icon { width: 15px; height: 15px; vertical-align: -3px; }
.setup .grades-form { margin-top: 6px; }
/* v9: the dates list takes no part in sizing the banner row (flex-basis 0): the row follows the slides, the list fills the panel and rolls */
.hero-carousel .hero-inner > aside { height: 100%; max-height: none; }
.hero-carousel .hero-inner > aside .deadline-list { flex: 1 1 0; height: 0; min-height: 0; }
.key-facts.kf-4 > div { padding-bottom: 14px; }
.cost-bar .cb-legend { margin-top: 5px; }

/* no orange left (owner 2026-10-30: "hero content … and maybe somewhere else still has orange"): on the dark photos a light blue
   (dark blue would not read there), elsewhere the dark blue accent; the country flags keep their own colours */
.hero-trust span::before { background: rgba(169, 196, 255, .2); color: #a9c4ff; }
.glass h2::before { background: #a9c4ff; box-shadow: 0 0 0 4px rgba(169, 196, 255, .25); }
.auth-side li::before { color: #a9c4ff; }
.hero-points .icon { color: #a9c4ff; }
.hero-dot.is-active { background: #a9c4ff; border-color: #a9c4ff; }
.hero-dot:focus-visible, .hero-arrow:focus-visible { outline-color: #a9c4ff; }
.step-account.card.step::before { box-shadow: none; }
.pod-1 .pod-rank, .fr-m1 .fr-pos { background: var(--accent); }
.ch-lv-note { margin: -6px 0 14px; }
/* diploma × country pages and the diploma chips on country pages (SEO audit 2026-10-30) */
.dip-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 14px 0 18px; }
.dip-chips .chip { font-size: .85rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; }
.dip-chips .chip:hover { border-color: var(--brand); color: var(--brand); }
.dip-country-head .lead { margin: 8px 0; }
.country-faq h3 { font-size: 1.02rem; margin: 14px 0 4px; }
.site-nav .nav-lang { font-size: .78rem; font-weight: 650; letter-spacing: .03em; padding: 5px 5px; border: 1px solid var(--line); border-radius: 6px; margin-left: 2px; }
.site-nav:has(.nav-lang) > a { padding-left: 6px; padding-right: 6px; }   /* 1px less a side so the language link fits without collapsing the menu at 1280 */
.site-nav .nav-lang:hover { border-color: var(--brand); color: var(--brand); }
.fr-note { font-size: .85rem; color: var(--muted); }
/* site QA 2026-10-31: readable line length for long-form text (about 75 characters), the footer note too */
.doc-body p, .doc-body li, .doc-body blockquote { max-width: 75ch; }
.footer-bottom .disclaimer { max-width: none; }   /* full footer width (owner 2026-11-06: it looked cut on the right) */
/* "Watch out" headings: 4.1:1 on the paper background, below the 4.5:1 minimum for small text */
:root:not([data-theme="dark"]) { --warn: #8f5600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warn: #e3a64b; } }   /* the dark value of app.css */
/* a table wider than its box: a hint that it scrolls (app.js adds it only when it does) */
.table-hint { margin: 4px 0 6px; font-size: .82rem; color: var(--muted); }

/* key facts as tiles (owner 2026-11-02: "quite ugly"): a short main fact, its details below, the fit question as a row */
.key-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; padding: 0; margin: 0 0 24px; background: transparent; }
.key-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 15px; }
.key-facts > div + div { border-left: 1px solid var(--line); padding-left: 16px; }
.key-facts .kf-label { display: flex; align-items: center; gap: 7px; font-size: .7rem; letter-spacing: .1em; color: var(--muted); }
.key-facts .kf-label .icon { display: inline-block; width: 15px; height: 15px; color: var(--brand); flex: none; }
.key-facts p { margin: 8px 0 0; font-weight: 400; line-height: 1.35; }
.key-facts .kf-main { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 650; color: var(--fg); letter-spacing: -.01em; }
.key-facts .kf-more { display: block; margin-top: 4px; font-size: .84rem; color: var(--muted); line-height: 1.4; }
.key-facts .kf-fit { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--fg); font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s; }
.key-facts .kf-fit .icon { width: 18px; height: 18px; color: var(--brand); flex: none; }
.key-facts .kf-fit .kf-arrow { margin-left: auto; color: var(--brand); font-size: 1.1rem; transition: transform .15s; }
.key-facts .kf-fit:hover { border-color: var(--brand); background: var(--surface); }
.key-facts .kf-fit:hover .kf-arrow { transform: translateX(3px); }
@media (max-width: 760px) { .key-facts { grid-template-columns: 1fr; } .key-facts > div + div { padding-left: 16px; } }

/* country cards (owner 2026-11-02: "quite ugly"): photo edge to edge with the name on it, three icon rows (main fact + details),
   the guide link pinned to the bottom, a small lift on hover */
.country-card { padding: 0; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.country-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, var(--fg) 10%, transparent); }
.country-card .cc-top { height: 140px; border-radius: var(--radius) var(--radius) 0 0; }
.country-card .cc-top::after { background: linear-gradient(180deg, transparent 38%, rgba(8, 14, 30, .78)); }
.country-card .cc-name { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; margin: 0; color: #fff; font-size: 1.2rem; display: flex; align-items: center; gap: 9px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.country-card .cc-flag-inline { font-size: 1.45rem; line-height: 1; border-radius: 3px; }
.country-card .cc-body { padding: 14px 16px 16px; gap: 10px; }
.cc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cc-rows li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.cc-rows .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.cc-rows .kf-main { display: block; font-size: .92rem; font-weight: 600; color: var(--fg); line-height: 1.35; }
.cc-rows .kf-more { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.country-card .more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.country-card.cc-big .cc-top { height: 170px; }
.country-card.cc-big .cc-name { font-size: 1.35rem; }

/* horizontal card carousels on the home page (owner 2026-11-02): 4 cards on desktop, about 2.5 on tablets, 1.2 on phones */
.hs-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-btns { display: inline-flex; gap: 6px; }
.hs-btns[hidden] { display: none; }
.hs-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.hs-btn .icon { width: 18px; height: 18px; }
.hs-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.hs-btn:disabled { opacity: .35; cursor: default; }
.hs-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track > * { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .hs-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.5); } }
@media (max-width: 600px) { .hs-track { grid-auto-columns: 82%; gap: 12px; } .hs-btns { display: none; } }
.hs-track .tool-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* one long summary no longer stretches the whole row */

/* tool and guide cards (owner 2026-11-02: "make it look better"): the photo edge to edge (the generic .card padding had framed it),
   the link pinned at the bottom; the home tools are numbered 1-4 with their icon on a chip over the photo */
.tool-card { padding: 0; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: 0 12px 30px color-mix(in srgb, var(--fg) 10%, transparent); }
.tool-card .ph { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.tool-card .tool-body { padding: 16px 18px 16px; gap: 8px; }
.tool-card h3 { font-size: 1.08rem; line-height: 1.3; }
.tool-card p { font-size: .9rem; line-height: 1.5; }
.tq p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* home only; /tools and /guides keep their full summaries */
.tool-card .more { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.tq .tq-num { position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--brand); font-family: var(--serif); font-weight: 700; font-size: .95rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.tq .tool-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: -38px 0 2px; position: relative; z-index: 1; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 14px color-mix(in srgb, var(--fg) 12%, transparent); color: var(--brand); }
.tq .tool-icon .icon { width: 22px; height: 22px; }
:root[data-theme="dark"] .tq .tq-num { background: rgba(20, 21, 26, .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tq .tq-num { background: rgba(20, 21, 26, .9); } }
/* The Across family: home band and footer strip (2026-11-06, reworked) */
.af-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; align-items: center; padding: 40px; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 7%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid var(--line); }
.af-intro h2 { margin: 6px 0 10px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; }
.af-lead { color: var(--muted); margin: 0; font-size: .95rem; }
.af-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.af-card { --af: var(--brand); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 20px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.af-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--af); }
.af-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, .10); border-color: color-mix(in srgb, var(--af) 45%, var(--line)); text-decoration: none; }
.af-retireacross { --af: #d0682b; } .af-treatacross { --af: #1a8564; }
.af-logo img { height: 30px; width: auto; display: block; } .af-logo .af-d { display: none; }
.af-q { font-weight: 650; font-size: 1rem; margin-top: 6px; }
.af-text { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.af-go { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; color: var(--af); display: inline-flex; align-items: center; gap: 6px; }
.af-go svg { width: 16px; height: 16px; transition: transform .15s ease; } .af-card:hover .af-go svg { transform: translateX(3px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .af-logo .af-l { display: none; } :root:not([data-theme="light"]) .af-logo .af-d { display: block; } }
:root[data-theme="dark"] .af-logo .af-l { display: none; } :root[data-theme="dark"] .af-logo .af-d { display: block; }
@media (max-width: 900px) { .af-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px; } }
@media (max-width: 600px) { .af-cards { grid-template-columns: 1fr; } }

.footer-family { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 22px; }
.site-footer .ff-label { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8e9ab2; font-weight: 600; }
.ff-sites { display: flex; flex-wrap: wrap; gap: 12px; flex: 1; }
.site-footer .ff-sites li { margin: 0; }
.site-footer .ff-sites .ff-site > a, .ff-here { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.site-footer .ff-site > a { text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.site-footer .ff-site > a:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); text-decoration: none; }
.ff-site img { height: 24px; width: auto; display: block; }
.ff-site span { font-size: .82rem; color: #8e9ab2; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.ff-here { border-color: rgba(255,255,255,.14); }
@media (max-width: 700px) { .footer-family { flex-direction: column; align-items: stretch; gap: 14px; } .ff-sites { flex-direction: column; width: 100%; } .site-footer .ff-sites .ff-site > a, .ff-here { padding: 12px 14px; } }


.about-family { margin-top: 20px; }
/* Guides page: the diploma and compare cards (owner 2026-11-06: "not very visible") */
.gx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gx-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.gx-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); text-decoration: none; }
.gx-ph { position: relative; min-height: 190px; background: var(--surface-2); }
.gx-ph picture, .gx-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
.gx-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.gx-title { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.gx-body p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.gx-go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.gx-go svg { width: 16px; height: 16px; transition: transform .15s ease; } .gx-card:hover .gx-go svg { transform: translateX(3px); }
@media (max-width: 980px) { .gx-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .gx-card { grid-template-columns: 1fr; } .gx-ph { min-height: 160px; } }
/* University page: offers by diploma (tabs, course tables, figures in bold) and the application cards (2026-11-06) */
.offer-tabs { margin: 8px 0 24px; }
.ot-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; width: fit-content; max-width: 100%; }
.ot-tab { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.ot-tab:hover { color: var(--fg); }
.ot-tab[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ot-js .ot-head { display: none; }
.ot-head { font-size: 1.05rem; margin: 18px 0 8px; }
.ot-block + .ot-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ot-sub { font-weight: 700; margin: 0 0 6px; }
.ot-text, .ot-cap { margin: 0 0 10px; line-height: 1.6; }
.ot-cap { font-weight: 600; }
.ot-points { margin: 0 0 12px; padding-left: 0; list-style: none; }
.ot-points li { position: relative; padding: 0 0 0 18px; margin: 0 0 8px; line-height: 1.55; }
.ot-points li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55; }
.ot-notes { color: var(--muted); font-size: .94rem; }
.ot-text strong, .ot-points strong, .ot-table strong, .apply-card strong { color: var(--fg); font-weight: 700; white-space: nowrap; }
.ot-filter { display: flex; align-items: center; gap: 8px; max-width: 320px; margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ot-filter svg { width: 16px; height: 16px; color: var(--muted); } .ot-filter input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: inherit; padding: 0; margin: 0; min-height: 0; height: auto; box-shadow: none; }
.ot-filter:focus-within { border-color: var(--brand); }
.ot-wrap { margin: 0 0 10px; }
.ot-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ot-table caption { text-align: left; font-weight: 600; padding: 10px 14px; color: var(--fg); caption-side: top; border-bottom: 1px solid var(--line); }
.ot-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; padding: 8px 14px; background: var(--surface-2); }
.ot-table tbody th { text-align: left; font-weight: 600; width: 40%; padding: 9px 14px; vertical-align: top; }
.ot-table tbody td { padding: 9px 14px; vertical-align: top; line-height: 1.5; }
.ot-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.ot-table tbody tr:hover > * { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.ot-src { margin: 4px 0 0; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 18px; }
.apply-card { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.apply-card p { margin: 0 0 6px; line-height: 1.55; font-size: .95rem; } .apply-card p:last-child { margin-bottom: 0; }
.apply-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem !important; margin-bottom: 8px !important; }
.apply-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); color: var(--brand); flex: none; }
.apply-ic svg { width: 17px; height: 17px; }
@media (max-width: 700px) { .apply-grid { grid-template-columns: 1fr; } .ot-bar { width: 100%; } .ot-tab { flex: 1 1 auto; } .ot-table tbody th { width: 45%; } }

.ot-table tbody th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .94rem; color: var(--fg); background: transparent; font-weight: 600; }

/* University logos (owner 2026-11-06): a white rounded tile with the logo, or a coloured monogram; next to the name everywhere */
.uni-logo { display: inline-block; flex: none; vertical-align: middle; width: 28px; height: 28px; border-radius: 7px; background: #fff; object-fit: contain; padding: 2px; box-shadow: 0 0 0 1px rgba(15,23,42,.10), 0 1px 2px rgba(15,23,42,.06); }
.uni-logo-xs { width: 20px; height: 20px; border-radius: 5px; padding: 1px; }
.uni-logo-md { width: 40px; height: 40px; border-radius: 9px; padding: 3px; }
.uni-logo-lg { width: 72px; height: 72px; border-radius: 16px; padding: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 6px 18px rgba(0,0,0,.25); }
.uni-mono { display: inline-grid; place-items: center; padding: 0; color: #fff; font: 700 .62rem/1 var(--sans, system-ui); letter-spacing: .02em; background: linear-gradient(135deg, hsl(var(--mh, 220) 48% 40%), hsl(calc(var(--mh, 220) + 28) 52% 30%)); box-shadow: none; }
.uni-mono.uni-logo-xs { font-size: .5rem; } .uni-mono.uni-logo-md { font-size: .8rem; } .uni-mono.uni-logo-lg { font-size: 1.35rem; }
.uni-name { display: inline-flex; align-items: center; gap: .5em; vertical-align: middle; }
.hero-name { display: flex; align-items: center; gap: 18px; }
.hero-name h1 { margin: .1em 0; }
@media (max-width: 640px) { .uni-logo-lg { width: 52px; height: 52px; border-radius: 12px; padding: 4px; } .hero-name { gap: 12px; } }
.uni-name { max-width: 100%; } .uni-name > span { min-width: 0; overflow-wrap: anywhere; }
.tbl-stack .uni-name, .tbl-stack .uni-name > span { white-space: normal; }

/* hero video (2026-11-10, as medicalacross): a muted loop over the first banner's photo, faded in once it plays; JS skips it with reduced motion or data saver */
.hero .ph-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero .ph-video.is-on { opacity: 1; }


/* ===== Folded sections with a summary (owner 2026-11-13: less text at once; lib/folds.php) ===== */
.doc-card, .fold-card { border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--surface); padding: 0; margin: 12px 0 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc .doc-card { border-top: 1px solid var(--line); padding-top: 0; }
.doc-card > summary, .fold-card > summary { list-style: none; cursor: pointer; pointer-events: auto; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.doc-card > summary::-webkit-details-marker, .fold-card > summary::-webkit-details-marker, .dc-more > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker { display: none; }
.doc .doc-card > summary h2, .fold-card > summary h2 { grid-column: 1; margin: 0; padding: 0; border: 0; font-size: 1.2rem; line-height: 1.25; display: block; }
.doc .doc-card > summary h2::after { content: none; }
.sec-sum { grid-column: 1; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-more { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.sec-more::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .15s; }
.sec-more .sm-less { display: none; }
details[open] > summary .sec-more .sm-more { display: none; }
details[open] > summary .sec-more .sm-less { display: inline; }
details[open] > summary .sec-more::after { transform: rotate(90deg); }
details[open] > summary .sec-sum { display: none; }
.doc-card > summary:hover, .fold-card > summary:hover { background: var(--surface-2, rgba(0,0,0,.025)); }
.doc-card > summary:focus-visible, .fold-card > summary:focus-visible, .dc-more > summary:focus-visible, .qa > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.doc-card[open] > summary, .fold-card[open] > summary { border-bottom: 1px solid var(--line); }
.doc-card > .sec-body, .fold-card > .sec-body { padding: 16px 20px 20px; }
.doc-card > .sec-body > :first-child, .fold-card > .sec-body > :first-child { margin-top: 0; }
.doc-card > .sec-body > :last-child, .fold-card > .sec-body > :last-child { margin-bottom: 0; }
.uni-main > .fold-card { margin: 0; }
.uni-main > section.card > h2 { font-size: 1.2rem; }
/* a question that opens its answer */
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa > summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.qa > summary h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.qa > summary::after { content: "+"; color: var(--brand); font-weight: 600; font-size: 1.2rem; line-height: 1; flex: none; }
.qa[open] > summary::after { content: "–"; }
.qa > p { margin: 0 0 14px; max-width: 75ch; }
.country-faq .qa:first-of-type { margin-top: 8px; }
/* diploma × country: one row per rule, the long text behind "More details" */
.dc-rows { list-style: none; padding: 0; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--surface); }
.prose-wide .dc-rows, .prose-wide .dc-rows > li, .dc-rows > li { max-width: none; }
.dc-row { padding: 14px 18px; margin: 0; }
.dc-row + .dc-row { border-top: 1px solid var(--line); }
.dc-head { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-row > p:not(.dc-head) { margin: 0; color: var(--muted); max-width: 80ch; }
.dc-more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.dc-more > summary .sec-more { grid-column: 2; grid-row: 1; }
.dc-sum { color: var(--muted); }
.dc-more[open] > summary .dc-sum { display: none; }
.dc-more[open] > summary { grid-template-columns: 1fr; justify-items: end; }
.dc-more > p { margin: 6px 0 0; max-width: 80ch; }
@media (max-width: 720px) {
  .doc-card > summary, .fold-card > summary { padding: 14px 16px; grid-template-columns: 1fr; }
  .sec-more { grid-column: 1; grid-row: auto; }
  .doc-card > .sec-body, .fold-card > .sec-body { padding: 14px 16px 16px; }
  .dc-more > summary { grid-template-columns: 1fr; }
  .dc-more > summary .sec-more { grid-column: 1; grid-row: auto; }
}
@media print { .doc-card > .sec-body, .fold-card > .sec-body { display: block !important; } }


/* ===== My family: children first, one glance per child (2026-11-13) ===== */
.kid-grid { margin: 8px 0 20px; align-items: stretch; }
.kid-card2 { gap: 10px; }
.kid-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kid-figs > div { padding: 8px 0 8px 12px; border-left: 1px solid var(--line); }
.kid-figs > div:first-child { border-left: 0; padding-left: 0; }
.kid-figs dt { font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kid-figs dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.kid-figs .kf-ok dd { color: var(--ok, #0f7a50); }
.kid-figs .kf-ok dd::before { content: "✓ "; font-weight: 600; }
.kid-next { margin: 0; }
.kid-step2 { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.kid-step2 a { font-weight: 600; text-decoration: none; }
.kid-useful2 { margin: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kid-useful2 a { text-decoration: none; font-weight: 600; }
.kid-card2 .kid-foot { margin-top: auto; padding-top: 4px; }
.kid-card2 .kid-remove { color: var(--muted); font-size: .85rem; }
.kid-grid .add-card { align-self: start; }
.kid-grid .add-card summary { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.kid-grid .add-card summary h3 { margin: 0; }
.kid-grid .add-card summary p { margin: 0; flex-basis: 100%; }


/* ===== Child dashboard: lighter (2026-11-13) ===== */
/* a set-up step open: only the step (the dates and the rest come back once it is saved) */
#overview:has(> .setup3) > :not(.setup3) { display: none; }
body:has(#overview > .setup3) .ask-ai-card { display: none; }
/* Ask AI: one row; the title, the example questions and the note appear when the box is used */
.ask-ai-card > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-ai-card .ask-ideas, .ask-ai-card .ask-ai-note { display: none; }
.ask-ai-card:focus-within .ask-ideas { display: flex; }
.ask-ai-card:focus-within .ask-ai-note { display: block; }
.ask-ai-card { margin-bottom: 12px; }
/* long date titles: two lines, the whole title on hover or focus */
#overview .next-step-text, #overview .next-list .next-title, #overview .deadline-list li > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#overview .next-list li:hover .next-title, #overview .next-list li:focus-within .next-title, #overview .deadline-list li:hover > span, #overview .next-step-text:hover { -webkit-line-clamp: unset; }
/* Universities tab: equal cards, one Choose button */
.choice { display: flex; flex-direction: column; }
.choice .choice-actions { margin-top: auto; padding-top: 8px; align-items: center; }
.choice-remove { color: var(--muted); margin-left: 4px; }
.choice .choice-facts { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.choice:hover .choice-facts, .choice:focus-within .choice-facts { -webkit-line-clamp: unset; }
.choice-cap { margin: 0; }
.choice-cap > summary { grid-template-columns: 1fr; }
.choice-cap > summary .sec-more { grid-column: 1; grid-row: auto; }
.pick-menu { display: inline-block; }
.pick-menu > summary { list-style: none; cursor: pointer; }
.pick-menu > summary::-webkit-details-marker { display: none; }
.pick-menu[open] > summary { display: none; }
.pick-menu .pick-row { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pick-menu .pick-row::before { content: "Choose as"; font-size: .85rem; color: var(--muted); margin-right: 2px; }
.rec-group .show-more { margin-top: 8px; }


/* ===== Set-up questions (2026-11-13) ===== */
/* a language not spoken: the dash is not a filled choice */
.lang-chips .pick-chip input[value=""]:checked + span { background: transparent !important; color: var(--muted) !important; border-color: var(--line) !important; border-style: dashed; font-weight: 400; }
.nat2-add { justify-self: start; margin: -4px 0 4px; }
.setup3 .subj-row { border: 0; padding: 0; background: none; }
.setup3 .subj-rows { display: grid; gap: 8px; }
