@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --ground: oklch(0.955 0.022 160);
  --surface: oklch(0.99 0.008 160);
  --ink: oklch(0.23 0.045 200);
  --ink-soft: oklch(0.40 0.04 200);
  --rule: oklch(0.80 0.03 170);
  --accent: oklch(0.5 0.2 27);
  --accent-ink: oklch(0.985 0.01 27);
  --accent-soft: oklch(0.92 0.06 27);

  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;

  --cols: 88px 48px minmax(0, 1fr) 208px;
  --col-gap: 20px;
  --disc: 40px;
  --row-pad: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-cat="Art"] { --h: 350; }
[data-cat="Film"] { --h: 300; }
[data-cat="Food"] { --h: 55; }
[data-cat="Literature"] { --h: 250; }
[data-cat="Music"] { --h: 95; }
[data-cat="Outdoors"] { --h: 145; }
[data-cat="Walks"] { --h: 195; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scrollbar-color: var(--ink-soft) var(--ground);
  scroll-padding-top: 16px;
}
html.locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: oklch(0.88 0.14 95); color: var(--ink); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }

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

.skip {
  position: absolute;
  left: 16px; top: -64px;
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.label {
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---------- top bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand svg { display: block; color: var(--ink); }
.top-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- shell ---------- */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 80px;
}

/* ---------- intro ---------- */

.intro h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.25rem, 8vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro h1 .amp { color: var(--accent); }
.intro-lede {
  max-width: 58ch;
  margin-top: 18px;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* weekend at a glance */
.glance {
  margin-top: 32px;
  padding: 16px 18px 12px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.glance-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.glance-day {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  margin-bottom: 6px;
}
.glance-day .label { padding-top: 2px; }
.lanes { position: relative; }
.block {
  position: absolute;
  height: 16px;
  min-width: 8px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: oklch(0.84 0.13 var(--h));
  transition: opacity 0.3s var(--ease);
}
.block.dim { opacity: 0.18; }
.block.is-saved::after {
  content: "";
  position: absolute;
  right: -3px; top: -7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}
.glance-axis {
  position: relative;
  height: 18px;
  margin: 2px 0 0 56px;
  font-family: var(--display);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.glance-axis span {
  position: absolute;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
}

/* ---------- controls ---------- */

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px auto;
  gap: 16px 20px;
  align-items: end;
  margin-top: 40px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--ink);
}
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-soft); }

.control {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-size: 1rem;
}
.control::placeholder { color: oklch(0.48 0.03 200); opacity: 1; }
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.search-wrap .control { padding-left: 42px; }
select.control {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23122a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.toggles { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.toggle:hover { background: oklch(0.93 0.04 160); }
.toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ground);
}
.toggle.is-saved-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.toggle .n { font-variant-numeric: tabular-nums; opacity: 0.85; }

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.linkbtn {
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.linkbtn:hover { color: var(--accent); }

/* ---------- day sections ---------- */

.day { margin-top: 24px; }
.dayhead {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: var(--col-gap);
  align-items: end;
  padding-bottom: 8px;
}
.dayhead-title { grid-column: 1 / 4; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; }
.dayhead h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1;
}
.dayhead-sub { color: var(--ink-soft); font-size: 0.9375rem; }
.ruler {
  grid-column: 4;
  position: relative;
  height: 20px;
  font-family: var(--display);
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.ruler span {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: var(--cols);
  grid-template-areas: "time rail main bar";
  column-gap: var(--col-gap);
  padding: var(--row-pad) 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--rule);
  border-radius: 12px;
  transition: background-color 0.2s;
}
.row:last-child { border-bottom-color: transparent; }
.row:hover { background: oklch(0.985 0.014 160 / 0.8); }
.row:focus-within { background: oklch(0.985 0.014 160 / 0.8); }

