.atlas .folio { width: min(1250px, 92%); }
.atlas .mast-inner { width: min(1250px, 92%); }
.atlas-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: clamp(26px, 4vw, 62px); border-top: 1px solid var(--line); }
.bookmarks { padding-top: 22px; }
.bookmarks h2 { margin: 20px 0 6px; font: 600 13px/1.4 'Segoe UI', system-ui, sans-serif; color: #65583f; }
.bookmarks h2:first-child { margin-top: 0; }
.bookmarks button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 3px 7px; min-height: 32px; font-weight: 500; background: transparent; border: 0; text-align: left; }
.bookmarks button svg { width: 22px; height: 22px; color: #5a624e; }
.bookmarks button[aria-current="true"] { background: #d8d0b7; color: #20382b; font-weight: 650; }
.compact-index { display: none; }
.entry { padding-block: 22px; }
.entry-header { padding-bottom: 16px; }
.entry-header h2 { margin: 0; font-size: clamp(34px, 3.6vw, 51px); line-height: 1; letter-spacing: -.025em; }
.plates { display: grid; grid-template-columns: minmax(195px, .78fr) minmax(250px, 1.35fr); align-items: start; gap: clamp(18px, 2.4vw, 38px); }
.model, .exercise { min-width: 0; }
.specimen { background: #f4eddb; border: 1px solid #c4b8a1; display: grid; place-items: center; aspect-ratio: 1.2 / 1; max-height: 280px; }
.specimen svg { display: block; height: 86%; width: 86%; overflow: visible; }
#silhouette path { fill: none; stroke: #505b46; stroke-linecap: round; stroke-linejoin: round; }
#silhouette circle { fill: #505b46; }
#reference.tracing #silhouette { opacity: .37; }
#travel { fill: none; stroke: #765019; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
#start { fill: #f3e9d0; stroke: #603f16; stroke-width: 1.25; }
#tip { fill: #bd7731; stroke: #feefc1; stroke-width: 1.15; }
.annotations { margin-top: 12px; }
.atlas .guide { max-width: 39ch; line-height: 1.4; font-size: 16px; }
.atlas .origin-note { display: flex; align-items: center; gap: 7px; margin: 8px 0 16px; color: #615641; font-size: 13px; line-height: 1.3; }
.origin-note span { width: 9px; height: 9px; flex: none; border: 1.5px solid #603f16; border-radius: 100%; background: #f3e9d0; }
.atlas .demonstrate { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #2b4133; border-color: #2b4133; color: #f4ead2; }
.atlas .demonstrate:hover:enabled { background: #3b5743; }
.demonstrate svg { width: 16px; height: 16px; fill: currentColor; }
.scrub { display: flex; align-items: center; gap: 9px; margin-top: 10px; font-size: 12px; color: #605741; }
.scrub input { flex: 1; min-width: 40px; max-width: 160px; margin: 0; accent-color: #675237; height: 24px; }
.exercise-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; margin-bottom: 8px; }
.exercise h3 { margin: 0; font: 600 clamp(22px, 2.1vw, 30px)/1.05 var(--type); letter-spacing: -.02em; }
.exercise-heading button { min-height: 30px; padding: 4px 9px; font-size: 12px; }
.field { position: relative; isolation: isolate; border: 4px solid #746247; border-radius: 3px; width: 100%; aspect-ratio: 1.3; min-height: 175px; max-height: 360px; background: linear-gradient(145deg, #263d2ed9, #101f19f2), url('/assets/forest.webp') center 65%/cover; }
.field p { position: absolute; inset: 0; display: grid; align-content: center; text-align: center; color: #d7ccb0; font: 500 clamp(18px, 2.1vw, 26px)/1.2 var(--type); pointer-events: none; }
#pad { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
#writing { fill: none; stroke: #e0c590; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.atlas .result { margin-top: 9px; min-height: 2.6em; font-size: 14px; line-height: 1.35; color: #5f543e; }
.atlas .result.matched { color: #244e35; font-weight: 650; }
@media (max-width: 840px) {
  .atlas-layout { grid-template-columns: 1fr; gap: 0; }
  .bookmarks { display: none; }
  .compact-index { display: flex; align-items: center; gap: 12px; font: 600 13px/1.35 'Segoe UI', system-ui, sans-serif; color: #59523e; margin-top: 15px; }
  .compact-index select { flex: 0 1 240px; min-width: 90px; font: 15px/1.2 'Segoe UI', system-ui, sans-serif; }
  .entry { padding-top: 16px; }
}
@media (max-width: 540px) {
  .atlas .folio { padding-top: 22px; }
  .atlas .folio-heading { margin-bottom: 14px; }
  .atlas .folio-heading h1 { font-size: 39px; }
  .entry-header { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; }
  .plates { grid-template-columns: 1fr; gap: 16px; }
  .model { display: grid; grid-template-columns: minmax(80px, .72fr) minmax(155px, 1fr); gap: 12px; align-items: start; }
  .specimen { aspect-ratio: 1; }
  .annotations { margin: 0; }
  .atlas .guide { font-size: 14px; }
  .atlas .origin-note { margin: 5px 0 8px; font-size: 12px; }
  .atlas .demonstrate { min-height: 33px; padding: 5px 8px; font-size: 12px; }
  .scrub { margin-top: 3px; }
  .field { aspect-ratio: 1.6; }
}
