/* Scale.gg Feature Atlas
   Monochrome docs frame + the site's pastel blocks, pushed toward a cartographic
   reference: mono coordinates, a survey grid, and the four-station "chain"
   (Feature → Advantage → Benefit → Promised Land) as the signature element. */

:root {
  --atlas-bar-h: 56px;
  --atlas-top: 68px;
  --atlas-night: #15132b;
  --atlas-night-2: #221f45;
  --atlas-soft: #f7f7f3;
  --atlas-hair: #ececE6;
  --atlas-rail-w: 288px;
  --atlas-aside-w: 232px;
  --atlas-focus: 0 0 0 3px rgba(111, 75, 216, 0.35);
}

.atlas-body { background: var(--paper); overflow-x: clip; }
.atlas { position: relative; }
.atlas-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.atlas :is(a, button, input, textarea):focus-visible,
.atlas-ask :is(a, button, input, textarea):focus-visible,
.atlas-palette :is(a, button, input):focus-visible { outline: none; box-shadow: var(--atlas-focus); }
.atlas-mono, .atlas-coord, .atlas-kicker, .atlas-route, kbd { font-family: "Geist Mono", ui-monospace, monospace; }
.atlas kbd, .atlas-palette kbd {
  display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff;
  color: var(--muted); font-size: 11px; font-weight: 560; line-height: 1;
}
.atlas-kicker { margin: 0 0 10px; color: var(--muted); font-size: 11.5px; font-weight: 580; letter-spacing: 0.14em; text-transform: uppercase; }
.atlas-coord {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px;
  background: var(--atlas-soft); color: #45453f; font-size: 11.5px; font-weight: 560; letter-spacing: 0.04em; white-space: nowrap;
}
.atlas-coord::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--app-tone, var(--lime)); box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.18); }
.atlas-glyph { display: inline-block; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.atlas-glyph::before, .atlas-glyph::after { content: ""; position: absolute; background: currentColor; }
.atlas-glyph::before { left: 50%; top: -3px; bottom: -3px; width: 1.5px; transform: translateX(-50%); }
.atlas-glyph::after { top: 50%; left: -3px; right: -3px; height: 1.5px; transform: translateY(-50%); }
.atlas-text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.atlas-text-link span { transition: transform var(--motion-fast) var(--ease-out); }
.atlas-text-link:hover span { transform: translateX(3px); }
.atlas-icon-button {
  display: inline-grid; width: 40px; height: 40px; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 22px; line-height: 1;
}
.atlas-icon-button:hover { border-color: var(--ink); }

/* ------------------------------------------------------------ atlas bar */
.atlas-bar {
  position: sticky; z-index: 60; top: var(--atlas-top);
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(16px);
}
.atlas-bar-inner { display: flex; min-height: var(--atlas-bar-h); align-items: center; gap: 12px; width: min(1500px, calc(100% - 32px)); margin-inline: auto; }
.atlas-crumbs { min-width: 0; flex: 1; }
.atlas-crumbs ol { display: flex; min-width: 0; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.atlas-crumbs li { display: flex; min-width: 0; align-items: center; gap: 6px; color: var(--muted); }
.atlas-crumbs li + li::before { content: "/"; color: #c4c4bc; }
.atlas-crumbs a { overflow: hidden; color: var(--muted); text-decoration: none; text-overflow: ellipsis; }
.atlas-crumbs a:hover { color: var(--ink); }
.atlas-crumbs [aria-current] span { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; }
.atlas-bar-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.atlas-search-trigger, .atlas-ask-trigger, .atlas-rail-toggle {
  display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--ink); font-size: 14px; font-weight: 560;
  transition: border-color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.atlas-search-trigger { min-width: 220px; color: var(--muted); }
.atlas-search-trigger kbd { margin-left: auto; }
.atlas-search-trigger:hover, .atlas-rail-toggle:hover { border-color: var(--ink); color: var(--ink); }
.atlas-search-trigger svg, .atlas-ask-trigger svg, .atlas-rail-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atlas-ask-trigger { border-color: var(--ink); background: var(--ink); color: #fff; }
.atlas-ask-trigger svg { fill: currentColor; stroke: none; }
.atlas-ask-trigger:hover { transform: translateY(-1px); }
.atlas-rail-toggle { display: none; padding-left: 10px; }
.atlas-rail-toggle > span { position: relative; width: 16px; height: 10px; border-block: 1.6px solid currentColor; }
.atlas-rail-toggle > span::after { content: ""; position: absolute; top: 50%; left: 0; width: 10px; height: 1.6px; background: currentColor; transform: translateY(-50%); }

/* ------------------------------------------------------------ docs grid */
.atlas-docs {
  display: grid; grid-template-columns: var(--atlas-rail-w) minmax(0, 1fr) var(--atlas-aside-w);
  width: min(1500px, calc(100% - 32px)); margin-inline: auto; gap: 0 clamp(28px, 3vw, 56px); align-items: start;
}
.atlas-doc { min-width: 0; padding: clamp(36px, 4vw, 56px) 0 80px; }
.atlas-app { grid-column: 2 / 4; }

/* ------------------------------------------------------------ rail */
.atlas-rail {
  position: sticky; top: calc(var(--atlas-top) + var(--atlas-bar-h)); align-self: start;
  max-height: calc(100vh - var(--atlas-top) - var(--atlas-bar-h)); max-height: calc(100dvh - var(--atlas-top) - var(--atlas-bar-h));
  overflow-y: auto; overscroll-behavior: contain; padding: 22px 12px 40px 0; border-right: 1px solid var(--line);
  scrollbar-width: thin; scrollbar-color: #d9d9d2 transparent;
}
.atlas-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.atlas-rail-home { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; text-decoration: none; letter-spacing: -0.01em; }
.atlas-rail-close { display: none; }
.atlas-rail-search {
  display: flex; width: 100%; min-height: 40px; align-items: center; gap: 8px; margin-bottom: 18px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--atlas-soft); color: var(--muted); cursor: pointer; font-size: 13.5px; text-align: left;
}
.atlas-rail-search kbd { margin-left: auto; }
.atlas-rail-search:hover { border-color: #bdbdb4; color: var(--ink); }
.atlas-rail ul { margin: 0; padding: 0; list-style: none; }
.atlas-rail-group + .atlas-rail-group { margin-top: 18px; }
.atlas-rail-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-left: 6px;
  color: var(--muted); font-family: "Geist Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
}
.atlas-rail-label::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--cat-tone); box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.14); }
.atlas-rail-row { display: flex; align-items: center; border-radius: 10px; }
.atlas-rail-row > a {
  display: flex; min-width: 0; min-height: 38px; flex: 1; align-items: center; gap: 10px; padding: 4px 6px;
  border-radius: 10px; color: #2b2b27; font-size: 14px; font-weight: 540; text-decoration: none;
}
.atlas-rail-row:hover { background: var(--atlas-soft); }
.atlas-rail-app.is-current > .atlas-rail-row { background: color-mix(in srgb, var(--app-tone) 45%, #fff); }
.atlas-rail-row > a[aria-current] { font-weight: 680; color: var(--ink); }
.atlas-rail-icon { display: inline-grid; width: 26px; height: 26px; flex: none; place-items: center; border-radius: 7px; background: var(--app-tone); color: var(--app-ink); }
.atlas-rail-icon svg, .atlas-chip-icon svg, .atlas-card-app svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atlas-rail-name { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
.atlas-rail-count { color: #8a8a82; font-family: "Geist Mono", monospace; font-size: 11px; }
.atlas-rail-count.is-pending { color: #c4c4bc; font-size: 18px; line-height: 0; }
.atlas-twisty {
  display: inline-grid; width: 30px; height: 30px; flex: none; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: #8a8a82;
}
.atlas-twisty::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform var(--motion-fast) var(--ease-out); }
.atlas-twisty[aria-expanded="true"]::before { transform: rotate(45deg) translate(-2px, -2px); }
.atlas-twisty:hover { background: rgba(5, 5, 5, 0.06); color: var(--ink); }
.atlas-tree { margin: 2px 0 8px 18px !important; padding-left: 10px !important; border-left: 1px solid var(--line); }
.atlas-tree ul { margin-left: 12px !important; padding-left: 8px !important; border-left: 1px dashed #dcdcd5; }
.atlas-node { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.atlas-node > ul { grid-column: 1 / -1; }
.atlas-node > a {
  display: block; min-height: 32px; padding: 6px 8px; overflow: hidden; border-radius: 7px;
  color: #4b4b45; font-size: 13.5px; line-height: 1.35; text-decoration: none; text-overflow: ellipsis;
}
.atlas-node > a:hover { background: var(--atlas-soft); color: var(--ink); }
.atlas-node > a[aria-current] { position: relative; background: var(--ink); color: #fff; font-weight: 600; }
.atlas-area > a { color: var(--ink); font-weight: 640; font-size: 13px; letter-spacing: 0.01em; }
.atlas-tree[data-loading]::after { content: "Loading…"; display: block; padding: 6px 8px; color: var(--muted); font-size: 13px; }
.atlas-rail-scrim { display: none; }

/* ------------------------------------------------------------ doc header */
.atlas-doc-head { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.atlas-doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.atlas-app-chip { display: inline-flex; min-height: 30px; align-items: center; gap: 8px; padding: 2px 12px 2px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.atlas-app-chip:hover { border-color: var(--ink); }
.atlas-chip-icon { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 999px; background: var(--app-tone); color: var(--app-ink); }
.atlas-flag { padding: 3px 9px; border-radius: 999px; background: var(--yellow); font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.atlas-doc h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); font-weight: 440; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.atlas-lede { max-width: 64ch; margin: 18px 0 0; color: #3d3d38; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.55; text-wrap: pretty; }
.atlas-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 24px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, var(--atlas-soft)); }
.atlas-where-label { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.atlas-where-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.atlas-where-path li { padding: 4px 10px; border: 1px solid #deded6; border-bottom-width: 2px; border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; }
.atlas-where-path li + li::before { content: "›"; position: absolute; left: -14px; top: 50%; color: #a3a39b; font-weight: 400; transform: translateY(-52%); }
.atlas-where-path li + li { position: relative; }
.atlas-route { margin-left: auto; padding: 4px 8px; border-radius: 7px; background: var(--ink); color: #e9e9e2; font-size: 12px; overflow-wrap: anywhere; }
.atlas-fixture-note { margin: 18px 0 0; padding: 10px 14px; border-left: 3px solid #d7bf2c; border-radius: 0 10px 10px 0; background: #fdf8dc; color: #4a4210; font-size: 14px; }

.atlas-section-head { margin-bottom: 22px; }
.atlas-section-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 520; letter-spacing: -0.025em; line-height: 1.12; }
.atlas-section-head h2 a { text-decoration: none; }
.atlas-section-head h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.atlas-doc > section { padding-top: 48px; scroll-margin-top: calc(var(--atlas-top) + var(--atlas-bar-h) + 16px); }

/* ------------------------------------------------------------ the chain */
.atlas-chain-list { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: station; }
.atlas-station { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-bottom: 42px; }
.atlas-station:last-child { padding-bottom: 0; }
.atlas-station::before { content: ""; position: absolute; top: 56px; bottom: 0; left: 27.5px; width: 1.5px; background: repeating-linear-gradient(180deg, #cfcfc7 0 5px, transparent 5px 10px); }
.atlas-station:last-child::before { display: none; }
.atlas-station + .atlas-station::after {
  content: attr(data-bridge); position: absolute; top: -30px; left: 72px;
  padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11.5px; font-style: italic; letter-spacing: 0.02em;
}
.atlas-station-mark {
  position: relative; z-index: 1; display: grid; width: 56px; height: 56px; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 16px; background: #fff; font-family: "Geist Mono", monospace; font-size: 14px; font-weight: 620;
}
.atlas-station-mark svg { position: absolute; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; opacity: 0; }
.atlas-station-body { padding: 16px 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.atlas-station:hover .atlas-station-body { transform: translateX(4px); box-shadow: 0 16px 40px rgba(5, 5, 5, 0.07); }
.atlas-station-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 640; letter-spacing: 0.13em; text-transform: uppercase; }
.atlas-station-label small { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.atlas-station-copy { margin: 0; font-size: clamp(18px, 1.6vw, 21px); font-weight: 460; letter-spacing: -0.012em; line-height: 1.42; text-wrap: pretty; }
.atlas-station-advantage .atlas-station-mark { background: var(--lime); }
.atlas-station-benefit .atlas-station-mark { background: var(--lilac); }
.atlas-station-advantage .atlas-station-body { background: linear-gradient(135deg, color-mix(in srgb, var(--lime) 38%, #fff), #fff 70%); }
.atlas-station-benefit .atlas-station-body { background: linear-gradient(135deg, color-mix(in srgb, var(--lilac) 34%, #fff), #fff 70%); }
.atlas-station-promisedLand .atlas-station-mark { border-color: var(--atlas-night); background: var(--atlas-night); color: transparent; }
.atlas-station-promisedLand .atlas-station-mark svg { opacity: 1; color: var(--lime); }
.atlas-station-promisedLand .atlas-station-body {
  position: relative; overflow: hidden; border-color: var(--atlas-night); color: #fff; padding: 22px 24px 26px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(197, 176, 244, 0.42), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(220, 238, 177, 0.26), transparent 60%),
    linear-gradient(160deg, var(--atlas-night-2), var(--atlas-night));
}
.atlas-station-promisedLand .atlas-station-body::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 72% 18%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 88% 64%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 38% 78%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 42%, #fff 50%, transparent 51%);
}
.atlas-station-promisedLand .atlas-station-label { color: var(--lime); }
.atlas-station-promisedLand .atlas-station-label small { color: rgba(255, 255, 255, 0.62); }
.atlas-station-promisedLand .atlas-station-copy { position: relative; font-size: clamp(20px, 1.9vw, 25px); font-weight: 480; }

/* ------------------------------------------------------------ screenshot */
/* Screenshots use the shared gallery component in /css/shots.css. */
.atlas-app-shots .shots { gap: 28px 20px; }

/* ------------------------------------------------------------ cards */
.atlas-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.atlas-card {
  position: relative; display: flex; min-height: 150px; flex-direction: column; gap: 8px; padding: 16px 16px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms var(--ease-out);
}
.atlas-card::before { content: ""; position: absolute; top: -1px; left: 18px; width: 38px; height: 3px; border-radius: 0 0 3px 3px; background: var(--app-tone); }
.atlas-card:hover { transform: translateY(-3px); border-color: #c9c9c1; box-shadow: 0 18px 40px rgba(5, 5, 5, 0.08); }
.atlas-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.atlas-card-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-card-app { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.atlas-card strong { font-size: 17px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.25; }
.atlas-card-copy { color: #55554f; font-size: 14.5px; line-height: 1.45; }
.atlas-card-sub { margin-top: auto; color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11.5px; }

.atlas-doc-cta {
  display: grid; gap: 18px; margin-top: 56px; padding: clamp(24px, 3vw, 36px) !important;
  border-radius: 24px; background: color-mix(in srgb, var(--app-tone) 55%, #fff);
}
.atlas-doc-cta h2 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 480; letter-spacing: -0.03em; line-height: 1.08; }
.atlas-doc-cta p { margin: 0; max-width: 56ch; color: #33332f; }
.atlas-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.atlas-cta-row .button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.atlas-doc-head .atlas-cta-row, .atlas-app-hero .atlas-cta-row { margin-top: 26px; }

.atlas-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.atlas-pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.atlas-pager a:hover { border-color: var(--ink); }
.atlas-pager small { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.atlas-pager span { font-weight: 600; }
.atlas-pager-prev small::before { content: "← "; }
.atlas-pager-next { text-align: right; }
.atlas-pager-next small::after { content: " →"; }

/* ------------------------------------------------------------ aside */
.atlas-aside { position: sticky; top: calc(var(--atlas-top) + var(--atlas-bar-h) + 36px); display: grid; gap: 22px; padding-top: 56px; }
.atlas-aside-label { margin: 0 0 8px; color: var(--muted); font-family: "Geist Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; }
.atlas-toc { display: grid; gap: 2px; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); list-style: none; }
.atlas-toc a { display: block; padding: 4px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.atlas-toc a:hover, .atlas-toc a.is-active { color: var(--ink); }
.atlas-toc a.is-active { font-weight: 600; }
.atlas-aside-coord { margin: 0; font-family: "Geist Mono", monospace; font-size: 22px; font-weight: 560; letter-spacing: 0.02em; }
.atlas-aside-small { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.atlas-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.atlas-tags a { display: inline-block; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: #4b4b45; font-size: 12.5px; text-decoration: none; }
.atlas-tags a:hover { border-color: var(--ink); color: var(--ink); }
.atlas-aside-ask { padding: 14px; border-radius: 16px; background: var(--atlas-soft); }
.atlas-aside-ask p { margin: 0 0 8px; font-size: 14px; }
.atlas-aside-ask button { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 640; font-size: 14px; }
.atlas-aside-ask svg, .atlas-palette-foot svg { width: 15px; height: 15px; fill: currentColor; }

/* ------------------------------------------------------------ app landing */
.atlas-app-hero { position: relative; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.atlas-app-tile {
  display: grid; width: 72px; height: 72px; place-items: center; margin-bottom: 22px; border-radius: 20px;
  background: var(--app-tone); color: var(--app-ink); box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.1), 0 18px 40px color-mix(in srgb, var(--app-tone) 60%, transparent);
}
.atlas-app-tile svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.atlas-app-hero h1 { font-size: clamp(44px, 6vw, 84px); font-weight: 380; letter-spacing: -0.045em; }
.atlas-app-tagline { max-width: 30ch; margin: 14px 0 0; font-size: clamp(22px, 2.3vw, 30px); font-weight: 460; letter-spacing: -0.02em; line-height: 1.2; }
.atlas-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 640px; margin: 28px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.atlas-stats div { padding: 12px 14px; background: #fff; }
.atlas-stats dt { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.atlas-stats dd { margin: 2px 0 0; font-size: 28px; font-weight: 480; letter-spacing: -0.03em; }
.atlas-spotlight-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.atlas-spotlight-chain li { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 15px; line-height: 1.45; }
.atlas-spotlight-chain small { font-family: "Geist Mono", monospace; font-size: 10.5px; font-weight: 640; letter-spacing: 0.13em; text-transform: uppercase; }
.atlas-spotlight-chain .atlas-station-advantage { background: color-mix(in srgb, var(--lime) 45%, #fff); border-color: transparent; }
.atlas-spotlight-chain .atlas-station-benefit { background: color-mix(in srgb, var(--lilac) 42%, #fff); border-color: transparent; }
.atlas-spotlight-chain .atlas-station-promisedLand { border-color: var(--atlas-night); background: linear-gradient(160deg, var(--atlas-night-2), var(--atlas-night)); color: #fff; }
.atlas-spotlight-chain .atlas-station-promisedLand small { color: var(--lime); }
.atlas-spotlight-chain li + li::before { content: "→"; position: absolute; top: 14px; left: -10px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 11px; z-index: 1; color: var(--ink); }
.atlas-area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.atlas-area-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-margin-top: calc(var(--atlas-top) + var(--atlas-bar-h) + 16px); }
.atlas-area-card:target { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-tone) 70%, transparent); }
.atlas-area-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.atlas-area-count { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11.5px; }
.atlas-area-card h3 { margin: 0; font-size: 22px; font-weight: 560; letter-spacing: -0.02em; }
.atlas-area-card > p { margin: 6px 0 12px; color: #55554f; font-size: 15px; }
.atlas-area-card ul { margin: auto 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.atlas-area-card li a { display: flex; min-height: 44px; align-items: center; gap: 8px; border-bottom: 1px solid var(--atlas-hair); font-size: 15px; font-weight: 540; text-decoration: none; }
.atlas-area-card li a span { flex: 1; }
.atlas-area-card li a small { color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11px; }
.atlas-area-card li a i { color: #b0b0a8; font-style: normal; transition: transform var(--motion-fast) var(--ease-out), color var(--motion-fast) ease; }
.atlas-area-card li a:hover i { color: var(--ink); transform: translateX(3px); }
.atlas-area-more { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.atlas-charting { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 44px; padding: 32px !important; border: 1px dashed #cfcfc7; border-radius: 24px; background: var(--atlas-soft); }
.atlas-charting h2 { margin: 0 0 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -0.025em; }
.atlas-charting p { margin: 0 0 12px; color: #45453f; }
.atlas-highlights { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.atlas-highlights li { position: relative; padding-left: 26px; font-weight: 540; }
.atlas-highlights li::before { content: ""; position: absolute; top: 7px; left: 2px; width: 12px; height: 12px; border-radius: 4px; background: var(--app-tone); box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.18); }
.atlas-charting-map { position: relative; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 18px, #e2e2da 18px 19px); }
.atlas-charting-map i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--app-tone); box-shadow: 0 0 0 4px #fff, 0 0 0 5px #d7d7cf; animation: atlas-blip 2.6s var(--ease-out) infinite; }
.atlas-charting-map i:nth-child(1) { top: 22%; left: 30%; }
.atlas-charting-map i:nth-child(2) { top: 44%; left: 68%; animation-delay: 0.5s; }
.atlas-charting-map i:nth-child(3) { top: 70%; left: 40%; animation-delay: 1s; }
.atlas-charting-map i:nth-child(4) { top: 30%; left: 56%; animation-delay: 1.5s; }
.atlas-charting-map i:nth-child(5) { top: 58%; left: 18%; animation-delay: 2s; }
@keyframes atlas-blip { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.5); } }

/* ------------------------------------------------------------ home */
.atlas-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); isolation: isolate; }
.atlas-hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--atlas-hair) 1px, transparent 1px), linear-gradient(90deg, var(--atlas-hair) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center -1px;
  mask-image: radial-gradient(75% 70% at 50% 40%, #000 30%, transparent 78%);
}
.atlas-hero-grid::before, .atlas-hero-grid::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.atlas-hero-grid::before { top: 6%; left: 8%; width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: var(--lime); }
.atlas-hero-grid::after { right: 6%; bottom: 0; width: 30vw; height: 30vw; max-width: 420px; max-height: 420px; background: var(--lilac); }
.atlas-hero-inner { width: min(980px, calc(100% - 32px)); margin-inline: auto; text-align: center; }
.atlas-hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.8); font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 560; letter-spacing: 0.1em; text-transform: uppercase; }
.atlas-hero h1 { margin: 0; font-size: clamp(44px, 8.2vw, 104px); font-weight: 360; letter-spacing: -0.055em; line-height: 0.96; text-wrap: balance; }
.atlas-hero h1 em { font-style: normal; color: #8a8a82; }
.atlas-hero-lede { max-width: 640px; margin: 24px auto 0; color: #3d3d38; font-size: clamp(17px, 1.6vw, 20px); text-wrap: pretty; }
.atlas-hero-search {
  position: relative; display: flex; align-items: center; gap: 12px; max-width: 720px; margin: 36px auto 0; padding: 8px 10px 8px 20px;
  border: 1.5px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(5, 5, 5, 0.12), 0 0 0 6px rgba(255, 255, 255, 0.7);
  text-align: left;
}
.atlas-hero-search > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.atlas-hero-search input { min-width: 0; min-height: 52px; flex: 1; border: 0; outline: 0; background: transparent; font-size: clamp(16px, 1.6vw, 19px); }
.atlas-hero-search input::-webkit-search-cancel-button { display: none; }
.atlas-hero-search:focus-within { box-shadow: 0 24px 60px rgba(5, 5, 5, 0.12), 0 0 0 6px color-mix(in srgb, var(--lilac) 60%, transparent); }
.atlas-hero-results { position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; right: 0; max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(5, 5, 5, 0.18); }
.atlas-hero-actions { margin-top: 18px; }
.atlas-ask-trigger-lg { min-height: 44px; padding: 0 16px; background: #fff; color: var(--ink); border-color: var(--line); }
.atlas-ask-trigger-lg svg { color: #6f4bd8; }
.atlas-ask-trigger-lg:hover { border-color: var(--ink); }
.atlas-hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 44px 0 0; }
.atlas-hero-stats div { display: grid; }
.atlas-hero-stats dt { order: 2; color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.atlas-hero-stats dd { margin: 0; font-size: clamp(30px, 3.4vw, 44px); font-weight: 420; letter-spacing: -0.04em; line-height: 1.1; }
.atlas-hero-stats dd small { color: #a3a39b; font-size: 0.55em; }

.atlas-legend { padding: clamp(56px, 7vw, 96px) 0; }
.atlas-legend-head { max-width: 640px; margin-bottom: 32px; }
.atlas-legend-head h2, .atlas-directory-head h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 420; letter-spacing: -0.04em; line-height: 1.04; }
.atlas-legend-head > p:last-child { margin: 14px 0 0; color: #45453f; }
.atlas-legend-chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.atlas-legend-chain li { position: relative; display: flex; min-height: 240px; flex-direction: column; gap: 4px; padding: 22px; border-radius: 22px; background: var(--atlas-soft); }
.atlas-legend-chain li:nth-child(2) { background: var(--lime); }
.atlas-legend-chain li:nth-child(3) { background: var(--lilac); }
.atlas-legend-chain li:nth-child(4) { background: linear-gradient(160deg, var(--atlas-night-2), var(--atlas-night)); color: #fff; }
.atlas-legend-chain li:nth-child(4) small { color: rgba(255, 255, 255, 0.64); }
.atlas-legend-chain li + li::before { content: "which means"; position: absolute; top: 22px; left: -12px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--muted); font-family: "Geist Mono", monospace; font-size: 10px; font-style: italic; transform: translateX(-50%) rotate(-90deg) translateX(-50%); transform-origin: center; white-space: nowrap; display: none; }
.atlas-legend-num { font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 600; }
.atlas-legend-chain strong { margin-top: 18px; font-size: 26px; font-weight: 520; letter-spacing: -0.025em; }
.atlas-legend-chain small { color: #4b4b45; font-size: 14px; }
.atlas-legend-chain p { margin: auto 0 0; padding-top: 18px; font-size: 15px; line-height: 1.45; }
.atlas-legend-source { margin: 16px 0 0; color: var(--muted); font-size: 14px; }

.atlas-directory { padding: 0 0 clamp(64px, 8vw, 110px); }
.atlas-directory-head { margin-bottom: 28px; }
.atlas-cat + .atlas-cat { margin-top: 36px; }
.atlas-cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.atlas-cat-icon { display: grid; width: 42px; height: 42px; flex: none; place-items: center; border-radius: 12px; background: var(--cat-tone); }
.atlas-cat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas-cat-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.atlas-cat-head p { margin: 0; color: var(--muted); font-size: 14px; }
.atlas-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.atlas-app-card {
  position: relative; display: flex; min-height: 196px; flex-direction: column; gap: 8px; padding: 18px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; text-decoration: none;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease;
}
.atlas-app-card::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--app-tone); opacity: 0; transform: scale(0.6); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.atlas-app-card:hover { transform: translateY(-4px); border-color: #c9c9c1; box-shadow: 0 22px 50px rgba(5, 5, 5, 0.09); }
.atlas-app-card:hover::after { opacity: 0.55; transform: scale(1); }
.atlas-app-card-top { display: flex; align-items: center; justify-content: space-between; }
.atlas-app-card-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--app-tone); color: var(--app-ink); }
.atlas-app-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.atlas-app-card strong { margin-top: 8px; font-size: 19px; font-weight: 620; letter-spacing: -0.015em; }
.atlas-app-card-copy { color: #55554f; font-size: 14.5px; line-height: 1.45; }
.atlas-app-card-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; color: var(--muted); font-family: "Geist Mono", monospace; font-size: 11.5px; }
.atlas-app-card-foot i { color: var(--ink); font-style: normal; font-family: "Geist", sans-serif; font-size: 16px; transition: transform var(--motion-fast) var(--ease-out); }
.atlas-app-card:hover .atlas-app-card-foot i { transform: translateX(4px); }

/* ------------------------------------------------------------ search results */
.atlas-results-group + .atlas-results-group { margin-top: 6px; }
.atlas-results-label { margin: 0; padding: 8px 10px 4px; color: var(--muted); font-family: "Geist Mono", monospace; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.atlas-result {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 12px;
  color: var(--ink); text-decoration: none; scroll-margin: 8px;
}
.atlas-result[aria-selected="true"], .atlas-result:hover { background: var(--atlas-soft); }
.atlas-result[aria-selected="true"] { box-shadow: inset 0 0 0 1px #d8d8d0; }
.atlas-result-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--app-tone, var(--atlas-soft)); color: var(--app-ink, var(--ink)); font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 640; }
.atlas-result-body { display: grid; min-width: 0; gap: 1px; }
.atlas-result-title { overflow: hidden; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.atlas-result-path { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.atlas-result-snippet { overflow: hidden; color: #55554f; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.atlas-result mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--lime) 85%, #fff); color: inherit; }
.atlas-result-go { color: #b0b0a8; font-size: 15px; }
.atlas-results-empty { margin: 0; padding: 22px 14px; color: var(--muted); text-align: center; }
.atlas-results-empty button { margin-top: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; }

/* ------------------------------------------------------------ palette */
.atlas-palette {
  width: min(720px, calc(100% - 24px)); max-height: min(78vh, 680px); margin: 10vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 40px 120px rgba(5, 5, 5, 0.3);
  overflow: hidden;
}
.atlas-palette[open] { display: flex; flex-direction: column; animation: atlas-pop 220ms var(--ease-out); }
.atlas-palette::backdrop { background: rgba(21, 19, 43, 0.36); backdrop-filter: blur(3px); }
.atlas-palette-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.atlas-palette-bar > svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.atlas-palette-bar input { min-width: 0; min-height: 44px; flex: 1; border: 0; outline: 0; font-size: 18px; }
.atlas-palette-bar input::-webkit-search-cancel-button { display: none; }
.atlas-palette-results { min-height: 120px; flex: 1; overflow-y: auto; padding: 8px; }
.atlas-palette-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--atlas-soft); color: var(--muted); font-size: 12.5px; }
.atlas-palette-foot kbd { margin-right: 3px; }
.atlas-palette-foot button { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 10px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer; font-size: 12.5px; font-weight: 600; }
@keyframes atlas-pop { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ ask panel */
.atlas-ask {
  position: fixed; inset: 0 0 0 auto; width: min(460px, 100%); height: 100%; max-width: 100%; max-height: 100%; margin: 0 0 0 auto; padding: 0;
  border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: -30px 0 90px rgba(5, 5, 5, 0.18);
}
.atlas-ask[open] { animation: atlas-slide 320ms var(--ease-drawer); }
.atlas-ask::backdrop { background: rgba(21, 19, 43, 0.28); backdrop-filter: blur(2px); }
@keyframes atlas-slide { from { transform: translateX(100%); } to { transform: none; } }
.atlas-ask-inner { display: flex; height: 100%; flex-direction: column; }
.atlas-ask-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.atlas-ask-head > div { flex: 1; min-width: 0; }
.atlas-ask-head h2 { margin: 0; font-size: 18px; font-weight: 660; letter-spacing: -0.015em; }
.atlas-ask-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.atlas-ask-mark { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: linear-gradient(140deg, var(--lilac), var(--lime)); }
.atlas-ask-mark svg { width: 20px; height: 20px; fill: var(--ink); }
.atlas-ask-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 12px 16px 0; padding: 4px; border-radius: 999px; background: var(--atlas-soft); }
.atlas-ask-modes button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.atlas-ask-modes button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.atlas-ask-modes button[data-ask-mode="ai"] svg { fill: currentColor; stroke: none; }
.atlas-ask-modes button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(5, 5, 5, 0.1), 0 0 0 1px var(--line); }
.atlas-ask-log { display: flex; flex: 1; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px; }
.atlas-msg { max-width: 92%; font-size: 15px; line-height: 1.55; }
.atlas-msg p { margin: 0; }
.atlas-msg p + p, .atlas-msg p + ul, .atlas-msg ul + p, .atlas-msg p + ol { margin-top: 8px; }
.atlas-msg ul, .atlas-msg ol { margin: 0; padding-left: 20px; }
.atlas-msg a { font-weight: 600; text-underline-offset: 3px; }
.atlas-msg-user { align-self: flex-end; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; }
.atlas-msg-bot { align-self: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: #fff; }
.atlas-msg-intro { border-color: transparent; background: var(--atlas-soft); }
.atlas-msg-note { align-self: stretch; max-width: none; padding: 8px 12px; border-radius: 10px; background: #fdf8dc; color: #4a4210; font-size: 13px; }
.atlas-msg-escalate { display: inline-flex; margin-top: 10px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 13.5px; text-decoration: none; }
.atlas-msg-hits { display: grid; gap: 8px; margin-top: 10px; }
.atlas-msg-hit { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color var(--motion-fast) ease; }
.atlas-msg-hit:hover { border-color: var(--ink); }
.atlas-msg-hit b { font-weight: 640; }
.atlas-msg-hit small { color: var(--muted); font-size: 12.5px; }
.atlas-msg-hit span { color: #45453f; font-size: 13.5px; }
.atlas-typing { display: inline-flex; gap: 4px; padding: 14px; }
.atlas-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a92; animation: atlas-typing 1.2s infinite ease-in-out; }
.atlas-typing i:nth-child(2) { animation-delay: 0.15s; }
.atlas-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes atlas-typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.atlas-ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.atlas-ask-suggest[hidden] { display: none; }
.atlas-ask-suggest button { min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; text-align: left; }
.atlas-ask-suggest button:hover { border-color: var(--ink); }
.atlas-ask-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 6px 6px 6px 14px; border: 1.5px solid var(--ink); border-radius: 18px; }
.atlas-ask-form:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lilac) 55%, transparent); }
.atlas-ask-form textarea { min-width: 0; min-height: 40px; max-height: 140px; flex: 1; padding: 9px 0; border: 0; outline: 0; resize: none; font-size: 16px; line-height: 1.4; }
.atlas-ask-send { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border: 0; border-radius: 12px; background: var(--ink); color: #fff; cursor: pointer; }
.atlas-ask-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atlas-ask-send:disabled { opacity: 0.4; cursor: default; }
.atlas-ask-foot { margin: 0; padding: 8px 16px 14px; color: var(--muted); font-size: 11.5px; text-align: center; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1279px) {
  .atlas-docs { grid-template-columns: 260px minmax(0, 1fr); }
  .atlas-aside { display: none; }
  .atlas-app { grid-column: 2; }
}
@media (max-width: 1023px) {
  :root { --atlas-bar-h: 52px; }
  .atlas-docs { display: block; width: min(820px, calc(100% - 32px)); }
  .atlas-rail-toggle { display: inline-flex; }
  .atlas-rail {
    position: fixed; z-index: 120; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none;
    padding: 16px 12px 40px 16px; border-right: 1px solid var(--line); background: #fff; box-shadow: 30px 0 80px rgba(5, 5, 5, 0.18);
    transform: translateX(-104%); visibility: hidden; transition: transform 320ms var(--ease-drawer), visibility 0s linear 320ms;
  }
  .atlas-rail[data-open="true"] { transform: none; visibility: visible; transition: transform 320ms var(--ease-drawer); }
  .atlas-rail-close { display: inline-grid; }
  .atlas-rail-scrim { position: fixed; z-index: 110; inset: 0; display: block; border: 0; background: rgba(21, 19, 43, 0.3); opacity: 0; pointer-events: none; transition: opacity 260ms ease; }
  .atlas-rail[data-open="true"] + .atlas-rail-scrim { opacity: 1; pointer-events: auto; }
  .atlas-search-trigger { min-width: 0; }
  .atlas-legend-chain { grid-template-columns: 1fr 1fr; }
  .atlas-spotlight-chain { grid-template-columns: 1fr 1fr; }
  .atlas-spotlight-chain li:nth-child(3)::before { display: none; }
}
@media (max-width: 767px) {
  .atlas-hide-sm { display: none; }
  .atlas-search-trigger span, .atlas-search-trigger kbd { display: none; }
  .atlas-search-trigger { width: 40px; justify-content: center; padding: 0; }
  .atlas-ask-trigger { padding: 0 12px; }
  .atlas-crumbs li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .atlas-where { align-items: flex-start; flex-direction: column; }
  .atlas-route { margin-left: 0; }
  .atlas-station { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-bottom: 46px; }
  .atlas-station-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
  .atlas-station::before { top: 40px; left: 19.5px; }
  .atlas-station + .atlas-station::after { top: -32px; left: 52px; }
  .atlas-station-body { padding: 14px 16px 16px; }
  .atlas-station-promisedLand .atlas-station-body { padding: 18px 18px 20px; }
  .atlas-stats { grid-template-columns: 1fr 1fr; }
  .atlas-charting { grid-template-columns: 1fr; padding: 24px !important; }
  .atlas-charting-map { width: 140px; }
  .atlas-hero-search { padding-left: 14px; border-radius: 16px; }
  .atlas-hero-search kbd { display: none; }
  .atlas-legend-chain, .atlas-spotlight-chain { grid-template-columns: 1fr; }
  .atlas-legend-chain li { min-height: 0; }
  .atlas-spotlight-chain li + li::before { display: none; }
  .atlas-pager { grid-template-columns: 1fr; }
  .atlas-pager-next { text-align: left; }
  .atlas-palette { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .atlas-ask { width: 100%; border-left: 0; }
  .atlas-doc-cta .button-row .button { width: 100%; }
}
@media (max-width: 380px) {
  .atlas-bar-inner { gap: 8px; width: calc(100% - 24px); }
  .atlas-bar .atlas-ask-trigger span { display: none; }
  .atlas-bar .atlas-ask-trigger { width: 40px; justify-content: center; padding: 0; }
  .atlas-docs { width: calc(100% - 24px); }
  .atlas-hero-kicker { font-size: 10.5px; letter-spacing: 0.06em; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas *, .atlas-ask, .atlas-palette, .atlas-rail { animation: none !important; transition: none !important; }
}
/* The input's container carries the focus ring for these fields. */
#atlas-palette-input:focus-visible, #atlas-ask-input:focus-visible, #atlas-hero-input:focus-visible { box-shadow: none; outline: none; }
