@font-face {
  font-family: "Nunito Atlas";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #f6f3e8;
  --surface: #fffdf7;
  --surface-raised: #fffefa;
  --ink: #2b3a1f;
  --ink-soft: #4e5a3f;
  --muted: #687254;
  --line: #ded8c5;
  --line-soft: #eee9d9;
  --green: #397a24;
  --green-deep: #2f6a1c;
  --green-pale: #e6f3dc;
  --orange: #ef8a2b;
  --orange-pale: #fde6d1;
  --teal: #2f95cc;
  --teal-pale: #dcf1fb;
  --red: #e52828;
  --red-pale: #f9e4df;
  --yellow: #f6c533;
  --yellow-pale: #fdf1c7;
  --blue: #3978b8;
  --blue-pale: #deedf8;
  --focus: #176cad;
  --font: "Nunito Atlas", "Trebuchet MS", ui-rounded, system-ui, sans-serif;
}

* { box-sizing: border-box; }

.build-info { color: var(--muted); font-size: .8125rem; margin: 0 0 28px; max-width: 75ch; }
.view-description { margin: -4px 0 18px; max-width: 70ch; color: var(--ink-soft); font-size: .875rem; }
.detail-description { margin-top: 0; color: var(--ink-soft); }
.detail-interactions { padding-left: 20px; color: var(--ink-soft); font-size: .875rem; }
.detail-meta h3 { margin: 20px 0 8px; font-size: .9375rem; }
.detail-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.detail-navigation button { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); cursor: pointer; }
.detail-navigation button:disabled { opacity: .5; cursor: default; }
.detail-navigation span { font-size: .8125rem; color: var(--muted); }
.detail-image-link, .coverage-note a { color: var(--green-deep); text-underline-offset: 3px; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
}

::selection { background: var(--yellow); color: var(--ink); }

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

button, input, select, [tabindex]:not([tabindex="-1"]) {
  outline: none;
}

