:root {
  --atlas-ink: #183e43;
  --atlas-muted: #4d696b;
  --atlas-paper: #fcfcf8;
  --atlas-tint: #e7f0eb;
  --atlas-rule: #d7e1da;
  --atlas-accent: #a65538;
  --atlas-serif: "Songti SC", STSong, "Noto Serif CJK SC", "Source Han Serif SC", "DM Serif Text", Georgia, serif;
  --atlas-header-height: 70px;
  --blue: #295a5b;
  --muted: var(--atlas-muted);
  --border: var(--atlas-rule);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 100%;
  color: var(--atlas-ink);
  background: var(--atlas-paper);
}
* {box-sizing: border-box}
body, h1, h2, h3, p {margin: 0}
[hidden] {display:none !important}
button, input, textarea, select {font: inherit}
button {
  padding: .45rem .72rem; border: 1px solid var(--atlas-rule); border-radius: 5px;
  color: var(--atlas-ink); background: transparent; cursor: pointer; white-space: nowrap;
  font-size: .875rem; line-height: 1.5;
}
button:hover:not(:disabled) {background: var(--atlas-tint)}
button:disabled {opacity: .42; cursor: default}
button.active, button[aria-pressed=true], button.primary {
  color: white; border-color: var(--blue); background: var(--blue);
}
button.active:hover, button[aria-pressed=true]:hover, button.primary:hover {background: #194b4e}
:where(button, a, summary, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #aa5134; outline-offset: 3px;
}

.atlas-header {
  height: var(--atlas-header-height); padding: 0 clamp(1rem,2.8vw,3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.3rem;
  border-bottom: 1px solid var(--atlas-rule); color: var(--atlas-ink); background: var(--atlas-paper);
}
.brand {display: inline-flex; align-items: center; gap: .68rem; flex: none}
.brand h1 {font-family: var(--atlas-serif); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: .05em}
.brand-mark {position: relative; display: inline-block; width: 34px; height: 34px; border: 1.4px solid currentColor; border-radius: 50%}
.brand-mark::before, .brand-mark::after {content: ""; position: absolute; inset: 5px 0; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-42deg)}
.brand-mark::after {transform: rotate(42deg); opacity: .52}
.brand-mark i {position: absolute; top: 5px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--atlas-accent); outline: 2px solid var(--atlas-paper)}
.atlas-header .review-link {
  display:inline-flex; align-items:center; min-height:32px; margin-inline-start:.35rem;
  color:var(--blue); font-size:.87rem; text-underline-offset:.22em;
}
.header-actions {display: flex; align-items: center; gap: .6rem}
.section-link {
  display:inline-flex; align-items:center; justify-content:center; gap:.65rem; min-height:44px;
  padding:.35rem .85rem; border:1px solid #acc6b9; border-radius:5px; color:#214f49; background:#e8f1eb;
  text-decoration:none; white-space:nowrap; font-size:.92rem; font-weight:650;
}
.section-link:hover {background:#d9e9dd; border-color:#729b89}
.section-link::after, .chapter-link::after {
  content:""; display:block; width:.4em; height:.4em; border:solid currentColor;
  border-width:1.6px 1.6px 0 0; transform:rotate(45deg);
}
.header-actions > button {border-color: transparent; min-height: 38px; font-weight: 550}
.header-actions #open-olympiad {background: none; border-color: transparent; color: var(--atlas-ink)}
.header-actions #open-olympiad:hover {background: var(--atlas-tint)}
.header-actions #open-search {display: inline-flex; align-items: center; gap: .6rem}
.search-mark {display: inline-block; position: relative; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 2px}
.search-mark::after {content: ""; position: absolute; width: 5px; height: 1.5px; background: currentColor; bottom: -2px; right: -4px; transform: rotate(45deg)}


.workspace {display: grid; grid-template-columns: minmax(0,1fr) clamp(345px,32vw,37rem); height: calc(100dvh - var(--atlas-header-height))}
.workspace.wide-map {grid-template-columns: minmax(0,1fr)}
.workspace.wide-map > aside {display: none}
.workspace > main {min-width: 0; min-height: 0; display: flex; flex-direction: column}
.toolbar {display: flex; align-items: center; justify-content: space-between; gap: .45rem 1rem; flex-wrap: wrap; padding: .58rem 1.2rem; border-bottom: 1px solid var(--atlas-rule); background: var(--atlas-paper)}
.crumb, .tools {display: flex; align-items: center; gap: .32rem}
.crumb {min-height: 33px}
.crumb strong {font-family: var(--atlas-serif); font-size: 1.15rem; letter-spacing: .02em; font-weight: 700}
.tools {flex-wrap: wrap}
#reading-start {
  display:flex; align-items:center; flex-wrap:wrap; gap:0 1rem; padding:.1rem 1.2rem;
  border-bottom:1px solid var(--atlas-rule); background:#f5f8f3; font-size:.9rem;
}
.reading-start-label {color:var(--atlas-muted); font-size:.78rem; white-space:nowrap}
#first-chapters {display:flex; align-items:center; flex-wrap:wrap; gap:0 .9rem}
#reading-start a {
  display:inline-flex; align-items:center; min-height:40px; color:var(--blue);
  text-decoration:underline; text-decoration-color:#96aca3; text-underline-offset:.22em;
}
#reading-start a:hover {color:var(--atlas-accent); text-decoration-color:currentColor}
.map-resume {
  flex:1; min-width:0; align-content:center; min-height:34px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  text-align:right; color:var(--blue); font-size:.85rem; font-weight:650; text-underline-offset:.22em;
}
#map-panel:has(#reading-start[hidden]) .map-resume {display:none}
.tools button, .crumb button {border: 0; font-size: .875rem; padding: .35rem .45rem; min-height: 34px}
.crumb button {padding-left: 0; color: var(--atlas-muted)}
.crumb button::after {content: "/"; margin-left: .55rem; color: #94a69e}

#canvas {position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f6f9f4 radial-gradient(#a5b9ac70 .7px, transparent .85px) 0 0/20px 20px}
#map {width: 100%; height: 100%; display: block; touch-action: none; user-select: none; cursor: grab}
#map.dragging {cursor: grabbing}
.world-core, .knowledge-node {cursor: pointer}
.world-core circle {fill: var(--world); stroke: #fff; stroke-width: 3}
.world-count {fill: white; font-weight: 600}
.world-label {fill: var(--atlas-ink); font-weight: 600}
.world-ring {fill: none; stroke: var(--world); stroke-opacity: .3; stroke-width: 1.5}
.satellite {fill: #fffcf6; stroke: var(--world); stroke-width: 2.8}
.node-number {fill: var(--world); font-weight: 600; text-anchor: middle; pointer-events: none}
.node-label {fill: var(--atlas-ink); text-anchor: middle; paint-order: stroke; stroke: #f6f9f4; stroke-width: 5; stroke-linejoin: round; pointer-events: none}
.knowledge-node.selected .satellite {fill: var(--world); stroke: #244b4d}
.knowledge-node.selected .node-number {fill: white}
.knowledge-node:focus-visible .satellite, .knowledge-node:hover .satellite {stroke: #a85438; stroke-width: 3}
.focus-boundary {fill: #edf3ec; fill-opacity: .55; stroke: none}
.edge {fill: none; stroke: #75958d; cursor: pointer; marker-end: url(#arrow); vector-effect: non-scaling-stroke; stroke-width: 1.3}
.edge.prerequisite {stroke: #426e69; stroke-width: 2}
.edge.perspective {stroke: #6e8a88; stroke-dasharray: 4 4}
.edge.selected {stroke: #ac5538; stroke-width: 3}
.edge-hit {fill: none; stroke: transparent; vector-effect: non-scaling-stroke; stroke-width: 12; cursor: pointer}
.map-bottom {position: absolute; bottom: 13px; left: 14px; right: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; pointer-events: none}
.legend, .zoom {background: #fcfcf8ed; border-radius: 6px; color: #395c5c; border: 1px solid #d4e0d9; font-size: .78rem}
.legend {display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; padding: .44rem .65rem}
.legend-item {display: inline-flex; align-items: center; gap: 4px; white-space: nowrap}
.line {width: 15px; border-top: 1.5px solid #688982}
.line.prerequisite {border-top: 2.5px solid #365f59}
.line.perspective {border-top: 1.5px dashed #668580}
.line.section {border-top: 2px dotted #39635f}
.relay-key-symbol {display: inline-block; width: 7px; height: 7px; border: 1.4px solid #436c68; transform: rotate(45deg); margin-inline: 3px}
.legend-item[hidden] {display: none}
#all-links {border: 1px solid var(--atlas-rule); border-radius: 5px; padding-inline: .6rem}
#all-links[aria-pressed="true"] {color: #fff; background: #285955}
.learning-parents, .learning-path {margin: 1rem 0; border-top: 1px solid var(--atlas-rule)}
#inspector :is(.learning-parents,.learning-path) h3 {margin: .8rem 0 .45rem}
.learning-parents a, .learning-path a {color: #215b56; text-underline-offset: .2em}
.learning-parents a {display: block; width: fit-content; padding-block: .2rem}
.learning-parents small {margin-left: .45rem; color: var(--atlas-muted)}
.learning-parents p {font-size: .87rem; line-height: 1.65; margin: .1rem 0 .6rem; color: var(--atlas-muted)}
.learning-path ol {padding-left: 1.5rem; line-height: 1.8}
.learning-path button {padding: .12rem .4rem}
.lesson-body select {margin-top: .35rem}
.lesson-body summary {cursor: pointer}
.lesson-note {padding: .5rem .65rem; margin: .8rem 0; border-left: 2px solid #8aaca1; background: #edf2eb}
.lesson-prose {margin: .5rem 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.85}
.lesson-body h4, .lesson-note summary {overflow-wrap: anywhere; font-family: var(--atlas-serif)}
.lesson-body h4 {margin: 1.1rem 0 .35rem}
.zoom {display: flex; align-items: center; padding: .13rem; gap: .12rem; pointer-events: auto}
.zoom button {min-width: 30px; min-height: 29px; border: 0; padding: .18rem .45rem; color: inherit}
.zoom span {min-width: 34px; text-align: center; font-variant-numeric: tabular-nums}
#map-hint {position: absolute; top: 10px; left: 15px; right: 15px; text-align: center; color: #486162; font-size: .78rem; pointer-events: none}

.workspace > aside {overflow: auto; padding: 1.55rem 1.35rem 2.5rem; border-left: 1px solid var(--atlas-rule); background: var(--atlas-paper)}
body[data-view="student"] .workspace > aside {padding-inline: clamp(1.2rem, 2.15vw, 2.1rem); overflow-wrap: anywhere}
.student-article, #student-lesson {line-height: 1.85}
:is(.student-article,#student-lesson) :is(.lesson-prose,#topic-preview) {line-height: 1.9; letter-spacing: .012em}
:is(.student-article,#student-lesson) .empty {margin: .75rem 0 1.15rem}
body[data-view="student"] #inspector a {color: #215b56; text-underline-offset: .2em; text-decoration-thickness: 1px}
body[data-view="student"] #inspector a:hover {color: #88452e}
.reading-actions {display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .7rem; margin:.4rem 0 1.15rem}
body[data-view="student"] #inspector .chapter-link {
  display:inline-flex; align-items:center; justify-content:center; gap:.85rem; min-height:44px;
  padding:.55rem 1rem; border-radius:5px; color:white; background:#285b54;
  font-weight:650; line-height:1.45; text-decoration:none;
}
body[data-view="student"] #inspector .chapter-link:hover {background:#19483f}
.return-to-map {display:none}
#inspector h2, #inspector h3, #topic-search h2 {font-family: var(--atlas-serif)}
#inspector h2 {font-size: 1.55rem; line-height: 1.45; margin: .32rem 0 1rem; text-wrap: pretty}
#inspector h3 {font-size: 1.06rem; margin: 1.6rem 0 .55rem}
.eyebrow {color: var(--atlas-accent); font-size: .78rem; letter-spacing: .05em}
.intro, .empty {font-size: .9375rem; line-height: 1.84; color: var(--atlas-muted)}
.intro {margin: .65rem 0 1rem}
.field {display: flex; flex-direction: column; gap: .35rem; margin: .9rem 0; color: var(--atlas-muted); font-size: .875rem}
.field input, .field textarea, .field select, #topic-query {
  width: 100%; padding: .55rem .65rem; border: 1px solid #c8d5cc; border-radius: 5px;
  font-size: 1rem; line-height: 1.55; color: var(--atlas-ink); background: #fffefa;
}
.field textarea {min-height: 110px; resize: vertical}
.field select {padding-right: 1.75rem}
.row {display: flex; gap: .45rem; flex-wrap: wrap}
.row button {flex: 1}
.danger {color: #9a4635}
.relation-item, .topic-item {
  display: block; width: 100%; text-align: left; white-space: normal;
  border: 0; border-bottom: 1px solid #e2e8e1; border-radius: 0; line-height: 1.62; padding: .55rem .2rem;
}
.relation-item small {display: block; color: var(--atlas-muted); font-size: .78rem; margin-top: .18rem}
.stat {font: 2rem/1.25 var(--atlas-serif); color: var(--atlas-ink); margin: 1rem 0 .2rem}
.subtle {font-size: .79rem; line-height: 1.75; color: var(--atlas-muted); margin-top: .8rem}
#topic-preview {white-space: pre-line; font-size: 1rem; line-height: 1.88; color: #294647}
#topic-more {margin: .85rem 0 .3rem}
#topic-more summary {cursor: pointer; color: var(--atlas-muted); font-size: .875rem}
#toast {position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; padding: .7rem 1.1rem; border-radius: 6px; background: #214b4a; color: white; max-width: min(700px,92vw); font-size: .875rem; box-shadow: 0 7px 22px #163e4528}
dialog {border: 1px solid var(--atlas-rule); border-radius: 12px; box-shadow: 0 18px 70px #173e4538; width: min(470px,92vw); padding: 1.6rem; color: var(--atlas-ink); background: var(--atlas-paper)}
dialog::backdrop {background: #183b433d}
dialog h2 {font-size: 1.4rem}
dialog p {line-height: 1.8; color: var(--atlas-muted)}
.dialog-actions {display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.4rem}
#topic-search {width: min(490px,94vw); padding: 1.4rem; max-height: 80dvh}
.search-heading {display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-bottom: .9rem}
.search-heading h2 {margin: 0}
#topic-match-count {font-size: .83rem; color: var(--atlas-muted); margin-top: .6rem}
#topic-results {list-style: none; padding: 0; margin: .4rem 0 0; max-height: 48dvh; overflow-y: auto}
#topic-results a {display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; text-decoration: none; color: var(--atlas-ink); border-radius: 3px; padding: .54rem .4rem}
#topic-results a:hover, #topic-results a:focus-visible {background: var(--atlas-tint)}
#topic-results small {color: var(--atlas-muted); font-size: .79rem}
#topic-results li+li {border-top: 1px solid var(--atlas-rule)}
#topic-results a:focus-visible {outline-offset: -3px}
#topic-results li {display:flex; align-items:center; gap:.4rem}
#topic-results .search-topic {flex:1; min-width:0; min-height:44px; align-items:center}
#topic-results .search-read {
  flex:none; align-items:center; min-height:44px; padding-inline:.55rem;
  font-size:.85rem; font-weight:650; color:var(--blue); text-decoration:underline; text-underline-offset:.2em;
}

@media (min-width:641px) and (max-width:900px) {
  .workspace:not(.wide-map) {grid-template-columns: minmax(0,1fr) clamp(286px,42vw,378px)}
}
@media (max-width:1120px) {
  .toolbar {padding-inline: .8rem}
}
@media (max-width:900px) {
  .atlas-header {padding-inline: .85rem; gap: .65rem}
  .header-actions {gap: .2rem}
  .header-actions > button {padding-inline: .4rem}
}
@media (max-width:760px) {
  :root {--atlas-header-height: 94px}
  .atlas-header {
    height: var(--atlas-header-height); display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto;
    align-items: center; padding: .35rem .85rem; gap: 0 .3rem;
  }
  .brand {grid-column: 1; grid-row: 1; gap: .48rem}
  .brand-mark {width: 28px; height: 28px}
  .brand h1 {font-size: 1.27rem}
  body[data-view="student"] {--atlas-header-height: 56px}
  body[data-view="student"] .atlas-header {display: flex}
  .header-actions {grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: .35rem}
  .header-actions > button {min-height: 35px; padding: .3rem .55rem; font-size: .875rem}
  .header-actions #open-olympiad {margin-left: -.3rem}
}

@media (max-width:640px) {
  .atlas-header {position: sticky; top: 0; z-index: 3}
  #inspector {scroll-margin-top: calc(var(--atlas-header-height) + .45rem)}
  .workspace {height: auto; display: flex; flex-direction: column}
  .workspace > main {height: 67dvh; min-height: 425px}
  .workspace.wide-map > main {height: calc(100dvh - var(--atlas-header-height)); min-height: 430px}
  .workspace > aside {border-left: 0; border-top: 1px solid var(--atlas-rule); padding: 1.35rem 1rem 2.2rem}
  .workspace.topic-open > main {display:none}
  .workspace.topic-open > aside {min-height:calc(100dvh - var(--atlas-header-height)); border-top:0}
  #map-panel {scroll-margin-top:var(--atlas-header-height)}
  .topic-open .return-to-map {display:inline-flex; align-items:center; min-height:44px; border-color:transparent; color:var(--blue)}
  .toolbar {padding: .4rem .65rem; column-gap: .45rem; row-gap: 0}
  .crumb strong {font-size: 1.06rem}
  .tools {gap: .1rem .28rem}
  .tools button {font-size: .84rem; padding-inline: .3rem}
  .map-bottom {bottom: 8px; left: 8px; right: 8px; gap: .4rem}
  .legend {gap: .1rem .45rem; padding: .28rem .4rem}
}
@media (max-width:490px) {
  .legend {max-width: 10rem}
  .line {width: 12px}
  .zoom button {min-width: 26px; padding-inline: .3rem}
  #map-hint {font-size: .75rem}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {scroll-behavior: auto !important}
}

#open-olympiad {color:#164e53;background:#e6f2ee;border-color:#c0d9d3}
#olympiad {
  --paper:#fbfaf6; --ink:#143e43; --muted:#506c6b; --line:#d6dfd8; --rust:#a7492f;
  --serif:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC","Nanum Myeongjo",Georgia,serif;
  --gutter:max(clamp(20px,5.5vw,96px),calc((100vw - 1190px)/2));
  margin:0; inset:0; width:100%; max-width:none; height:100dvh; max-height:none;
  box-sizing:border-box; padding:0; border:0; border-radius:0; color:var(--ink);
  background:var(--paper); box-shadow:none; overflow:auto; overscroll-behavior:contain;
}
body:has(#olympiad[open]) {overflow:hidden}
#olympiad::backdrop {background:var(--paper,#fbfaf6)}
#olympiad :is(a,button,summary):focus-visible {outline:2px solid #b76645;outline-offset:4px}
.atlas-bar,.atlas-edition {padding-inline:var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:18px}
.atlas-bar {height:66px;border-bottom:1px solid var(--line)}
.atlas-masthead {display:flex;align-items:center;gap:10px;font:650 22px/1 var(--serif);letter-spacing:.08em}
.atlas-mark {position:relative;width:25px;height:25px;border:1px solid #315e60;border-radius:50%;transform:rotate(-28deg)}
.atlas-mark::before {content:"";position:absolute;width:8px;height:31px;left:7px;top:-4px;border:1px solid #315e60;border-radius:50%}
.atlas-mark i {position:absolute;left:1px;top:2px;width:5px;height:5px;background:#b75b39;border-radius:50%}
.atlas-tools {display:flex;align-items:center;gap:20px}
.atlas-tools button {background:transparent;border:0;border-radius:0;color:var(--ink);font-size:14px;padding:7px 0}
.atlas-tools button:hover {color:var(--rust);text-decoration:underline;text-underline-offset:4px}
#atlas-search {display:inline-flex;align-items:center;gap:8px}
#close-olympiad {padding-left:18px;border-left:1px solid var(--line)}
.search-glyph {display:inline-block;position:relative;width:13px;height:13px;border:1.5px solid currentColor;border-radius:50%}
.search-glyph::after {content:"";position:absolute;right:-5px;bottom:-2px;width:6px;border-top:1.5px solid currentColor;transform:rotate(45deg)}
.atlas-edition {padding-block:18px 14px;min-height:76px}
#olympiad-title {font:600 clamp(25px,2.2vw,32px)/1.32 var(--serif);letter-spacing:.06em}
#olympiad-fields {display:flex;flex-wrap:wrap;align-items:center;gap:clamp(13px,2.3vw,34px)}
#olympiad-fields a {position:relative;color:#526766;text-decoration:none;padding:6px 0;font-size:15px}
#olympiad-fields a:hover,#olympiad-fields a[aria-current] {color:var(--rust)}
#olympiad-fields a[aria-current]::after {content:"";position:absolute;left:0;right:0;bottom:0;border-bottom:2px solid currentColor}
.atlas-lead {
  color:#fbf6e8;display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:center;
  column-gap:clamp(16px,3vw,64px);padding:clamp(28px,3.15vw,50px) var(--gutter);
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(108deg,#122f36 0%,#17434a 57%,#22565c 100%);
}
.atlas-lead::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:repeating-radial-gradient(ellipse at 96% 125%,transparent 0 33px,rgba(166,207,189,.11) 34px,transparent 35px 53px);
  mask-image:linear-gradient(to right,transparent 15%,rgba(0,0,0,.2) 40%,black);
}
.atlas-lead-copy {max-width:660px}
#olympiad .atlas-subject {display:flex;align-items:center;gap:10px;font-size:13px;color:#d9e6d9;letter-spacing:.13em;line-height:1.5}
.atlas-subject::before {content:"";width:25px;border-top:2px solid #dd9e74}
#olympiad .atlas-lead h2 {font:600 clamp(33px,3.9vw,62px)/1.18 var(--serif);margin:10px 0 12px;letter-spacing:.045em;color:#faf5e9;text-wrap:balance}
#olympiad .atlas-question {max-width:37em;color:#e1e8dc;font-size:clamp(16px,1.35vw,19px);line-height:1.7;text-wrap:pretty}
.reading-path {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 0;margin:16px 0 0}
.reading-path a {color:#d1e4dd;font-size:14px;line-height:1.8;text-decoration:underline;text-decoration-color:#8baca459;text-underline-offset:4px}
.reading-path a+a::before {content:"";width:18px;margin:0 8px;display:inline-block;vertical-align:middle;border-top:1px dotted #a6c5bb}
.reading-path a:hover {color:white;text-decoration-color:currentColor}
.ocean-link {display:inline-flex;align-items:center;gap:9px;margin-top:20px;border:1px solid #9cbab0;border-radius:4px;color:#fbf7e9;padding:7px 14px;font-size:14px;text-decoration:none;line-height:1.6}
.ocean-link::before {content:"";width:11px;height:11px;border:1px solid #accac0;border-radius:50%;background:radial-gradient(circle,#e8ecdc 0 2px,transparent 2.5px)}
.ocean-link:hover {background:#eef3df;color:#173f43}
.math-plate {margin:0;align-self:center;justify-self:center;width:min(100%,490px);text-align:center;position:relative}
.math-plate svg {width:100%;height:auto;max-height:260px;display:block;overflow:visible}
.math-plate svg path,.math-plate svg circle {vector-effect:non-scaling-stroke}
.math-plate .outline {stroke:#f0edcc;stroke-width:1.65;fill:none}
.math-plate .secant {stroke:#e9a578;stroke-width:1.65;fill:none}
.math-plate .construction {stroke:#bbd5c2;stroke-opacity:.4;fill:none;stroke-dasharray:2 6}
.math-plate .fine,.math-plate .guide {stroke:#a2c6b8;fill:none;stroke-width:1}
.math-plate .guide {stroke-dasharray:4 5;stroke-opacity:.82}
.math-plate .mark {fill:#f7ebca;stroke:#214f53;stroke-width:1}
.math-plate .warm-dot {fill:#f2aa73;stroke:#214f53;stroke-width:1}
.math-plate .point-name,.math-plate .center-name {font:italic 18px Georgia,serif;fill:#faf2d8;paint-order:stroke;stroke:#1e494d;stroke-width:3}
.math-plate .center-name {font-size:15px;fill:#c4ddd1}
.math-plate .num-label {font:14px Georgia,serif;fill:#e0e6cf}
.math-plate figcaption {font:italic clamp(18px,1.65vw,24px)/1.4 Georgia,var(--serif);letter-spacing:.045em;color:#f3dabc;margin:4px 0 0}
.atlas-body {padding:0 var(--gutter) 60px}
.atlas-body section {margin:0;padding:28px 0 30px}
#olympiad .atlas-body h2 {font:600 clamp(23px,2vw,31px)/1.4 var(--serif);margin:0 0 18px;letter-spacing:.045em}
.connection-spread {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(25px,5vw,85px)}
.connection-note {min-width:0}
.connection-note small {font-size:12px;color:var(--rust);letter-spacing:.08em}
.connection-note h3 {margin:5px 0 7px;font:600 clamp(17px,1.5vw,22px)/1.65 var(--serif)}
.connection-note h3 a {color:var(--ink);text-decoration:none}
.connection-note h3 a:hover,.atlas-index-list a:hover,.reference-links a:hover {color:var(--rust);text-decoration:underline;text-underline-offset:4px}
.thread-link {display:inline-block;position:relative;width:24px;margin:0 9px;vertical-align:middle;border-top:1px solid #869e90}
.thread-link::after {content:"";position:absolute;right:0;top:-3px;width:4px;height:4px;border-top:1px solid #869e90;border-right:1px solid #869e90;transform:rotate(45deg)}
#olympiad .connection-note p,#olympiad .atlas-references p {line-height:1.75;font-size:16px;color:var(--muted)}
.atlas-index,.atlas-references {border-top:1px solid var(--line)}
.index-heading {display:flex;align-items:baseline;gap:15px}
.index-heading small,.olympiad-section summary small {font-size:13px;font-weight:400;color:#5c736f}
.atlas-index-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px clamp(18px,4vw,60px)}
.atlas-index-list a,.reference-links a {color:#2d5756;text-decoration:none;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.atlas-index-list a {padding-left:15px;position:relative}
.atlas-index-list a::before {content:"";position:absolute;top:.73em;left:0;width:5px;height:5px;border:1px solid #8da59b;border-radius:50%}
.olympiad-section {border-top:1px solid #dfe6df}
.olympiad-section summary {list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:13px 3px;font-size:16px;color:#28504f}
.olympiad-section summary::-webkit-details-marker {display:none}
.olympiad-section summary::before {content:"";width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(-45deg);flex:none}
.olympiad-section[open]>summary::before {transform:rotate(45deg)}
.olympiad-section summary small {margin-left:auto}
.olympiad-section summary:hover {color:var(--rust)}
.olympiad-section.index-more {border:0;margin-top:12px}
.index-more>summary {font-size:14px;color:var(--rust);width:fit-content}
.reference-links {display:flex;flex-wrap:wrap;gap:8px 22px;padding:12px 0 20px}
.index-note,.shortlist-question {margin:5px 0 14px}
.index-note h3,.shortlist-question h3 {font-size:16px;line-height:1.6;margin:4px 0;color:var(--ink)}
.shortlist-question a,.edge-passage a,.topic-example a {color:#176164;text-underline-offset:3px}
.shortlist-question a {display:inline-block;margin:4px 14px 0 0;font-size:14px}
.topic-example,.edge-passage {padding:12px;margin:12px 0;background:#eef5f3;border-left:2px solid #639083;font-size:14px;line-height:1.6}
.topic-example p,.edge-passage p {margin:3px 0 6px}
.edge-passage a {display:block}
@media (max-width:760px) {
  .atlas-edition {padding-block:12px;min-height:66px}
  .atlas-lead {grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:6px}
  .atlas-index-list {grid-template-columns:repeat(2,minmax(0,1fr))}
  .connection-spread {gap:22px}
}
@media (max-width:570px) {
  #olympiad {--gutter:20px}
  .atlas-bar {height:54px;gap:6px}
  .atlas-masthead {font-size:19px;gap:8px}
  .atlas-tools {gap:10px}
  .atlas-tools button {font-size:13px}
  #close-olympiad {padding-left:10px}
  .atlas-edition {align-items:flex-start;flex-direction:column;gap:4px;padding-block:12px 9px}
  #olympiad-title {font-size:25px}
  #olympiad-fields {width:100%;gap:20px}
  #olympiad-fields a {font-size:14px}
  .atlas-lead {display:flex;flex-direction:column;align-items:stretch;padding-block:23px 15px}
  .math-plate {width:min(100%,330px);margin-top:5px}
  .math-plate svg {max-height:155px}
  .math-plate figcaption {font-size:17px;margin:0}
  .atlas-lead::before {mask-image:linear-gradient(165deg,transparent,black)}
  #olympiad .atlas-lead h2 {font-size:35px;margin:7px 0}
  .reading-path {margin-top:10px}
  .reading-path a {font-size:13px}
  .reading-path a+a::before {width:9px;margin:0 5px}
  .ocean-link {margin-top:12px}
  .atlas-body section {padding-block:22px}
  .connection-spread {grid-template-columns:1fr;gap:16px}
  .atlas-index-list {gap:9px 16px}
  .atlas-index-list a {font-size:15px}
}
@media(max-width:490px){
  body[data-view="student"] {--atlas-header-height:88px}
  body[data-view="student"] .atlas-header {display:flex; flex-wrap:wrap; justify-content:flex-start; align-content:center; row-gap:.15rem}
  .header-actions {width:100%}
  .section-link {padding-inline:.65rem}
  #reading-start {padding-inline:.65rem; column-gap:.65rem; font-size:.85rem}
  #first-chapters {column-gap:.65rem}
}