.time { grid-area: time; padding-top: 2px; }
.t1 {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.t2 { display: block; font-size: 0.8125rem; color: var(--ink-soft); }

.rail { grid-area: rail; position: relative; }
.rail::before {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  top: calc(var(--row-pad) * -1);
  bottom: calc(var(--row-pad) * -1 - 1px);
  background: var(--ink);
}
.row:first-child .rail::before { top: calc(var(--disc) / 2); }
.row:last-child .rail::before {
  bottom: auto;
  height: calc(var(--row-pad) + var(--disc) / 2);
}
.row:first-child:last-child .rail::before { display: none; }
.savedmark svg { fill: currentColor; }
.disc {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--disc);
  height: var(--disc);
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: oklch(0.84 0.13 var(--h));
  color: var(--ink);
}

.main { grid-area: main; min-width: 0; }
.title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; text-wrap: balance; }
.title button {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}
.title button::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.title button:focus-visible { outline: none; }
.title button:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -3px; }
.row:hover .title button { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.meta { margin-top: 4px; font-size: 0.9375rem; color: var(--ink-soft); }
.cat-name { font-family: var(--display); font-weight: 600; letter-spacing: 0.05em; font-size: 0.875rem; text-transform: uppercase; color: oklch(0.38 0.13 var(--h)); }
.sum { margin-top: 8px; max-width: 62ch; font-size: 0.9375rem; }
.savedmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 2px 10px 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: oklch(0.42 0.17 27);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bar { grid-area: bar; padding-top: 6px; }
.track {
  position: relative;
  display: block;
  height: 14px;
  border-radius: 7px;
  background: oklch(0.91 0.025 165);
  overflow: hidden;
}
.track .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.track .span {
  position: absolute;
  top: 2px; bottom: 2px;
  min-width: 8px;
  border-radius: 5px;
  background: var(--ink);
}
.fact { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--ink-soft); }
.fact b { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: 0.02em; }

/* ---------- empty ---------- */

