:root {
  --paper:#eee9df;
  --sheet:#faf7ef;
  --ink:#2c3028;
  --muted:#6a6e60;
  --red:#923f32;
  --red-soft:#f0dfd5;
  --green:#4a5c4c;
  --line:#cec8b8;
  --gold:#bc9653;
  --serif:"Iowan Old Style","Baskerville","Songti SC","STSong",serif;
  --sans:"Avenir Next","PingFang SC","Helvetica Neue",sans-serif;
  color-scheme:light}

* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font:15px/1.7 var(--sans)}
a {
  color:inherit;
  text-underline-offset:4px}
button,input {
  font:inherit}
button {
  cursor:pointer;
  color:inherit}
button:disabled {
  cursor:default;
  opacity:.4}
:is(button,a,input,summary,[tabindex]):focus-visible {
  outline:3px solid var(--red);
  outline-offset:4px}
button {
  touch-action:manipulation}
img {
  max-width:100%;
  display:block}
h1,h2,h3,p {
  margin:0}
button svg {
  pointer-events:none}
[hidden] {
  display:none!important}
.eyebrow {
  font-size:11px;
  letter-spacing:.15em;
  font-weight:600;
  color:var(--red);
  line-height:1.6}
.site-header {
  margin:0 40px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:12px}
.wordmark {
  font:600 23px/1.2 var(--serif);
  text-decoration:none;
  white-space:nowrap}
.wordmark span {
  font:11px var(--sans);
  color:var(--muted);
  letter-spacing:.1em;
  margin-left:12px}
.header-note {
  color:var(--muted);
  letter-spacing:.12em}
.site-header nav {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted)}
.site-header nav a {
  text-decoration:none}
.site-footer {
  border-top:1px solid var(--line);
  margin:40px;
  padding:22px 0;
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:var(--muted);
  font-size:12px;
  flex-wrap:wrap}
.catalog-main {
  max-width:1270px;
  padding:0 40px;
  margin:auto}
.book-heading {
  padding:80px 0 64px;
  position:relative}
.book-heading h1 {
  font:400 clamp(38px,5.5vw,72px)/1.5 var(--serif);
  letter-spacing:.04em;
  margin:12px 0 16px}
.book-heading h1 span {
  font-size:.63em;
  margin:0 .25em;
  color:var(--muted)}
.book-deck {
  font:19px/1.9 var(--serif);
  color:var(--muted)}
.primary-link {
  display:inline-flex;
  align-items:center;
  gap:42px;
  background:var(--red);
  color:var(--sheet);
  text-decoration:none;
  padding:12px 22px;
  margin-top:27px}
.primary-link:hover {
  background:#733226}
.section-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  border-bottom:1px solid var(--line);
  padding-bottom:17px;
  margin-bottom:26px}
.section-heading h2 {
  font:400 25px/1.5 var(--serif)}
.section-heading>span {
  font-size:12px;
  color:var(--muted)}
.chapter-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:36px 28px}
.chapter-card {
  min-width:0}
.chapter-card:first-child {
  grid-column:span 2}
.chapter-link {
  display:block;
  text-decoration:none}
.chapter-cover {
  height:230px;
  position:relative;
  overflow:hidden;
  background:#d5d9cd}
.chapter-card:first-child .chapter-cover {
  height:360px}
.chapter-cover>img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .4s}
.chapter-link:hover .chapter-cover>img {
  transform:scale(1.025)}
