/* The Atlas borrows LitJ's form-paper palette and typography; all additions are scoped. */
.atlas {
  --atlas-measure: 1120px;
  width: min(var(--atlas-measure), calc(100% - 2 * var(--gut, 20px)));
  margin: 0 auto;
  padding: 28px 0 92px;
  color: var(--ink, #1f1b3a);
  font-family: var(--reading, "Old Standard TT", Georgia, serif);
  line-height: 1.62;
}
.atlas *, .atlas *::before, .atlas *::after { box-sizing: border-box; }
.atlas a { color: var(--f-violet, #4f32c8); text-underline-offset: 3px; }
.atlas button, .atlas input, .atlas select, .atlas textarea { font: inherit; color: inherit; }
.atlas button, .atlas a, .atlas input[type="range"], .atlas summary { touch-action: manipulation; }
.atlas button:focus-visible, .atlas a:focus-visible, .atlas input:focus-visible, .atlas select:focus-visible, .atlas textarea:focus-visible, .atlas summary:focus-visible {
  outline: 2px solid var(--f-violet, #4f32c8); outline-offset: 3px;
}
.atlas button {
  min-height: 42px; border: 1px solid var(--f-line, #b9c2d0); background: var(--card, #fcfcfd);
  padding: 8px 13px; cursor: pointer; text-align: left; transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.atlas button:hover, .atlas button[aria-pressed="true"], .atlas button.is-active {
  border-color: var(--f-violet, #4f32c8); color: var(--f-violet, #4f32c8);
}
.atlas .atlas-intro { max-width: 800px; margin: 18px auto 54px; text-align: center; }
.atlas .atlas-kicker, .atlas .atlas-meta, .atlas .atlas-small-label {
  font: italic 400 15px/1.45 var(--display, "Old Standard TT", Georgia, serif); color: var(--muted, #575470);
}
.atlas .atlas-intro h1 {
  margin: 14px 0 18px; color: var(--f-violet, #4f32c8);
  font: 700 clamp(46px, 8vw, 86px)/.99 var(--display, "Old Standard TT", Georgia, serif);
  letter-spacing: -.035em;
}
.atlas .atlas-intro .atlas-lead { max-width: 690px; margin: 0 auto; font: italic 400 clamp(20px, 2.5vw, 28px)/1.35 var(--display, "Old Standard TT", Georgia, serif); }
.atlas .atlas-subnav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 25px;
  margin: 0 auto 46px; padding: 14px 6px; border-block: 1px solid var(--f-line, #b9c2d0);
  font: 400 17px/1.3 var(--display, "Old Standard TT", Georgia, serif);
}
.atlas .atlas-subnav-disclosure { display: none; }
.atlas .atlas-subnav a { color: var(--muted, #575470); text-decoration: none; padding: 4px 0; }
.atlas .atlas-subnav a:hover, .atlas .atlas-subnav a[aria-current="page"] { color: var(--f-violet, #4f32c8); text-decoration: underline; text-underline-offset: 5px; }
.atlas .atlas-page-head { max-width: 800px; margin: 0 auto 35px; }
.atlas .atlas-page-head h1 { margin: 6px 0 14px; font: 700 clamp(38px, 5.5vw, 60px)/1.06 var(--display, "Old Standard TT", Georgia, serif); letter-spacing: -.02em; }
.atlas .atlas-page-head .atlas-lead { margin: 0; color: var(--muted, #575470); font-size: 19px; }
.atlas .atlas-rule { border: 0; border-top: 1px solid var(--f-line, #b9c2d0); margin: 32px 0; }
.atlas .atlas-actions { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 24px; }
.atlas .atlas-actions a { font-size: 17px; font-weight: 700; }
.atlas .atlas-link { display: inline-flex; align-items: center; min-height: 42px; }
.atlas .atlas-primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 16px; background: var(--f-violet, #4f32c8); color: var(--f-on-violet, #fff) !important; text-decoration: none; font-weight: 700; }
.atlas .atlas-panel, .atlas .atlas-card, .atlas .atlas-node, .atlas .atlas-print-card {
  background: var(--card, #fcfcfd); box-shadow: 0 0 0 1px var(--f-edge, rgba(31,27,58,.14)), 0 24px 44px -38px var(--f-shadow, rgba(31,27,58,.42));
}
.atlas .atlas-panel { padding: clamp(18px, 3vw, 30px); }
.atlas .atlas-card { padding: 19px 22px; }
.atlas .atlas-section-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 44px 0 17px; }
.atlas .atlas-section-title h2 { margin: 0; font: 700 clamp(28px, 4vw, 40px)/1.08 var(--display, "Old Standard TT", Georgia, serif); }
.atlas .atlas-section-title p { margin: 0; color: var(--muted, #575470); font-style: italic; }
.atlas .atlas-choice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.atlas .atlas-choice-list a { display: block; padding: 14px 2px; border-bottom: 1px solid var(--f-line, #b9c2d0); color: var(--ink, #1f1b3a); text-decoration: none; font-size: 19px; }
.atlas .atlas-choice-list a:hover { color: var(--f-violet, #4f32c8); }
.atlas .atlas-choice-list .atlas-small-label { display: block; margin-bottom: 3px; }
.atlas .atlas-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); gap: 28px; align-items: start; }
.atlas .atlas-list { display: grid; gap: 13px; }
.atlas .atlas-route-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--f-line, #b9c2d0); }
.atlas .atlas-route-number { color: var(--f-violet, #4f32c8); font: 400 14px/1.55 var(--mono, monospace); }
.atlas .atlas-route-row h2, .atlas .atlas-route-row h3 { margin: 0 0 6px; font: 700 25px/1.1 var(--display, "Old Standard TT", Georgia, serif); }
.atlas .atlas-route-row p { margin: 0; color: var(--muted, #575470); }
.atlas .atlas-route-row a { align-self: center; white-space: nowrap; }
.atlas .atlas-map-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .7fr); gap: 22px; align-items: start; }
.atlas .atlas-map-wrap { min-width: 0; overflow: hidden; background: var(--card, #fcfcfd); box-shadow: inset 0 0 0 1px var(--f-edge, rgba(31,27,58,.14)); padding: 10px; }
.atlas .atlas-map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.atlas .atlas-map-svg .atlas-edge { stroke: var(--f-line, #b9c2d0); stroke-width: 1.6; }
.atlas .atlas-map-svg .atlas-edge.is-hot { stroke: var(--f-violet, #4f32c8); stroke-width: 2.5; }
.atlas .atlas-map-svg .atlas-edge.is-dim { opacity: .25; }
.atlas .atlas-map-svg .atlas-map-node { cursor: pointer; }
.atlas .atlas-map-svg .atlas-map-node circle { fill: var(--card, #fcfcfd); stroke: var(--f-line, #b9c2d0); stroke-width: 1.5; }
.atlas .atlas-map-svg .atlas-map-node:hover circle, .atlas .atlas-map-svg .atlas-map-node.is-selected circle { fill: var(--f-violet, #4f32c8); stroke: var(--f-violet, #4f32c8); }
.atlas .atlas-map-svg .atlas-map-node text { fill: var(--ink, #1f1b3a); font: 16px var(--display, Georgia, serif); text-anchor: middle; pointer-events: none; }
.atlas .atlas-map-svg .atlas-map-node.is-selected text, .atlas .atlas-map-svg .atlas-map-node:hover text { fill: var(--f-on-violet, #fff); }
.atlas .atlas-map-detail h2 { margin: 0 0 8px; font: 700 30px/1.1 var(--display, Georgia, serif); }
.atlas .atlas-map-detail p { color: var(--muted, #575470); }
.atlas .atlas-map-route-links { display: grid; gap: 7px; margin-top: 18px; }
.atlas .atlas-map-route-links a, .atlas .atlas-node-links a { padding: 10px 12px; border: 1px solid var(--f-line, #b9c2d0); background: var(--card, #fcfcfd); text-decoration: none; }
.atlas .atlas-map-node-index { margin-top: 30px; }
.atlas .atlas-map-node-index details { padding: 12px 0; border-top: 1px solid var(--f-line, #b9c2d0); }
.atlas .atlas-map-node-index summary { cursor: pointer; font: 700 20px var(--display, Georgia, serif); }
.atlas .atlas-node-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.atlas .atlas-reader-head { max-width: 820px; margin: 0 auto 42px; }
.atlas .atlas-reader-head h1 { margin: 8px 0 15px; font: 700 clamp(40px, 6vw, 66px)/1.02 var(--display, Georgia, serif); }
.atlas .atlas-reader-head .atlas-lead { font-size: 20px; }
.atlas .atlas-promise { margin-top: 20px; padding: 15px 18px; border-left: 3px solid var(--f-violet, #4f32c8); background: var(--card, #fcfcfd); color: var(--muted, #575470); }
.atlas .atlas-reader-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 36px; align-items: start; }
.atlas .atlas-reader-nav { position: sticky; top: 18px; display: grid; gap: 3px; max-height: calc(100dvh - 36px); overflow: auto; }
.atlas .atlas-reader-nav a { padding: 7px 9px; color: var(--muted, #575470); text-decoration: none; border-left: 2px solid transparent; font-size: 15px; line-height: 1.3; }
.atlas .atlas-reader-nav a:hover, .atlas .atlas-reader-nav a[aria-current="location"] { color: var(--f-violet, #4f32c8); border-left-color: var(--f-violet, #4f32c8); }
.atlas .atlas-node { margin-bottom: 24px; padding: clamp(20px, 4vw, 38px); scroll-margin-top: 24px; }
.atlas .atlas-node h2 { margin: 5px 0 17px; font: 700 clamp(27px, 4vw, 38px)/1.12 var(--display, Georgia, serif); }
.atlas .atlas-node .atlas-scene { font-size: 19px; }
.atlas .atlas-node .atlas-principle { color: var(--muted, #575470); }
.atlas .atlas-node-practice { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--f-violet, #4f32c8); background: color-mix(in srgb, var(--f-grid, #dce4f0) 58%, var(--card, #fcfcfd)); }
.atlas .atlas-node-practice p { margin: 5px 0 0; }
.atlas .atlas-output { margin-top: 15px; font-size: 16px; }
.atlas .atlas-permalink-list { margin: 22px 0; border-block: 1px solid var(--f-line, #b9c2d0); }
.atlas .atlas-permalink-list summary { padding: 12px 0; color: var(--muted, #575470); cursor: pointer; font-size: 15px; }
.atlas .atlas-permalink-list ul { display: grid; gap: 6px 20px; margin: 0; padding: 0 0 16px 22px; }
.atlas .atlas-permalink-list a { color: var(--muted, #575470); font-size: 14px; }
.atlas .atlas-case-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas .atlas-case-tabs button { padding-inline: 14px; }
.atlas .atlas-case-answer { margin-top: 18px; font-size: 19px; }
.atlas .atlas-case-answer p { white-space: pre-line; }
.atlas .atlas-chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas .atlas-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.atlas .atlas-tool { padding: 20px; background: var(--card, #fcfcfd); box-shadow: 0 0 0 1px var(--f-edge, rgba(31,27,58,.14)); }
.atlas .atlas-tool h2 { margin: 0 0 8px; font: 700 28px/1.1 var(--display, Georgia, serif); }
.atlas .atlas-tool p { color: var(--muted, #575470); }
.atlas .atlas-tool label { display: block; }
.atlas .atlas-tool input[type="text"], .atlas .atlas-tool input[type="search"], .atlas .atlas-tool textarea, .atlas .atlas-tool select {
  width: 100%; min-height: 44px; margin: 6px 0 12px; padding: 8px 10px; border: 1px solid var(--f-line, #b9c2d0); border-radius: 0; background: var(--card, #fcfcfd);
}
.atlas .atlas-tool textarea { min-height: 86px; resize: vertical; }
.atlas .atlas-range-row { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(90px, 1.3fr) 34px; gap: 10px; align-items: center; margin: 10px 0; }
.atlas .atlas-range-row input { width: 100%; accent-color: var(--f-violet, #4f32c8); }
.atlas output, .atlas .atlas-result { display: block; min-height: 28px; margin-top: 12px; color: var(--ink, #1f1b3a); }
.atlas .atlas-timer { display: block; margin: 10px 0; color: var(--f-violet, #4f32c8); font: 400 clamp(42px, 8vw, 68px)/1 var(--mono, monospace); }
.atlas .atlas-schedule-total { font: 400 24px var(--mono, monospace); color: var(--f-violet, #4f32c8); }
.atlas .atlas-filter-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 24px; }
.atlas .atlas-sheet-grid, .atlas .atlas-print-grid, .atlas .atlas-source-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.atlas .atlas-sheet { padding: 19px 21px; border-top: 2px solid var(--f-violet, #4f32c8); background: var(--card, #fcfcfd); box-shadow: 0 0 0 1px var(--f-edge, rgba(31,27,58,.14)); }
.atlas .atlas-sheet h2 { margin: 9px 0; font: 700 27px/1.1 var(--display, Georgia, serif); }
.atlas .atlas-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.atlas .atlas-tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--f-line, #b9c2d0); color: var(--muted, #575470); font: 12px/1.5 var(--mono, monospace); }
.atlas .atlas-sheet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: 15px; }
.atlas .atlas-print-card { padding: 23px; break-inside: avoid; }
.atlas .atlas-print-card h2 { font: 700 28px/1.12 var(--display, Georgia, serif); margin: 7px 0 15px; }
.atlas .atlas-print-card li { margin-block: 7px; }
.atlas .atlas-source { padding: 17px; background: var(--card, #fcfcfd); box-shadow: 0 0 0 1px var(--f-edge, rgba(31,27,58,.14)); }
.atlas .atlas-source h2 { margin: 0 0 5px; font: 700 23px/1.2 var(--display, Georgia, serif); }
.atlas .atlas-source p { margin: 0; color: var(--muted, #575470); }
body > .atlas-toast { position: fixed; z-index: 20; left: 50%; bottom: 18px; width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, 16px); opacity: 0; padding: 10px 16px; color: var(--f-on-violet, #fff); background: var(--f-violet, #4f32c8); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
body > .atlas-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.atlas .atlas-error { max-width: 680px; margin: 30px auto; padding: 24px; border-left: 3px solid var(--f-margin, #d9534f); background: var(--card, #fcfcfd); }
.atlas .atlas-empty { padding: 20px; color: var(--muted, #575470); border: 1px dashed var(--f-violet, #4f32c8); }
.atlas .atlas-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.atlas .atlas-principles { max-width: 700px; margin: 30px auto 0; padding-left: 22px; color: var(--muted, #575470); }
.atlas .atlas-principles li { margin: 6px 0; }
.atlas .atlas-helper { margin-top: 16px; padding: 12px 16px; background: var(--card, #fcfcfd); color: var(--muted, #575470); font-size: 15px; }
.atlas .atlas-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) {
  .atlas { padding-top: 19px; }
  .atlas .atlas-subnav-desktop { display: none; }
  .atlas .atlas-subnav-disclosure {
    display: block; margin: 0 auto 22px; border-block: 1px solid var(--f-line, #b9c2d0);
  }
  .atlas .atlas-subnav-disclosure > summary {
    display: flex; align-items: center; justify-content: space-between; min-height: 44px;
    padding: 7px 4px; color: var(--muted, #575470); cursor: pointer; list-style: none;
    font: 400 16px/1.35 var(--display, "Old Standard TT", Georgia, serif);
  }
  .atlas .atlas-subnav-disclosure > summary::-webkit-details-marker { display: none; }
  .atlas .atlas-subnav-disclosure > summary::after {
    content: "＋"; margin-left: 12px; color: var(--f-violet, #4f32c8); font-size: 19px; line-height: 1;
  }
  .atlas .atlas-subnav-disclosure[open] > summary::after { content: "−"; }
  .atlas .atlas-subnav-disclosure .atlas-subnav-disclosure-links {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start;
    gap: 0 16px; margin: 0; padding: 0 4px 10px; border: 0;
    font-size: 15px; justify-content: start;
  }
  .atlas .atlas-subnav-disclosure-links a { display: flex; align-items: center; min-height: 40px; padding: 6px 0; }
  .atlas .atlas-choice-list, .atlas .atlas-page-grid, .atlas .atlas-map-layout, .atlas .atlas-tool-grid, .atlas .atlas-sheet-grid, .atlas .atlas-print-grid, .atlas .atlas-source-list { grid-template-columns: minmax(0,1fr); }
  .atlas .atlas-reader-layout { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .atlas .atlas-reader-nav { display: none; }
  .atlas .atlas-route-row { grid-template-columns: 46px minmax(0,1fr); gap: 11px; }
  .atlas .atlas-route-row a { grid-column: 2; justify-self: start; }
  .atlas .atlas-node-links { grid-template-columns: minmax(0,1fr); }
  .atlas .atlas-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .atlas { width: calc(100% - 32px); }
  .atlas .atlas-intro { margin-bottom: 38px; }
  .atlas .atlas-intro h1 { font-size: clamp(42px, 13vw, 56px); }
  .atlas .atlas-range-row { grid-template-columns: minmax(78px, .9fr) minmax(88px,1fr) 30px; gap: 6px; font-size: 14px; }
  .atlas .atlas-panel { padding: 16px; }
  .atlas .atlas-map-wrap { padding: 2px; }
  .atlas .atlas-map-svg .atlas-map-node text { font-size: 14px; }
  .atlas .atlas-route-row h2, .atlas .atlas-route-row h3 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas *::before, .atlas *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  body { background: #fff !important; color: #111 !important; }
  body > header, body > footer, .mast, .footer, .atlas-subnav, .atlas-subnav-disclosure, .atlas-reader-nav, .atlas-actions, .atlas button, .atlas .no-print, body > .atlas-toast { display: none !important; }
  .atlas { width: 100%; max-width: none; padding: 0; color: #111; font-size: 11pt; }
  .atlas .atlas-intro { margin: 0 0 20px; }
  .atlas .atlas-panel, .atlas .atlas-card, .atlas .atlas-node, .atlas .atlas-print-card, .atlas .atlas-sheet { box-shadow: none; border: 1px solid #aaa; }
  .atlas .atlas-reader-layout, .atlas .atlas-map-layout { display: block; }
  .atlas .atlas-node, .atlas .atlas-print-card { break-inside: avoid; }
  .atlas a { color: #111; }
  .atlas a[href]::after { content: none; }
  .atlas.is-printing-single .atlas-print-card:not(.atlas-print-target) { display: none !important; }
}
