/* SkyScouts Club — site styles.
   Palette and type follow the original Sky Scouts program: Source Sans Pro,
   navy #13294b, logo cyan #05b2cc, black, white and light gray. Cyan is used
   for rules, fills and marks; the darker --cyan-text is used for small text. */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-pro-400.ttf) format("truetype"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-pro-600.ttf) format("truetype"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-pro-700.ttf) format("truetype"); }

:root {
  --navy: #13294b;
  --navy-deep: #0b1a33;
  --cyan: #05b2cc;
  --cyan-text: #00708a;
  --cyan-pale: #e5f5fa;
  --cyan-mist: #f2fafd;
  --ink: #111;
  --text: #3d3d3d;
  --gray: #f5f5f5;
  --line: #d6dfe3;
  --white: #fff;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --font: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.125rem/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--cyan-text); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: normal; }
h1 { font-size: clamp(2rem, 1.55rem + 1.6vw, 2.75rem); }
h2 { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
figure { margin: 0; }
small, .small { font-size: .95rem; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--text); max-width: 40em; }
.muted { color: #555; }

:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: var(--radius); font-weight: 600; box-shadow: 0 2px 10px rgb(0 0 0 / .2); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--gray { background: var(--gray); }
.section--mist { background: var(--cyan-mist); }
.section--navy { background: var(--navy); color: #dfe8f2; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--white); }
.section-intro { max-width: 46em; margin-bottom: 32px; }
.section-intro p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: block; flex: none; padding: 8px 0; }
.brand img { width: 200px; }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--white); color: var(--navy); font-weight: 600; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-size: 1.0625rem; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--cyan); }
.site-nav .nav-cta a { margin-left: 10px; background: var(--navy); color: var(--white); border-radius: var(--radius); border-bottom: 0; padding: 11px 18px; font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--navy-deep); color: var(--white); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); }

