:root {
  --canvas: #faf9f5;
  --surface: #f5f4ed;
  --surface-strong: #e8e6dc;
  --ink: #141413;
  --ink-hover: #30302e;
  --muted: #5e5d59;
  --subtle: #87867f;
  --hairline: #dedcd1;
  --sage: #2e6b4f;
  --sage-bg: #eaf3ee;
  --terracotta: #c96442;
  --terracotta-ink: #a84929;
  --terracotta-bg: #fbf0eb;
  --error: #b83a2d;
  --error-bg: #fbeee9;

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  background: var(--canvas);
  color: var(--muted);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

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

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tabular,
.num-input,
.stepper-val,
.dim-caption,
.num-cell {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* 1. Quiet Ivory Header (56px) */
.site-header {
  background: var(--canvas);
  border-bottom: 1px solid rgba(222, 220, 209, 0.65);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 8px 6px 0;
  border-radius: var(--radius-sm);
}

.brand:hover {
  color: var(--sage);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.brand-mark svg {
  transition: transform 0.36s cubic-bezier(0.22, 1.28, 0.36, 1);
}

.brand:hover .brand-mark svg {
  transform: translateY(-1px) scale(1.06);
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
}

.unit-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.unit-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.18s ease, transform 0.12s ease;
}

.unit-btn:active {
  transform: scale(0.95);
}

.unit-btn:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.unit-btn.active {
  background: var(--ink);
  color: var(--canvas);
}

.unit-btn.active:hover {
  background: var(--ink-hover);
}

.unit-toggle.has-thumb .unit-btn.active,
.unit-toggle.has-thumb .unit-btn.active:hover,
.unit-toggle.has-thumb .unit-btn:hover {
  background: transparent;
}

.unit-toggle.has-thumb .unit-btn.active {
  color: var(--canvas);
}

/* 2. Editorial Hero + Oat Workspace */
.hero-section {
  background: var(--canvas);
  padding: 40px 0 28px;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 28px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-sub {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

/* Oat Operation Workspace (No border cages) */
.oat-workspace {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 26px 30px 22px;
}

.workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.mode-pills {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--surface-strong);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  max-width: 100%;
}

.mode-pill {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.18s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.mode-pill:active {
  transform: scale(0.97);
}

.mode-pill:hover {
  color: var(--ink);
  background: rgba(250, 249, 245, 0.55);
}

.mode-pill.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.06);
}

.mode-pills.has-thumb .mode-pill.active,
.mode-pills.has-thumb .mode-pill:hover {
  background: transparent;
  box-shadow: none;
}

.measure-link-btn,
.quiet-link-btn,
.quiet-action-btn {
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: color 0.15s ease, background-color 0.15s ease, text-decoration-color 0.15s ease;
}

.measure-link-btn:hover,
.quiet-link-btn:hover,
.quiet-action-btn:hover {
  color: var(--ink);
  background: var(--surface-strong);
  text-decoration-color: var(--ink);
}

.measure-link-btn[aria-expanded="true"],
.quiet-action-btn[aria-expanded="true"] {
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* Check a specific model controls */
.check-model-controls {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-model-controls[hidden] {
  display: none;
}

.popular-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.popular-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.popular-pill {
  border: none;
  background: var(--canvas);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.popular-pill:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.popular-pill.active {
  background: var(--ink);
  color: var(--canvas);
}

.popular-pill.active:hover {
  background: var(--ink-hover);
}

.model-picker-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 12px;
  align-items: center;
}

.soft-input,
.soft-select {
  width: 100%;
  border: none;
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.soft-input:hover,
.soft-select:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.soft-input:focus,
.soft-select:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--sage);
  outline: none;
}

.soft-input::placeholder {
  color: var(--subtle);
}

.req-opening-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.req-opening-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* 3 Core Controls */
.controls-grid {
  display: grid;
  grid-template-columns: minmax(275px, 1.35fr) 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.control-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.style-pills {
  position: relative;
  display: grid;
  grid-template-columns: 1.28fr 0.78fr 0.98fr;
  gap: 4px;
  background: var(--surface-strong);
  padding: 4px;
  border-radius: var(--radius-md);
}

.style-pill {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transition: background-color 0.15s ease, color 0.18s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.style-pill:active {
  transform: scale(0.96);
}

.style-pill:hover {
  color: var(--ink);
  background: rgba(250, 249, 245, 0.65);
}

.style-pill.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.06);
}

.style-pills.has-thumb .style-pill.active,
.style-pills.has-thumb .style-pill:hover {
  background: transparent;
  box-shadow: none;
}

/* Sliding spring indicator that lags slightly behind click and settles smoothly */
.seg-thumb {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.09), 0 1px 1px rgba(20, 20, 19, 0.04);
  pointer-events: none;
  opacity: 0;
  will-change: transform, width;
  transition:
    transform 0.42s cubic-bezier(0.22, 1.18, 0.36, 1) 0.03s,
    width 0.38s cubic-bezier(0.22, 1.18, 0.36, 1) 0.03s,
    height 0.25s ease,
    opacity 0.15s ease;
}

.mode-pills .seg-thumb,
.unit-toggle .seg-thumb {
  border-radius: var(--radius-pill);
}

.unit-toggle .seg-thumb {
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 20, 19, 0.14);
}

.seg-thumb.is-ready {
  opacity: 1;
}

.seg-thumb.is-instant {
  transition: none !important;
}

.dim-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dim-caption {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-stepper {
  display: none;
}

.desktop-slider-pair {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.num-unit-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.num-input {
  width: 100%;
  border: none;
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: 9px 28px 9px 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.num-input:hover {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.num-input:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px var(--sage);
  outline: none;
}

.num-unit-suffix {
  position: absolute;
  right: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
  pointer-events: none;
}

.range-input {
  width: 100%;
  margin: 0;
  height: 6px;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Inline Measurement Guide */
.inline-measure-guide {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.inline-measure-guide[hidden] {
  display: none;
}

.measure-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.measure-guide-head strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}

.measure-guide-body {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.measure-svg-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--canvas);
}

.measure-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.measure-steps-mini {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.measure-steps-mini strong {
  color: var(--ink);
  font-weight: 600;
}

/* Quiet Preset Links */
.preset-row {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(222, 220, 209, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.preset-label {
  color: var(--subtle);
  margin-right: 4px;
}

.preset-dot {
  color: var(--subtle);
}

.preset-link {
  border: none;
  background: transparent;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.preset-link:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.preset-link.active {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 4px;
}

/* 3. Main Paper Workbench */
.main-paper {
  background: var(--canvas);
}

.workbench-wrap {
  padding-top: 16px;
  padding-bottom: 44px;
}

/* Warm Advisory Callout */
.advisory-callout {
  background: var(--terracotta-bg);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.advisory-callout[hidden] {
  display: none;
}

.advisory-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}

.advisory-body {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.advisory-body strong {
  color: var(--ink);
}

.advisory-actions {
  margin-top: 12px;
}

.advisory-btn {
  border: none;
  background: var(--canvas);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.advisory-btn:hover {
  background: var(--ink);
  color: var(--canvas);
}

/* Editorial Results Header */
.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}

.results-heading-group {
  min-width: 0;
}

.results-headline {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 31px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--ink);
}

.results-subline {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}

.results-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.action-sep {
  color: var(--subtle);
}

.quiet-action-btn.is-copied {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

/* Oat Filters Drawer */
.filters-oat-panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-top: 16px;
}

.filters-oat-panel[hidden] {
  display: none;
}

.filters-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.3fr 1fr;
  gap: 20px;
  align-items: start;
}

.filter-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.btu-rec-note {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sage);
}

.room-inputs {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 8px;
}

.sqft-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.soft-num {
  padding-right: 42px;
}

.sqft-suffix {
  position: absolute;
  right: 10px;
  font-size: 12px;
  color: var(--subtle);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  border: none;
  background: var(--canvas);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: var(--canvas);
}

.filter-pill.active:hover {
  background: var(--ink-hover);
}

.sort-reset-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Split Layout (Desktop >= 960px) */
.workspace-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}

.workspace-split[hidden] {
  display: none;
}

.results-column {
  min-width: 0;
}

/* Editorial Model List (No grid cages, no stacked badges) */
.model-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.model-item {
  position: relative;
  padding: 22px 16px 22px 18px;
  margin: 0 -16px;
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.model-item:hover {
  background: rgba(245, 244, 237, 0.72);
}

.model-item.selected {
  background: var(--surface);
}

.model-item.selected::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--sage);
}

.model-item.incompat-item.selected::before {
  background: var(--error);
}

/* Single Quiet Eyebrow (Max 1 per model) */
.item-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow-sage {
  color: var(--sage);
}

.eyebrow-terracotta {
  color: var(--terracotta-ink);
}

.eyebrow-error {
  color: var(--error);
}

.item-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 6px;
}

.item-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.item-code {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--subtle);
}

.item-summary-line {
  margin: 0 0 13px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

.item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.item-diagram-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sage);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.item-diagram-btn:hover {
  background: var(--sage-bg);
  color: var(--ink);
}

.incompat-item .item-diagram-btn {
  color: var(--error);
}

.incompat-item .item-diagram-btn:hover {
  background: var(--error-bg);
  color: var(--ink);
}

.compare-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.compare-check-wrap:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.compare-check-wrap.is-checked {
  background: var(--sage-bg);
  color: var(--sage);
}

.compare-check-wrap.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.compare-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--sage);
  cursor: inherit;
}

