/* Funding page only: the checked-on bar, programme cards, the closed-rounds
   table, the small-business fit table, the state box and the scam warning. */

/* ---------- checked-on bar ---------- */
.asof{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 22px;
  background:var(--surface);border:1px solid var(--rule);
  border-left:3px solid var(--patina);
  padding:20px 22px;
}
.asof .eyebrow{flex:0 0 auto;color:var(--patina)}
.asof p:last-child{flex:1 1 380px;font-size:.98rem;line-height:1.55;color:var(--ink-2)}
.asof b{color:var(--ink);font-weight:600}

/* ---------- the short version panel ---------- */
.headline{background:var(--surface-2);border-left:3px solid var(--copper);padding:26px 26px 24px}
.headline .k{
  font-family:var(--f-display);font-size:.72rem;font-weight:700;letter-spacing:.11em;
  text-transform:uppercase;color:var(--copper);margin-bottom:12px;
}
.headline p + p{margin-top:.9em}
.headline p{font-size:.99rem;line-height:1.58;color:var(--ink-2)}
.headline b{color:var(--ink);font-weight:600}

/* ---------- programme cards ---------- */
.progs{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;background:var(--rule);border:1px solid var(--rule);
}
@media (max-width:900px){ .progs{grid-template-columns:1fr} }
/* An odd count would leave a grey half-row; the last card takes the full width. */
.progs .prog:last-child:nth-child(odd){grid-column:1/-1}
@media (max-width:900px){ .progs .prog:last-child:nth-child(odd){grid-column:auto} }

.prog{background:var(--surface);padding:26px 24px;display:flex;flex-direction:column;min-width:0}
.prog .ptop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.prog h3{font-size:1.06rem;line-height:1.28;min-width:0}
.prog .agency{
  margin-top:6px;font-family:var(--f-display);font-size:.78rem;font-weight:500;
  letter-spacing:.02em;color:var(--ink-3);line-height:1.45;
}

.prog .tag{
  flex:0 0 auto;
  font-family:var(--f-display);font-size:.64rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;padding:4px 9px;border-radius:3px;line-height:1.3;
  border:1px solid currentColor;white-space:nowrap;max-width:100%;
}
@media (max-width:560px){
  .prog .ptop{flex-direction:column;align-items:flex-start;gap:9px}
  .prog .tag{white-space:normal}
}
/* the ones a small business can genuinely use today */
.prog .tag.best{color:var(--copper)}
/* open, but a narrower fit */
.prog .tag.good{color:var(--patina)}
/* a dated deadline, close at hand */
.prog .tag.soon{color:var(--steel)}
/* open but almost certainly not for you */
.prog .tag.warn{color:var(--ink-2);background:var(--surface-2)}

.prog dl{margin:16px 0 0;display:flex;flex-direction:column;gap:9px}
.prog dl div{display:grid;grid-template-columns:62px minmax(0,1fr);gap:12px;align-items:baseline}
@media (max-width:460px){ .prog dl div{grid-template-columns:1fr;gap:2px} }
.prog dt{
  font-family:var(--f-display);font-size:.66rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-3);
}
.prog dd{margin:0;font-size:.94rem;line-height:1.5;color:var(--ink-2)}
.prog dd b{color:var(--ink);font-weight:600}

.prog .note{
  margin-top:15px;padding-top:14px;border-top:1px solid var(--rule);
  font-size:.93rem;line-height:1.55;color:var(--ink-2);
}
.prog .note b{color:var(--ink);font-weight:600}
.prog .act{margin-top:auto;padding-top:17px}

.linkout{
  display:inline-flex;align-items:center;gap:7px;
  font-family:var(--f-display);font-size:.8rem;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--copper);text-decoration:none;
  border-bottom:2px solid color-mix(in srgb,var(--copper) 34%,transparent);
  padding-bottom:2px;
}
.linkout:hover{border-bottom-color:var(--copper)}
.linkout::after{content:"\2197";font-weight:600;font-size:.9em}

