/* Scholarship Planet public site. Tokens, base, layout, components, pages. No build step. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brand: #81bd00;          /* logo green: fills, with dark text on top */
  --brand-ink: #4e7500;      /* green text and links on light backgrounds (5.4:1) */
  --brand-soft: #eff7dc;
  --on-brand: #0f1a05;
  --gold: #f5b83d;
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-2: #f3f6ec;
  --text: #121a0b;
  --muted: #59624f;
  --border: #e3e8d8;
  --border-strong: #cbd3bc;
  --ink: #0d1408;            /* dark sections */
  --ink-2: #16220c;
  --ink-text: #eef3e4;
  --ink-muted: #a9b59a;
  --ok: #3f6b00; --ok-bg: #edf6dc;
  --warn: #8a5a00; --warn-bg: #fff3d6;
  --bad: #b3261e; --bad-bg: #fdecea;
  --info: #1d4f91; --info-bg: #e8f0fb;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 26, 11, .05), 0 8px 28px -12px rgba(18, 26, 11, .14);
  --shadow-lg: 0 2px 4px rgba(18, 26, 11, .05), 0 24px 48px -20px rgba(18, 26, 11, .28);
  --container: 1200px;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand-ink: #a3d93a;
  --brand-soft: #1b2810;
  --bg: #0a0f06;
  --surface: #111a0b;
  --surface-2: #162210;
  --text: #eef3e4;
  --muted: #a3ae95;
  --border: #243317;
  --border-strong: #34471f;
  --ink: #070b04;
  --ink-2: #0f1709;
  --ok: #a3d93a; --ok-bg: #1b2810;
  --warn: #fcd34d; --warn-bg: #2d2410;
  --bad: #fca5a5; --bad-bg: #2e1517;
  --info: #93c5fd; --info-bg: #13244a;
  --shadow: 0 0 0 1px var(--border);
  --shadow-lg: 0 0 0 1px var(--border-strong), 0 24px 48px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .container { padding-inline: 24px; } }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight { padding: clamp(36px, 5vw, 56px) 0; }
.section--alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-arrow:hover { gap: 10px; }
.link-arrow svg { transition: transform .15s; }

/* ---------- Buttons and inputs ---------- */
.btn { --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px -8px rgba(129, 189, 0, .8); }
.btn--primary:hover { background: #8fcc0a; box-shadow: 0 10px 24px -10px rgba(129, 189, 0, .9); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
:root[data-theme="dark"] .btn--dark { background: var(--surface-2); border-color: var(--border-strong); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn--light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn--light:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); }
input, select, textarea { font: inherit; color: inherit; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: 0; border-color: var(--brand-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.field input[type=file] { padding: 10px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); }
.hint { font-size: .85rem; color: var(--muted); }
.error-text { color: var(--bad); font-size: .88rem; font-weight: 600; margin: 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-ink); flex: none; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 22px; }
.alert--ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.alert--bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 30%, transparent); color: var(--bad); }
.alert--warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }
.alert strong { display: block; }
.alert p { margin: 2px 0 0; color: var(--text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; color: var(--text); text-decoration: none; flex: none; }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.01em; }
.brand-word i { font-style: normal; font-weight: 800; font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--brand-ink); margin-top: 3px; }
.brand-logo--uploaded { height: 48px; width: auto; }
.main-nav { display: none; margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav summary { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav a:hover, .main-nav summary:hover, .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.nav-drop { position: relative; }
.nav-drop .menu { position: absolute; top: calc(100% + 8px); left: -8px; min-width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.nav-drop .menu--grid { grid-template-columns: 1fr 1fr; min-width: 380px; }
.nav-drop .menu a { font-weight: 500; }
.nav-drop .menu .all { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; font-weight: 700; color: var(--brand-ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 8px; }
.header-actions .btn { display: none; }
.theme-ico-sun { display: none; }
:root[data-theme="dark"] .theme-ico-sun { display: inline; }
:root[data-theme="dark"] .theme-ico-moon { display: none; }
@media (min-width: 1040px) {
  .main-nav { display: block; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
}
.mobile-nav { display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 16px 16px 40px; }
body.nav-open { overflow: hidden; }
body.nav-open .mobile-nav { display: block; }
.mobile-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.mobile-nav h3 { font-family: var(--font-sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 24px 0 4px; }
.mobile-nav .chips { margin-top: 8px; }
.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 85% -10%, rgba(129, 189, 0, .32), transparent 60%), radial-gradient(700px 480px at -10% 110%, rgba(245, 184, 61, .14), transparent 60%), var(--ink); color: var(--ink-text); padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 104px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-muted); max-width: 56ch; }
.hero .eyebrow { color: var(--brand); }
.hero-art { position: absolute; right: -140px; top: 50%; width: 640px; max-width: none; transform: translateY(-50%); opacity: .55; pointer-events: none; }
@media (max-width: 899px) { .hero-art { right: -320px; opacity: .25; } }
.hero-inner { position: relative; z-index: 1; }
.hero-search { margin-top: 32px; background: var(--surface); color: var(--text); border-radius: 22px; padding: 8px; display: grid; gap: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); max-width: 900px; }
.hero-search .hs-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 54px; border-radius: 14px; background: var(--surface-2); }
.hero-search .hs-field svg { color: var(--muted); flex: none; }
.hero-search input, .hero-search select { border: 0; background: transparent; width: 100%; min-height: 54px; outline: 0; font-size: 1rem; }
.hero-search .hs-field:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); }
.hero-search .btn { min-height: 54px; border-radius: 14px; padding-inline: 28px; }
@media (min-width: 820px) { .hero-search { grid-template-columns: 1.6fr 1fr 1fr auto; } }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: var(--ink-muted); }
.hero-popular a { color: var(--ink-text); text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); }
.hero-popular a:hover { border-color: var(--brand); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 2.1rem; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .88rem; color: var(--ink-muted); }

