/* ============================================
   CCG Hub — shared stylesheet
   ============================================ */
:root {
  --green-900: #0f3d2e;
  --green-700: #1a6b4f;
  --green-500: #2e9a72;
  --green-50:  #eaf6f0;
  --sand-50:   #fbf7ee;
  --sand-100:  #f4ecd8;
  --ink-900:   #1a1a1a;
  --ink-700:   #2f2f2f;
  --ink-500:   #5a5a5a;
  --ink-300:   #b3b3b3;
  --line:      #e3ddc8;
  --warn:      #b35900;
  --link:      #1a6b4f;
  --link-hover:#0f3d2e;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(15,61,46,0.06);
  --max:       1100px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Georgia", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink-900); background: var(--sand-50); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--link-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.2em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 32px 0; }
.section--alt { background: #fff; }
.section--green { background: var(--green-50); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header__inner { max-width: var(--max); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green-900); }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: bold; font-size: 1rem; }
.brand__text { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; }
.brand__sub { display: block; font-size: .75rem; color: var(--ink-500); font-family: var(--font-body); font-weight: normal; }
.brand-partners { display: flex; flex-direction: column; font-size: .78rem; color: var(--ink-500); line-height: 1.35; margin-left: auto; margin-right: 16px; text-align: right; max-width: 280px; }
.brand-partners strong { color: var(--green-900); font-weight: 600; }
@media (max-width: 900px) { .brand-partners { display: none; } }

/* Nav */
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink-700); font-size: .95rem; }
.nav a:hover, .nav a:focus { background: var(--green-50); color: var(--green-900); }
.nav a[aria-current="page"] { background: var(--green-700); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; margin-top: 12px; }
  .nav.is-open { display: flex; }
}

/* Banner */
.banner { background: var(--green-700); color: #fff; text-align: center; font-size: .95rem; padding: 10px 20px; }
.banner a { color: #fff; }

/* Hero */
.hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--green-50) 0%, var(--sand-50) 100%); }
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .hero__inner { grid-template-columns: 1fr; } }
.hero h1 { margin-top: 0; }
.hero__lede { font-size: 1.15rem; color: var(--ink-700); }
.hero__art { background: var(--green-700); color: #fff; border-radius: var(--radius); padding: 36px; font-family: var(--font-head); text-align: center; box-shadow: var(--shadow); }
.hero__art .big { font-size: 3rem; line-height: 1; display: block; }
.hero__art .small { display: block; opacity: .9; margin-top: 8px; }

/* Buttons */
.btn { display: inline-block; background: var(--green-700); color: #fff !important; padding: 12px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 2px solid var(--green-700); transition: background .15s, transform .05s; }
.btn:hover, .btn:focus { background: var(--green-900); border-color: var(--green-900); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--green-700) !important; border-color: var(--green-700); }
.btn--ghost:hover { background: var(--green-50); }
.btn--big { padding: 16px 28px; font-size: 1.05rem; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.card__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; font-size: 1.4rem; font-weight: bold; }
.card h3 { margin: 0; }
.card p { margin: 0; flex: 1; color: var(--ink-700); }
.card .btn { align-self: flex-start; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { background: #fff; border-left: 4px solid var(--green-500); padding: 22px 24px; border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr; gap: 20px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); background: var(--green-700); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: bold; font-size: 1.1rem; }
.step h3 { margin: 0 0 6px; font-size: 1.25rem; }
.step p { margin: 0; color: var(--ink-700); font-size: 1.02rem; line-height: 1.55; }
.step p + p { margin-top: 8px; }

/* Partners legacy */
.partners { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; font-family: var(--font-head); color: var(--green-900); text-decoration: none; font-size: .95rem; }
.partner:hover { border-color: var(--green-500); }

/* Logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.logo-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 110px; display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--font-head); color: var(--green-900); font-size: 1rem; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
a.logo-tile:hover, a.logo-tile:focus { border-color: var(--green-500); transform: translateY(-2px); box-shadow: 0 4px 18px rgba(15,61,46,0.12); }
.logo-tile img { max-height: 80px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.logo-tile--empty { background: transparent; border-style: dashed; color: var(--ink-500); font-style: italic; font-family: var(--font-body); font-size: .9rem; box-shadow: none; }

/* Callout */
.callout { background: var(--sand-100); border-left: 4px solid var(--green-700); border-radius: var(--radius); padding: 22px 26px; margin: 16px 0; font-size: 1.02rem; }
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout p { line-height: 1.55; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
details.faq[open] { border-color: var(--green-500); }
details.faq > summary { font-weight: 600; cursor: pointer; list-style: none; position: relative; padding-right: 24px; }
details.faq > summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 1.4rem; color: var(--green-700); }
details.faq[open] > summary::after { content: "\2212"; }
details.faq > *:not(summary) { margin-top: 10px; }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 8px 0 8px 28px; position: relative; }
.checklist li::before { content: "\2713"; color: var(--green-700); font-weight: bold; position: absolute; left: 0; }
.notlist { list-style: none; padding: 0; margin: 0; }
.notlist li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-700); }
.notlist li::before { content: "\00d7"; color: var(--warn); font-weight: bold; position: absolute; left: 0; }

