/* The status pages: one stylesheet, two token sets (html[data-brand]). It is served to both brands, so it names neither.
   An instrument, not a dashboard: paper, ink, hairlines; the time-true traces are the one bold thing.
   No motion of any kind, no shadows, no gradients, no cards, no capitals. */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo.woff2) format("woff2-variations");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/plex-mono.woff2) format("woff2");
}
@font-face {
  font-family: "Mona Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  src: url(fonts/mona-sans.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/geist-mono.woff2) format("woff2");
}

:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --graphite: #6b6b6b;
  --rule: #e2e2e2;
  --wash: #f4f4f4;
  --focus: #ff4f00;
  --mark: #ff4f00; /* the wordmark: Signal, never a state */
  --link: var(--ink);
  --head-bg: var(--paper);
  --head-fg: var(--ink);
  --head-dim: var(--graphite);
  --head-rule: var(--rule);

  /* States: each reaches 4.5:1 on paper; a shape always goes with the colour. */
  --up: #3b7a50;
  --degraded: #8a5a00;
  --degraded-fill: #8a5a00;
  --down: #b42318;
  --maint: var(--ink);
  --nodata: #9a9a9a;
  --nodata-text: var(--graphite);

  /* Causes, in the daily chart: values of ink, not hues, so no cause reads as a state. */
  --c-premises: #bdbdbd;
  --c-nbn: #6b6b6b;
  --c-upstream: #6b6b6b;
  --c-our: #0b0b0b;
  --c-planned: #0b0b0b;
  --c-unknown: #9a9a9a;

  --sans: "Archivo Variable", "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --figs: var(--sans);
  --fig-stretch: 112%;

  /* 1.25 from 16 px */
  --t-1: 0.8rem;
  --t0: 1rem;
  --t1: 1.25rem;
  --t2: 1.5625rem;
  --t3: 1.953rem;
  --t4: 2.441rem;
  --t5: 3.052rem;
  --t6: 3.815rem;

  --gutter: 1.25rem;
  --rail: 11rem;
}

/* NYX (docs/brand/nyx.md): warm white, ink, violet-deep links, gum, wattle and destructive states, an ink header. */
:root[data-brand="nyx"] {
  --paper: #f5f2eb;
  --ink: #101426;
  --graphite: #5a5f73;
  --rule: #e0dbd0;
  --wash: #ece8df;
  --focus: #7855f6;
  --mark: #f5f2eb;
  --link: #5b3be0;
  --head-bg: #101426;
  --head-fg: #ffffff;
  --head-dim: rgb(255 255 255 / 0.75);
  --head-rule: #2c3354;
  --up: #127a52;
  --degraded: #8a5a00;
  --degraded-fill: #f2b544;
  --down: #c2362b;
  --nodata: #8f897c;
  --c-premises: #c9c3b6;
  --c-nbn: #5a5f73;
  --c-upstream: #5a5f73;
  --c-our: #101426;
  --c-planned: #101426;
  --c-unknown: #8f897c;
  --sans: "Mona Sans Variable", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --figs: var(--mono);
  --fig-stretch: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t0) / 1.5 var(--sans);
  font-kerning: normal;
  font-optical-sizing: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}
.skip:focus {
  top: 0.5rem;
}

/* Header */

.site {
  background: var(--head-bg);
  color: var(--head-fg);
  border-bottom: 1px solid var(--head-rule);
}
.site-in,
main {
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.site-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 1rem;
}
.brand-h {
  margin: 0;
  font: inherit;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--head-fg);
  text-decoration: none;
}
.brand .wordmark {
  height: 1.5rem;
  width: auto;
  color: var(--mark);
  align-self: center;
}
.brand-title {
  font-size: var(--t1);
  font-weight: 500;
  color: var(--head-dim);
}
.site nav {
  margin-left: auto;
}
.site nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site nav a {
  color: var(--head-fg);
}
.updated {
  margin: 0;
  flex-basis: 100%;
  text-align: right;
  font-size: var(--t-1);
  color: var(--head-dim);
  font-variant-numeric: tabular-nums;
}
.updated.is-stale {
  color: var(--head-fg);
  font-weight: 600;
}
:root[data-brand="nyx"] .site nav a,
:root[data-brand="nyx"] .brand {
  color: #ffffff;
}
:root[data-brand="nyx"] .site :focus-visible {
  outline-color: #b8acff;
}
:root[data-brand="nyx"] .brand .wordmark {
  height: 1.375rem;
  --violet: #7855f6;
}

/* Sections: the rail on the left holds their names from 1024 px */

