/* ===================================================================
   Yesekelo Group — Programme site
   ===================================================================

   COLOUR AND CONTRAST NOTES (please read before changing colours)

   The brand navy and orange are unchanged. Three accessibility fixes
   were needed to reach WCAG 2.1 AA (4.5:1 for body text), because the
   applicants using this site include older users reading small text on
   phone screens in bright sunlight:

   1. --slate (#6A90AC in the original) measured 3.39:1 on white and
      4.26:1 on navy — failing in both directions at once. It is split
      into two variables that move opposite ways:
         --slate-dark  #4E7389  on white 5.08:1, on mist 4.51:1
         --slate-light #8FB0C7  on navy  6.33:1, on card 5.55:1

   2. White text on the brand orange measured 2.35:1. Rather than
      change the brand colour, primary buttons now use NAVY text on
      orange, which measures 6.14:1. The brand orange is untouched.

   3. Small orange text on white (#E86B1A, 3.21:1) is replaced by
      --orange-text #B85009 at 5.01:1 for labels and inline links.

   Smallest type is 12px. The original had 9.5px and 10px labels.
   =================================================================== */

:root {
  --navy:#1B2B3A;
  --card:#243447;
  --deep:#16232F;
  --orange:#F6901E;        /* brand — unchanged */
  --orange2:#E86B1A;       /* brand accent — decorative use only */
  --orange-text:#B85009;   /* accessible orange for small text on white */
  --slate-dark:#4E7389;    /* secondary text on light backgrounds */
  --slate-light:#8FB0C7;   /* secondary text on dark backgrounds */
  --mist:#EEF2F6;
  --line:#D5DDE5;
  --soft:#CDDBE6;
  --body:#37474F;
  --error:#B3261E;
  --error-bg:#FCEEEC;
  --ok:#2E6B33;
  --ok-bg:#E9F3E7;
  --warn:#8A5A00;
  --warn-bg:#FCF3E0;
  --focus:#1B6FB8;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--navy);
  line-height:1.6;
  background:#fff;
  font-size:16px;
}

.wrap { max-width:1080px; margin:0 auto; padding:0 22px; }
.wrap-narrow { max-width:780px; margin:0 auto; padding:0 22px; }
a { color:inherit; }
img { max-width:100%; height:auto; }

/* Visible keyboard focus everywhere. */
:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:2px;
  border-radius:4px;
}

/* Skip link for screen reader and keyboard users. */
.skip {
  position:absolute; left:-9999px; top:0;
  background:var(--navy); color:#fff; padding:12px 18px;
  z-index:100; text-decoration:none; font-weight:700;
}
.skip:focus { left:8px; top:8px; }

.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;
}