.cover-credit {
  position:absolute;
  left:10px;
  bottom:8px;
  font-size:10px;
  background:#f9f5e7e8;
  padding:2px 6px;
  color:#454638}
.chapter-number {
  position:absolute;
  top:14px;
  left:17px;
  color:#fff5df;
  font:400 36px/1 var(--serif);
  text-shadow:0 1px 8px #0008}
.chapter-status {
  position:absolute;
  right:12px;
  top:14px;
  padding:3px 9px;
  background:var(--sheet);
  color:var(--red);
  font-size:11px}
.chapter-copy {
  padding-top:18px}
.chapter-copy h3 {
  font:400 30px/1.6 var(--serif);
  display:flex;
  justify-content:space-between}
.chapter-copy>p:last-child {
  font-size:13px;
  color:var(--muted)}
.photo-source-link {
  display:inline-block;
  font-size:10px;
  color:var(--muted);
  margin-top:8px}
.coming-soon .chapter-cover>img {
  filter:saturate(.55)}
.unillustrated {
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background:repeating-linear-gradient(90deg,transparent 0 38px,#b8b29f55 39px 40px),#ddd8ca;
  color:var(--red)}
.unillustrated span {
  font:400 36px var(--serif);
  writing-mode:vertical-rl;
  letter-spacing:.2em}
.unillustrated small {
  font-size:11px;
  margin-top:18px}
.temple-reading {
  margin:70px 0 20px;
  border-top:2px solid var(--green);
  padding-top:30px;
  max-width:840px}
.temple-reading h2 {
  font:400 32px/1.5 var(--serif);
  margin:9px 0 20px}
.temple-reading>p:not(.eyebrow) {
  margin-top:12px;
  color:var(--muted);
  line-height:1.95}

.guide-page main {
  max-width:1680px;
  padding:0 40px;
  margin:auto}
.chapter-heading {
  padding:25px 0 22px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px}
.chapter-heading h1 {
  font:400 39px/1.5 var(--serif);
  margin-top:5px}
.chapter-heading h1 span {
  font-size:17px;
  color:var(--muted);
  margin-left:20px;
  letter-spacing:.05em}
.quiet-link {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap}
.route-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:10px 0}
.route-tabs {
  display:flex;
  gap:7px;
  flex-wrap:wrap}
.route-tabs button,.plain-button {
  padding:7px 12px;
  font-size:12px;
  border:1px solid transparent;
  background:transparent}
.route-tabs button[aria-pressed=true] {
  background:var(--green);
  color:var(--sheet)}
.route-tabs button:hover {
  border-color:var(--green)}
.plain-button {
  border:1px solid var(--line);
  white-space:nowrap}
.route-description {
  font-size:12px;
  color:var(--muted);
  padding:11px 0 16px}
.guide-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 410px;
  gap:28px;
  align-items:start}
.map-section {
  min-width:0}
.map-stage {
  height:760px;
  max-height:calc(100vh - 225px);
  min-height:530px;
  position:relative;
  overflow:hidden;
  background:#e0ddcf;
  touch-action:none;
  cursor:grab;
  border:1px solid var(--line);
  isolation:isolate}
.map-stage.dragging {
  cursor:grabbing}
.map-world {
  width:1024px;
  height:1536px;
  position:absolute;
  left:0;
  top:0;
  transform-origin:0 0;
  will-change:transform;
  user-select:none}
.palace-map {
  width:1024px;
  height:1536px;
  max-width:none;
  pointer-events:none}
.map-overlay {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none}
.map-overlay .hotspot {
  fill:transparent;
  stroke:transparent;
  pointer-events:all;
  cursor:pointer;
  vector-effect:non-scaling-stroke;
  stroke-width:2}
.map-overlay .hotspot:hover {
  fill:#fff3b344;
  stroke:#6b382b}
.map-overlay .hotspot.selected {
  fill:#a837243b;
  stroke:var(--red);
  stroke-width:3}
.map-overlay .leader {
  fill:none;
  stroke:#594431;
  stroke-width:1.1;
  vector-effect:non-scaling-stroke}
.map-overlay .anchor {
  fill:var(--sheet);
  stroke:var(--red);
  stroke-width:1.2;
  vector-effect:non-scaling-stroke}
.map-labels {
  position:absolute;
  inset:0;
  pointer-events:none}
.map-label {
  position:absolute;
  transform:translate(-50%,-50%) scale(var(--inverse-scale,1));
  transform-origin:center;
  white-space:nowrap;
  background:#fcf8ecef;
  border:1px solid #a2916c;
  box-shadow:0 1px 3px #352f2528;
  padding:4px 8px;
  font:500 12px/1.2 var(--serif);
  pointer-events:auto;
  border-radius:2px;
  min-height:26px}
.map-label[aria-pressed=true] {
  background:var(--red);
  color:#fff9eb;
  border-color:var(--red);
  z-index:4}
.map-label:hover {
  background:var(--sheet);
  color:var(--red);
  z-index:5}
.map-label.off-route {
  opacity:.84}
.map-label:focus-visible {
  outline-offset:2px;
  z-index:6}
.map-compass {
  position:absolute;
  top:14px;
  right:16px;
  font:17px/1.1 var(--serif);
  text-align:center;
  color:#424538;
  pointer-events:none}
.map-tools {
  position:absolute;
  left:14px;
  bottom:14px;
  display:flex;
  align-items:center;
  gap:0;
  background:var(--sheet);
  box-shadow:0 2px 10px #2e332420;
  border:1px solid var(--line);
  cursor:default}
.map-tools button {
  border:0;
  background:transparent;
  padding:8px 12px;
  min-height:42px;
  min-width:42px}
.map-tools button:hover {
  background:var(--red-soft)}
.map-tools output {
  min-width:40px;
  text-align:center;
  font-size:11px;
  font-variant-numeric:tabular-nums}
.map-tools button:last-child {
  border-left:1px solid var(--line);
  font-size:11px}
.map-caption {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:10px;
  color:var(--muted);
  padding:9px 0}
.selection-key {
  display:inline-block;
  width:8px;
  height:8px;
  background:var(--red);
  margin-right:5px}
.map-explanation {
  font-size:11px;
  color:var(--muted);
  max-width:740px}
.map-explanation summary {
  cursor:pointer}
.map-explanation p {
  margin-top:8px;
  line-height:1.85}
.reader {
  background:var(--sheet);
  border-top:3px solid var(--red);
  max-height:calc(100vh - 225px);
  min-height:530px;
  overflow:auto;
  scrollbar-width:thin;
  overscroll-behavior:contain;
  padding:23px 24px 0}
.close-reader {
  display:none}
.place-heading .eyebrow {
  font-size:10px}
.place-heading h2 {
  font:400 35px/1.45 var(--serif);
  margin-top:7px;
  letter-spacing:.04em}
.place-en {
  font:13px/1.5 var(--serif);
  color:var(--muted);
  margin-top:3px}
.place-lead {
  font:17px/1.8 var(--serif);
  margin:18px 0}
.place-meta {
  font-size:11px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-bottom:19px}
.guide-photo {
  margin:0 0 22px}
.photo-enlarge {
  padding:0;
  border:0;
  background:transparent;
  display:block;
  width:100%;
  position:relative;
  overflow:hidden}
.photo-enlarge>img {
  width:100%;
  aspect-ratio:1.5;
  object-fit:cover}
.photo-enlarge>span {
  position:absolute;
  bottom:8px;
  right:8px;
  background:#f7f0dfe8;
  color:var(--ink);
  font-size:10px;
  padding:2px 7px}
.guide-photo figcaption {
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
  margin-top:7px}
.guide-photo figcaption a {
  margin-right:7px}
.guide-photo figcaption .changes {
  display:block}
.map-crop {
  width:100%;
  height:210px;
  overflow:hidden;
  position:relative;
  background:#e2ddce}
.map-crop img {
  position:absolute;
  width:750px;
  max-width:none;
  height:1125px}
.reader-section {
  margin:23px 0}
.reader-section .section-index {
  font:italic 14px var(--serif);
  color:var(--red);
  margin-right:9px}
.reader-section h3 {
  font-size:14px;
  font-weight:600;
  margin-bottom:9px}
.reader-section p {
  font-size:13px;
  line-height:1.95}
.story-title {
  font:17px/1.6 var(--serif);
  margin-bottom:7px}
.find-item {
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:12px}
.find-item summary {
  font-size:13px;
  cursor:pointer;
  font-weight:500;
  line-height:1.6}
.find-item p {
  margin-top:8px}
.find-item .guide-photo {
  margin:12px 0 0}
.legend-box {
  background:#f0e8da;
  border-left:2px solid var(--gold);
  padding:15px}
.legend-box .verdict {
  font-size:11px;
  color:var(--red);
  margin:6px 0 8px}
.sources-list {
  padding:0 0 0 18px;
  margin:10px 0;
  font-size:11px;
  color:var(--muted)}
.sources-list li {
  margin:5px 0}
.reader-nav {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  border-top:1px solid var(--line);
  padding:18px 0 22px}
.reader-nav button {
  border:1px solid var(--line);
  background:transparent;
  padding:8px;
  font-size:11px;
  text-align:left}
.reader-nav button:last-child {
  text-align:right}
.reader-nav small {
  display:block;
  color:var(--muted);
  font-size:10px}
.reader-nav button:not(:disabled):hover {
  background:var(--red-soft)}
.beast-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:12px 0}
.beast-row button {
  padding:4px 7px;
  border:1px solid var(--line);
  font-size:11px;
  background:var(--sheet)}
.beast-row button[aria-pressed=true] {
  background:var(--red);
  color:var(--sheet);
  border-color:var(--red)}
.beast-detail {
  background:var(--paper);
  padding:10px;
  font-size:12px!important}
.building-list {
  padding-top:30px}
.building-group {
  display:grid;
  grid-template-columns:120px 1fr;
  gap:16px;
  border-bottom:1px solid var(--line);
  padding:14px 0}
.building-group h3 {
  font:400 20px var(--serif)}
.building-group>div {
  display:flex;
  flex-wrap:wrap;
  gap:8px}
.building-group button {
  background:var(--sheet);
  border:1px solid var(--line);
  padding:8px 13px;
  min-height:40px;
  font-size:12px}
.building-group button[aria-pressed=true] {
  background:var(--red);
  border-color:var(--red);
  color:var(--sheet)}
.skip-link {
  position:absolute;
  top:-100px;
  left:20px;
  z-index:20;
  background:var(--sheet);
  padding:12px}
.skip-link:focus {
  top:10px}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0}
.no-script {
  padding:30px}
.photo-dialog {
  max-width:min(1100px,94vw);
  width:94vw;
  max-height:92dvh;
  padding:18px;
  border:1px solid var(--line);
  background:var(--sheet);
  color:var(--ink)}
.photo-dialog::backdrop {
  background:#182019c9}
.photo-dialog>button {
  float:right;
  background:transparent;
  border:1px solid var(--line);
  padding:7px 12px;
  margin-bottom:12px}
.photo-dialog figure {
  clear:both;
  margin:0}
.photo-dialog img {
  max-height:72dvh;
  object-fit:contain;
  margin:auto}
.photo-dialog figcaption {
  font-size:12px;
  margin-top:12px}
.source-main {
  max-width:1000px;
  margin:40px auto;
  padding:0 30px}
.source-main h1 {
  font:400 36px/1.5 var(--serif);
  margin:15px 0 30px}
.source-main h2 {
  font:400 25px/1.6 var(--serif);
  margin:35px 0 15px}
.source-main p {
  margin:10px 0}
.source-main .source-row {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  font-size:13px}
.source-main .source-row small {
  display:block;
  color:var(--muted);
  font-size:11px}
.source-main .source-row img {
  width:160px;
  aspect-ratio:1.5;
  object-fit:cover;
  float:left;
  margin:0 20px 10px 0}
.source-main .source-row:after {
  content:'';
  display:block;
  clear:both}

@media(min-width:1600px) {
  .guide-layout {
  grid-template-columns:minmax(0,1fr) 460px}
.map-stage {
  height:900px}
.reader {
  max-height:calc(100vh - 225px)}
}

@media(max-width:1050px) and (min-width:761px) {
  .guide-layout {
  grid-template-columns:minmax(0,1fr) 340px;
  gap:18px}
.guide-page main {
  padding:0 24px}
.reader {
  padding:18px}
.chapter-heading h1 span {
  font-size:14px}
.map-label {
  font-size:11px;
  padding:4px 6px}
}

@media(max-width:760px) {
  .site-header {
  margin:0 18px;
  padding:17px 0;
  gap:12px}
.wordmark {
  font-size:21px}
.wordmark span,.header-note {
  display:none}
.site-header nav {
  gap:7px;
  font-size:10px}
.catalog-main {
  padding:0 20px}
.book-heading {
  padding:46px 0 42px}
.book-heading h1 {
  font-size:38px}
.book-deck {
  font-size:17px}
.section-heading {
  align-items:flex-start;
  flex-direction:column;
  gap:5px}
.section-heading h2 {
  font-size:23px}
.chapter-grid {
  grid-template-columns:1fr;
  gap:30px}
.chapter-card:first-child {
  grid-column:auto}
.chapter-card:first-child .chapter-cover {
  height:270px}
.chapter-cover {
  height:220px}
.temple-reading {
  margin-top:45px}
.temple-reading h2 {
  font-size:27px}
.guide-page main {
  padding:0 14px}
.chapter-heading {
  padding:19px 0 16px;
  align-items:center}
.chapter-heading h1 {
  font-size:33px}
.chapter-heading h1 span {
  display:block;
  margin:3px 0 0;
  font-size:13px}
.chapter-heading .quiet-link {
  font-size:10px}
.chapter-heading .eyebrow {
  font-size:10px}
.route-bar {
  gap:8px;
  align-items:flex-start}
.route-tabs {
  gap:3px}
.route-tabs button {
  padding:7px 8px;
  font-size:11px;
  min-height:38px}
.plain-button {
  padding:7px 8px;
  font-size:11px;
  min-height:38px}
.plain-button span {
  display:none}
.route-description {
  font-size:10px;
  line-height:1.7;
  padding:10px 0 12px;
  min-height:52px}
.guide-layout {
  grid-template-columns:1fr;
  gap:16px}
.map-stage {
  height:640px;
  max-height:none;
  min-height:0}
.map-label {
  font-size:11px;
  padding:3px 5px;
  min-height:26px}
.map-compass {
  font-size:15px;
  top:10px;
  right:10px}
.map-tools {
  left:10px;
  bottom:10px}
.map-tools button {
  min-height:44px}
.map-caption {
  font-size:10px;
  gap:3px}
.map-explanation {
  font-size:10px}
.reader {
  max-height:74dvh;
  min-height:0;
  padding:13px 20px 0;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:10;
  box-shadow:0 -12px 45px #2a2d2530;
  border-radius:16px 16px 0 0;
  transform:translateY(110%);
  visibility:hidden;
  transition:transform .22s ease,visibility 0s linear .22s}
.reader.is-open {
  transform:translateY(0);
  visibility:visible;
  transition:transform .22s ease,visibility 0s linear 0s}
.close-reader {
  display:block;
  border:0;
  border-bottom:1px solid var(--line);
  background:var(--sheet);
  text-align:right;
  width:100%;
  padding:4px 0 11px;
  margin-bottom:13px;
  font-size:11px;
  position:sticky;
  top:-13px;
  z-index:3}
.place-heading h2 {
  font-size:31px}
.place-lead {
  font-size:17px}
.reader-section p {
  font-size:14px}
.guide-photo figcaption {
  font-size:11px}
.building-list {
  padding:24px 5px 0}
.building-group {
  grid-template-columns:1fr;
  gap:12px}
.building-group button {
  min-height:44px}
.site-footer {
  margin:28px 18px;
  font-size:10px;
  padding-bottom:22px}
.beast-row button {
  min-width:44px;
  min-height:44px}
.reader-nav button {
  min-height:48px}
.source-main {
  padding:0 20px}
.source-main h1 {
  font-size:30px}
.source-main .source-row img {
  width:110px;
  margin-right:12px}
.photo-dialog {
  padding:12px}
.photo-dialog>button {
  min-height:44px}
}

@media(prefers-reduced-motion:reduce) {
  * {
  scroll-behavior:auto!important;
  transition:none!important}
}

.chapter-switcher {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0 16px;
  font-size:12px;
  color:var(--green)}
.chapter-switcher a {text-decoration:none;padding:5px 0}
.chapter-switcher a:hover {text-decoration:underline}
.chapter-switcher>span {color:var(--muted)}
.chapter-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:35px;
  padding:17px 22px;
  margin:0 0 22px;
  border-left:3px solid var(--gold);
  background:var(--sheet)}
.chapter-intro>p {max-width:720px;font-size:13px;line-height:1.9;color:var(--muted)}
.chapter-intro ol {display:flex;gap:25px;list-style:none;padding:0;margin:0;flex-shrink:0}
.chapter-intro li {display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--muted)}
.chapter-intro strong {font:500 21px/1.3 var(--serif);color:var(--red)}
.guide-page[data-chapter="temple-of-heaven"] .map-stage {height:650px;min-height:0;max-height:none}
.guide-page[data-chapter="summer-palace"] .map-stage {height:820px;max-height:none}
@media(max-width:1050px) {
  .chapter-intro {align-items:flex-start;flex-direction:column;gap:12px}
}
@media(max-width:760px) {
  .chapter-switcher {gap:8px;font-size:10px;flex-wrap:wrap;padding:5px 0 13px}
  .chapter-intro {padding:12px 15px;gap:13px;margin-bottom:16px}
  .chapter-intro>p {font-size:12px}
  .chapter-intro ol {gap:24px}
  .chapter-intro li {font-size:10px}
  .chapter-intro strong {font-size:19px}
  .guide-page[data-chapter="temple-of-heaven"] .map-stage {height:370px}
  .guide-page[data-chapter="summer-palace"] .map-stage {height:440px}
}

