.buyer-page {
  --buyer-heading: #21402f;
  --buyer-soft: #edf3ed;
  --buyer-rule: #cdd9cc;
  --buyer-cream: #f8f3e9;
  color: var(--ink);
}
.buyer-page [hidden] { display: none !important; }
.buyer-page p { max-width: 68ch; }
.buyer-page a:focus-visible, .buyer-page button:focus-visible,
.buyer-page input:focus-visible, .buyer-page select:focus-visible,
.buyer-page summary:focus-visible, .buyer-page [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--pine-600);
  outline-offset: 3px;
}
.buyer-hero {
  padding: 30px 0 clamp(42px, 6vw, 74px);
  background: linear-gradient(125deg, var(--paper) 35%, var(--buyer-soft));
}
.buyer-hero .crumbs { margin-bottom: clamp(16px, 3vw, 32px); }
.buyer-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: center;
}
.buyer-page h1, .buyer-page h2, .buyer-page h3 { color: var(--buyer-heading); }
.buyer-page h1 {
  font: 600 clamp(35px, 5.1vw, 73px)/1.04 var(--display);
  max-width: 17ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.buyer-page h2, .outerwear-paths h2 {
  margin-bottom: 13px;
  font: 600 clamp(27px, 3.4vw, 44px)/1.14 var(--display);
  text-wrap: balance;
}
.buyer-page h3, .outerwear-paths h3 { margin-bottom: 6px; font-size: 1.15rem; }
.buyer-page .buyer-lede { margin: 18px 0; font-size: clamp(17px, 1.6vw, 21px); }
.buyer-page .buyer-fine { font-size: 14px; color: var(--graphite); }
.buyer-actions, .buyer-related, .buyer-jump {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin: 18px 0 0;
}
.buyer-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: normal;
  text-align: center;
}
.buyer-related a, .buyer-jump a, .buyer-text-link {
  display: inline-flex;
  align-items: center;
  padding-block: 5px;
  min-height: 44px;
}
.buyer-page a:not(.btn), .outerwear-paths a:not(.btn) { text-underline-offset: 3px; }
.buyer-section { padding-block: clamp(30px, 5vw, 64px); }
.buyer-section + .buyer-section { border-top: 1px solid var(--buyer-rule); }
.buyer-section[id], .buyer-guide section[id] { scroll-margin-top: 110px; }
.buyer-facts {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.buyer-facts > div { border-top: 1px solid var(--buyer-rule); padding-top: 12px; }
.buyer-facts dt, .buyer-details-list dt, .buyer-choices h3 { font-weight: 740; }
.buyer-facts dd, .buyer-details-list dd { margin-top: 4px; color: var(--graphite); }
.buyer-picture {
  width: min(100%, 422px);
  margin: 0 auto;
}
.buyer-picture img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  background: #f5f3ef;
  border-radius: 19px;
}
.buyer-picture figcaption { margin-top: 8px; font-size: 14px; color: var(--graphite); }
.buyer-aside, .buyer-callout {
  padding: clamp(16px, 3vw, 30px);
  background: var(--buyer-soft);
  border: 1px solid var(--buyer-rule);
  border-radius: 6px 24px 6px 24px;
}
.buyer-aside h2 { font-size: clamp(21px, 2.5vw, 32px); }
.buyer-aside p + p { margin-top: 10px; }
.buyer-cards, .buyer-choices, .outerwear-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-block: 20px;
}
.buyer-cards > *, .buyer-choices > *, .outerwear-links article {
  padding: clamp(15px, 2.4vw, 23px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.buyer-choices { list-style: none; padding: 0; }
.buyer-details-list > div { border-top: 1px solid var(--buyer-rule); padding-block: 12px; }
.buyer-details-list { margin-block: 12px; }
.buyer-page details { padding-block: 12px; border-top: 1px solid var(--buyer-rule); max-width: 72ch; }
.buyer-page details p { padding: 8px 4px 2px; }
.buyer-page details summary { min-height: 44px; padding-block: 8px; cursor: pointer; font-weight: 730; }
.buyer-list { display: grid; gap: 7px; padding-left: 1.35rem; margin-block: 10px; }
.buyer-guide > section { max-width: 83ch; }
.buyer-guide p + p { margin-top: 12px; }
.buyer-guide .buyer-callout, .fit-method .buyer-callout { margin-block: 20px; }
.buyer-measure-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; align-items: center; margin-block: 16px; }
.buyer-measure-figure { margin: 0; padding: 12px; background: var(--buyer-soft); border-radius: 14px; }
.buyer-measure-figure svg { display: block; width: 100%; max-height: 250px; }
.buyer-measure-figure figcaption { font-size: 14px; }
.measure-outline, .measure-seam { stroke: var(--buyer-heading); stroke-width: 2; stroke-linejoin: round; }
.measure-outline { fill: var(--buyer-cream); }
.measure-seam { fill: none; }
.measure-line { fill: none; stroke: #9c482f; stroke-width: 1.6; }
.measure-marks { fill: var(--buyer-heading); }
.measure-labels { fill: white; font: 700 12px var(--sans); text-anchor: middle; dominant-baseline: central; }
.buyer-measure-table { width: 100%; margin-block: 15px; border-collapse: collapse; text-align: left; }
.buyer-measure-table th, .buyer-measure-table td { vertical-align: top; padding: 9px; border: 1px solid var(--buyer-rule); }
.buyer-measure-table thead { background: var(--buyer-soft); }
.buyer-callout a { display: inline-flex; align-items: center; min-height: 44px; }
.outerwear-paths { padding-block: clamp(28px, 4.6vw, 60px); background: #edf3ed; color: var(--ink); }
.outerwear-paths h2 { color: var(--pine-700); }
.outerwear-links h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.outerwear-links p { font-size: 16px; }
.fit-page .buyer-hero { padding-bottom: 29px; }
.fit-board { padding-top: 28px; }
.fit-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(14px, 4vw, 42px); align-items: start; }
.fit-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(16px, 3.5vw, 32px);
  display: grid;
  gap: 14px;
}
.fit-controls fieldset { border: 0; min-width: 0; padding: 0; }
.fit-controls legend { font-weight: 760; margin-bottom: 6px; }
.fit-controls label { display: block; font-weight: 700; }
.fit-controls input, .fit-controls select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #768f7e;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.3 var(--sans);
}
.fit-pair, .fit-three { display: grid; gap: 10px; }
.fit-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fit-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fit-controls fieldset .buyer-fine { margin-top: 5px; font-weight: 500; }
.fit-controls .buyer-actions { margin-top: 0; }
.fit-unit { font-size: 13px; font-weight: 500; }
.fit-dimension { font: 650 clamp(25px, 3.6vw, 41px)/1.15 var(--display); color: var(--buyer-heading); overflow-wrap: anywhere; }
.fit-spec { scroll-margin-top: 118px; }
.fit-shape-note { margin-top: 10px; font-weight: 700; }
body:has(.fit-page #fit-result:not([hidden])) .qr-pill { display: none !important; }
.fit-spec pre {
  margin-block: 13px;
  padding: 12px;
  border: 1px solid var(--buyer-rule);
  background: var(--surface);
  border-radius: 8px;
  font: 500 14px/1.5 var(--sans);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fit-method { max-width: min(100%, 1120px); }
.fit-method .buyer-details-list { max-width: 68ch; }
.fit-spec #fit-action-status:not(:empty) { margin-top: 9px; }
.fit-prefill-note {
  margin-block: 8px;
  color: var(--pine-700);
  font-weight: 700;
}
@media (max-width: 799px) {
  .buyer-hero-grid, .fit-grid, .buyer-measure-layout { grid-template-columns: minmax(0, 1fr); }
  .buyer-cards, .buyer-choices, .outerwear-links { grid-template-columns: minmax(0, 1fr); }
  .buyer-picture { margin: 0; }
  .buyer-picture img { max-height: 360px; }
}
@media (max-width: 400px) {
  .fit-pair { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
  .fit-three { grid-template-columns: minmax(0, 1fr); }
  .buyer-facts { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  body:has(main[data-fit-page]) > :not(main), .fit-page > :not(#fit-planner),
  .fit-board :is(#planner-title, .fit-controls, #fit-explainer, .buyer-actions, #fit-action-status),
  body:has(main.jacket-guide-page) > :not(main), .jacket-guide-page :is(.crumbs, .buyer-jump, .buyer-actions) { display: none !important; }
  .fit-page .fit-board { padding: 0; }
  .fit-page .fit-board .wrap { padding: 0; }
  .fit-page .fit-grid { display: block; }
  .fit-spec { border: 0; background: white; }
  .fit-spec pre { font-size: 12pt; }
  .jacket-guide-page .buyer-section { padding-block: 16px; }
  .jacket-guide-page :is(.buyer-measure-figure, tr, .buyer-callout) { break-inside: avoid; }
}
