:root {
  color-scheme: light;
  --canvas: #f4f1ea;
  --surface: #fffdf9;
  --ink: #171614;
  --muted: #67625b;
  --rule: #d9d3c8;
  --rule-strong: #a59d91;
  --burgundy: #8f2529;
  --burgundy-dark: #651b1f;
  --brand-dark: #281b1c;
  --low: #216343;
  --low-soft: #e5efe8;
  --high: #8a4a12;
  --high-soft: #f3e9dc;
  --info: #315d72;
  --info-soft: #e4ecef;
  --danger-soft: #f3e2e2;
  --font-sans: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --content-width: 1200px;
  --page-gutter: clamp(16px, 3vw, 32px);
  --radius-control: 4px;
  --radius-product: 8px;
  --radius-major: 12px;
  --shadow-photo: 0 10px 24px rgba(40, 27, 28, 0.12);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

button,
input,
select,
textarea {
  font-size: 1rem;
}

img,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

p,
h1,
h2,
h3,
dl,
dd,
figure,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

strong,
dd,
td {
  font-variant-numeric: tabular-nums;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  min-height: 44px;
  padding: 9px 16px;
  transform: translateY(-160%);
  border: 2px solid var(--ink);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

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

.site-body {
  min-height: 100vh;
}

.page-shell,
.header-inner {
  width: min(100%, calc(var(--content-width) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--surface);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.brand {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 1px solid var(--burgundy-dark);
  border-radius: var(--radius-control);
  background: var(--burgundy);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.045em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.site-nav a:hover {
  border-bottom-color: var(--rule-strong);
  background: var(--canvas);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--burgundy);
  color: var(--burgundy);
}

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

/* Shared page structure */

.page-section {
  padding-block: var(--space-8) var(--space-16);
}

.breadcrumb {
  margin-bottom: var(--space-8);
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.breadcrumb li + li::before {
  margin-right: 10px;
  color: var(--rule-strong);
  content: "/";
}

.breadcrumb a:hover {
  color: var(--burgundy);
}

.page-header {
  max-width: 840px;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--rule-strong);
}

.page-header > :last-child,
.section-head > div > :last-child,
.hero-copy > :last-child {
  margin-bottom: 0;
}

.page-header p {
  max-width: 70ch;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section {
  padding-block: var(--space-16);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-tinted {
  border-block: 1px solid var(--rule);
  background: var(--surface);
}

.section-head {
  display: flex;
  min-width: 0;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.section-head > div {
  min-width: 0;
  max-width: 760px;
}

.section-head p,
.section-head > p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--burgundy);
  font-weight: 800;
  text-decoration-thickness: 2px;
}

.text-link:hover {
  color: var(--burgundy-dark);
}

/* Hero */

.hero-commerce {
  border-bottom: 5px solid var(--burgundy);
  background: var(--brand-dark);
  color: #fffaf2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  min-height: 440px;
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 15ch;
  margin-bottom: var(--space-6);
  color: #ffffff;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.16;
}

.hero-copy p:not(.eyebrow) {
  max-width: 45rem;
  color: #ddd3ca;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-copy .eyebrow {
  color: #e3aaa9;
}

.hero-search {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-8);
  border: 1px solid #725b5d;
  border-radius: var(--radius-major);
  background: var(--surface);
  color: var(--ink);
}

.hero-search label,
.hero-search legend {
  font-weight: 800;
}

.hero-search > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-search-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}

.hero-search-heading strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.hero-search-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-search-keyword label,
.hero-search-filter-grid label {
  display: grid;
  gap: var(--space-2);
}

.hero-search-keyword label,
.hero-search-filter-grid label > span,
.hero-search-filters legend {
  color: var(--ink);
  font-size: 0.82rem;
}

.hero-search-keyword input,
.hero-search select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--ink);
}

.hero-search-keyword input::placeholder {
  color: #77716a;
}

.hero-search-keyword input:focus,
.hero-search select:focus {
  border-color: var(--info);
}

.hero-search-filters {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero-search-filters legend {
  margin-bottom: var(--space-2);
  padding: 0;
}

.hero-search-quick {
  display: grid;
  gap: var(--space-3);
}

.hero-choice-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero-choice-group legend {
  margin-bottom: var(--space-2);
  padding: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-choice {
  position: relative;
  cursor: pointer;
}

.hero-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hero-choice span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.hero-choice input:checked + span {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #ffffff;
}

.hero-choice input:focus-visible + span {
  outline: 3px solid var(--info);
  outline-offset: 2px;
}


.hero-search-details {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.hero-search-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  color: var(--burgundy);
  font-weight: 800;
  cursor: pointer;
}

.hero-search-details summary::marker {
  color: var(--burgundy);
}

.hero-search-details[open] summary {
  margin-bottom: var(--space-3);
}

.hero-search-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.hero-search-set {
  grid-column: 1 / -1;
}

.hero-search-submit {
  width: 100%;
  min-height: 52px;
}

/* Buttons and status */

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: #ffffff;
}

.button-primary:hover {
  border-color: var(--burgundy-dark);
  background: var(--burgundy-dark);
}

.button-secondary {
  border-color: var(--rule-strong);
  background: var(--surface);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

.button-shop {
  width: 100%;
  white-space: nowrap;
}

.shop-action {
  display: grid;
  gap: 6px;
}

.shop-link-note {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  text-align: center;
}

.shop-link-status {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.delta {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-control);
  background: var(--canvas);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.delta-down {
  border-color: #a9c7b4;
  background: var(--low-soft);
  color: var(--low);
}

.delta-up {
  border-color: #d5b99c;
  background: var(--high-soft);
  color: var(--high);
}

.delta-neutral {
  color: var(--muted);
}

/* Product cards */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  min-width: 0;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(170px, 38%) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-product);
  background: var(--surface);
  transition: border-color 150ms ease;
}

.product-card:hover {
  border-color: var(--burgundy);
}

.product-image-link,
.set-image-link {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.product-image-link {
  border-right: 1px solid var(--rule);
  background: #ffffff;
}

.product-image-frame {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
}

.product-image-frame-card {
  min-height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  max-height: 440px;
  aspect-ratio: 13 / 11;
  padding: clamp(12px, 2vw, 22px);
  object-fit: contain;
}

.product-image-card {
  min-height: 280px;
  padding: clamp(10px, 1.6vw, 18px);
}

.product-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 28px);
}

.ranking-position {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.ranking-position strong {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.ranking-position span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-content h3 {
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.product-content h3 a {
  text-decoration: none;
}

.product-content h3 a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.product-set {
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.product-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.product-price-row > div {
  display: grid;
  min-width: 0;
}

.metric-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.product-price-row strong {
  color: var(--burgundy);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.product-price-row small {
  color: var(--muted);
  font-size: 0.76rem;
}

.mini-metrics,
.set-metrics,
.product-facts {
  display: grid;
  margin: var(--space-4) 0;
  padding: 0;
}

.mini-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}

.mini-metrics > div {
  min-width: 0;
  padding: var(--space-3) var(--space-2);
}

.mini-metrics > div + div {
  border-left: 1px solid var(--rule);
}

.mini-metrics dt,
.set-metrics dt,
.product-facts dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.mini-metrics dd,
.set-metrics dd,
.product-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-card-cta {
  width: 100%;
  margin-top: auto;
}

.product-history-empty {
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-block: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Price labels */

.price-position-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-4) 0;
  padding: 0;
  list-style: none;
}

.price-badge {
  padding: 5px 9px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.price-badge-low {
  border-color: #9dbda8;
  background: var(--low-soft);
  color: var(--low);
}

.price-badge-high {
  border-color: #d5b99c;
  background: var(--high-soft);
  color: var(--high);
}

.price-badge-median {
  border-color: #aac0ca;
  background: var(--info-soft);
  color: var(--info);
}

/* Filters and product list tools */

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-block: var(--space-6);
  border-block: 1px solid var(--rule-strong);
}

.filter-panel > div {
  min-width: 0;
}

.filter-panel label,
.list-toolbar label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.list-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
}

.filter-panel input:focus,
.filter-panel select:focus,
.list-toolbar select:focus {
  border-color: var(--info);
}

.filter-search {
  grid-column: span 2;
}

.filter-panel > .button {
  align-self: end;
}

.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.list-toolbar p {
  margin: 0;
}

.list-toolbar > label {
  margin-left: auto;
}

.list-toolbar select {
  width: min(100%, 240px);
}

.empty-state {
  padding: var(--space-12) var(--space-6);
  border-block: 1px solid var(--rule);
  text-align: left;
}

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

/* Set pages */

.set-grid {
  display: grid;
  gap: var(--space-8);
  min-width: 0;
}

.set-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-product);
  background: var(--surface);
}

.set-image-link {
  border-right: 1px solid var(--rule-strong);
  background: #ffffff;
}

.set-image-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 100%;
  min-height: 390px;
  background: var(--rule);
  gap: 1px;
}