main {
  padding-bottom: 4rem;
}
.sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
}
main > .sec:first-child {
  border-top: 0;
}
.sec > h2 {
  margin: 0;
  font-size: var(--t0);
  font-weight: 600;
  line-height: 1.5;
}
.sec-body {
  min-width: 0;
}
@media (min-width: 64rem) {
  .sec {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    padding-block: 2.5rem;
  }
  .sec > h2 {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

.lbl {
  margin: 0;
  color: var(--graphite);
}
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.empty {
  margin: 0;
  color: var(--graphite);
}
.note {
  color: var(--graphite);
}

/* Figures: wide, semibold, tabular. They carry the page's character. */

.fig {
  font-family: var(--figs);
  font-stretch: var(--fig-stretch);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fig.zero {
  color: var(--graphite);
  font-weight: 500;
}

/* Online now: the share, and beside it a readout of what's offline and why */

.readout {
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 48rem) {
  .readout {
    grid-template-columns: auto minmax(16rem, 22rem);
    align-items: start;
    justify-content: space-between;
  }
}
.hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fig-hero {
  font-family: var(--sans);
  font-size: clamp(var(--t5), 6vw, var(--t6));
  line-height: 0.9;
  letter-spacing: -0.015em;
}
.fig-hero.is-none {
  font-size: var(--t4);
  color: var(--nodata-text);
  font-stretch: 100%;
  font-weight: 500;
}
.hero-of {
  color: var(--graphite);
}
.ledger .lbl {
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--ink);
}
.buckets {
  margin: 0;
}
.buckets > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--rule);
}
.buckets dd {
  margin: 0;
}
.pair {
  margin: 2rem 0 0;
  display: grid;
  gap: 0.25rem;
}
.pair > div {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.pair dt {
  color: var(--graphite);
}
.pair dd {
  margin: 0;
  font-size: var(--t2);
}

/* State words always carry their shape */

.st {
  white-space: nowrap;
}
.glyph {
  display: inline-block;
  width: 1em;
  text-align: center;
  font-family: system-ui, sans-serif;
}
.st-up .glyph,
.glyph.st-up {
  color: var(--up);
}
.st-degraded .glyph,
.glyph.st-degraded {
  color: var(--degraded);
}
.st-down .glyph,
.glyph.st-down {
  color: var(--down);
}
.st-maintenance .glyph,
.glyph.st-maintenance {
  color: var(--maint);
}
.st-no_data .glyph,
.glyph.st-no_data {
  color: var(--nodata-text);
}
.st-no_data {
  color: var(--nodata-text);
}
.st-down,
.st-degraded {
  font-weight: 600;
}

/* Systems: name, state, the 90-day trace, uptime */

.sys-head,
.sys {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name up"
    "state state"
    "trace trace"
    "det det";
  column-gap: 1.25rem;
  align-items: center;
}
.sys-head {
  display: none;
}
.systems {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sys {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}
.sys:first-child {
  border-top: 1px solid var(--rule);
}
.sys-name {
  grid-area: name;
  font-weight: 500;
}
.sys-state {
  grid-area: state;
}
/* Where a system's probes run from, under its state, while their reading counts. */
.sys-src {
  display: block;
  font-size: var(--t-1);
  color: var(--graphite);
}
.sys-trace {
  grid-area: trace;
  margin-top: 0.5rem;
}
.sys-up {
  grid-area: up;
  text-align: right;
}
.sys-det {
  grid-area: det;
  margin-top: 0.375rem;
  font-size: var(--t-1);
  color: var(--graphite);
}
/* From 768 px the name sits over its state on the left, and the trace takes the width. */
@media (min-width: 48rem) {
  .sys-head,
  .sys,
  .sys-foot {
    grid-template-columns: 12rem minmax(0, 1fr) 5.5rem;
    column-gap: 1.75rem;
  }
  .sys {
    grid-template-areas:
      "name trace up"
      "state trace up"
      ". det det";
    row-gap: 0.125rem;
    padding-block: 1rem;
  }
  .sys-head {
    display: grid;
    color: var(--graphite);
    font-size: var(--t-1);
    padding-bottom: 0.375rem;
  }
  .sys-trace {
    margin-top: 0;
  }
  .sys-head-trace {
    grid-column: 2;
  }
  .sys-head-up {
    grid-column: 3;
    text-align: right;
  }
  .sys-foot {
    display: grid;
  }
  .sys-foot .axis {
    grid-column: 2;
  }
  .trace {
    height: 2.25rem;
  }
}
.sys-det summary {
  cursor: pointer;
  width: max-content;
}
.sys-det ul {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  font-variant-numeric: tabular-nums;
}
.sys-det .dur {
  margin-left: 0.75rem;
}

/* The trace: one hairline over 90 days; marks as wide as the time they cover. */

.trace {
  position: relative;
  height: 1.75rem;
}
.trace .rail {
  position: absolute;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--ink);
}
.trace .pre {
  position: absolute;
  left: 0;
  top: 50%;
  border-top: 1px dotted var(--nodata);
}
.trace .tick {
  position: absolute;
  top: calc(50% - 3px);
  height: 7px;
  border-left: 1px solid var(--graphite);
}
.mark {
  position: absolute;
  min-width: 2px;
  top: 0;
  bottom: 0;
}
.mark.s-down {
  background: var(--down);
}
.mark.s-degraded {
  top: 25%;
  bottom: 25%;
  background: var(--degraded-fill);
  outline: 1px solid var(--degraded);
  outline-offset: -1px;
}
.mark.s-maintenance {
  top: 20%;
  bottom: 20%;
  background: var(--paper);
  border: 1.5px solid var(--maint);
  min-width: 4px;
}
.mark.s-no_data {
  top: 15%;
  bottom: 15%;
  background: repeating-linear-gradient(135deg, var(--nodata) 0 1.5px, transparent 1.5px 4px);
}
.mark.s-up {
  display: none;
}

/* A mark or a day names its window when hovered or focused; the same words are its accessible name. */
.mark:hover::after,
.mark:focus-visible::after,
.day-hit:hover::after,
.day-hit:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-1);
  font-weight: 500;
  line-height: 1.3;
  padding: 0.3rem 0.5rem;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}