.item-specs-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.item-specs-link:hover {
  color: var(--ink);
  background: var(--surface-strong);
}

.btn-charcoal,
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-charcoal:hover,
.btn-amazon:hover {
  background: var(--ink-hover);
  color: var(--canvas);
}

.btn-charcoal-lg {
  padding: 10px 20px;
  font-size: 14px;
}

.btn-soft-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--surface-strong);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-soft-outline:hover {
  background: var(--hairline);
  color: var(--ink);
}

/* Mobile inline diagram (revealed inside list item on < 960px) */
.mobile-inline-diagram {
  margin-top: 16px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius-md);
}

.mobile-diagram-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-diagram-head strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

/* Empty Results */
.empty-results {
  padding: 36px 24px;
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.empty-results h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.empty-results p {
  margin: 0;
  color: var(--muted);
}

/* Incompatible Accordion */
.incompatible-section {
  margin-top: 24px;
}

.toggle-incompat-btn {
  border: none;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.toggle-incompat-btn:hover {
  background: var(--surface-strong);
}

.incompat-list-wrap {
  margin-top: 12px;
}

.incompat-list-wrap[hidden] {
  display: none;
}

/* Right Sticky Window Illustration Column (Desktop) */
.diagram-column {
  position: sticky;
  top: 76px;
}

.diagram-oat-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.diagram-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.diagram-eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--subtle);
  margin-bottom: 2px;
}