.set-image-mosaic img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  padding: var(--space-4);
  background: #ffffff;
  object-fit: contain;
}

.set-card-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
}

.set-card-content > p:not(.eyebrow) {
  color: var(--muted);
}

.set-card-content h2 a {
  text-decoration: none;
}

.set-card-content h2 a:hover {
  color: var(--burgundy);
}

.set-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.set-metrics > div {
  min-width: 0;
  padding: var(--space-3) var(--space-2) var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
}

.set-metrics > div:nth-child(even) {
  padding-left: var(--space-4);
  border-left: 1px solid var(--rule);
}

.set-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  margin-bottom: var(--space-12);
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius-major);
  background: var(--brand-dark);
  color: #fffaf2;
}

.set-hero h1 {
  color: #ffffff;
}

.set-hero p:not(.eyebrow) {
  color: #ddd3ca;
}

.set-hero .tag {
  border-color: #816a6b;
  background: transparent;
  color: #ffffff;
}

.set-hero .set-image-mosaic {
  min-height: 330px;
  border: 1px solid #725b5d;
  border-radius: var(--radius-product);
  box-shadow: var(--shadow-photo);
}

.set-overview {
  padding-top: 0;
}

/* Product detail */

.product-detail {
  min-width: 0;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--rule-strong);
}