.mark.tip-l::after,
.day.tip-l .day-hit::after {
  left: 0;
  translate: 0 0;
}
.mark.tip-r::after,
.day.tip-r .day-hit::after {
  left: auto;
  right: 0;
  translate: 0 0;
}

.axis {
  position: relative;
  height: 1.5rem;
  margin-top: 0.25rem;
  color: var(--graphite);
  font-size: var(--t-1);
}
.axis span {
  position: absolute;
  top: 0;
  translate: -50% 0;
}
.axis .axis-now {
  right: 0;
  translate: 0 0;
}
/* Events: whole-row links, no arrows */

.events {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ev {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}
.events > .ev:first-child {
  border-top: 1px solid var(--rule);
}
.ev > .glyph {
  line-height: 1.6;
  width: 1.5rem;
  text-align: left;
}
.ev:has(.stretch):hover {
  background: var(--wash);
}
.ev-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.0625rem;
}
.ev-title a {
  color: var(--ink);
  text-decoration: none;
}
.ev:hover .ev-title a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.stretch::after {
  content: "";
  position: absolute;
  inset: 0;
}
.stretch:focus-visible {
  outline: none;
}
.stretch:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.ref {
  font-family: var(--mono);
  font-weight: 400;
  font-size: var(--t-1);
  color: var(--graphite);
  margin-left: 0.5rem;
  white-space: nowrap;
}
.meta {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1.5rem;
  font-variant-numeric: tabular-nums;
}
.meta > div {
  display: flex;
  gap: 0.4rem;
}
.meta dt {
  color: var(--graphite);
}
.meta dd {
  margin: 0;
}
.bg-updates {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.bg-updates time {
  color: var(--graphite);
  margin-right: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.toggle {
  font-size: var(--t-1);
}

/* By state and POI */

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.areas th,
.areas td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: right;
  vertical-align: baseline;
}
.areas thead th {
  color: var(--graphite);
  font-weight: 400;
  font-size: var(--t-1);
  padding-left: 0.75rem;
}
.areas th[scope="row"],
.areas thead th:first-child {
  text-align: left;
  padding-left: 0;
}
.areas tbody th {
  font-weight: 600;
}
.areas .l-poi th {
  font-weight: 400;
  padding-left: 1.25rem;
}
.areas .l-national th,
.areas .l-national td {
  border-bottom-color: var(--ink);
}
.areas td .fig {
  font-weight: 500;
}

/* Services with an outage: one stacked bar a day, by cause */

.area-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: var(--t-1);
}
.area-pick a[aria-current] {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.bars {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0 0 1.5rem;
  height: 10.5rem;
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-bottom: 0;
  position: relative;
}
.bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  border-top: 1px solid var(--ink);
}
.day {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.day .stack {
  display: flex;
  flex-direction: column-reverse;
  min-height: 0;
}
.day .stack {
  position: relative;
}
.day-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.day-hit:not([tabindex]) {
  pointer-events: none;
}
.peak {
  position: absolute;
  bottom: calc(100% + 0.25rem);
  left: 0;
  font-size: var(--t-1);
  color: var(--graphite);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.day:nth-last-child(-n + 12) .peak {
  left: auto;
  right: 0;
}
.day .seg {
  display: block;
  min-height: 2px;
}
.day .x {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  font-size: var(--t-1);
  color: var(--graphite);
  white-space: nowrap;
}
.day:last-child .x {
  left: auto;
  right: 0;
}
.b-premises {
  background: var(--c-premises);
}
.b-nbn {
  background: var(--c-nbn);
}
.b-upstream {
  background: repeating-linear-gradient(135deg, var(--c-upstream) 0 2px, transparent 2px 4px);
  box-shadow: inset 0 0 0 1px var(--c-upstream);
}
.b-our_network {
  background: var(--c-our);
}
.b-planned {
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--c-planned);
}
.b-unknown {
  background: radial-gradient(circle, var(--c-unknown) 1px, transparent 1.2px) 0 0 / 4px 4px;
  box-shadow: inset 0 0 0 1px var(--c-unknown);
}
.legend {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  font-size: var(--t-1);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sw {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
}
.days {
  margin-top: 1rem;
  font-size: var(--t-1);
}
.days summary,
.sys-det summary {
  color: var(--graphite);
}
.days table {
  margin-top: 0.5rem;
}
.days th,
.days td {
  text-align: right;
  padding: 0.3rem 0 0.3rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.days th[scope="row"],
.days thead th:first-child {
  text-align: left;
  padding-left: 0;
}
.days thead th {
  color: var(--graphite);
}
.med {
  display: block;
  color: var(--graphite);
}

/* History and Follow */

.links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
#follow .links {
  margin-top: 0;
}
#history .lbl + .events,
#history .lbl + .empty {
  margin-top: 0.75rem;
}

/* An event's page: the ref sits in the rail, the title and its facts beside it */

.ref-rail {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-1);
  color: var(--graphite);
  padding-top: 0.6rem;
}
.ev-head h1,
.missing h1 {
  margin: 0;
  font-size: var(--t3);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ev-state {
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
}
.ev-state .st {
  font-weight: 600;
}
.lastup {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.facts {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--ink);
  font-variant-numeric: tabular-nums;
}
.facts > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  color: var(--graphite);
}
.facts dd {
  margin: 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}