.diagram-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.22;
  color: var(--ink);
}

.diagram-status-text {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.diagram-status-text.status-fit {
  background: var(--sage-bg);
  color: var(--sage);
}

.diagram-status-text.status-warn {
  background: var(--terracotta-bg);
  color: var(--terracotta-ink);
}

.diagram-status-text.status-ng {
  background: var(--error-bg);
  color: var(--error);
}

.svg-stage {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.svg-stage svg {
  display: block;
  width: 100%;
  height: auto;
}

.diagram-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.metric-item {
  min-width: 0;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: var(--subtle);
  margin-bottom: 2px;
}

.metric-val {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.metric-val.val-fit {
  color: var(--sage);
}

.metric-val.val-ng {
  color: var(--error);
}

.diagram-note-line {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.diagram-note-line.is-ng {
  color: var(--error);
}

.diagram-recall-line {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--terracotta-bg);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.diagram-recall-line strong {
  color: var(--terracotta-ink);
}

.diagram-recall-line[hidden] {
  display: none;
}

.diagram-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.diagram-price-line {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--subtle);
}

.specs-freshness-note {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--subtle);
}

/* 4. Check a Specific Model Verdict */
.check-verdict-section {
  margin-top: 22px;
}

.check-verdict-section[hidden] {
  display: none;
}

.verdict-sheet {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.verdict-sheet.is-ng {
  background: linear-gradient(180deg, var(--error-bg) 0%, var(--surface) 140px);
}

.verdict-sheet.is-caution {
  background: linear-gradient(180deg, var(--terracotta-bg) 0%, var(--surface) 140px);
}

.verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}

.verdict-kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.verdict-sheet.is-fit .verdict-kicker {
  color: var(--sage);
}

.verdict-sheet.is-caution .verdict-kicker {
  color: var(--terracotta-ink);
}

.verdict-sheet.is-ng .verdict-kicker {
  color: var(--error);
}

.verdict-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.verdict-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: start;
}

.verdict-model-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.verdict-model-meta {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}

.verdict-reasons {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--ink);
}

