/* Copyright by Vautron Rechenzentrum AG <noc@vautron.de>, 2026 */
/* Styling for the server-rendered AS pages (internal/api/aspage.go, /as/{asn}). Deliberately a
   separate, small stylesheet rather than reusing web/src/style.css: that file is built by Vite
   and assumes the SPA's own DOM/JS exist (fixed/overflow:hidden layout, dialogs, etc.), none of
   which applies to a plain static document. Shares the same colour palette/dark theme and overall
   "feel" by hand instead, so the page still looks like it belongs to BGPVerse. Mobile-first: the
   single-column layout below is also the *small*-screen layout; a wider viewport just gets more
   breathing room, not a different structure. */

:root {
  --bg: #070910;
  --surface: rgba(14, 18, 34, 0.82);
  --surface-solid: #0e1222;
  --border: rgba(140, 165, 255, 0.2);
  --text: #e6ebff;
  --muted: #93a0c8;
  --accent: #7aa2ff;
  --v4: #4a8fff;
  --v6: #f261d9;
  --radius: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* The [hidden] content attribute hides a normal HTMLElement (<canvas>, <ul>, ...) via the
   browser's own UA stylesheet automatically, but an <svg> is an SVGElement, which the UA
   stylesheet does not cover the same way in every engine -- without this explicit rule, hiding
   the mini-map's SVG fallback (templates/aspage.js, when swapping in the interactive canvas) had
   no visible effect, so both the SVG and the canvas stayed on screen at once (reported directly
   by a user). Harmless/redundant for the elements [hidden] already works on; only actually
   matters for the one SVG case. */
.as-minimap[hidden] {
  display: none;
}

/* Missing since the AS pages' search box was first built -- the main site's own .sr-only (see
   web/src/style.css) was never copied into this separate, hand-rolled stylesheet, so every
   <label class="sr-only"> on this page rendered as fully visible text instead of being hidden
   from sighted users while staying in the accessibility tree for screen readers (caught while
   adding the prefix filter's own sr-only label, which made the pre-existing bug on the search
   box's label visually obvious for the first time). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* A faint, fixed radial glow behind everything, echoing the map's own dark/glowing aesthetic
   without needing WebGL or any JS at all -- pure CSS, same spirit as the loading screen's node
   glow (web/index.html #loading-dots). */
.as-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vw 60vh at 15% 0%, rgba(122, 162, 255, 0.16), transparent 60%),
    radial-gradient(50vw 50vh at 100% 100%, rgba(242, 97, 217, 0.1), transparent 60%);
}

/* Header: deliberately mirrors the main site's own .bar/.search/.chip look almost exactly
   (web/src/style.css), down to reusing /icons.svg (Font Awesome Free, see the Credits dialog for
   attribution) -- a user explicitly asked for "the same style, the same search" rather than a
   bespoke one. Unlike the main app's fixed/floating .bar, this one sits in the normal document
   flow at the top of the page (a static page has no fixed-position canvas underneath it
   competing for space), and only has the buttons this page actually needs: no family/view
   switches, Live, Compare, Log, Timeline, Tour, Animation, My IP, Quality or Share -- none of
   those apply to a single static AS page. "View on the live map" replaces Settings as the
   primary accent action here. A handful of items always just wraps onto a second row on a
   narrow screen (flex-wrap), unlike the main site's own header, which needs the more elaborate
   collapse-behind-a-toggle treatment for its much longer button list. */
.as-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap, 8px);
  margin: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 0
    max(10px, env(safe-area-inset-left));
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.as-brand {
  margin: 0 var(--gap, 8px) 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #8fb0ff, #ffb86b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

/* Same small "by Vautron" pill as the main site's own header (web/src/style.css's .brand-by) --
   it was missing from this page's header entirely until a user pointed it out. */
.as-brand-by {
  margin: 0 var(--gap, 8px) 0 -4px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.as-brand-by:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* Deployed build indicator (version + short commit hash), same format/placement idea as the
   main site's own #build-commit (web/src/style.css .bar-stats-right): pushed to the far right of
   the header row via margin-left: auto, regardless of how many other items precede it or
   whether the row has wrapped onto two lines on a narrow screen. */
.as-build {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.as-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 140px;
  max-width: 384px;
}

.as-search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.as-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.as-search input::placeholder {
  color: var(--muted);
}

.as-search input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#as-search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

#as-search-suggest li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#as-search-suggest li[aria-selected="true"],
#as-search-suggest li:hover {
  background: rgba(122, 162, 255, 0.18);
}

#as-search-suggest .as-search-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

#as-search-suggest .as-search-asn {
  flex: none;
  color: var(--muted);
}

