/* Eligiblist site draft — Concept 1, Ink & Paper
   Local draft only. Public name and tagline are set in ../brand/brand-config.md.
   No payments, no live newsletter, no tracking, no domain registration. */

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-It.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("fonts/SourceSerifPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1b2a4a;
  --ink-soft: #2c3e5b;
  --paper: #f7f4ee;
  --paper-dark: #e8e2d6;
  --white: #fffcf7;
  --muted: #5c6574;
  --link: #154a8a;
  --link-hover: #0f3566;
  --yes: #1f7a4d;
  --yes-bg: #e6f3ec;
  --check: #8a5a12;
  --check-bg: #f8eedc;
  --no: #8b2e2e;
  --no-bg: #f6e8e8;
  --rule: #d4cdbf;
  --focus: #154a8a;
  --error: #8b2e2e;
  --font-serif: "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --width: 70rem;
  --space: 1.25rem;
  --radius: 0.4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space);
  top: -3.5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
  top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: 2.15rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.wrap {
  width: min(100% - 2 * var(--space), var(--width));
  margin-inline: auto;
}

/* Draft banner */
.draft-banner {
  background: var(--ink);
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.65rem 0;
}

.draft-banner p {
  margin: 0;
}

.draft-banner strong {
  font-weight: 700;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 0;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  border-bottom: 1.5px solid var(--rule);
  padding-bottom: 0.15rem;
}

.wordmark:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2.75rem;
  border-bottom: 1px solid var(--rule);
}

.hero-lede {
  max-width: var(--measure);
}

.kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  margin-bottom: 1rem;
}

.hero .standfirst {
  font-size: 1.2rem;
  max-width: var(--measure);
}

.disclaimer {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  padding: 0.9rem 1rem;
  margin: 1.4rem 0 0;
  max-width: 46rem;
  font-size: 1rem;
}

.disclaimer p { margin: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  cursor: pointer;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: var(--ink-soft);
  color: var(--white);
  border-color: var(--ink-soft);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.section header {
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.section header p {
  color: var(--ink);
}

.lede-muted {
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.15rem 4.1rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p:last-child { margin-bottom: 0; }

/* Eligibility */
.badge-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.badge-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.badge-card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  margin-bottom: 0.6rem;
}

.badge-yes { background: var(--yes-bg); color: var(--yes); }
.badge-check { background: var(--check-bg); color: var(--check); }
.badge-no { background: var(--no-bg); color: var(--no); }
.badge-type,
.badge-status {
  background: var(--paper-dark);
  color: var(--ink);
  font-weight: 600;
}

.example-no {
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--no);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.example-no p:last-child { margin-bottom: 0; }

/* Listings */
.listings {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.05rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.listing h3 {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.listing .funder {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.listing dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0 0 0.85rem;
  font-size: 1rem;
}

.listing dt {
  font-weight: 700;
  color: var(--ink);
}

.listing dd {
  margin: 0;
}

.listing .source {
  margin: 0;
  font-size: 1rem;
}

/* Plans */
.plans {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.plan h3 { margin-bottom: 0.25rem; }

.price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.plan p:last-child { margin-bottom: 0; }

.coming-soon-flag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  margin-bottom: 0.6rem;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  max-width: 36rem;
}

.form-note {
  font-size: 1rem;
  color: var(--ink);
  background: var(--check-bg);
  color: var(--check);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.form-note p { margin: 0; }

.field {
  margin-bottom: 1rem;
}

.field label,
.checkbox label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.hint {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8a8376;
  border-radius: var(--radius);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 1.15rem;
}

.checkbox input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.checkbox label {
  margin: 0;
  font-weight: 400;
}

.form-status {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
}

.form-status[hidden] { display: none; }

.form-status.is-ok {
  background: var(--yes-bg);
  color: var(--yes);
}

.form-status.is-error {
  background: var(--no-bg);
  color: var(--no);
}

/* FAQ */
.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  padding: 0.2rem 0;
}

.faq summary:hover {
  text-decoration: underline;
}

.faq details p:last-child { margin-bottom: 0; }

.faq details div {
  margin-top: 0.6rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2rem 0 2.4rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer .wordmark {
  color: var(--paper);
  border-bottom-color: #6d7484;
}

.site-footer .wordmark:hover {
  color: var(--white);
  border-bottom-color: var(--paper);
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-meta {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #3a4660;
  color: #d5d0c6;
}

.footer-meta p { margin: 0 0 0.5rem; }

/* Privacy article */
.legal {
  padding: 2.25rem 0 3rem;
}

.legal-article {
  max-width: 42rem;
}

.legal-article h2 {
  margin-top: 2rem;
}

.legal-article ul,
.legal-article ol {
  padding-left: 1.25rem;
}

.placeholder {
  font-family: var(--font-sans);
  font-style: normal;
  background: var(--check-bg);
  color: var(--check);
  padding: 0.05rem 0.3rem;
  border-radius: 0.2rem;
}

/* Wider layouts */
@media (min-width: 40rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 60rem) {
  h1 { font-size: 2.5rem; }

  .steps,
  .badge-grid,
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }

  .listings {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Print */
@media print {
  .draft-banner,
  .site-nav,
  .hero-actions,
  #newsletter,
  .skip-link {
    /* Keep the draft banner so a print still shows DRAFT */
  }

  .hero-actions,
  #newsletter form,
  .site-nav {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #333;
  }
}

.visually-context {
  font-weight: 400;
}


/* Eligibility-first additions (15 Nov 2026 revision) */
.benefits {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
}

.benefits li {
  margin-bottom: 0.35rem;
}

.section-eligibility {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.section-eligibility .badge {
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
}

.listings-single {
  grid-template-columns: 1fr;
}

.listing h4.cic-heading {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.4rem 0 0.45rem;
}

.cic-points {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 0.55rem;
  margin-bottom: 0.85rem;
}

.ambiguity {
  font-size: 1rem;
  background: var(--check-bg);
  color: var(--ink);
  border-left: 4px solid var(--check);
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.85rem;
}

.listing dl {
  grid-template-columns: 9.5rem 1fr;
}

@media (max-width: 39.99rem) {
  .listing dl,
  .cic-points {
    grid-template-columns: 1fr;
  }
  .listing dt {
    margin-top: 0.35rem;
  }
}