.verdict-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.verdict-fact-label {
  display: block;
  font-size: 12.5px;
  color: var(--subtle);
  margin-bottom: 2px;
}

.verdict-fact-val {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.closest-block {
  margin-top: 36px;
}

.closest-head {
  margin-bottom: 8px;
}

.closest-head h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.closest-head p {
  margin: 0;
  font-size: 14px;
  color: var(--subtle);
}

.closest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-footer-switch {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 5. Lower Editorial Sections (No bordered card boxes) */
.editorial-section {
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
}

.editorial-measure {
  background: var(--surface);
  border-top: none;
}

.editorial-head {
  max-width: 660px;
  margin-bottom: 28px;
}

.editorial-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.editorial-head p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.editorial-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.editorial-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.editorial-table th {
  padding: 12px 16px 12px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--subtle);
  border-bottom: 1px solid var(--hairline);
}

.editorial-table td {
  padding: 16px 16px 16px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
}

.editorial-table td strong {
  color: var(--ink);
  font-weight: 600;
}

.num-cell {
  white-space: nowrap;
  font-weight: 600;
  color: var(--ink);
}

.sub-cm {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--subtle);
  margin-top: 2px;
}

.steps-editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.step-col {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.step-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.step-col h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}

.step-col p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.step-col strong {
  color: var(--ink);
}

.faq-editorial-list {
  max-width: 820px;
  border-top: 1px solid var(--hairline);
}

.faq-row {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
}

.faq-row summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease;
}

.faq-row summary::-webkit-details-marker {
  display: none;
}

.faq-row summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  color: var(--subtle);
  flex-shrink: 0;
}

.faq-row[open] summary::after {
  content: "−";
}

.faq-row summary:hover {
  color: var(--sage);
}

.faq-row p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 720px;
}

.faq-row strong {
  color: var(--ink);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  background: var(--canvas);
}

body.has-compare-tray .site-footer {
  padding-bottom: 112px;
}

.footer-lead {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink);
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--subtle);
  max-width: 760px;
}

/* Sticky Bottom Compare Tray */
.compare-tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -6px 24px rgba(20, 20, 19, 0.08);
  padding: 12px 0;
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compare-tray-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.compare-tray-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.compare-tray-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tray-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--canvas);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.tray-chip-remove {
  border: none;
  background: transparent;
  padding: 0 3px;
  font-size: 16px;
  line-height: 1;
  color: var(--subtle);
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.tray-chip-remove:hover {
  color: var(--error);
  background: var(--error-bg);
}

.compare-tray-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Side-by-Side Comparison Modal */
.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.compare-modal[hidden] {
  display: none;
}

.compare-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 19, 0.42);
}

