
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eff1f4;
  --text: #15181d;
  --muted: #596170;
  --faint: #7c8491;
  --rule: #e3e6eb;
  --chip-border: #c9ced6;
  --field-border: #8c939e;
  --accent: #1f56a8;
  --accent-strong: #17468c;
  --accent-soft: #e8effa;
  --accent-fill: #1f56a8;
  --accent-fill-strong: #17468c;
  --on-fill: #ffffff;
  --ok: #1e6b3a;
  --error: #b3261e;
  --stripe: rgb(16 24 40 / 0.025);
  --hover: rgb(16 24 40 / 0.045);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 0.06);
  --shadow-md: 0 1px 2px rgb(16 24 40 / 0.05), 0 6px 16px -4px rgb(16 24 40 / 0.08);
  --shadow-lg: 0 2px 6px rgb(16 24 40 / 0.06), 0 18px 40px -12px rgb(16 24 40 / 0.22);

  --c-thracian: #eab308;
  --c-illyrian: #22c55e;
  --c-macedonian: #9333ea;
  --c-anatolian: #dc2626;
  --c-slavic: #2563eb;
  --c-other: #a1a1aa;

  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --page: 60rem;
  --pad: clamp(1rem, 3vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --surface: #161a1f; --surface-2: #1e232a; --text: #e7eaee; --muted: #9ba3ae; --faint: #7d8591;
    --rule: #262c34; --chip-border: #3b424c; --field-border: #646d79;
    --accent: #8ab4f8; --accent-strong: #aecbfa; --accent-soft: #1b2a40; --accent-fill: #2f66c4; --accent-fill-strong: #3a72d1;
    --on-fill: #ffffff; --ok: #81c995; --error: #f2b8b5;
    --stripe: rgb(255 255 255 / 0.02); --hover: rgb(255 255 255 / 0.04);
    --shadow-sm: 0 0 0 1px rgb(255 255 255 / 0.02);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 18px 40px -12px rgb(0 0 0 / 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114; --surface: #161a1f; --surface-2: #1e232a; --text: #e7eaee; --muted: #9ba3ae; --faint: #7d8591;
  --rule: #262c34; --chip-border: #3b424c; --field-border: #646d79;
  --accent: #8ab4f8; --accent-strong: #aecbfa; --accent-soft: #1b2a40; --accent-fill: #2f66c4; --accent-fill-strong: #3a72d1;
  --on-fill: #ffffff; --ok: #81c995; --error: #f2b8b5;
  --stripe: rgb(255 255 255 / 0.02); --hover: rgb(255 255 255 / 0.04);
  --shadow-sm: 0 0 0 1px rgb(255 255 255 / 0.02);
  --shadow-md: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.4), 0 18px 40px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; color: var(--text); background-color: var(--bg); font-family: var(--sans); font-size: 1rem; line-height: 1.6; overflow-wrap: break-word; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
@media (min-width: 720px) { body { font-size: 1.0625rem; } }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.875em; padding: 0.05em 0.3em; background: var(--surface-2); border-radius: 4px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: 1.1875rem; font-weight: 650; margin: 0; }
h3 { font-size: 1.0625rem; font-weight: 650; margin: 0 0 0.35rem; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); font-size: 0.875rem; }
.skip-link:focus { top: 0.5rem; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; min-height: 3.5rem; padding-block: 0.6rem; }
.site-name { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-family: var(--display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.site-name::before { content: ""; flex: none; width: 1.375rem; height: 1.375rem; background: url("heatmap-icon.svg") center / contain no-repeat; }
.site-nav { display: flex; gap: 0.125rem; font-size: 0.875rem; }
.site-nav a { padding: 0.35rem 0.65rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.theme-toggle { display: flex; align-items: center; margin-left: auto; padding: 3px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface-2); font-size: 0.8125rem; visibility: hidden; }
.js .theme-toggle { visibility: visible; }
.theme-toggle button { font: inherit; color: var(--muted); background: none; border: 0; border-radius: var(--r-sm); padding: 0.2rem 0.75rem; cursor: pointer; }
.theme-toggle button:hover { color: var(--text); }
.theme-toggle button[aria-pressed="true"] { color: var(--text); font-weight: 600; background: var(--surface); box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 719px) {
  .site-nav { order: 3; flex: 1 0 100%; margin-inline: calc(-1 * var(--pad)); padding-inline: calc(var(--pad) - 0.65rem); overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}

.hero { padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(1.25rem, 3vw, 1.75rem); text-align: center; }
h1 { max-width: 24em; margin: 0 auto 0.5rem; font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem); line-height: 1.2; text-wrap: balance; }
.subtitle { margin: 0 auto; max-width: 40rem; color: var(--text); text-wrap: pretty; }

.card { margin-bottom: 1rem; padding: clamp(1rem, 2.5vw, 1.5rem); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.card-sub { margin: 0.15rem 0 0; font-size: 0.875rem; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.label { margin: 0 0 0.5rem; font-size: 0.875rem; font-weight: 600; }
.section-title { margin: 2.5rem 0 1rem; }

.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 0.9rem; }
.field-label { font-size: 0.875rem; font-weight: 600; }
.mode-toggle { display: inline-flex; flex-wrap: wrap; gap: 0.375rem; }
.mode-btn { min-height: 2.125rem; padding: 0.3rem 0.9rem; font: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.3; color: var(--text); background: var(--surface); border: 1px solid var(--chip-border); border-radius: var(--r-md); cursor: pointer; }
.mode-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.mode-btn[aria-pressed="true"], .mode-btn[aria-pressed="true"]:hover { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mode-hint { margin: 0 0 1.1rem; font-size: 0.9375rem; color: var(--muted); }
.text-btn { padding: 0; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; }
.text-btn:hover { text-decoration: underline; }

.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 1rem; }
.label-row label { margin-bottom: 0.4rem; font-size: 0.875rem; font-weight: 600; }
.label-row a { margin-bottom: 0.4rem; font-size: 0.8125rem; }
.opt { font-weight: 400; color: var(--muted); }
textarea, input[type="text"], input[type="search"] {
  display: block; width: 100%; margin: 0; padding: 0.55rem 0.75rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-md);
  font-family: var(--sans); font-size: 0.9375rem; line-height: 1.4; transition: border-color 0.15s;
}
textarea { min-height: 6.5rem; resize: vertical; font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; }
textarea.code { min-height: 9rem; font-size: 0.75rem; white-space: pre; overflow-wrap: normal; }
textarea:hover, input[type="text"]:hover, input[type="search"]:hover { border-color: var(--muted); }
textarea:focus-visible, input:focus-visible { outline-offset: 1px; border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: 1; }
[aria-invalid="true"], [aria-invalid="true"]:hover, [aria-invalid="true"]:focus-visible { border-color: var(--error); }
.hint { margin: 0.4rem 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.hint.is-ok { color: var(--ok); }
.error { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--error); }
input.search { margin-bottom: 0.75rem; font-size: 0.875rem; }

.samples { margin: 0.9rem 0 0; }
.samples-label { display: block; margin-bottom: 0.4rem; font-size: 0.8125rem; color: var(--muted); }
.sample-buttons { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.chip { min-height: 2rem; padding: 0.25rem 0.2rem; font-family: var(--sans); font-size: 0.875rem; line-height: 1.3; color: var(--accent); background: none; border: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; cursor: pointer; }
.chip:hover { text-decoration-thickness: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.6rem 1.35rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; text-decoration: none; }
.btn-primary { color: var(--on-fill); background: var(--accent-fill); border-color: var(--accent-fill); box-shadow: var(--shadow-sm), inset 0 1px 0 rgb(255 255 255 / 0.12); }
.btn-primary:hover { background: var(--accent-fill-strong); border-color: var(--accent-fill-strong); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--field-border); }
.btn-secondary:hover { background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.copy-btn { min-height: 2.125rem; padding: 0.3rem 0.8rem; font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-md); cursor: pointer; text-decoration: none; }
.copy-btn:hover { background: var(--surface-2); }
a.copy-btn { display: inline-flex; align-items: center; }

.editor { margin: 0 0 1.1rem; padding: 0.9rem 1rem 1rem; background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-md); }
.editor p { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.editor .row { margin-top: 0.6rem; }
.editor .error { margin-top: 0.4rem; font-size: 0.875rem; color: var(--error); }

.results { display: none; }
.results.visible { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.admix-bar { display: flex; gap: 2px; height: 2.25rem; margin-bottom: 0.9rem; overflow: hidden; border-radius: var(--r-md); background: var(--surface); }
.admix-bar > div { display: flex; align-items: center; justify-content: center; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.75rem; font-weight: 700; color: #fff; transition: width 0.4s ease; }
.admix-bar > div.dark-ink { color: #15181d; }
.admix-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.legend-item { display: flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; white-space: nowrap; }
.legend-item.is-zero { color: var(--muted); }
.legend-dot { flex: none; width: 0.625rem; height: 0.625rem; border-radius: 3px; }
.legend-pct { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.distance-badge { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: 1rem 0 0; font-size: 0.875rem; }
.distance-label { color: var(--muted); }
.distance-val { font-family: var(--mono); font-weight: 600; color: var(--text); }

.info { margin-top: 0.9rem; font-size: 0.875rem; }
.info > summary { width: fit-content; font-weight: 600; color: var(--accent); cursor: pointer; }
.info > summary:hover { text-decoration: underline; }
.info-body { margin-top: 0.5rem; color: var(--muted); }
.info-body p { margin: 0 0 0.6rem; }
.info-body p:last-child { margin-bottom: 0; }
.info-body strong { color: var(--text); }

.coords-display { max-height: 6rem; padding: 0.6rem 0.75rem; overflow-y: auto; font-family: var(--mono); font-size: 0.75rem; line-height: 1.7; word-break: break-all; color: var(--muted); background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-md); }
.section-divider { height: 1px; margin: 1.25rem 0; background: var(--rule); }

.period-filters { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.75rem; }
.filter-btn { min-height: 2.125rem; padding: 0.3rem 0.9rem; font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--chip-border); border-radius: var(--r-md); cursor: pointer; }
.filter-btn:hover { background: var(--surface-2); border-color: var(--muted); }
.filter-btn[aria-pressed="true"], .filter-btn[aria-pressed="true"]:hover { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.dist-table-wrap { max-height: 30rem; overflow: auto; border: 1px solid var(--rule); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; z-index: 2; padding: 0.55rem 0.75rem; text-align: left; font-size: 0.8125rem; font-weight: 600; color: var(--text); background: var(--surface-2); border-bottom: 1px solid var(--rule); }
td { padding: 0.45rem 0.75rem; font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--rule); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--stripe); }
tbody tr:hover td { background: var(--hover); }
.rank-num { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6rem; height: 1.6rem; padding: 0 0.3rem; border-radius: var(--r-sm); font-family: var(--mono); font-size: 0.75rem; font-weight: 700; }
.sample-name { font-weight: 500; color: var(--text); }
.period-date { display: block; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.dist-val { padding: 0.15rem 0.45rem; font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; border-radius: 4px; }
.act-btn { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; }
.act-btn:hover { color: var(--accent); background: var(--accent-soft); }
.act-btn.is-done { color: var(--ok); }
.act-btn svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.table-note { margin: 0.6rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.empty-note { padding: 1.25rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

.plot-card { padding-bottom: clamp(0.75rem, 2vw, 1.25rem); }
.plot-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }
.axis-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.axis-pick .field-label { margin-right: 0.15rem; font-size: 0.8125rem; color: var(--muted); }
.pc-btn { min-height: 1.9rem; padding: 0.2rem 0.6rem; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--chip-border); border-radius: var(--r-sm); cursor: pointer; }
.pc-btn:hover { background: var(--surface-2); }
.pc-btn[aria-pressed="true"] { color: var(--accent-strong); background: var(--accent-soft); border-color: var(--accent); }
.check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--text); cursor: pointer; }
.check input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent-fill); }
.plot-wrap { position: relative; height: clamp(14rem, 68vh, 40rem); overflow: hidden; background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-md); touch-action: none; }
.plot-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.plot-wrap canvas:focus-visible { outline-offset: -3px; }
.plot-wrap canvas.is-dragging { cursor: grabbing; }
.plot-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.75rem; }
.plot-legend span { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.plot-legend i { display: inline-block; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; }
.plot-legend i.diamond { width: 0.55rem; height: 0.55rem; border-radius: 1px; transform: rotate(45deg); }
.plot-legend i.anchor { width: 0.8rem; height: 0.8rem; border-radius: 2px; border: 2px solid currentColor; background: none; transform: rotate(45deg) scale(0.8); }
.plot-legend i.you { width: 0.7rem; height: 0.7rem; background: #e07840; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text); }
.plot-help { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--muted); }
.plot-tooltip { display: none; position: fixed; z-index: 40; max-width: min(22rem, 90vw); padding: 0.35rem 0.65rem; font-size: 0.8125rem; line-height: 1.4; color: var(--text); pointer-events: none; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); box-shadow: var(--shadow-md); }
.plot-tooltip small { display: block; color: var(--muted); }

