* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body:has(.product-page) {
  margin: 0;
  color: #1b1920;
  background: #fff;
  font: 16px/1.52 'DM Sans',sans-serif;
}
.product-page a {
  color: inherit;
}
button,summary {
  font: inherit;
  cursor: pointer;
}
.product-page a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid #8374ce;
  outline-offset: 5px;
}
:root {
  --line: #e0dce7;
  --muted: #625e69;
  --accent: #54468d;
  --wash: #f8f7fb;
  --purple: #d8ceff;
}
h1,h2,h3,p,figure,dl,dd {
  margin: 0;
}
h1,h2,h3,.display {
  font-family: Syne,sans-serif;
  letter-spacing: -.045em;
  line-height: 1.06;
}
h2 {
  font-size: clamp(27px,3.1vw,45px);
}
.wrap {
  width: min(88%,1190px);
  margin: auto;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
}
.crumb a {
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  column-gap: 5%;
  grid-template-areas: "heading gallery" "buy gallery";
  padding-block: 36px;
}
.hero-heading { grid-area: heading; align-self: end; }
.hero-buy { grid-area: buy; align-self: start; }
.brand {
  font: 600 clamp(19px,2vw,28px) Syne;
  letter-spacing: -.035em;
  margin-bottom: 6px;
}
h1 {
  font-size: clamp(35px,4.1vw,57px);
  line-height: .98;
}
.cost {
  margin-top: 25px;
}
.caption,.verified,.rating,.section-desc {
  color: var(--muted);
}
.caption,.rating {
  font-size: 14px;
}
.money strong {
  font: 700 clamp(37px,4vw,55px)/1.2 Syne;
  letter-spacing: -.055em;
}
.money small {
  font: 600 16px 'DM Sans';
  letter-spacing: 0;
}
.price-comparison {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 2px 0 6px;
  font-size: 14px;
  color: var(--muted);
}
.verified {
  font-size: 13px;
  margin-top: 3px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 21px;
}
.actions a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.history-link {
  display: inline-flex;
  align-items: center;
  background: var(--purple);
  border-radius: 30px;
  padding: 11px 23px;
}
.actions .retailer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid #c9c4d0;
  border-radius: 24px;
  color: #342f3c;
}
.retailer-link:hover, .retailer-link:focus-visible {
  background: #f6f4f8;
  border-color: #847c91;
}
.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  vertical-align: 1px;
  border: solid currentColor;
  border-width: 1.6px 1.6px 0 0;
}
.chevron.previous { transform: rotate(-135deg); }
.chevron.next { transform: rotate(45deg); }
.rating {
  margin-top: 14px;
}
.history {
  background: var(--wash);
  border-block: 1px solid var(--line);
  padding-block: clamp(32px,4vw,62px);
}
.section-desc {
  font-size: 15px;
  margin-top: 6px;
}
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0,2.3fr) minmax(210px,.85fr);
  gap: 5%;
  align-items: center;
  margin-top: 28px;
}
.chart {
  margin: 0;
}
.plot {
  position: relative;
  height: 174px;
  margin: 12px 25px 30px 46px;
}
.line {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px solid #dfdce6;
}
.line span {
  position: absolute;
  right: calc(100% + 9px);
  top: -9px;
  color: #6a6473;
  font-size: 12px;
}
.dot {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #7863c6;
  border-radius: 50%;
  transform: translate(-50%,-30%);
}
.point {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(15%,-140%);
  background: #5c4897;
  color: white;
  padding: 2px 7px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}
