/* The Learn pages (/learn/...): built on /about/about.css. Each topic has three levels (Kids, Students, Adults);
   without JavaScript all three show one after another, and learn.js turns them into tabs. */
.seeit { margin-top: 20px; border-left: 3px solid var(--aqua); }
.seeit .eyebrow { margin: 0; }
.seeit p { margin: 6px 0 0; font-size: 14.5px; }
.seeit .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.levels-bar { display: none; gap: 4px; padding: 4px; margin-top: 26px; border: 1px solid var(--rule); border-radius: 12px; background: var(--glass); }
.tabbed .levels-bar { display: flex; }
.levels-bar button { flex: 1 1 0; min-width: 0; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: 600 13.5px/1.25 var(--body); cursor: pointer; }
.levels-bar button small { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.08em; opacity: 0.8; }
.levels-bar button:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.levels-bar button[aria-selected="true"] { background: var(--aqua); color: var(--aqua-ink); }
.levels-bar button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.level { margin-top: 26px; }
.level > h2:first-child { margin-top: 0; }
.tabbed .level { margin-top: 18px; }
.tabbed .level > .level-title { display: none; }
.level-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 18px; }
.level-title small { font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); }
.level h2 { margin-top: 24px; }
.level.kids p, .level.kids li { font-size: 17px; line-height: 1.65; }

.try { margin: 18px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(243,185,74,0.35); background: rgba(243,185,74,0.06); }
.try .eyebrow { color: var(--amber); }
.try p { margin: 6px 0 0; }
.try ol, .try ul { margin: 6px 0 0; }
.fact { margin: 18px 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--rule); background: rgba(134,217,221,0.05); }
.fact b.big { display: block; font: 800 34px/1 var(--display); color: var(--aqua); letter-spacing: 0.01em; }
.fact p { margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 16px 0; }
.facts .fact { margin: 0; }
.words { margin: 16px 0 0; font-size: 14px; color: var(--dim); }
.words a { white-space: nowrap; }

