/* Service pages (/grants, /sred-tax-credits, /wage-subsidies, /business-loans, /not-for-profits).
   The homepage keeps its own inline styles; this sheet repeats its tokens, type and components
   for the plainer, mostly static pages. No JavaScript is needed for anything here. */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-var-latin.woff2") format("woff2"); }

:root {
  --orange: #FF7A00;
  --orange-deep: #F26200;
  --orange-soft: #FFF1E3;
  --teal: #00B3B0;
  --teal-deep: #00807E;
  --teal-ink: #006B69;
  --mint: #DFF6F2;
  --mint-soft: #F2FBF9;
  --ink: #1F2937;
  --ink-2: #374151;
  --muted: #5B6675;
  --line: #E3EBEA;
  --line-strong: #CFDCDA;
  --font-head: "Poppins", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, .06), 0 4px 12px -6px rgba(31, 41, 55, .12);
  --shadow-md: 0 2px 6px rgba(31, 41, 55, .05), 0 24px 48px -24px rgba(31, 41, 55, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main, footer { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .65em; font: 600 .8125rem/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--orange); flex: none; }
.h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; margin-top: .8rem; }
.lead { font-size: clamp(1.0625rem, 1.35vw, 1.2rem); color: var(--muted); margin-top: 1rem; }
.hl { color: var(--teal-deep); }
.fine { font-size: .8125rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: var(--h); padding: 0 1.6em; border: 0; border-radius: 999px; font: 600 1rem/1 var(--font-head); text-decoration: none; white-space: nowrap; cursor: pointer; transition: box-shadow .35s var(--ease), color .35s; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #FF8A1C 0%, var(--orange) 45%, var(--orange-deep) 100%); box-shadow: 0 12px 26px -12px rgba(242, 98, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .28); text-shadow: 0 1px 1px rgba(120, 45, 0, .28); }
.btn-primary:hover { box-shadow: 0 18px 34px -14px rgba(242, 98, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal-ink); }
.btn-block { width: 100%; }
@media (max-width: 480px) { .btn { white-space: normal; height: auto; min-height: var(--h); padding-block: .85em; text-align: center; } .band .btn { width: 100%; } }

/* ---------- Page hero ---------- */
.phero { position: relative; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); background: radial-gradient(900px 520px at 88% -10%, var(--mint) 0%, transparent 62%), linear-gradient(180deg, #fff, var(--mint-soft)); }
.phero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5em; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-deep); text-decoration: underline; }
.phero .eyebrow { margin-top: 1.6rem; }
.phero h1 { margin-top: .9rem; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.phero .lead { max-width: 36em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.glance { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
.glance h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.glance ul { list-style: none; display: grid; gap: 18px; margin-top: 1.2rem; }
.glance li { display: flex; gap: 14px; align-items: flex-start; }
.glance li strong { display: block; font: 700 1.2rem/1.25 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.glance li span.t { display: block; margin-top: .2rem; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.dot { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-deep); }
.dot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glance .fine { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--soft { background: linear-gradient(180deg, #fff 0%, var(--mint-soft) 14%, var(--mint-soft) 86%, #fff 100%); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.prose { max-width: 760px; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--ink-2); }

/* Program cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); list-style: none; }
.pcard { height: 100%; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.pcard h3 { font-size: 1.15rem; }
.pcard h3 a { color: inherit; text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.pcard h3 a::after { content: " \2192"; color: var(--orange-deep); }
.pcard h3 a:hover { background-size: 100% 2px; }
.pcard p { margin-top: .55rem; color: var(--muted); font-size: .98rem; }
.pcard .tag { display: inline-block; margin-top: 1rem; padding: .3em .7em; border-radius: 8px; background: #F3F6F7; font: 500 .78rem var(--font-body); color: var(--ink-2); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Two lists side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.panel h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.ticks { list-style: none; display: grid; gap: 14px; margin-top: 1.3rem; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8.5' fill='none' stroke='%2300807E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Numbered steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); counter-reset: s; }
.steps li { position: relative; padding: clamp(22px, 2.4vw, 28px); border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font: 700 1rem var(--font-head); box-shadow: 0 10px 20px -10px rgba(242, 98, 0, .8); }
.steps h3 { margin-top: 1.1rem; font-size: 1.1rem; }
.steps p { margin-top: .5rem; color: var(--muted); font-size: .97rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Note callout */
.note { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin-top: clamp(28px, 4vw, 40px); padding: 20px 24px; border-radius: 18px; background: linear-gradient(160deg, #fff 0%, #FFF8F1 100%); box-shadow: inset 0 0 0 1px #FFD9B5; }
.note p { color: var(--ink-2); }
.note b { color: var(--ink); }

/* FAQ (native details, works without JavaScript) */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: clamp(1.02rem, 1.4vw, 1.12rem); font-weight: 600; line-height: 1.4; letter-spacing: normal; }
.qa summary:hover h3 { color: var(--teal-deep); }
.qa summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--line); font: 600 1.2rem/1 var(--font-head); color: var(--ink); }
.qa[open] summary::after { content: "\2212"; background: var(--orange); color: #fff; box-shadow: none; }
.qa p { padding: 0 48px 24px 2px; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* Author, date and intake status under a page's title */
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 1.4rem; font-size: .9rem; color: var(--muted); }
.byline b { color: var(--ink-2); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: .5em; padding: .3em .8em; border-radius: 999px; font: 600 .8rem var(--font-head); background: var(--mint); color: var(--teal-ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--closed { background: #F3F4F6; color: #4B5563; }
.status--mixed { background: var(--orange-soft); color: #A24300; }

/* Question-led content: each section opens with the question and a direct answer */
.qs { max-width: 780px; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4.5vw, 52px); }
.qs > * { min-width: 0; }
.qs h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
.qs .answer { margin-top: .8rem; font-size: 1.08rem; color: var(--ink); }
.qs p:not(.answer), .qs li { color: var(--ink-2); }
.qs p + p, .qs p + ul, .qs ul + p { margin-top: .8rem; }
.qs ul { padding-left: 1.2em; display: grid; gap: .45rem; }
.qs table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: .95rem; }
.qs th, .qs td { padding: .7rem .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.qs th { font: 600 .82rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.src { font-size: .82em; white-space: nowrap; }
.src a { color: var(--teal-deep); }

/* Per-region blocks inside a question section (RTRI guide) */
.regions { display: grid; gap: 14px; margin-top: 1.2rem; }
.region { padding: 18px 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.region h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.region h3 + p { margin-top: .45rem; }

/* Official sources list */
.sources { max-width: 780px; margin-top: clamp(40px, 5vw, 56px); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1.1rem; }
.sources ol { margin-top: .8rem; padding-left: 1.3em; display: grid; gap: .4rem; font-size: .92rem; color: var(--muted); }
.sources a { word-break: break-word; }

/* Author box: a guide's named author, written by scripts/set-landing-byline.mjs from /about (photo or
   initials, name, short bio, links). It sits just above the Sources list. */
.author-box { max-width: 780px; margin-top: clamp(36px, 4.5vw, 52px); display: flex; align-items: flex-start; gap: clamp(14px, 2.4vw, 20px); padding: clamp(18px, 3vw, 24px); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.author-box__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint) 0%, #C9EFE8 100%); color: var(--teal-ink); font: 600 1.2rem/1 var(--font-head); letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0, 128, 126, .14); }
.author-box__label { font: 600 .74rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.author-box__name { margin-top: .35rem; font: 600 1.1rem/1.3 var(--font-head); letter-spacing: -.01em; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__name a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.author-box__bio { margin-top: .45rem; color: var(--ink-2); font-size: .97rem; line-height: 1.6; }
.author-box__links { margin-top: .55rem; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; font-weight: 600; }
.author-box__links a { text-underline-offset: 3px; }

/* Call to action band */
.band { padding-block: clamp(56px, 7vw, 88px); }
.band__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(32px, 5vw, 56px); border-radius: 28px; background: radial-gradient(600px 300px at 90% 0%, rgba(0, 179, 176, .35), transparent 60%), linear-gradient(135deg, #0F1722 0%, #18222F 100%); color: #fff; }
.band__box h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 18em; }
.band__box p { margin-top: .6rem; color: #C9D3DE; max-width: 34em; }

/* Related services */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; }
.related a { display: block; height: 100%; padding: 20px 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--ink); transition: box-shadow .3s; }
.related a:hover { box-shadow: inset 0 0 0 1.5px var(--teal); }
.related b { display: block; font: 600 1.02rem var(--font-head); }
.related span { display: block; margin-top: .3rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 1000px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .related { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, var(--mint-soft) 0%, #fff 40%); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-block: clamp(56px, 7vw, 80px) clamp(40px, 5vw, 56px); }
.footer__brand img { height: 48px; width: auto; }
.footer__brand p { margin-top: 1.1rem; color: var(--muted); max-width: 22em; font-size: .97rem; }
.footer__brand .tagline { margin-top: .9rem; font: 600 .8rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.footer__brand .tagline b { color: var(--orange-deep); }
.footer__h { font: 600 .8rem/1.1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer ul { list-style: none; display: grid; gap: 10px; margin-top: 1.1rem; }
.footer ul a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .97rem; }
.footer ul a:hover { color: var(--teal-deep); }
.footer__contact .btn { --h: 48px; margin-top: 1.2rem; }
.footer__contact a.mail { display: inline-block; margin-top: 1.1rem; font-weight: 600; text-decoration: none; }
.footer__contact a.tel { display: inline-block; margin-top: .45rem; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer__contact address { margin-top: .9rem; font-style: normal; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.footer__bottom { background: #8DCFC6; color: #0E3B39; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px; font-size: .84rem; }
.footer__bottom a { color: #0E3B39; }
.footer__legal { padding-block: 0 20px !important; font-size: .76rem !important; color: #164E4B; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* Keeps a hyphenated name (not-for-profit) on one line. */
.nobr { white-space: nowrap; }