/* ---------- closed rounds table ---------- */
table.closed{
  width:100%;border-collapse:collapse;
  border:1px solid var(--rule);background:var(--surface);
}
table.closed th,table.closed td{
  text-align:left;padding:14px 15px;border-bottom:1px solid var(--rule);
  font-size:.92rem;line-height:1.5;vertical-align:top;
}
table.closed thead th{
  font-family:var(--f-display);font-size:.68rem;font-weight:700;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-3);background:var(--surface-2);
  border-bottom:1px solid var(--rule-strong);white-space:nowrap;
}
table.closed tbody tr:last-child td{border-bottom:0}
table.closed td{color:var(--ink-2)}
table.closed td b{color:var(--ink);font-weight:600;display:block}
table.closed .q{
  display:block;margin-top:3px;font-family:var(--f-display);font-weight:500;
  font-size:.72rem;letter-spacing:.02em;color:var(--ink-3);
}
@media (max-width:860px){
  table.closed,table.closed tbody,table.closed tr,table.closed td{display:block}
  table.closed thead{display:none}
  table.closed tbody tr{border-bottom:1px solid var(--rule);padding:16px}
  table.closed tbody tr:last-child{border-bottom:0}
  table.closed td{border:0;padding:4px 0}
  table.closed td[data-label]::before{
    content:attr(data-label);display:block;
    font-family:var(--f-display);font-size:.64rem;font-weight:700;letter-spacing:.09em;
    text-transform:uppercase;color:var(--ink-3);margin-bottom:2px;
  }
  table.closed td:first-child::before{display:none}
}

/* ---------- small-business fit table ---------- */
table.fit{
  width:100%;border-collapse:collapse;table-layout:fixed;
  border:1px solid var(--rule);background:var(--surface);
}
table.fit col.r{width:42%}
table.fit col.s{width:26%}
table.fit col.f{width:32%}
table.fit td{
  padding:13px 14px;border-bottom:1px solid var(--rule);
  font-size:.91rem;line-height:1.45;color:var(--ink-2);vertical-align:top;
}
table.fit tr:last-child td{border-bottom:0}
table.fit td.n{
  font-family:var(--f-display);font-weight:700;color:var(--ink);
  font-variant-numeric:tabular-nums;
}
table.fit td:last-child{
  font-family:var(--f-display);font-size:.78rem;font-weight:600;
}
table.fit td,table.fit td.n{overflow-wrap:anywhere}
.dot{
  display:inline-block;width:8px;height:8px;border-radius:50%;
  margin-right:8px;vertical-align:middle;
}
.dot.yes{background:var(--patina)}
.dot.mid{background:var(--steel)}
.dot.no{background:var(--copper)}
@media (max-width:560px){
  table.fit td{display:block;border:0;padding:3px 14px}
  table.fit tr{display:block;border-bottom:1px solid var(--rule);padding-block:12px}
  table.fit tr:last-child{border-bottom:0}
  table.fit td:first-child{font-family:var(--f-display);font-weight:600;color:var(--ink)}
  table.fit td:last-child{white-space:normal}
}

/* ---------- state box ---------- */
.statebox{background:var(--surface);border:1px solid var(--rule);padding:26px 24px}
.statebox .k{
  font-family:var(--f-display);font-size:.72rem;font-weight:700;letter-spacing:.11em;
  text-transform:uppercase;color:var(--copper);
}
.statebox ul{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:13px}
.statebox li{font-size:.93rem;line-height:1.52;color:var(--ink-2)}
.statebox li b{color:var(--ink);font-family:var(--f-display);font-weight:600}

/* ---------- numbered lists ---------- */
ol.steps,ol.doing{
  margin:0;padding:0;list-style:none;counter-reset:s;
  display:flex;flex-direction:column;
}
ol.steps li,ol.doing li{
  counter-increment:s;position:relative;
  padding:15px 0 15px 46px;border-bottom:1px solid var(--rule);
  font-size:.98rem;line-height:1.55;color:var(--ink-2);
}
ol.steps li:first-child,ol.doing li:first-child{border-top:1px solid var(--rule)}
ol.steps li::before,ol.doing li::before{
  content:counter(s);position:absolute;left:0;top:15px;
  width:28px;height:28px;display:grid;place-items:center;border-radius:3px;
  font-family:var(--f-display);font-size:.78rem;font-weight:700;
  background:var(--surface-2);color:var(--ink);
}
ol.doing li::before{background:var(--copper);color:#fff}
ol.steps li b,ol.doing li b{color:var(--ink);font-weight:600}

/* ---------- scam warning ---------- */
.warn{background:var(--surface-2);border-left:3px solid var(--copper);padding:26px 26px 24px}
.warn > p:nth-of-type(1){margin-bottom:10px}
.warn > p:nth-of-type(2){font-size:.96rem;line-height:1.55;color:var(--ink-2)}
.warn ul{margin:15px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.warn li{font-size:.93rem;line-height:1.52;color:var(--ink-2);padding-left:18px;position:relative}
.warn li::before{
  content:"";position:absolute;left:0;top:.55em;
  width:7px;height:7px;background:var(--copper);border-radius:1px;
}
.warn li b{color:var(--ink);font-weight:600}
.warn .rep{
  margin-top:18px;padding-top:14px;border-top:1px solid var(--rule-strong);
  font-family:var(--f-display);font-size:.8rem;font-weight:600;color:var(--ink-2);
}
.warn .rep a{color:var(--ink-2)}
.warn .rep a:hover{color:var(--copper)}
