/* pages.css (2026-11-05): the site-wide finish layer, loaded after styles.css on every page.
   1. Calms the v3 system: one face for labels, one flat teal action, quieter hero texture.
   2. The editorial components of the site (section heroes, door cards, statement,
      stories index with filters, prose).
   3. The port of the legacy style.css classes, so every page renders on one system. */

/* ---------- 1. Finish ---------- */
:root { --navy: #0a1628; --paper-2: #f4f7f9; }
body { background: #fff; }
.eyebrow { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; }
.eyebrow::before { width: 18px; }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: none; }
.btn-primary:hover { background: var(--teal-glow); box-shadow: none; transform: none; }
.btn-ghost-dark:hover, .btn-ghost-light:hover { transform: none; }
.hero::before { display: none; }
.feature-card:hover { transform: none; }
.section-head h2 { font-weight: 700; }

/* ---------- 2. Editorial components ---------- */
.pg-hero { background: var(--navy); color: #e8f1f6; position: relative; overflow: hidden; }
.pg-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.pg-hero-inner { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 6rem); max-width: 860px; }
.pg-hero .pg-kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-glow); margin-bottom: 1.25rem; }
.pg-hero h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.06; margin-bottom: 1.5rem; max-width: 18ch; }
.pg-hero .pg-sub { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: #b9cad7; max-width: 56ch; margin-bottom: 2.25rem; }
.pg-hero .hero-ctas { margin-bottom: 0; }
.pg-hero .btn { min-height: 48px; font-size: 0.95rem; padding: 0 1.6rem; }

.pg-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.pg-section.alt { background: var(--paper-2); }
.pg-section.dark { background: var(--navy); color: #e8f1f6; }
.pg-head { max-width: 760px; margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }
.pg-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 1rem; }
.dark .pg-label { color: var(--teal-glow); }
.pg-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 1.1rem; color: var(--navy); }
.dark .pg-head h2 { color: #fff; }
.pg-head p { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.dark .pg-head p { color: #b9cad7; }

/* The doors */
.door-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.door-card { padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(0rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.75rem) 0; border-bottom: 1px solid var(--line); }
.door-card:nth-child(odd) { border-right: 1px solid var(--line); }
.door-card:nth-child(even) { padding-left: clamp(1.5rem, 3vw, 2.5rem); padding-right: 0; }
.door-card .door-for { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.8rem; }
.door-card h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.door-card h3 a { color: var(--navy); text-decoration: none; }
.door-card h3 a:hover { color: var(--teal-deep); }
.door-card p { color: var(--ink-soft); line-height: 1.65; max-width: 48ch; margin-bottom: 1.1rem; }
.door-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.door-links a { font-size: 0.95rem; font-weight: 600; color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid rgba(10, 118, 106, 0.3); }
.door-links a:hover { border-bottom-color: var(--teal-deep); }

/* The brand statement */
.statement { max-width: 900px; }
.statement h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; color: #fff; margin-bottom: 1.75rem; }
.statement p { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.7; color: #b9cad7; max-width: 62ch; }
.statement p + p { margin-top: 1.1rem; }
.statement .pg-cta { margin-top: 2.25rem; }

/* Numbers that a reader must trust: the value is loud, the label is quiet */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.figure { padding: 1.75rem 1.5rem 1.75rem 0; border-right: 1px solid var(--line); }
.figure + .figure { padding-left: 1.5rem; }
.figure:last-child { border-right: 0; }
.figure strong { display: block; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--navy); line-height: 1.1; margin-bottom: 0.5rem; }
.figure span { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; display: block; }
.figures-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1.25rem; max-width: 80ch; }

/* Lists of commitments or steps, numbered quietly */
.pg-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pg-row { display: grid; grid-template-columns: minmax(180px, 0.9fr) 2fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.pg-row h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); }
.pg-row p { color: var(--ink-soft); line-height: 1.7; max-width: 64ch; }
.pg-row p + p { margin-top: 0.8rem; }
.pg-row a { font-weight: 600; }
.dark .pg-row, .dark .pg-rows { border-color: rgba(159, 180, 196, 0.2); }
.dark .pg-row h3 { color: #fff; }
.dark .pg-row p { color: #b9cad7; }

/* The founder */
.founder-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.founder-block blockquote { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; color: var(--navy); }
.founder-block cite { display: block; margin-top: 1.25rem; font-style: normal; font-size: 0.95rem; color: var(--ink-soft); }
.founder-block p { color: var(--ink-soft); line-height: 1.75; }
.founder-block p + p { margin-top: 1rem; }

/* Breadcrumb and prose for article pages */
.pg-crumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.pg-crumb a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(100, 120, 138, 0.35); }
.pg-hero .pg-crumb { color: #9fb4c4; }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.8; color: #22313f; }
.prose p + p { margin-top: 1.2rem; }
.prose h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 2.75rem 0 1rem; color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 1rem 0; }
.prose li + li { margin-top: 0.5rem; }
.byline { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* Stories index */
.story-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2.5rem; margin-bottom: 2.5rem; }
.story-tools fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.story-tools legend { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.75rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 500; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid #c3d2dc; background: #fff; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.story-count { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.story-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.4rem 1.35rem; min-height: 220px; }
.story-card[hidden] { display: none; }
.story-card .story-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 0.75rem; }
.story-card h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.6rem; }
.story-card h3 a { color: var(--navy); text-decoration: none; }
.story-card h3 a::after { content: ''; position: absolute; inset: 0; }
.story-card { position: relative; }
.story-card:hover { border-color: #9fd9cf; }
.story-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.story-card .story-read { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--teal-deep); }
.story-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--paper-2); border-radius: 18px; padding: clamp(1.75rem, 4vw, 3rem); margin-bottom: 3rem; }
.story-feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem; }
.story-feature h2 a { color: var(--navy); text-decoration: none; }
.story-feature p { color: var(--ink-soft); line-height: 1.7; }