/* Quote */
.quote { background: var(--sand-100); border-left: 4px solid var(--green-700); padding: 20px 24px; border-radius: var(--radius); font-style: italic; margin: 16px 0; }
.quote cite { display: block; font-style: normal; font-weight: 600; margin-top: 8px; color: var(--green-900); }

/* Pill */
.pill { display: inline-block; background: var(--green-50); color: var(--green-900); padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.pill--warn { background: #fff3e0; color: var(--warn); }

/* Two-col */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--green-900); color: #fff; padding: 40px 0 24px; margin-top: 56px; }
.site-footer a { color: #cfe7d8; }
.site-footer__cols { max-width: var(--max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer__base { max-width: var(--max); margin: 24px auto 0; padding: 16px 20px 0; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; color: #cfe7d8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Utility */
.center { text-align: center; }
.muted { color: var(--ink-500); font-size: .9rem; }
.placeholder { border: 2px dashed var(--ink-300); background: #fff; border-radius: var(--radius); padding: 24px; color: var(--ink-500); font-size: .9rem; margin: 16px 0; }
.placeholder strong { color: var(--warn); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Form embed */
.form-embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 16px 0 12px; box-shadow: var(--shadow); overflow: hidden; }
.form-embed iframe { width: 100%; min-height: 1200px; border: 0; display: block; }
@media (max-width: 600px) { .form-embed iframe { min-height: 1600px; } }

/* Dashboard embed */
.dashboard-embed iframe { min-height: 900px; }
@media (max-width: 760px) { .dashboard-embed iframe { min-height: 1400px; } }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--green-900); color: #fff; padding: 8px 12px; z-index: 200; border-radius: 4px; }

/* ---------- Screen/print visibility helpers ---------- */
.print-only { display: none !important; }


/* Smaller logo grid (used for the single Funding logo) */
.logo-grid--small { grid-template-columns: repeat(auto-fit, minmax(140px, 220px)); justify-content: center; }
.logo-grid--small .logo-tile { min-height: 100px; }

/* ---------- Print styles (must come last so they override) ---------- */
@media print {
  .banner,
  .site-header,
  .site-footer,
  .nav-toggle,
  .nav,
  .no-print,
  .cta-row,
  .pill,
  .screen-only { display: none !important; }
  .print-only { display: block !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  main { padding: 0; }
  .section { padding: 12pt 0; }
  .section--alt, .section--green { background: transparent; }
  .callout {
    background: transparent;
    border: 1pt solid #333;
    border-left: 3pt solid #000;
    page-break-inside: avoid;
  }
  h1, h2, h3 { color: #000; page-break-after: avoid; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]:after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* ---------- Logo tile text label (placeholder until real PNG/SVG dropped in /logos) ---------- */
.logo-tile__label {
  display: inline-block;
  font-family: var(--font-head);
  color: var(--green-900);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}
.logo-tile img + .logo-tile__label { display: none; }

/* Section heading above each logo tier on the homepage */
.logo-section-heading { text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; color: var(--ink-500); font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