.product-visual,
.product-summary {
  min-width: 0;
}

.product-visual {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-product);
  background: #ffffff;
  box-shadow: var(--shadow-photo);
}

.product-visual .product-image {
  min-height: 430px;
}

.product-summary h1 {
  margin-bottom: var(--space-6);
  font-size: clamp(1.9rem, 3.2vw, 2.85rem);
}

.product-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}

.product-facts > div {
  min-width: 0;
  padding: var(--space-3) var(--space-2);
}

.product-facts > div:nth-child(even) {
  border-left: 1px solid var(--rule);
}

.product-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--rule);
}

.current-price-panel {
  margin-top: var(--space-6);
  padding: var(--space-6);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--burgundy);

  border-radius: 0 var(--radius-product) var(--radius-product) 0;
  background: var(--surface);
}

.current-price-panel.is-unavailable {
  padding: 20px;
}

.current-price-panel.is-unavailable > strong {
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.current-price-panel > strong {
  display: block;
  margin-block: 2px var(--space-2);
  color: var(--burgundy);
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.current-price-panel > p {
  margin-bottom: var(--space-3);
  color: var(--muted);
  font-size: 0.86rem;
}

.current-price-panel > .button {
  margin-top: var(--space-2);
}

.marketplace-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: var(--space-8) 0 0;
  padding: 0;
  border-block: 1px solid var(--rule-strong);
  list-style: none;
}

.marketplace-strip li {
  position: relative;
  display: grid;
  min-width: 0;
  padding: var(--space-4) var(--space-6);
}

.marketplace-strip li + li {
  border-left: 1px solid var(--rule);
}

.marketplace-strip span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.marketplace-strip strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.marketplace-strip small {
  color: var(--muted);
  font-size: 0.75rem;
}

.marketplace-strip em {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: 2px 6px;
  border: 1px solid #9dbda8;
  border-radius: var(--radius-control);
  background: var(--low-soft);
  color: var(--low);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.marketplace-strip .is-best-offer strong {
  color: var(--low);
}

.shop-comparison {
  scroll-margin-top: 96px;
}

.update-note {
  margin-bottom: 0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-product);
  background: var(--surface);
}

.comparison-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.comparison-table caption,
.history-table caption {
  padding: var(--space-3) var(--space-4);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
}

.comparison-table thead,
.history-table thead {
  background: var(--brand-dark);
  color: #ffffff;
}

.comparison-table th,
.comparison-table td,
.history-table th,
.history-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

.comparison-table thead th,
.history-table thead th {
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.comparison-table tbody tr:last-child > *,
.history-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table td:nth-child(2),
.history-table td:nth-child(2) {
  text-align: right;
}

.comparison-table td:nth-child(2) strong {
  color: var(--burgundy);
  font-size: 1.18rem;
}

.comparison-table .is-best-offer {
  box-shadow: inset 5px 0 0 var(--low);
  background: var(--low-soft);
}

.marketplace-name {
  display: block;
}

.best-price-label {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid #9dbda8;
  border-radius: var(--radius-control);
  color: var(--low);
  font-size: 0.68rem;
  font-weight: 800;
}

.stock {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  font-size: 0.75rem;
  font-weight: 800;
}

.stock-in_stock {
  border-color: #9dbda8;
  background: var(--low-soft);
  color: var(--low);
}

.stock-low_stock {
  border-color: #d5b99c;
  background: var(--high-soft);
  color: var(--high);
}

.stock-out_of_stock,
.stock-unknown {
  background: var(--canvas);
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--space-8);
}

.metric-grid article {
  display: grid;
  min-width: 0;
  padding-block: var(--space-4);
  border-top: 2px solid var(--rule-strong);
}

.metric-grid article span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-grid article strong {
  color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  overflow-wrap: anywhere;
}

.metric-grid article small {
  color: var(--muted);
}

/* Price chart and history */

.chart-panel {
  margin-block: var(--space-8);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-major);
  background: var(--surface);
}

