/* Eternal October, public edition. Tokens, glass, the nav pill, card-list
   stacks and connected pill rows follow thayn.me and GachaKit's starter
   capsules; the timeline itself is this site's own. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Remix Icon (Apache-2.0, fonts/LICENSE-remixicon.txt), thayn.me's subset */
@font-face {
  font-family: "remixicon";
  src: url("fonts/remixicon.woff2") format("woff2");
  font-display: swap;
}
[class^="ri-"], [class*=" ri-"] {
  font-family: "remixicon" !important;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ri-home-5-line::before { content: "\ee1f"; }
.ri-moon-line::before { content: "\ef75"; }
.ri-sun-line::before { content: "\f1bf"; }
.ri-contrast-2-line::before { content: "\ebd4"; }
.ri-repeat-fill::before { content: "\f073"; }
.ri-arrow-right-up-line::before { content: "\ea70"; }
.ri-menu-line::before { content: "\ef3e"; }
.ri-close-line::before { content: "\eb99"; }

/* Registered so the page can glide between era hues */
@property --accent-hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 205;
}

:root {
  color-scheme: light dark;
  --white: #ffffff;
  --accent: light-dark(#0e6aaa, #46b3ff);
  --accent-secondary: light-dark(#b61673, #ff7cc8);
  --accent-hue: 205;
  --text: light-dark(#111827, #f7f8fb);
  --text-muted: light-dark(#4b5563, #c3cbe6);
  --page-bg: light-dark(hsl(var(--accent-hue), 30%, 95%), hsl(var(--accent-hue), 30%, 8%));
  --bg-main: light-dark(rgba(255, 255, 255, 0.58), rgba(8, 12, 20, 0.68));
  --bg-secondary: light-dark(rgba(255, 255, 255, 0.18), rgba(8, 12, 20, 0.45));
  --bg-noise-opacity: 0.06;
  --bg-blur: blur(18px);
  --bg-saturation: saturate(160%);
  --glass-border: light-dark(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
  --glass-edge: light-dark(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.18));
  --glass-highlight: light-dark(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.16));
  --glass-grad-start: light-dark(rgba(255, 255, 255, 0.7), rgba(10, 14, 24, 0.72));
  --glass-grad-end: light-dark(rgba(255, 255, 255, 0.2), rgba(10, 14, 24, 0.35));
  --text-halo: 0 0 1px var(--page-bg), 0 0 2px var(--page-bg), 0 0 6px var(--page-bg), 0 0 16px var(--page-bg);
  --nav-highlight: light-dark(rgba(17, 24, 39, 0.12), rgba(255, 255, 255, 0.12));
  --nav-highlight-border: light-dark(rgba(17, 24, 39, 0.2), rgba(255, 255, 255, 0.35));
  --shadow-soft: 0 8px 26px rgba(17, 24, 39, 0.12);
  --shadow-md: 0 8px 18px rgba(17, 24, 39, 0.18);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.6rem;
  --radius-xl: 2.2rem;
  --radius-full: 9999px;
  /* GachaKit's connected-group radii: outer corners round, inner ones tight */
  --group-outer: 1.375rem;
  --group-inner: 0.84rem;
  --font-base: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --container-max-width: 960px;
  --nav-item-width: 78px;
  --nav-item-width-sm: 64px;
  --container-padding: 1.5rem;
  --header-gap: var(--spacing-lg);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Severity, readable on glass in both themes */
  --sev-critical: light-dark(#b42318, #ff8a80);
  --sev-high: light-dark(#b54708, #ffb366);
  --sev-medium: light-dark(#8a6100, #f5d36b);
  --sev-low: light-dark(#0e6aaa, #7cc4ff);
  --sev-info: light-dark(#6b7280, #aab3cc);

  transition: --accent-hue 1.2s ease;
}

:root.light-theme { color-scheme: light; }
:root.dark-theme {
  color-scheme: dark;
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not(.light-theme) {
    --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.5);
  }
}

/* Each era tints the page through the accent hue, as thayn.me's pages do */
:root[data-era="black"] { --accent-hue: 268; }
:root[data-era="eternal"] { --accent-hue: 22; }

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
body, h1, h2, h3, p, ol, ul, dl, dd, dt { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; }

html {
  font-family: var(--font-base);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--page-bg);
  scrollbar-width: thin;
  scroll-padding-top: 1.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  min-height: 100svh;
  background: transparent;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  flex-direction: column;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--page-bg);
}

a { color: var(--text); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-secondary); }
p { color: var(--text-muted); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }

.skip-link {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 0.75rem;
  background: var(--bg-main); color: var(--text);
  transition: top 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.skip-link:focus-visible { top: 0.5rem; }

/* Ambient background, after GachaKit's gradient-background capsule */
.ambient {
  position: fixed; inset: -10lvh 0 auto; height: 120lvh;
  z-index: -1; overflow: hidden; pointer-events: none;
}
.blobs { position: absolute; inset: 0; filter: blur(100px); transition: opacity 1.2s ease; }
.blobs i { position: absolute; border-radius: 50%; }
.blobs i:nth-child(1) { width: 40lvh; height: 40lvh; left: 5vw; top: 5lvh; background: light-dark(hsla(var(--accent-hue), 80%, 70%, 0.7), hsla(var(--accent-hue), 90%, 70%, 0.65)); }
.blobs i:nth-child(2) { width: 50lvh; height: 50lvh; left: 55vw; top: 0; background: light-dark(hsla(calc(var(--accent-hue) + 60), 80%, 75%, 0.7), hsla(calc(var(--accent-hue) + 60), 90%, 72%, 0.65)); }
.blobs i:nth-child(3) { width: 45lvh; height: 45lvh; left: 10vw; top: 60lvh; background: light-dark(hsla(calc(var(--accent-hue) + 160), 80%, 80%, 0.6), hsla(calc(var(--accent-hue) + 160), 90%, 75%, 0.55)); }
.blobs i:nth-child(4) { width: 60lvh; height: 60lvh; left: 50vw; top: 50lvh; background: light-dark(hsla(calc(var(--accent-hue) + 240), 80%, 70%, 0.6), hsla(calc(var(--accent-hue) + 240), 90%, 65%, 0.55)); }
/* Black October turns the lights down a little */
:root[data-era="black"] .blobs { opacity: 0.6; }

@media (prefers-reduced-motion: no-preference) {
  .blobs i:nth-child(1) { animation: drift-a 38s ease-in-out infinite; }
  .blobs i:nth-child(2) { animation: drift-b 46s ease-in-out infinite; }
  .blobs i:nth-child(3) { animation: drift-a 52s ease-in-out infinite reverse; }
  .blobs i:nth-child(4) { animation: drift-b 60s ease-in-out infinite reverse; }
}
@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(18vw, 10lvh, 0) scale(1.15); }
  66% { transform: translate3d(-6vw, 22lvh, 0) scale(0.9); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40% { transform: translate3d(-20vw, 14lvh, 0) scale(0.9); }
  75% { transform: translate3d(8vw, -8lvh, 0) scale(1.12); }
}

.grain {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}

/* Glass surfaces */
.glass, .card-list__item, .seg button, .toggle, .stat {
  background: linear-gradient(135deg, var(--glass-grad-start), var(--glass-grad-end)), var(--bg-main);
  backdrop-filter: var(--bg-blur) var(--bg-saturation);
  -webkit-backdrop-filter: var(--bg-blur) var(--bg-saturation);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: none;
}
.glass { border-radius: var(--radius-xl); position: relative; }
.glass::after, .card-list__item::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--glass-highlight), transparent 45%, transparent 60%, var(--glass-edge)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none; opacity: 0.8;
}

.tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; line-height: 1.6;
  background: linear-gradient(135deg, var(--glass-grad-start), var(--glass-grad-end)), var(--bg-secondary);
  color: var(--text); border: 1px solid var(--glass-border);
}
.chips { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }

.dot { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 50%; flex: none; }
.dot.sev-critical { background: var(--sev-critical); }
.dot.sev-high { background: var(--sev-high); }
.dot.sev-medium { background: var(--sev-medium); }
.dot.sev-low { background: var(--sev-low); }
.dot.sev-info { background: var(--sev-info); }
.tag.itw { color: var(--accent-secondary); border-color: light-dark(rgba(182, 22, 115, 0.4), rgba(255, 124, 200, 0.4)); }

/* Progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 20; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* Header: GachaKit's nav pill, centred, with the theme pill beside it */
/* Static, as on thayn.me: glass over scrolling text reads as noise */
.page-header {
  position: relative; z-index: 10;
  display: flex; justify-content: center;
  padding: var(--spacing-lg) 1rem var(--spacing-sm);
  pointer-events: none;
}
.nav-pill-wrap { pointer-events: auto; }

.page {
  width: 100%; max-width: var(--container-max-width); margin: 0 auto;
  padding: var(--spacing-md) 1.5rem var(--spacing-2xl);
  display: flex; flex-direction: column; gap: var(--spacing-xl);
  outline: none;
}
.section-card { padding: var(--spacing-2xl); display: flex; flex-direction: column; gap: var(--spacing-md); }

/* Hero */
.hero h1 { font-size: 3rem; line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 .soft { color: var(--text-muted); font-weight: 600; }
.lede { font-size: 1.1rem; max-width: 44rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); }
.post-link { font-size: 0.92rem; padding: 0.4rem 1rem; }

/* Stats as a connected row, card-list radii turned sideways */
.stat-row { display: flex; gap: 0.08rem; margin-top: var(--spacing-sm); }
.stat {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--group-inner);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.stat:first-child { border-radius: var(--group-outer) var(--group-inner) var(--group-inner) var(--group-outer); }
.stat:last-child { border-radius: var(--group-inner) var(--group-outer) var(--group-outer) var(--group-inner); }
.stat dd { font-size: 2.2rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; line-height: 1.35; }

/* Filters: GachaKit's button-array as segmented controls */
.filters { border-radius: var(--radius-lg); padding: var(--spacing-lg); display: flex; flex-direction: column; gap: var(--spacing-md); }
.filter-row { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: var(--spacing-md); }
.filter-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.seg { display: flex; gap: 0.08rem; }
.seg button {
  flex: 1 1 0; min-width: 0; min-height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.4rem 0.8rem; cursor: pointer;
  color: var(--text); font-size: 0.9rem; font-weight: 700;
  border-radius: var(--group-inner);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: flex-grow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.seg button:first-child { border-radius: var(--group-outer) var(--group-inner) var(--group-inner) var(--group-outer); }
.seg button:last-child { border-radius: var(--group-inner) var(--group-outer) var(--group-outer) var(--group-inner); }
.seg:hover button:not(:hover) { flex-grow: 0.9; }
.seg button:hover { flex-grow: 1.12; }
/* Pressed: a solid accent tint and ring, the nav pill's highlight in colour */
.seg button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(light-dark(rgba(14, 106, 170, 0.16), rgba(70, 179, 255, 0.2)) 0 0), var(--bg-main);
  border-color: light-dark(rgba(14, 106, 170, 0.65), rgba(70, 179, 255, 0.65));
  box-shadow: inset 0 0 0 1px light-dark(rgba(14, 106, 170, 0.35), rgba(70, 179, 255, 0.35));
}
.seg button[aria-pressed="true"] .dot { box-shadow: 0 0 0 2px var(--page-bg); }

.filter-foot { grid-template-columns: auto 1fr; }
.toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.45rem 1rem 0.45rem 0.55rem; border-radius: var(--radius-full);
  color: var(--text); font-size: 0.9rem; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.switch {
  width: 2.3rem; height: 1.35rem; border-radius: var(--radius-full); position: relative; flex: none;
  background: light-dark(rgba(17, 24, 39, 0.15), rgba(255, 255, 255, 0.18));
  transition: background var(--transition-fast);
}
.switch::after {
  content: ""; position: absolute; top: 0.15rem; left: 0.15rem;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: translate var(--transition-fast);
}
.toggle[aria-pressed="true"] .switch { background: var(--accent); }
.toggle[aria-pressed="true"] .switch::after { translate: 0.95rem 0; }
.count { justify-self: end; font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Eras */
.timeline { display: flex; flex-direction: column; gap: var(--spacing-2xl); }
.empty { padding: var(--spacing-xl); text-align: center; border-radius: var(--radius-lg); }
.era { display: flex; flex-direction: column; gap: var(--spacing-xl); scroll-margin-top: 1.5rem; }
.era-head h2 { font-size: 2.2rem; line-height: 1.15; }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 2rem; margin-top: var(--spacing-xs); }
.strip i { border-radius: 4px; background: light-dark(rgba(17, 24, 39, 0.07), rgba(255, 255, 255, 0.07)); }
.strip i.lv1 { background: light-dark(rgba(14, 106, 170, 0.38), rgba(70, 179, 255, 0.38)); }
.strip i.lv2 { background: light-dark(rgba(14, 106, 170, 0.68), rgba(70, 179, 255, 0.68)); }
.strip i.lv3 { background: var(--accent-secondary); }
.strip i.now { outline: 2px solid var(--accent-secondary); outline-offset: 1px; }
.strip-axis { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }

/* Timeline: a spine, one dot per day, and a card-list stack per day */
.tl { position: relative; }
.tl::before, .tl-fill { content: ""; position: absolute; top: 0.6rem; bottom: 0.6rem; left: 8.35rem; width: 2px; border-radius: 2px; }
.tl::before { background: light-dark(rgba(17, 24, 39, 0.12), rgba(255, 255, 255, 0.12)); }
.tl-fill { display: block; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.tl-list { display: flex; flex-direction: column; gap: var(--spacing-xl); }

.day { display: grid; grid-template-columns: 7.4rem 1.9rem 1fr; align-items: start; }
.day-label { text-align: right; padding-top: 1.2rem; line-height: 1.25; text-shadow: var(--text-halo); }
.day-label b { display: block; font-size: 1.05rem; font-weight: 800; }
.day-label span { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.day-dot {
  width: 0.85rem; height: 0.85rem; border-radius: 50%; margin: 1.45rem 0 0 0.55rem;
  background: var(--page-bg); border: 2px solid var(--accent);
  position: relative; z-index: 1;
}

/* GachaKit's card-list: connected glass cards that lift on hover */
.card-list { display: flex; flex-direction: column; gap: 0.08rem; min-width: 0; }
.card-list:hover .card-list__item:not(:hover) { scale: 0.99; }
.card-list__item {
  position: relative;
  display: flex; flex-direction: column; gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  border-radius: var(--group-inner);
  transition: box-shadow var(--transition-fast), translate var(--transition-fast), scale var(--transition-fast);
}
.card-list__item:first-child { border-top-left-radius: var(--group-outer); border-top-right-radius: var(--group-outer); }
.card-list__item:last-child { border-bottom-left-radius: var(--group-outer); border-bottom-right-radius: var(--group-outer); }
.card-list__item:hover { translate: 0 -2px; scale: 1.015; box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.35); z-index: 2; }
.card-list__item > * { position: relative; z-index: 1; }
.card-list__item h3 { font-size: 1.2rem; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-sm); }
.summary { max-width: 40rem; }
.src { display: flex; flex-wrap: wrap; gap: var(--spacing-xs) var(--spacing-sm); margin-top: var(--spacing-xs); }
.src-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 700; color: var(--accent);
  background: light-dark(rgba(14, 106, 170, 0.08), rgba(70, 179, 255, 0.12));
  transition: background var(--transition-fast), color var(--transition-fast);
}
.src-link:hover { color: var(--accent-secondary); background: light-dark(rgba(182, 22, 115, 0.08), rgba(255, 124, 200, 0.12)); }
.src-link i { font-size: 0.9rem; }

