/* DAIR Intake Portal — brand styles
   Matches dairhub.com: Source Sans, teal #41ae87, slate navy #283445, slate #3c4f55,
   light-grey footer, square uppercase buttons. Brand green #3f9b0b is kept for success accents. */

:root {
  --green: #41ae87;          /* primary (DAIR teal) — name kept for the rest of this file */
  --green-dark: #32876a;
  --teal: #41ae87;
  --teal-soft: #e9f6f1;
  --leaf: #3f9b0b;           /* brand green — success/check accents */
  --ink: #283445;            /* slate navy — headings and dark surfaces */
  --ink-soft: #3c4f55;       /* slate — secondary buttons */
  --text: #333333;
  --muted: #616161;
  --line: #dcdcd9;
  --bg: #f4f4f2;
  --grey: #e1e1e1;
  --grey-dark: #cfcfcc;
  --white: #ffffff;
  --warn-bg: #fff8e6;
  --warn-line: #f0d48a;
  --warn-ink: #7a5200;
  --danger: #c62828;
  --radius: 2px;
  --font-head: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  /* Keep the footer at the bottom of the window on short pages (e.g. an empty dashboard). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
body > .site-footer { margin-top: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); font-weight: 600; }
h1 { font-size: 2.3rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.6rem; font-weight: 500; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--green-dark); }
a:hover { color: var(--ink); }
p { margin: 0 0 1rem; }
.hint, .muted { color: var(--muted); font-size: 0.94rem; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* ── Chrome (mirrors the dairhub.com header and footer) ─── */
.utility-bar {
  display: flex; justify-content: flex-end; background: var(--teal);
}
.utility-bar-inner {
  display: flex; align-items: center; gap: 1.5rem; background: var(--text);
  padding: 0.55rem clamp(16px, 4vw, 48px) 0.55rem 1.5rem;
}
.utility-bar a {
  color: var(--white); text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.utility-bar a.accent { color: var(--teal); }
.utility-bar a:hover { color: var(--teal); }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem clamp(16px, 4vw, 48px);
  background: var(--white); border-bottom: 1px solid var(--line);
}
.logo img { height: 40px; width: auto; display: block; }
.header-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.header-nav a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase; padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.header-nav a:hover, .header-nav a.active { color: var(--ink); border-bottom-color: var(--teal); }
.header-nav { align-items: center; }
.header-nav a.nav-cta {
  background: var(--teal); color: var(--white); padding: 0.55rem 1.1rem; border-bottom: 0;
  letter-spacing: 1.3px;
}
.header-nav a.nav-cta:hover { background: var(--green-dark); color: var(--white); }
.staff-bar {
  display: flex; justify-content: flex-end; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.4rem clamp(16px, 4vw, 48px); background: var(--ink); color: #d5dae0; font-size: 0.85rem;
}
.staff-bar a { color: var(--white); }
.staff-bar form { margin: 0; }
.staff-bar button { background: none; border: 1px solid #7d8a9a; color: var(--white); border-radius: 0; padding: 2px 10px; cursor: pointer; font-size: 0.8rem; font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 2.25rem clamp(16px, 4vw, 48px) 4rem; }
.container-narrow { max-width: 780px; }

.site-footer { background: var(--grey); color: var(--text); font-size: 0.92rem; }
.site-footer-main {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem;
  padding: 2.25rem clamp(16px, 4vw, 48px);
}
.footer-logo img { height: 34px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--green-dark); }
.site-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  background: var(--grey-dark); padding: 1rem clamp(16px, 4vw, 48px); font-size: 0.85rem; color: #4a4a4a;
}
.site-footer-bottom { align-items: center; }
.site-footer a.powered-by {
  display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none;
  opacity: 0.9; transition: opacity 0.15s ease;
}
.site-footer a.powered-by:hover { opacity: 1; }
.powered-by span {
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: #4a4a4a;
}
.powered-by img { height: 26px; width: auto; display: block; }