.chip,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.chip:visited,
.icon-btn:visited {
  color: var(--text);
}

.chip:hover,
.icon-btn:hover {
  background: rgba(122, 162, 255, 0.2);
  text-decoration: none;
}

.icon-btn {
  width: 34px;
  padding: 0;
}

.chip.accent {
  background: linear-gradient(135deg, var(--accent), #9b7aff);
  color: #060814;
  font-weight: 700;
}

.chip.accent:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* Font Awesome Free icons (CC BY 4.0, see /icons.svg and the Credits dialog for attribution). */
.fa-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
  fill: currentColor;
  flex: none;
}

.fa-icon-solo {
  margin-right: 0;
}

.as-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px 48px;
}

.as-hero {
  padding: 20px 4px 8px;
}

.as-hero-head h1 {
  margin: 0 0 4px;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.as-sub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.as-blurb {
  margin: 0;
  max-width: 640px;
  color: var(--text);
  font-size: 16px;
}

.as-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

@media (min-width: 420px) {
  .as-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .as-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.as-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.as-stat-value {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.as-stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.as-section {
  margin: 22px 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.as-section h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

/* "Copy network summary" / "Embed this badge" section: two independent columns side by side on
   a wide viewport, stacked on mobile -- each is a self-contained small feature, not one flow of
   content, so they read better as separate cards than as one long section. */
.as-share-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .as-share-section {
    grid-template-columns: 1fr 1fr;
  }
}

.as-share-col h2 {
  font-size: 15px;
}

.as-badge-preview {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 4px 0 10px;
  border-radius: 10px;
}

.as-badge-snippet-row {
  display: flex;
  gap: 8px;
}

#as-badge-snippet {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.as-count {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.as-section-note {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.as-neighbour-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .as-neighbour-list {
    grid-template-columns: 1fr 1fr;
  }
}

.as-neighbour-list li {
  padding: 0;
  /* Without this, a CSS grid item's implicit min-width: auto lets a long AS name grow the whole
     column past the container instead of respecting the <a>'s own overflow:hidden/ellipsis below
     -- the actual cause of entries running past the page edge (reported directly by the user). */
  min-width: 0;
}

.as-neighbour-list a {
  display: block;
  padding: 10px 10px;
  min-height: 44px;
  line-height: 24px;
  border-radius: 8px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-neighbour-list a:hover {
  background: rgba(122, 162, 255, 0.16);
  text-decoration: none;
}

.as-country-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-country-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
}

.as-country-list li:nth-child(odd) {
  background: rgba(122, 162, 255, 0.06);
}

.as-country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-country-name a {
  color: inherit;
  text-decoration: none;
}

.as-country-name a:hover {
  text-decoration: underline;
}

.as-country-count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.as-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: center;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
}

.as-foot-link {
  color: var(--muted);
}

.as-foot-link:hover {
  color: var(--text);
}

/* Shared dialog styling for Help, Credits, Privacy and Legal notice -- a smaller, page-local
   echo of the main app's own .settings dialogs (same content family), opened/closed via
   templates/aspage.js's data-open-dialog/data-close-dialog wiring. Previously only the Help
   dialog existed here; Credits/Privacy/Legal used to just link back to the main site with a
   "#credits=1"-style hash marker (App.openLegalDialogFromHash), which a user pointed out is a
   jarring full navigation away from the AS page for what should be a quick look at a footer
   link -- these three now open right here instead, with their own content (not shared markup
   with web/index.html, which assumes the SPA's own DOM/JS exist). */