button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 17px clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(14px);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 48px; height: 48px; flex: none; filter: drop-shadow(0 4px 0 #b3241c); }

h1, h2, h3, p { margin: 0; }

.brand-lockup h1 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.brand-lockup p { margin-top: 4px; color: var(--ink-soft); font-size: .9rem; }

.atlas-summary {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

.atlas-summary span { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.atlas-summary strong { color: var(--ink); font-size: 1.2rem; font-weight: 900; }

.atlas-shell {
  display: grid;
  grid-template-columns: minmax(236px, 282px) minmax(0, 1fr);
  align-items: start;
  max-width: 1800px;
  margin: 0 auto;
}

.filters {
  position: sticky;
  top: 92px;
  height: calc(100vh - 92px);
  overflow: auto;
  padding: 26px 22px 40px clamp(20px, 4vw, 58px);
  border-right: 1px solid var(--line);
  scrollbar-color: var(--line) transparent;
}

.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  transform: translateY(-50%);
}

.search-wrap input {
  width: 100%;
  min-height: 46px;
  padding: 10px 40px 10px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--line-soft);
}

.search-wrap input::placeholder { color: var(--muted); opacity: 1; }
.search-wrap kbd {
  position: absolute;
  top: 50%;
  right: 11px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font: 700 .72rem/1.6 var(--font);
  transform: translateY(-50%);
}

fieldset { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
legend, .select-grid label > span {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.app-options { display: grid; gap: 4px; }
.app-option {
  --app-accent: var(--green);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.app-option:hover { background: var(--surface); }
.app-option.is-active { background: var(--surface); box-shadow: 0 3px 0 var(--line-soft); }
.app-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--app-accent); }
.app-label { min-width: 0; font-weight: 800; }
.app-count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

[data-accent="orange"] { --app-accent: var(--orange); --app-pale: var(--orange-pale); }
[data-accent="teal"] { --app-accent: var(--teal); --app-pale: var(--teal-pale); }
[data-accent="red"] { --app-accent: var(--red); --app-pale: var(--red-pale); }
[data-accent="blue"] { --app-accent: var(--blue); --app-pale: var(--blue-pale); }
[data-accent="yellow"] { --app-accent: var(--yellow); --app-pale: var(--yellow-pale); }
[data-accent="green"] { --app-accent: var(--green); --app-pale: var(--green-pale); }

.select-grid { display: grid; gap: 17px; margin-top: 27px; }
.select-grid label { display: grid; }
.select-grid select {
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.clear-button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 20px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--green-deep);
  font-weight: 850;
  cursor: pointer;
}

.clear-button:hover:not(:disabled) { background: var(--green-pale); }
.clear-button:disabled { color: var(--muted); cursor: default; opacity: .55; }
.clear-button svg, .icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.coverage-note { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.coverage-note strong { font-size: .86rem; }
.coverage-note p { max-width: 28ch; margin-top: 6px; color: var(--muted); font-size: .82rem; }

.results { min-width: 0; padding: 34px clamp(20px, 4vw, 58px) 90px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.results-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 950; letter-spacing: -.035em; line-height: 1; }
.results-head p { margin-top: 10px; color: var(--muted); }

.view-controls { display: flex; padding: 4px; border-radius: 10px; background: #e8e3d3; }
.density-button { min-height: 34px; padding: 6px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: .78rem; font-weight: 850; cursor: pointer; }
.density-button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 0 var(--line); }

.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 28px; margin-top: 22px; }
.filter-chip { padding: 5px 9px; border-radius: 999px; background: var(--green-pale); color: var(--green-deep); font-size: .78rem; font-weight: 850; }

.atlas-content { margin-top: 16px; }
.platform-section { --app-accent: var(--green); --app-pale: var(--green-pale); padding-top: 42px; }
.platform-section:first-child { padding-top: 18px; }
.platform-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 20px; }
.platform-flag { width: 16px; height: 16px; border-radius: 5px; background: var(--app-accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--app-accent) 70%, #000); }
.platform-heading h3 { font-size: 1.18rem; font-weight: 950; }
.platform-line { height: 1px; background: var(--line); }
.platform-count { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }

.view-group { margin-top: 29px; }
.view-group + .view-group { padding-top: 27px; border-top: 1px solid var(--line-soft); }
.view-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.view-heading h4 { margin: 0; font-size: 1rem; font-weight: 950; text-transform: capitalize; }
.view-heading span { color: var(--muted); font-size: .76rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
  gap: 14px;
  align-items: start;
}

.is-compact .gallery { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }

.atlas-item {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--line);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.atlas-item:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--line); }
.atlas-item:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }

.item-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  max-height: 340px;
  overflow: hidden;
  background: #ebe7da;
}