/* ---------------- top bar ---------------- */
.topbar { background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.topbar .wrap { display:flex; align-items:center; justify-content:space-between; min-height:64px; gap:16px; }
.topbar .brand { display:flex; align-items:center; gap:14px; text-decoration:none; }
.topbar img { height:34px; width:auto; }
.topbar nav { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.topbar nav a {
  text-decoration:none; font-size:14px; font-weight:600; color:var(--navy);
  padding:9px 11px; border-radius:7px;
}
.topbar nav a:hover { background:var(--mist); }
.topbar nav a[aria-current="page"] { background:var(--mist); color:var(--orange-text); }
.topbar .cta {
  background:var(--orange); color:var(--navy); text-decoration:none; font-weight:800;
  padding:10px 18px; border-radius:8px; font-size:14px; white-space:nowrap;
}
.topbar .cta:hover { background:#E5851A; }

/* ---------------- hero ---------------- */
.hero { background:var(--navy); color:#fff; position:relative; overflow:hidden; }
.hero .wrap { padding:64px 22px 60px; position:relative; z-index:2; }
.ring { position:absolute; border-radius:50%; border:1.5px solid rgba(246,144,30,.18); z-index:1; }
.eyebrow { color:var(--orange); font-weight:800; letter-spacing:3px; font-size:13px; text-transform:uppercase; }
.hero h1 { font-size:46px; line-height:1.08; font-weight:800; margin:14px 0 12px; letter-spacing:-.5px; }
.hero p.lead { font-size:18px; color:#D5E0EA; max-width:680px; }

.stats {
  display:flex; flex-wrap:wrap; gap:0; margin-top:34px;
  border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14);
}
.stat { flex:1; min-width:130px; padding:16px 10px 16px 0; }
.stat .n { font-size:26px; font-weight:800; color:var(--orange); }
.stat .l { font-size:12px; letter-spacing:1.2px; color:var(--slate-light); text-transform:uppercase; margin-top:3px; }

.apply-row { margin-top:30px; display:flex; gap:12px; flex-wrap:wrap; }
.btn {
  display:inline-block; text-decoration:none; font-weight:700;
  padding:14px 24px; border-radius:9px; font-size:15px;
  border:none; cursor:pointer; font-family:inherit; text-align:center;
  min-height:48px; line-height:1.3;
}
/* Navy on orange = 6.14:1. Do not change to white text. */
.btn.primary { background:var(--orange); color:var(--navy); }
.btn.primary:hover { background:#E5851A; }
.btn.ghost { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.55); }
.btn.ghost:hover { background:rgba(255,255,255,.1); }
.btn.dark { background:var(--navy); color:#fff; }
.btn.dark:hover { background:#24384A; }
.btn.quiet { background:var(--mist); color:var(--navy); border:1px solid var(--line); }
.btn.quiet:hover { background:#E2E9EF; }
.btn[disabled], .btn[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }

.window { margin-top:16px; font-size:14px; color:var(--slate-light); }
.window b { color:#fff; }

/* window state banner */
.notice-bar { padding:14px 0; font-size:14.5px; font-weight:600; }
.notice-bar.open   { background:var(--ok-bg);   color:var(--ok);   border-bottom:1px solid #C6DEC3; }
.notice-bar.before { background:var(--warn-bg); color:var(--warn); border-bottom:1px solid #EFDDB4; }
.notice-bar.closed { background:var(--error-bg);color:var(--error);border-bottom:1px solid #F0CFCB; }
.notice-bar.preview{ background:var(--navy);    color:#fff; }

/* ---------------- sections ---------------- */
section { padding:56px 0; }
.sec-head { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.sec-head .bar { width:34px; height:4px; background:var(--orange); border-radius:2px; flex:none; }
.sec-head h2 { font-size:28px; font-weight:800; letter-spacing:-.3px; }
.intro { font-size:16px; color:var(--body); max-width:760px; margin-bottom:14px; }
h1.page-title { font-size:34px; font-weight:800; letter-spacing:-.4px; margin-bottom:10px; }

/* ---------------- stream cards ---------------- */
.streams { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.stream { border:1px solid var(--line); border-radius:14px; overflow:hidden; display:flex; flex-direction:column; }
.stream .top { background:var(--navy); color:#fff; padding:22px 22px 18px; }
.stream .top .k { color:var(--orange); font-weight:800; font-size:12px; letter-spacing:1.5px; text-transform:uppercase; }
.stream .top h3 { font-size:22px; margin:6px 0 4px; font-weight:800; }
.stream .top p { font-size:14px; color:#CBD9E6; }
.stream .body { padding:20px 22px; flex:1; }
.lbl { font-size:12px; font-weight:800; letter-spacing:.8px; text-transform:uppercase; color:var(--orange-text); margin:4px 0 8px; }

ul.ticks { list-style:none; margin-bottom:18px; }
ul.ticks li { position:relative; padding-left:22px; margin-bottom:7px; font-size:14.5px; }
ul.ticks li::before { content:''; position:absolute; left:0; top:9px; width:8px; height:8px; border-radius:50%; background:var(--orange); }

.mod { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--mist); }
.mod:last-child { border-bottom:none; }
.modn {
  background:var(--orange); color:var(--navy); font-weight:800; font-size:12px;
  width:23px; height:23px; border-radius:5px;
  display:flex; align-items:center; justify-content:center; flex:none;
}
.modb { flex:1; }
.modt { font-size:14px; font-weight:600; line-height:1.3; }
.modd { font-size:12px; color:var(--slate-dark); }
.tag { font-size:11px; font-weight:700; letter-spacing:.3px; padding:4px 9px; border-radius:10px; flex:none; white-space:nowrap; }
.tag.acc { background:#D6E6D2; color:#2E5526; }
.tag.wsh { background:#FCE9C7; color:#7A5309; }
.accnote { font-size:12.5px; color:var(--slate-dark); margin-top:12px; line-height:1.55; }
.stream .foot { padding:16px 22px 22px; }
.stream .foot .btn { display:block; width:100%; }

/* ---------------- bands and panels ---------------- */
.band { background:var(--mist); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px; }
.panel h4 { font-size:17px; margin-bottom:12px; }
.panel ul { list-style:none; }
.panel ul li { position:relative; padding-left:20px; margin-bottom:8px; font-size:14.5px; }
.panel ul li::before { content:''; position:absolute; left:0; top:9px; width:7px; height:7px; border-radius:50%; background:var(--orange); }

.callout { background:var(--card); color:#fff; border-radius:11px; padding:18px 20px; font-size:14.5px; margin-top:22px; }
.callout b { color:var(--orange); }
.callout a { color:var(--orange); }

/* Reuses the short orange bar from .sec-head rather than introducing a
   second callout pattern — the design already has .callout for emphasis. */
.info-box { background:var(--mist); border-radius:10px; padding:18px 20px; margin:20px 0; font-size:14.5px; }
.info-box h4 { font-size:15px; margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.info-box h4::before { content:''; width:26px; height:3px; background:var(--orange); border-radius:2px; flex:none; }

/* ---------------- steps ---------------- */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.step { border:1px solid var(--line); border-radius:12px; padding:20px; }
.step .s {
  background:var(--orange); color:var(--navy); font-weight:800; width:32px; height:32px; border-radius:7px;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px; font-size:15px;
}
.step h4 { font-size:15.5px; margin-bottom:5px; }
.step p { font-size:14px; color:var(--body); }

/* ---------------- download cards ---------------- */
.downloads { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:8px; }
.dl {
  display:flex; gap:14px; align-items:flex-start;
  border:1px solid var(--line); border-radius:12px; padding:18px; background:#fff;
  text-decoration:none;
}
.dl:hover { border-color:var(--orange); background:#FFFCF7; }
.dl .ico {
  flex:none; width:42px; height:42px; border-radius:9px; background:var(--mist);
  display:flex; align-items:center; justify-content:center; font-size:19px;
}
.dl .t { font-weight:700; font-size:15px; }
.dl .m { font-size:12.5px; color:var(--slate-dark); margin-top:3px; }

/* ---------------- forms ---------------- */
.form-shell { max-width:820px; margin:0 auto; padding:0 22px; }
.form-intro { background:var(--mist); border-radius:12px; padding:20px 22px; margin-bottom:28px; font-size:14.5px; }
.form-intro ul { margin:10px 0 0 20px; }
.form-intro li { margin-bottom:5px; }

fieldset { border:none; margin-bottom:34px; }
legend { display:block; width:100%; }
.fs-head { display:flex; align-items:center; gap:12px; padding-bottom:10px; border-bottom:2px solid var(--mist); margin-bottom:20px; }
.fs-num {
  background:var(--navy); color:#fff; font-weight:800; font-size:13px;
  width:27px; height:27px; border-radius:6px; flex:none;
  display:flex; align-items:center; justify-content:center;
}
.fs-title { font-size:19px; font-weight:800; }
.fs-help { font-size:14px; color:var(--body); margin:-8px 0 20px; }

.row { display:grid; grid-template-columns:1fr 1fr; gap:0 20px; }
.f { margin-bottom:20px; }
.f.full { grid-column:1 / -1; }

/* Two fields side by side rarely have labels and help text of the same
   height — "CIPC registration number" carries a hint, "Date established"
   does not. Without this the two inputs sit at different heights and the
   row looks broken. Each cell becomes a column and the control is pushed
   to the bottom, so the inputs line up whatever the label does. */
.row > .f { display:flex; flex-direction:column; }
.row > .f > input,
.row > .f > textarea,
.row > .f > select,
.row > .f > .choices,
.row > .f > .filebox { margin-top:auto; }

.f > label, .f .q {
  display:block; font-weight:600; font-size:14.5px; margin-bottom:7px; line-height:1.45;
}
.req { color:var(--error); font-weight:700; margin-left:2px; }
.opt { color:var(--slate-dark); font-weight:400; font-size:13px; }
.help { font-size:13px; color:var(--slate-dark); margin-bottom:8px; line-height:1.5; }

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], input[type=password], textarea, select {
  width:100%; font-family:inherit; font-size:16px; color:var(--navy);
  padding:12px 13px; border:1.5px solid var(--line); border-radius:8px;
  background:#fff; min-height:48px;
}
textarea { min-height:96px; resize:vertical; line-height:1.55; }
input:hover, textarea:hover, select:hover { border-color:#B9C6D2; }
input:focus, textarea:focus, select:focus { border-color:var(--focus); outline:2px solid var(--focus); outline-offset:0; }
input::placeholder, textarea::placeholder { color:#8A9AA8; }

/* choice lists */
.choices { display:flex; flex-direction:column; gap:2px; }
.choices.inline { flex-direction:row; flex-wrap:wrap; gap:8px; }
.choice {
  display:flex; align-items:flex-start; gap:11px;
  padding:12px 14px; border:1.5px solid var(--line); border-radius:8px;
  cursor:pointer; font-size:14.5px; background:#fff; min-height:48px;
}
.choices.inline .choice { flex:0 1 auto; min-width:120px; }
.choice:hover { border-color:#B9C6D2; background:#FAFCFD; }
.choice input { width:20px; height:20px; margin:1px 0 0; flex:none; accent-color:var(--orange-text); }
.choice.checked { border-color:var(--orange); background:#FFFAF3; }
.choice span { line-height:1.45; }

/* file inputs */
.filebox { border:1.5px dashed var(--line); border-radius:10px; padding:16px; background:#FAFCFD; }
.filebox input[type=file] {
  width:100%; font-family:inherit; font-size:14.5px; padding:10px 0;
  min-height:48px; color:var(--navy);
}
.filebox input[type=file]::file-selector-button {
  font-family:inherit; font-size:14px; font-weight:700;
  background:var(--navy); color:#fff; border:none;
  padding:11px 16px; border-radius:7px; margin-right:12px; cursor:pointer;
  min-height:44px;
}
.filebox .m { font-size:12.5px; color:var(--slate-dark); margin-top:6px; }

/* validation */
.f.has-error input, .f.has-error textarea, .f.has-error select { border-color:var(--error); }
.f.has-error .choice { border-color:#E3B6B2; }
.err { color:var(--error); font-size:13.5px; font-weight:600; margin-top:6px; display:flex; gap:6px; align-items:flex-start; }
.err::before { content:'!'; flex:none; width:17px; height:17px; border-radius:50%; background:var(--error); color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:2px; }

.alert { border-radius:10px; padding:16px 18px; margin-bottom:24px; font-size:14.5px; }
.alert.error { background:var(--error-bg); border-left:4px solid var(--error); color:#7A1A15; }
.alert.ok    { background:var(--ok-bg);    border-left:4px solid var(--ok);    color:#1E4A22; }
.alert.warn  { background:var(--warn-bg);  border-left:4px solid var(--warn);  color:#6B4600; }
.alert h3 { font-size:15.5px; margin-bottom:6px; }
.alert ul { margin:8px 0 0 20px; }
.alert li { margin-bottom:4px; }
.alert a { color:inherit; font-weight:700; }

.consent-box { background:var(--mist); border-radius:10px; padding:20px; }
.consent-box .choice { background:#fff; }

.form-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:8px; padding-top:22px; border-top:2px solid var(--mist); }
.form-actions .btn { min-width:200px; }
.form-actions .note { font-size:13px; color:var(--slate-dark); flex:1 1 240px; }

.honey { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* progress dots */
.steps-tally { display:flex; gap:6px; align-items:center; font-size:12.5px; color:var(--slate-dark); margin-bottom:6px; }

/* ---------------- reference display ---------------- */
.ref-card { background:var(--navy); color:#fff; border-radius:14px; padding:28px; text-align:center; margin:26px 0; }
.ref-card .k { font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--slate-light); font-weight:700; }
.ref-card .v { font-size:34px; font-weight:800; letter-spacing:2px; margin-top:8px; color:var(--orange); }
.ref-card .m { font-size:13.5px; color:#CBD9E6; margin-top:10px; }

/* ---------------- FAQ ---------------- */
.faq { border-top:1px solid var(--line); }
.faq details { border-bottom:1px solid var(--line); }
.faq summary {
  padding:18px 44px 18px 0; font-weight:700; font-size:16px; cursor:pointer;
  position:relative; list-style:none; min-height:48px;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after {
  content:'+'; position:absolute; right:8px; top:50%; transform:translateY(-50%);
  font-size:24px; font-weight:400; color:var(--orange-text); line-height:1;
}
.faq details[open] summary::after { content:'\2212'; }
.faq .a { padding:0 0 20px; font-size:15px; color:var(--body); max-width:760px; }

/* ---------------- legal / prose pages ---------------- */
.prose { font-size:16px; color:var(--body); }
.prose h2 { font-size:22px; color:var(--navy); margin:32px 0 12px; font-weight:800; }
.prose h3 { font-size:17px; color:var(--navy); margin:24px 0 8px; font-weight:700; }
.prose p { margin-bottom:14px; }
.prose ul, .prose ol { margin:0 0 16px 22px; }
.prose li { margin-bottom:7px; }
.prose strong { color:var(--navy); }
.prose a { color:var(--orange-text); font-weight:600; }
.prose table { width:100%; border-collapse:collapse; margin:16px 0 20px; font-size:14.5px; }
.prose th, .prose td { text-align:left; padding:11px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.prose th { background:var(--mist); font-weight:700; color:var(--navy); }
.updated { font-size:13.5px; color:var(--slate-dark); margin-bottom:8px; }

/* ---------------- footer ---------------- */
.foot-band { background:var(--navy); color:#fff; }
.foot-band .wrap { padding:44px 22px; }
.foot-band h3 { font-size:22px; font-weight:800; margin-bottom:8px; }
.foot-band p { color:#CBD9E6; font-size:14.5px; margin-bottom:5px; }
.foot-band a { color:var(--orange); }
.foot-links { margin-top:22px; display:flex; gap:18px; flex-wrap:wrap; font-size:14px; }
.foot-links a { color:#CBD9E6; text-decoration:underline; }
.foot-links a:hover { color:#fff; }

.partners { display:flex; align-items:stretch; gap:0; margin-top:30px; background:#fff; border-radius:12px; padding:14px 0; flex-wrap:wrap; }
.pcol { flex:1; min-width:140px; text-align:center; padding:10px 12px; border-right:1px solid var(--line); }
.pcol:last-child { border-right:none; }
.pcol .pl { font-size:11px; letter-spacing:1.1px; color:var(--slate-dark); text-transform:uppercase; margin-bottom:9px; font-weight:700; }
.pcol img { max-height:40px; max-width:78%; object-fit:contain; }
.pcol.sponsor img { max-height:54px; }

.legal { text-align:center; font-size:12.5px; color:var(--slate-light); padding:22px; background:var(--deep); line-height:1.7; }
.legal a { color:var(--slate-light); text-decoration:underline; }

/* ===================================================================
   ADMIN
   =================================================================== */
.admin-bar { background:var(--navy); color:#fff; padding:0; position:sticky; top:0; z-index:20; }
.admin-bar .wrap { display:flex; align-items:center; justify-content:space-between; min-height:58px; gap:16px; flex-wrap:wrap; }
.admin-bar .t { font-weight:800; font-size:15.5px; }
.admin-bar .t span { color:var(--orange); }
.admin-bar nav { display:flex; gap:4px; align-items:center; flex-wrap:wrap; }
.admin-bar nav a { color:#CBD9E6; text-decoration:none; font-size:14px; font-weight:600; padding:8px 12px; border-radius:6px; }
.admin-bar nav a:hover { background:rgba(255,255,255,.1); color:#fff; }
.admin-bar nav a[aria-current="page"] { background:var(--orange); color:var(--navy); }

.admin-wrap { max-width:1240px; margin:0 auto; padding:26px 22px 60px; }
.login-shell { max-width:400px; margin:70px auto; padding:0 22px; }
.login-card { border:1px solid var(--line); border-radius:14px; padding:28px; }

.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:14px; margin-bottom:26px; }
.kpi { border:1px solid var(--line); border-radius:11px; padding:16px 18px; }
.kpi .n { font-size:27px; font-weight:800; color:var(--navy); line-height:1.1; }
.kpi .l { font-size:12px; letter-spacing:.8px; text-transform:uppercase; color:var(--slate-dark); font-weight:700; margin-top:5px; }
.kpi.accent { background:var(--navy); border-color:var(--navy); }
.kpi.accent .n { color:var(--orange); }
.kpi.accent .l { color:var(--slate-light); }

.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; margin-bottom:20px; padding:16px; background:var(--mist); border-radius:11px; }
.filters .fg { display:flex; flex-direction:column; gap:5px; }
.filters label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.6px; color:var(--slate-dark); }
.filters input, .filters select { min-height:44px; padding:9px 11px; font-size:14.5px; }
.filters .grow { flex:1 1 200px; }

.tbl-scroll { overflow-x:auto; border:1px solid var(--line); border-radius:11px; }
table.data { width:100%; border-collapse:collapse; font-size:14px; min-width:820px; }
table.data th { background:var(--mist); text-align:left; padding:12px 14px; font-size:12px; text-transform:uppercase; letter-spacing:.7px; color:var(--slate-dark); font-weight:800; white-space:nowrap; border-bottom:1px solid var(--line); }
table.data td { padding:13px 14px; border-bottom:1px solid var(--mist); vertical-align:top; }
table.data tr:last-child td { border-bottom:none; }
table.data tr:hover td { background:#FAFCFD; }
table.data a.ref { font-weight:800; color:var(--orange-text); text-decoration:none; white-space:nowrap; }
table.data a.ref:hover { text-decoration:underline; }

.pill { display:inline-block; font-size:11.5px; font-weight:800; padding:4px 10px; border-radius:11px; white-space:nowrap; letter-spacing:.2px; }
.pill.new         { background:#DDEBF7; color:#12456E; }
.pill.in_review   { background:#FCE9C7; color:#7A5309; }
.pill.incomplete  { background:#F7E2D8; color:#8A3D12; }
.pill.shortlisted { background:#E3DDF7; color:#43308A; }
.pill.accepted    { background:#D6E6D2; color:#2E5526; }
.pill.declined    { background:#EEF2F6; color:#4E7389; }
.pill.withdrawn   { background:#EEF2F6; color:#4E7389; }
.pill.test        { background:var(--navy); color:var(--orange); }
.pill.sme         { background:#DDEBF7; color:#12456E; }
.pill.coop        { background:#E3DDF7; color:#43308A; }
.pill.flag        { background:#FCEEEC; color:#8A211B; }

.detail-grid { display:grid; grid-template-columns:1fr 320px; gap:26px; align-items:start; }
.dcard { border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-bottom:22px; }
.dcard > h3 { background:var(--mist); padding:13px 18px; font-size:14px; text-transform:uppercase; letter-spacing:.8px; color:var(--slate-dark); font-weight:800; }
.dcard .in { padding:18px; }
dl.answers { margin:0; }
dl.answers > div { padding:11px 0; border-bottom:1px solid var(--mist); }
dl.answers > div:last-child { border-bottom:none; }
dl.answers dt { font-size:12.5px; color:var(--slate-dark); font-weight:700; margin-bottom:3px; }
dl.answers dd { margin:0; font-size:15px; }
dl.answers dd.empty { color:#95A5B2; font-style:italic; }
.mono { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:14px; letter-spacing:.4px; }

.doclist { list-style:none; }
.doclist li { display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--mist); }
.doclist li:last-child { border-bottom:none; }
.doclist .n { flex:1; min-width:0; }
.doclist .n b { display:block; font-size:14.5px; word-break:break-word; }
.doclist .n span { font-size:12.5px; color:var(--slate-dark); }
.doclist .missing { color:var(--error); font-weight:700; font-size:14px; }

.sidebar-card { border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:18px; }
.sidebar-card h3 { font-size:13px; text-transform:uppercase; letter-spacing:.8px; color:var(--slate-dark); font-weight:800; margin-bottom:13px; }
.sidebar-card select, .sidebar-card textarea { margin-bottom:12px; }
.sidebar-card .btn { width:100%; }

.pager { display:flex; gap:8px; align-items:center; justify-content:center; margin-top:24px; flex-wrap:wrap; }
.pager a, .pager span { padding:10px 15px; border:1px solid var(--line); border-radius:8px; text-decoration:none; font-size:14px; font-weight:600; min-height:44px; display:flex; align-items:center; }
.pager a:hover { background:var(--mist); }
.pager .cur { background:var(--navy); color:#fff; border-color:var(--navy); }

.empty-state { text-align:center; padding:60px 20px; color:var(--slate-dark); }
.empty-state h3 { font-size:18px; color:var(--navy); margin-bottom:8px; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width:900px) {
  .detail-grid { grid-template-columns:1fr; }
}
@media (max-width:820px) {
  .streams, .grid2, .steps, .downloads { grid-template-columns:1fr; }
  .hero h1 { font-size:32px; }
  .hero .wrap { padding:44px 22px 42px; }
  .stat { min-width:45%; }
  .row { grid-template-columns:1fr; }
  section { padding:40px 0; }
  .sec-head h2 { font-size:23px; }
  h1.page-title { font-size:27px; }
  /* Hide the text links on small screens, but NEVER the Apply button — most
     applicants are on a phone and that is the primary action. Full
     navigation stays available in the footer. */
  .topbar nav a:not(.cta) { display:none; }
  .topbar .wrap { gap:10px; }
  .topbar img { height:30px; }
  .form-actions .btn { width:100%; }
}
@media (max-width:520px) {
  .wrap, .wrap-narrow, .form-shell { padding:0 16px; }
  .ref-card .v { font-size:26px; letter-spacing:1px; }
  .partners { padding:8px 0; }
  .pcol { border-right:none; border-bottom:1px solid var(--line); }
  .pcol:last-child { border-bottom:none; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  * { transition:none !important; animation:none !important; }
}

/* ===================================================================
   PRINT
   =================================================================== */
@media print {
  .topbar, .foot-band, .legal, .notice-bar, .apply-row, .admin-bar, .filters, .pager { display:none !important; }
  body { font-size:11pt; color:#000; }
  .hero { background:#fff !important; color:#000 !important; }
  .hero h1, .hero p.lead { color:#000 !important; }
  a { text-decoration:none; color:#000; }
  .dcard, .panel, .stream { break-inside:avoid; border-color:#999; }
  section { padding:12pt 0; }
}
