/* The wall (public) and Status (signed in). Builds on base, hub, about and design-v2; blue stays the only accent.
   States without traffic-light colours: fine = a filled blue dot, worth a look = a hollow blue ring,
   broken = the platform's existing danger red, not running = a hollow grey ring. */

.wall, .status { max-width: 1120px; }
.wall__sub { margin: -8px 0 16px; font-size: 14px; line-height: 1.55; color: var(--text-3); max-width: 64ch; }
.dim { color: var(--text-3); }
.v2 code, .v2 .ip { font-family: var(--mono); font-size: 0.86em; }

/* ---------- Header controls ---------- */
.wall__controls { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; }
.wall__range { width: max-content; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.wall__range button { padding: 0 14px; height: 32px; font-size: 13.5px; }
.v2 .wall__range button[aria-checked="true"] { background: var(--sky-soft); color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky-line); }
.wall__totals { margin: 0; }
.v2 .wall__totals dd { font-family: var(--serif); font-size: 26px; font-weight: 560; font-variation-settings: "SOFT" 100, "opsz" 36; }

/* ---------- Stage: globe + side panel ---------- */
.wall__stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 40px; align-items: start; padding: 28px 0 40px; position: relative; }
.wall__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--line-strong);
  -webkit-mask: var(--m-rule) repeat-x 60px 0 / 420px 8px; mask: var(--m-rule) repeat-x 60px 0 / 420px 8px; }

.globe { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.globe__svg { display: block; max-width: 100%; height: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.globe.is-grabbing .globe__svg { cursor: grabbing; }
.globe__hint { margin-top: 6px; font: italic 400 15px/1.3 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 16; color: var(--sky); text-align: center; }

.g-sphere { fill: var(--surface); }
.g-edge { fill: none; stroke: var(--line-strong); stroke-width: 1.2; pointer-events: none; }
.g-grat { fill: none; stroke: var(--line); stroke-width: 0.6; pointer-events: none; }
.g-country { fill: var(--surface-3); stroke: var(--surface); stroke-width: 0.6; cursor: pointer; transition: fill 0.15s; }
.g-country.has-hits { fill: color-mix(in srgb, var(--sky) 20%, var(--surface-3)); }
.g-country:hover { fill: color-mix(in srgb, var(--sky) 32%, var(--surface-3)); }
.g-country.is-selected { fill: color-mix(in srgb, var(--sky) 42%, var(--surface-3)); stroke: var(--sky); stroke-width: 1; }

.place { cursor: pointer; }
.place__web { fill: var(--sky); fill-opacity: 0.8; stroke: var(--surface); stroke-width: 0.8; }
.place__ssh { fill: none; stroke: var(--sky); stroke-width: 1.6; }
.place__hit { fill: transparent; }
.place.is-dim { opacity: 0.22; }
.place:hover .place__web { fill-opacity: 1; }

.g-home path { fill: var(--bg); stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; }
.g-home text { font: italic 500 12.5px var(--serif); fill: var(--text-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }

.globe__tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 11px; font-size: 13px; line-height: 1.35; background: var(--surface-2); color: var(--text-2);
  border-radius: 12px 10px 13px 9px / 9px 13px 10px 12px; box-shadow: var(--shadow-pop); }
.globe__tip strong { color: var(--text); font-weight: 600; }
.globe__tip-dim { color: var(--text-3); }

.globe__ctl { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; gap: 4px; }
.globe__ctl .icon-btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.globe__minus { font-size: 20px; line-height: 1; margin-top: -2px; }

/* Side panel */
.wall__side { min-width: 0; padding-top: 8px; }
.side__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100, "opsz" 36; }
.side__h3 { margin: 22px 0 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.side__list, .side__paths { margin: 0; padding: 0; list-style: none; }
.side__row { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm); }
.side__row:hover { background: var(--surface); }
.side__row:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; }
.side__row .bar__track { grid-column: 1 / -1; }
.side__name { font-size: 14.5px; color: var(--text); }
.side__num { font-size: 13px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.side__more { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }
.side__back { margin: 0 0 14px -8px; }
.side__stats { display: flex; gap: 22px; margin: 0; }
.side__stats dt { font-size: 12.5px; color: var(--text-3); }
.side__stats dd { margin: 2px 0 0; font-family: var(--serif); font-size: 22px; color: var(--sky); font-variation-settings: "SOFT" 100, "opsz" 24; }
.side__paths li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.side__paths code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

/* Bars: a label, a count, and a thin hand-cut bar under them */
.bar__track { display: block; height: 4px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--sky); border-radius: 3px 1px 3px 1px; }
.bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 14px; align-items: baseline; }
.bars__row .bar__track { grid-column: 1 / -1; }
.bars__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--text); }
.bars__label code { font-size: 13.5px; }
.bars__asn { color: var(--text-3); font-size: 12.5px; }
.bars__num { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bars__empty { color: var(--text-3); font-size: 14px; }

.badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 9px 7px 9px 7px; font-size: 11.5px; font-weight: 500;
  color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky-line); vertical-align: 1px; white-space: nowrap; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.wtable th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-3); padding: 0 10px 8px; white-space: nowrap; }