.messages { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.messages li { padding: 0.8rem 1rem; border-radius: var(--radius); margin-bottom: 0.5rem; background: var(--teal-soft); border-left: 4px solid var(--teal); }
.messages li.warning, .messages li.error { background: var(--warn-bg); border-left-color: #d9a20b; color: var(--warn-ink); }

/* ── Hero / program pages ───────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(2.25rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
  background: var(--ink) url("hero-forest.41d02cd9b898.jpg") center 40% / cover no-repeat;
  margin-bottom: 2.25rem;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40,52,69,0.92) 0%, rgba(40,52,69,0.7) 55%, rgba(40,52,69,0.15) 100%); }
.hero > * { position: relative; }
/* DAIR home page: text on a navy panel, the aerospace lab photo unobscured on the right.
   Program pages keep the Green Fund image. */
.hero-home { background: var(--ink); min-height: clamp(300px, 32vw, 440px); display: flex; flex-direction: column; justify-content: center; }
.hero-home::before { left: auto; width: 64%; background: linear-gradient(90deg, var(--ink) 0%, rgba(40,52,69,0) 30%), url("hero-aerospace.04a4bd3e4cbd.jpg") 30% center / cover no-repeat; }
.hero-home > * { max-width: 34%; }
@media (max-width: 760px) {
  .hero-home { justify-content: flex-end; min-height: 380px; }
  .hero-home::before { width: 100%; background: linear-gradient(180deg, rgba(40,52,69,0.1) 0%, rgba(40,52,69,0.55) 45%, var(--ink) 80%), url("hero-aerospace.04a4bd3e4cbd.jpg") 30% top / cover no-repeat; }
  .hero-home > * { max-width: none; }
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; max-width: 18ch; }
.hero p { max-width: 58ch; font-size: 1.12rem; color: #eef1f4; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--green-dark); margin-bottom: 0.6rem; }
.hero .eyebrow { color: #8fdcbf; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
.hero-fact { background: rgba(255,255,255,0.1); border-left: 3px solid var(--teal); padding: 0.55rem 0.95rem; }
.hero-fact strong { display: block; font-size: 1.35rem; font-weight: 600; color: var(--white); }
.hero-fact span { font-size: 0.85rem; color: #d5dae0; }

.program-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; overflow-x: auto; }
.program-tab {
  padding: 0.7rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  letter-spacing: 0.6px; text-transform: uppercase; border-bottom: 3px solid transparent; white-space: nowrap;
}
.program-tab-active, .program-tab:hover { color: var(--ink); border-bottom-color: var(--teal); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-top: 0; }
.card-accent { border-top: 4px solid var(--teal); }
.card-teal { border-top: 4px solid var(--ink-soft); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { min-width: 9.5rem; font-weight: 700; color: var(--green-dark); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }

/* ── Callouts ───────────────────────────────────────────── */
.callout { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.25rem 0; background: var(--teal-soft); border: 1px solid #c3e6d8; border-left: 4px solid var(--teal); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 700; margin-bottom: 0.3rem; color: var(--ink); }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #d9a20b; color: var(--warn-ink); }
.callout-warning .callout-title { color: var(--warn-ink); }
.callout-error { background: #fdecec; border-color: #f2b8b8; border-left-color: var(--danger); color: #8a1c1c; }
.callout-error .callout-title { color: #8a1c1c; }
.callout-plain { background: var(--white); border-color: var(--line); border-left-color: var(--ink-soft); }

/* ── Buttons (square, uppercase — as on dairhub.com) ────── */
/* Anything marked hidden stays hidden, even when a class gives it a display (e.g. .btn's inline-flex). */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: inherit; font-weight: 700; font-size: 13px; line-height: 1.2;
  letter-spacing: 1.3px; text-transform: uppercase;
  padding: 15px 25px; border-radius: 0; border: 1px solid var(--green);
  background: var(--green); color: var(--white); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink-soft); }
.btn-secondary:hover { background: var(--ink-soft); color: var(--white); border-color: var(--ink-soft); }
.btn-dark { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-link {
  background: none; border: 0; color: var(--green-dark); padding: 0.25rem 0.4rem; font-weight: 600;
  text-decoration: underline; font-family: inherit; font-size: 0.95rem; cursor: pointer;
}
.btn-link:hover { background: none; color: var(--ink); }
.btn-danger-link { color: var(--danger); }
.btn-sm { padding: 9px 16px; font-size: 12px; letter-spacing: 1px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.save-hint { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--muted); text-align: right; }
.form-actions .primary-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Application flow ───────────────────────────────────── */
.flow-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.flow-layout > *, .dd-layout > *, .guide-layout > *, .about-grid > *, .program-intro > * { min-width: 0; }
.flow-sidebar { position: sticky; top: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.flow-sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.75rem; }
.fixed-value { margin: 0; padding: 0.6rem 0.75rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.flow-sidebar-meta { font-size: 0.8rem; color: var(--muted); margin: -0.4rem 0 0.75rem; line-height: 1.35; }
.flow-steps { list-style: none; margin: 0; padding: 0; }
.flow-step { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.3rem; font-size: 0.9rem; color: var(--muted); border-radius: var(--radius); }
.flow-step a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 0.6rem; width: 100%; }
.flow-step a:hover { color: var(--ink); }
.flow-step-number {
  flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 700; border: 2px solid var(--line); background: var(--white);
}
.flow-step-completed, .flow-step.is-complete { color: var(--ink); }
.flow-step-current.is-complete .flow-step-number { background: var(--green); }
.flow-step a:hover { background: var(--bg); }
.flow-step-completed .flow-step-number { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }
.flow-step-current { color: var(--ink); font-weight: 700; background: var(--teal-soft); }
.flow-step-current .flow-step-number { background: var(--green); border-color: var(--green); color: var(--white); }
.flow-content { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.step-head { margin-bottom: 1.5rem; }
.step-head h1 { font-size: 1.8rem; margin: 0.2rem 0 0.4rem; }
.step-kicker { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.3px; color: var(--green-dark); }

/* ── Forms ──────────────────────────────────────────────── */
.form-section { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 1.75rem; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title { margin: 0 0 0.25rem; font-size: 1.15rem; }
.form-section-intro { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field > label, .field-label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.35rem; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.25rem; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=date],
input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.6rem 0.75rem; border: 1px solid #c9ccc7; border-radius: var(--radius); background: var(--white);
}
textarea { resize: vertical; min-height: 4.5rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
input[type=file] { font: inherit; font-size: 0.9rem; }
.required-star { color: var(--danger); }
.helptext { font-size: 0.83rem; color: var(--muted); margin: 0.3rem 0 0; }
.errorlist { list-style: none; margin: 0.3rem 0 0; padding: 0; color: var(--danger); font-size: 0.85rem; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.char-counter { font-size: 0.78rem; color: var(--muted); text-align: right; margin-top: 0.2rem; }
.char-counter.near { color: var(--warn-ink); font-weight: 600; }

.choice-list { display: grid; gap: 0.5rem; }
.choice-list > div { margin: 0; }
.choice-list label, .choice-option {
  display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; font-size: 0.93rem;
  padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--white);
}
.choice-list label:hover, .choice-option:hover { border-color: var(--teal); }
.choice-list input, .choice-option input { margin-top: 0.25rem; accent-color: var(--green); flex: 0 0 auto; }
.choice-list label:has(input:checked), .choice-option:has(input:checked) { border-color: var(--green); background: var(--teal-soft); }
.choice-inline { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.choice-inline label { padding: 0.5rem 1rem; }

/* Repeating rows (formsets) */
.row-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 0.25rem; margin-bottom: 1rem; background: #fbfbfa; }
.row-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.row-card-title { font-weight: 700; font-size: 0.95rem; }
.row-table-wrap { overflow-x: auto; }
.row-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.row-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0 0.4rem 0.4rem; white-space: nowrap; }
.row-table th.th-group { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.row-table thead tr + tr th { padding-top: 0.35rem; }
.benefit-list { display: grid; gap: 0.9rem; margin-bottom: 0.9rem; }
.benefit-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 0.9rem 1rem 0.2rem; }
.benefit-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.benefit-card-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.benefit-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.benefit-top > *, .benefit-card .form-row-2 > * { min-width: 0; }
.metric-group { border-left: 3px solid var(--teal-soft); padding-left: 0.75rem; }
.metric-group-label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--teal); margin-bottom: 0.15rem; }
@media (max-width: 720px) { .benefit-top { grid-template-columns: 1fr; } }
.row-table td { padding: 0.3rem 0.4rem; vertical-align: top; }
.row-table td.num { width: 2rem; color: var(--muted); font-weight: 700; padding-top: 0.9rem; }
.row-table textarea { resize: none; overflow: hidden; min-height: 0; }
.row-table td.actions { width: 2.5rem; padding-top: 0.6rem; }
.row-remove { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0.25rem; }
.row-remove:hover { color: var(--danger); }

/* Budget */
.budget-table { width: 100%; border-collapse: collapse; }
.budget-table td, .budget-table th { padding: 0.45rem 0.4rem; border-bottom: 1px solid var(--line); }
.budget-table th { text-align: left; font-weight: 600; font-size: 0.93rem; }
.budget-table td.amount { width: 13rem; }
.budget-table tr.total th, .budget-table tr.total td { font-weight: 800; font-family: var(--font-head); border-bottom: 2px solid var(--ink); text-align: right; }
.budget-table tr.total th { text-align: left; }
.money-wrap { position: relative; }
.money-wrap::before { content: '$'; position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money-wrap input { padding-left: 1.5rem; text-align: right; }
.contrib-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 0.6rem; margin: 1rem 0 1.25rem; }
.contrib-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.contrib-box.contrib-total { background: var(--bg); }
.contrib-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contrib-box strong { font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); }
.contrib-note { font-size: 0.8rem; color: var(--muted); }
.contrib-op { align-self: center; font-size: 1.5rem; font-weight: 700; color: var(--muted); }
@media (max-width: 720px) { .contrib-calc { grid-template-columns: 1fr; } .contrib-op { justify-self: center; line-height: 1; } }
.budget-meter { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.meter { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; background: var(--white); }
.meter span { display: block; font-size: 0.78rem; color: var(--muted); }
.meter strong { font-family: var(--font-head); font-size: 1.2rem; }
.meter.bad { border-color: var(--danger); background: #fdecec; }
.meter.ok { border-color: var(--teal); }

/* Attachments */
.file-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 0.5rem; background: var(--white); }
.file-meta { font-size: 0.8rem; color: var(--muted); }
.file-list form { margin: 0; }
.kind-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--teal-soft); color: #22644c; margin-right: 0.4rem; }

/* ── Summary (review / dashboard) ───────────────────────── */
.summary-section { margin-bottom: 2rem; }
.summary-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 0.75rem; }
.summary-section-head h2, .summary-section-head h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 1rem; }
.summary-table th, .summary-table td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.summary-table > tbody > tr > th { width: 32%; color: var(--muted); font-weight: 600; }
.summary-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 2px solid var(--line); }
.summary-table .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.prose { white-space: pre-wrap; font-size: 0.93rem; }
.qa { margin-bottom: 1rem; }
.qa-q { font-weight: 600; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.2rem; }
.empty { color: #a3a09c; font-style: italic; }

/* ── Dashboard ──────────────────────────────────────────── */
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.dash-head h1 { margin: 0; font-size: 1.8rem; }
.crumb { font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.dash-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.dash-stat { display: flex; flex-direction: column; min-width: 96px; padding: 0.6rem 0.85rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.dash-stat:hover, .dash-stat-active { border-color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.dash-stat-num { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.dash-stat-label { font-size: 0.75rem; color: var(--muted); }
.dash-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 1.25rem; }
.dash-filters input[type=text] { max-width: 320px; }
.dash-filters select { max-width: 260px; }
.dash-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9rem; }
.dash-table th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 0.7rem 0.8rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.dash-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dash-table tr:hover td { background: #fafbf9; }
.sub { font-size: 0.8rem; color: var(--muted); }
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--radius); font-size: 0.75rem; font-weight: 700; color: var(--white); background: #6b7280; white-space: nowrap; }
.badge-new { background: #6b7280; }
.badge-eligibility { background: var(--teal); }
.badge-info_requested { background: #d97706; }
.badge-committee { background: #0369a1; }
.badge-approved { background: var(--leaf); }
.badge-waitlisted { background: #9333ea; }
.badge-declined { background: var(--danger); }
.badge-withdrawn { background: #9ca3af; }
.badge-open { background: var(--leaf); }
.badge-closed { background: #9ca3af; }
.score-pill { font-family: var(--font-head); font-weight: 800; }
.flag { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); margin-bottom: 0.4rem; }
.flag-warning { background: var(--warn-bg); color: var(--warn-ink); }
.flag-info { background: #eef4fb; color: #1e4f80; }
.dd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.dd-aside .card { margin-bottom: 1rem; }
.dd-aside h3 { font-size: 1rem; margin: 0 0 0.75rem; }
.dd-tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.dd-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 0.7rem 1rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.dd-tab.active, .dd-tab:hover { color: var(--ink); border-bottom-color: var(--green); }
.count { font-size: 0.7rem; background: var(--line); color: var(--muted); padding: 1px 7px; border-radius: 99px; margin-left: 3px; }
.dd-panel[hidden] { display: none; }
.eval-table select { width: 5rem; }
.eval-table td.weight { color: var(--muted); white-space: nowrap; }
.score-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 80px; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); }
.note { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 0.9rem; background: var(--white); }
.note-head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.note-body { font-size: 0.92rem; }
.note-body ul, .note-body ol, .rte ul, .rte ol { margin: 0.25rem 0 0.25rem 1.25rem; padding: 0; }
.rte-toolbar { display: flex; gap: 0.3rem; padding: 0.4rem; border: 1px solid #c9ccc7; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg); }
.rte-toolbar button { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 2px 9px; cursor: pointer; font-size: 0.85rem; }
.rte { min-height: 110px; padding: 0.65rem 0.75rem; border: 1px solid #c9ccc7; border-radius: 0 0 var(--radius) var(--radius); background: var(--white); font-size: 0.93rem; outline: none; }
.rte:focus { outline: 2px solid var(--teal); }
.rte:empty::before { content: attr(data-placeholder); color: #a3a09c; }
.log-list { list-style: none; padding: 0; margin: 0; }
.log-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }

/* ── Login / auth pages ─────────────────────────────────── */
.auth-wrap { min-height: 50vh; display: grid; place-items: center; padding: 2rem 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2rem; box-shadow: 0 12px 30px rgba(33,32,31,0.08); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.auth-step { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--green-dark); background: var(--teal-soft); border-radius: 0; padding: 0.2rem 0.65rem; margin-bottom: 1rem; }
.auth-card .btn { width: 100%; margin-top: 0.5rem; }
.qr-box { text-align: center; margin: 1rem 0; }
.qr-box img { max-width: 220px; }

/* Overview tabs (Context / Innovation Network / About the Green Fund) */
.overview-tabs { margin-top: 2.5rem; }
.tab-list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--teal); }
.tab-list [role="tab"] {
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom: 0;
  padding: 0.85rem 1.25rem; cursor: pointer; margin-right: -1px;
}
.tab-list [role="tab"]:hover { color: var(--green-dark); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--teal); color: var(--white); border-color: var(--teal); }
.tab-list [role="tab"]:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.tab-panel { background: var(--white); border: 1px solid var(--line); border-top: 0; padding: 1.5rem 1.75rem; }
.tab-panel:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: -3px; }
.tab-panel > p:last-child { margin-bottom: 0; }
.tabs-ready .tab-fallback-heading { display: none; }
.overview-tabs:not(.tabs-ready) .tab-panel { border-top: 1px solid var(--line); margin-bottom: 1rem; }
.overview-tabs:not(.tabs-ready) .tab-fallback-heading { margin-top: 0; }

/* Scannable blocks used in the overview tabs (inspired by the AI Hub program pages) */
.hero-cta { margin-top: 1.5rem; }
.program-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.program-intro .lead { margin-bottom: 1rem; }
.call-card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal); padding: 1.25rem 1.4rem; }
.call-card .section-label { margin: 0 0 0.85rem; }
.call-list { list-style: none; margin: 0; padding: 0; }
/* Dot sits in a fixed left gutter (no flex/gap), so it can never overlap the text in any browser. */
.call-list li { position: relative; display: block; padding: 0.55rem 0 0.55rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 0.97rem; line-height: 1.5; }
.call-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.call-list .dot { position: absolute; left: 0.15rem; top: calc(0.55rem + 0.75em - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.call-list .dot.closed { background: var(--danger); }
.call-card .callout { margin-bottom: 0; }
/* "Learn more" link card under the program description. */
.resource-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 34rem;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  padding: 0.85rem 1.1rem; text-decoration: none; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.resource-link:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(40, 52, 69, 0.08); color: var(--text); }
.resource-text { display: flex; flex-direction: column; gap: 0.15rem; }
.resource-title { font-weight: 700; color: var(--ink); }
.resource-sub { font-size: 0.9rem; color: var(--muted); }
.resource-arrow { font-size: 1.3rem; color: var(--teal); flex: 0 0 auto; }
.resource-link:hover .resource-arrow { color: var(--green-dark); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.timeline-strip {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); background: var(--white); border: 1px solid var(--line);
}
.timeline-strip li { position: relative; padding: 1.4rem 1rem 1rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.2rem; }
.timeline-strip li:nth-child(3n), .timeline-strip li:last-child { border-right: 0; }
/* Wide screens: every step in one row, however many dates are set. Narrower: even rows of 3, then 2. */
@media (min-width: 1100px) {
  .timeline-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .timeline-strip li:nth-child(3n) { border-right: 1px solid var(--line); }
  .timeline-strip li:last-child { border-right: 0; }
}
@media (max-width: 600px) {
  .timeline-strip { grid-template-columns: repeat(2, 1fr); }
  .timeline-strip li:nth-child(3n) { border-right: 1px solid var(--line); }
  .timeline-strip li:nth-child(2n), .timeline-strip li:last-child { border-right: 0; }
}
.timeline-strip li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grey); }
.timeline-strip li.ts-key::before { background: var(--teal); }
.ts-date { font-weight: 700; color: var(--green-dark); }
.ts-key .ts-date { color: var(--ink); }
.ts-label { font-size: 0.92rem; color: var(--text); }
.tab-lead { font-size: 1.12rem; margin-bottom: 1.25rem; color: var(--ink); }
.tab-h { font-size: 1rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.6px; margin: 1.75rem 0 0.75rem; }
.tab-panel > .tab-h:first-child, .tab-panel > h2 + .tab-h { margin-top: 0; }
.tab-note { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.tab-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; }
.tab-cols .tab-h { margin-top: 0.5rem; }
.text-block p:last-child { margin-bottom: 0; }
.text-block .chip-list { margin-top: 0.85rem; }
.highlight-block { margin-top: 1.5rem; background: var(--teal-soft); border-left: 4px solid var(--teal); padding: 1rem 1.25rem; }
.highlight-block .tab-h { margin-top: 0; }
/* "Who this program is for" — icon cards, 4 across on desktop */
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.who-item { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); padding: 1.1rem 1.1rem 1rem; display: flex; flex-direction: column; }
.who-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.8rem; }
.who-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; background: var(--teal-soft); color: var(--green-dark); }
.who-title { font-weight: 700; color: var(--ink); margin: 0; font-size: 1.02rem; line-height: 1.3; }
.tab-intro { margin: -0.25rem 0 1rem; color: var(--text); }
.tab-note-sm { margin: 0.75rem 0 0; font-size: 0.92rem; color: var(--muted); }
.glance-notes { border-top: 1px solid var(--line); background: var(--teal-soft); padding: 0.85rem 1.25rem; display: grid; gap: 0.4rem; }
.glance-notes p { margin: 0; font-size: 0.95rem; }
/* Small "read more in the guide" links */
.more-link { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; }
.more-link::after { content: ' →'; }
.faq-item p .more-link { margin-left: 0.25rem; }
.step-links { margin: -0.5rem 0 1.25rem; }
.glance-value { white-space: nowrap; }
.who-list { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; color: var(--text); }
.who-list li { position: relative; padding-left: 1.35rem; margin-bottom: 0.45rem; line-height: 1.45; }
.who-list li:last-child { margin-bottom: 0; }
.who-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
/* "Funding at a glance" — headline numbers plus who-pays / when-paid bars */
.glance { border: 1px solid var(--line); background: var(--white); }
.glance-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance-stat { padding: 1.1rem 1.25rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem; }
.glance-stat:last-child { border-right: 0; }
.glance-value { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); line-height: 1.1; }
.glance-label { font-size: 0.88rem; color: var(--muted); line-height: 1.35; }
.step-row { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0; margin: 0 0 1.25rem; }
.step-row li { counter-increment: step; position: relative; border: 1px solid var(--line); padding: 0.85rem 1rem 0.85rem 3.1rem; display: flex; flex-direction: column; }
.step-row li::before {
  content: counter(step); position: absolute; left: 0.85rem; top: 0.85rem; width: 1.6rem; height: 1.6rem;
  display: grid; place-items: center; background: var(--teal); color: var(--white); font-weight: 700; font-size: 0.85rem;
}
.step-row strong { color: var(--ink); }
.step-row span { font-size: 0.92rem; color: var(--muted); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.chip-list li { background: var(--teal-soft); color: #22644c; border: 1px solid #c3e6d8; padding: 0.35rem 0.75rem; font-weight: 600; font-size: 0.92rem; }
.status-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.status-item { padding: 0.9rem 1rem; border-left: 4px solid var(--teal); background: var(--teal-soft); display: flex; flex-direction: column; gap: 0.2rem; }
.status-item strong { color: var(--ink); }
.status-item span { font-size: 0.95rem; }
.status-req { border-left-color: #d9a20b; background: var(--warn-bg); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.benefit { border: 1px solid var(--line); padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.benefit strong { color: var(--ink); }
.benefit span { font-size: 0.92rem; color: var(--muted); }
.faq-list { display: grid; gap: 0.5rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); }
.faq-item summary { padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 2.5rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.1rem; top: 0.7rem; font-size: 1.3rem; color: var(--teal); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0; padding: 0 1.1rem 1rem; color: var(--text); }

/* About DAIR — separated from the program list by space and a divider; both columns start level. */
.about-dair { margin-top: 3.5rem; padding-top: 2.75rem; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.about-grid .section-label { margin-top: 0; }
.about-grid .lead { font-size: 1.12rem; margin-bottom: 1.1rem; }
.about-grid p { margin-bottom: 1.1rem; }
.about-grid p:last-child { margin-bottom: 0; }
.about-grid .card { padding: 1.5rem 1.6rem; }
.about-grid .card h3 { margin-top: 0; margin-bottom: 0.6rem; }
.about-grid .check-list li { margin-bottom: 0.65rem; }
.about-grid .check-list li:last-child { margin-bottom: 0; }

/* ── Applicants guide ───────────────────────────────────── */
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.guide-toc { position: sticky; top: 1rem; border-left: 4px solid var(--teal); background: var(--white); padding: 1rem 1.1rem; }
.guide-toc-title { font-size: 13px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem; }
.guide-toc ol { list-style: none; margin: 0 0 1rem; padding: 0; }
.guide-toc li { margin: 0; }
/* Scoped to the list so the apply button keeps its own button styling. */
.guide-toc ol a { display: block; padding: 0.28rem 0; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.guide-toc ol a:hover { color: var(--green-dark); }
.guide-toc-cta { width: 100%; text-align: center; }
/* Paged mode (JS): the selected section is highlighted in the contents list. */
.guide-toc ol a.active { color: var(--ink); font-weight: 700; background: var(--teal-soft); margin: 0 -0.6rem; padding-left: 0.6rem; padding-right: 0.6rem; border-left: 3px solid var(--teal); }
.guide-paged .guide-body section { min-height: 50vh; }
.guide-paged .guide-body .section-label:focus { outline: none; }
/* One section shows at a time, so every heading starts level with the top of the contents panel. */
.guide-paged .guide-body > section > .section-label:first-child { margin-top: 0; }
.guide-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.guide-layout:not(.guide-paged) .guide-pager { display: none; }
.guide-body { max-width: 860px; }
.guide-body section { scroll-margin-top: 1rem; padding-bottom: 0.5rem; }
.guide-body section:first-child .section-label { margin-top: 0; }
.guide-body h3 { color: var(--ink); }
.guide-body .theme-tiles { margin: 0.5rem 0 1rem; }
.sub-list { margin: 0.4rem 0 0.2rem 1.1rem; padding: 0; }
.sub-list li { padding-left: 0; margin-bottom: 0.3rem; }
.sub-list li::before { content: none !important; }
.x-list { list-style: none; padding: 0; margin: 0; }
.x-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.45rem; font-size: 0.95rem; break-inside: avoid; }
.x-list li::before { content: '✕'; position: absolute; left: 0; color: var(--danger); font-size: 0.8rem; top: 0.15rem; }
.two-col { columns: 2; column-gap: 2rem; }
.apply-steps li { margin-bottom: 0.5rem; }
.scenario-table .total-row td { font-weight: 700; border-top: 2px solid var(--ink); }
.scenario-table td:first-child { min-width: 13rem; }
.trl-list { display: grid; gap: 0.5rem; }
.trl-item { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--teal); }
.trl-item summary {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0.75rem; align-items: center;
  padding: 0.7rem 1rem; cursor: pointer; list-style: none;
}
.trl-item summary::-webkit-details-marker { display: none; }
.trl-level { font-weight: 700; color: var(--teal); }
.trl-def { font-weight: 600; color: var(--ink); }
.trl-stage { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap; }
.trl-body { padding: 0 1rem 0.75rem 6.25rem; }
.trl-body ul { margin: 0; padding-left: 1.1rem; }

.sig-pad {
  display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 560 / 160;
  background: var(--white); border: 1px solid #c9ccc7; border-bottom: 2px solid var(--ink-soft);
  touch-action: none; cursor: crosshair;
}

/* ── Program pages (mirror dairhub.com/initiatives/green-fund/) ── */
.lead { font-size: 1.15rem; line-height: 1.65; color: var(--text); }
.section-label {
  color: var(--teal); font-size: 20px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3px; margin: 2.5rem 0 1rem;
}
.aside-links { margin-top: 1rem; font-size: 0.95rem; }
.aside-links a { font-weight: 600; }
.fact-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.fact { background: var(--white); border-left: 4px solid var(--teal); padding: 0.6rem 1rem; min-width: 140px; }
.fact strong { display: block; font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.fact span { font-size: 0.85rem; color: var(--muted); }

/* Theme tiles — teal fronts with a navy foot, flip to navy with examples on hover/focus */
/* Same 4 columns and gap as the How to apply cards so the sections line up. */
.theme-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.theme-tile { position: relative; height: 170px; cursor: default; outline: none; }
.theme-tile-front, .theme-tile-back {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 10px; color: var(--white); transition: opacity 0.25s ease;
}
.theme-tile-front { background: var(--teal); border-bottom: 10px solid var(--ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.theme-tile-back { background: var(--ink); opacity: 0; font-size: 1rem; gap: 0.4rem; }
.theme-tile-label { font-weight: 700; font-size: 1.05rem; }
.theme-tile:hover .theme-tile-back, .theme-tile:focus .theme-tile-back { opacity: 1; }
.theme-tile:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
/* How to apply — numbered circles joined by a line; becomes a vertical timeline on small screens. */
.stepper {
  list-style: none; margin: 0; padding: 1.75rem 1.5rem 1.5rem; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal);
}
.stepper li { position: relative; }
.stepper li:not(:last-child)::after {   /* connector to the next circle */
  content: ''; position: absolute; top: 22px; left: 56px; right: -1.5rem; height: 2px; background: var(--teal);
  opacity: 0.45;
}
.stepper-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: var(--white); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 0 0 5px var(--teal-soft); position: relative; z-index: 1;
}
.stepper h3 { margin: 1rem 0 0.4rem; font-size: 1.12rem; }
.stepper p { margin: 0; font-size: 0.95rem; color: var(--text); line-height: 1.55; }
.stepper-cta { margin-top: 1.25rem; }

/* Contact banner — photo band with translucent teal panel */
.contact-banner {
  margin-top: 1rem; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(16px, 4vw, 48px);
  background: var(--ink) url("hero-forest.41d02cd9b898.jpg") left 30% / cover no-repeat;
  display: flex; justify-content: flex-end;
}
.contact-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  width: min(600px, 100%); background: rgba(65, 174, 135, 0.83); padding: 30px; color: var(--white);
}
.contact-panel h2 { color: var(--white); font-size: 1.6rem; font-weight: 600; margin: 0 0 0.6rem; }
.contact-name { font-size: 1.4rem; font-weight: 700; margin: 0; line-height: 1.2; }
.contact-title { font-style: italic; font-weight: 600; margin: 0; font-size: 0.95rem; }
.contact-title a { color: var(--white); }
.btn-outline-light { background: transparent; border: 1px solid var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.funder-note { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.funder-note p { margin: 0; font-size: 0.95rem; color: var(--muted); max-width: 80ch; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .flow-layout, .dd-layout { grid-template-columns: 1fr; }
  .flow-sidebar { position: static; }
  .flow-steps { display: flex; gap: 0.25rem; overflow-x: auto; }
  .flow-step span:not(.flow-step-number) { display: none; }
  .flow-step-current span:not(.flow-step-number) { display: inline !important; white-space: nowrap; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .program-intro { grid-template-columns: 1fr; gap: 1.25rem; }
  .tab-cols, .status-pair, .step-row { grid-template-columns: 1fr; }
  .glance-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-stat:nth-child(2) { border-right: 0; }
  .glance-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stepper { grid-template-columns: 1fr; gap: 0; padding: 1.25rem 1.1rem; }
  .stepper li { padding: 0 0 1.4rem 60px; min-height: 44px; }
  .stepper li:last-child { padding-bottom: 0; }
  .stepper-num { position: absolute; left: 0; top: 0; }
  .stepper li:not(:last-child)::after { top: 50px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .stepper h3 { margin-top: 0.55rem; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab-list [role="tab"] { flex: 1 1 auto; padding: 0.7rem 0.8rem; font-size: 13px; }
  .tab-panel { padding: 1.1rem 1rem; }
  .guide-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .guide-toc { position: static; }
  .guide-toc ol { columns: 2; column-gap: 1.5rem; }
  .two-col { columns: 1; }
  .trl-item summary { grid-template-columns: 4rem minmax(0, 1fr); }
  .trl-stage { display: none; }
  .trl-body { padding-left: 1rem; }
  .theme-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .who-grid { grid-template-columns: 1fr; }
  .theme-tile { height: 140px; }
  .theme-tile-front { font-size: 17px; }
  .contact-banner { justify-content: stretch; }
  .header-nav { gap: 0.25rem 1.1rem; }
  .header-nav a { font-size: 12.5px; }
  .logo img { height: 34px; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
  .timeline li { flex-direction: column; gap: 0.1rem; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
}
@media print {
  .site-header, .site-footer, .staff-bar, .utility-bar, .no-print { display: none !important; }
  body { background: white; }
}
.row-table td.date-col { width: 9.5rem; }

/* "Start your application" */
.start-panel { max-width: 40rem; margin: 0 auto; }
.start-panel .eyebrow { color: var(--teal); }
.start-panel form { margin: 1.25rem 0 1rem; }
.start-panel form .btn { margin-top: 0.25rem; }
.start-notes { color: var(--muted); font-size: 0.95rem; padding-left: 1.1rem; }
.start-notes li { margin-bottom: 0.35rem; }

/* Staff notes: attached files */
.note-files { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.25rem; font-size: 0.92rem; }
.note-files li::before { content: '\1F4CE'; margin-right: 0.35rem; }
.note-files-edit { border: 1px solid var(--line); padding: 0.5rem 0.75rem; margin: 0.75rem 0 0; }
.note-files-edit legend { font-size: 0.85rem; font-weight: 600; padding: 0 0.25rem; }

/* Dashboard "At a glance": keep long values (emails) inside the card */
.glance-table { table-layout: fixed; }
.glance-table td { overflow-wrap: anywhere; word-break: break-word; }
