/* =========================================================================
   AIpályázó — design system (2026-10)
   One stylesheet for every public page, the auth pages, the legal pages and
   the generated call pages. The portal loads it too and adds portal.css.
   Look: a public register, not a startup landing page — left-aligned,
   ruled rows, monospaced codes and figures, one signal colour for deadlines.
   Type: IBM Plex Sans + IBM Plex Mono, self-hosted (SIL OFL, see fonts/OFL.txt).
   ========================================================================= */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- tokens ---------- */
/* Light only: the site is a daily work tool, and a dark page on a Mac in
   dark mode read as "heavy". Friendly green, soft grey surfaces, rounded cards. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f6f8f7;
  --surface-2: #eef2f0;
  --line: #e3e8e5;
  --line-strong: #c9d1cc;
  --ink: #17202a;          /* 15.9:1 */
  --ink-2: #4b5563;        /* 7.6:1 */
  --ink-3: #5b6572;        /* 5.9:1 */
  --brand: #12844a;        /* 4.75:1 on white; white text on it 4.75:1 */
  --brand-strong: #0e6d3c;
  --brand-tint: #e9f6ee;
  --brand-soft: #f3faf6;
  --on-brand: #ffffff;
  --signal: #b45309;       /* deadlines, 5.0:1 */
  --signal-tint: #fff4e5;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --info: #1d5fb8;
  --info-tint: #eaf2fc;
  --focus: #1d5fd1;
  --rail: #ffffff;
  --on-rail: #17202a;
  --on-rail-2: #5b6572;
  --shadow: 0 1px 2px rgba(23, 32, 42, .05), 0 1px 1px rgba(23, 32, 42, .03);
  --shadow-lg: 0 8px 24px rgba(23, 32, 42, .08);

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: var(--sans);

  --r: 8px;
  --r-lg: 12px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 var(--s4); }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.mono, code, kbd { font-family: var(--mono); font-feature-settings: 'zero' 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
@media (min-width: 768px) { .wrap { padding: 0 var(--s6); } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 1000; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- type scale ---------- */
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-3); text-transform: uppercase; }
.h-display { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 600; }
.h-1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; }
.h-2 { font-size: clamp(22px, 2.6vw, 28px); }
.h-3 { font-size: 19px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s3); }
.site-head .wrap:first-child { min-height: 64px; }
.site-head .wrap:has(.mobile-nav) { display: block; }
@media (min-width: 900px) { .site-head .wrap:first-child { gap: var(--s5); } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand b { font-weight: 700; color: var(--brand); }
.site-nav { display: none; gap: var(--s5); margin-left: var(--s4); }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.head-actions { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
@media (min-width: 900px) { .site-nav { display: flex; } }
.head-menu { display: inline-flex; width: 44px; padding: 0; }
.head-menu svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .head-menu.btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: var(--s3) 0 var(--s4); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); touch-action: manipulation; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn-quiet:hover { color: var(--ink); background: var(--surface); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field > label, .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--sans);
}
.field textarea, .textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); outline-offset: 0; border-color: var(--focus); }
.field .error, .form-error { color: var(--danger); font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }

/* ---------- notices ---------- */
.notice { border-left: 3px solid var(--line-strong); background: var(--surface); padding: var(--s3) var(--s4); border-radius: 0 var(--r) var(--r) 0; font-size: 15px; }
.notice.warn { border-color: var(--signal); background: var(--signal-tint); }
.notice.ok { border-color: var(--brand); background: var(--brand-tint); }
.notice.err { border-color: var(--danger); background: var(--danger-tint); }
.notice.info { border-color: var(--info); background: var(--info-tint); }

