/*
 * Marker web pages: "Night match".
 *
 * The world is a floodlit court after dark, the same one the app draws:
 * board-green ground, chalk-white line work, and the app's live green as the
 * single accent (the serve ball, the active row, the primary action).
 * One family, Archivo (variable width + weight, self-hosted, SIL OFL):
 * condensed for headings like a scoreboard, normal width for reading,
 * expanded for small navigational labels.
 *
 * Layout: a calm reading column inside a frame the world owns (masthead with
 * a court line, floodlit opener, a contents rail where the ball marks your place).
 *
 * Contrast on --night: chalk 16.8:1, chalk-dim 9.4:1, live 8.8:1.
 */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #07110c;
  --board: #0c1d14;
  --board-2: #11291c;
  --chalk: #f3f0e3;
  --chalk-dim: #aeb8ad;
  --live: #53c489;
  --rule: rgba(243, 240, 227, 0.12);
  --rule-strong: rgba(243, 240, 227, 0.28);
  --todo: #e8c468;

  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --step-4: clamp(2.75rem, 1.8rem + 4.4vw, 5rem);

  --measure: 40rem;
  --page: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: dark;
  accent-color: var(--live);
  scrollbar-color: var(--rule-strong) var(--night);
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--chalk);
  font-family: var(--face);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  caret-color: var(--live);
}

::selection {
  background: var(--live);
  color: var(--night);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- Type ---------- */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-stretch: 78%;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-2);
  line-height: 1.15;
}

h4 {
  font-size: var(--step-1);
  font-stretch: 90%;
  line-height: 1.25;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

li::marker {
  color: var(--chalk-dim);
}

strong {
  font-weight: 650;
}

.lede {
  max-width: 34rem;
  color: var(--chalk-dim);
  font-size: var(--step-1);
  line-height: 1.5;
}

.dim {
  color: var(--chalk-dim);
}

.small {
  font-size: var(--step--1);
}

/* Names of controls exactly as the app shows them. */
.ui {
  color: var(--chalk);
  font-weight: 600;
}

/* ---------- Links, focus ---------- */

a {
  color: var(--chalk);
  text-decoration-line: underline;
  text-decoration-color: var(--live);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--chalk);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-250%);
}

.skip-link:focus-visible {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Owner inputs still required (check.sh refuses to publish these) ---------- */

.owner,
.verify {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  outline: 1px dashed var(--todo);
  outline-offset: -1px;
  background: rgba(232, 196, 104, 0.12);
  color: var(--todo);
}

.draft-bar {
  border-bottom: 1px dashed var(--todo);
  color: var(--todo);
  font-size: var(--step--1);
}

.draft-bar p {
  margin: 0;
  padding-block: 0.5rem;
}

/* ---------- Masthead: wordmark, nav, and the court's service line ---------- */

.masthead {
  position: relative;
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--chalk);
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.wordmark {
  font-stretch: 125%;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li + li {
  margin-top: 0;
}

.nav a {
  display: inline-block;
  padding-block: 0.45rem;
  color: var(--chalk-dim);
  font-size: var(--step--1);
  font-stretch: 112%;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav a:hover {
  color: var(--chalk);
}

.nav a[aria-current="page"] {
  color: var(--chalk);
  box-shadow: inset 0 -2px 0 var(--live);
}

/* The service line with the centre mark, as painted on the court. */
.court-line {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
}

.court-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 0.6rem;
  background: var(--rule-strong);
}

/* ---------- Openers ---------- */

.opener {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Floodlight: a pool of cool light from above the court. */
.opener::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 120%;
  z-index: -1;
  background: radial-gradient(60% 55% at 70% 0%, rgba(83, 196, 137, 0.18), rgba(83, 196, 137, 0.05) 45%, transparent 70%);
  pointer-events: none;
}

.opener-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}

@media (min-width: 56rem) {
  .opener-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.opener-compact {
  grid-template-columns: 1fr !important;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.opener h1 {
  max-width: 11ch;
}

.opener .lede {
  margin-top: 1.25rem;
}

.opener-meta {
  margin-top: 1.5rem;
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-stretch: 108%;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-live {
  background: var(--live);
  color: var(--night);
}

.btn-live:hover {
  background: #6ad19b;
}

.btn-line {
  border-color: var(--rule-strong);
  color: var(--chalk);
}

.btn-line:hover {
  border-color: var(--chalk);
}

/* ---------- Devices (real screenshots) ---------- */

.devices {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 0;
  padding-inline: 1rem;
}

.device {
  margin: 0;
  background: #030705;
  box-shadow: 0 2.5rem 4rem -1rem rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(243, 240, 227, 0.1);
}

.device img {
  width: 100%;
}

.device-phone {
  width: min(16rem, 60vw);
  padding: 0.55rem;
  border-radius: 2.5rem;
}

.device-phone img {
  border-radius: 2rem;
}

.device-watch {
  width: min(8.75rem, 32vw);
  margin-left: -3rem;
  margin-bottom: 2.5rem;
  padding: 0.5rem;
  border-radius: 2.2rem;
}

.device-watch img {
  border-radius: 1.75rem;
}

.device-solo {
  width: min(13rem, 56vw);
  margin: 0;
}

.figure {
  margin: 2rem 0;
}

.figure .device-phone {
  width: min(15rem, 70vw);
}

.figure figcaption {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

/* ---------- Sections ---------- */

.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.band-board {
  background: var(--board);
}

.band h2 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
}

/* Split: copy beside a screenshot. */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 4rem;
  }
}

.split > * {
  min-width: 0;
}

/* The match setup, in the app's own order. */
.setup {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: setup;
}

.setup li {
  position: relative;
  margin: 0;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--rule);
  counter-increment: setup;
}

.setup li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0.95rem;
  color: var(--live);
  font-size: var(--step-2);
  font-stretch: 75%;
  font-weight: 650;
  line-height: 1;
}