.tools { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 52rem) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); transition: border-color 0.15s; }
.tool-card:hover { border-color: var(--field-border); }
.tool-card:hover h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.tool-card:focus-within { border-color: var(--accent); }
.tool-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); border-bottom: 1px solid var(--rule); }
.tool-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tool-shot .shot-dark { display: none; }
:root[data-theme="dark"] .tool-shot .shot-light { display: none; }
:root[data-theme="dark"] .tool-shot .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool-shot .shot-light { display: none; }
  :root:not([data-theme="light"]) .tool-shot .shot-dark { display: block; }
}
.tool-body { display: flex; flex: 1; flex-direction: column; padding: 1.1rem 1.25rem 1.25rem; }
.tool-body h2 { margin-bottom: 0.4rem; font-size: 1.125rem; }
.tool-body h2 a { color: var(--text); text-decoration: none; }
.tool-body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tool-body p { flex: 1; margin: 0; font-size: 0.9375rem; color: var(--muted); }

.page-note { margin: 1.5rem auto 0; max-width: 40rem; text-align: center; font-size: 0.9375rem; color: var(--muted); }

.about { color: var(--muted); }
.about p { margin: 0 0 0.75rem; }
.about strong { color: var(--text); font-weight: 600; }
.about h3 { margin: 1.4rem 0 0.5rem; padding-top: 1.1rem; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--text); }


.site-footer { margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.75rem 0 2.25rem; background: var(--surface); border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); text-align: center; }
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

@media (max-width: 40rem) {
  .card { padding: 1rem; }
  td, th { padding-inline: 0.5rem; }
  .dist-table-wrap th:nth-child(3), .dist-table-wrap td:nth-child(3),
  .dist-table-wrap th:nth-child(4), .dist-table-wrap td:nth-child(4) { display: none; }
}
@media (pointer: coarse) {
  textarea, input[type="text"], input[type="search"], textarea.code, input.search { font-size: 1rem; } 
  .filter-btn, .copy-btn, .pc-btn, .mode-btn, .chip { min-height: 2.75rem; }
  .theme-toggle button { min-height: 2.25rem; min-width: 2.75rem; }
  .site-nav a { padding-block: 0.6rem; }
  .act-btn { width: 2.75rem; height: 2.75rem; }
}
@media (forced-colors: active) {
  .filter-btn[aria-pressed="true"], .mode-btn[aria-pressed="true"], .pc-btn[aria-pressed="true"] { forced-color-adjust: none; color: HighlightText; background: Highlight; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