/* ---------- labels (not pills) ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1.2 var(--mono); color: var(--ink-2); padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); white-space: nowrap; }
.tag.brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.tag.signal { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); }
.tag.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- register (the core list look) ---------- */
.register { border-top: 2px solid var(--ink); }
.register-row { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .register-row { grid-template-columns: minmax(0, 1fr) 190px 150px; align-items: baseline; } }
.register-row h3, .register-row .title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.register-row a.title { color: var(--ink); text-decoration: none; }
.register-row a.title:hover { color: var(--brand); text-decoration: underline; }
.register-meta { font: 400 13.5px/1.5 var(--mono); color: var(--ink-3); }
.register-amount { font-size: 15px; color: var(--ink-2); }
.register-deadline { font: 500 14px/1.4 var(--mono); color: var(--ink); }
.register-deadline.soon { color: var(--signal); }

/* checks (✓ ✗ ?) */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 28px 150px minmax(0,1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; align-items: baseline; }
.checks .mark { font: 600 15px/1 var(--mono); }
.checks .ok .mark { color: var(--brand); }
.checks .fail .mark { color: var(--danger); }
.checks .unknown .mark, .checks .warn .mark { color: var(--signal); }
.checks .what { font-weight: 600; }
.checks .why { color: var(--ink-2); }
@media (max-width: 560px) { .checks li { grid-template-columns: 28px minmax(0,1fr); } .checks .why { grid-column: 2; } }