/* Page header for inner pages */
.page-hero { background: radial-gradient(700px 380px at 90% -20%, rgba(129, 189, 0, .28), transparent 60%), var(--ink); color: var(--ink-text); padding: 44px 0 48px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .3em; }
.page-hero p { color: var(--ink-muted); max-width: 64ch; margin: 0; font-size: 1.08rem; }
.page-hero .eyebrow { color: var(--brand); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; margin-bottom: 16px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Chips and badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); text-decoration: none; line-height: 1.5; white-space: nowrap; }
a.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip--brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.chip--gold { background: #fff5dc; color: #7a4f00; border-color: transparent; }
:root[data-theme="dark"] .chip--gold { background: #2d2410; color: #fcd34d; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--bad { background: var(--bad-bg); color: var(--bad); }
.badge--muted { background: var(--surface-2); color: var(--muted); }
.flag { font-size: 1.05em; line-height: 1; }

/* ---------- Listing card ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; color: var(--muted); }
.card-top .where { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); min-width: 0; }
.card-top .where span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { font-size: 1.16rem; line-height: 1.3; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:hover { color: var(--brand-ink); }
.card .inst { font-size: .9rem; color: var(--muted); margin: -4px 0 0; }
.card .excerpt { font-size: .93rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .86rem; }
.card-foot .deadline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.card-foot .deadline b { color: var(--text); }
.card.is-expired { opacity: .78; }
.card--feature { background: linear-gradient(160deg, var(--surface), var(--brand-soft)); }
.card .thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--border); }

/* Compact deadline list (closing soon) */
.deadline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.deadline-list li { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .15s, transform .15s; }
.deadline-list li:hover { border-color: var(--brand); transform: translateX(3px); }
.deadline-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.deadline-list a::after { content: ""; position: absolute; inset: 0; }
.deadline-list .when { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; background: var(--ink); color: #fff; line-height: 1; }
.deadline-list .when b { font-family: var(--font-display); font-size: 1.45rem; }
.deadline-list .when span { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; margin-top: 3px; color: var(--brand); }
.deadline-list .sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Home: levels, countries, CTA ---------- */
.level-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .level-grid { grid-template-columns: repeat(4, 1fr); } }
.level-tile { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .18s, border-color .18s, box-shadow .18s; overflow: hidden; }
.level-tile:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); }
.level-tile .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.level-tile strong { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; line-height: 1.2; }
.level-tile span { font-size: .86rem; color: var(--muted); }
.country-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .country-grid { grid-template-columns: repeat(4, 1fr); } }
.country-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.country-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.country-tile .flag { font-size: 1.9rem; }
.country-tile strong { display: block; font-weight: 700; line-height: 1.25; }
.country-tile span { font-size: .84rem; color: var(--muted); }
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); background: radial-gradient(600px 300px at 100% 0, rgba(129, 189, 0, .35), transparent 60%), var(--ink); color: var(--ink-text); display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: var(--ink-muted); margin: 0; max-width: 56ch; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 14px; }
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* Newsletter */
.newsletter { display: grid; gap: 22px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--brand); color: var(--on-brand); }
.newsletter h2 { margin-bottom: .2em; }
.newsletter p { margin: 0; color: #24360a; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type=email] { flex: 1 1 240px; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: #121a0b; }
.newsletter .btn { min-height: 52px; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1.1fr 1fr; } }