.compare-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 940px;
  max-height: 88vh;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 20, 19, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.compare-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--hairline);
}

.compare-modal-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}

.compare-modal-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--subtle);
}

.compare-modal-body {
  padding: 8px 26px 20px;
  overflow: auto;
}

.compare-matrix-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-matrix-table th,
.compare-matrix-table td {
  padding: 13px 14px 13px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

.compare-matrix-table thead th {
  font-weight: 600;
  color: var(--ink);
}

.compare-matrix-table tbody th {
  width: 160px;
  font-weight: 500;
  color: var(--subtle);
}

.compare-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.compare-col-sub {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--subtle);
  margin-top: 2px;
}

.compare-modal-foot {
  padding: 14px 26px;
  background: var(--surface);
  font-size: 13px;
  color: var(--subtle);
}

.status-text-fit {
  color: var(--sage);
  font-weight: 600;
}

.status-text-warn {
  color: var(--terracotta-ink);
  font-weight: 600;
}

.status-text-ng {
  color: var(--error);
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 959px) {
  .controls-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workspace-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .diagram-column {
    display: none;
  }

  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verdict-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-editorial {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .controls-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .model-picker-grid {
    grid-template-columns: 1fr;
  }

  .measure-guide-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 639px) {
  .container {
    padding: 0 18px;
  }

  .hero-section {
    padding: 24px 0 20px;
  }

  .hero-copy {
    margin-bottom: 20px;
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .oat-workspace {
    padding: 20px 18px 18px;
  }

  .workspace-top {
    margin-bottom: 18px;
  }

  .mode-pills {
    width: 100%;
    display: grid;
    grid-template-columns: 0.9fr 1.15fr;
  }

  .mode-pill {
    padding: 8px 8px;
    font-size: 12.5px;
    text-align: center;
  }

  .style-pills {
    grid-template-columns: 1.25fr 0.82fr 1fr;
    gap: 4px;
  }

  .style-pill {
    padding: 8px 4px;
    font-size: 12.5px;
    text-overflow: clip;
  }

  .desktop-slider-pair {
    display: none;
  }

  .dim-caption {
    display: none;
  }

  .mobile-stepper {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
  }

  .stepper-btn {
    border: none;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--ink);
    font-size: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
  }

  .stepper-btn:hover {
    background: var(--surface-strong);
  }

  .stepper-btn:active {
    background: var(--hairline);
  }

  .stepper-val {
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .model-item {
    padding: 20px 12px 20px 14px;
    margin: 0 -12px;
  }

  .verdict-sheet {
    padding: 22px 18px;
  }

  .verdict-facts {
    grid-template-columns: 1fr;
  }

  .compare-modal {
    padding: 10px;
  }

  .compare-modal-head,
  .compare-modal-body,
  .compare-modal-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Tactile micro-interactions & playful living details */
.popular-pill,
.filter-pill,
.stepper-btn {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.14s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.popular-pill:active,
.filter-pill:active,
.stepper-btn:active {
  transform: scale(0.95);
}

.ac-breeze-line {
  stroke-dasharray: 16 14;
  stroke-dashoffset: 0;
  animation: breezeFlow 2.6s linear infinite;
}

.ac-breeze-line.breeze-2 {
  animation-delay: -0.9s;
}

.ac-breeze-line.breeze-3 {
  animation-delay: -1.7s;
}

.ac-unit-bump {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bumpReject 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) 1;
}

.results-headline.is-popping {
  animation: resultPop 0.28s cubic-bezier(0.22, 1.25, 0.36, 1);
}

@keyframes breezeFlow {
  0% {
    stroke-dashoffset: 30;
    opacity: 0.15;
  }
  45% {
    opacity: 0.72;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0.15;
  }
}

@keyframes bumpReject {
  0% { transform: translateX(0); }
  22% { transform: translateX(-4px) rotate(-0.6deg); }
  48% { transform: translateX(4px) rotate(0.6deg); }
  74% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@keyframes resultPop {
  0% { transform: translateY(2px); opacity: 0.75; }
  100% { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .seg-thumb,
  .brand-mark svg,
  .mode-pill,
  .style-pill,
  .unit-btn,
  .popular-pill,
  .filter-pill,
  .stepper-btn {
    transition: none !important;
  }
  .ac-breeze-line,
  .ac-unit-bump,
  .results-headline.is-popping {
    animation: none !important;
  }
}

/* =========================================================
   SEO / AEO Subpages, Hub Directory & Footer Nav (Warm Editorial)
   ========================================================= */

.header-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.header-text-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.header-text-link:hover {
  color: var(--ink);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--subtle);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-hero {
  background: var(--canvas);
  padding: 32px 0 26px;
}

.subpage-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 780px;
}

.subpage-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sage);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.aeo-answer-box {
  background: var(--surface);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 18px 0 22px;
  max-width: 820px;
}

.aeo-answer-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage);
  margin-bottom: 6px;
}

.aeo-answer-box p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--charcoal);
}

