/* Brigid Education — Stipendien und Bildungsförderung.

   The design follows the three references Hannes named, not a template:
   - Heinrich Böll Stiftung: grey boxes with a coloured top rule for process, contact and
     downloads; content column with a contact box beside it; plain, descriptive headings.
   - Studienfonds OWL: the programme page structure (Zielgruppe, Bewertungskriterien,
     Ausschlusskriterien, numbered files), contact persons on every programme page, partner logos.
   - Stipendium Hungaricum: a large photo hero with a strong brand colour block, one dominant
     call to apply, and a dated application timeline.
   Brigid's identity is the delivered logo and its maroon (#711A27, measured from the file).
   One typeface (Switzer, shared with the other Milesia Group sites), square edges, colour
   used in blocks and rules, photography of real situations. No decorative shapes. */

@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* The wordmark only: Poppins SemiBold is the typeface of the Milesia Group logos. */
@font-face { font-family: "BE Brand"; src: url("../fonts/Poppins-600.woff2") format("woff2"); font-weight: 600; font-display: block; }

:root {
  --brand: #711a27;
  --brand-hover: #5c1520;
  --brand-dark: #4a111a;
  --brand-darker: #2d0a10;
  --brand-tint: #f7efef;
  --ink: #1b1718;
  --grey: #5d5557;           /* 7.2:1 on white, 6.6:1 on --panel */
  --panel: #f4f2f1;
  --line: #e3dedc;
  --line-strong: #c9c1be;
  --ok: #2f6b45;
  --warn: #8a5410;
  --err: #a3271d;

  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --brandfont: "BE Brand", var(--font);

  --h1: clamp(2.1rem, 1.55rem + 2.4vw, 3.4rem);
  --h2: clamp(1.55rem, 1.3rem + 1.05vw, 2.15rem);
  --h3: 1.2rem;
  --lead: clamp(1.075rem, 1.02rem + .3vw, 1.25rem);
  --body: 1.0625rem;
  --small: .9375rem;
  --tiny: .8125rem;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(56px, 7vw, 104px);
  --gap: clamp(20px, 2.5vw, 32px);
  --measure: 44rem;
  --header-h: 76px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.band :focus-visible, .footer :focus-visible, .hero__panel :focus-visible { outline-color: #fff; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; }
.skip-link:focus { top: 8px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure); }
.stack { display: grid; gap: 16px; align-content: start; }
.mt { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mt-lg { margin-top: 32px; }
.mb-md { margin-bottom: 20px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.015em; overflow-wrap: break-word; hyphens: manual; }
/* No automatic hyphenation in headings: long compounds carry soft hyphens (&shy;) instead. */
.h1 { font-size: var(--h1); line-height: 1.08; letter-spacing: -.025em; }
.h2 { font-size: var(--h2); }
.h3 { font-size: var(--h3); line-height: 1.3; letter-spacing: -.01em; }
.label { display: block; font-size: var(--tiny); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lead { font-size: var(--lead); line-height: 1.55; color: var(--grey); max-width: var(--measure); }
.text { font-size: var(--small); color: var(--grey); line-height: 1.6; }
.prose { max-width: var(--measure); display: grid; gap: 16px; }
.prose > p, .prose li { color: #3a3335; }
.prose h2 { font-size: 1.45rem; margin-top: 16px; }
.prose h3 { font-size: var(--h3); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose a, .link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; color: var(--ink); }
.ph { background: var(--brand-tint); color: var(--brand); padding: 0 .25em; font-weight: 500; white-space: nowrap; }
.fname { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; color: var(--ink); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--r); font-size: var(--small); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-tint); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--brand); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--small); font-weight: 600; color: var(--brand); text-decoration: none; }
.arrow::after { content: "→"; transition: transform .15s; }
.arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.arrow:hover::after { transform: translateX(3px); }
.band .arrow, .footer .arrow { color: #fff; }
button.arrow { background: none; border: 0; padding: 0; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }

/* ---------- draft notice (preview only) ---------- */
.draft-badge { position: fixed; left: 16px; bottom: 16px; z-index: 80; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 14px; background: var(--ink); color: #fff; font-size: var(--tiny); border-radius: var(--r); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.draft-badge b { font-weight: 600; }
.draft-badge button { border: 0; background: none; color: #fff; cursor: pointer; padding: 2px 6px; font-size: 1rem; line-height: 1; opacity: .8; }
.draft-badge button:hover { opacity: 1; }

/* ---------- header ---------- */
.utility { background: var(--panel); border-bottom: 1px solid var(--line); font-size: var(--tiny); color: var(--grey); }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.utility ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.utility a { text-decoration: none; color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--brand); flex: none; }
.brand svg { width: 25px; height: auto; flex: none; }
.brand__text { display: grid; font-family: var(--brandfont); font-weight: 600; line-height: 1; }
.brand__name { font-size: 1.125rem; letter-spacing: .065em; }
.brand__sub { font-size: .5625rem; letter-spacing: .27em; margin-top: .38em; }
.nav { display: flex; align-items: stretch; align-self: stretch; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.nav a { position: relative; display: flex; align-items: center; font-size: var(--small); font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.nav__extra { display: none; }
.header__cta { flex: none; }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: none; border: 1.5px solid var(--ink); border-radius: var(--r); cursor: pointer; font-size: var(--small); font-weight: 600; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); padding: 8px var(--gutter) 32px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .nav a { padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"]::after { top: 12px; bottom: 12px; left: -12px; right: auto; width: 3px; height: auto; }
  .nav__extra { display: grid; gap: 12px; margin-top: 24px; }
  .nav__extra a { border: 1.5px solid transparent; justify-content: center; font-size: 1rem; }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .2s; }
  .nav-open { overflow: hidden; }
  .utility .utility__group { display: none; }
}

/* ---------- footer ---------- */
.footer { background: var(--brand-darker); color: rgba(255, 255, 255, .78); font-size: var(--small); }
.footer__top { display: grid; gap: 36px; padding-block: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer .brand { color: #fff; }
.footer .ph { background: rgba(255, 255, 255, .1); color: #fff; }
.footer address { font-style: normal; margin-top: 22px; line-height: 1.7; }
.footer h2 { font-size: var(--tiny); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: var(--tiny); }
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--grey { background: var(--panel); }
.section:not(.section--grey) + .section:not(.section--grey):not(.band) { padding-top: 0; }
.section--grey + .section--grey { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head > div { max-width: 46rem; }
.section-head .lead { margin-top: 12px; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--brand); color: #fff; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 560px; } }
.hero__panel { display: grid; align-content: center; gap: 22px; padding: clamp(40px, 6vw, 80px) var(--gutter); }
@media (min-width: 960px) { .hero__panel { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-right: clamp(32px, 4vw, 64px); } }
.hero__panel .label { color: #f3d9dc; margin: 0; }
.hero__panel .lead { color: rgba(255, 255, 255, .88); }
.hero__panel .actions { margin-top: 8px; }
.hero__media { position: relative; min-height: 280px; background: var(--brand-dark); }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__note { font-size: var(--small); color: rgba(255, 255, 255, .85); display: flex; gap: 10px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 18px; margin-top: 6px; }

/* ---------- calls: current application rounds ---------- */
.calls { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); background: #fff; }
@media (min-width: 900px) { .calls { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.call { display: grid; gap: 8px; align-content: start; padding: 24px 26px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .call { border-bottom: 0; border-right: 1px solid var(--line); } .call:last-child { border-right: 0; } }
.call:last-child { border-bottom: 0; }
.call h3 a { text-decoration: none; }
.call h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.call .text { margin-bottom: 6px; }
.call .arrow { margin-top: 6px; }

/* ---------- status (live deadline state) ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: var(--small); font-weight: 500; line-height: 1.35; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.status[data-state="open"] .status__dot, .status[data-state="rolling"] .status__dot { background: var(--ok); }
.status[data-state="open"], .status[data-state="rolling"] { color: var(--ok); }
.status[data-state="soon"] .status__dot { background: #c98a1c; }
.status[data-state="soon"] { color: var(--warn); }
.status[data-state="closed"] { color: var(--grey); }
.hero__panel .status, .band .status { color: #fff; }

/* ---------- page head ---------- */
.page-head { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 18px; }
.page-head .actions { margin-top: 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--tiny); color: var(--grey); margin: 0 0 24px; list-style: none; padding: 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.page-photo { margin-top: 0; }
.page-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
@media (max-width: 700px) { .page-photo img { aspect-ratio: 3 / 2; } }

/* ---------- content layouts ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } .layout > aside { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (min-width: 1180px) { .layout--nav { grid-template-columns: 200px minmax(0, 1fr) 300px; } }
.layout > aside { display: grid; gap: 20px; }
.localnav { display: none; }
@media (min-width: 1180px) {
  .localnav { display: block; position: sticky; top: calc(var(--header-h) + 24px); }
  .localnav p { font-size: var(--tiny); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
  .localnav ul { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
  .localnav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: var(--small); text-decoration: none; color: var(--grey); }
  .localnav a:hover { color: var(--ink); }
  .localnav a[aria-current="true"] { border-left-color: var(--brand); color: var(--brand); font-weight: 600; }
}
.content-section { padding-block: 0 clamp(36px, 4vw, 52px); scroll-margin-top: calc(var(--header-h) + 24px); }
.content-section + .content-section { border-top: 1px solid var(--line); padding-top: clamp(36px, 4vw, 52px); }
.content-section > h2 { font-size: var(--h2); margin-bottom: 18px; }
.content-section > h3, .content-section .sub { font-size: var(--h3); margin: 26px 0 10px; }
.content-section > p + p { margin-top: 12px; }

/* ---------- boxes (Böll style: grey panel, coloured top rule) ---------- */
.box { background: var(--panel); border-top: 3px solid var(--brand); padding: 22px 24px 24px; display: grid; gap: 12px; align-content: start; }
.box--white, .section--grey .box { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); }
.box h2, .box h3 { font-size: 1.05rem; line-height: 1.3; }
.box dl { display: grid; gap: 12px; font-size: var(--small); }
.box dt { font-size: var(--tiny); color: var(--grey); font-weight: 500; }
.box dd { font-weight: 500; }
.box .btn { justify-self: start; }
.contact-person { display: grid; gap: 2px; font-size: var(--small); }
.contact-person b { font-weight: 600; font-size: 1rem; }
.contact-person span { color: var(--grey); }

/* ---------- lists ---------- */
.bullets { display: grid; gap: 10px; padding-left: 20px; margin: 0; }
.bullets li::marker { color: var(--brand); }
.checks { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.checks--no li::before { width: 11px; height: 2px; border: 0; background: var(--grey); transform: none; top: .8em; }
.checklist { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checklist li.is-todo { color: var(--grey); }
.checklist li.is-todo::before { width: 10px; height: 10px; border: 1.5px solid var(--line-strong); border-radius: 50%; transform: none; top: .4em; }

/* numbered file list, as on the Studienfonds OWL application pages */
.files { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.files .f-title { font-weight: 600; }
.files .f-title .fname { font-weight: 500; color: var(--brand); }
.files .text { grid-column: 1; }
.files .req-tag { grid-row: 1; grid-column: 2; font-size: var(--tiny); color: var(--grey); white-space: nowrap; }

.numbered { display: grid; gap: 10px; padding-left: 22px; margin: 0; }
.numbered li::marker { font-weight: 600; color: var(--brand); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: s; }
@media (min-width: 900px) { .steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); } }
.steps > li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding: 18px 0 22px; border-top: 1px solid var(--line-strong); }
.steps > li::before { content: counter(s); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--brand); letter-spacing: -.02em; }
.steps .n { display: none; }
.steps h3 { font-size: var(--h3); }
@media (min-width: 900px) { .steps--row > li { border-top-width: 3px; border-top-color: var(--brand); } }

/* ---------- timeline (dated rounds) ---------- */
/* Horizontal only where the timeline itself has room (full-width sections), vertical in the
   narrow programme-page column and on phones. */
.tl-wrap { container: tl / inline-size; }
.tl { position: relative; display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
@container tl (min-width: 820px) { .tl { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } }
.tl > li { position: relative; padding: 0 0 24px 30px; }
.tl > li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; z-index: 1; }
.tl > li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl > li:last-child::after { display: none; }
.tl > li.is-done::before { background: var(--brand); }
.tl > li.is-now::before { background: #fff; border-color: var(--ok); box-shadow: 0 0 0 4px rgba(47, 107, 69, .18); }
@container tl (min-width: 820px) {
  .tl > li { padding: 30px 20px 0 0; }
  .tl > li::before { top: 0; }
  .tl > li::after { left: 14px; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; }
}
.tl__date { font-weight: 600; }
.tl__label { margin-top: 4px; font-size: var(--small); color: var(--grey); }
.tl__label b { color: var(--ink); font-weight: 500; }
.tl__now { display: inline-block; margin-top: 8px; font-size: var(--tiny); font-weight: 600; color: var(--ok); }

/* ---------- programme cards ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); }
.pcard__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pcard__body { display: grid; gap: 12px; align-content: start; padding: 22px 24px 24px; }
.pcard__body .label { margin: 0; }
.pcard__title { font-size: 1.35rem; }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard:hover .pcard__title a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.pcard:has(a:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pcard__title a:focus-visible { outline: none; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: var(--small); padding-top: 12px; border-top: 1px solid var(--line); }
.facts dt { color: var(--grey); }
.facts dd { font-weight: 500; }

/* programme rows on the overview page */
.prow { display: grid; gap: 20px 40px; padding-block: 32px; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .prow { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.prow img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prow__body { display: grid; gap: 12px; align-content: start; }
.prow__body .h2 a { text-decoration: none; }
.prow__body .h2 a:hover { color: var(--brand); }

/* ---------- media + text ---------- */
.media-text { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .media-text { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .media-text--flip > :first-child { order: 2; } }
.media-text img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-text .lead, .media-text .prose { margin-top: 16px; }
.media-text .actions { margin-top: 24px; }

.cols-3 { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols-2 { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 3px solid var(--brand); }
.item h3 { font-size: var(--h3); }

/* ---------- band (strong colour block, as in the Hungaricum apply section) ---------- */
.band { background: var(--brand); color: #fff; padding-block: clamp(44px, 5vw, 64px); }
.band .wrap { display: grid; gap: 22px; }
@media (min-width: 900px) { .band .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.band p { color: rgba(255, 255, 255, .86); margin-top: 8px; max-width: 40rem; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--brand); }
.table { width: 100%; border-collapse: collapse; font-size: var(--small); }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--panel); font-weight: 600; font-size: var(--tiny); letter-spacing: .04em; text-transform: uppercase; color: var(--grey); border-bottom: 2px solid var(--line-strong); }
.table tbody th { font-weight: 600; }
.table a { color: var(--brand); font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; text-underline-offset: 3px; }
.compare { min-width: 760px; }
.compare tbody th { width: 20%; color: var(--grey); font-weight: 500; }

/* ---------- accordion ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc:first-of-type { border-top: 1px solid var(--line); }
.acc summary { position: relative; display: block; padding: 18px 44px 18px 0; cursor: pointer; list-style: none; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before, .acc summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--brand); transition: transform .2s; }
.acc summary::after { transform: rotate(90deg); }
.acc[open] summary::after { transform: rotate(0deg); }
.acc summary:hover { color: var(--brand); }
.acc__body { padding: 0 44px 20px 0; color: #3a3335; display: grid; gap: 10px; max-width: var(--measure); }
.acc__body a { color: var(--brand); }

/* ---------- FAQ page ---------- */
.faq { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; } .faq__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.faq__search { position: relative; }
.faq__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--grey); pointer-events: none; }
.faq__search .input { padding-left: 42px; }
.faq__cats { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 11px 12px 11px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font-size: var(--small); text-align: left; color: var(--ink); }
.chip:hover { color: var(--brand); }
.chip[aria-pressed="true"] { color: var(--brand); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }
.faq__group + .faq__group { margin-top: 40px; }
.faq__group h2 { font-size: 1.35rem; margin-bottom: 8px; }
.faq__empty { padding: 24px 0; color: var(--grey); }

/* ---------- self-check ---------- */
.quiz { display: grid; gap: 28px; }
@media (min-width: 960px) { .quiz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.quiz legend { font-weight: 600; margin-bottom: 10px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; font-size: var(--small); font-weight: 500; }
.option span:hover { border-color: var(--ink); }
.option input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.option input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.quiz__result { min-height: 220px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.match__name { font-weight: 600; }
.match__why { grid-column: 1 / -1; font-size: var(--small); color: var(--grey); }
.fit { font-size: var(--tiny); font-weight: 600; color: var(--grey); white-space: nowrap; }
.fit--good { color: var(--ok); }
.fit--maybe { color: var(--warn); }

/* ---------- deadlines list ---------- */
.deadline-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.dcard { display: grid; gap: 12px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .dcard { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, .9fr) 150px; } }
.dcard__name { font-size: 1.2rem; font-weight: 600; }
.dcard__name a { text-decoration: none; }
.dcard__name a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.dcard dt { font-size: var(--tiny); color: var(--grey); }
.dcard dd { font-weight: 500; }
.countdown { font-size: 1.6rem; font-weight: 600; color: var(--brand); line-height: 1; }
.countdown small { display: block; font-size: var(--tiny); font-weight: 500; color: var(--grey); margin-top: 6px; }
.dcard .status { flex-wrap: nowrap; }

/* ---------- group logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.logos a { display: block; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover, .logos a:focus-visible { filter: none; opacity: 1; }
.logos img { height: 30px; width: auto; }

/* ---------- downloads ---------- */
.downloads { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.downloads li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--small); }
.downloads li:last-child { border-bottom: 0; }
.downloads .file-ico { font-size: .68rem; font-weight: 700; color: var(--brand); border: 1.5px solid var(--brand); padding: 3px 5px; border-radius: 2px; flex: none; }
.downloads .grow { flex: 1; min-width: 0; }
.downloads small { display: block; color: var(--grey); font-size: var(--tiny); }
.soon { font-size: var(--tiny); color: var(--grey); white-space: nowrap; }

/* ---------- notes ---------- */
.note { border-left: 3px solid var(--line-strong); padding: 4px 0 4px 16px; font-size: var(--small); color: var(--grey); max-width: var(--measure); }
.note b { color: var(--ink); font-weight: 600; }
.callout { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 14px 18px; font-size: var(--small); max-width: var(--measure); }
.callout p + p { margin-top: 8px; }
.callout strong { font-weight: 600; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.field > label, .field-label { font-size: var(--small); font-weight: 600; }
.req { color: var(--brand); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1718' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--grey); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(113, 26, 39, .15); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.help { font-size: var(--tiny); color: var(--grey); }
.error { font-size: var(--tiny); color: var(--err); font-weight: 500; }
.counter { font-size: var(--tiny); color: var(--grey); text-align: right; }
.check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: var(--small); color: #3a3335; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.check a { color: var(--brand); }
.pw-toggle { position: relative; }
.pw-toggle .input { padding-right: 52px; }
.pw-toggle button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--grey); display: grid; place-items: center; }
.pw-toggle svg { width: 20px; height: 20px; }
.rules { display: grid; gap: 3px; font-size: var(--tiny); color: var(--grey); list-style: none; padding: 0; margin: 0; }
.rules li::before { content: "○ "; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "✓ "; }
.form-note { font-size: var(--tiny); color: var(--grey); }
.alert { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; font-size: var(--small); border-left: 3px solid; }
.alert svg { width: 20px; height: 20px; margin-top: 1px; }
.alert--ok { background: #eef5f0; color: #1e4a2e; border-color: var(--ok); }
.alert--err { background: #fbefee; color: #7c1d16; border-color: var(--err); }
.alert--info { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand); }
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.panel { background: #fff; border: 1px solid var(--line); padding: clamp(22px, 3vw, 32px); display: grid; gap: 16px; align-content: start; }

/* ---------- portal ---------- */
.portal-body { background: var(--panel); }
.portal-head { background: #fff; border-bottom: 1px solid var(--line); }
.portal-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.portal-head .who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: var(--small); }
.portal-head .who .header__login { text-decoration: none; font-weight: 500; }
.portal-head .who .header__login:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; background: var(--brand-tint); color: var(--brand); font-size: var(--tiny); font-weight: 600; border-radius: 2px; }
.tag--example { background: var(--panel); color: var(--grey); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: var(--tiny); }
.portal-main { padding-block: clamp(28px, 4vw, 48px) 80px; min-height: calc(100vh - 68px); }
.auth { max-width: 460px; margin-inline: auto; }
.auth .panel { gap: 20px; border-top: 3px solid var(--brand); }
.auth h1 { font-size: 1.75rem; }
.auth .eyebrow, .portal-main .eyebrow { display: block; font-size: var(--tiny); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.auth__alt { text-align: center; font-size: var(--small); color: var(--grey); margin-top: 18px; }
.auth__alt a { color: var(--brand); font-weight: 600; }
.demo-hint { font-size: var(--tiny); color: var(--grey); border-top: 1px solid var(--line); padding-top: 14px; }
.demo-hint button { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.portal-main .split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.portal-main .d2 { font-size: var(--h1); line-height: 1.1; }
.portal-main .d3 { font-size: var(--h2); }
.portal-main .h4 { font-size: 1.15rem; font-weight: 600; }
.stepper { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 24px; overflow-x: auto; }
.stepper li { flex: 1 1 0; min-width: 118px; }
.stepper button { width: 100%; display: grid; gap: 8px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: var(--tiny); color: var(--grey); font-weight: 500; }
.stepper button::before { content: ""; height: 4px; background: var(--line-strong); }
.stepper button[aria-current="step"] { color: var(--ink); font-weight: 600; }
.stepper button[aria-current="step"]::before { background: var(--brand); }
.stepper button.is-done::before { background: var(--brand); opacity: .45; }
.stepper button:disabled { cursor: default; }
.wizard { display: grid; gap: 24px; }
@media (min-width: 1040px) { .wizard { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .wizard__side { position: sticky; top: 24px; } }
.wizard__side { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); padding: 22px; display: grid; gap: 14px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 20px; }
.saved-note { font-size: var(--tiny); color: var(--grey); display: inline-flex; align-items: center; gap: 8px; }
.saved-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.prog-pick { display: grid; gap: 10px; }
.prog-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; cursor: pointer; }
.prog-opt input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brand); }
.prog-opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.prog-opt:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.prog-opt b { display: block; }
.prog-opt small { color: var(--grey); font-size: var(--tiny); }
.uploads { display: grid; gap: 10px; }
.upload { border: 1px dashed var(--line-strong); border-radius: var(--r); background: #fff; padding: 14px 16px; display: grid; gap: 10px; }
.upload.is-over { border-color: var(--brand); background: var(--brand-tint); }
.upload.is-filled { border-style: solid; border-color: var(--line); }
.upload.has-error { border-color: var(--err); }
.upload__title { font-weight: 600; font-size: var(--small); }
.upload__title small { display: block; font-weight: 400; color: var(--grey); font-size: var(--tiny); margin-top: 2px; }
.upload__drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--small); color: var(--grey); }
.upload__drop label { color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.upload__drop label:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--panel); font-size: var(--small); }
.file__ico { font-size: .62rem; font-weight: 700; color: var(--brand); border: 1.5px solid var(--brand); padding: 2px 4px; border-radius: 2px; }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.file__size { color: var(--grey); font-size: var(--tiny); }
.file button { border: 0; background: none; cursor: pointer; color: var(--grey); padding: 6px; }
.file button:hover { color: var(--err); }
.file button svg { width: 18px; height: 18px; }
.progress { height: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s; }
.summary { display: grid; border: 1px solid var(--line); background: #fff; }
.summary section { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.summary section:last-child { border-bottom: 0; }
.summary h3 { display: flex; justify-content: space-between; gap: 12px; font-size: var(--tiny); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.summary h3 button { border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: var(--tiny); text-decoration: underline; }
.kv { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 6px 18px; font-size: var(--small); }
.kv dt { color: var(--grey); }
.kv dd { overflow-wrap: anywhere; }
.dash aside .kv, .wizard__side .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.dash aside .kv dd { margin-bottom: 10px; }
.confirm { max-width: 720px; margin-inline: auto; }
.confirm .panel { border-top: 3px solid var(--ok); }
.confirm__badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.confirm__badge svg { width: 26px; height: 26px; color: #fff; }
.ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; font-weight: 600; color: var(--brand); }
.dash { display: grid; gap: 24px; }
@media (min-width: 1040px) { .dash { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.app-card { display: grid; gap: 16px; }
.app-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; font-size: var(--tiny); font-weight: 600; border-radius: 2px; background: var(--panel); color: var(--grey); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--submitted { background: #eaf0f7; color: #234a73; }
.badge--review { background: #fbf2e4; color: var(--warn); }
.badge--missing { background: #fbefee; color: var(--err); }
.badge--interview { background: var(--brand-tint); color: var(--brand); }
.badge--approved { background: #eef5f0; color: var(--ok); }
.status-tl { display: grid; list-style: none; padding: 0; margin: 0; }
.status-tl li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 28px; font-size: var(--small); }
.status-tl li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.status-tl li::after { content: ""; position: absolute; left: 7px; top: 19px; bottom: 2px; width: 2px; background: var(--line); }
.status-tl li:last-child::after { display: none; }
.status-tl li.is-done::before { background: var(--brand); border-color: var(--brand); }
.status-tl li.is-now::before { border-color: var(--ok); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 69, .18); }
.status-tl li.is-todo { color: var(--grey); }
.status-tl time { font-size: var(--tiny); color: var(--grey); }
.msg { display: grid; gap: 6px; padding: 14px 16px; background: #fbefee; border-left: 3px solid var(--err); }
.msg time { font-size: var(--tiny); color: var(--grey); }
.demo-tools { border: 1px dashed var(--line-strong); padding: 16px; display: grid; gap: 10px; font-size: var(--small); background: #fff; }
.demo-tools .actions { gap: 8px; }
@media (max-width: 700px) { .portal-head .tag, .portal-head .who > span:not(.avatar) { display: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 50vh; display: grid; align-content: center; }
.nf .lead { margin-top: 16px; }
.nf .actions { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
@media print { .utility, .header, .footer, .draft-badge, .band { display: none; } }
.h4 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