.chart-toolbar {
  align-items: start;
}

.range-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--canvas);
}

.range-button {
  min-width: 64px;
  min-height: 44px;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.range-button + .range-button {
  border-left: 1px solid var(--rule-strong);
}

.range-button:hover {
  background: #ebe6dc;
  color: var(--ink);
}

.range-button.is-active {
  background: var(--burgundy);
  color: #ffffff;
}

.range-button:disabled {
  background: #eeeae2;
  color: #98958e;
  cursor: not-allowed;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-4) 0 0;
  padding: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  list-style: none;
}

.chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.chart-legend-line {
  display: inline-block;
  width: 34px;
  border-top: 3px solid;
}

.chart-legend-rakuten {
  border-color: #2563a6;
}

.chart-legend-yahoo {
  border-color: #d97706;
  border-top-style: dashed;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 390px;
  margin-block: var(--space-6) var(--space-4);
  overflow: hidden;
  border-block: 1px solid var(--rule);
}

.chart-wrap canvas {
  width: 100%;
  height: 100%;
  outline-offset: -3px;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  max-width: min(260px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: var(--shadow-photo);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
  white-space: pre-line;
  pointer-events: none;
  transform: translate(-50%, -100%);
}

.chart-note {
  margin: calc(var(--space-6) * -1) 0 var(--space-8);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.history-table td:last-child small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.chart-summary {
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--info);
  background: var(--info-soft);
  color: var(--ink);
  font-weight: 700;
}

.history-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-3);
}

.history-table-heading h3,
.history-table-heading p {
  margin-bottom: 0;
}

.history-table-heading p {
  color: var(--muted);
  font-size: 0.82rem;
}

.history-more {
  margin-top: var(--space-4);
  border-top: 1px solid var(--rule-strong);
}

.history-more summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: var(--space-3) var(--space-2);
  color: var(--burgundy);
  font-weight: 800;
  cursor: pointer;
}

.history-more summary:hover {
  background: var(--canvas);
}

.history-more[open] summary {
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.affiliate-disclosure {
  margin: 0 0 var(--space-4);
  padding: 10px 14px;
  border-left: 3px solid var(--burgundy);
  background: var(--canvas);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-notice {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  border-block: 1px solid var(--rule-strong);
  background: #ebe6dc;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Release and methodology */

.release-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: var(--space-8);
  border-block: 1px solid var(--rule-strong);
}

.release-summary span {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-6);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.release-summary span + span {
  border-left: 1px solid var(--rule);
}

.release-summary strong {
  color: var(--burgundy);
  font-size: 1.65rem;
}

.methodology-grid,
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
}

.formula-card {
  padding: var(--space-8);
  border: 1px solid var(--rule-strong);
  border-left: 5px solid var(--burgundy);
  border-radius: 0 var(--radius-product) var(--radius-product) 0;
  background: var(--surface);
}

.formula-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.formula-card strong {
  display: block;
  margin-block: var(--space-2) var(--space-3);
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.formula-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-12);
}

.definition-grid article {
  padding-top: var(--space-4);
  border-top: 2px solid var(--rule-strong);
}

.definition-grid article h3 {
  font-family: var(--font-sans);
}

.definition-grid article p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-guide {
  border-top: 5px solid var(--burgundy);
  background: var(--brand-dark);
  color: #fffaf2;
}

.section-guide h2,
.section-guide .eyebrow {
  color: #ffffff;
}

.section-guide p {
  color: #ddd3ca;
}

.section-guide .button-secondary {
  border-color: #8f7879;
  background: transparent;
  color: #ffffff;
}

.section-guide :focus-visible,
.site-footer :focus-visible {
  outline-color: #ffffff;
}


/* Footer */