.empty {
  margin-top: 32px;
  padding: 40px 32px;
  border: 2px dashed var(--ink);
  border-radius: 20px;
  background: var(--surface);
  max-width: 640px;
}
.empty h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.empty p { margin-top: 10px; color: var(--ink-soft); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  background: var(--ink);
  color: var(--ground);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.empty .btn { margin-top: 22px; }

/* ---------- plan ---------- */

.plan {
  position: sticky;
  top: 20px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 22px 22px 20px;
}
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan h2 { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.plan-sub { margin-top: 2px; font-size: 0.9375rem; color: var(--ink-soft); }
.plan-close { display: none; }
.iconbtn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: none;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.iconbtn:hover { background: var(--ink); color: var(--ground); }

.plan-empty { margin-top: 18px; padding: 18px 0 6px; }
.plan-empty svg { display: block; margin-bottom: 12px; color: var(--ink-soft); }
.plan-empty p { color: var(--ink-soft); font-size: 0.9375rem; }

.plan-day { margin-top: 20px; }
.plan-day h3 { padding-bottom: 6px; border-bottom: 2px solid var(--ink); color: var(--ink-soft); }
.plan-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: 4px 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.plan-item .pt { font-family: var(--display); font-weight: 600; font-size: 1.125rem; font-variant-numeric: tabular-nums; line-height: 1.3; }
.plan-open {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.plan-open:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.plan-where { font-size: 0.875rem; color: var(--ink-soft); }
.plan-rm {
  width: 44px; height: 44px;
  margin: -10px -8px -10px 0;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%;
  color: var(--ink-soft);
}
.plan-rm:hover { background: var(--accent-soft); color: var(--accent); }
.clash {
  grid-column: 2 / 4;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 4px;
  font-size: 0.875rem;
  color: oklch(0.42 0.17 27);
}
.clash svg { flex: none; margin-top: 3px; }
.plan-total { margin-top: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-total b { font-family: var(--display); font-size: 1.625rem; font-weight: 700; }
.plan-total span { font-size: 0.875rem; color: var(--ink-soft); }
.plan .linkbtn { margin-top: 8px; color: var(--ink-soft); }

.planbar, .scrim { display: none; }

/* ---------- detail dialog ---------- */

dialog.detail {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(580px, 100vw);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 3px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  overflow-y: auto;
  animation: slide-in 0.4s var(--ease);
}
dialog.detail::backdrop {
  background: oklch(0.23 0.045 200 / 0.5);
  animation: fade-in 0.3s ease-out;
}
@keyframes slide-in { from { transform: translateX(32px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.d-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.d-cat { display: flex; align-items: center; gap: 12px; }
.d-cat .disc { --disc: 40px; margin: 0; }
.d-body { padding: 24px 24px 40px; }
.d-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.125rem, 5vw, 3rem); line-height: 1.02; text-wrap: balance; }
.d-when { margin-top: 12px; font-family: var(--display); font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.d-when span { color: var(--ink-soft); font-weight: 400; }
.d-bar { margin-top: 14px; }
.d-bar .track { height: 18px; border-radius: 9px; }
.d-bar .track .span { top: 3px; bottom: 3px; border-radius: 6px; }
.d-axis { position: relative; height: 18px; margin-top: 4px; font-family: var(--display); font-size: 0.75rem; color: var(--ink-soft); }
.d-axis span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }

.d-text { margin-top: 26px; max-width: 60ch; }
.d-text p + p { margin-top: 1em; }
.d-lead { font-size: 1.125rem; line-height: 1.55; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 26px;
  border-top: 2px solid var(--ink);
}
.facts div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts div:nth-child(odd) { padding-right: 12px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin-top: 2px; font-size: 1.0625rem; }

.d-access {
  margin-top: 26px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: oklch(0.96 0.03 165);
}
.d-access h3 { margin-bottom: 6px; }
.d-access p { max-width: 56ch; }

.d-clash {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: oklch(0.36 0.15 27);
}
.d-clash svg { flex: none; margin-top: 3px; }

.d-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.save:hover { background: oklch(0.93 0.04 160); }
.save[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.save[aria-pressed="true"]:hover { background: oklch(0.44 0.19 27); border-color: oklch(0.44 0.19 27); }
.save[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- footer ---------- */

.foot {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 40px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- tablet / mobile ---------- */

@media (max-width: 1100px) {
  .shell { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  :root { --cols: 76px 44px minmax(0, 1fr) 150px; --col-gap: 16px; }
  .controls { grid-template-columns: minmax(0, 1fr) 190px; }
  .toggles { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root {
    --cols: 60px 36px minmax(0, 1fr);
    --col-gap: 12px;
    --disc: 36px;
    --row-pad: 18px;
  }
  .top-note { display: none; }
  .shell { display: block; padding-bottom: 32px; }
  .foot { padding-bottom: 100px; }
  .controls { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .controls .field-search { grid-column: 1 / -1; }
  .controls .field-cat { grid-column: 1 / -1; }
  .toggles { grid-column: 1 / -1; }
  .toggle { flex: 1 1 auto; justify-content: center; }

  .ruler { display: none; }
  .dayhead { display: block; }
  .row {
    grid-template-areas:
      "time rail main"
      "time rail bar";
    grid-template-rows: auto 1fr;
  }
  .time, .rail { grid-row: 1 / 3; }
  .t1 { font-size: 1.25rem; }
  .title { font-size: 1.3125rem; }
  .bar { margin-top: 12px; padding-top: 0; }
  .glance { padding: 12px 12px 8px; }
  .glance-day { grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; }
  .glance-axis { margin-left: 42px; }
  .glance-head { flex-direction: column; gap: 2px; }

  .plan {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    z-index: 40;
    max-height: 82dvh;
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    padding: 20px 18px 28px;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .plan.open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s var(--ease), visibility 0s;
  }
  .plan-close { display: grid; }

  .scrim {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    background: oklch(0.23 0.045 200 / 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .scrim.open { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }

  .planbar {
    position: fixed;
    left: 12px; right: 12px; bottom: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 56px;
    padding: 0 20px;
    background: var(--ink);
    color: var(--ground);
    border: 0;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 24px oklch(0.23 0.045 200 / 0.3);
  }
  .planbar:focus-visible { outline-color: var(--accent); outline-offset: 3px; }
  .planbar .count {
    min-width: 28px; height: 28px;
    display: grid; place-items: center;
    padding: 0 8px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
  }

  dialog.detail { width: 100vw; border-left: 0; }
  .d-top { padding: 10px 16px; }
  .d-body { padding: 20px 16px 40px; }
  .facts dd { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