/* Shared atlas tokens: typography, paper/ink, spacing, label hierarchy and feedback. */
/* The licensed 23KB font subset is served from the same origin. */
@font-face {
  font-family:"Palace Book Serif";
  src:url("assets/fonts/palace-serif.woff2") format("woff2");
  font-style:normal;
  font-weight:600;
  font-display:swap;
}
:root {
  --font-display:"Palace Book Serif","Songti SC","Noto Serif CJK SC","Source Han Serif SC","SimSun","STSong",serif;
  --font-body:"Avenir Next","PingFang SC","Microsoft YaHei",sans-serif;
  --serif:var(--font-display);
  --sans:var(--font-body);
  --paper:#f3efe6;
  --sheet:#fffcf5;
  --ink:#263b34;
  --muted:#6d756a;
  --red:#963e2e;
  --red-soft:#f1e3d8;
  --green:#3c5549;
  --line:#d7d0bf;
  --gold:#a1824b;
  --map-paper:#eae3d3;
  --label-paper:#fffaf0f5;
  --label-edge:#a89064;
  --label-ink:#473d2c;
  --label-active:var(--red);
  --label-hall-size:15px;
  --label-gate-size:14px;
  --label-minor-size:12px;
  --label-height:30px;
  --touch-target:44px;
  --text-caption:12px;
  --text-small:13px;
  --text-body:15px;
  --text-lead:19px;
  --text-title:46px;
  --text-place:32px;
  --text-section:19px;
  --text-map-title:22px;
  --space-5:20px;
  --label-hall-edge:#9b583e;
  --label-hover-paper:#fffdf6;
  --hotspot-hover:#fff4b64a;
  --hotspot-selected:#963e2e25;
  --hotspot-pressed:#963e2e50;
  --radius-label:2px;
  --radius-panel:3px;
  --radius-drawer:18px;
  --map-height:900px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --space-12:48px;
  --page-gutter:40px;
  --focus-ring:3px solid var(--red);
  --shadow-label:0 2px 6px #46372424;
  --shadow-sheet:0 -8px 40px #263b3426;
  --motion-press:120ms;
  --motion-panel:280ms;
  --ease-panel:cubic-bezier(.2,.8,.2,1);
}
.guide-page {font-size:var(--text-body);background:var(--paper)}
.guide-page main {max-width:1540px;padding:0 var(--page-gutter)}
.guide-page .site-header {padding:var(--space-4) 0;margin:0 var(--page-gutter);font-size:var(--text-caption)}
.guide-page .site-header a {min-height:var(--touch-target);display:inline-flex;align-items:center}
.guide-page .chapter-heading {padding:var(--space-8) 0 var(--space-6);align-items:center}
.guide-page .chapter-heading h1 {font:600 var(--text-title)/1.35 var(--font-display);letter-spacing:.1em;margin:var(--space-2) 0 0}
.chapter-subtitle {font:15px/1.5 "Baskerville",serif;letter-spacing:.06em;color:var(--muted);margin-top:var(--space-2)}
.guide-page .chapter-heading .quiet-link {font-size:var(--text-caption);text-decoration:none;border-bottom:1px solid var(--gold);padding:var(--space-3) 0}
.guide-page .chapter-switcher {border-top:1px solid var(--line);padding:0;min-height:52px;font-size:var(--text-caption)}
.guide-page .chapter-switcher a {min-height:var(--touch-target);display:flex;align-items:center}
.guide-page .chapter-intro {background:transparent;padding:var(--space-4) 0 var(--space-6);border-left:0;border-top:1px solid var(--line);margin:0;gap:var(--space-8)}
.guide-page .chapter-intro>p {font:var(--text-small)/1.9 var(--font-body);max-width:720px}
.guide-page .chapter-intro ol {gap:var(--space-8)}
.guide-page .chapter-intro strong {font:600 23px/1.4 "Baskerville",serif;color:var(--red)}
.guide-page .route-bar {padding:var(--space-2) 0;border-top:1px solid var(--line);border-bottom:0}
.guide-page .route-tabs {gap:var(--space-2)}
.guide-page .route-tabs button,.guide-page .plain-button {font-size:var(--text-small);min-height:var(--touch-target);padding:var(--space-2) var(--space-4);border-radius:var(--radius-panel);transition:background var(--motion-press),color var(--motion-press)}
.guide-page .route-tabs button {border:1px solid var(--line);background:var(--sheet)}
.guide-page .route-tabs button[aria-pressed=true] {background:var(--green);border-color:var(--green);color:var(--sheet)}
.guide-page .plain-button {border-color:var(--green);color:var(--green)}
.guide-page .route-description {font-size:var(--text-small);padding:var(--space-2) 0 var(--space-6);max-width:820px;min-height:0}
.guide-page .guide-layout {grid-template-columns:minmax(0,1fr) 390px;gap:var(--space-8)}
.map-heading {display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ink);padding:var(--space-4) 0 var(--space-2);gap:var(--space-3)}
.map-heading>div {display:flex;align-items:center;gap:var(--space-3)}
.map-heading h2 {font:600 var(--text-map-title)/1.5 var(--font-display);letter-spacing:.08em}
.atlas-index {font-size:11px;letter-spacing:.06em;color:var(--red);padding:3px 6px;border:1px solid var(--red)}
#label-status {font-size:var(--text-caption);font-variant-numeric:tabular-nums;color:var(--muted)}
.map-hint {font-size:var(--text-caption);color:var(--muted);padding:0 0 var(--space-4);line-height:1.8}
.map-hint>span:first-child {color:var(--red);margin-right:var(--space-1)}
.phone-hint {display:none}
.guide-page .map-stage {height:var(--map-height);max-height:none;min-height:0;background:var(--map-paper);border:1px solid var(--line);box-shadow:inset 0 0 32px #8c754912;border-radius:var(--radius-panel)}
.guide-page .map-stage:focus-visible {outline:var(--focus-ring);outline-offset:4px}
.guide-page .map-label {font:600 var(--label-minor-size)/1.25 var(--font-display);color:var(--label-ink);padding:5px 9px;min-height:var(--label-height);min-width:var(--label-height);background:var(--label-paper);border:1px solid var(--label-edge);border-radius:var(--radius-label);box-shadow:inset 0 0 0 2px var(--label-paper),inset 0 0 0 3px #b59b6a45,var(--shadow-label);letter-spacing:.04em;opacity:1;transition:background var(--motion-press),color var(--motion-press),box-shadow var(--motion-press);cursor:pointer}
.guide-page .map-label[data-tier=hall] {font-size:var(--label-hall-size);color:var(--red);border-color:var(--label-hall-edge);min-height:34px;padding:6px 11px}
.guide-page .map-label[data-tier=gate] {font-size:var(--label-gate-size);color:var(--green);border-color:var(--green);padding:5px 10px}
.guide-page .map-label:is(:hover,.is-hovered) {color:var(--red);background:var(--label-hover-paper);box-shadow:inset 0 0 0 2px #fffdf6,inset 0 0 0 3px var(--gold),0 3px 10px #46372435;z-index:5}
.guide-page .map-label:active {background:var(--red-soft);box-shadow:inset 0 2px 5px #482b2628}
.guide-page .map-label[aria-pressed=true] {color:var(--sheet);background:var(--label-active);border-color:var(--label-active);box-shadow:inset 0 0 0 2px var(--label-active),inset 0 0 0 3px #f5d8ad8c,0 2px 8px #632f2a44;z-index:6}
.guide-page .map-label:focus-visible {outline:var(--focus-ring);outline-offset:3px;z-index:7}
.guide-page .hotspot {stroke-width:2;transition:fill var(--motion-press),stroke var(--motion-press)}
.guide-page .hotspot:is(:hover,.is-hovered) {fill:var(--hotspot-hover);stroke:var(--red)}
.guide-page .hotspot:active {fill:var(--hotspot-pressed)}
.guide-page .hotspot.selected {fill:var(--hotspot-selected);stroke:var(--red);stroke-width:3;stroke-dasharray:none}
.guide-page .leader {stroke:#78684a;stroke-width:.8}
.guide-page .map-tools {left:var(--space-4);bottom:var(--space-4);border-radius:4px;box-shadow:0 3px 12px #4637241f}
.guide-page .map-tools button {min-width:var(--touch-target);min-height:var(--touch-target);padding:var(--space-2) var(--space-3)}
.guide-page .map-tools button:active {background:var(--red-soft)}
.guide-page .map-tools output {font-size:var(--text-caption);min-width:46px}
.guide-page #fit-map,.guide-page #detail-labels {font-size:var(--text-caption);border-left:1px solid var(--line)}
.guide-page .map-caption {font-size:11px;padding:var(--space-3) 0;line-height:1.8}
.guide-page .map-explanation {font-size:var(--text-caption)}
.guide-page .map-explanation summary {min-height:var(--touch-target);display:flex;align-items:center;text-decoration:underline;text-underline-offset:4px}
.guide-page .reader {position:sticky;top:var(--space-6);max-height:calc(100dvh - 48px);min-height:600px;border:1px solid var(--line);border-top:3px solid var(--red);padding:0 var(--space-6) var(--space-6);background:var(--sheet);border-radius:var(--radius-panel)}
.reader-toolbar {position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;min-height:60px;background:var(--sheet);border-bottom:1px solid var(--line);margin-bottom:var(--space-6);gap:var(--space-3)}
.reader-toolbar>span {font:600 14px/1.4 var(--font-display);letter-spacing:.12em;color:var(--muted)}
.guide-page .close-reader {position:static;display:flex;align-items:center;justify-content:flex-end;gap:var(--space-3);width:auto;min-height:var(--touch-target);min-width:var(--touch-target);padding:0 0 0 var(--space-3);margin:0;border:0;background:var(--sheet);font-size:var(--text-caption);color:var(--muted)}
.close-reader span {font:24px/1 var(--font-body);color:var(--red)}
.close-reader:hover {color:var(--red)}
.reader-empty {padding:80px 0;text-align:center;color:var(--muted)}
.reader-empty h2 {font:600 23px/1.5 var(--font-display);margin:var(--space-6) 0 var(--space-4);color:var(--ink)}
.reader-empty p {font-size:var(--text-small);line-height:2}
.empty-seal {font:600 35px/1 var(--font-display);display:inline-flex;border:1px solid var(--red);padding:var(--space-3);color:var(--red)}
.guide-page .place-heading h2 {font:600 var(--text-place)/1.5 var(--font-display);letter-spacing:.05em}
.guide-page .place-heading .eyebrow {font-size:11px;letter-spacing:.1em}
.guide-page .place-lead {font:var(--text-lead)/1.85 var(--font-display);margin:var(--space-6) 0}
.guide-page .place-en {font:14px/1.5 "Baskerville",serif}
.guide-page .place-meta {font-size:var(--text-caption);line-height:1.9;padding-top:var(--space-4);margin-bottom:var(--space-6)}
.guide-page .reader-section {margin-top:var(--space-8)}
.guide-page .reader-section h3 {font:600 var(--text-section)/1.7 var(--font-display);margin-bottom:var(--space-4)}
.guide-page .reader-section p {font-size:var(--text-body);line-height:1.95}
.guide-page .guide-photo figcaption {font-size:11px;line-height:1.85}
.guide-page .find-item summary {min-height:var(--touch-target);padding:var(--space-3) 0;font-size:var(--text-body)}
.guide-page .beast-row button {min-width:var(--touch-target);min-height:var(--touch-target)}
.guide-page .reader-nav button {min-height:68px}
.guide-page .building-group button {min-height:var(--touch-target);font-size:var(--text-small)}
.guide-page .site-footer {margin:var(--space-12) var(--page-gutter)}
.guide-page button:active {filter:brightness(.97)}
@media (min-width:761px) and (max-width:1100px) {
  .guide-page .guide-layout {grid-template-columns:minmax(0,1fr) 330px;gap:var(--space-4)}
  .guide-page .reader {padding:0 var(--space-4) var(--space-6)}
}
@media(max-width:760px) {
  :root {--page-gutter:18px;--text-title:40px;--text-place:30px;--text-map-title:20px;--map-height:620px;--label-hall-size:15px;--label-gate-size:14px;--label-minor-size:13px;--label-height:44px}
  .guide-page .site-header {padding:var(--space-2) 0;font-size:11px}
  .guide-page .chapter-heading {padding:var(--space-6) 0 var(--space-4);align-items:center;gap:var(--space-3)}
  .chapter-subtitle {font-size:14px;letter-spacing:.01em;max-width:240px}
  .guide-page .chapter-heading .quiet-link {font-size:11px;white-space:normal;max-width:76px;line-height:1.8;text-align:right}
  .guide-page .chapter-switcher {font-size:11px;gap:var(--space-2);flex-wrap:nowrap;min-height:52px}
  .guide-page .chapter-switcher>span {max-width:95px;line-height:1.7}
  .guide-page .chapter-switcher>a {max-width:160px;line-height:1.7}
  .guide-page .chapter-intro {gap:var(--space-3);padding:var(--space-3) 0 var(--space-4)}
  .guide-page .chapter-intro>p {font-size:var(--text-caption)}
  .guide-page .chapter-intro ol {width:100%;justify-content:space-between;gap:var(--space-3)}
  .guide-page .chapter-intro strong {font-size:21px}
  .guide-page .route-bar {align-items:stretch;flex-wrap:wrap;gap:var(--space-2)}
  .guide-page .route-tabs {display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:6px}
  .guide-page .route-tabs button {padding:var(--space-2) 6px;font-size:var(--text-caption);white-space:nowrap}
  .guide-page .plain-button {width:100%;display:flex;align-items:center;justify-content:space-between;padding:var(--space-2) var(--space-3);font-size:var(--text-caption)}
  .guide-page .plain-button span {display:inline}
  .guide-page .route-description {font-size:var(--text-caption);padding:var(--space-2) 0 var(--space-4);line-height:1.8}
  .guide-page .guide-layout {grid-template-columns:1fr;gap:0}
  .map-heading {padding:var(--space-3) 0 var(--space-2)}
  .map-heading h2 {font-size:var(--text-map-title)}
  .map-hint {font-size:11px;padding-bottom:var(--space-3)}
  .phone-hint {display:inline}
  .guide-page .map-stage {height:var(--map-height);max-height:none;border-radius:var(--radius-label)}
  .guide-page .map-label,.guide-page .map-label[data-tier=hall],.guide-page .map-label[data-tier=gate] {min-height:var(--touch-target);min-width:var(--touch-target);padding:7px 9px}
  .guide-page .map-tools {left:var(--space-2);bottom:var(--space-2)}
  .guide-page .map-tools button {padding:var(--space-2) 10px}
  .guide-page .map-caption {font-size:11px;gap:var(--space-1)}
  .guide-page .reader {position:fixed;top:auto;left:0;right:0;bottom:0;max-height:82dvh;min-height:0;padding:0 22px calc(24px + env(safe-area-inset-bottom));z-index:20;border-radius:var(--radius-drawer) var(--radius-drawer) 0 0;box-shadow:var(--shadow-sheet);transform:translateY(105%);visibility:hidden;transition:transform var(--motion-panel) var(--ease-panel),visibility 0s linear var(--motion-panel)}
  .guide-page .reader.is-open {transform:translateY(0);visibility:visible;transition:transform var(--motion-panel) var(--ease-panel),visibility 0s linear 0s}
  .reader-toolbar {min-height:64px;margin-bottom:var(--space-6);padding-top:var(--space-2)}
  .reader-toolbar:before {content:"";position:absolute;top:6px;left:calc(50% - 16px);width:32px;height:3px;border-radius:var(--radius-label);background:var(--line)}
  .guide-page .place-heading h2 {font-size:var(--text-place)}
  .guide-page .place-lead {font-size:18px;margin:var(--space-4) 0}
  .guide-page .reader-section h3 {font-size:19px}
  .guide-page .reader-section p {font-size:15px}
  .guide-page .site-footer {margin-top:var(--space-8);font-size:11px}
}
@media(prefers-reduced-motion:reduce) {
  :root {--motion-press:0ms;--motion-panel:0ms}
  .guide-page *, .guide-page *:before {animation:none!important;scroll-behavior:auto!important}
}
.guide-page .site-header nav {align-items:center}
.chapter-background {border-top:1px solid var(--line)}
.chapter-background>summary {min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:var(--text-caption);color:var(--muted);cursor:pointer;gap:var(--space-3);list-style:none}
.chapter-background>summary::-webkit-details-marker {display:none}
.chapter-background>summary span {font-size:11px;color:var(--red);white-space:nowrap}
.guide-page .chapter-background .chapter-intro {border-top:0;padding-top:0}
@media(max-width:760px) {
  .guide-page .chapter-heading {padding-top:var(--space-4)}
  .guide-page .chapter-heading .quiet-link {max-width:66px}
  .guide-page .chapter-switcher {font-size:10px}
  .chapter-background>summary {font-size:11px}
}
.reader-scrim {display:none}
@media(max-width:760px) {
  .reader-scrim {display:block;position:fixed;inset:0;background:#263b343b;z-index:19;cursor:pointer}
}
.chapter-background>summary span:after {content:"＋";margin-left:var(--space-2)}
.chapter-background[open]>summary span:after {content:"−"}
@media(min-width:761px) {
  .guide-page .chapter-heading {padding:var(--space-5) 0 var(--space-4)}
  .guide-page .chapter-heading h1 {font-size:var(--text-title);line-height:1.25}
}
.map-heading-actions {justify-content:flex-end}
.guide-page .map-heading .plain-button {width:auto;min-width:var(--touch-target);padding:var(--space-2) var(--space-3);font-size:var(--text-caption);gap:var(--space-2);flex-shrink:0}
@media(max-width:760px) {
  .map-heading {gap:var(--space-2)}
  .map-heading>div {gap:var(--space-2)}
  #label-status {font-size:10px;white-space:nowrap}
  .guide-page .map-heading .plain-button {padding:var(--space-2);font-size:11px}
  .map-heading h2 {white-space:nowrap}
}

/* Phone overview: compact callouts leave roofs visible; detail mode retains full labels. */
:root {--label-overview-hall:11.5px;--label-overview-gate:11px;--label-overview-minor:10.5px;--label-overview-height:24px;--leader-ink:#6d4934;--leader-halo:#fffbed}
.guide-page .leader-layer {pointer-events:none}
.guide-page .leader {stroke:var(--leader-ink);stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}
.guide-page .leader-halo {stroke:var(--leader-halo);stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:none;opacity:.9}
.guide-page .anchor {fill:var(--leader-halo);stroke:var(--red);stroke-width:1.2;pointer-events:none}
.guide-page .map-compass {top:12px;right:12px;z-index:8;min-width:28px;min-height:42px;padding:4px 6px;background:var(--label-paper);border:1px solid var(--line);border-radius:2px;font:600 13px/1.3 var(--font-display);overflow:visible}
@media(max-width:760px) {
  .guide-page .chapter-heading .quiet-link {max-width:none;white-space:nowrap;flex-shrink:0;font-size:11px;min-height:44px;display:inline-flex;align-items:center}
  .guide-page .map-stage.is-overview .map-label {min-height:var(--label-overview-height);min-width:28px;padding:3px 5px;font-size:var(--label-overview-minor);letter-spacing:.015em;box-shadow:0 1px 3px #46372424;border-width:1px}
  .guide-page .map-stage.is-overview .map-label[data-tier=hall] {font-size:var(--label-overview-hall)}
  .guide-page .map-stage.is-overview .map-label[data-tier=gate] {font-size:var(--label-overview-gate)}
  .guide-page .map-stage.is-overview .map-label[aria-pressed=true] {box-shadow:0 1px 4px #632f2a38}
  .guide-page .map-stage.is-overview .map-label:is(:hover,.is-hovered) {box-shadow:0 1px 4px #46372438}
}
@media(max-width:760px) {
  /* Keep the north marker in the plan's right gutter, clear of the corner roof. */
  .guide-page .map-compass {top:6px;right:2px;min-width:0;min-height:0;padding:2px;font-size:11px;line-height:1.3}
}
/* Short quoted terms are indivisible; balance the introductory display copy. */
.quoted-phrase {white-space:nowrap}
.place-heading h2,.place-lead {text-wrap:balance}
.story-title,.find-item summary {text-wrap:pretty}
@media(max-width:760px) {
  :root {--map-height:calc((100vw - var(--page-gutter) - var(--page-gutter) - 26px) * 1.5 + 76px)}
  .guide-page .map-caption {display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:12px 0;line-height:1.8}
  .guide-page .map-caption>span {display:block;min-width:0}
}

/* Sacred-image field notes: optional; no geometry or labels change. */
:root {
  --icon-card-bg: #f8f5ed;
  --icon-card-border: #dcd5c4;
  --icon-note-bg: #edf0e8;
  --icon-accent: #8b4934;
  --icon-card-radius: 4px;
  --icon-name-size: 20px;
  --icon-copy-size: 15px;
}
.iconography-section { padding-top: 24px; border-top: 2px solid var(--icon-accent); }
.iconography-section>.eyebrow { font-size: 9px; letter-spacing: .14em; margin: 0 0 8px; }
.iconography-section>h3 { font-family: var(--serif); font-size: 25px; margin: 0 0 14px; }
.icon-intro { text-wrap: pretty; }
.icon-cards { display: grid; gap: 14px; margin: 24px 0; }
.icon-card { padding: 18px; background: var(--icon-card-bg); border: 1px solid var(--icon-card-border); border-radius: var(--icon-card-radius); min-width: 0; }
.icon-card header { display: flex; align-items: flex-start; gap: 12px; }
.icon-card header>div { min-width: 0; }
.icon-number { color: var(--icon-accent); border-top: 1px solid currentColor; padding-top: 5px; font: 13px/1.5 Georgia,serif; }
.icon-card h4 { margin: 0; color: var(--ink); font: 600 var(--icon-name-size)/1.6 var(--serif); text-wrap: pretty; }
.icon-card .icon-position { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 4px 0 0; }
.icon-card .icon-identity { font-size: var(--icon-copy-size); margin: 14px 0; line-height: 1.85; }
.icon-recognition { border-left: 2px solid var(--icon-accent); padding-left: 12px; }
.icon-recognition>span { color: var(--icon-accent); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.icon-recognition>p,.icon-note>p { font-size: var(--icon-copy-size); line-height: 1.95; margin: 5px 0 0; }
.icon-sources { display: grid; gap: 5px; margin: 14px 0 0; }
.icon-sources a { font-size: 11px; line-height: 1.65; color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.icon-sources a:hover { color: var(--icon-accent); }
.icon-sources a:focus-visible { outline: 2px solid var(--icon-accent); outline-offset: 3px; }
.icon-note { background: var(--icon-note-bg); padding: 18px; margin: 14px 0; border-radius: var(--icon-card-radius); }
.icon-note>h4 { font: 600 17px/1.7 var(--serif); margin: 0 0 8px; }
.icon-footnote { font-size: 12px; line-height: 1.9; color: var(--muted); padding-top: 8px; }
.kings-figure { margin: 22px 0 26px; padding: 20px 12px 14px; border: 1px solid var(--icon-card-border); background: var(--icon-card-bg); text-align: center; }
.kings-figure>figcaption { color: var(--ink); font: 600 17px/1.7 var(--serif); }
.kings-compass { display: grid; grid-template: repeat(3,70px)/repeat(3,minmax(0,1fr)); align-items: center; margin: 14px auto; max-width: 290px; position: relative; }
.king { position: relative; display: grid; justify-items: center; line-height: 1.5; }
.king>span { font-size: 10px; color: var(--muted); }
.king>b { font: 600 19px/1.5 var(--serif); }
.king>small { font-size: 11px; color: var(--icon-accent); }
.king-north { grid-area: 1/2; }.king-west { grid-area: 2/1; }.king-east { grid-area: 2/3; }.king-south { grid-area: 3/2; }
.compass-center { grid-area: 2/2; justify-self: center; border: 1px solid var(--icon-card-border); border-radius: 50%; width: 44px; height: 44px; padding-top: 6px; font: 11px/1.3 var(--serif); color: var(--muted); }
.kings-figure>p { color: var(--muted); font-size: 10px; line-height: 1.8; margin: 0; }
@media(max-width:760px) {
 .iconography-section { margin-top: 24px; }
 .icon-card { padding: 16px; }
 .icon-card h4 { font-size: 19px; }
 .icon-note { padding: 16px; }
 .icon-cards { gap: 12px; }
}

/* Beat the shared reader paragraph selector without changing other chapters. */
.guide-page .iconography-section .icon-position { font-size: 12px; line-height: 1.7; }
.guide-page .iconography-section .icon-footnote { font-size: 12px; line-height: 1.9; }
.guide-page .iconography-section .kings-figure>p { font-size: 11px; line-height: 1.8; }
.guide-page .iconography-section>.eyebrow { font-size: 9px; line-height: 1.6; }