.teacher { margin-top: 34px; border-left: 3px solid var(--pink); }
.teacher h2 { margin: 4px 0 10px; }
.teacher .kv dt { color: var(--pink); }
.place-bar { display: none; gap: 4px; padding: 4px; margin: 0 0 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--glass); max-width: 420px; }
.placed .place-bar { display: flex; }
.place-bar button { flex: 1 1 0; min-width: 0; padding: 8px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: 600 13.5px/1.25 var(--body); cursor: pointer; }
.place-bar button:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.place-bar button[aria-pressed="true"] { background: var(--aqua); color: var(--aqua-ink); }
.place-bar button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.place-panel + .place-panel { margin-top: 14px; }
.place-panel h3 { margin: 0 0 6px; font-size: 15px; }
.placed .place-panel h3 { display: none; }
.place-panel h4 { margin: 10px 0 4px; font: 600 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.place-panel .note { margin: 8px 0 0; }
.place-panel[hidden] { display: none; }

.teacher .kv dd ul { margin: 0; padding-left: 18px; gap: 4px; }
.teacher .kv dd li { font-size: 14.5px; }
.sources { font-size: 14px; }
.sources li { color: var(--dim); }

.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.pager a { flex: 1 1 220px; }
.pager a.next { text-align: right; justify-content: flex-end; }

/* illustrated tiles and banners: text on top, a flat night-lake scene (inline SVG) below */
.tile.art { padding: 0; gap: 0; overflow: hidden; }
.tile.art .tx { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 18px 14px; color: var(--fg); }
.tile.art > svg { display: block; width: 100%; height: 150px; border-top: 1px solid var(--rule); transition: transform 0.4s; }
a.tile.art:hover > svg { transform: scale(1.04); }
.tile.art.soon > svg { opacity: 0.75; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px 28px; align-items: end; }
.hero-art { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.hero-art svg { display: block; width: 100%; height: 200px; }
@media (prefers-reduced-motion: reduce) { .tile.art > svg { transition: none; } a.tile.art:hover > svg { transform: none; } }

/* hub */
.ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 22px; }
.ways .tile { cursor: pointer; font: inherit; text-align: left; }
.tile .num { font: 500 11px var(--mono); color: var(--dim); letter-spacing: 0.1em; }
.tile.soon { border-style: dashed; }

/* glossary */
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.letters a { min-width: 34px; padding: 6px 8px; text-align: center; border: 1px solid var(--rule); border-radius: 8px; background: var(--glass); font: 600 14px var(--mono); text-decoration: none; }
.letters a:hover { border-color: var(--aqua); }
.gloss-filter { width: 100%; max-width: 420px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule); background: rgba(9,16,19,0.9); color: var(--fg); font: 400 15px var(--body); }
.gloss-filter:focus { outline: 2px solid var(--aqua); outline-offset: 1px; }
.gloss h2 { font-size: 34px; color: var(--aqua); margin-top: 26px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.gloss dl { margin: 0; }
.gloss dt { margin-top: 16px; font: 600 20px/1.2 var(--display); letter-spacing: 0.02em; color: var(--fg); scroll-margin-top: 16px; }
.gloss dt:target, .gloss dt:target + dd { background: rgba(134,217,221,0.08); }
.gloss dd { margin: 4px 0 0; max-width: 68ch; color: #d3e2e3; }
.gloss dd .see { font-size: 13.5px; color: var(--dim); }

@media (max-width: 720px) {
  .levels-bar button { padding: 8px 4px; font-size: 12.5px; }
  .levels-bar button small { font-size: 9.5px; letter-spacing: 0.04em; }
  .level.kids p, .level.kids li { font-size: 16px; }
  .fact b.big { font-size: 28px; }
  .pager a.next { text-align: left; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .hero-art svg { height: 150px; }
}
@media print {
  .levels-bar, .place-bar, .teacher-toggle, nav.sections, header .btn, .pager, .seeit .btns { display: none !important; }
  .tabbed:not(.all-levels) .teacher { display: none !important; }
  .tabbed .level > .level-title { display: flex; }
  body { background: #fff; color: #000; }
  body * { color: #000 !important; background: none !important; }
  a { text-decoration: underline; }
}

/* courses: the hub groups topics into courses; topic pages list every course at the bottom */
/* course cards on the hub: a lighter, brighter family than the dark lesson tiles, one colour per course (also used on
   each course's heading). Four then three across on wide screens, three on tablets, two on phones; the last card fills
   its row rather than sitting alone. */
[data-c="1"] { --cc: #ffd27a; } [data-c="2"] { --cc: #8fe3d6; } [data-c="3"] { --cc: #b9ec8f; } [data-c="4"] { --cc: #9fd0ff; }
[data-c="5"] { --cc: #ffad8f; } [data-c="6"] { --cc: #ffc1dd; } [data-c="7"] { --cc: #c9b6ff; }
.course-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.cc { grid-column: span 3; position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 168px; padding: 14px 16px 14px; border-radius: 16px; background: var(--cc); color: #10181b; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.5); transition: transform 0.18s, box-shadow 0.18s; }
.cc:nth-child(n+5) { grid-column: span 4; }
.cc:hover, .cc:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5); color: #10181b; }
.cc:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.cc-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.7); font: 700 15px var(--mono); }
.cc b { font: 800 23px/1.05 var(--display); letter-spacing: 0.01em; }
.cc-blurb { font-size: 13.5px; line-height: 1.4; color: rgba(16,24,27,0.8); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-meta { margin-top: auto; padding-top: 4px; font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16,24,27,0.75); }
@media (max-width: 999px) { .cc, .cc:nth-child(n+5) { grid-column: span 4; } .cc:last-child { grid-column: span 12; min-height: 0; } }
@media (max-width: 599px) {
  .course-cards { gap: 10px; }
  .cc, .cc:nth-child(n+5) { grid-column: span 6; min-height: 128px; padding: 12px 13px; }
  .cc:last-child { grid-column: span 12; }
  .cc b { font-size: 19px; }
  .cc-blurb, .cc-c { display: none; }
}
.course[data-c] .course-head .eyebrow { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--cc); color: #10181b; letter-spacing: 0.12em; }
.course-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.course-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--rule); border-radius: 20px; background: var(--glass); color: var(--fg); font: 600 13.5px var(--body); text-decoration: none; }
.course-nav a:hover { border-color: var(--aqua); }
.course-nav .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--aqua); color: var(--aqua-ink); font: 600 12px var(--mono); letter-spacing: 0; }
.course { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--rule); scroll-margin-top: 16px; }
.course-head { margin-bottom: 14px; }
.course-head h3 { margin: 4px 0 4px; font: 800 30px/1.05 var(--display); letter-spacing: 0.01em; }
.course-head p:last-child { margin: 0; max-width: 64ch; color: var(--dim); }
.course-jump { margin: 16px 0 8px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.course-jump a { color: var(--aqua); text-decoration: none; }
.course-jump a:hover { text-decoration: underline; }
.callout { margin: 18px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,143,184,0.4); background: rgba(255,143,184,0.06); font-size: 14.5px; }
.callout b { color: var(--pink); }
.tbl-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--rule); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tbl th, .tbl td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font: 500 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua); background: rgba(134,217,221,0.05); }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) { .course-head h3 { font-size: 26px; } }