.as-dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  margin: auto;
  background: var(--surface-solid, #0e1222);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.as-dialog.as-dialog-wide {
  width: min(720px, calc(100vw - 24px));
}

.as-dialog::backdrop {
  background: rgba(3, 5, 12, 0.72);
}

.as-dialog-inner {
  max-height: inherit;
  overflow: auto;
  padding: 18px 22px 22px;
}

.as-dialog h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.as-dialog h3 {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.as-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.as-dialog-logo {
  height: 32px;
  width: auto;
}

.as-dialog-logo.as-dialog-logo-ripe {
  height: 28px;
}

.as-credits-list {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

.as-credits-list li {
  margin: 4px 0;
}

/* Legal notice's DE/EN language switch -- same visual pattern as the main site's own
   .segmented (web/src/style.css), reimplemented here since that file is not shared with this
   page. */
.as-segmented {
  display: inline-flex;
  margin: 8px 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.as-segmented button {
  height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.as-segmented button + button {
  border-left: 1px solid var(--border);
}

.as-segmented button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(122, 162, 255, 0.25);
}

.as-foot-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* Neighbourhood mini-map "quick info" modal (#as-quickinfo, see templates/aspage.js's
   openQuickInfo): the same key/value fact-list layout as the main app's own .facts
   (web/src/style.css), reimplemented here since that file is not shared with this page. */
.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 12px 0 16px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  text-align: right;
}

#as-quickinfo-sub {
  margin: 0;
}

#as-quickinfo-link {
  margin-top: 4px;
}

/* Prefix list: a plain two-column key/value row per prefix, RPKI badge (if configured) on the
   right -- same badge colour convention as the main app's .badge.rpki-* classes. */
.as-prefix-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 10px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.as-prefix-filter .fa-icon {
  margin-right: 0;
  color: var(--muted);
}

.as-prefix-filter input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
}

.as-prefix-filter input::placeholder {
  color: var(--muted);
}

.as-prefix-filter input:focus-visible {
  outline: none;
}

.as-prefix-filter #as-prefix-filter-count {
  flex: none;
  margin: 0;
}

.as-prefix-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-prefix-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.as-prefix-list li:last-child {
  border-bottom: 0;
}

.as-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #060814;
  white-space: nowrap;
}

.as-badge.rpki-valid {
  background: #3ddc84;
}

.as-badge.rpki-invalid {
  background: #ff5c6c;
  color: #1a0306;
}

.as-badge.rpki-not-found {
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

/* Neighbourhood mini-map: a server-pre-computed layout (see internal/api/aspage.go
   buildMiniMap) -- not the real force-directed layout, just an approximation of what is nearby,
   up to two hops out. Rendered as plain SVG by default (works without JavaScript); templates/
   aspage.js swaps in an interactive <canvas> of the same data (pan/zoom/click) when available,
   sized like the main map's own viewport rather than a small decorative thumbnail. */
.as-minimap-wrap {
  display: flex;
  justify-content: center;
  padding: 6px 0 4px;
}

.as-minimap {
  width: 100%;
  max-width: 1100px;
  height: auto;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}

.as-minimap-canvas {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
}

.as-minimap-canvas:active {
  cursor: grabbing;
}

.as-minimap-canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.as-minimap-edge {
  stroke: rgba(140, 165, 255, 0.4);
  stroke-width: 0.5;
  fill: none;
}

/* Same four relationship categories/colours as the main map's opt-in overlay
   (Settings.relationshipColors, web/src/renderer.ts): peer = cyan, upstream/downstream = amber,
   unknown (the as-minimap-edge default above) = the normal muted blue. */
.as-minimap-edge-peer {
  stroke: rgba(64, 220, 242, 0.75);
}

.as-minimap-edge-upstream,
.as-minimap-edge-downstream {
  stroke: rgba(255, 184, 46, 0.75);
}

.as-minimap-node {
  fill: #7aa2ff;
  cursor: pointer;
}

.as-minimap-node.self {
  fill: #ffb86b;
  stroke: #ffffff;
  stroke-width: 0.8;
}

/* A visitor reported the self AS's node was hard to pick out from the rest of the dense
   neighbourhood, especially at the default zoomed-out view, even with its own distinct colour
   (as-minimap-node.self above) -- the same "a thin ring alone is easy to miss" lesson the main
   map's own selection ring (web/src/overlay.ts selectionRing) was built from. This mirrors that
   treatment: a soft glow ring (its own radius set directly on the element by the template, see
   buildMiniMap's selfRingR), drawn once behind the node fill above it. */
.as-minimap-self-ring {
  fill: none;
  stroke: #ffb86b;
  stroke-width: 1.4;
  stroke-opacity: 0.55;
}

.as-minimap-label {
  fill: var(--muted);
  font-size: 3.6px;
  text-anchor: middle;
  cursor: pointer;
}

.as-minimap-label.self {
  fill: #ffe8c9;
  font-size: 4.6px;
  font-weight: 700;
}

/* Country/RIR hub pages (internal/api/geopages.go: /countries, /country/{cc}, /rir,
   /rir/{slug}): a plain, dense list of links -- the same visual language as .as-neighbour-list
   (two columns on a wide viewport, single column on mobile) but without that list's fixed
   min-height/padding tuned for a "AS1234 — Name" link specifically; these rows also carry an
   optional trailing count (as-count, already defined above for the stat tiles) or short region
   description (as-geo-desc). */
.as-geo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .as-geo-list {
    grid-template-columns: 1fr 1fr;
  }
}

