/* Page styles. Shared colours, header, footer and buttons are in base.css. */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }

/* ---------- hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; background: var(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,41,61,.10) 0%, rgba(19,41,61,.45) 38%, rgba(19,41,61,.90) 100%); }
.hero-text { position: relative; padding: 120px 0 56px; }
.hero h1 { color: var(--white); font-size: clamp(2.6rem, 7vw, 4.75rem); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero .lede { max-width: 40rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--brass-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }

/* ---------- title band (inner pages) */
.title-band { background: var(--navy); color: var(--white); padding: 56px 0 44px; position: relative; }
.title-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--brass), var(--brass-light), var(--brass)); }
.title-band h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.1rem); max-width: 48rem; }
.title-band.compact { padding: 32px 0 28px; }
.title-band.compact h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.title-band.compact .lede { font-size: 1.05rem; }
.title-band .lede { color: rgba(255,255,255,.85); max-width: 44rem; font-size: 1.15rem; margin: 0; }
.title-band .meta { color: rgba(255,255,255,.75); margin: 0; }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 12px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- sections */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0 24px; }
.section-sand { background: #efe7d6; border-block: 1px solid var(--sand); }
.section-navy { background: var(--ink); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 28px; }
.section-label { display: flex; align-items: center; gap: 12px; font: 600 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark); margin: 0 0 14px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- cards */
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(19,41,61,.05); overflow: hidden; }
.card-body { padding: 24px; }
.brass-strip { height: 4px; background: var(--brass); }
.stat-card ul { padding-left: 1.1em; margin: 0 0 1em; }
.stat-card li { margin-bottom: .35em; }
.stat-card li::marker { color: var(--brass); }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-grid > .tool { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; border-top: 4px solid var(--navy); }
.tool-grid > .tool:nth-child(2) { border-top-color: var(--sea); }
.tool-grid > .tool:nth-child(3) { border-top-color: var(--brass); }
.tool h3 { font-size: 1.35rem; margin-bottom: .4em; }
.tool p { margin: 0 0 1em; color: var(--muted); }
.tool p:last-child { margin: auto 0 0; }
.tool a.btn { align-self: flex-start; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { padding: 22px 24px; border-left: 4px solid var(--brass); }
.post-card h3 { font-size: 1.2rem; margin-bottom: .45em; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.post-card .meta { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 8px; }

.signup { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.signup h2 { font-size: 1.9rem; margin-bottom: .2em; }
.signup p { margin: 0; color: rgba(255,255,255,.85); max-width: 40rem; }

/* ---------- prose */
.prose { max-width: 46rem; }
.prose-wide { max-width: 60rem; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose > :first-child, .prose > div > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brass-dark); }
.prose hr { border: 0; height: 1px; background: var(--sand); margin: 2.2em 0; }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: 6px; border: 1px solid var(--sand); background: var(--white); margin-inline: auto; }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: .6em; text-align: center; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--brass); font-family: var(--serif); color: var(--navy); }
figure.chart { background: var(--white); border: 1px solid var(--sand); border-radius: 6px; padding: 8px; }
figure.chart iframe { display: block; }

.callout { background: var(--white); border: 1px solid var(--sand); border-left: 4px solid var(--brass); border-radius: 6px; padding: 16px 20px; margin: 0 0 1.6em; }
.callout p:last-child { margin-bottom: 0; }
.note { font-size: .95rem; color: var(--muted); }

/* Numbered concerns on the 3A page */
.prose { counter-reset: concern; }
.concern { position: relative; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px 24px 8px 76px; margin-bottom: 18px; }
.concern::before { counter-increment: concern; content: counter(concern); position: absolute; left: 22px; top: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1.1rem/38px var(--serif); text-align: center; }
.concern h3 { margin-top: 0 !important; }
@media (max-width: 560px) { .concern { padding: 64px 18px 6px; } .concern::before { top: 16px; left: 18px; } }

/* Goal list */
.goal-list { list-style: none; padding: 0 !important; counter-reset: goal; }
.goal-list li { counter-increment: goal; position: relative; padding: 16px 18px 16px 64px; background: var(--white); border: 1px solid var(--sand); border-radius: 8px; margin-bottom: 12px !important; }
.goal-list li::before { content: counter(goal); position: absolute; left: 18px; top: 14px; font: 700 1.5rem/1 var(--serif); color: var(--brass); }

/* FAQ */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 0 !important; list-style: none; }
.faq-nav a { display: block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--sand); background: var(--white); text-decoration: none; color: var(--navy); font-weight: 600; font-size: .92rem; }
.faq-nav a:hover { border-color: var(--brass); }
details.qa { background: var(--white); border: 1px solid var(--sand); border-radius: 8px; margin-bottom: 10px; }
details.qa > summary { cursor: pointer; padding: 14px 44px 14px 18px; font: 400 1.12rem/1.35 var(--serif); color: var(--navy); list-style: none; position: relative; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font: 400 1.5rem/1.2 var(--sans); color: var(--brass); }
details.qa[open] > summary::after { content: "−"; }
details.qa > div { padding: 0 18px 6px; border-top: 1px solid var(--sand); padding-top: 14px; }

/* Partner cards on the ADU page */
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2em 0 1.6em; }
@media (max-width: 640px) { .partners { grid-template-columns: 1fr; } }
.partner { background: var(--white); border: 1px solid var(--sand); border-radius: 8px; padding: 18px; }
.partner img { max-height: 64px; width: auto; margin-bottom: 12px; }
.partner h3 { font-size: 1.1rem; margin: 0 0 .3em !important; }
.partner p { margin: 0; font-size: .97rem; }

/* Pledge card */
.pledge { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6em; }
.pledge-head { background: var(--navy); color: var(--white); padding: 22px 26px; }
.pledge-head p { margin: 0; color: var(--brass-light); font: italic 400 1.05rem var(--serif); }
.pledge-head h2 { color: var(--white); margin: .15em 0 0 !important; font-size: 1.8rem; }
.pledge-body { padding: 22px 26px; font-size: 1.12rem; }
.pledge-body p:last-child { margin-bottom: 0; }

/* ---------- embedded tools */
.embed-wrap { background: var(--ink); padding-bottom: 0; }
.embed-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; color: rgba(255,255,255,.85); font-size: .92rem; }
.embed-bar a { color: var(--brass-light); font-weight: 600; text-decoration: none; }
.embed-bar a:hover { text-decoration: underline; color: var(--white); }
.tool-frame { display: block; width: 100%; height: calc(100vh - var(--header-h) - 44px); min-height: 560px; border: 0; background: var(--white); }

/* ---------- post nav */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.post-nav a { display: block; padding: 16px 18px; background: var(--white); border: 1px solid var(--sand); border-radius: 8px; text-decoration: none; color: var(--navy); font-family: var(--serif); }
.post-nav a span { display: block; font: 600 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 4px; }
.post-nav a.newer { text-align: right; }
.post-nav a:hover { border-color: var(--brass); }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.newer { text-align: left; } }

/* ---------- additions */
.tool-grid-2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 2em; }
@media (max-width: 760px) { .tool-grid-2 { grid-template-columns: 1fr; } }
.prose .tool-grid { max-width: none; }
.prose .tool h3 { margin-top: 0; }
a.partner { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.partner:hover { border-color: var(--brass); color: var(--ink); }
a.partner h3 { color: var(--sea); }
@media (max-width: 600px) { .hero .eyebrow { display: none; } .hero-text { padding-top: 160px; } }