/* stamp: where a fact comes from */
.stamp { display: inline-flex; gap: 10px; align-items: center; font: 400 13px/1.3 var(--mono); color: var(--ink-3); border: 1px dashed var(--line-strong); padding: 6px 10px; border-radius: var(--r); }
.stamp b { color: var(--brand); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: var(--s8) 0; border-top: 1px solid var(--line); }
.section.tight { padding: var(--s7) 0; }
.section-head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: 760px; }
.grid-2 { display: grid; gap: var(--s6); }
.grid-3 { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; }
.numbered > li { counter-increment: n; border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.numbered > li::before { content: counter(n, decimal-leading-zero); font: 500 14px/1 var(--mono); color: var(--brand); display: block; margin-bottom: var(--s3); }
.numbered h3 { font-size: 19px; margin-bottom: var(--s2); }
.numbered p { color: var(--ink-2); font-size: 15.5px; }

/* figures row */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.figure { padding: var(--s4) var(--s4) var(--s4) 0; }
.figure + .figure { padding-left: var(--s4); border-left: 1px solid var(--line); }
@media (max-width: 759px) { .figure:nth-child(3) { border-left: 0; padding-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
.figure .v { font: 500 clamp(26px, 3vw, 34px)/1.1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.figure .k { font-size: 14px; color: var(--ink-3); margin-top: 6px; }

/* panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 20px/1 var(--mono); color: var(--ink-3); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 var(--s4); color: var(--ink-2); max-width: 70ch; }

/* ---------- footer ---------- */
.site-foot { background: var(--rail); color: var(--on-rail); padding: var(--s7) 0 var(--s6); margin-top: var(--s8); }
.site-foot a { color: var(--on-rail); }
.site-foot .cols { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .site-foot .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-foot h4 { font: 500 13px/1.4 var(--mono); text-transform: uppercase; color: var(--on-rail-2); margin-bottom: var(--s3); letter-spacing: .02em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-foot p { color: var(--on-rail-2); font-size: 14.5px; max-width: 46ch; }
.site-foot .legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid color-mix(in srgb, var(--on-rail) 18%, transparent); font-size: 13.5px; color: var(--on-rail-2); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot .brand { color: var(--on-rail); }
.site-foot .brand b { color: #4cc58a; }

/* ---------- document pages (legal, auth) ---------- */
.doc { max-width: 760px; padding: var(--s7) 0 var(--s8); }
.doc h1 { margin-bottom: var(--s3); }
.doc h2 { font-size: 21px; margin: var(--s6) 0 var(--s3); }
.doc h3 { font-size: 17px; margin: var(--s5) 0 var(--s2); }
.doc p, .doc li { color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin: var(--s3) 0 var(--s5); font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { width: 34%; color: var(--ink-3); font-weight: 500; }
.doc .table-wrap { overflow-x: auto; }
.auth { min-height: calc(100dvh - 65px); display: grid; align-items: start; padding: var(--s7) 0; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 28px; margin-bottom: var(--s2); }
.auth-card .lede { font-size: 16px; margin-bottom: var(--s5); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 14px; margin: var(--s4) 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* grids never let a long select or word widen the page */
.hero-grid > *, .grid-2 > *, .grid-3 > *, .free-grid > *, .example > * { min-width: 0; }
select { max-width: 100%; }

/* utility */
.stack > * + * { margin-top: var(--s4); }
.row { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.hide-sm { display: none; } @media (min-width: 760px) { .hide-sm { display: initial; } .btn.hide-sm { display: inline-flex; } }
.break { overflow-wrap: anywhere; }

/* small screens */
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
  .btn-sm { padding: 6px 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 24px; height: 24px; }
  .site-head .wrap:first-child { min-height: 56px; }
}
.register-amount { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================================
   Friendly layer (2026-10b): the previous site's light, green, card-based
   look, kept calm — no gradients, no emoji, one accent colour.
   ========================================================================= */
.mono, code, kbd { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .04em; color: var(--brand); text-transform: uppercase; }
.h-display { font-weight: 700; letter-spacing: -0.03em; }
.h-1, .h-2 { font-weight: 700; }
.site-head { background: #fff; backdrop-filter: none; }
.btn { border-radius: var(--r); }
.btn-primary { box-shadow: 0 1px 2px rgba(18,132,74,.25); }
.btn-ghost { border-color: var(--line-strong); background: #fff; }
.tag { font: 500 13px/1.2 var(--sans); border-radius: 6px; padding: 4px 9px; border-color: transparent; background: var(--surface-2); color: var(--ink-2); }
.tag.brand { background: var(--brand-tint); color: var(--brand-strong); border-color: transparent; }
.tag.signal { background: var(--signal-tint); color: var(--signal); border-color: transparent; }
.tag.danger { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
.notice { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r); }
.stamp { font: 400 13.5px/1.4 var(--sans); border: 0; background: var(--surface); padding: 6px 12px; }

/* list of calls: cards instead of ruled rows */
.register { border-top: 0; display: grid; gap: 12px; }
.register-row { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); box-shadow: var(--shadow); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.register-row:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-lg); }
.register-meta { font: 400 14px/1.5 var(--sans); }
.register-deadline { font: 600 14.5px/1.4 var(--sans); }

/* eligibility checks: coloured round marks */
.checks { border-top: 0; }
.checks li { border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .mark { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font: 700 13px/1 var(--sans); background: var(--surface-2); color: var(--ink-3); }
.checks .ok .mark { background: var(--brand-tint); color: var(--brand); }
.checks .fail .mark { background: var(--danger-tint); color: var(--danger); }
.checks .unknown .mark, .checks .warn .mark { background: var(--signal-tint); color: var(--signal); }

/* sections */
.section { border-top: 0; }
.section.alt { background: var(--surface); }
.numbered > li { border-top: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }
.numbered > li::before { content: counter(n); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 15px/34px var(--sans); text-align: center; margin-bottom: var(--s3); }

/* figures: soft stat cards */
.figures { border: 0; gap: 12px; }
.figure, .figure + .figure { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); box-shadow: var(--shadow); }
@media (max-width: 759px) { .figure:nth-child(3) { border-left: 1px solid var(--line); padding-left: var(--s5); } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
.figure .v { font: 700 clamp(26px, 3vw, 32px)/1.1 var(--sans); color: var(--ink); }
.panel { background: #fff; box-shadow: var(--shadow); border-radius: var(--r-lg); }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 var(--s5); }
.faq details:last-child { border-bottom: 0; }
.faq summary::after { font: 400 22px/1 var(--sans); color: var(--brand); }

/* light footer */
.site-foot { background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.site-foot h4 { font: 600 13px/1.4 var(--sans); color: var(--ink); letter-spacing: .02em; }
.site-foot p, .site-foot .legal { color: var(--ink-3); }
.site-foot .legal { border-top-color: var(--line); }
.site-foot .brand { color: var(--ink); }
.site-foot .brand b { color: var(--brand); }

/* auth pages: the form sits on a card */
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6) var(--s5); box-shadow: var(--shadow-lg); justify-self: center; }
.auth { background: var(--surface); }
@media (max-width: 560px) { .figure .v { font-size: 22px; white-space: nowrap; } .figure, .figure + .figure { padding: var(--s3) var(--s4); } }

/* =========================================================================
   Grant card (shared: portal, home, public list) — issuer tag, badges,
   budget bar and deadline bar. Markup comes from lib/cards.js.
   ========================================================================= */
.gcard { position: relative; display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.gcard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 10px 28px rgba(18, 132, 74, .10); transform: translateY(-1px); }
.gcard.apply { border-left: 4px solid var(--brand); padding-left: 17px; }
.gc-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .gc-head { grid-template-columns: 48px minmax(0, 1fr) 230px; } }
.src-tag { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--sans); letter-spacing: -.01em; background: var(--brand-tint); color: var(--brand-strong); }
.src-tag.eu { background: var(--info-tint); color: var(--info); }
.src-tag.fin { background: var(--signal-tint); color: var(--signal); }
.gc-title { display: block; font: 700 17px/1.35 var(--sans); color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.gc-title:hover { color: var(--brand); }
.gc-title::after { content: ''; position: absolute; inset: 0; border-radius: 14px; } /* whole card clickable */
.gc-sub { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; font: 600 12.5px/1 var(--sans); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.green { background: var(--brand-tint); color: var(--brand-strong); }
.badge.new { background: var(--brand); color: #fff; }
.badge.amber { background: var(--signal-tint); color: var(--signal); }
.badge.red { background: var(--danger-tint); color: var(--danger); }
.badge.blue { background: var(--info-tint); color: var(--info); }
.gc-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
@media (min-width: 900px) { .gc-side { grid-column: auto; display: block; text-align: right; padding-right: 52px; } }
.gc-amt-label { font: 600 11.5px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.gc-amt { font: 700 17px/1.3 var(--sans); color: var(--brand-strong); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-fit { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 600 13.5px/1.2 var(--sans); color: var(--ink-2); }
.gc-fit .sc { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--surface-2); font: 700 14px/1 var(--sans); }
.gc-fit.apply { color: var(--brand-strong); } .gc-fit.apply .sc { background: var(--brand); color: #fff; }
.gc-fit.review .sc { background: var(--signal-tint); color: var(--signal); }
.gcard .bm { position: absolute; top: 16px; right: 16px; z-index: 2; background: #fff; }
.gcard:has(.bm) .gc-main { padding-right: 52px; }
@media (min-width: 900px) { .gcard .gc-main { padding-right: 0; } }
.gbars { display: grid; gap: 12px 28px; }
@media (min-width: 700px) { .gbars { grid-template-columns: 1fr 1fr; } .gbars.one { grid-template-columns: 1fr; } }
.gbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.gbar-top b { font-weight: 700; font-size: 14px; color: var(--ink); text-align: right; }
.gbar-top b.green { color: var(--brand-strong); } .gbar-top b.amber { color: var(--signal); } .gbar-top b.red { color: var(--danger); }
.gbar-top .of { font-weight: 500; color: var(--ink-3); }
.track { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }
.track i.amber { background: #d97706; } .track i.red { background: var(--danger); } .track i.soft { background: color-mix(in srgb, var(--brand) 35%, #fff); }
.gcard .marks { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 13px/1.6 var(--sans); padding-top: 12px; border-top: 1px solid var(--line); }
.gcard .marks .ok { color: var(--brand); } .gcard .marks .fail { color: var(--danger); } .gcard .marks .unknown, .gcard .marks .warn { color: var(--signal); }
.gcards { display: grid; gap: 14px; }

/* the loud search */
.bigsearch { background: linear-gradient(0deg, #fff, #fff); border: 2px solid var(--brand); border-radius: 16px; padding: 18px; box-shadow: 0 10px 30px rgba(18, 132, 74, .12); margin-bottom: var(--s5); }
.bigsearch h2 { font-size: 18px; margin: 0 0 10px; }
.bigsearch form { display: flex; gap: 10px; align-items: stretch; }
.bigsearch .inp { position: relative; flex: 1; min-width: 0; }
.bigsearch .inp svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); stroke: var(--brand); fill: none; stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.bigsearch input { width: 100%; min-height: 58px; padding: 12px 16px 12px 50px; border: 1px solid var(--line-strong); border-radius: 12px; font: 500 17px/1.3 var(--sans); color: var(--ink); background: var(--brand-soft); }
.bigsearch input:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); background: #fff; }
.bigsearch .btn { min-height: 58px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }
.bigsearch .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bigsearch .chips button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); background: #fff; color: var(--brand-strong); font: 600 14px/1 var(--sans); cursor: pointer; }
.bigsearch .chips button:hover { background: var(--brand-tint); }
.bigsearch .hint { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 560px) { .bigsearch form { flex-direction: column; } .bigsearch input { min-height: 54px; font-size: 16px; } }
.catpills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.catpills button { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.catpills button .n { font-weight: 600; font-size: 12px; background: var(--surface-2); color: var(--ink-3); padding: 3px 7px; border-radius: 999px; }
.catpills button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.catpills button[aria-pressed="true"] .n { background: rgba(255,255,255,.22); color: #fff; }
@media (max-width: 700px) {
  .bigsearch .chips, .catpills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -4px; margin-right: -4px; padding: 2px 4px 4px; }
  .bigsearch .chips::-webkit-scrollbar, .catpills::-webkit-scrollbar { display: none; }
  .bigsearch .chips button, .catpills button { flex: none; }
  .bigsearch .hint { display: none; }
  .bigsearch { padding: 14px; }
}
.gcard:not(:has(.bm)) .gc-side { padding-right: 0; }

.track i.p0{width:0%}.track i.p5{width:5%}.track i.p10{width:10%}.track i.p15{width:15%}.track i.p20{width:20%}.track i.p25{width:25%}.track i.p30{width:30%}.track i.p35{width:35%}.track i.p40{width:40%}.track i.p45{width:45%}.track i.p50{width:50%}.track i.p55{width:55%}.track i.p60{width:60%}.track i.p65{width:65%}.track i.p70{width:70%}.track i.p75{width:75%}.track i.p80{width:80%}.track i.p85{width:85%}.track i.p90{width:90%}.track i.p95{width:95%}.track i.p100{width:100%}
@media (max-width: 560px) { .gcard { padding: 16px; } .gcard.apply { padding-left: 13px; } .gc-head { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; } .src-tag { width: 40px; height: 40px; font-size: 12px; border-radius: 10px; } .gc-title { font-size: 16px; } }

/* search panel: solid brand colour so it is the first thing the eye lands on */
.bigsearch { background: var(--brand); border: 0; color: #fff; padding: 22px; box-shadow: 0 14px 34px rgba(18, 132, 74, .28); }
.bigsearch h2 { color: #fff; font-size: 20px; }
.bigsearch input { background: #fff; border: 2px solid #fff; color: var(--ink); }
.bigsearch input:focus { outline: 3px solid rgba(255,255,255,.55); outline-offset: 2px; border-color: #fff; }
.bigsearch .btn-primary, .bigsearch .btn { background: #0b5a31; color: #fff; box-shadow: none; }
.bigsearch .btn:hover { background: #084726; color: #fff; }
.bigsearch .chips button, .bigsearch .filters button { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: #fff; }
.bigsearch .chips button:hover, .bigsearch .filters button:hover { background: rgba(255,255,255,.26); }
.bigsearch .filters button[aria-pressed="true"] { background: #fff; color: var(--brand-strong); border-color: #fff; }
.bigsearch .hint { color: rgba(255,255,255,.85); }