.subpage-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.btn-sage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--sage);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-sage:hover {
  background: #23553e;
}

.btn-sage:active {
  transform: scale(0.97);
}

.btn-oat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  color: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.12s ease;
}

.btn-oat:hover {
  background: var(--hairline);
}

.btn-oat:active {
  transform: scale(0.97);
}

.subpage-main {
  padding-bottom: 56px;
}

.subpage-section {
  padding: 34px 0;
  border-top: 1px solid var(--hairline);
}

.subpage-section-head {
  margin-bottom: 18px;
}

.subpage-section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.24;
  margin: 0 0 6px;
  color: var(--ink);
}

.subpage-section-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 700px;
}

.model-visual-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.model-svg-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.model-svg-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.model-svg-caption {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.spec-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.spec-kv {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(222, 220, 209, 0.7);
}

.spec-kv:nth-last-child(-n+2) {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-k {
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}

.spec-v {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.fit-pill-ok,
.fit-pill-caution,
.fit-pill-ng {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.fit-pill-ok {
  background: var(--sage-soft);
  color: var(--sage);
}

.fit-pill-caution {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.fit-pill-ng {
  background: var(--error-soft);
  color: var(--error);
}

.subpage-callout-warn {
  background: var(--terracotta-soft);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--charcoal);
}

.hub-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.hub-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.16s ease, transform 0.16s cubic-bezier(0.22, 1.18, 0.36, 1);
}

.hub-link-card:hover {
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.hub-card-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
}

.hub-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.hub-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.48;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.directory-table th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1.5px solid var(--hairline);
  white-space: nowrap;
}

.directory-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(222, 220, 209, 0.7);
  vertical-align: middle;
  color: var(--charcoal);
}

.directory-table tr:hover td {
  background: var(--surface);
}

.directory-model-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.directory-model-link:hover {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-block {
  max-width: 740px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--charcoal);
}

.prose-block h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin: 28px 0 10px;
}

.prose-block p {
  margin: 0 0 14px;
}

.prose-block ul,
.prose-block ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.prose-block li {
  margin-bottom: 8px;
}

.disclosure-inline {
  margin-top: 22px;
  font-size: 13px;
  color: var(--subtle);
}

.disclosure-inline a {
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
}

.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 959px) {
  .model-visual-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 639px) {
  .header-nav-links {
    gap: 10px;
  }
  .header-text-link {
    font-size: 12.5px;
  }
  .aeo-answer-box {
    padding: 16px 18px;
  }
  .spec-sheet-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .spec-kv:nth-last-child(-n+2) {
    border-bottom: 1px solid rgba(222, 220, 209, 0.7);
    padding-bottom: 10px;
  }
  .spec-kv:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* Primary Data Stats Strip (AEO / GEO empirical density) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 22px 0 8px;
}

.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 16px 18px;
  }
}