/* ---------- buttons and links ---------- */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--navy); background: var(--navy); color: var(--white); font-weight: 600; font-size: 1.0625rem; text-decoration: none; line-height: 1.2; }
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.button--ghost { background: transparent; color: var(--navy); }
.button--ghost:hover { background: var(--cyan-pale); color: var(--navy); border-color: var(--navy); }
.button--small { min-height: 40px; padding: 8px 14px; font-size: 1rem; }
.section--navy .button { background: var(--white); color: var(--navy); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.link-arrow { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; }
.ext::after { content: " ↗"; font-weight: 400; }

/* ---------- home ---------- */
.hero { background: linear-gradient(180deg, #d9f2fa 0%, var(--cyan-mist) 55%, var(--white) 100%); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 88px); }
.hero-logo { width: min(100%, 480px); margin-bottom: 28px; }
.hero h1 { margin-bottom: 18px; }
.hero-audience { margin-top: 26px; font-size: 1rem; color: #4a4a4a; }
.scrapbook { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.scrapbook figure { background: var(--white); padding: 10px 10px 8px; border-radius: 6px; box-shadow: 0 10px 30px rgb(19 41 75 / .14); }
.scrapbook figcaption { font-size: .9rem; color: #4a4a4a; padding: 6px 2px 0; line-height: 1.35; }
.scrapbook .sb-photo { grid-row: 1 / span 2; }
.scrapbook .sb-journal { transform: rotate(1.5deg); }
.scrapbook .sb-journal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.scrapbook .sb-drawing { transform: rotate(-1deg); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillars article { padding: 28px 28px 8px 0; }
.pillars article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.pillar-name { display: block; color: var(--cyan-text); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.pillars h3 { font-size: 1.35rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--gray); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); }
.card h3 { color: var(--ink); margin-top: 0; }
.card p { margin-bottom: 0; }
a.card:hover { background: var(--cyan-pale); color: var(--text); }
a.card:hover h3 { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.card .card-more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--navy); }
.section--gray .card { background: var(--white); }

.notebook-strip { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.notebook-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.notebook-pages a { display: block; text-decoration: none; background: var(--white); padding: 6px; border-radius: 4px; box-shadow: 0 4px 14px rgb(19 41 75 / .12); }
.notebook-pages a:hover { box-shadow: 0 6px 20px rgb(19 41 75 / .22); }
.notebook-pages span { display: block; font-size: .85rem; padding: 6px 2px 2px; color: #444; line-height: 1.3; }

/* ---------- content pages ---------- */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: var(--cyan-mist); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { margin-bottom: 0; }
.kicker { display: block; color: var(--cyan-text); font-weight: 600; font-size: 1.0625rem; margin-bottom: 8px; }
.prose { max-width: 44em; }
.callout { background: var(--cyan-pale); border-left: 4px solid var(--cyan); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p:last-child { margin-bottom: 0; }
.figure-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.figure-card figcaption { font-size: .95rem; color: #4a4a4a; margin-top: 12px; line-height: 1.5; }
.toolkit { background: #05bfd0; border-radius: 12px; overflow: hidden; }
.toolkit img { width: 100%; mix-blend-mode: multiply; }
.toolkit figcaption { background: rgb(255 255 255 / .92); padding: 16px 20px; font-size: 1rem; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 20px 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--cyan); }

.explorer-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.explorer-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 20px; align-items: start; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); }
.explorer-card:hover { background: var(--cyan-mist); color: var(--text); }
.explorer-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.explorer-card img { width: 140px; height: 160px; object-fit: cover; border-radius: 6px; background: var(--gray); }
.explorer-card h3 { margin: 0 0 4px; color: var(--navy); }
.explorer-card .role { display: block; color: var(--cyan-text); font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.explorer-card ul { margin: 0; padding-left: 1.1em; font-size: 1rem; }

/* projects */
.project { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--white); }
.project-art { height: 150px; display: grid; place-items: center; font-size: 72px; line-height: 1; }
.project-art--weather { background: #d9f2fa; color: var(--navy); }
.project-art--shade { background: #e6eecb; color: #3f5b2a; }
.project-art--care { background: #f6e0cf; color: #8a4526; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body p { flex: 1; }
.badge { display: inline-block; align-self: flex-start; font-size: .9rem; font-weight: 600; color: var(--navy); background: var(--cyan-pale); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; }

/* learn */
.questions details { border-bottom: 1px solid rgb(255 255 255 / .25); }
.questions summary { cursor: pointer; padding: 20px 36px 20px 0; font-size: 1.25rem; font-weight: 600; color: var(--white); list-style: none; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 400; }
.questions details[open] summary::after { content: "–"; }
.questions details p { padding-bottom: 12px; }
.steps { counter-reset: none; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.steps li { background: var(--gray); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--cyan); }
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* leadership */
.profile { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: 40px 0; border-bottom: 1px solid var(--line); }
.profile:first-of-type { padding-top: 0; }
.profile-photo { width: 260px; aspect-ratio: 260 / 340; object-fit: cover; object-position: center 40%; border-radius: 10px; background: var(--gray); }
.profile-mark { width: 180px; height: 180px; display: grid; place-items: center; border-radius: 50%; background: #d9f2fa; color: var(--navy); font-size: 64px; font-weight: 600; }
.profile h2 { font-size: 1.9rem; margin-bottom: 6px; }
.role-label { display: block; color: var(--cyan-text); font-weight: 600; font-size: 1.1rem; margin-bottom: 14px; }
.profile-contact { display: inline-block; margin-bottom: 18px; overflow-wrap: anywhere; }
.recognition { border-left: 4px solid var(--cyan); background: var(--gray); padding: 16px 20px; margin-top: 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.recognition p { margin: 4px 0 0; }
.team { margin-top: 48px; }
.team-officers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 720px; margin: 24px auto; }
.officer { background: var(--navy); color: var(--white); text-align: center; padding: 20px; border-radius: var(--radius); }
.officer strong { display: block; font-size: 1.3rem; }
.team-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.team-groups article { background: var(--gray); border-top: 3px solid var(--cyan); border-radius: var(--radius); padding: 18px 20px; }
.team-groups h4 { margin-bottom: 6px; }
.team-groups p { margin: 0; font-size: 1.02rem; }
.advisor { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; }
.advisor h3 { margin: 0; }
.advisor p { margin: 0; }

/* get involved */
.pathways { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pathway { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pathway h3 { margin: 0 0 4px; }
.pathway p { margin: 0; }
.contact-box { background: var(--navy); color: #dfe8f2; border-radius: 12px; padding: clamp(22px, 4vw, 36px); }
.contact-box h2 { color: var(--white); }
.contact-box a:not(.button) { color: var(--white); font-weight: 600; }

/* ---------- weather explorer pages ---------- */
.explorer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: 1rem; font-weight: 600; color: var(--navy); }
.jump a:hover { border-color: var(--navy); }
.record-key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.record-key div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; font-size: 1rem; }
.record-key p { margin: 6px 0 0; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: var(--ink); }
.tag::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex: none; }
.tag--archived::before { background: var(--navy); }
.tag--student::before { background: var(--cyan); border-radius: 50%; }
.tag--poster::before { background: repeating-linear-gradient(45deg, #888 0 2px, #ddd 2px 4px); }
.tag--live::before { background: transparent; border: 2px dashed #888; }

.chart-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(16px, 2.5vw, 28px); }
.chart-controls { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; margin-bottom: 18px; }
.chart-controls fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chart-controls legend, .chart-controls label { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; padding: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button { min-height: 40px; padding: 7px 14px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; font-size: 1rem; }
.segmented button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.range-inputs { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.range-inputs input, .chart-controls select { min-height: 40px; border: 1px solid #8a9aa3; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 1rem; background: var(--white); color: var(--ink); }
.chart-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.chart-stats div { background: var(--gray); border-radius: 6px; padding: 10px 12px; }
.chart-stats dt { font-size: .9rem; color: #4a4a4a; }
.chart-stats dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.chart-stats dd span { display: block; font-weight: 400; font-size: .9rem; color: #4a4a4a; }
.chart-frame { position: relative; }
.chart-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart-svg:focus-visible { outline-offset: 4px; }
.chart-svg text { font-family: var(--font); fill: #444; font-size: 13px; }
.chart-tooltip { position: absolute; pointer-events: none; background: var(--navy); color: var(--white); padding: 8px 12px; border-radius: 6px; font-size: .95rem; line-height: 1.4; min-width: 150px; box-shadow: 0 4px 16px rgb(0 0 0 / .2); white-space: nowrap; z-index: 2; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip strong { display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .95rem; }
.chart-legend li { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.swatch--line { height: 3px; }
.swatch--dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-note { font-size: .95rem; color: #4a4a4a; margin: 14px 0 0; }
.chart-table { margin-top: 16px; }
.chart-table summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 6px 0; }
.table-scroll { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 6px; margin-top: 10px; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.table-scroll th, .table-scroll td { padding: 6px 10px; text-align: right; border-bottom: 1px solid #e8edf0; white-space: nowrap; }
.table-scroll th:first-child, .table-scroll td:first-child { text-align: left; }
.table-scroll thead th { position: sticky; top: 0; background: var(--gray); color: var(--ink); font-weight: 600; }
.no-js-note { margin: 0; }
.js .no-js-note { display: none; }

.journal-intro { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: end; margin-bottom: 8px; }
.season { margin-top: 32px; }
.season h3 { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--cyan); padding-bottom: 6px; }
.season h3 span { font-size: 1rem; font-weight: 400; color: #555; }
.journal-grid { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.journal-grid a { display: block; background: var(--white); border-radius: 6px; padding: 6px 6px 8px; box-shadow: 0 2px 10px rgb(19 41 75 / .1); text-decoration: none; color: var(--ink); height: 100%; }
.journal-grid a:hover { box-shadow: 0 6px 18px rgb(19 41 75 / .2); color: var(--ink); }
.journal-grid img { width: 100%; aspect-ratio: 32 / 45; object-fit: cover; object-position: top; border-radius: 3px; background: var(--gray); }
.journal-grid .j-date { display: block; font-size: .85rem; color: #4a4a4a; margin-top: 6px; }
.journal-grid .j-title { display: block; font-size: .98rem; font-weight: 600; line-height: 1.3; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery figure { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery .g-img { background: #e9eff1; display: grid; place-items: center; padding: 12px; min-height: 240px; }
.gallery .g-img img { max-height: 340px; width: auto; }
.gallery figcaption { padding: 16px 20px 18px; }
.gallery figcaption h3 { margin-bottom: 4px; font-size: 1.2rem; }
.gallery figcaption p { margin: 0; font-size: 1.02rem; }
.gallery .g-when { display: block; color: var(--cyan-text); font-weight: 600; font-size: .95rem; margin-bottom: 4px; }

/* ---------- dialogs ---------- */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--white); color: var(--text); box-shadow: 0 20px 60px rgb(0 0 0 / .3); }
dialog::backdrop { background: rgb(11 26 51 / .65); }
.dialog-body { padding: clamp(24px, 4vw, 40px); }
.dialog-body h2 { font-size: 1.75rem; padding-right: 40px; }
.dialog-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; line-height: 1; color: var(--ink); }
.dialog-close:hover { background: var(--gray); }
.dialog-kicker { display: block; color: var(--cyan-text); font-weight: 600; margin-bottom: 6px; }
.viewer { width: min(980px, calc(100vw - 24px)); }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.viewer-image { background: #e9eff1; display: grid; place-items: center; padding: 12px; max-height: calc(100vh - 32px); overflow: auto; }
.viewer-image img { max-height: calc(100vh - 60px); width: auto; }
.viewer-side { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.viewer-side h2 { font-size: 1.6rem; margin: 0; padding-right: 36px; }
.viewer-count { color: #4a4a4a; font-size: .95rem; margin: 0; }
.viewer-nav { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.viewer-weather { background: var(--gray); border-radius: 8px; padding: 12px 14px; font-size: 1rem; }
.viewer-weather[hidden] { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--gray); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; }
.footer-grid img { width: 190px; margin-bottom: 10px; }
.footer-grid h2 { font-size: 1.05rem; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { color: var(--ink); }
.link-button { border: 0; padding: 0; background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-size: 1rem; text-align: left; }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; color: #555; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(19 41 75 / .12); display: none; max-height: calc(100vh - 76px); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--cyan); padding-left: 14px; }
  .site-nav .nav-cta a { margin: 16px 0 0; text-align: center; }
  .chart-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .split, .notebook-strip, .explorer-cards, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cards, .grid-3, .team-groups { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars article, .pillars article + article { border-left: 0; padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
  .scrapbook { max-width: 560px; }
  .record-key { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .viewer-body { grid-template-columns: minmax(0, 1fr); }
  .viewer-image img { max-height: 60vh; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .explorer-head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .lede { font-size: 1.125rem; }
  .brand img { width: 160px; }
  .site-header .wrap { min-height: 64px; }
  .site-nav { max-height: calc(100vh - 64px); }
  .hero-logo { width: min(100%, 340px); }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { width: min(240px, 70%); }
  .profile-mark { width: 120px; height: 120px; font-size: 44px; }
  .team-officers { grid-template-columns: minmax(0, 1fr); }
  .explorer-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .explorer-card img { width: 96px; height: 120px; }
  .notebook-pages { gap: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .journal-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .pathway, .advisor { grid-template-columns: minmax(0, 1fr); }
  .chart-controls { gap: 14px; }
  .range-inputs { width: 100%; }
  .range-inputs > * { flex: 1 1 140px; }
  .footer-links { columns: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .chart-controls, .jump { display: none; }
  .section { padding: 24px 0; }
}

/* heading size helpers when the outline needs a different level */
.h3 { font-size: 1.3rem; }
.h4 { font-size: 1.1rem; }