.site-footer {
  border-top: 1px solid var(--rule-strong);
  background: var(--brand-dark);
  color: #e7ded5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-8) var(--space-12);
  padding-block: var(--space-12);
}

.footer-grid strong {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.footer-grid p {
  max-width: 66ch;
  margin: var(--space-2) 0 0;
  color: #c8bcb3;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: end;
  gap: var(--space-2) var(--space-6);
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #ffffff;
}

.footer-notice {
  grid-column: 1 / -1;
  max-width: none !important;
  padding-top: var(--space-4);
  border-top: 1px solid #5f5051;
}

.footer-notice p + p {
  margin-top: var(--space-2);
}

.service-credits {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  color: #c8bcb3;
  font-size: 0.78rem;
}

.service-credits a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}
/* Tablet */

@media (max-width: 1040px) {
  .site-nav a {
    padding-inline: 8px;
    font-size: 0.8rem;
  }

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

  .product-card {
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
  }

  .product-image-card {
    min-height: 250px;
  }

  .set-card,
  .set-hero,
  .product-hero {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-8);
  }

  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: none;
    flex-direction: column;
    padding: var(--space-2);
    border: 1px solid var(--rule-strong);
    border-top: 0;
    border-radius: 0 0 var(--radius-product) var(--radius-product);
    background: var(--surface);
    box-shadow: 0 10px 18px rgba(40, 27, 28, 0.12);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding-inline: var(--space-3);
    border-bottom: 0;
    border-left: 3px solid transparent;
    font-size: 0.9rem;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: 0;
    border-left-color: var(--burgundy);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .set-card,
  .set-hero,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .set-image-link {
    border-right: 0;
    border-bottom: 1px solid var(--rule-strong);
  }

  .set-image-mosaic {
    min-height: 320px;
  }

  .product-visual {
    width: min(100%, 620px);
  }

  .product-visual .product-image {
    min-height: 360px;
  }

  .methodology-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .chart-toolbar {
    align-items: stretch;
  }
}