.ticks {
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #686171;
}
.chart figcaption {
  font-size: 14px;
  color: #524d5c;
}
.facts {
  display: grid;
  border-left: 1px solid #dcd8e5;
  padding-left: 25px;
  gap: 17px;
}
.facts dt,.spec dt {
  font-size: 13px;
  color: var(--muted);
}
.facts dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.facts div:first-child dd {
  font: 700 31px/1.2 Syne;
  letter-spacing: -.045em;
}
.facts small {
  font: 600 13px 'DM Sans';
  letter-spacing: 0;
}
.info {
  padding-block: clamp(35px,5vw,66px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8%;
  align-items: start;
}
.info h2,.related h2 {
  font-size: clamp(26px,2.8vw,39px);
}
.info-copy>p {
  margin: 16px 0;
  color: var(--muted);
  max-width: 62ch;
}
.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  gap: 15px;
}
.spec dd {
  font-weight: 600;
}
.guide {
  background: #eeebf7;
  border-radius: 18px;
  padding: clamp(25px,3.3vw,42px);
}
.guide h2 {
  font: 600 14px 'DM Sans';
  letter-spacing: 0;
  color: #594d79;
}
.guide h3 {
  font-size: clamp(23px,2.5vw,34px);
  margin-block: 13px;
}
.guide p {
  font-size: 15px;
  color: #504a5a;
}
.guide a {
  display: inline-block;
  color: #493977;
  font-weight: 600;
  font-size: 14px;
  margin-top: 20px;
  text-underline-offset: 3px;
}
.related {
  border-top: 1px solid var(--line);
  padding-block: clamp(30px,4vw,54px);
}
.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.arrows {
  display: flex;
  gap: 7px;
}
.arrows button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #453a62;
}
.arrows button:disabled {
  opacity: .36;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 66px)/4);
  gap: 22px;
  overflow: auto hidden;
  overscroll-behavior-x: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c9c2d6 transparent;
  margin-top: 20px;
  padding-bottom: 14px;
}
@media (width > 700px) {
  .history-link, .actions:has(> .history-link:only-child) {
    display: none;
  }
  /* Four full cards and a glimpse of the fifth when the desktop rail overflows. */
  .rail:has(> .card:nth-child(5)) {
    grid-auto-columns: calc((100% - 88px) / 4.35);
  }
}
.card {
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
}
.card .picture {
  padding: 10px;
  height: 148px;
  border: 1px solid #ebe8ef;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.card img {
  width: 100%;
  height: 123px;
  object-fit: contain;
}
.card strong {
  display: block;
  font-size: 16px;
  margin-block: 8px 1px;
}
.card span {
  color: #4e4955;
  font-size: 14px;
}
@media(max-width:700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "gallery" "buy";
    gap: 14px;
    padding-block: 22px;
  }
  .crumb {
    margin-bottom: 15px;
  }
  .brand {
    font-size: 19px;
  }
  h1 {
    font-size: clamp(27px,8.65vw,44px);
  }
  .cost {
    margin-top: 0;
  }
  .actions {
    margin-top: 14px;
    gap: 14px;
  }
  .rating {
    margin-top: 10px;
    font-size: 13px;
  }
  .chart-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 19px;
  }
  .plot {
    height: 125px;
    margin-left: 37px;
    margin-right: 10px;
  }
  .facts {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 14px 0 0;
    grid-template-columns: 1.15fr 1fr;
    gap: 10px;
  }
  .facts div:last-child {
    grid-column: 1/-1;
  }
  .facts div:first-child dd {
    font-size: 23px;
  }
  .info {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .related .rail {
    grid-auto-columns: 44%;
    gap: 12px;
  }
  .card .picture {
    height: 115px;
  }
  .card img {
    height: 90px;
  }
  .guide p {
    font-size: 14px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
.gallery {
  grid-area: gallery;
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  grid-template-areas: "thumbs image";
  align-items: center;
  gap: 12px;
}
.gallery-frame {
  grid-area: image;
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 2;
  background: #fff;
  overflow: clip;
}
.gallery-frame, #viewer-track img {
  border: 1px solid #ebe8ef;
  border-radius: 13px;
}
.thumbs {
  grid-area: thumbs;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thumbs button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: clip;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f6f5f8;
}
.thumbs button[aria-pressed=true] { border-color: #716690; background: #f0edf6; }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-track {
  display: flex;
  width: 100%;
  overflow: auto hidden;
  user-select: none;
  -webkit-user-select: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.photo-track.dragging, .photo-track.settling { scroll-snap-type: none; }
.photo-track.dragging, .photo-track.dragging button { cursor: grabbing; }
.photo-track::-webkit-scrollbar {
  display: none;
}
.photo-track>* {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
#gallery-track { height: 100%; }
#gallery-track button {
  display: grid;
  place-items: center;
  min-height: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  height: 100%;
  padding: 0;
  overflow: clip;
}
#gallery-track img {
  display: block;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.018);
}
#gallery-track button:focus-visible {
  outline-offset: -4px;
}
.viewer-bar button,.viewer-controls button {
  border: 1px solid #dad6e3;
  background: white;
  color: #292333;
  min-height: 44px;
  border-radius: 24px;
  font-size: 14px;
}
#expand {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  color: #514d5b;
  background: transparent;
  border-radius: 50%;
}
#expand svg { box-sizing: content-box; padding: 7px; background: #fff; border-radius: 50%; }
#expand:hover svg, #expand:focus-visible svg { background: #e8e4f1; }
#photo-viewer {
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100dvh;
  background: #fff;
  color: #211b29;
  overflow: hidden;
}
#photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
html:has(#photo-viewer[open]), body:has(#photo-viewer[open]) {
  overscroll-behavior: none;
  overflow: hidden;
}
.viewer-bar,.viewer-controls {
  width: min(94%,1280px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.viewer-bar {
  justify-content: space-between;
  border-bottom: 1px solid #e7e2eb;
}
.viewer-bar button {
  padding: 0 15px;
}
.viewer-controls {
  justify-content: center;
  padding-bottom: max(15px,env(safe-area-inset-bottom));
  font-variant-numeric: tabular-nums;
}
.viewer-controls button {
  width: 44px;
  font-size: 18px;
}
.viewer-controls button:disabled {
  opacity: .35;
}
#viewer-track {
  touch-action: pan-x pinch-zoom;
  height: 100%;
  align-items: center;
}
.viewer-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: clamp(18px, 4vw, 60px);
}
#viewer-track img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: scale-down;
}
@media(max-width:700px) {
  .gallery { grid-template-columns: minmax(0,1fr); grid-template-areas: "image" "thumbs"; gap: 8px; }
  .thumbs { flex-direction: row; justify-content: center; gap: 8px; }
  .thumbs button { width: 48px; height: 44px; }
  .viewer-bar {
    font-size: 14px;
  }
}
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dot { transform: translate(-50%, -50%); }
.info-copy:only-child { grid-column: 1 / -1; }