.upd {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.upd time {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.upd.is-corrected span {
  padding-left: 0.75rem;
  border-left: 2px solid var(--graphite);
}
.prose {
  max-width: 38rem;
}
.prose p {
  margin: 0 0 1rem;
}

/* History */

.rail-h {
  margin: 0;
  font-size: var(--t0);
  font-weight: 600;
}
.month-name {
  margin: 0;
  font-size: var(--t3);
  font-weight: 650;
  line-height: 1.2;
}
.months ul {
  list-style: none;
  margin: 0.75rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.months a[aria-current] {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.hist {
  border-top: 1px solid var(--ink);
}
.hist th,
.hist td {
  text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}
.hist thead th {
  color: var(--graphite);
  font-weight: 400;
  font-size: var(--t-1);
}
.hist .h-ev {
  font-weight: 500;
}
.hist .h-ev a {
  color: var(--ink);
}
.hist .h-ev .glyph {
  margin-right: 0.4rem;
}
.hist .h-when {
  white-space: nowrap;
  color: var(--graphite);
}
.hist .h-dur,
.hist .h-hit {
  text-align: right;
  white-space: nowrap;
  padding-right: 0;
}
.hist thead th:nth-child(3),
.hist thead th:nth-child(4) {
  text-align: right;
  padding-right: 0;
}

/* Follow: a plain form; ticks, a field and one button */

.follow {
  max-width: 40rem;
  margin-top: 1rem;
}
.follow fieldset {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  padding: 0.75rem 0 1rem;
}
.follow legend {
  font-weight: 600;
  padding: 0;
  float: left;
  width: 100%;
  margin-bottom: 0.5rem;
}
.checks {
  clear: both;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.25rem 1.5rem;
}
.checks .poi label {
  padding-left: 1.25rem;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2rem;
  cursor: pointer;
}
input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  accent-color: var(--ink);
}
.field {
  display: grid;
  gap: 0.375rem;
  margin: 0 0 1.25rem;
}
.field label {
  font-weight: 600;
}
.field input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--graphite);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: 26rem;
}
.field input[aria-invalid="true"] {
  border-color: var(--down);
  border-width: 2px;
}
.err {
  margin: 0 0 1rem;
  color: var(--down);
  font-weight: 600;
}
.hint {
  margin: 0 0 1.25rem;
  color: var(--graphite);
  font-size: var(--t-1);
}
button {
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
:root[data-brand="nyx"] button {
  background: #7855f6;
  color: #ffffff;
  border-radius: 0.5rem;
}

/* At 390 px: one column, figures a step smaller */

@media (max-width: 30rem) {
  :root {
    --gutter: 1rem;
  }
  .pair dd {
    font-size: var(--t1);
  }
  .areas thead th {
    padding-left: 0.5rem;
  }
  .areas {
    font-size: 0.9375rem;
  }
  .ref {
    display: block;
    margin-left: 0;
  }
  .facts > div,
  .upd {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
  .hist thead {
    display: none;
  }
  .hist tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 1rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--rule);
  }
  .hist th,
  .hist td {
    border: 0;
    padding: 0;
  }
  .hist .h-ev {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
