body.atlas-page { height: auto; min-height: 100%; overflow: auto; }
.atlas-page {
  --atlas-panel: #f8fafc; --atlas-muted: #526071; --atlas-signal: #ad3022;
  --atlas-outline: #b9c3cf; --atlas-hover: #edf2f7; --atlas-hover-outline: #3a526a;
}
:root[data-theme="dark"] .atlas-page {
  --atlas-panel: #1b2636; --atlas-muted: #a4b7ce; --atlas-signal: #fa9888;
  --atlas-outline: #40516a; --atlas-hover: #26364a; --atlas-hover-outline: #8ea6c4;
}
.atlas-page [hidden] { display: none !important; }
.atlas-page a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: .22em; }
.atlas-page a:hover { color: var(--atlas-signal); text-decoration-color: currentColor; }
.atlas-page :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--in);
  outline-offset: 3px;
}
.atlas-shell { width: min(1196px, calc(100% - 64px)); margin: 0 auto; padding: 18px 0 64px; }
.atlas-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 16px; border-bottom: 1px solid var(--ink); }
.atlas-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; text-decoration: none; }
.atlas-brand strong { font: 500 .9rem/1.3 var(--mono); }
.atlas-original { font-size: .9rem; }
.atlas-kicker { margin: 0 0 10px; font: 500 .83rem/1.4 var(--mono); color: var(--atlas-muted); }
.atlas-feature { padding: 21px 0 19px; }
.atlas-feature h1 { margin: 0 0 8px; font: 400 clamp(2.42rem, 5.3vw, 4.65rem)/.99 var(--serif); }
.atlas-feature h1 em { color: var(--atlas-signal); }
.atlas-feature p { margin: 0 0 11px; color: var(--ink-2); line-height: 1.4; }
.atlas-feature .atlas-kicker { font: 500 .81rem/1.35 var(--mono); letter-spacing: .03em; }
.atlas-featured-sheet {
  display: block; width: 100%; height: clamp(690px, calc(100svh - 110px), 1020px);
  border: 1px solid var(--atlas-outline); background: var(--paper);
}
@media (min-width: 1000px) {
  .atlas-featured-sheet {
    position: relative; left: 50%; transform: translateX(-50%);
    width: min(1640px, calc(100vw - 48px));
    min-height: 740px;
  }
}
.atlas-feature p.atlas-versions { margin-top: 9px; font-size: .86rem; }
.atlas-catalog > h2 { margin: 10px 0 7px; font: 400 2.45rem/1.1 var(--serif); }
.atlas-catalog-intro { max-width: 75ch; color: var(--ink-2); line-height: 1.5; margin: 0 0 15px; }
.atlas-toolbar { display: flex; align-items: end; gap: 15px; flex-wrap: wrap; padding: 16px 0 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.atlas-search { flex: 0 1 270px; display: grid; gap: 6px; min-width: 0; }
.atlas-search label { font: 500 .85rem/1.4 var(--mono); }
.atlas-search :is(input, select) { appearance: none; width: 100%; padding: 10px 12px; min-height: 44px; border: 1px solid var(--atlas-outline); border-radius: 0; color: var(--ink); background: var(--atlas-panel); font: inherit; }
.atlas-search select { padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--atlas-muted) 50%), linear-gradient(135deg, var(--atlas-muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.atlas-count { margin: 0 0 12px auto; font: 500 .81rem/1.3 var(--mono); color: var(--atlas-muted); }
.atlas-family { margin: 28px 0 43px; }
.atlas-family h2 { margin: 0 0 7px; font: 400 2.03rem/1.13 var(--serif); }
.atlas-family > p { margin: 0 0 15px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.atlas-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.atlas-cards a { display: block; min-height: 100%; padding: 16px 16px 18px; border: 1px solid var(--atlas-outline); background: var(--atlas-panel); text-decoration: none; }
.atlas-cards a:hover { color: var(--ink); border-color: var(--atlas-hover-outline); background: var(--atlas-hover); }
.atlas-cards h3 { margin: 12px 0 8px; font: 400 1.67rem/1.07 var(--serif); }
.atlas-cards p { margin: 0; font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.atlas-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 24px; font: 500 .76rem/1.35 var(--mono); color: var(--atlas-muted); }
.atlas-page .atlas-reference-link {
  display: inline-block; margin: 18px 0 11px; padding: 10px 14px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 500 .88rem/1.3 var(--mono); text-decoration: none;
}
.atlas-page .atlas-reference-link:hover { background: #33475e; color: var(--paper); }
.atlas-hero p.atlas-versions { font-size: .88rem; }
.atlas-catalog > h2 { margin: 10px 0 7px; font: 400 2.45rem/1.1 var(--serif); }
.atlas-catalog-intro { max-width: 75ch; color: var(--ink-2); line-height: 1.5; margin: 0 0 15px; }

.atlas-empty { margin: 24px 0; }

.e1p-atlas-native #atlas[hidden] { display: none; }
.e1p-atlas-native .instr-panel .transport { margin-bottom: 12px; }
.e1p-atlas-native .e1p-sheet-link {
  display: inline-block; background: none; border: 0; color: var(--ink-2); cursor: pointer;
  padding: 3px 0; font: 500 12px/1.35 var(--mono); text-decoration: underline; text-underline-offset: 3px;
}
.e1p-atlas-native .e1p-sheet-link:focus-visible { outline: 2px solid var(--in); outline-offset: 2px; }
.e1p-atlas-native .tbtn:disabled { opacity: .34; cursor: default; }
.e1p-atlas-review { margin: 0 0 12px; color: var(--ink-2); font: 500 .78rem/1.4 var(--mono); }
.phase-explanation { margin: 12px 0; }
.phase-explanation > div + div { margin-top: 9px; border-top: 1px solid var(--rule); padding-top: 8px; }
.phase-explanation dt { margin-bottom: 4px; color: var(--ink); font: 500 .73rem/1.25 var(--mono); }
.phase-explanation dd { margin: 0; min-height: 0; color: var(--ink-2); font-size: .82rem; line-height: 1.48; }
.e1p-atlas-phase-notes { padding-inline-start: 1.2em; }
.e1p-atlas-phase-notes li + li { margin-top: 9px; }
.e1p-atlas-phase-notes p { margin-top: 3px; }
.e1p-atlas-native :is(.e1p-evidence, .e1p-atlas-link) a { color: inherit; }
.e1p-atlas-native .callout .nm { white-space: normal; max-width: 20ch; line-height: 1.08; }

@media (max-width: 980px) {
  .atlas-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .atlas-shell { width: calc(100% - 30px); padding-top: 4px; }
  .atlas-top { gap: 10px; }
  .atlas-top > a { font-size: .82rem; }
  .atlas-featured-sheet { height: clamp(460px, 84svh, 660px); }
  .atlas-cards { grid-template-columns: minmax(0, 1fr); }
  .atlas-search { flex: 1 1 220px; }
  .e1p-atlas-native .callout .nm { max-width: 12ch; }
}

.atlas-page #atlas { padding-bottom: 0; }
.atlas-page .site-footer { padding: 1rem 0 1.5rem; }