.as-geo-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  min-height: 44px;
  min-width: 0;
  border-radius: 8px;
}

.as-geo-list li:hover {
  background: rgba(122, 162, 255, 0.16);
}

.as-geo-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.as-geo-desc {
  flex: 1;
  margin: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

/* Plain, crawlable pagination for a large /country/{cc} page (geoListPageSize per page) --
   real <a href> links (not a JS-only "load more" button), so a crawler without JavaScript can
   still reach every page of a populous country's AS list. */
.as-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.as-pager-status {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.as-pager-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

/* Top-N ranking pages (internal/api/toppages.go: /top, /top/most-connected, /top/customer-cones,
   /top/ipv6, /top/country/{cc}): a numbered, single-column list -- plain .as-geo-list rows
   (two-column grid) would make the rank numbers hard to scan since reading order would jump
   between columns instead of flowing top to bottom. */
.as-top-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.as-top-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
}

.as-top-list li:last-child {
  border-bottom: 0;
}

.as-top-rank {
  flex: none;
  width: 3.5em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.as-top-list a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-top-value {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* /status page: a plain key/value fact list, one row per pipeline input, each with a small
   coloured status dot (fresh/stale/not-configured) -- see internal/api/status.go. */
.as-status-list {
  margin: 0;
  padding: 0;
}

.as-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.as-status-row:last-child {
  border-bottom: 0;
}

.as-status-row dt {
  font-weight: 600;
}

.as-status-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.as-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.as-status-fresh {
  background: #3ddc84;
}

.as-status-stale {
  background: #ffb82e;
}

.as-status-off {
  background: rgba(255, 255, 255, 0.25);
}

/* Same status dot/row facts as above, rendered inside the "Data pipeline status" dialog
   (#as-data-status, templates/aspage.js's renderDataStatus) instead of the full /status page --
   a plain <dl> grid rather than the page's own flex rows, since the dialog is already fairly
   narrow (as-dialog-wide, not the full page width). */
.as-status-list-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 8px 0;
}

.as-status-list-inline dt {
  font-weight: 600;
}

.as-status-list-inline dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* 404 page */
.as-notfound {
  text-align: center;
  padding-top: 40px;
}

.as-notfound-glyph {
  font-size: 48px;
  margin-bottom: 8px;
}

.as-notfound h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5vw, 30px);
}

.as-notfound .as-blurb {
  margin: 0 auto 20px;
}

.as-notfound-search {
  justify-content: center;
  margin: 0 auto 20px;
  max-width: 420px;
}

.as-notfound-search input {
  flex: 1;
}