.setup strong {
  display: block;
  margin-bottom: 0.15rem;
  font-stretch: 90%;
  font-size: var(--step-1);
}

.setup span {
  color: var(--chalk-dim);
}

/* ---------- FAQ: topic index beside the answers ---------- */

.faq-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 64rem) {
  .faq-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 4rem;
  }
}

.topics {
  font-size: var(--step--1);
}

.topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics li {
  margin: 0;
}

.topics a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--chalk-dim);
  text-decoration: none;
}

.topics a:hover {
  border-color: var(--chalk);
  color: var(--chalk);
}

@media (min-width: 64rem) {
  .topics nav {
    position: sticky;
    top: 1.5rem;
  }

  .topics ul {
    flex-direction: column;
    gap: 0;
  }

  .topics a {
    display: block;
    padding: 0.4rem 0;
    border: 0;
    border-radius: 0;
  }
}

.faq-group + .faq-group {
  margin-top: 3.5rem;
}

.faq-group > h3 {
  margin-bottom: 1rem;
  scroll-margin-top: 1.5rem;
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0;
  cursor: pointer;
  font-size: var(--step-1);
  font-stretch: 92%;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* Drawn plus that turns into a minus. */
.faq summary::after {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  background:
    linear-gradient(var(--chalk), var(--chalk)) center / 0.7rem 1.5px no-repeat,
    linear-gradient(var(--chalk), var(--chalk)) center / 1.5px 0.7rem no-repeat;
}

.faq details[open] > summary::after {
  border-color: var(--live);
  background:
    linear-gradient(var(--night), var(--night)) center / 0.7rem 1.5px no-repeat,
    var(--live);
}

.faq summary:hover {
  color: var(--live);
}

.faq .answer {
  max-width: var(--measure);
  padding-bottom: 1.5rem;
  color: var(--chalk-dim);
}

.faq .answer strong {
  color: var(--chalk);
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.contact-grid > * {
  min-width: 0;
}

.address {
  margin: 0 0 1.5rem;
  font-size: var(--step-2);
  font-stretch: 85%;
  font-weight: 600;
  user-select: all;
}

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

.include li {
  margin: 0;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  color: var(--chalk-dim);
}

.include li:last-child {
  border-bottom: 1px solid var(--rule);
}

/* ---------- Email kept out of reach of address harvesters ---------- */

/* Quiet closing note on the support page. */
.contact-quiet {
  max-width: var(--measure);
}

.contact-quiet h2 {
  max-width: none;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
}

.contact-quiet p {
  color: var(--chalk-dim);
}

.contact-quiet details {
  margin-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.contact-quiet summary {
  padding: 0.9rem 0;
  cursor: pointer;
  color: var(--chalk);
  font-weight: 600;
}

/* ---------- Landing page ---------- */

.hero-title {
  font-size: clamp(3rem, 1.8rem + 5.5vw, 6rem);
  font-stretch: 72%;
  line-height: 0.95;
  max-width: 9ch;
}

.hero-note {
  margin-top: 1.75rem;
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

.statements {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.statements li {
  display: grid;
  gap: 0.5rem 3rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 1px solid var(--rule);
}

.statements li:last-child {
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 56rem) {
  .statements li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: baseline;
  }
}

.statements h3 {
  font-size: var(--step-3);
  font-stretch: 72%;
}

.statements p {
  margin: 0;
  max-width: 34rem;
  color: var(--chalk-dim);
  font-size: var(--step-1);
  line-height: 1.5;
}

.split-reverse > :first-child {
  order: 0;
}

@media (min-width: 56rem) {
  .split-reverse {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .split-reverse > :first-child {
    order: 1;
  }
}

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.formats li {
  margin: 0;
  padding: 1.25rem 1.5rem 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.formats strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: var(--step-1);
  font-stretch: 85%;
}

.formats span {
  color: var(--chalk-dim);
}

.pair {
  display: grid;
  gap: 3rem;
}

@media (min-width: 56rem) {
  .pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

.pair > * {
  min-width: 0;
}

.pair h2 {
  font-size: var(--step-3);
}

.pair p {
  color: var(--chalk-dim);
}

.closing {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: left;
}

.closing h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  font-stretch: 72%;
}

/* ---------- Privacy document ---------- */

.summary {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}


.summary li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.summary svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  color: var(--live);
}

.summary strong {
  display: block;
  font-stretch: 90%;
  font-size: var(--step-1);
  line-height: 1.3;
}

.summary span {
  color: var(--chalk-dim);
}

.doc {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}

@media (min-width: 64rem) {
  .doc {
    grid-template-columns: 14rem minmax(0, var(--measure));
    gap: 5rem;
  }
}

.rail {
  font-size: var(--step--1);
}

.rail h2 {
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-stretch: 112%;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--chalk-dim);
}

.rail ol {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: none;
  border-left: 1px solid var(--rule);
}

.rail li {
  margin: 0;
}

.rail a {
  display: block;
  padding: 0.3rem 0;
  color: var(--chalk-dim);
  text-decoration: none;
  line-height: 1.35;
}

.rail a:hover,
.rail a[aria-current="true"] {
  color: var(--chalk);
}

/* The serve ball marks where you are, as it marks the server in the app. */
.rail .ball {
  position: absolute;
  left: -0.3rem;
  top: 0;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--live);
  opacity: 0;
  transform: translateY(var(--ball-y, 0));
}

.rail.is-tracking .ball {
  opacity: 1;
}

@media (min-width: 64rem) {
  .rail > div {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 63.99rem) {
  .rail ol {
    columns: 2 13rem;
    column-gap: 2rem;
    border-left: 0;
    padding-left: 0;
  }

  .rail li {
    break-inside: avoid;
  }

  .rail .ball {
    display: none;
  }
}

.prose section {
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}

.prose section:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin-bottom: 1rem;
  font-size: var(--step-2);
  line-height: 1.15;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: var(--step-1);
  font-stretch: 90%;
}

.prose p,
.prose li {
  color: var(--chalk-dim);
}

.prose strong {
  color: var(--chalk);
}

/* Data inventory: one entry per kind of information. */
.inventory {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-strong);
}

.inventory > li {
  margin: 0;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.inventory h3 {
  margin: 0 0 0.35rem;
}

.inventory p {
  margin-bottom: 0.75rem;
}

.inventory dl {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
}

.inventory dt {
  color: var(--live);
  font-stretch: 112%;
  font-weight: 600;
  font-size: var(--step--1);
}

.inventory dd {
  margin: 0;
  color: var(--chalk-dim);
}

@media (max-width: 26rem) {
  .inventory dl {
    grid-template-columns: 1fr;
  }

  .inventory dd + dt {
    margin-top: 0.4rem;
  }
}

.note {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--board);
}

.note p {
  margin: 0;
  color: var(--chalk);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  color: var(--chalk-dim);
  font-size: var(--step--1);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
}

.footer-legal {
  padding-block: 0 2.5rem;
}

.footer-legal p {
  margin: 0 0 0.25rem;
}

/* ---------- Motion: one entrance, plus feedback ---------- */

@media (prefers-reduced-motion: no-preference) {
  a,
  .nav a,
  .topics a,
  .faq summary {
    transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), text-decoration-color 160ms var(--ease-out);
  }

  .btn {
    transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  }

  .btn:active {
    transform: scale(0.97);
  }

  .rail .ball {
    transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
  }

  /* Floodlights warm up once, the devices settle under them. */
  .opener::before {
    animation: floodlight 1200ms var(--ease-out) both;
  }

  .devices .device {
    animation: settle 700ms var(--ease-out) both;
  }

  .devices .device-watch {
    animation-delay: 90ms;
  }

  @keyframes floodlight {
    from {
      opacity: 0.35;
    }
  }

  @keyframes settle {
    from {
      transform: translateY(14px);
      opacity: 0.6;
    }
  }

  /* Answers open smoothly where the browser can animate to auto height. */
  @supports (interpolate-size: allow-keywords) {
    :root {
      interpolate-size: allow-keywords;
    }

    .faq details::details-content {
      block-size: 0;
      overflow: hidden;
      transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete;
    }

    .faq details[open]::details-content {
      block-size: auto;
    }
  }

  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Forced colours ---------- */

@media (forced-colors: active) {
  .btn,
  .note,
  .topics a {
    border: 1px solid CanvasText;
  }

  .faq summary::after {
    content: "+";
    width: auto;
    height: auto;
    border: 0;
    background: none;
  }

  .faq details[open] > summary::after {
    content: "\2212";
  }

  .rail .ball {
    display: none;
  }
}

/* ---------- Print ---------- */

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .draft-bar,
  .nav,
  .rail,
  .devices,
  .actions,
  .opener::before {
    display: none !important;
  }

  .prose p,
  .prose li,
  .lede,
  .dim,
  .inventory td,
  .inventory thead th,
  .summary span {
    color: #000;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
  }
}