.is-compact .item-visual { max-height: 230px; }
.item-visual img { width: 100%; height: 100%; object-fit: contain; background: #e7e3d7; }

.missing-visual {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  padding: 18px;
  background: var(--app-pale);
  color: color-mix(in srgb, var(--app-accent) 62%, var(--ink));
  text-align: left;
}

.missing-visual svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.missing-visual strong { display: block; margin-top: 9px; font-size: .85rem; }
.missing-visual small { display: -webkit-box; margin-top: 4px; overflow: hidden; opacity: .8; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.35; }
.source-visual-eyebrow { margin-bottom: 10px; font-size: .58rem; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }

.evidence-label {
  position: absolute;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  border-radius: 6px;
  background: rgb(43 58 31 / 88%);
  color: white;
  font-size: .67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.item-copy { display: block; padding: 12px 13px 13px; }
.item-state { display: block; overflow: hidden; font-size: .88rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.item-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-section { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 5px; background: var(--paper); color: var(--ink-soft); font-size: .65rem; font-weight: 900; }

.empty-state { display: grid; place-items: center; min-height: 420px; padding: 50px; text-align: center; }
.empty-state svg { width: 54px; height: 54px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.empty-state h3 { margin-top: 18px; font-size: 1.35rem; }
.empty-state p { max-width: 44ch; margin-top: 8px; color: var(--muted); }
.empty-state button { margin-top: 20px; padding: 10px 15px; border: 0; border-radius: 10px; background: var(--green); color: white; box-shadow: 0 4px 0 var(--green-deep); font-weight: 900; cursor: pointer; }

.detail-dialog {
  width: min(1180px, calc(100vw - 36px));
  height: min(960px, calc(100dvh - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 26px 80px rgb(43 58 31 / 28%);
}
.detail-dialog[open] { display: flex; flex-direction: column; }
.dialog-bar, .detail-toolbar { flex: none; }
.detail-toolbar { display: flex; align-items: center; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.detail-platforms { display: flex; align-items: stretch; gap: 4px; min-width: 0; flex: 1; overflow-x: auto; }
.platform-tab { display: flex; flex: none; flex-direction: column; justify-content: center; gap: 2px; min-height: 58px; padding: 9px 12px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ink-soft); font-size: .85rem; font-weight: 850; cursor: pointer; }
.platform-tab small { font-size: .66rem; font-weight: 750; color: var(--muted); }
.platform-tab:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.platform-tab.is-selected { border-bottom-color: var(--green); color: var(--green-deep); }
.platform-tab:disabled { cursor: default; opacity: .6; }
.detail-modes { display: flex; flex: none; gap: 2px; padding: 3px; background: var(--paper); border-radius: 10px; }
.detail-modes button { min-height: 40px; border: 0; border-radius: 7px; padding: 8px 12px; background: transparent; color: var(--ink-soft); font-size: .8rem; font-weight: 850; cursor: pointer; }
.detail-modes button[aria-pressed="true"] { background: var(--green-deep); color: white; }
.detail-modes button:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--green-pale); }
.detail-modes button:disabled { opacity: .5; cursor: default; }
.dialog-body[hidden], .detail-comparison[hidden] { display: none; }
.detail-comparison { min-height: 0; flex: 1; overflow: auto; padding: 22px; }
.compare-grid { display: grid; grid-template-columns: repeat(var(--compare-columns), minmax(260px, 1fr)); gap: 24px; }
.compare-column { min-width: 0; }
.compare-column h3 { margin: 0 0 12px; font-size: 1.1rem; }
.compare-choice { display: block; margin-bottom: 16px; }
.compare-choice > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .73rem; font-weight: 850; }
.compare-choice select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; text-overflow: ellipsis; }
.compare-image { position: relative; display: grid; aspect-ratio: var(--compare-ratio); max-height: min(58dvh, 640px); padding: 14px; background: #e8e4d7; }
.compare-image img { position: absolute; inset: 14px; display: block; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; object-position: top center; }
.compare-image .missing-visual { width: 100%; height: 100%; min-height: 0; }
.compare-caption { margin: 13px 0 3px; color: var(--ink-soft); font-size: .77rem; font-weight: 800; }
.compare-state-note { margin: 0 0 14px; color: var(--muted); font-size: .75rem; }
.compare-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.compare-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 850; cursor: pointer; }
.compare-actions button:hover { background: var(--green-pale); border-color: var(--green); }
.compare-actions a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-deep); font-size: .8rem; text-underline-offset: 3px; }