/* Without scripts the prerendered list stands alone: no filters, no theme
   button, and the spines drawn in full */
:root:not(.js) .filters, :root:not(.js) .nav-pill__theme { display: none; }
:root:not(.js) .tl-fill { transform: none; }

/* Scroll reveal, only when motion is welcome */
.motion .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity 0.6s ease, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.motion .reveal.in { opacity: 1; translate: 0 0; }

/* Footer: GachaKit's plain centred text */
.site-foot {
  margin-top: auto; padding: 0 1.5rem var(--spacing-xl);
  max-width: 44rem; align-self: center; text-align: center;
  display: flex; flex-direction: column; gap: var(--spacing-xs);
  color: var(--text-muted); text-shadow: var(--text-halo); font-size: 0.9rem;
}
.site-foot a { color: var(--text); font-weight: 700; }
.site-foot .fine { font-size: 0.8rem; }

@media (width <= 720px) {
  /* header.css places the menu from these when anchor positioning is missing */
  :root { --container-padding: 1rem; --header-gap: 0px; }
  .page-header { padding: var(--container-padding) var(--container-padding) var(--spacing-xs); }
  .page { padding: var(--spacing-sm) 1rem var(--spacing-xl); gap: var(--spacing-lg); }
  .section-card { padding: var(--spacing-xl) var(--spacing-lg); }
  .hero h1 { font-size: 2.2rem; }
  .era-head h2 { font-size: 1.8rem; }
  .stat { padding: var(--spacing-sm) var(--spacing-md); }
  .stat dd { font-size: 1.6rem; }
  .stat dt { font-size: 0.75rem; }
  .filters { padding: var(--spacing-md); }
  .filter-row { grid-template-columns: 1fr; gap: var(--spacing-xs); }
  .filter-foot { grid-template-columns: 1fr; gap: var(--spacing-sm); }
  .count { justify-self: start; }
  .seg button { padding: 0.4rem 0.3rem; font-size: 0.8rem; gap: 0.3rem; }
  .seg:hover button:not(:hover), .seg button:hover { flex-grow: 1; }
  .tl::before, .tl-fill { left: 0.4rem; top: 0.5rem; }
  .day { grid-template-columns: 1.4rem 1fr; }
  .day-dot { grid-row: 1; grid-column: 1; margin: 0.4rem 0 0 0; }
  .day-label { grid-row: 1; grid-column: 2; text-align: left; padding: 0 0 0.45rem; display: flex; gap: 0.5rem; align-items: baseline; }
  .day-label b { display: inline; }
  .card-list { grid-column: 2; }
  .card-list__item { padding: var(--spacing-md) var(--spacing-lg); }
}

@media (width <= 400px) {
  .seg button .dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .seg button[aria-pressed="true"], .toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
}

/* header.css pins the phone menu with position: fixed where anchor
   positioning is missing, which assumes a header that stays put. Ours
   scrolls away, so the menu goes on the page instead. */
@supports not (anchor-name: --a) {
  @media (width <= 720px) {
    .page-header .nav-pill__list { position: absolute; }
  }
}
