/* The Inquiry Atlas — site styles */
:root {
  --ink: #1C2420;
  --ink-2: #2E3832;
  --ink-3: #3F4A44;
  --muted: #56625B;
  --paper: #FBF8F1;
  --sand: #EDE8DC;
  --line: #DCD6C8;
  --line-2: #ECE6DA;
  --lichen: #D5DECB;
  --moss: #7C8A73;
  --moss-light: #8EA488;
  --forest: #24302A;
  --forest-line: #3A4A40;
  --clay: #B4552F;
  --clay-dark: #9A4626;
  --clay-deep: #8E3F20;
  --serif: Newsreader, Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--clay-dark); }
a:hover { color: var(--clay-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0; }
button { font: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type */
.display { font-size: 68px; line-height: 1.02; letter-spacing: -0.02em; }
.display--md { font-size: 58px; }
.display--sm { font-size: 52px; }
.h2 { font-size: 44px; line-height: 1.1; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-dark); }
.kicker--dark { color: var(--clay-deep); }
.kicker--moss { color: var(--moss-light); }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss-light); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2; }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; color: var(--paper); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-dark); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { border-color: var(--paper); color: var(--paper); align-self: flex-start; }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #fff; color: var(--ink); }
.btn--start { align-self: flex-start; }
.btn:disabled { opacity: .35; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-clay { font-weight: 600; text-decoration: none; }

/* Header */
.topbar { background: var(--forest); color: var(--lichen); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; padding: 9px 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 25px; }
.brand--light { color: var(--paper); }
.brand--light .brand__name { font-size: 22px; }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { border-bottom-color: var(--clay); }
.site-nav .btn { padding: 11px 22px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; cursor: pointer; }

/* Sections */
.section { padding: 100px 0; }
.section--tight { padding: 0 0 100px; }
.section--dark { background: var(--forest); color: var(--paper); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.page-head { background: var(--lichen); padding: 72px 0 80px; margin-bottom: 64px; }
.page-head .lead { margin-top: 16px; }
.page-head .kicker { margin-bottom: 16px; }

/* Hero */
.hero { background: var(--lichen); padding: 88px 0 100px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.hero__text { flex: 1 1 440px; display: flex; flex-direction: column; gap: 26px; }
.hero__photo { flex: 1 1 440px; }

/* Framed photo with viewfinder corners */
.framed { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.framed__img { position: relative; margin: 14px; }
.framed__img img { width: 100%; height: 420px; object-fit: cover; border-radius: 4px; }
.framed figcaption { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0 14px; }
.framed--light figcaption { color: #C9D1C3; }
.framed--light .framed__img img { height: 500px; }
.corner { position: absolute; width: 28px; height: 28px; border: 0 solid var(--ink); }
.framed--light .corner { border-color: var(--lichen); }
.corner.tl { top: -14px; left: -14px; border-top-width: 3px; border-left-width: 3px; }
.corner.tr { top: -14px; right: -14px; border-top-width: 3px; border-right-width: 3px; }
.corner.bl { bottom: -14px; left: -14px; border-bottom-width: 3px; border-left-width: 3px; }
.corner.br { bottom: -14px; right: -14px; border-bottom-width: 3px; border-right-width: 3px; }

/* 5E phases */
.pills { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-3); }
.pill { font-family: var(--mono); font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.phase { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.phase__num { font-size: 13px; color: var(--clay-dark); }
.phase__name { font-size: 26px; }
.phase p { font-size: 15px; color: var(--ink-3); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 320px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 36, 32, .08); }
.card__img { width: 100%; height: 220px; object-fit: cover; }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 28px; line-height: 1.15; }
.card__text { font-size: 15px; color: var(--ink-3); flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.card__go { font-weight: 600; color: var(--clay-dark); white-space: nowrap; }

/* Split (dark photography section) */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.split__text { flex: 1 1 400px; display: flex; flex-direction: column; gap: 24px; }
.split__text p { font-size: 17px; line-height: 1.7; color: #D3DBCE; }
.split__photo { flex: 1 1 440px; }

/* Values */
.values { display: flex; flex-wrap: wrap; gap: 40px; }
.value { flex: 1 1 280px; border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.value h3 { font-size: 26px; }
.value p { color: var(--ink-3); }

/* CTA */
.cta { background: var(--clay); color: #fff; border-radius: 20px; padding: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta p { font-size: 17px; margin-top: 12px; }

/* Footer */
.site-footer { background: var(--forest); color: var(--paper); padding: 72px 0 40px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.site-footer__about { max-width: 360px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #C9D1C3; }
.site-footer .tagline { font-family: var(--serif); font-size: 19px; color: var(--paper); }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.site-footer__cols > div { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.site-footer__cols a { color: var(--paper); text-decoration: none; font-size: 15px; }
.site-footer__cols a:hover { text-decoration: underline; }
.site-footer__legal { border-top: 1px solid var(--forest-line); padding-top: 24px; font-size: 12px; color: #A9B4A4; display: flex; flex-direction: column; gap: 8px; }

/* Lesson header */
.preview-bar { background: #F6DCCF; color: #6E2A12; text-align: center; padding: 12px 20px; font-weight: 600; }
.preview-bar a { color: #6E2A12; }
.lesson-head { background: var(--lichen); padding: 44px 0 34px; }
.crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs span { color: var(--muted); }
.crumbs .crumbs__here { color: var(--clay-deep); }
.lesson-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.lesson-head__title { flex: 1 1 560px; display: flex; flex-direction: column; gap: 14px; }
.lesson-head__tools { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.path-picker { display: flex; align-items: center; gap: 12px; }
.path-picker__label { font-size: 14px; font-weight: 600; }
.seg { display: flex; background: var(--ink); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; background: transparent; color: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--clay); color: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 36px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid #B9C5AD; }
.meta div { display: flex; flex-direction: column; gap: 6px; }
.meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 0; font-size: 15px; font-weight: 500; }

/* Tabs */
.tabbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.tabbar__row { display: flex; gap: 8px; overflow-x: auto; }
.tabbar button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 18px 14px 15px; font-weight: 600; font-size: 15px; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tabbar button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--clay); }
.tabpanel { padding-top: 48px; padding-bottom: 96px; }
.tabpanel--dark { background: var(--forest); color: var(--paper); }
.tabpanel--dark .lead { color: #C9D1C3; margin: 12px 0 36px; }

/* Lesson body */
.lesson__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.steps-nav { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 6px; }
.steps-nav__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 14px 10px; }
.step-link { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; color: var(--ink); text-align: left; }
.step-link:hover { background: rgba(251, 248, 241, .6); }
.step-link.is-current { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.step-link__num { flex: none; width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 13px; box-shadow: inset 0 0 0 1.5px #9AA79A; color: var(--ink-3); }
.step-link.is-done .step-link__num { background: var(--ink); color: var(--paper); box-shadow: none; }
.step-link.is-current .step-link__num { background: var(--clay); color: #fff; box-shadow: none; }
.step-link__text { display: flex; flex-direction: column; gap: 1px; }
.step-link__phase { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-dark); }
.step-link__title { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.25; }
.step-link__min { font-size: 12px; color: var(--muted); }
.step-link[hidden] { display: none; }
.steps-nav__need { margin-top: 18px; padding: 18px 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-3); }
.steps-nav__need .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.step { display: flex; flex-direction: column; gap: 28px; }
.js .step { display: none; }
.js .step.is-current { display: flex; }
.step__head { display: flex; flex-direction: column; gap: 14px; }
.step__body { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.step-pager { display: none; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.js .step-pager { display: flex; }

/* Blocks */
.callout { background: var(--lichen); border-radius: 12px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; }
.callout__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-deep); padding-top: 3px; flex: none; }
.callout__text { font-size: 16px; line-height: 1.6; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.fig img { width: 100%; object-fit: cover; border-radius: 10px; }
.fig figcaption { display: flex; flex-direction: column; gap: 6px; }
.fig__num { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-dark); }
.fig__cap { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.fig__cap--empty { font-style: italic; color: var(--muted); }
.fig__loc { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fig--dark .fig__num { color: #E08A62; }
.fig--dark .fig__cap { color: #E4E9E0; }
.fig--dark .fig__cap--empty { color: #A9B4A4; }
.fig--dark .fig__loc { color: #A9B4A4; }
.photo-grid, .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gallery { gap: 40px 32px; }
.pcards, .tcards { display: flex; flex-wrap: wrap; gap: 16px; }
.pcard { flex: 1 1 240px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pcard--wide { flex-basis: 100%; }
.pcard__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pcard__title { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.pcard__tag { font-size: 12px; letter-spacing: .12em; color: var(--clay-dark); }
.pcard__lead { font-size: 14px; color: var(--ink-3); }
.pcard ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.pcard li { margin-bottom: 8px; }
.tcard { flex: 1 1 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tcard__title { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.tcard__text { font-size: 15px; line-height: 1.6; }

/* Data tables */
.data-table { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 1000px; }
.data-table h3 { font-size: 24px; }
.table-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.data-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; vertical-align: bottom; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.data-table td:first-child { font-weight: 600; }
.data-table .note { font-size: 13px; color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .display { font-size: 52px; }
  .display--md { font-size: 44px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 0 0 64px; }
  .display, .display--md, .display--sm { font-size: 38px; }
  .h2 { font-size: 32px; }
  .hero { padding: 56px 0 64px; }
  .hero__row, .split { gap: 40px; }
  .framed__img img, .framed--light .framed__img img { height: 280px; }
  .phases, .photo-grid, .gallery { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 36px 28px; }
  .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; }
  .js .site-nav.is-open { display: flex; }
  .steps-nav { max-width: none; }
  .fig img { height: auto !important; aspect-ratio: 4 / 3; }
}

/* ---- The Library (dark gallery) */
.lib-head { background: var(--forest); color: var(--paper); padding: 72px 0 56px; }
.lib-head .lead { color: #D3DBCE; margin: 14px 0 0; }
.lib-head .kicker { margin-bottom: 14px; }
.lib-head--folder { padding: 44px 0 40px; }
.crumbs--light a { color: #C9D1C3; }
.crumbs--light span { color: #8E9C8A; }
.crumbs--light .crumbs__here { color: var(--paper); }
.lib-body { background: #1B2520; color: var(--paper); padding: 48px 0 96px; }
.lib-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.lib-folders--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 20px; }
.lib-folder { display: flex; flex-direction: column; background: #2E3B34; border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--paper); transition: transform .15s ease, background .15s ease; }
.lib-folder:hover { color: var(--paper); background: #36453D; transform: translateY(-2px); }
.lib-folder img { width: 100%; height: 150px; object-fit: cover; }
.lib-folders--small .lib-folder img { height: 110px; }
.lib-folder__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.lib-folder__kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--moss-light); }
.lib-folder__title { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.lib-folder__count { font-size: 12px; color: #A9B4A4; }
.lib-folder--more { justify-content: flex-end; min-height: 150px; background: repeating-linear-gradient(135deg, #2E3B34 0 12px, #33413A 12px 24px); }
.lib-section { margin-bottom: 64px; scroll-margin-top: 24px; }
.lib-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.lib-section__head .kicker { margin-bottom: 8px; }
/* Justified rows: each photo keeps its shape, rows fill the width, order reads left to right */
.lib-grid { --row: 230px; display: flex; flex-wrap: wrap; gap: 12px; }
.lib-grid::after { content: ''; flex-grow: 999999; }
.lib-item { position: relative; display: block; flex-grow: calc(var(--w) / var(--h) * 100); flex-basis: calc(var(--row) * var(--w) / var(--h)); aspect-ratio: var(--w) / var(--h); max-height: calc(var(--row) * 1.6); border-radius: 8px; overflow: hidden; background: #2E3B34; }
.lib-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s ease; }
.lib-item:hover img { transform: scale(1.03); }
.lib-item:focus-visible { outline: 3px solid var(--moss-light); outline-offset: 2px; }
.lib-item__num { position: absolute; top: 10px; left: 10px; background: rgba(20,26,23,.8); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.lib-item__zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(20,26,23,.75); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.lib-item:hover .lib-item__zoom, .lib-item:focus-visible .lib-item__zoom { opacity: 1; }
.lib-more-title { margin: 72px 0 0; }
.lib-note { margin-top: 32px; font-size: 13px; color: #A9B4A4; }
.lib-empty { color: #D3DBCE; }

/* Lesson photos open in the lightbox too */
.fig__link { display: block; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.fig__link img { transition: transform .35s ease; }
.fig__link:hover img { transform: scale(1.02); }
.tabpanel--dark .lib-section__head .lead { margin: 8px 0 0; }

/* Lightbox caption */
.pswp__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.75) 35%); color: #fff; font-family: var(--sans); font-size: 15px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none; }
.pswp__caption:empty { display: none; }
.pswp__caption .lb-cap { max-width: 820px; }
.pswp__caption .lb-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C9D1C3; }
.pswp--ui-visible .pswp__caption { opacity: 1; transition: opacity .2s; }
.pswp:not(.pswp--ui-visible) .pswp__caption { opacity: 0; }

@media (max-width: 720px) {
  .lib-head { padding: 48px 0 40px; }
  .lib-grid { --row: 130px; gap: 8px; }
}

/* Standards explained on lessons */
.meta__link { color: inherit; text-decoration: underline; text-decoration-color: #9AA79A; text-underline-offset: 3px; }
.stds { margin-top: 18px; }
.stds summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--clay-deep); }
.stds ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.stds li { font-size: 15px; line-height: 1.5; }
.stds li .mono { font-size: 12px; font-weight: 500; background: var(--paper); border: 1px solid #B9C5AD; border-radius: 6px; padding: 2px 7px; margin-right: 6px; }

/* Content pages */
.prose-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose .h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--ink); margin-top: 12px; }
.prose .h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.prose .btn { margin-top: 8px; }
@media (max-width: 860px) { .prose-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Donate */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.donate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.donate__card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.donate__card fieldset { border: 0; padding: 0; margin: 0; }
.donate__amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.donate__amounts legend { font-weight: 600; margin-bottom: 12px; }
.amt input, .donate__freq input { position: absolute; opacity: 0; }
.amt span { display: flex; align-items: center; justify-content: center; height: 60px; border: 2px solid var(--line); border-radius: 12px; font-family: var(--serif); font-size: 24px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.amt--other span { font-family: var(--sans); font-size: 17px; font-weight: 600; }
.amt input:checked + span { border-color: var(--clay); background: #FBEDE6; color: var(--clay-deep); }
.amt input:focus-visible + span, .donate__freq input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.donate__freq { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; align-self: flex-start; }
.donate__freq span { display: block; padding: 10px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; }
.donate__freq input:checked + span { background: var(--ink); color: var(--paper); }
.donate__other { display: flex; flex-direction: column; gap: 8px; font-weight: 600; max-width: 260px; }
.donate__dollar { display: flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; font-size: 20px; }
.donate__dollar input { border: 0; outline: 0; font: 20px var(--sans); padding: 12px 0; width: 100%; background: transparent; }
.donate__dollar:focus-within { border-color: var(--ink); }
.donate__fee { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; }
.donate__fee input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--clay); flex: none; }
.donate__go { justify-content: center; font-size: 18px; padding: 17px 28px; }
.donate__small { font-size: 13px; color: var(--muted); }
.donate__note { background: var(--lichen); border-radius: 10px; padding: 12px 16px; }
.donate__error { background: #F6DCCF; color: #6E2A12; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
@media (max-width: 860px) { .donate { grid-template-columns: minmax(0, 1fr); gap: 36px; } .donate__card { padding: 24px; } }

/* Galleries */
.lib-folders--galleries { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lib-folders--galleries .lib-folder img { height: 200px; }
.lib-folder__desc { font-size: 15px; color: #C9D2C3; line-height: 1.4; }

/* Teacher guide tab */
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.guide__toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 15px; }
.guide__toc ol { list-style: none; margin: 12px 0 0; padding: 0; border-left: 2px solid var(--line); }
.guide__toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-3); text-decoration: none; line-height: 1.35; }
.guide__toc li a:hover { color: var(--clay-dark); }
.guide__body { max-width: 760px; font-size: 17px; line-height: 1.7; }
.guide__section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.guide__section:last-child { border-bottom: 0; }
.guide__section h2 { margin-bottom: 16px; }
.guide__section p, .guide__section ul, .guide__section ol { margin: 0 0 16px; }
.guide__section li { margin-bottom: 6px; }
.guide-note { background: var(--paper); border-left: 4px solid var(--moss); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 0 0 16px; font-size: 16px; }
.guide__section .table-scroll { margin: 0 0 20px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.guide-table th { text-align: left; vertical-align: bottom; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.guide-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.guide-table td:first-child { font-weight: 600; }
.guide-figure { margin: 8px 0 24px; }
.guide-figure img { width: 100%; max-height: 560px; object-fit: contain; background: var(--forest); border-radius: 12px; }
.guide-figure figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.guide-figure figcaption .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; }
@media (max-width: 900px) {
  .guide { grid-template-columns: 1fr; gap: 24px; }
  .guide__toc { position: static; max-height: none; }
}
.site-footer__legal a { color: inherit; }
.guide-note p:last-child { margin-bottom: 0; }
.guide__section h3 { font-size: 22px; margin: 28px 0 12px; }
.guide__section h4 { font-size: 18px; margin: 24px 0 10px; }
.step__body p, .step__body ul, .step__body ol { margin: 0 0 14px; }
.step__body h3 { font-size: 22px; margin: 20px 0 10px; }

.card__facts { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.lib-section__lead { margin: 10px 0 0; max-width: 640px; color: #C9D2C3; font-size: 17px; line-height: 1.55; }

/* Caption shown over a gallery photo on hover */
.lib-item__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 56px 12px 14px; background: linear-gradient(transparent, rgba(12,16,14,.85)); color: #fff; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-item:hover .lib-item__cap, .lib-item:focus-visible .lib-item__cap { opacity: 1; transform: none; }
@media (hover: none) { .lib-item__cap { display: none; } }

/* Long photo captions: three lines, then "Read more" */
.fig__cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fig__cap.is-open { display: block; -webkit-line-clamp: unset; }
.fig__more { display: inline-block; align-self: flex-start; text-align: left; margin: 2px 0 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--clay-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fig--dark .fig__more { color: #F0C9A8; }

/* Teacher guide: Print button, and the printed page */
.guide__print { margin-bottom: 20px; }
.guide__print-head { display: none; }
@media print {
  html.printing-guide body > *:not(main), html.printing-guide .lesson-head, html.printing-guide .tabbar, html.printing-guide [role=tablist],
  html.printing-guide .tabpanel:not(.is-printing), html.printing-guide .preview-bar, html.printing-guide .site-header,
  html.printing-guide .site-footer, html.printing-guide .guide__toc, html.printing-guide .draft-bar { display: none !important; }
  html.printing-guide .tabpanel.is-printing { display: block !important; padding: 0; }
  html.printing-guide .guide { display: block; }
  html.printing-guide .guide__body { max-width: none; font-size: 11.5pt; line-height: 1.5; color: #000; }
  html.printing-guide .guide__print-head { display: block; margin-bottom: 18pt; }
  html.printing-guide .guide__print-head h1 { font-size: 24pt; margin: 4pt 0; }
  html.printing-guide .guide__section { border: 0; padding: 0; margin: 0 0 16pt; }
  html.printing-guide .guide__section h2 { font-size: 15pt; break-after: avoid; }
  html.printing-guide .guide-figure, html.printing-guide .guide-table, html.printing-guide .guide-note { break-inside: avoid; }
  html.printing-guide .guide-figure img { max-height: 3.2in; width: auto; max-width: 100%; background: none; }
  html.printing-guide .guide-table { font-size: 9.5pt; }
  html.printing-guide .guide-table th, html.printing-guide .guide-table td { border: 1px solid #999; padding: 4pt 6pt; color: #000; }
  html.printing-guide .table-scroll { overflow: visible; }
  html.printing-guide a { color: #000; text-decoration: none; }
  html.printing-guide .guide-note { background: #f2f2f2; border-left: 3pt solid #777; }
  html.printing-guide body, html.printing-guide main, html.printing-guide .tabpanel.is-printing { background: #fff !important; }
  @page { margin: 0.6in; }
}

/* Lightbox download / sign-in button */
.pswp__dl { width: auto !important; height: auto !important; margin: 14px 8px 0 0; padding: 8px 16px !important; border-radius: 999px; background: rgba(255,255,255,.92); color: #1C2420 !important; font: 600 14px/1.2 'Public Sans', system-ui, sans-serif; text-decoration: none; display: inline-flex; align-items: center; }
.pswp__dl:hover { background: #fff; }

/* Library account pages */
.acct { max-width: 520px; }
.acct__card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.acct__field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.acct__field em { font-weight: 400; font-style: normal; color: var(--muted); }
.acct__field input { font: inherit; font-weight: 400; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.acct__go { align-self: flex-start; }
.acct__links, .acct__small { margin: 0; font-size: 15px; }
.acct__small { color: var(--muted); }
.acct__big { font-size: 20px; margin: 0; }
.acct__trap { position: absolute; left: -9999px; }

.guide-img { display: block; max-width: 100%; height: auto; margin: 8px 0 16px; border-radius: 8px; background: #fff; }
.guide__section hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Subtitles, and the student handout */
.lesson-head__sub { margin: 4px 0 0; font-size: 22px; font-style: italic; opacity: .85; }
.guide__print-sub { margin: 0 0 6pt; font-style: italic; font-size: 14pt; }
.guide__nameline { display: none; }
@media print {
  html.printing-guide .guide--handout .guide__nameline { display: block; margin: 10pt 0 4pt; font-size: 11pt; }
  html.printing-guide .guide--handout .guide__section br + br { display: block; content: ''; margin-top: 14pt; }
}
.card__sub { margin: -6px 0 10px; font-style: italic; color: var(--muted); font-size: 17px; }
.lib-section__sub { margin: 2px 0 0; font-style: italic; color: #C9D2C3; font-size: 18px; }
@media print { html.printing-guide .guide__section h3 { font-size: 12.5pt; margin: 10pt 0 4pt; } }
.framed__img img.hero__geyser { height: 560px; object-position: 50% 78%; }
@media (max-width: 700px) { .framed__img img.hero__geyser { height: 440px; } }

/* Homepage only: oversized logo on a header-coloured tab that drops out of the header onto the hero */
@media (min-width: 1101px) {
  .site-header--home { position: relative; z-index: 5; }
  .site-header--home .site-header__row { position: relative; min-height: 46px; }
  .site-header--home .brand {
    position: absolute; left: 16px; top: 0; gap: 20px;
    padding: 44px 28px 30px 24px;
    background: var(--paper);
    border-radius: 0 0 16px 16px;
  }
  .site-header--home .brand .mark { width: 110px; height: 110px; }
  .site-header--home .brand__name { font-size: 46px; }
  .site-header--home .site-nav { margin-left: auto; }
  .site-header--home ~ main .hero { padding-top: 96px; }
}