.chart-key { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: .8rem; color: #514b5c; }
.chart-key span { display: inline-flex; gap: 6px; align-items: center; }
.chart-key span::before { content: ""; width: 20px; border-top: 3px solid #7863c6; }
.chart-key .forecast-key::before { border-top: 3px dashed #51456f; }
.forecast-window { position: absolute; inset: 0 0 0 auto; background: #eae6f4; border-left: 1px dashed #8d84a0; }
.ticks .observed-boundary { position: absolute; transform: translateX(-50%); }
.forecast-note { font-size: .875rem; color: var(--muted); margin-top: 4px; }

.chart-reading:not([hidden]) {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin: 14px 0 16px;
}
.reading-price { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.reading-date, .chart-help { font-size: .82rem; color: var(--muted); }
.chart-help { margin-bottom: 8px; }
.plot[role=slider] { cursor: crosshair; touch-action: pan-y pinch-zoom; }
.plot[role=slider]:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.plot[role=slider] .point { display: none; }
.chart-cursor {
  pointer-events: none;
  position: absolute;
  inset-block: 0;
  left: var(--cursor-x);
  border-left: 1px solid #75678d;
}
.chart-cursor i {
  position: absolute;
  top: var(--cursor-y);
  transform: translate(-55%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid #59477d;
  background: white;
}

.product-page :is(h1, h2, h3) { font-weight: 700; }
.hero-heading, .hero-buy { min-width: 0; overflow-wrap: anywhere; }
.hero:not(:has(.gallery)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "buy"; }
.gallery:has(.thumbs button:only-child) { grid-template-columns: minmax(0,1fr); grid-template-areas: "image"; }
.thumbs:has(button:only-child) { display: none; }
.product-page .gallery.catalog-photo #gallery-track img { object-fit: contain; transform: none; }
.account-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.account-actions :is(a,button), .guide a { color: var(--accent); text-decoration: underline; }
#delisted-status { margin-bottom: 16px; }
#faq-heading { font-size: 24px; }