.detail-dialog::backdrop { background: rgb(43 58 31 / 58%); backdrop-filter: blur(5px); }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-bar h2 { margin-top: 2px; font-size: 1.4rem; line-height: 1.1; }
.detail-app { color: var(--muted); font-size: .73rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: var(--paper); cursor: pointer; }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); min-height: 0; flex: 1; overflow: auto; }
.detail-visual { display: grid; place-items: center; align-self: start; min-height: 0; padding: 24px; background: #e8e4d7; }
.detail-visual img { display: block; max-width: 100%; max-height: calc(100dvh - 230px); object-fit: contain; box-shadow: 0 14px 44px rgb(43 58 31 / 20%); }
.detail-visual .missing-visual { width: min(440px, 100%); height: auto; min-height: 280px; border-radius: 14px; }
.detail-meta { padding: 26px 22px 34px; border-left: 1px solid var(--line); }
.detail-meta dl { display: grid; grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr); gap: 13px 16px; margin: 0; }
.detail-meta dt { color: var(--muted); font-size: .77rem; font-weight: 850; }
.detail-meta dd { margin: 0; overflow-wrap: anywhere; font-size: .88rem; font-weight: 800; }
.detail-context { margin-top: 26px; }
.detail-summary { font-size: 1.05rem; font-weight: 850; line-height: 1.35; }
.context-block { margin-top: 18px; }
.context-block h3, .variant-block h3 { margin: 0 0 5px; color: var(--ink-soft); font-size: .7rem; font-weight: 950; letter-spacing: .065em; text-transform: uppercase; }
.context-block p { color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.context-block ul { margin: 5px 0 0; padding-left: 19px; color: var(--ink-soft); font-size: .84rem; line-height: 1.5; }
.context-block li + li { margin-top: 3px; }
.detail-variants { margin-top: 26px; border-top: 1px solid var(--line); }
.variant-block { margin-top: 20px; }
.variant-list { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-list button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font-size: .72rem; font-weight: 850; cursor: pointer; }
.variant-list button:hover { border-color: var(--green); background: var(--green-pale); }
.variant-list button span { color: var(--green); }
.detail-capture { margin-top: 14px; overflow-wrap: anywhere; color: var(--muted); font: 600 .72rem/1.5 ui-monospace, "Cascadia Mono", monospace; }
.source-copy { margin-top: 28px; padding-top: 21px; border-top: 1px solid var(--line); }
.source-copy > span { display: block; color: var(--muted); font-size: .76rem; font-weight: 850; }
.source-copy code { display: block; margin-top: 8px; overflow-wrap: anywhere; color: var(--ink-soft); font: 600 .75rem/1.55 ui-monospace, "Cascadia Mono", monospace; }
.source-copy button { margin-top: 13px; padding: 8px 11px; border: 0; border-radius: 8px; background: var(--green-pale); color: var(--green-deep); font-weight: 900; cursor: pointer; }
.detail-note { margin-top: 22px; color: var(--muted); font-size: .78rem; }

.toast {
  position: fixed;
  z-index: 30;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(560px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 32px;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 800;
  overflow-wrap: anywhere;
  box-shadow: 0 4px 10px rgb(0 0 0 / 18%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.toast svg { width: 0.9375rem; height: 0.9375rem; flex: none; }
.toast.is-visible { opacity: 1; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}

@media (max-width: 900px) {
  .topbar { position: relative; align-items: flex-start; }
  .brand-lockup p { display: none; }
  .atlas-summary { flex-wrap: wrap; justify-content: flex-end; }
  .atlas-shell { display: block; }
  .filters { position: relative; top: auto; height: auto; padding: 18px 20px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .app-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .coverage-note { display: none; }
  .clear-button { margin-top: 15px; }
  .results { padding-top: 28px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 78px; padding: 14px 18px; }
  .brand-mark { width: 42px; height: 42px; }
  .atlas-summary span { display: none; }
  .atlas-summary span:first-child { display: flex; }
  .app-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select-grid { grid-template-columns: 1fr; }
  .results { padding: 25px 16px 70px; }
  .results-head { align-items: flex-start; }
  .view-controls { display: none; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .item-copy { padding: 10px; }
  .detail-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; border-radius: 0; }
  .dialog-body { display: block; }
  .detail-toolbar { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 14px 12px; }
  .detail-platforms { flex: auto; }
  .platform-tab { min-height: 52px; padding: 7px 10px; }
  .detail-modes { align-self: flex-start; }
  .detail-comparison { padding: 16px; }
  .compare-grid { grid-template-columns: repeat(var(--compare-columns), minmax(270px, 1fr)); gap: 16px; }
  .detail-visual { min-height: 48vh; padding: 14px; }
  .detail-visual img { max-height: 60vh; }
  .detail-meta { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}