.wtable td { padding: 9px 10px; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
.wtable th:first-child, .wtable td:first-child { padding-left: 0; }
.wtable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtable .when { white-space: nowrap; color: var(--text-3); }
.wtable .org { max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtable .ip { color: var(--text); }
.wtable tr.group th { padding: 18px 0 8px; font: italic 500 15px var(--serif); color: var(--sky); font-variation-settings: "SOFT" 100, "opsz" 16; }
.wtable tr.group:first-child th { padding-top: 0; }
.svc { color: var(--text); font-weight: 500; }

/* Recent feed */
.feed { margin: 0; padding: 0; list-style: none; }
/* Fixed tracks (no auto column) so every row lines up with the one above, whatever its label says */
.feed__row { display: grid; grid-template-columns: 7.5em 9.5em minmax(0, 0.8fr) minmax(0, 1.5fr) 10.5em; gap: 14px; align-items: baseline;
  padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--text-2); }
.feed__when { color: var(--text-3); white-space: nowrap; }
.feed__where, .feed__what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__cls { font: italic 400 14px var(--serif); color: var(--sky); white-space: nowrap; text-align: right; overflow: hidden; text-overflow: ellipsis;
  font-variation-settings: "SOFT" 100, "opsz" 14; }
.feed .ip { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.feed__row--group { cursor: pointer; }
.feed__row--group:hover .feed__what code, .feed__row--group:focus-visible .feed__what code { color: var(--text); }
.feed__row--group:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.feed__n { margin-left: 8px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.feed__detail { padding: 2px 0 14px calc(7.5em + 14px); border-bottom: 1px dashed var(--line); }
.feed__sum { margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.feed__paths { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }

.wall__fine .about__p { font-size: 14.5px; margin-bottom: 10px; }
.wall__stamp { color: var(--text-3); font-size: 13px !important; }

/* ---------- Status ---------- */
.state { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; vertical-align: middle; }
.state--ok { background: var(--sky); }
.state--warn { box-shadow: inset 0 0 0 2px var(--sky); }
.state--bad { background: var(--danger); }
.state--idle { box-shadow: inset 0 0 0 1.5px var(--text-3); }

.flags { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 13.5px; color: var(--text-2);
  background: var(--surface); border-radius: 13px 10px 14px 9px / 10px 14px 9px 13px; box-shadow: inset 0 0 0 1px var(--line); }
.flag--bad { color: var(--text); box-shadow: inset 0 0 0 1px var(--danger); }

.strip { display: grid; grid-template-columns: repeat(48, minmax(2px, 1fr)); gap: 1.5px; width: 100%; min-width: 150px; max-width: 280px; height: 18px; }
.strip__cell { border-radius: 1.5px; background: var(--surface-2); }
.strip__cell.is-ok { background: color-mix(in srgb, var(--sky) 70%, transparent); }
.strip__cell.is-part { background: repeating-linear-gradient(135deg, var(--sky) 0 2px, transparent 2px 4px); }
.strip__cell.is-down { background: var(--danger); }

.meter { display: block; height: 6px; margin-top: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; max-width: 360px; }
.meter__fill { display: block; height: 100%; border-radius: 4px 2px 4px 2px; }
.meter__fill--ok { background: var(--sky); }
.meter__fill--warn { background: repeating-linear-gradient(135deg, var(--sky) 0 4px, color-mix(in srgb, var(--sky) 45%, transparent) 4px 8px); }
.meter__fill--bad { background: var(--danger); }

.cert { padding: 16px 18px; margin-bottom: 14px; background: var(--surface); max-width: 760px;
  border-radius: 20px 16px 22px 15px / 15px 21px 16px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.cert__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cert__days { font-family: var(--serif); font-size: 22px; font-weight: 560; font-variation-settings: "SOFT" 100, "opsz" 24; }
.cert__meta { margin: 10px 0 8px; font-size: 14px; color: var(--text-2); }
.cert__names { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cert__names code { padding: 2px 8px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); }
.cert__names code.is-bad { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.cert__warn { margin: 10px 0 0; color: var(--danger); font-size: 14px; }

.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 18px; font-size: 14.5px; }
.facts > div { display: contents; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.disk { margin-top: 16px; display: grid; grid-template-columns: max-content 1fr; gap: 0 14px; align-items: baseline; font-size: 14px; }
.disk .meter { grid-column: 1 / -1; }
.updates { margin-top: 16px; font-size: 14px; }
.updates summary { cursor: pointer; color: var(--sky); width: max-content; }
.updates__list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 320px; overflow: auto; }

.sec__live { margin: 0 0 18px; }
.sec__fine { margin-top: 16px; }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14px; }

.cves { display: grid; gap: 12px; margin-bottom: 26px; }
#bulletin > .side__h3:first-child { margin-top: 0; }
.cve { font-size: 14.5px; color: var(--text-2); }
.cve .state { margin-right: 8px; }
.cve__desc { margin: 4px 0 0 18px; font-size: 13.5px; color: var(--text-3); max-width: 80ch; }
.bull { gap: 12px 48px; margin-bottom: 18px; }
.feedlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.feedlist a { color: var(--text-2); text-decoration: none; }
.feedlist a:hover { color: var(--sky); }
.feedlist .is-hit a { color: var(--text); }
.feedlist__date { margin-left: 8px; font-size: 12.5px; white-space: nowrap; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .wall__stage { grid-template-columns: minmax(0, 1fr); }
  .globe__svg { max-height: 78vw; }
  /* Phones: two lines per event. Who and when on top, what they asked for and what it was underneath. */
  .feed__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ip when" "what cls"; gap: 3px 12px; padding: 10px 0; }
  .feed .ip { grid-area: ip; }
  .feed__when { grid-area: when; text-align: right; font-size: 12.5px; }
  .feed__what { grid-area: what; }
  .feed__cls { grid-area: cls; font-size: 13.5px; }
  .feed__where { display: none; }
  .feed__detail { padding-left: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .facts dd { margin-bottom: 10px; }
}
:root[data-motion="reduced"] .g-country { transition: none; }
.wall__more { margin-top: 12px; }

/* nginx traffic: two small bar charts, 96 quarter-hours each */
.ngx-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.ngx-chart { margin: 0; }
.ngx-chart figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); margin-bottom: 8px; }
.spark { display: flex; align-items: flex-end; gap: 1px; height: 64px; padding-bottom: 1px; border-bottom: 1px solid var(--line-strong); }
.spark span { flex: 1; min-width: 1px; background: color-mix(in srgb, var(--sky) 75%, transparent); border-radius: 1.5px 1.5px 0 0; }
.spark span.is-empty { height: 2px; background: var(--surface-2); }
@media (max-width: 900px) { .ngx-charts { grid-template-columns: minmax(0, 1fr); } }
