/* Palettes from the dark-mode guide: Material elevation, not pure black or pure white.
   Accent is the desaturated blue: #1976D2 in light, #64B5F6 in dark. */
:root {
  color-scheme: dark;
  --ground: #121212;
  --surface: #1e1e1e;
  --raised: #2c2c2c;
  --menu: #323232;
  --rule: #333333;
  --control: #444444;
  --text: #e0e0e0;
  --muted: #b0b0b0;
  --faint: #a0a0a0;
  --data: #64b5f6;
  --steel: #e0e0e0;
  --bore: var(--surface);
  --btn: #64b5f6;
  --btn-ink: #121212;
  --negative: #ef5350;
  --font: "Inter", system-ui, sans-serif;
  --fs-title: 20px;
  --fs-section: 16px;
  --fs-kpi: 24px;
  --fs-body: 14px;
  --fs-small: 12px;
  --radius-card: 6px;
  --radius-control: 6px;
  --row-height: 52px;
  --gap: 14px;
  --pad: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --ground: #f5f5f5;
  --surface: #ffffff;
  --raised: #eeeeee;
  --menu: #ffffff;
  --rule: #e0e0e0;
  --control: #e0e0e0;
  --text: #121212;
  --muted: #666666;
  --faint: #666666;
  --data: #1976d2;
  --steel: #424242;
  --btn: #1976d2;
  --btn-ink: #ffffff;
  --negative: #d32f2f;
}

* { box-sizing: border-box; }
html {
  font-size: 14px;
  background: var(--ground);
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font: 400 var(--fs-body)/20px var(--font);
  overflow-x: hidden;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}