/* Blog cards */
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; position: relative; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card .cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--ink), #2c4410); display: grid; place-items: center; color: var(--brand); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { margin: 0; font-size: 1.2rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card .meta { font-size: .84rem; color: var(--muted); }

/* ---------- Find page ---------- */
.finder { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .finder { grid-template-columns: 290px 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.filters > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 700; }
.filters > summary::-webkit-details-marker { display: none; }
.filters .fbody { padding: 4px 20px 20px; display: grid; gap: 18px; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } .filters > summary { pointer-events: none; } .filters > summary .toggle-ico { display: none; } }
.filters .field select, .filters .field input { min-height: 44px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar p b { color: var(--text); }
.results-bar select { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--surface); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.active-filters a:hover { background: var(--brand); color: var(--on-brand); }
.empty-state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state .ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--brand); }
.pagination [aria-current] span, .pagination .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .pagination [aria-current] span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.pagination .disabled span { opacity: .45; }

/* ---------- Listing detail ---------- */
.detail-hero { padding-bottom: 56px; }
.detail-hero .chips { margin-bottom: 18px; }
.detail-hero .chip { background: rgba(255, 255, 255, .08); color: var(--ink-text); border-color: rgba(255, 255, 255, .16); }
.detail-hero .chip--brand { background: var(--brand); color: var(--on-brand); }
.detail-hero h1 { max-width: 26ch; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.detail-hero .inst { color: var(--ink-muted); font-size: 1.08rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.detail-hero .inst span { display: inline-flex; align-items: center; gap: 7px; }
.detail { display: grid; gap: 32px; align-items: start; margin-top: -32px; }
@media (min-width: 1000px) { .detail { grid-template-columns: 1fr 360px; } }
.detail-main { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand-ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--brand); color: var(--muted); }
.prose a { word-break: break-word; }
.prose img { border-radius: 14px; }
.poster { margin: 0 0 28px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.facts { display: grid; gap: 0; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
@media (min-width: 640px) { .facts div:nth-child(odd) { border-right: 1px solid var(--border); } }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.apply-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
@media (min-width: 1000px) { .apply-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; } }
.countdown { text-align: center; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; }
.countdown b { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--brand); }
.countdown span { font-size: .85rem; color: var(--ink-muted); }
.countdown.is-urgent b { color: #ffb4a8; }
.countdown.is-closed { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.countdown.is-closed b { color: var(--bad); font-size: 1.6rem; }
.countdown.is-closed span { color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand-ink); }
.side-note { padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); font-size: .92rem; color: var(--muted); }
.side-note strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--ink); color: var(--ink-muted); padding: 64px 0 28px; font-size: .94rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-word i { color: var(--brand); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .about { margin: 16px 0 20px; max-width: 42ch; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .14); color: #fff; }
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); }

/* Countries page */
.region { margin-bottom: 40px; }
.region h2 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.region h2 span { font-family: var(--font-sans); font-size: .9rem; color: var(--muted); font-weight: 500; }