/* ---------- 3. Port of the legacy style.css classes ---------- */
.container { width: min(100% - 2rem, 1120px); margin: 0 auto; }
.section-text, .lead { color: var(--ink-soft); }
.lead { font-size: 1.05rem; max-width: 60ch; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.button-primary { background: var(--teal); color: var(--navy); }
.button-primary:hover { background: var(--teal-glow); }
.button-ghost { background: transparent; color: var(--teal-deep); border: 1px solid rgba(10, 118, 106, 0.5); }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; background: var(--navy); color: #fff; padding: 0.6rem 1rem; }
.skip-link:focus { left: 0; }
.legacy main h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.legacy main h2 { margin: 2rem 0 0.75rem; }
.legacy main p { margin: 0 0 1rem; }
.legacy main ul, .legacy main ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.legacy main li { margin: 0.35rem 0; }
.legacy main a:not(.button):not(.btn) { color: var(--teal-deep); }
.legacy .section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(2) { border-right: 0; }
  .figure:nth-child(3) { padding-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-block, .story-feature { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .door-grid { grid-template-columns: 1fr; }
  .door-card, .door-card:nth-child(even) { padding: 1.75rem 0; border-right: 0; }
  .door-card:nth-child(odd) { border-right: 0; }
  .pg-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 1.5rem 0; }
  .story-tools { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card { min-height: 0; }
  .pg-hero .hero-ctas { flex-direction: column; align-items: stretch; }
  .pg-hero .btn { width: 100%; }
}
@media (max-width: 420px) {
  .figures { grid-template-columns: 1fr; }
  .figure, .figure + .figure { padding: 1.25rem 0; border-right: 0; }
  .figure:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* FAQ disclosures on the editorial pages */
.pg-section details { border-bottom: 1px solid var(--line); max-width: 860px; }
.pg-section details:first-of-type { border-top: 1px solid var(--line); }
.pg-section summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 64px; padding: 1rem 0; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.pg-section summary::-webkit-details-marker { display: none; }
.pg-section summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--teal-deep); flex: none; }
.pg-section details[open] summary::after { content: '\2212'; }
.pg-section details p { padding: 0 0 1.4rem; color: var(--ink-soft); line-height: 1.7; max-width: 68ch; }

/* ---------- 2026-11-06 premier pass: art in every hero, covers on every card ---------- */
.pg-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pg-hero-grid .pg-hero-inner { max-width: none; }
.pg-hero-art { position: relative; }
.pg-hero-art img { width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(159, 180, 196, 0.18); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.story-card { padding: 0; overflow: hidden; }
.story-card > :not(.story-cover) { margin-left: 1.4rem; margin-right: 1.4rem; }
.story-card .story-label { margin-top: 1.2rem; }
.story-card .story-read { margin-bottom: 1.3rem; }
.story-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.story-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms var(--ease-out); }
.story-card:hover .story-cover img { transform: scale(1.03); }
.door-art { margin: 0 0 1.4rem; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy); }
.door-art img, .door-art video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Guides and plan policy pages: a full-width head band, then the article */
.guide-head { background: var(--navy); color: #e8f1f6; position: relative; }
.guide-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline); }
.guide-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: clamp(2.5rem, 7vw, 5.5rem) 0; }
.guide-head .crumbs { font-size: .9rem; color: #9fb4c4; margin: 0 0 1.25rem; }
.guide-head .crumbs a { color: #cfdbe5; }
.guide-head .eyebrow { color: var(--teal-glow); margin-bottom: .9rem; }
.guide-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; color: #fff; margin: 0 0 1.25rem; font-weight: 700; }
.guide-head .lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); line-height: 1.65; color: #b9cad7; max-width: 60ch; }
.guide-head .byline { margin-top: 1.4rem; font-size: .92rem; color: #9fb4c4; }
.guide-head .byline strong { color: #e8f1f6; font-weight: 600; }
.guide-head-art img { width: 100%; height: auto; border-radius: 20px; border: 1px solid rgba(159, 180, 196, 0.18); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
article.guide.after-head { padding-top: clamp(2rem, 5vw, 3.5rem); }

@media (max-width: 980px) {
  .pg-hero-grid, .guide-head-grid { grid-template-columns: 1fr; }
  .pg-hero-art, .guide-head-art { max-width: 560px; }
}
@media (max-width: 680px) {
  .pg-hero-art, .guide-head-art { display: none; }
}
@media (max-width: 680px) { .btn { white-space: normal; text-align: center; line-height: 1.3; } }

/* ---------- 4. Door pages (2026-11-15; written by tools/build_doors.py from doors.json) ---------- */
.door-more { margin-top: 1.75rem; }
.door-more a { font-weight: 600; color: var(--teal-deep); text-decoration: none; border-bottom: 1px solid rgba(10, 118, 106, 0.3); }
.door-more a:hover { border-bottom-color: var(--teal-deep); }
.door-page .pg-head p + p { margin-top: 1rem; }
.door-page #number .pg-head { margin-bottom: 1.25rem; }
/* The one sourced number: the value is loud, its exact source words and the publisher sit beside it */
.door-figure { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.door-figure-num strong { display: block; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--navy); line-height: 1.04; overflow-wrap: anywhere; }
.door-figure-num span { display: block; margin-top: 0.9rem; color: var(--ink-soft); line-height: 1.55; max-width: 36ch; }
.door-quote { margin: 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--teal); }
.door-quote p { font-size: 1.08rem; line-height: 1.65; color: var(--navy); max-width: 62ch; }
.door-cite { margin-top: 0.9rem; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); max-width: 62ch; }
.door-cite a { color: var(--teal-deep); font-weight: 600; overflow-wrap: anywhere; }
.door-context { margin-top: 1.1rem; color: var(--ink-soft); line-height: 1.65; max-width: 62ch; }
.door-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(2rem, 5vw, 3.25rem); border-top: 1px solid var(--line); padding-top: 2rem; }
.door-rule h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; color: var(--navy); margin-bottom: 0.9rem; }
.door-rule .door-context { margin: 0 0 0.9rem; }
.door-note { margin-top: 2.25rem; font-size: 0.9rem; line-height: 1.6; color: #93a7b6; max-width: 70ch; }
.statement p.door-note { font-size: 0.9rem; color: #93a7b6; }
@media (max-width: 820px) {
  .door-figure, .door-rules { grid-template-columns: 1fr; }
}
