/* Second Dawn site styles: landing page (index.html) and generated blog pages (scripts/build-blog.mjs). */
:root {
  --ink: #243b3b;
  --body: #50635f;
  --muted: #627572;
  --teal: #397b73;
  --teal-deep: #285e59;
  --coral: #df9b78;
  --paper: #faf8f2;
  --cream: #f2efe6;
  --sage: #e9eee6;
  --line: #dce3db;
  --serif: "Crimson Pro", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, "Helvetica Neue", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 400; }
:is(a, button, summary, input, select):focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[id] { scroll-margin-top: 92px; }
.shell { width: min(1160px, calc(100% - 56px)); margin: 0 auto; }
.skip { position: fixed; z-index: 50; left: 18px; top: 10px; padding: 12px 18px; background: var(--paper); border: 2px solid var(--teal-deep); border-radius: 8px; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.icon { width: 18px; height: 18px; flex: none; }

/* Eyebrow + buttons */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--coral); }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--teal-deep); color: #fff !important; border-radius: 999px; padding: 13px 22px; text-decoration: none; font-size: 15px; font-weight: 600; transition: transform .2s, background .2s; }
.cta:hover { transform: translateY(-2px); background: #214e49; }
.cta .icon { width: 16px; height: 16px; }
.cta-light { background: #f2e9d9; color: #35434d !important; }
.cta-light:hover { background: #fff5e6; }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: #335f59; font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #9cbbb1; padding-bottom: 3px; }
.textlink .icon { width: 15px; height: 15px; }

/* Crisis bar, header, mobile nav */
.topline { background: #e7eee7; text-align: center; color: #315a54; font-size: 13px; letter-spacing: .01em; padding: 9px 18px; }
.topline a { font-weight: 650; text-underline-offset: 3px; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(250,248,242,.94); border-bottom: 1px solid rgba(36,59,59,.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.035em; font-size: 20px; white-space: nowrap; color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--teal-deep); }
.brand small { margin-left: 2px; padding-left: 11px; border-left: 1px solid #d4dcd2; color: #758279; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.navlinks { display: flex; gap: clamp(18px, 2.6vw, 36px); align-items: center; }
.navlinks a { text-decoration: none; font-size: 14px; color: #536763; transition: color .2s; }
.navlinks a:hover, .navlinks a[aria-current] { color: var(--teal-deep); }
.menu-btn { display: none; border: 1px solid var(--line); border-radius: 50%; width: 44px; height: 44px; color: var(--ink); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.mobile-nav { display: none; }

/* Footer */
.site-footer { background: #293c3c; color: #eef0e8; padding: 44px 0 28px; }
.footer-main { display: flex; justify-content: space-between; gap: 35px; align-items: flex-start; padding-bottom: 28px; }
.site-footer .brand { color: #f2f2e8; }
.site-footer .brand svg { color: #a9cfc2; }
.site-footer p { max-width: 380px; font-size: 14px; line-height: 1.7; color: #bdcbc3; margin: 14px 0 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 36px; }
.footer-links a { color: #e0e7df; font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(240,245,235,.16); padding-top: 18px; display: flex; justify-content: space-between; gap: 18px; color: #aebdb5; font-size: 13px; }

/* ---------- Landing ---------- */
.display { font-family: var(--serif); }
.hero { min-height: 660px; position: relative; isolation: isolate; display: flex; align-items: center; background: #dfe7df; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(247,246,237,.96) 0%, rgba(247,246,237,.86) 40%, rgba(247,246,237,.18) 74%, rgba(247,246,237,.02) 100%), url("/assets/images/hero-path.webp") center 55% / cover; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; z-index: -1; background: linear-gradient(0deg, var(--paper), transparent); }
.hero-content { max-width: 600px; padding: 88px 0 128px; animation: rise .8s both; }
.hero h1 { font-family: var(--serif); font-size: clamp(50px, 6.6vw, 82px); line-height: .99; letter-spacing: -.035em; margin: 22px 0 24px; max-width: 650px; }
.hero-content > p { font-size: 18px; line-height: 1.7; max-width: 500px; color: var(--body); margin: 0 0 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.trustline { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: #586b67; font-size: 14px; }
.trustline .icon { width: 17px; color: var(--teal); }
.hero-note { position: absolute; right: max(4vw, calc((100vw - 1160px)/2)); bottom: 96px; background: rgba(250,248,242,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.75); border-radius: 18px; padding: 14px 22px; box-shadow: 0 14px 38px rgba(45,69,57,.08); }
.hero-note > span { display: block; color: #628575; font-size: 18px; }
.asterisk { display: block; width: 1em; height: 1em; }
.hero-note strong { display: block; margin-top: 2px; font: 400 23px/1.1 var(--serif); }

.strip { padding: 0 0 76px; }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sage); border-radius: 17px; overflow: hidden; }
.strip-item { padding: 24px 26px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid #d6e0d7; }
.strip-item:last-child { border: 0; }
.strip-item .icon { width: 20px; color: var(--teal); margin-top: 2px; }
.strip-item span { font-size: 14px; line-height: 1.5; color: #49605a; }
.strip-item strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }

.section { padding: 104px 0; }
.section-heading { max-width: 640px; margin-bottom: 44px; }
.section h2, .eligibility h2, .final h2 { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.02em; margin: 16px 0 16px; }
.section-heading p, .lede { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 540px; margin: 0; }

.approach { background: var(--cream); }
.approach-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 8%; align-items: start; }
.aside-quote { padding: 26px 0 0 24px; border-left: 1px solid #d8a487; max-width: 320px; margin-top: 28px; }
.aside-quote p { font: 400 26px/1.28 var(--serif); margin: 0; color: #48625b; }
.steps { border-top: 1px solid #d9ded5; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid #d9ded5; }
.step-no { font: 400 24px var(--serif); color: #9b806b; }
.step h3 { font: 500 23px/1.2 var(--serif); margin: 0 0 6px; }
.step p { font-size: 15px; line-height: 1.7; color: #5d6e69; margin: 0; max-width: 500px; }

.service-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8%; align-items: start; }
.service-list { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-icon { width: 38px; height: 38px; background: #e8eeea; color: var(--teal); border-radius: 50%; display: grid; place-items: center; }
.service-icon .icon { width: 17px; height: 17px; }
.service h3 { font: 500 22px/1.2 var(--serif); margin: 0 0 4px; }
.service p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; }
.callout { background: #dfeae2; padding: 38px; border-radius: 18px; position: relative; overflow: hidden; position: sticky; top: 110px; }
.callout::after { content: ""; position: absolute; right: -32px; top: -42px; width: 180px; height: 180px; border: 1px solid rgba(57,123,115,.19); border-radius: 50%; box-shadow: 0 0 0 20px rgba(57,123,115,.035), 0 0 0 42px rgba(57,123,115,.03); pointer-events: none; }
.callout h3 { font: 400 36px/1.08 var(--serif); max-width: 330px; margin: 18px 0 12px; }
.callout-wide { position: relative; top: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 40px; align-items: end; }
.callout-wide .eyebrow, .callout-wide h3, .callout-wide p { grid-column: 1; }
.callout.callout-wide h3, .callout.callout-wide p { max-width: 560px; }
.callout.callout-wide p { margin-bottom: 0; }
.approach .callout-wide { margin-top: 72px; }
.callout-wide .cta { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.callout p { color: #4d655d; font-size: 15px; line-height: 1.7; max-width: 360px; margin: 0 0 22px; }

.partners { background: #333f50; color: #f7f5ec; position: relative; overflow: hidden; }
.partners::before { content: ""; position: absolute; width: 460px; height: 460px; border: 1px solid rgba(240,236,220,.12); border-radius: 50%; right: -100px; top: -185px; box-shadow: 0 0 0 32px rgba(240,236,220,.025), 0 0 0 80px rgba(240,236,220,.025); pointer-events: none; }
.partners .eyebrow { color: #d3c4a5; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.partner-grid h2 { max-width: 480px; }
.partner-grid p { color: #d1d8d6; font-size: 16px; line-height: 1.75; max-width: 450px; margin: 0 0 26px; }
.partner-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; margin: 8px 0 26px; }
.partner-benefits span { border-top: 1px solid rgba(240,236,220,.18); padding: 14px 0; color: #f3f1e8; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.partner-benefits .icon { color: #d9b699; width: 16px; }

.eligibility { background: var(--paper); padding: 88px 0; }
.eligibility-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: center; }
.eligibility p { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 24px; }
.eligibility-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eligibility-card { background: #fff; border: 1px solid #e0e1d7; border-radius: 14px; padding: 20px 22px; }
.eligibility-card strong { display: block; font: 500 21px var(--serif); margin-bottom: 4px; }
.eligibility-card span { display: block; font-size: 14px; line-height: 1.6; color: #66726c; }

.resource-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8%; align-items: start; }
.emergency { margin-top: 22px; padding: 14px 16px; background: #f0e7dd; border-radius: 10px; color: #5a4c43; font-size: 15px; line-height: 1.6; }
.external { display: flex; flex-direction: column; margin-top: 22px; }
.external a { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; text-decoration: none; font: 500 19px var(--serif); }
.external a:hover { color: var(--teal-deep); }
.external .icon { width: 15px; color: var(--teal); }
.crisis-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crisis { border: 1px solid #dfe4db; border-radius: 13px; padding: 16px 18px; background: #f5f4ed; }
.crisis strong { display: block; font-size: 15px; margin-bottom: 2px; }
.crisis small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crisis a { color: #2f665e; font-size: 15px; font-weight: 650; text-decoration: none; display: inline-block; margin-right: 14px; text-underline-offset: 3px; }
.crisis a:hover { text-decoration: underline; }

.faq { background: var(--sage); }
.faq-layout { display: grid; grid-template-columns: .74fr 1.26fr; gap: 8%; }
.faq details { border-top: 1px solid #cfdad1; padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid #cfdad1; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; font: 500 22px/1.25 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px var(--sans); color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-size: 16px; line-height: 1.75; color: #556862; max-width: 580px; margin: 12px 26px 0 0; }

.final { padding: 88px 0; text-align: center; background: #d8e6df; position: relative; overflow: hidden; }
.final::before, .final::after { content: ""; position: absolute; width: 290px; height: 290px; border: 1px solid rgba(57,123,115,.17); border-radius: 50%; top: 50%; transform: translateY(-50%); pointer-events: none; }
.final::before { left: -140px; box-shadow: 0 0 0 25px rgba(57,123,115,.035), 0 0 0 58px rgba(57,123,115,.025); }
.final::after { right: -140px; box-shadow: 0 0 0 25px rgba(57,123,115,.035), 0 0 0 58px rgba(57,123,115,.025); }
.final h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.final p { font-size: 17px; color: #4f665c; margin: 0 auto 26px; max-width: 520px; }

/* ---------- Blog index ---------- */
.blog-hero { position: relative; min-height: 460px; isolation: isolate; overflow: hidden; background: #e8eee5; }
.blog-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/images/blog-hero.webp") 67% 0 / cover no-repeat; }
.blog-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(248,247,240,.98), rgba(248,247,240,.9) 40%, rgba(248,247,240,.2) 80%), linear-gradient(0deg, rgba(226,235,225,.43), transparent 46%); }
.blog-hero-content { position: relative; min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 40px 0; }
.blog-hero h1 { margin: 0 0 16px; font: 500 clamp(50px, 7vw, 80px)/.95 var(--serif); letter-spacing: -.045em; }
.blog-hero-content > p { max-width: 500px; margin: 0 0 24px; color: #4f6058; font-size: 17px; line-height: 1.7; }
.blog-hero h1 em, .blog-index h2 em, .blog-about h2 em { color: #588178; font-weight: 400; }
.blog-hero .textlink { margin-top: 22px; }

.ribbon { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -58px; border-radius: 14px; background: var(--sage); overflow: hidden; box-shadow: 0 12px 32px rgba(50,72,55,.06); }
.ribbon > a { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; text-decoration: none; transition: background .18s ease; }
.ribbon > a:hover { background: #e1eadf; }
.ribbon > a + a { border-left: 1px solid rgba(75,111,90,.13); }
.ribbon-num { margin-top: 2px; color: #829a8b; font: 15px var(--serif); }
.ribbon > a > span:nth-child(2) { display: grid; line-height: 1.45; }
.ribbon small { color: #5d7b6c; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ribbon strong { color: #2f5045; font-size: 16px; }
.ribbon em { color: #66756b; font-size: 14px; font-style: normal; }

.blog-index { padding: 88px 0; }
.blog-index-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.blog-index h2, .blog-about h2 { margin: 14px 0 0; font: 500 clamp(40px, 5.5vw, 60px)/1 var(--serif); letter-spacing: -.04em; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 32px 0 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 38px; border: 1px solid #dce2d8; border-radius: 20px; padding: 0 16px; color: #56655d; background: #faf9f3; font: 500 14px var(--sans); cursor: pointer; transition: background .16s, border .16s, color .16s; }
.filters button:hover { border-color: #9cb3a3; }
.filters button[aria-pressed="true"] { border-color: #3c7567; color: #fff; background: #3c7567; }
.search { width: min(260px, 100%); min-height: 40px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #c9d4c8; color: #6a8577; }
.search input { width: 100%; border: 0; outline: 0; color: #36493f; background: transparent; font: 15px var(--sans); }
.search input::placeholder { color: #8b958c; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.featured-card { border: 1px solid #e0e3d9; border-radius: 12px; background: linear-gradient(125deg, #eef1e8, #f9f8f2 73%); transition: box-shadow .2s, transform .2s; }
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 13px 33px rgba(53,78,62,.07); }
.featured-card > a { min-height: 250px; height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 26px 22px; text-decoration: none; }
.card-category { color: #4b7666; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #6f7b72; font-size: 13px; }
.card-meta > i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #b8c0b4; }
.featured-card .card-meta { margin-top: 12px; }
.featured-card h3 { max-width: 500px; margin: 10px 0 8px; color: #2b4840; font: 500 29px/1.08 var(--serif); letter-spacing: -.015em; }
.featured-card p { max-width: 500px; margin: 0 0 18px; color: #5f6c65; font-size: 15px; line-height: 1.65; }
.read-link { margin-top: auto; border-bottom: 1px solid #a9bdb1; padding-bottom: 2px; color: #2f6a5d; font-size: 14px; font-weight: 700; }

.more { margin-top: 48px; }
.more-heading { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #dce1d7; }
.more-heading h3 { margin: 0; color: #38564b; font: 500 27px var(--serif); }
.more-heading > span { color: #727e74; font-size: 14px; }
.list-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; border-bottom: 1px solid #e3e5dc; padding: 22px 6px; transition: background .18s; }
.list-item:hover { background: #f2f2e9; }
.list-index { padding-top: 2px; color: #7d978a; font: 16px var(--serif); }
.list-item h4 { margin: 6px 0 4px; color: #2f5045; font: 500 23px/1.18 var(--serif); }
.list-item h4 a { text-decoration: none; }
.list-item h4 a::after { content: ""; position: absolute; inset: 0; }
.list-item { position: relative; }
.list-item h4 a:hover { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.list-item p { margin: 0; color: #66726b; font-size: 15px; line-height: 1.65; }
.empty { padding: 54px 20px; border-radius: 12px; text-align: center; background: #edf0e8; }
.empty h3 { margin: 0 0 8px; color: #36574b; font: 500 28px var(--serif); }
.empty p { color: #5f6e65; font-size: 15px; margin: 0 0 12px; }
.empty button { border: 0; border-bottom: 1px solid #85a194; padding: 3px 0; color: #2f6a5d; background: transparent; font: 700 14px var(--sans); cursor: pointer; }

.blog-about { padding: 76px 0; background: #edf0e8; }
.blog-about-inner { display: grid; grid-template-columns: 120px minmax(0, 660px); justify-content: center; gap: 40px; align-items: center; }
.about-mark { width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid #c2d1c3; border-radius: 50%; color: #64907c; font: 44px var(--serif); }
.blog-about p { max-width: 580px; margin: 12px 0 16px; color: #5c6b63; font-size: 16px; line-height: 1.8; }

/* Help band (bottom of every blog page) */
.help-band { padding: 72px 0; background: #315f55; color: #fbf8ed; }
.help-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.help-band .eyebrow { color: #d2dfd3; }
.help-band .eyebrow::before { background: #d8aa91; }
.help-band h2 { margin: 14px 0 10px; font: 500 clamp(38px, 5vw, 56px)/1 var(--serif); letter-spacing: -.035em; }
.help-inner > div:first-child > p { max-width: 440px; color: #d9e2d9; font-size: 16px; margin: 0 0 22px; }
.help-band .cta { background: #f2e9d9; color: #24443d !important; }
.help-band .cta:hover { background: #fff5e6; }
.crisis-note { max-width: 280px; padding-left: 24px; border-left: 1px solid rgba(229,239,225,.25); color: #d7e2d9; font-size: 14px; }
.crisis-note strong { color: #f7f5eb; font-size: 16px; }
.crisis-note p { margin: 6px 0 12px; line-height: 1.7; }
.crisis-note a { color: #fff; font-size: 16px; font-weight: 700; }
.crisis-note .divider { display: inline-block; height: 14px; margin: 0 12px; border-left: 1px solid rgba(255,255,255,.35); vertical-align: middle; }
.crisis-note small { display: block; margin-top: 8px; font-size: 13px; }

/* ---------- Article / resources / privacy ---------- */
.page-header { position: relative; background: linear-gradient(135deg, #e9eee6 0%, var(--paper) 60%, #f3ece2 100%); border-bottom: 1px solid var(--line); }
.page-header-inner { max-width: 780px; margin: 0 auto; padding: 64px 24px 56px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; color: #4d635c; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 30px; }
.back-link:hover { color: var(--teal-deep); }
.page-header h1 { font: 500 clamp(36px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.025em; margin: 16px 0 0; }
.page-header .eyebrow + h1 { margin-top: 16px; }
.page-header .back-link + h1 { margin-top: 0; }
.page-sub { color: var(--body); font-size: 17px; line-height: 1.7; margin: 18px 0 0; }
.page-meta { color: #66756f; font-size: 15px; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-meta i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #a9b4ab; }
.page-body { max-width: 780px; margin: 0 auto; padding: 56px 24px 88px; }
.page-body.boxed > .prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; }

.jump-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--sage); border: 1px solid #d3ddd3; border-radius: 12px; padding: 16px 20px; margin-bottom: 40px; }
.jump-picker label { font-weight: 600; color: var(--teal-deep); }
.jump-picker select { flex: 1; min-width: 200px; max-width: 100%; padding: 9px 12px; border: 1px solid #b9cbbf; border-radius: 8px; background: #fff; font: 16px var(--sans); color: var(--ink); }

.prose { font-size: 17px; line-height: 1.8; color: #3b4d49; overflow-wrap: anywhere; }
.prose h2 { font: 500 34px/1.15 var(--serif); color: var(--ink); margin: 56px 0 18px; letter-spacing: -.015em; }
.prose h3 { font: 500 26px/1.2 var(--serif); color: var(--ink); margin: 40px 0 14px; }
.prose h4 { font: 600 21px/1.25 var(--serif); color: var(--ink); margin: 32px 0 10px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 20px 0; }
.prose ul, .prose ol { margin: 20px 0; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--teal-deep); text-decoration: underline; text-decoration-color: rgba(40,94,89,.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--teal-deep); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--coral); background: #f6f0e8; padding: 12px 22px; margin: 32px 0; border-radius: 0 10px 10px 0; color: #4f5c58; }
.prose blockquote p { margin: 8px 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
.prose code { background: #eef1ea; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: #eef1ea; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--sage); font-weight: 600; color: var(--ink); }
.prose details { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: #fff; }
.prose details > summary { cursor: pointer; padding: 14px 20px; font: 500 20px var(--serif); color: var(--ink); }
.prose details[open] > summary { border-bottom: 1px solid var(--line); }
.prose details > :not(summary) { padding-left: 20px; padding-right: 20px; }
.prose details > :last-child { padding-bottom: 6px; }
.prose img { border-radius: 12px; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 900px) {
  .shell { width: min(100% - 40px, 640px); }
  .navlinks, .nav > .cta { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: flex; flex-direction: column; padding: 0 20px 14px; background: var(--paper); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 16px; color: #3f5652; }
  .mobile-nav a.cta { margin-top: 12px; padding: 14px 20px; color: #fff; border: 0; }
  .hero { min-height: 620px; }
  .hero::before { background: linear-gradient(90deg, rgba(247,246,237,.95), rgba(247,246,237,.8) 58%, rgba(247,246,237,.36)), url("/assets/images/hero-path.webp") 58% center / cover; }
  .hero-content { padding: 72px 0 116px; }
  .hero-note { display: none; }
  .approach-grid, .service-layout, .resource-layout, .faq-layout, .eligibility-inner, .partner-grid { grid-template-columns: 1fr; gap: 36px; }
  .callout { position: relative; top: 0; }
  .aside-quote { margin-top: 24px; }
  .section { padding: 76px 0; }
  .footer-main { flex-direction: column; }
}
@media (max-width: 600px) {
  .shell { width: calc(100% - 32px); }
  .topline { font-size: 12px; line-height: 1.5; }
  .nav { height: 66px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(90deg, rgba(247,246,237,.95), rgba(247,246,237,.85) 68%, rgba(247,246,237,.5)), url("/assets/images/hero-path.webp") 57% center / cover; }
  .hero-content { padding: 60px 0 100px; }
  .hero h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-content > p { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .strip { padding-bottom: 56px; }
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid #d6e0d7; padding: 16px 18px; }
  .strip-item:last-child { border-bottom: 0; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .callout { padding: 28px 24px; }
  .callout-wide { display: block; }
  .callout.callout-wide p { margin-bottom: 22px; }
  .partner-benefits, .eligibility-cards, .crisis-list { grid-template-columns: 1fr; }
  .eligibility { padding: 64px 0; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 10px 24px; }
  .footer-bottom { flex-direction: column; }
  .final::before, .final::after { opacity: .5; }
  .blog-hero, .blog-hero-content { min-height: 400px; }
  .blog-hero::after { background: linear-gradient(90deg, rgba(248,247,240,.98), rgba(248,247,240,.9) 66%, rgba(248,247,240,.45)), linear-gradient(0deg, rgba(230,237,227,.7), transparent 42%); }
  .blog-hero::before { background-size: auto 210%; }
  .blog-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .ribbon { width: 100%; margin-top: 0; grid-template-columns: 1fr; border-radius: 0; }
  .ribbon > a + a { border-top: 1px solid rgba(75,111,90,.13); border-left: 0; }
  .blog-index { padding: 60px 0; }
  .blog-index-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .controls { align-items: stretch; flex-direction: column-reverse; gap: 14px; margin-top: 24px; }
  .search { width: 100%; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-card > a { min-height: 0; padding: 22px 20px; }
  .featured-card h3 { font-size: 26px; }
  .list-item { grid-template-columns: 30px 1fr; gap: 8px; padding: 18px 2px; }
  .list-item h4 { font-size: 21px; }
  .blog-about { padding: 56px 0; }
  .blog-about-inner { grid-template-columns: 1fr; gap: 20px; }
  .about-mark { width: 76px; height: 76px; font-size: 32px; }
  .help-band { padding: 56px 0; }
  .help-inner { align-items: flex-start; flex-direction: column; gap: 30px; }
  .crisis-note { max-width: 100%; }
  .page-header-inner { padding: 44px 16px 40px; }
  .page-body { padding: 40px 16px 64px; }
  .page-body.boxed > .prose { padding: 24px 18px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 29px; }
}
.page-sub a { color: var(--teal-deep); text-underline-offset: 3px; }