.col {
  width: min(1440px, calc(100% - 64px));
  max-width: 100%;
  margin: 0 auto;
  padding-inline: 0;
}
.bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-height: 64px;
  padding: 10px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-right: 4px;
  padding-right: 16px;
  border-right: 1px solid var(--rule);
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--data);
  transition: transform 320ms var(--ease);
}
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-mark .race {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.brand-mark .hub {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5;
}
.brand-mark .spoke {
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-name i {
  font-style: normal;
  color: var(--muted);
  font-weight: 500;
}
.links { display: flex; align-items: center; flex: 1; flex-wrap: wrap; gap: 8px; }
.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.links a[aria-current="page"] { background: var(--raised); color: var(--text); }
.links a:hover { background: var(--raised); color: var(--text); }

.foot {
  flex: none;
  margin-top: auto;
  border-top: 1px solid var(--rule);
  background: var(--ground);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 28px 0 22px;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.foot-brand .brand {
  margin-right: 0;
  padding-right: 0;
  border-right: 0;
}
.foot-about {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.foot-title {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-list a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 160ms var(--ease);
}
.foot-col .foot-list a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.foot-list a:hover { color: var(--text); }
.foot-list a[aria-current="page"] { color: var(--data); }
.foot-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}
.foot-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.foot-contact-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: var(--data);
  color: #fff;
  transition: opacity 160ms var(--ease);
}
.foot-contact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foot-contact-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.foot-contact-link:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.foot-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.foot-social-link {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  line-height: 0;
  overflow: hidden;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.foot-social-link:hover {
  opacity: 0.86;
  transform: translateY(-1px);
  background: transparent;
}
.foot-social-link img {
  width: 32px;
  height: 32px;
  display: block;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--rule);
}
.foot-copy {
  margin: 0;
  color: var(--faint);
  font-size: var(--fs-small);
}

.cookie {
  position: fixed;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: 0 -8px 28px color-mix(in srgb, #000 22%, transparent);
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .cookie {
  box-shadow: 0 -8px 24px color-mix(in srgb, #121212 10%, transparent);
}
.cookie[hidden] { display: none; }
.cookie-bar {
  display: flex;
  align-items: center;
  gap: 16px 20px;
  padding: 14px 0;
}
.cookie-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cookie-text {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.cookie-text a {
  color: var(--data);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-ok {
  flex: none;
  min-width: 112px;
}
.nav-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search {
  width: 220px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
}
.search::placeholder { color: var(--faint); }
.block { margin-top: 14px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.block-head h2 {
  font-size: var(--fs-section);
  font-weight: 600;
}
.hits {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hits li + li { border-top: 1px solid var(--rule); }
.hits a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}
.hits a:hover strong { text-decoration: underline; }
.hits strong { font-weight: 600; }
.hits a > span:not(.meta) { color: var(--muted); font-size: 13px; }
.theme {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
  transition: background-color 180ms var(--ease), transform 120ms var(--ease);
}
.theme:hover { background: var(--raised); }
.theme:active { transform: scale(0.98); }
.theme-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-moon { display: none; }
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: block; }
.lang {
  display: inline-flex;
  align-items: center;
  height: 36px;
  margin-left: auto;
  padding: 2px;
  border-radius: var(--radius-control);
  background: var(--surface);
  flex: none;
}
.lang button {
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
  cursor: pointer;
  flex: none;
}

main { padding: 28px 0 48px; }
.finding { margin-top: 6px; color: var(--muted); }
h1 { font-size: var(--fs-title); font-weight: 600; letter-spacing: 0; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0 0 16px;
  padding: 6px 10px 6px 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--faint);
}
.crumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.crumb li:not(:last-child)::after {
  content: "›";
  margin: 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.55;
  flex: none;
}
.crumb a {
  color: var(--muted);
  transition: color 160ms var(--ease);
}
.crumb a:hover { color: var(--data); }
.crumb [aria-current="page"] {
  max-width: min(42ch, 100%);
  overflow: hidden;
  color: var(--text);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crumb-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  color: var(--muted);
}
.crumb-home:hover {
  background: var(--raised);
  color: var(--text);
}
.crumb-home svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bench {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
  margin-top: 18px;
}
.subs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.subs a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}
.subs a:hover {
  background: var(--raised);
  color: var(--text);
  transform: translateY(-1px);
}
.subs a[aria-current="page"] {
  background: var(--raised);
  border-color: color-mix(in srgb, var(--data) 42%, var(--rule));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--data);
}
.subs a[aria-current="page"]:hover { transform: none; }
.sheet .subs a { background: var(--ground); }
.sheet .subs a:hover { background: var(--raised); }
.sheet .subs a[aria-current="page"] { background: var(--raised); }
.sub-icon {
  width: 36px;
  height: 36px;
  padding: 6px;
  box-sizing: border-box;
  flex: none;
  border-radius: 4px;
  background: var(--raised);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--steel);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.sheet .sub-icon { background: var(--surface); }
.subs a:hover .sub-icon { color: var(--text); }
.subs a[aria-current="page"] .sub-icon {
  background: color-mix(in srgb, var(--data) 14%, var(--surface));
  color: var(--data);
}
.sheet .subs a[aria-current="page"] .sub-icon {
  background: color-mix(in srgb, var(--data) 16%, var(--raised));
}
.subs a span {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sheet {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px 16px 14px;
}
.col > .sheet { margin-top: 14px; }
.sheet .plate { background: var(--raised); }
.sheet .card { background: var(--raised); }
.sheet .card:hover { background: var(--menu); }
.instrument {
  display: flex;
  flex-direction: column;
  padding: var(--pad);
  background: var(--surface);
  border-radius: var(--radius-card);
  align-self: start;
  --bore: var(--ground);
}
.instrument .btn { margin-top: auto; }
.instrument svg { display: block; width: 100%; height: auto; }
.thumb { --bore: var(--ground); }
.reads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.reads p { display: flex; flex-direction: column; gap: 2px; }
.reads span, .reads small { color: var(--faint); font-size: var(--fs-small); font-weight: 400; }
.reads strong {
  color: var(--data);
  font-size: var(--fs-kpi);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.instrument .who { margin-top: 14px; color: var(--muted); font-size: 13px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-top: 16px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms var(--ease), opacity 150ms var(--ease);
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn.quiet {
  background: var(--raised);
  color: var(--text);
  font-weight: 500;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 72px; }
.field.grow { flex: 1 1 220px; min-width: 200px; }
.field.wide { flex: 0 1 200px; min-width: 160px; }
.field.mid { min-width: 120px; }
.field.mid input { width: 128px; }
.field > span { color: var(--faint); font-size: var(--fs-small); }
.field input {
  width: 88px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: inherit;
  font: inherit;
}
.field.grow input { width: 100%; }
.field input:focus { outline: 2px solid color-mix(in srgb, var(--data) 55%, transparent); }
.filters .btn { margin-top: 0; }

.pick {
  position: relative;
  width: 100%;
}
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.pick-btn:hover { background: var(--menu); }
.pick.is-open .pick-btn,
.pick-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--data) 55%, transparent);
  outline-offset: 0;
}
.pick-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}
.pick-chevron {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms var(--ease), stroke 160ms var(--ease);
}
.pick.is-open .pick-chevron {
  transform: rotate(180deg);
  stroke: var(--data);
}
.pick-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 10px 28px color-mix(in srgb, #000 28%, transparent);
}
html[data-theme="light"] .pick-menu {
  box-shadow: 0 10px 24px color-mix(in srgb, #121212 12%, transparent);
}
.pick-menu[hidden] { display: none; }
.pick-menu [role="option"] {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.pick-menu [role="option"]:hover,
.pick-menu [role="option"].is-active {
  background: var(--raised);
  color: var(--text);
}
.pick-menu [role="option"][aria-selected="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--data) 12%, var(--raised));
  box-shadow: inset 3px 0 0 var(--data);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.table th:nth-child(1) { width: 22%; }
.table th:nth-child(2) { width: 11%; }
.table th:nth-child(3) { width: 7%; }
.table th:nth-child(4),
.table th:nth-child(5),
.table th:nth-child(6) { width: 7%; }
.table th, .table td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.table thead tr { border: 0; }
.table th {
  height: 40px;
  padding: 0;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  vertical-align: middle;
}
.sheet .table th { background: var(--raised); }
.table th:first-child { border-radius: 4px 0 0 4px; }
.table th:last-child { border-radius: 0 4px 4px 0; }
.table th:first-child .sort { border-radius: 4px 0 0 4px; }
.table th:last-child .sort { border-radius: 0 4px 4px 0; }
.sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.table th.num .sort { justify-content: flex-end; }
.sort:hover {
  background: color-mix(in srgb, var(--menu) 55%, transparent);
  color: var(--text);
}
.sort:focus-visible { outline: 2px solid var(--data); outline-offset: -2px; }
.sort-icon {
  width: 10px;
  height: 14px;
  flex: none;
  fill: currentColor;
  opacity: 0.35;
}
.sort-icon path:first-child { opacity: 1; }
.sort-icon path:last-child { opacity: 1; }
th[aria-sort="none"] .sort-icon { opacity: 0.35; }
th[aria-sort="ascending"] .sort,
th[aria-sort="descending"] .sort { color: var(--text); }
th[aria-sort="ascending"] .sort-icon,
th[aria-sort="descending"] .sort-icon { opacity: 1; color: var(--data); }
th[aria-sort="ascending"] .sort-icon path:last-child { opacity: 0.25; }
th[aria-sort="descending"] .sort-icon path:first-child { opacity: 0.25; }
.table td {
  height: var(--row-height);
  padding: 0 10px;
  border-top: 1px solid var(--rule);
  vertical-align: middle;
}
.table tbody tr:first-child td { border-top: 0; }
.table td.name { overflow: visible; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background 160ms var(--ease); }
.table tbody tr:hover { background: color-mix(in srgb, var(--raised) 70%, var(--surface)); }
.table tr.is-on,
.table tr.is-on:hover { background: var(--raised); }
.table a.rowlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  font-weight: 500;
  color: var(--text);
}
.table a.rowlink:hover { color: var(--data); }
.table a.rowlink > span:not(.row-pic) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-pic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--ground);
  overflow: hidden;
}
.sheet .row-pic { background: var(--raised); }
.table tr:hover .row-pic { background: var(--menu); }
.row-pic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.specs { width: max-content; max-width: 100%; border-collapse: collapse; }
.specs th, .specs td {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}
.specs tr:first-child th,
.specs tr:first-child td { border-top: 0; padding-top: 0; }
.specs th { width: auto; padding-right: 48px; color: var(--muted); white-space: nowrap; }
.specs td.num { text-align: left; font-variant-numeric: tabular-nums; }
.unit { color: var(--faint); }

.detail {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 18px;
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--gap);
  align-items: start;
  margin-top: 14px;
}
.story > .sheet { margin-top: 0; }
.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}
.title-row h1 { min-width: 0; flex: 1 1 12rem; }
.title-row .meta { flex: none; margin: 0; }
.page-head { align-items: flex-start; margin-bottom: 0; }
.page-head-text { min-width: 0; flex: 1 1 12rem; }
.page-head-text h1 { flex: none; }
.page-head .finding { margin-top: 4px; }
.page-head > .meta { padding-top: 4px; }
.related > h2 {
  font-size: var(--fs-section);
  font-weight: 600;
  margin-bottom: 12px;
}
.related .cards { margin-top: 0; gap: 8px; }
.related .card {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}
.related .thumb {
  width: 56px;
  height: 56px;
}
.related .card > span:not(.thumb) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.related .card h2 {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.related .meta {
  margin: 0;
  line-height: 1.25;
  white-space: normal;
}

.cards { display: flex; flex-direction: column; gap: var(--gap); margin-top: 22px; }
.feature {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 188px;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: background 160ms var(--ease);
}
.feature:hover { background: var(--raised); }
.feature .thumb { width: 100%; height: 100%; min-height: 188px; border-radius: 0; }
.feature .copy { padding: 22px 22px 22px 8px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.feature h2 { font-size: var(--fs-section); font-weight: 600; }
.feature p { color: var(--muted); font-size: 13px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 4px;
}
.tile[hidden] { display: none; }
[data-ann-empty],
[data-lit-empty] { margin-top: 8px; }

.books {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 4px;
}
.book {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.book:hover {
  background: var(--raised);
  border-color: color-mix(in srgb, var(--data) 30%, var(--rule));
  transform: translateY(-1px);
}
.book[hidden] { display: none; }
.book-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-control);
  overflow: hidden;
  color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #000 18%, transparent);
}
.book-cover.large {
  width: 100%;
  max-width: 220px;
  flex: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #000 18%, transparent),
    0 14px 28px color-mix(in srgb, #000 28%, transparent),
    0 2px 0 color-mix(in srgb, #000 12%, transparent);
}
html[data-theme="light"] .book-cover.large {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, #121212 8%, transparent),
    0 12px 24px color-mix(in srgb, #121212 12%, transparent);
}
.book-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: 10%;
  background: color-mix(in srgb, #000 22%, transparent);
  box-shadow: inset -1px 0 0 color-mix(in srgb, #fff 8%, transparent);
}
.book-face {
  position: absolute;
  inset: 0 0 0 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px;
}
.book-face svg {
  width: 42%;
  max-width: 48px;
  height: auto;
  display: block;
  opacity: 0.92;
}
.book-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  text-transform: uppercase;
}
.book-cover.tone-a { background: linear-gradient(160deg, color-mix(in srgb, var(--data) 28%, var(--raised)), var(--raised)); }
.book-cover.tone-b { background: linear-gradient(160deg, color-mix(in srgb, var(--steel) 22%, var(--raised)), var(--ground)); }
.book-cover.tone-c { background: linear-gradient(160deg, color-mix(in srgb, var(--data) 16%, #2a3540), #1a222a); }
.book-cover.tone-d { background: linear-gradient(160deg, #2c3530, color-mix(in srgb, var(--data) 18%, var(--raised))); }
.book-cover.tone-e { background: linear-gradient(160deg, #303038, color-mix(in srgb, var(--steel) 18%, var(--raised))); }
.book-cover.tone-f { background: linear-gradient(160deg, color-mix(in srgb, var(--data) 12%, #3a3228), #2a241c); }
html[data-theme="light"] .book-cover.tone-a { background: linear-gradient(160deg, color-mix(in srgb, var(--data) 22%, #e8eef5), #dfe6ee); }
html[data-theme="light"] .book-cover.tone-b { background: linear-gradient(160deg, #e8e8e8, #d4d4d4); }
html[data-theme="light"] .book-cover.tone-c { background: linear-gradient(160deg, #d7e2ec, #c5d0da); }
html[data-theme="light"] .book-cover.tone-d { background: linear-gradient(160deg, #dce8e2, #c8d6ce); }
html[data-theme="light"] .book-cover.tone-e { background: linear-gradient(160deg, #e4e2ea, #d0ced8); }
html[data-theme="light"] .book-cover.tone-f { background: linear-gradient(160deg, #ebe4da, #d8cfc2); }
.book-topic {
  color: var(--data);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
}
.book h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-author {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book .meta {
  margin-top: auto;
  padding-top: 2px;
}
.book-detail {
  padding: 22px 22px 20px;
}
.book-detail .book-hero {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}
.book-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 22px 18px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--data) 12%, transparent), transparent 55%),
    var(--ground);
}
.book-stage .book-cover.large {
  transform: rotate(-2deg);
  transition: transform 220ms var(--ease);
}
.book-stage:hover .book-cover.large { transform: rotate(0deg) translateY(-2px); }
.book-detail .book-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
}
.book-detail .book-topic {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-detail h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.book-detail .book-author {
  font-size: 15px;
  -webkit-line-clamp: unset;
}
.book-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.book-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--ground);
}
.book-fact-k {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.book-fact-v {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.book-note {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: var(--fs-small);
  line-height: 1.4;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.book-about {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.book-about h2 {
  margin: 0 0 8px;
  font-size: var(--fs-section);
  font-weight: 600;
}
.book-detail .prose {
  margin-top: 0;
  max-width: 68ch;
  font-size: 14px;
  line-height: 1.55;
}
.book-related {
  margin-top: 22px;
  margin-bottom: 8px;
}
.book-related > h2 {
  margin: 0 0 12px;
  font-size: var(--fs-section);
  font-weight: 600;
}
.books-related {
  margin-top: 0;
}
.books-related .book h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.tile-kind {
  color: var(--data);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.tile[data-type="buy"] .tile-kind { color: var(--muted); }
.tile:hover {
  background: var(--raised);
  border-color: color-mix(in srgb, var(--data) 30%, var(--rule));
  transform: translateY(-1px);
}
.tile-art {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-control);
  background: var(--ground);
  overflow: hidden;
}
.tile:hover .tile-art { background: var(--menu); }
.tile-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.tile h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile .meta {
  margin-top: auto;
  padding-top: 2px;
}

.feed {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.feed-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  transition: background 160ms var(--ease);
}
.feed-row:last-child { border-bottom: 0; }
.feed-row:hover { background: var(--raised); }
.feed-art {
  display: block;
  width: 168px;
  height: 96px;
  border-radius: var(--radius-control);
  background: var(--ground);
  overflow: hidden;
}
.feed-row:hover .feed-art { background: var(--menu); }
.feed-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.feed-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.feed-body .title-row {
  margin-bottom: 0;
  gap: 6px 12px;
}
.feed-body h2 {
  font-size: var(--fs-section);
  font-weight: 600;
  line-height: 1.3;
}
.feed-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.feed-body .tags { margin-top: 2px; }
.feed-body .tag { background: var(--ground); }
.feed-row:hover .tag { background: var(--menu); }
.card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius-card);
  transition: background 160ms var(--ease);
}
.card:hover { background: var(--raised); }
.card h2 { font-size: var(--fs-section); font-weight: 600; }
.card p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.meta { color: var(--faint); font-size: var(--fs-small); white-space: nowrap; }
.thumb {
  width: 168px;
  height: 96px;
  border-radius: 6px;
  background: var(--ground);
  overflow: hidden;
}
.thumb svg { width: 100%; height: 100%; }

.plate {
  height: 220px;
  margin: 18px 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
}
.plate svg { width: 100%; height: 100%; }
.carousel { display: flex; gap: 14px; margin: 18px 0; overflow-x: auto; }
.carousel .plate { flex: 0 0 72%; margin: 0; }
.tags { display: flex; gap: 8px; margin-top: 14px; }
.tag {
  padding: 4px 10px;
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
  font-size: 12px;
}
.prose { max-width: 62ch; margin-top: 14px; color: var(--muted); }
.article-body {
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}
.article-body h2 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: var(--fs-section);
  font-weight: 600;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin: 0 0 12px; }
.article-body ul,
.article-body ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}
.article-body li + li { margin-top: 6px; }
.article-body .specs { margin: 8px 0 16px; }
.article-body .note {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--raised);
  color: var(--text);
}
.related { position: sticky; top: 80px; }
.contact { margin-top: 16px; }

.empty, .error {
  margin-top: 14px;
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--muted);
}
.error strong { color: var(--negative); font-weight: 600; }
.error a { color: var(--text); text-decoration: underline; }

.skel { height: 12px; border-radius: 4px; background: var(--raised); }
.skel-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.5fr 0.4fr 0.4fr 0.4fr 1.2fr;
  gap: 12px;
  align-items: center;
  height: var(--row-height);
  border-top: 1px solid var(--rule);
}
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.jumps a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  background: var(--raised);
}
.login { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: min(280px, 100%); margin-top: 16px; }
.login .field, .login .field input { width: 100%; }
.state-links { display: flex; gap: 16px; margin-top: 14px; color: var(--faint); font-size: var(--fs-small); }
.state-links a { text-decoration: underline; }

@media (max-width: 1200px) {
  .tiles,
  .books,
  .books-related,
  .subs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tiles,
  .books,
  .books-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-detail .book-hero { grid-template-columns: 1fr; }
  .book-stage { min-height: 0; }
  .book-cover.large { max-width: 180px; }
  .book-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-detail h1 { font-size: 22px; }
  .subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu { display: inline-flex; }
  .top .links { display: none; }
  .nav-toggle:checked ~ .top .links,
  .nav-toggle:checked ~ .app .links { display: flex; }
  .top .links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    z-index: 5;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100dvh - 92px);
    overflow: auto;
    padding: 10px;
    background: var(--menu);
    border-radius: var(--radius-card);
  }
  .top .links a { height: 48px; padding: 0 16px; }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 20px;
    padding: 22px 0 18px;
  }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-wrap: wrap; }
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-ok { width: 100%; }
  .lang { margin-left: 0; }
  .search { width: 100%; }
  .bench, .detail, .story, .card, .feature { grid-template-columns: 1fr; }
  .related .card { grid-template-columns: 56px minmax(0, 1fr); }
  .feature .copy { padding: 8px 16px 18px; }
  .feed-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feed-art {
    width: 100%;
    height: 140px;
  }
  .feed-body .title-row .meta {
    white-space: normal;
  }
  .thumb { width: 100%; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table tr { padding: 10px 0; border-top: 1px solid var(--rule); }
  .table td { height: auto; border: 0; padding: 2px 0; white-space: normal; }
  .table td[data-k] {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  .table td[data-k]::before {
    content: attr(data-k);
    color: var(--faint);
    font-size: var(--fs-small);
    text-align: left;
  }
}
/* —— Home: hero grid + content panels —— */
.page-home main { display: block; }
.home-hero {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 55% 80% at 88% 40%, color-mix(in srgb, var(--data) 14%, transparent), transparent 70%),
    var(--ground);
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 380px);
  align-items: center;
  gap: 40px 48px;
  min-height: 0;
}
.home-hero-copy {
  min-width: 0;
  animation: home-rise 560ms var(--ease) both;
}
.home-hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}
.home-bearing {
  width: min(100%, 380px);
  height: auto;
  aspect-ratio: 1;
  opacity: 0.95;
}
.home-bearing-ring,
.home-bearing-balls {
  transform-origin: 240px 240px;
  animation: home-spin 48s linear infinite;
}
@keyframes home-spin {
  to { transform: rotate(360deg); }
}
@keyframes home-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.home-brand {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text);
}
.home-brand span { color: var(--data); font-style: normal; font-weight: 600; }
.home-hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.home-lead {
  max-width: 42ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.home-cta .btn { margin-top: 0; height: 40px; padding: 0 18px; }
.home-cta-side {
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.home-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 36px 0 48px;
}
.home-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 14px;
}
.home-panel-head h2 {
  font-size: var(--fs-section);
  font-weight: 600;
}
.home-panel-head p {
  margin-top: 4px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.home-more {
  flex: none;
  color: var(--data);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.home-more:hover { text-decoration: underline; }
.home-panel .sheet { margin-top: 0; }
.home-panel .feed h3 {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 600;
}
.home-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}
.home-tiles .tile h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-books {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}
.home-books .book h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 28px;
  }
  .home-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-hero { padding: 24px 0 28px; }
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-hero-visual { order: 2; }
  .home-bearing { width: min(220px, 70vw); }
  .home-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-tiles,
  .home-books { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .table tbody tr, .card, .btn { transition: none; }
  .home-bearing-ring,
  .home-bearing-balls,
  .home-hero-copy { animation: none; }
}

.carousel { display: flex; gap: 8px; overflow-x: auto; margin: 8px 0 12px; }
.carousel img { height: 96px; width: auto; max-width: none; border-radius: 4px; }
.skeleton { display: grid; gap: 10px; padding: 28px 0; }
.skeleton i { display: block; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--text) 8%, transparent); }