/* course tiles on the hub: a 12-column grid, with each course's tiles sized so its rows come out even (no lone tile on a
   second row). gen.mjs sets data-n to the number of lessons. Desktop: 3 → 3, 4 → 4, 5 → 3+2, 6 → 3+3, 7 → 4+3, 8 → 4+4.
   Tablet: 4 → 2+2, 7 → 1 wide + 3+3. Two columns: an odd last tile spans the row. Phones: one column. */
.course-tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.course-tiles > * { grid-column: span 12; }
@media (min-width: 460px) and (max-width: 679px) {
  .course-tiles > * { grid-column: span 6; }
  .course-tiles > :last-child:nth-child(odd) { grid-column: span 12; }
}
@media (min-width: 680px) {
  .course-tiles > * { grid-column: span 4; }
  .course-tiles[data-n="4"] > *, .course-tiles[data-n="8"] > * { grid-column: span 6; }
  .course-tiles[data-n="5"] > :nth-child(n+4) { grid-column: span 6; }
  .course-tiles[data-n="7"] > :first-child { grid-column: span 12; }
}
@media (min-width: 1000px) {
  .course-tiles[data-n="4"] > *, .course-tiles[data-n="8"] > *, .course-tiles[data-n="7"] > :nth-child(-n+4) { grid-column: span 3; }
}
.course-tiles > * { min-width: 0; }

/* teacher view: a switch under the level tabs; with it on, the tabs step aside and every level shows */
.teacher-toggle { display: none; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--dim); cursor: pointer; }
.tabbed .teacher-toggle { display: flex; }
.teacher-toggle b { color: var(--fg); font-weight: 600; }
.teacher-toggle input { accent-color: var(--aqua); width: 16px; height: 16px; }
.all-levels .levels-bar { opacity: 0.45; pointer-events: none; }
.all-levels .level { border-top: 1px solid var(--rule); padding-top: 14px; }

/* unit plans (/learn/units/...) */
.unit-steps { counter-reset: u; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.unit-steps > li { counter-increment: u; position: relative; padding: 14px 18px 14px 58px; border: 1px solid var(--rule); border-radius: 14px; background: var(--glass); }
.unit-steps > li::before { content: counter(u); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--aqua); color: var(--aqua-ink); font: 600 14px/28px var(--body); text-align: center; }
.unit-steps h3 { margin: 2px 0 6px; }
.unit-steps h3 small { margin-left: 8px; font: 500 11px var(--mono); letter-spacing: 0.1em; color: var(--aqua); }
.unit-steps p { margin: 6px 0 0; }
.unit-steps ul { margin: 6px 0 0; }
@media (max-width: 560px) { .unit-steps > li { padding-left: 18px; padding-top: 50px; } }

