/* awsctrlcatlens v1 — mobile-first, light theme, no JS framework (SITE-UX-09).
   Palette aligned with sister projects (ismexplorer, ditch-distance):
   navy accent #1b4965, light-blue panels, sticky navy table headers. */

:root {
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-text: #1d1d1f;
  --color-muted: #555;
  --color-muted-strong: #4a6c85;
  --color-accent: #1b4965;
  --color-accent-soft: #4a6c85;
  --color-link: #1b4965;
  --color-bg-panel: #f2f6f9;
  --color-bg-soft: #f7f9fb;
  --color-bg-chip: #eef2f7;
  --color-row-hover: #eef5fb;
  --color-border-soft: #e3ebf2;
  --color-border-strong: #dbe6ee;
  --color-chip-active-bg: #1b4965;
  --color-chip-active-fg: #fff;
  --color-warning-bg: #fff8e1;
  --color-warning-border: #e6b800;
  --color-tombstone-bg: #fde2d1;
  --color-tombstone-border: #c0421a;
  --max-width: 64rem;
  --gutter: 1rem;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-system);
  color: var(--color-text);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--gutter);
  line-height: 1.5;
}

h1 { font-size: 1.6rem; margin: 0 0 0.4rem; }
h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.6rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
  color: var(--color-text);
}
h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; color: var(--color-accent); }

/* Scope h2 bottom-border styling away from nested h2 inside cards/panels/widgets. */
.entry-card h2,
.search-bar h2,
.hub-tier h2,
.filter-bar h2,
.framework-stats h2,
.bar-chart h2,
nav.toc h2 {
  border-bottom: none;
  padding-bottom: 0;
}

a { color: var(--color-link); }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--font-mono); }

/* Defensive — RESEARCH Q6 Pitfall 3: a CSS reset elsewhere must NOT
   be able to override `hidden`. */
[hidden] { display: none !important; }

.disclaimer {
  color: var(--color-muted);
  font-size: 0.9em;
  margin: 0 0 0.5rem 0;
}

.site-header,
.site-footer {
  padding: 0.5rem 0;
  max-width: 48rem;
}

