/* どうぶつ図鑑 試作版 — 編集しやすい独立スタイル */
:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffefb;
  --green: #294c41;
  --green-deep: #1c382f;
  --green-soft: #e0e9dd;
  --yellow: #e8b86a;
  --coral: #efa99a;
  --ink: #28312c;
  --muted: #5d6c65;
  --line: #dce1d7;
  --shadow: 0 12px 38px rgba(33, 59, 44, .07);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.75; }
button, input, select { font: inherit; }
a { color: var(--green); }
a:hover { text-decoration-thickness: 2px; }
button { cursor: pointer; }
img { max-width: 100%; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid #cf8d35; outline-offset: 3px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(247,245,239,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1200px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; gap: 26px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; text-decoration: none; color: var(--green); font-size: 20px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.brand-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--green); color: white; font-size: 22px; }
.header-search { display: flex; align-items: center; flex: 1; max-width: 445px; min-width: 140px; position: relative; }
.header-search svg { position: absolute; left: 17px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.header-search input { width: 100%; min-width: 0; background: white; padding: 11px 10px 11px 47px; min-height: 46px; border: 1px solid #bdcac1; border-radius: 26px; color: var(--ink); }
.header-search input::placeholder { color: #64756c; }
.header-search-submit { flex: none; min-height: 44px; margin-left: 4px; padding: 3px 8px; border: 0; border-radius: 12px; color: var(--green); background: transparent; font-size: 13px; font-weight: 800; }
.header-search-submit:hover { background: var(--green-soft); }
.main-nav { display: flex; gap: 14px; margin-left: auto; align-items: center; }
.main-nav a { font-size: 14px; font-weight: 800; text-decoration: none; border-radius: 10px; padding: 10px 8px; white-space: nowrap; }
.main-nav a:hover { background: var(--green-soft); }
.header-stamp-link {
  display: inline-flex; align-items: center; flex: none; gap: 7px; min-height: 44px; padding: 5px 11px;
  border: 1px solid #bccfbe; border-radius: 999px; background: var(--surface); color: var(--green-deep);
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.header-stamp-link strong { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; background: var(--green-soft); }
.header-stamp-link:hover { background: var(--green-soft); }
.ruby-toggle {
  flex: none; min-height: 44px; padding: 6px 14px; border: 1px solid #b5c6ba; border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap;
}
.ruby-toggle[aria-pressed="true"] { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
.ruby-toggle:hover { background: #d5e2d1; }
.main-container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 80px; min-height: calc(100dvh - 155px); outline: none; }
.site-footer { border-top: 1px solid var(--line); background: #edf0e8; }
.footer-inner { width: min(1200px, calc(100% - 40px)); margin: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0; color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner a { font-weight: 700; }
.pill-link, .primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 21px; color: #fff; text-decoration: none; border-radius: 999px; font-weight: 800; background: var(--green); border: 2px solid var(--green); line-height: 1.3; }
.pill-link:hover, .primary-link:hover { background: var(--green-deep); color: #fff; }
.secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: white; border: 1px solid #b5c6ba; border-radius: 999px; padding: 8px 16px; color: var(--green); text-decoration: none; font-weight: 800; }
.secondary-link:hover { background: var(--green-soft); }
.section-subtitle { color: var(--muted); margin: 4px 0 16px; font-size: 14px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.filter-chip, .metric-tab { border-radius: 999px; border: 1px solid #bdcfc1; background: #fff; color: var(--green); min-height: 44px; font-size: 14px; font-weight: 800; padding: 8px 17px; }
.filter-chip[aria-pressed="true"], .metric-tab[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.animals-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 17px; }
.animal-card { display: block; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e1e4db; border-radius: 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.animal-card:hover { border-color: #9eb2a5; box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; display: block; background: #e8ece6; }
.card-info { padding: 12px 14px 14px; }
.animal-icon { display: block; width: var(--icon-size, 32px); height: var(--icon-size, 32px); flex: none; object-fit: contain; }
.animal-name { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.card-name { font-size: 17px; font-weight: 900; line-height: 1.4; color: var(--ink); }
.card-meta { color: var(--muted); font-size: 12px; line-height: 1.5; display: block; margin-top: 5px; }
.card-sound { display: block; margin-top: 4px; color: var(--green); font-size: 12px; }
.seen-mark { display: inline-block; margin-top: 8px; color: #1f6a51; font-size: 12px; font-weight: 800; }
.seen-mark[hidden] { display: none; }
.empty-results { padding: 35px 20px; border: 1px dashed #aac5b4; border-radius: 16px; background: #fff; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.breadcrumb a { text-decoration: none; font-weight: 800; }
.detail-header h1, .compare-header h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.35; color: var(--green-deep); margin: 0 0 3px; }
.detail-header h1 { --icon-size: clamp(40px, 6vw, 64px); gap: 12px; }
.scientific { color: var(--muted); margin: 0 0 12px; font-style: italic; font-size: 14px; }
.detail-intro { max-width: 60em; font-size: 18px; margin: 0 0 22px; }
.gallery { min-width: 0; }
.main-photo { margin: 0; position: relative; background: #e1e8e0; border-radius: 18px; overflow: hidden; }
.main-photo > img { width: 100%; height: clamp(260px, 38vw, 480px); display: block; object-fit: contain; }
.photo-zoom { --action-icon-size: 22px; position: absolute; bottom: 12px; right: 12px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; min-height: 44px; color: var(--green); border-radius: 12px; font-size: 13px; font-weight: 900; border: 1px solid var(--line); background: rgba(255,255,255,.94); }
.action-icon { display: block; width: var(--action-icon-size, 28px); height: var(--action-icon-size, 28px); flex: none; object-fit: contain; }
.photo-attribution { color: var(--muted); font-size: 12px; margin-top: 7px; line-height: 1.6; }
.photo-attribution a { text-decoration: underline; }
.thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbnail { padding: 0; display: block; border: 3px solid transparent; background: #eee; border-radius: 10px; overflow: hidden; min-width: 60px; }
.thumbnail[aria-pressed="true"] { border-color: var(--green); }
.thumbnail img { display: block; width: 88px; height: 65px; object-fit: cover; }
.fact-table { margin: 0; display: grid; grid-template-columns: 1fr; gap: 9px; }
.fact-item { --fact-icon-size: 32px; background: #fff; border-radius: 14px; padding: 11px 15px; display: grid; grid-template-columns: 132px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line); }
.fact-item dt { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: var(--fact-icon-size); color: #496456; font-size: 13px; font-weight: 900; }
.fact-item dd { margin: 0; font-weight: 800; }
.fact-icons { display: flex; flex: none; gap: 3px; }
.fact-icons img { display: block; width: var(--fact-icon-size); height: var(--fact-icon-size); object-fit: contain; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.prose-card { background: #fff; padding: 22px 24px; border-radius: 17px; border: 1px solid var(--line); }
.prose-card p:last-child { margin: 0; }
.credits { margin-top: 32px; color: var(--muted); font-size: 12px; }
.credits summary { color: var(--green); font-size: 14px; font-weight: 800; padding: 12px 2px; cursor: pointer; }
.credits ol { margin: 8px 0; padding-left: 24px; }
.credits li { margin: 7px 0; }
.compare-header p { max-width: 67ch; color: var(--muted); }
.compare-workbench { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3.5vw, 30px); }
.metric-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.compare-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 14px 0 18px; }
.compare-controls label { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.compare-controls select { display: block; width: 100%; border-radius: 11px; min-height: 48px; background: #f8faf6; border: 1px solid #b9c8ba; padding: 8px 13px; margin-top: 6px; color: var(--ink); }
.compare-ref-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.compare-ref-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.compare-ref-btn { min-height: 38px; padding: 6px 13px; border: 1px solid #bdcfc1; border-radius: 999px; background: #fff; color: var(--green); font-size: 13px; font-weight: 800; }
.compare-ref-btn[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.compare-visual { background: #f2f4ed; border-radius: 16px; padding: clamp(12px, 3vw, 22px); }
.vertical-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vertical-visual.has-ref { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.height-stage { display: flex; align-items: end; justify-content: center; height: clamp(138px, 35vw, 240px); border-bottom: 2px solid #a4b5a5; }
.height-figure { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr) 9px; gap: clamp(3px, 1.5vw, 14px); width: min(90%, 280px); }
.height-figure .animal-icon, .height-figure .compare-ref-svg { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.height-mark { border: solid #4a8068; border-width: 2px 2px 0 0; }
.height-column:nth-child(2) .height-mark { border-color: #a66129; }
.height-column.is-ref .height-mark { border-color: #5b6d82; }
.compare-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; color: var(--green-deep); font-size: 14px; line-height: 1.4; }
.compare-caption span { font-size: clamp(14px, 2vw, 18px); font-weight: 900; font-variant-numeric: tabular-nums; }
.height-column .compare-caption { display: grid; justify-content: center; gap: 2px; padding: 9px 4px 0; text-align: center; }
.horizontal-visual { display: grid; gap: 14px; }
.horizontal-row { display: flex; align-items: center; gap: clamp(8px, 2vw, 20px); }
.horizontal-row .animal-icon, .compare-ref-icon-box { width: clamp(48px, 14vw, 110px); height: clamp(50px, 10vw, 74px); flex: none; display: flex; align-items: center; justify-content: center; }
.compare-ref-row-icon { max-width: 100%; max-height: 100%; object-fit: contain; }
.horizontal-data { flex: 1; min-width: 0; }
.horizontal-track { height: 14px; margin-top: 6px; background: #e4e9df; border-radius: 6px; overflow: hidden; }
.horizontal-fill { background: #4a8068; height: 100%; border-radius: 6px; }
.horizontal-row:nth-child(2) .horizontal-fill { background: #a66129; }
.horizontal-row.is-ref .horizontal-fill { background: #5b6d82; }

/* 走る速さ比較 */
.speed-controls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.speed-status { margin: 0; font-size: 14px; font-weight: 800; color: var(--green-deep); }
.speed-track { display: grid; gap: 12px; }
.speed-lane { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; }
.speed-lane-label { display: grid; gap: 1px; font-size: 13px; line-height: 1.3; }
.speed-lane-label strong { color: var(--green-deep); }
.speed-lane-label span { color: var(--muted); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.speed-lane-course {
  position: relative;
  height: 46px;
  border-radius: 12px;
  background: #e3e8de;
  border: 1px solid #cbd6c8;
  overflow: visible;
}
.speed-lane-distance { position: absolute; inset: 0 22px; }
.speed-lane-fill {
  position: relative;
  height: 100%;
  border-radius: 11px 0 0 11px;
  background: rgba(74, 128, 104, .28);
}
.speed-lane-fill.is-second { background: rgba(166, 97, 41, .28); }
.speed-lane-fill.is-ref { background: rgba(91, 109, 130, .24); }
.speed-runner {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.speed-runner .animal-icon, .speed-runner .speed-ref-svg { width: 40px; height: 40px; object-fit: contain; }
.speed-ref-emoji, .compare-ref-fallback { font-size: 26px; line-height: 1; }

/* 睡眠時間24時間タイムライン */
.sleep-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.sleep-timeline-list { display: grid; gap: 14px; }
.sleep-row { display: grid; gap: 5px; }
.sleep-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 14px; }
.sleep-row-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-deep); }
.sleep-row-name .animal-icon { --icon-size: 28px; }
.sleep-row-head strong { color: var(--green-deep); font-size: 13px; }
.sleep-bar {
  display: flex;
  height: 30px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #c2cec0;
  font-size: 11px;
  font-weight: 800;
}
.sleep-seg-asleep {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334e68;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 4px;
}
.sleep-row.is-ref .sleep-seg-asleep { background: #5a6d82; }
.sleep-seg-awake {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdf2cf;
  color: #6b5320;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 4px;
}

/* 重さ自動換算 */
.weight-convert {
  margin: 5px 0 0;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #fff8e2;
  border: 1px solid #e2c57e;
  color: #6a4c11;
  font-size: 12px;
  font-weight: 800;
}

.chart-note { font-size: 13px; color: var(--muted); margin: 13px 0 0; }
.chart-all { margin-top: 34px; }
.chart-all h2 { font-size: 23px; color: var(--green-deep); margin: 0 0 12px; }
.chart-group { margin-top: 20px; }
.chart-group h3 { margin: 0 0 6px; font-size: 15px; color: var(--green-deep); }
.chart-row { display: grid; grid-template-columns: minmax(110px,190px) minmax(0,1fr) 160px; gap: 13px; align-items: center; min-height: 44px; font-size: 13px; }
.chart-row.chart-row-weight { grid-template-columns: minmax(110px,180px) minmax(0,1fr) minmax(170px, auto); }
.chart-row-values { grid-template-columns: minmax(0,1fr) auto; }
.chart-row a { --icon-size: 28px; gap: 6px; text-decoration: none; font-weight: 700; }
.chart-bar-bg { height: 18px; background: #e8efe7; border-radius: 4px; overflow: hidden; }
.chart-bar-fg { display: block; height: 100%; background: #4c816c; min-width: 3px; }
.chart-bar-fg.chart-bar-sleep { background: #334e68; }
.chart-row.human .chart-bar-fg { background: var(--coral); }
.chart-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.detail-visit-stamp[data-rank="bronze"] { background: #f8ece3; border-color: #a86434; color: #7c4218; }
.detail-visit-stamp[data-rank="silver"] { background: #eef2f5; border-color: #5d6e7a; color: #394854; }
.detail-visit-stamp[data-rank="gold"] { background: #fff4d1; border-color: #c58a17; color: #7e5200; }
.photo-dialog { border: 0; border-radius: 18px; background: #fbfbf7; padding: clamp(10px, 2vw, 16px); width: min(96vw, 1050px); max-height: 95dvh; color: var(--ink); }
.photo-dialog::backdrop { background: rgba(15,32,25,.85); }
.dialog-header, .dialog-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-header { margin-bottom: 8px; }
.dialog-navigation { margin-top: 8px; }
.dialog-viewport { max-height: 65dvh; overflow: auto; overscroll-behavior: contain; background: #edf0e8; border-radius: 8px; }
.dialog-viewport:not(.is-zoomed) { touch-action: pan-y pinch-zoom; }
.dialog-viewport img { display: block; width: auto; max-width: 100%; max-height: 65dvh; object-fit: contain; margin: auto; }
.dialog-viewport.is-zoomed img { max-width: none; max-height: none; margin: 0; }
.dialog-viewport:focus-visible { outline: 3px solid #cf8d35; outline-offset: 2px; }
.dialog-position { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.photo-dialog p { margin: 8px 2px 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.dialog-photo-note { display: block; margin-bottom: 4px; color: var(--green-deep); font-size: 14px; }
.photo-dialog button { min-width: 44px; min-height: 44px; padding: 4px 9px; border: 1px solid var(--line); background: white; color: var(--green); border-radius: 12px; font-size: 13px; font-weight: 800; }
.photo-dialog button[aria-disabled="true"] { opacity: .55; cursor: default; }
.photo-dialog .dialog-close, .dialog-zoom[aria-pressed="true"] { background: var(--green); color: white; }
.photo-feedback:not([hidden]) { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 140px; padding: 12px; text-align: center; color: var(--green-deep); }
.photo-feedback p { margin: 0; font-size: 14px; }
.photo-feedback button[hidden] { display: none; }
.main-photo .photo-feedback { position: absolute; inset: 0; }
.main-photo:is([data-photo-state="loading"], [data-photo-state="error"]) > img { visibility: hidden; }
.dialog-viewport:not([data-photo-state="ready"]) > img { display: none; }
:is(.photo-zoom, .dialog-zoom, [data-photo-retry]):disabled { opacity: .55; cursor: default; }
html[data-ruby="on"] body { line-height: 1.9; }
ruby { ruby-position: over; ruby-align: center; }
ruby rt { font-size: .55em; color: var(--muted); font-weight: 500; line-height: 1; }
:is(.pill-link, .primary-link, .metric-tab[aria-pressed="true"], .compare-ref-btn[aria-pressed="true"], .sleep-seg-asleep) ruby rt { color: rgba(255, 255, 255, .88); }
html[data-ruby="off"] rt { display: none; }
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; gap: 10px 14px; padding: 10px 0; min-height: 0; }
  .header-search { order: 3; flex: 1 0 100%; max-width: none; }
}
@media (max-width: 950px) {
  .header-inner { gap: 10px 12px; }
  .main-nav { gap: 4px; }
  .animals-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fact-table { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact-item { display: block; }
}
@media (max-width: 820px) {
  .header-inner { width: calc(100% - 26px); padding: 9px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .brand { font-size: 18px; }
  .header-stamp-link { grid-column: 2; grid-row: 1; justify-self: end; }
  .brand-icon { width: 34px; height: 34px; font-size: 19px; border-radius: 11px; }
  .main-nav { justify-self: start; grid-column: 1; grid-row: 3; margin: 0; flex-wrap: wrap; gap: 2px; }
  html { scroll-padding-top: 174px; }
  .main-nav a { padding: 7px; font-size: 13px; }
  .ruby-toggle { grid-column: 2; grid-row: 3; justify-self: end; min-height: 40px; padding: 5px 12px; font-size: 12px; }
  .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .header-search input { min-height: 44px; padding-left: 34px; }
  .header-search svg { left: 11px; width: 16px; }
}
@media (max-width: 700px) {
  .main-container { width: calc(100% - 28px); padding-top: 16px; padding-bottom: 55px; }
  .animals-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .card-info { padding: 10px 11px; }
  .card-name { --icon-size: 25px; gap: 5px; font-size: 15px; }
  .card-meta { font-size: 12px; }
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact-table { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fact-item { padding: 10px 12px; }
  .main-photo > img { height: 300px; }
  .thumbnail img { width: 73px; height: 59px; }
  .detail-intro { font-size: 16px; }
  .chart-row, .chart-row.chart-row-weight { grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; margin-bottom: 9px; min-height: 0; font-size: 12px; }
  .chart-row .chart-bar-bg { grid-column: 1 / -1; grid-row: 2; }
  .speed-lane { grid-template-columns: 1fr; gap: 4px; }
  .speed-lane-label { display: flex; justify-content: space-between; align-items: baseline; }
  .vertical-visual.has-ref .compare-caption { font-size: 12px; }
  .vertical-visual.has-ref .compare-caption span { font-size: 12px; }
  .chart-note { font-size: 12px; }
  .footer-inner { width: calc(100% - 28px); }
}
@media (max-width: 410px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav a { font-size: 12px; }
  .fact-table { grid-template-columns: 1fr 1fr; }
  .fact-item { --fact-icon-size: clamp(26px, 8vw, 32px); }
  .compare-controls { grid-template-columns: 1fr; gap: 10px; }
  .compare-caption { font-size: 12px; }
  .main-photo > img { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