/* the Glossary banner: wide on the hub (text, sample words, art, an A–Z strip), slim at the foot of every lesson */
.gloss-banner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "tx art" "letters letters"; margin-top: 14px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; color: var(--fg); text-decoration: none; background: linear-gradient(120deg, rgba(134,217,221,0.10), rgba(243,185,74,0.06) 60%, var(--glass)); transition: border-color 0.2s; }
a.gloss-banner:hover { border-color: var(--aqua); }
.gloss-banner .gb-tx { grid-area: tx; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 18px; }
.gloss-banner .num { font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--aqua); }
.gloss-banner b { font: 800 40px/1 var(--display); letter-spacing: 0.01em; }
.gloss-banner .gb-sub { font-size: 15px; color: #d3e2e3; }
.gloss-banner .gb-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.gloss-banner .gb-words span { padding: 4px 10px; border-radius: 14px; border: 1px solid var(--rule); background: rgba(9,16,19,0.55); font: 500 12.5px var(--body); color: var(--fg); }
.gloss-banner .go { margin-top: auto; padding-top: 6px; font: 500 12px var(--mono); color: var(--aqua); letter-spacing: 0.06em; }
.gloss-banner > svg { grid-area: art; display: block; width: 100%; height: 100%; min-height: 200px; border-left: 1px solid var(--rule); }
.gloss-banner .gb-letters { grid-area: letters; display: flex; justify-content: space-between; gap: 2px; padding: 10px 18px; border-top: 1px solid var(--rule); background: rgba(9,16,19,0.5); font: 600 13px var(--mono); color: var(--dim); overflow: hidden; }
a.gloss-banner:hover .gb-letters span { color: var(--aqua); }
.gloss-banner.slim { grid-template-columns: 1fr; grid-template-areas: "tx" "letters"; margin-top: 18px; }
.gloss-banner.slim .gb-tx { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 20px; }
.gloss-banner.slim b { font-size: 28px; }
.gloss-banner.slim .num { flex-basis: 100%; }
.gloss-banner.slim .go { margin: 0 0 0 auto; padding: 0; }
@media (max-width: 720px) {
  .gloss-banner { grid-template-columns: 1fr; grid-template-areas: "tx" "art" "letters"; }
  .gloss-banner > svg { min-height: 0; height: 150px; border-left: 0; border-top: 1px solid var(--rule); }
  .gloss-banner b { font-size: 32px; }
  .gloss-banner .gb-letters { flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; }
  .gloss-banner.slim .go { margin-left: 0; }
}
/* one or two tiles in a row (the unit plans): fill the row */
@media (min-width: 680px) {
  .course-tiles[data-n="1"] > * { grid-column: span 12; }
  .course-tiles[data-n="2"] > * { grid-column: span 6; }
}

/* Voices from the shore: period quotes (tools/learn/voices.mjs) after a lesson's levels */
.voices { margin: 26px 0 0; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(232,220,192,0.28); background: linear-gradient(135deg, rgba(232,220,192,0.07), rgba(9,16,19,0.6)); }
.voices .eyebrow { color: #e8dcc0; }
.voices blockquote { margin: 10px 0 0; padding: 0 0 0 16px; border-left: 3px solid rgba(232,220,192,0.5); }
.voices blockquote + blockquote { margin-top: 16px; }
.voices blockquote > p:first-child { margin: 0; font: italic 400 17px/1.55 Georgia, "Times New Roman", serif; color: #f1ead8; }
.voices .tr { margin: 6px 0 0; font-size: 14px; color: #d3e2e3; }
.voices footer { margin-top: 8px; font: 500 12px var(--mono); letter-spacing: 0.04em; color: var(--dim); }
.voices footer cite { font-style: normal; }
.voices .vnote { margin: 6px 0 0; font-size: 14px; color: #d3e2e3; }
@media print { .voices { border: 1px solid #999; } }

/* the level an About-screen audience tile picked */
.tile.art.picked { border-color: var(--aqua); box-shadow: 0 0 0 1px var(--aqua) inset; }

/* unit infographics (tools/learn/infographics.mjs): full width; on small screens the art scrolls sideways at a readable size */
.infographic { margin: 22px 0 6px; }
.infographic .ig-art { border-radius: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.infographic .ig-art svg { display: block; width: 100%; height: auto; min-width: 680px; }
.infographic .ig-art:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.infographic figcaption { margin-top: 8px; font-size: 13.5px; color: var(--dim); }
.infographic .ig-text { margin-top: 8px; font-size: 14px; }
.infographic .ig-text summary { cursor: pointer; color: var(--aqua); font-weight: 600; }
@media (max-width: 720px) { .infographic .ig-art::after { content: "Scroll sideways to see it all →"; display: block; padding: 6px 2px 0; font: 500 11px var(--mono); color: var(--dim); } }
@media print { .infographic .ig-art { overflow: visible; } .infographic .ig-art svg { min-width: 0; } .infographic .ig-art::after { display: none; } }

/* course pages (/learn/courses/<id>/): a coloured title band, the 3D experiences and unit plans as a list */
.course-hero { margin: 6px 0 14px; padding: 18px 20px 16px; border-radius: 18px; background: var(--cc); color: #10181b; }
.course-hero .eyebrow { color: rgba(16,24,27,0.75); margin: 0; }
.course-hero h1 { color: #10181b; margin: 4px 0 6px; }
.course-hero .lede { color: rgba(16,24,27,0.85); margin: 0; max-width: 64ch; }
.course-exp { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.course-exp li { display: flex; flex-direction: column; gap: 2px; padding: 10px 13px; border: 1px solid var(--rule); border-radius: 12px; background: var(--glass); }
.course-exp a { font-weight: 600; }
.course-exp span { font-size: 13px; color: var(--dim); }
.cc[aria-current="page"] { outline: 3px solid #fff; outline-offset: 2px; }

/* the hub's two doors (Teachers' hub, Keep exploring) and the headers of the pages they open: warm, bright cards
   unlike the dark lesson tiles, pink for teachers and amber for going further */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 10px; }
@media (max-width: 720px) { .doors { grid-template-columns: 1fr; } }
.door { position: relative; display: grid; grid-template-columns: 1fr 42%; min-height: 200px; border-radius: 18px; overflow: hidden; text-decoration: none; color: #10181b; background: var(--door); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5); transition: transform 0.15s, box-shadow 0.15s; }
.door.teach, .door-hero.teach { --door: linear-gradient(135deg, #ffc1dd, #ff9cc6); }
.door.away, .door-hero.away { --door: linear-gradient(135deg, #ffe0a3, #ffc46b); }
.door.quiz { --door: linear-gradient(135deg, #b8ecef, #86d9dd); }
.doors.one { grid-template-columns: 1fr; }
.doors.one .door { grid-template-columns: 1fr 38%; }
@media (max-width: 460px) { .doors.one .door { grid-template-columns: 1fr; } }
.door:hover, .door:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.5); color: #10181b; }
.door:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.door-tx { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; min-width: 0; }
.door-k { font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(16,24,27,0.7); }
.door b { font: 800 27px/1.05 var(--display); letter-spacing: 0.01em; }
.door-tx > span:not(.door-k):not(.door-go) { font-size: 14px; line-height: 1.4; color: rgba(16,24,27,0.82); }
.door-go { margin-top: auto; padding-top: 6px; font: 600 11px var(--mono); letter-spacing: 0.08em; color: rgba(16,24,27,0.8); }
.door-art { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 460px) { .door { grid-template-columns: 1fr; } .door-art { height: 120px; order: -1; } }
.door-hero { margin: 6px 0 14px; padding: 18px 20px 16px; border-radius: 18px; background: var(--door); color: #10181b; }
.door-hero h1 { color: #10181b; margin: 0 0 6px; }
.door-hero .lede { color: rgba(16,24,27,0.86); margin: 0; max-width: 70ch; }

/* "Go there": a lesson's real places, from tools/learn/places.mjs */
.places { margin-top: 28px; }
.place { margin-top: 14px; }
.place h3 { margin: 0 0 4px; font: 800 24px/1.1 var(--display); letter-spacing: 0.01em; text-transform: none; color: var(--fg); }
.place p { margin: 6px 0 0; }
.place .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.place > .eyebrow { margin-top: 18px; }
.place ul { margin: 6px 0 0; padding-left: 20px; }
.place li { margin: 6px 0; }
.place-draft { color: var(--amber); }
.place-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.place-photos figure { margin: 0; min-width: 0; }
.place-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; background: rgba(160,196,201,0.1); }
.place-photos .wide { grid-column: 1 / -1; }
.place-photos .wide img { aspect-ratio: auto; max-height: 460px; object-fit: contain; }
.place-photos figcaption { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--dim); }
.place-photos .credit { display: block; margin-top: 2px; font: 400 11px var(--mono); overflow-wrap: anywhere; }
@media print { .place .btns { display: none !important; } }