.site-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.75rem;
}
.site-header-bar .site-title {
  font-weight: 700;
  font-size: 2em;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.1;
}
.site-header-bar .site-title:hover { text-decoration: underline; }
.site-header-bar .site-updated {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.site-provenance { font-size: 0.8rem; color: var(--color-muted); margin: 0 0 0.75rem; }

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  color: var(--color-muted);
  font-size: 0.85em;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.site-footer p { margin: 0.3rem 0; }
.site-footer .footer-legal { font-size: 0.8em; line-height: 1.4; }
.site-footer .footer-about { font-size: 0.8em; line-height: 1.4; }

.disclaimer {
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid #c7922a;
  background: #fdf6e6;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: 2px;
}
.site-footer .footer-copyright { font-size: 0.8em; }

.hero { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 0.5rem; }
.hero .hero-lead { max-width: 48rem; line-height: 1.5; }
.hero .hero-lead code { font-size: 0.9em; background: #f2f4f7; padding: 0 0.3em; border-radius: 2px; }
.landing-search { max-width: 48rem; margin: 0 0 1.5rem; }

/* Search affordance (SITE-UX-01). */
.site-search {
  margin: 0.5rem 0;
}
.site-search input[type="search"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
}
.site-search ul[data-search-results] {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0 0;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  background: #fff;
  max-height: 20rem;
  overflow: auto;
}
.site-search li { padding: 0.4rem 0.6rem; }
.site-search li:hover,
.site-search li.is-highlighted { background: var(--color-bg-chip); }
.search-empty { color: var(--color-muted); font-style: italic; }

/* Staleness banner (SITE-UX-08). */
.staleness-banner {
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid var(--color-warning-border);
  background: var(--color-warning-bg);
  border-radius: 0.25rem;
}
.staleness-banner.staleness-warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
}

/* Tombstone banner (RESEARCH Q8). */
.tombstone-banner {
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid var(--color-tombstone-border);
  background: var(--color-tombstone-bg);
  border-radius: 0.25rem;
}

/* Breadcrumb (SITE-UX-03). */
.breadcrumb {
  list-style: none;
  padding: 0.4rem 0.75rem;
  margin: 0.25rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  font-size: 0.85rem;
}
.breadcrumb li + li::before {
  content: '\203A';
  margin-right: 0.4rem;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Badge (used by severity, behavior, impl-type). */
.badge {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 0.25em;
  font-size: 0.85em;
  background: var(--color-bg-chip);
  color: var(--color-text);
  border: 1px solid #d2d9e2;
}
.badge-severity-critical { background: #fde2d1; border-color: #c0421a; }
.badge-severity-high     { background: #ffe3b3; border-color: #d08500; }
.badge-severity-medium   { background: #fff5c0; border-color: #b89b00; }
.badge-severity-low      { background: #e1f0d1; border-color: #4b7a1f; }
.badge-behavior-preventive { background: #d5e9f8; border-color: #0b57d0; }
.badge-behavior-detective  { background: #e8dcf3; border-color: #6a3fa0; }
.badge-impl { background: #eef2f7; border-color: #c0c7d2; }
.badge-deployable { background: #d6f0dd; border-color: #2f8f4a; color: #0f5a28; }

/* Filter chip (SITE-UX-04) — RESEARCH Q6 Pitfall 8: without a visible
   `.is-active` style the toggle is invisible to users. */
.filter-chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  margin: 0.1rem 0.2rem 0.1rem 0;
  border-radius: 999px;
  background: var(--color-bg-chip);
  border: 1px solid #c0c7d2;
  cursor: pointer;
  font-size: 0.9em;
  user-select: none;
}
.filter-chip:focus { outline: 2px solid var(--color-link); outline-offset: 2px; }
.filter-chip.is-active {
  background: var(--color-chip-active-bg);
  color: var(--color-chip-active-fg);
  border-color: var(--color-chip-active-bg);
}

/* ARN copy button (SITE-UX-05). */
.arn-copy {
  margin-left: 0.5rem;
  font-size: 0.85em;
  padding: 0.1rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  background: #fafbfc;
  cursor: pointer;
}
.arn-copy:focus { outline: 2px solid var(--color-link); outline-offset: 2px; }

/* Merge trail. */
.merge-trail {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #c0c7d2;
  background: #f7f9fb;
}

/* Responsive grid (SITE-UX-09). */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--gutter);
}
.index-grid.entry-blocks {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: row;
  max-width: 48rem;
  margin-bottom: 0.75rem;
}
.index-grid.entry-blocks.row-cols-1 { grid-template-columns: 1fr; }
.index-grid.entry-blocks.row-cols-2 { grid-template-columns: repeat(2, 1fr); }
.index-grid.entry-blocks.row-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 40rem) {
  .index-grid.entry-blocks,
  .index-grid.entry-blocks.row-cols-2,
  .index-grid.entry-blocks.row-cols-3 { grid-template-columns: 1fr; }
}

.entry-card {
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-bg-panel);
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.entry-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 1px 3px rgba(27, 73, 101, 0.12);
}
.entry-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.entry-card h2 a { text-decoration: none; }
.entry-card h2 a:hover { text-decoration: underline; }
.entry-card p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: #334; }
.entry-card .badge { font-variant-numeric: tabular-nums; }

.search-bar {
  max-width: 48rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background: var(--color-bg-soft);
}
.search-bar h2 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; }
.search-bar .landing-search { margin: 0; max-width: none; }

ul.controls-list {
  list-style: none;
  padding: 0;
}
ul.controls-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #eef1f5;
}

/* Bar chart (regions / services / frameworks index pages). */
.bar-chart { margin: 1rem 0 1.5rem; }
.bar-chart ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.bar-chart li {
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.15rem 0;
}
.bar-chart .bar-chart-label {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-chart .bar-chart-bar {
  display: block;
  height: 0.8rem;
  width: var(--pct, 0%);
  background: var(--color-accent);
  border-radius: 2px;
  min-width: 1px;
}
/* Kind modifiers tint the bar to match the matching row badge. Chosen for
   high contrast against the default navy accent so extension/opt-in rows
   are visually unambiguous. */
.bar-chart li.kind-extension .bar-chart-bar { background: #5aa8d6; }
.bar-chart li.kind-opt-in .bar-chart-bar { background: #e8c974; }
.bar-chart .bar-chart-count {
  font-variant-numeric: tabular-nums;
  color: #566;
  min-width: 3ch;
  text-align: right;
}
.bar-chart figcaption { margin-top: 0.5rem; font-size: 0.8rem; }
.bar-chart .bar-chart-title { font-weight: 600; font-size: 0.9rem; margin: 0 0 0.4rem; color: #334; }

.badge-opt-in { background: #fff4d6; color: #7a5a00; border: 1px solid #e8c974; }
.badge-extension { background: #d8e5ef; color: #0f3651; border: 1px solid #4a6c85; }

/* Phase 7 Plan 02 — orphan-rows palette (LZA framework page) */
.orphan-rows h3 { margin-top: 1rem; }
.orphan-list { list-style: disc; padding-left: 1.5rem; }

/* Heat map (framework Jaccard) */
.heat-map { margin: 1rem 0 1.5rem; }
.heat-map-scroll { overflow-x: auto; max-width: 100%; }
.heat-map table { border-collapse: collapse; font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.heat-map th, .heat-map td { padding: 0; border: 1px solid #eee; }
.heat-map .heat-row { padding: 0.1rem 0.5rem; text-align: right; white-space: nowrap; font-weight: normal; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.heat-map .heat-col { height: 7rem; width: 1.6rem; vertical-align: bottom; padding: 0.25rem 0; }
.heat-map .heat-col span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: normal; white-space: nowrap; max-height: 6.5rem; overflow: hidden; text-overflow: ellipsis; }
.heat-map .heat-corner { background: transparent; border: none; }
.heat-map .heat-cell {
  width: 1.6rem;
  height: 1.4rem;
  text-align: center;
  background: rgba(42, 90, 160, calc(var(--v, 0) * 0.9 + 0.08));
  color: #fff;
  font-size: 0.68rem;
}
.heat-map .heat-cell[style*="--v: 0."]:not([style*="--v: 0.5"]):not([style*="--v: 0.6"]):not([style*="--v: 0.7"]):not([style*="--v: 0.8"]):not([style*="--v: 0.9"]) { color: #233; }
.heat-map .heat-cell-null { background: #fafafa; color: #ccc; }

/* Hub tiers (top 30 highly-connected canonicals) */
.hub-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.hub-tier { padding: 0.75rem; border: 1px solid #e3ebf2; border-radius: 4px; background: #fafbfc; }
.hub-tier h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: #334; }
.hub-tier-list { margin: 0; padding-left: 1.5rem; }
.hub-tier-list li { padding: 0.25rem 0; font-size: 0.85rem; }
.hub-meta { font-size: 0.75rem; display: block; margin-top: 0.1rem; }

.scatter { margin: 1rem 0 1.5rem; }
.scatter svg { width: 100%; max-width: 100%; height: auto; background: #fcfcfd; border: 1px solid #e3ebf2; border-radius: 4px; }
.scatter .scatter-points circle { fill: #1b4965; fill-opacity: 0.35; }

.long-tail { margin: 0.5rem 0 1rem; }
.long-tail svg { width: 100%; max-width: 100%; height: 100px; background: #fcfcfd; border: 1px solid #e3ebf2; border-radius: 4px; }
.long-tail .long-tail-bars rect { fill: #1b4965; }
.long-tail .long-tail-bars rect.tier-1pct { fill: #b53d3d; }
.long-tail .long-tail-bars rect.tier-5pct { fill: #d98a3f; }
.long-tail .long-tail-bars rect.tier-rest { fill: #1b4965; }
.long-tail .long-tail-cutoff { stroke: #333; stroke-width: 0.5; stroke-dasharray: 2 1; vector-effect: non-scaling-stroke; opacity: 0.5; }
.legend-swatch { display: inline-block; width: 0.7em; height: 0.7em; vertical-align: baseline; margin-right: 0.1em; border-radius: 1px; }
.legend-swatch.tier-1pct { background: #b53d3d; }
.legend-swatch.tier-5pct { background: #d98a3f; }
.legend-swatch.tier-rest { background: #1b4965; }
.chart-sub { margin: 0.75rem 0 0.25rem; font-size: 0.85rem; color: #334; }

table.glossary,
table.data-table { border-collapse: collapse; width: 100%; max-width: 64rem; margin-top: 1rem; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
table.glossary th,
table.glossary td,
table.data-table th,
table.data-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--color-border-soft); vertical-align: top; text-align: left; }
table.glossary thead th,
table.data-table thead th { background: var(--color-accent); color: #fff; font-weight: 600; position: sticky; top: 0; border-color: var(--color-accent); }
table.glossary tbody tr:hover td,
table.data-table tbody tr:hover td { background: var(--color-row-hover); }
table.glossary tbody th { font-weight: 600; white-space: nowrap; width: 14rem; }

/* Numeric cell alignment (used in framework / data tables). */
table.data-table th.num,
table.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Control-list and raw-list tables fit full page width. */
table.control-table,
table.raw-table,
table.framework-items-table,
table.framework-index-table { max-width: 100%; width: 100%; table-layout: auto; }

/* Impl column: stack badges vertically, let long names wrap on ::. */
table.control-table td:nth-child(3) .badge,
table.raw-table td:nth-child(3) .badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.15rem 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  line-height: 1.25;
}
table.control-table td:nth-child(3) .badge:last-child,
table.raw-table td:nth-child(3) .badge:last-child { margin-bottom: 0; }
/* Column width hint: Impl stays narrow so Control column gets the breathing room. */
table.control-table th:nth-child(3),
table.raw-table th:nth-child(3) { width: 11rem; }

/* ARN cell: narrow, mono, breaks only at ARN separators. */
table.raw-table th:last-child,
table.raw-table td:last-child { width: 16rem; }
table.raw-table td code {
  font-size: 0.72rem;
  word-break: break-all;
  line-height: 1.3;
  display: inline-block;
  max-width: 100%;
}

/* Framework-items table: control IDs render natural width (no wrap). */
table.framework-items-table td:first-child,
table.framework-items-table th:first-child { white-space: nowrap; width: 1%; }

/* Tighter per-row padding for dense control lists. */
table.control-table th,
table.control-table td,
table.raw-table th,
table.raw-table td,
table.framework-items-table th,
table.framework-items-table td,
table.framework-index-table th,
table.framework-index-table td { padding: 0.35rem 0.55rem; font-size: 0.85rem; vertical-align: top; }
table.data-table td.num,
table.data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Side-by-side mini charts (controls/raw landing) */
.chart-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.chart-row .bar-chart { margin: 0; }
.chart-row .bar-chart li { grid-template-columns: minmax(5rem, 7rem) 1fr auto; font-size: 0.8rem; }

@media (max-width: 40rem) {
  body { padding: 0.5rem; }
  .index-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .site-search input[type="search"] { font-size: 0.95rem; }
  .bar-chart li { grid-template-columns: minmax(4rem, 6rem) 1fr auto; font-size: 0.75rem; }
}

.stat-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  max-width: 56rem;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  background: #fff;
  border: 1px solid #d4d9e0;
  border-radius: 6px;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.1s, border-color 0.1s;
}
.stat-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-color: #3a6ea5;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: #1b1b1b;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  .stat-hero { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 0.75rem 0.5rem; }
}

.overlay-bar-chart .bar-chart-bar-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 1rem;
}
.overlay-bar-chart .bar-chart-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--pct, 0%);
  background: #c7d6e8;
}
.overlay-bar-chart .bar-chart-bar-secondary { background: #3a6ea5; }
.overlay-bar-chart .bar-chart-legend { margin: 0 0 0.5rem; font-size: 0.8rem; }
.overlay-bar-chart .legend-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  vertical-align: baseline;
  margin-right: 0.25rem;
}
.overlay-bar-chart .legend-primary { background: #c7d6e8; }
.overlay-bar-chart .legend-secondary { background: #3a6ea5; }
.overlay-bar-chart .bar-chart-header {
  font-size: 0.75rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #d4d9e0;
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}
.overlay-bar-chart .bar-chart-header .bar-chart-bar-wrap {
  background: transparent;
  height: 0;
}

.pct-bar {
  position: relative;
  display: block;
  height: 0.75rem;
  width: 100%;
  max-width: 32rem;
  margin: 0.25rem 0 0.75rem;
  background: var(--color-border-soft);
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  overflow: hidden;
}
.pct-bar .pct-bar-fill {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-soft) 100%);
}

ul.chip-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
ul.chip-list .chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 3px;
  font-size: 0.8rem;
  text-decoration: none;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
ul.chip-list .chip:hover { background: var(--color-row-hover); border-color: var(--color-accent); }

nav.toc {
  margin: 1rem 0 1.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  font-size: 0.9rem;
}
nav.toc strong { color: var(--color-accent); }
nav.toc a { color: var(--color-accent); text-decoration: none; padding: 2px 4px; border-radius: 3px; }
nav.toc a:hover { background: var(--color-row-hover); text-decoration: underline; }
nav.toc strong { display: block; margin-bottom: 0.25rem; }
nav.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
nav.toc li { margin: 0; }
nav.toc a { text-decoration: none; }
nav.toc a:hover { text-decoration: underline; }
:target { scroll-margin-top: 0.5rem; }