/* Mobile */

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
  }

  html {
    scroll-padding-top: 76px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    min-height: 68px;
    gap: var(--space-3);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-copy small {
    display: none;
  }

  .page-section {
    padding-block: var(--space-6) var(--space-12);
  }

  .breadcrumb {
    margin-bottom: var(--space-6);
  }

  .page-header {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
  }

  .section {
    padding-block: var(--space-12);
  }

  .section-head,
  .history-table-heading {
    align-items: start;
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero-grid {
    gap: var(--space-6);
    padding-block: var(--space-8);
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8vw, 2.15rem);
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .hero-search {
    gap: var(--space-3);
    padding: 20px;
  }

  .hero-search-heading {
    align-items: center;
    flex-direction: row;
    gap: var(--space-3);
  }

  .hero-search-heading span {
    display: none;
  }

  .hero-search-keyword input,
  .hero-search select {
    min-height: 44px;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image-link {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .product-image-card {
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .product-content {
    padding: var(--space-4);
  }

  .product-price-row {
    align-items: start;
    flex-direction: column;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .mini-metrics > div + div {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }

  .filter-panel > .button {
    width: 100%;
  }

  .list-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .list-toolbar > label {
    margin: var(--space-2) 0 0;
  }

  .list-toolbar select {
    width: 100%;
  }

  .set-card-content,
  .set-hero,
  .current-price-panel,
  .chart-panel,
  .formula-card {
    padding: var(--space-6);
  }

  .set-image-mosaic,
  .set-hero .set-image-mosaic {
    min-height: 280px;
  }

  .set-image-mosaic img {
    min-height: 136px;
    padding: var(--space-3);
  }

  .set-metrics {
    grid-template-columns: 1fr;
  }

  .set-metrics > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .product-hero {
    padding-bottom: var(--space-8);
  }

  .product-visual .product-image {
    min-height: 300px;
  }

  .current-price-panel > .button {
    width: 100%;
  }

  .marketplace-strip {
    grid-template-columns: 1fr;
  }

  .marketplace-strip li + li {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-4);
  }

  .chart-wrap {
    height: 320px;
  }

  .range-switch {
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table caption {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .comparison-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .comparison-table tbody {
    display: grid;
    gap: var(--space-4);
  }

  .comparison-table tbody tr {
    overflow: hidden;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-product);
    background: var(--surface);
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 0;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--rule);
    text-align: left !important;
  }

  .comparison-table td {
    display: grid;
    grid-template-columns: minmax(88px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-3);
  }

  .comparison-table td::before {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    content: attr(data-label);
  }

  .comparison-table tbody tr > :last-child {
    border-bottom: 0;
  }

  .button-shop {
    width: 100%;
  }

  .history-table {
    table-layout: fixed;
  }

  .history-table th,
  .history-table td {
    padding: var(--space-3) var(--space-2);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
  }

  .history-table th:first-child {
    width: 30%;
  }

  .history-table td:nth-child(2) {
    width: 38%;
  }

  .history-table td:nth-child(3) {
    width: 32%;
  }

  .release-summary {
    grid-template-columns: 1fr;
  }

  .release-summary span {
    min-height: 56px;
    padding-inline: var(--space-4);
  }

  .release-summary span + span {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .definition-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-block: var(--space-8);
  }

  .footer-links {
    justify-content: start;
  }

  .footer-notice {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .brand-copy strong {
    font-size: 0.9rem;
  }

  .nav-toggle-label {
    display: none;
  }

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

  .product-card {
    grid-template-columns: 1fr;
  }

  .product-image-link {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .product-image-card {
    min-height: 0;
    max-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .tag-row {
    gap: 5px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-search {
    grid-column: auto;
  }

  .price-position-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-badge {
    width: 100%;
  }

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

  .chart-panel {
    margin-inline: calc(var(--page-gutter) * -1);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .chart-toolbar .section-head,
  .chart-toolbar {
    gap: var(--space-4);
  }

  .chart-wrap {
    height: 290px;
  }
}

.product-image-frame figcaption {
  width: 100%;
  padding: 0 var(--space-4) var(--space-3);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .product-visual .product-image {
    min-height: 230px;
    max-height: 255px;
  }

  .product-summary h1 {
    margin-bottom: var(--space-4);
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .current-price-panel {
    margin-top: var(--space-4);
    padding: 20px;
  }
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: var(--space-6);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-product);
  background: var(--surface);
  box-shadow: var(--shadow-photo);
}

.guide-card-meta,
.guide-article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-card-number {
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.guide-card h2 {
  margin: var(--space-4) 0 var(--space-3);
  font-size: 1.25rem;
  line-height: 1.4;
}

.guide-card h2 a {
  color: inherit;
  text-decoration: none;
}

.guide-card > p {
  margin: 0 0 var(--space-4);
  color: var(--muted);
}

.guide-card .guide-intent {
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
}

.guide-intent strong {
  display: inline;
  margin-right: var(--space-1);
  color: var(--ink);
}

.guide-card .text-link {
  margin-top: auto;
}

.guide-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-card-cta::after {
  content: "→";
}

.guide-index-cta,
.guide-next-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  border: 1px solid color-mix(in srgb, var(--burgundy) 32%, var(--rule));
  border-radius: var(--radius-product);
  background: var(--canvas);
}

.guide-index-cta h2,
.guide-next-action h2 {
  margin: 0 0 var(--space-2);
}

.guide-index-cta p,
.guide-next-action p {
  margin: 0;
}

.guide-article > article {
  max-width: 860px;
  margin-inline: auto;
}

.guide-article-header {
  padding: clamp(var(--space-8), 5vw, var(--space-12)) 0 var(--space-8);
  border-bottom: 1px solid var(--rule-strong);
}

.guide-article-header h1 {
  max-width: 22ch;
  margin: var(--space-3) 0 var(--space-6);
  font-size: clamp(2rem, 5.3vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.guide-lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  line-height: 1.9;
}

.guide-toc {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  border: 1px solid var(--rule);
  border-radius: var(--radius-major);
  background: var(--canvas);
}

.guide-toc ol {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding-left: 1.35rem;
}

.guide-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--rule);
}

.guide-section h2 {
  margin: 0 0 var(--space-4);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.guide-section p {
  max-width: 46rem;
  margin: 0 0 var(--space-4);
  line-height: 1.95;
}

.guide-checklist {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: var(--space-6) var(--space-6) var(--space-6) 2.8rem;
  border-left: 4px solid var(--burgundy);
  background: var(--canvas);
}

.guide-next-action {
  display: block;
}

.guide-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.guide-link-list a {
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.related-guides {
  margin-top: var(--space-12);
}

@media (max-width: 960px) {
  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .guide-card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .guide-card {
    padding: 20px;
  }

  .guide-card h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.125rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .guide-card > p:not(.guide-intent) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .guide-index-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-article-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .button,
  .range-switch {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .product-card,
  .set-card,
  .chart-panel,
  .table-wrap {
    break-inside: avoid;
  }
}