/* Contact / submit layout */
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 340px; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.4rem; }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.form-section h2 { font-size: 1.25rem; margin-bottom: 4px; }
.form-section > p { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }
.check-grid { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; }
.info-list .ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.info-list strong { display: block; }
.info-list span { color: var(--muted); font-size: .92rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .apply-side .share, .newsletter, .wa-float { display: none !important; } }

/* Flags (self-hosted SVG, 4:3) */
.flag-img { display: inline-block; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); vertical-align: -3px; }
.country-tile .flag-img { border-radius: 6px; }
.flag-img--title { display: inline-block; margin-right: 14px; vertical-align: baseline; border-radius: 5px; }
.nav-drop .menu a .flag-img { margin-right: 4px; }

/* Card thumbnail: listing image, or its flag / level icon on a soft tile */
.card-main { display: flex; gap: 14px; align-items: flex-start; }
.card-text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-thumb { flex: none; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.card-thumb > img:not(.flag-img) { width: 100%; height: 100%; object-fit: cover; }
.card-thumb--plain { background: linear-gradient(145deg, var(--brand-soft), var(--surface-2)); color: var(--brand-ink); }
.card-thumb .flag-img { border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.card.is-expired .card-thumb { filter: saturate(.75); }
@media (max-width: 420px) { .card-thumb { width: 56px; height: 56px; border-radius: 12px; } .card-thumb .flag-img { width: 32px; height: 24px; } }

/* Blog article page: same grid as a listing (article + sidebar), aligned with the site container */
.article-title { max-width: 30ch; font-size: clamp(1.9rem, 3.8vw, 3rem); }
.prose--article { font-size: 1.075rem; line-height: 1.75; }
.prose--article > p:first-child:not(:has(strong, b)) { font-size: 1.16rem; color: var(--muted); }
.prose--article h2, .prose--article h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose ul ul, .prose ol ul { list-style: circle; margin: .35em 0; }
/* WordPress often nests a list as the first thing inside a list item: hide the outer, empty bullet. */
.prose li:has(> ul:first-child, > ol:first-child) { list-style: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.byline { display: flex; align-items: center; gap: 12px; }
.byline__avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 1.1rem; }
.byline strong { display: block; }
.byline span { font-size: .88rem; color: var(--muted); }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; }
.side-box h2 { font-size: 1.15rem; margin-bottom: 12px; }
.side-box--brand { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.side-box--brand p { color: #24360a; font-size: .94rem; }
.side-box--brand input[type=email] { width: 100%; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #121a0b; margin-bottom: 8px; }
.mini-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.mini-list li { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.mini-list a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list a::after { content: ""; position: absolute; inset: 0; }
.mini-list a:hover { color: var(--brand-ink); }
.mini-list .muted { display: block; font-size: .82rem; margin-top: 2px; }
.card-thumb--sm { width: 48px; height: 48px; border-radius: 12px; }

/* Standalone pages (About, legal) */
.page-lead { color: var(--ink-muted); font-size: 1.15rem; max-width: 60ch; margin: 0 0 14px; }
.page-hero--about { background: radial-gradient(800px 420px at 92% -10%, rgba(129, 189, 0, .38), transparent 60%), radial-gradient(600px 380px at 0% 120%, rgba(245, 184, 61, .16), transparent 60%), var(--ink); }
.page-section-title { font-size: 1.6rem; margin-bottom: .6em; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc li a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .93rem; border-left: 3px solid transparent; }
.toc li a:hover { background: var(--brand-soft); color: var(--brand-ink); border-left-color: var(--brand); }
.toc .toc--3 a { padding-left: 24px; font-size: .88rem; color: var(--muted); }
.quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quick-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.quick-links a svg { color: var(--brand-ink); }
.quick-links a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.stat-band { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
@media (min-width: 900px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-band div { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 3px solid var(--brand); }
.stat-band b { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; }
.stat-band span { color: var(--muted); font-size: .92rem; }
.feature-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }
.prose h2[id], .prose h3[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
