.product-template { background: var(--paper); color: var(--navy); }
.product-template .bar { background: transparent; color: var(--navy); }
.product-template .bar .wrap { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 16px; }
.product-template .bar a { color: var(--navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.product-template .paper-nav { max-width: none; padding-left: 0; padding-right: 0; }
.product-template .wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.product-template :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.sheet { display: flex; flex-direction: column; gap: 28px; padding: 28px 0 64px; overflow: visible; }
.rail, .stage { display: contents; }
.buy-top { order: 1; }
.carousel { order: 2; }
.facts { order: 3; }
.related-finds { order: 4; }
.page-disclosure { order: 5; }

.product-template h1 { margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.problem { margin: 12px 0 0; color: var(--pencil); font-size: 18px; line-height: 1.55; }
.product-template .tag { position: relative; align-self: flex-start; background: var(--marigold); color: var(--navy); padding: 16px 18px 14px 40px; border-radius: var(--radius-tag); margin: 20px 0 0; transform: rotate(-1.5deg); }
.product-template .tag:before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--navy); }
.product-template .tag blockquote, .product-template .tag p { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 500; }
.product-template .tag cite, .product-template .tag a { display: block; margin-top: 8px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--navy); }
.product-template .actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; }
.product-template .cta { width: 100%; justify-content: center; min-height: 44px; font-size: 18px; font-weight: 600; background: var(--navy); color: var(--on-navy); }
.product-template .buy-disclosure { margin: 4px 0 0; color: var(--pencil); font-size: 13px; font-weight: 400; line-height: 1.4; text-align: center; background: none; border: 0; }
.product-template .buy-disclosure:empty { display: none; }

.stage, .carousel, .carousel-frame, .carousel-track, .carousel-slide { max-width: none; width: 100%; min-width: 0; }
.carousel-frame { position: relative; aspect-ratio: 4 / 5; background: var(--shelf); border-radius: 12px; container-type: size; overflow: hidden; }
.carousel-track { position: absolute; inset: 0; display: flex; gap: 0; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; scroll-behavior: smooth; scrollbar-width: none; border-radius: 12px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; width: 100%; min-width: 100%; max-width: 100%; height: 100%; min-height: 0; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.carousel-slide .clip { height: 100cqh; width: calc(100cqh * 9 / 16); max-width: none; aspect-ratio: auto; margin: 0; flex: none; }
.clip-play, .clip-frame { display: block; width: 100%; height: 100%; position: relative; border: 0; padding: 0; background: transparent; color: var(--navy); min-height: 44px; }
.clip-play img, .clip-frame { width: 100%; height: 100%; object-fit: contain; border: 0; }
.clip-play .play-icon { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 22px; }
.clip-fallback { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; color: var(--navy); font-size: 18px; line-height: 1.55; text-decoration: underline; text-underline-offset: 4px; }
.clip-fallback .play-icon { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.clip-fallback[hidden] { display: none !important; }
.slide-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.slide-photo img { width: 76%; height: 76%; margin: auto; object-fit: contain; object-position: center; mix-blend-mode: multiply; }
.slide-photo.native-size img { width: auto; height: auto; max-width: 76%; max-height: 76%; }
.carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-arrow[aria-disabled="true"] { opacity: 0.4; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.carousel-dots { display: flex; }
.carousel-dots button { width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; display: grid; place-items: center; }
.carousel-dots button:before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--pencil); }
.carousel-dots button[aria-current="true"]:before { width: 20px; background: var(--navy); }
.carousel-count { margin: 0; color: var(--pencil); font-size: 13px; line-height: 1.4; }
.carousel[data-count="1"] .carousel-arrow,
.carousel[data-count="1"] .carousel-controls { display: none; }
.photo-credit { order: 2; margin: 12px 0 0; color: var(--pencil); font-size: 13px; line-height: 1.4; font-weight: 400; }

.facts { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 24px; background: var(--shelf); border-radius: var(--radius-media); }
.facts:not(:has(dd:not(:empty))) { display: none; }
.facts div { min-width: 0; }
.facts dt { font-weight: 600; }
.facts dt:empty { display: none; }
.facts dd { margin: 0; }
.facts dd a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.related-finds .finds { display: grid; grid-template-columns: 1fr; gap: 28px; }
.product-template .find { display: flex; flex-direction: column; }
.product-template .find .ph, .product-template .find .text-card { aspect-ratio: 5 / 4; background: var(--shelf); border-radius: var(--radius-media); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: var(--navy); font-weight: 650; padding: 16px; }
.product-template .find .ph img { width: 100%; height: 100%; object-fit: contain; }
.product-template .prob { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 20px 0 6px; }
.product-template .more { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; color: var(--navy); min-height: 44px; display: inline-flex; align-items: center; }
.product-template .page-disclosure { width: 100%; margin: 8px 0 0; text-align: center; color: var(--pencil); font-size: 16px; line-height: 1.5; }
.product-template .page-disclosure a { color: var(--pencil); }

.lightbox { border: 0; padding: 24px; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; overflow: visible; }
.lightbox::backdrop { background: color-mix(in srgb, var(--navy) 72%, transparent); }
.lightbox img { display: block; margin: 48px auto 0; max-width: min(920px, 100%); max-height: calc(100vh - 120px); object-fit: contain; background: var(--paper); border-radius: var(--radius-media); }
.lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--on-navy); border: 0; border-radius: var(--radius-control); }

@media (min-width: 768px) {
  .sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; row-gap: 40px; align-items: start; }
  .rail, .stage { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
  .stage { grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; position: static; max-width: none; justify-self: stretch; align-self: start; overflow: visible; }
  .buy-top, .carousel, .facts, .related-finds, .page-disclosure { order: 0; }
  .related-finds, .page-disclosure { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .related-finds .finds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-template h1 { font-size: 48px; }
}
@media (min-width: 1024px) {
  .sheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; }
  .rail { max-width: 460px; justify-self: start; position: static; }
}
@media (min-width: 1280px) {
  .sheet { column-gap: 48px; }
}

/* One spec sits in this gray block. The shared two-column grid was leaving it in the first column. */
.facts:has(> div > [data-slot="fact-label"]) {
  grid-template-columns: 1fr;
}
.facts div:has(> [data-slot="fact-label"]) dd,
.facts div:has(> [data-slot="fact-label"]) dd a {
  display: block;
  width: 100%;
  max-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-template .tag { transform: none; }
  .product-template .lightbox,
  .product-template .lightbox img,
  .lightbox-close,
  .clip-play .play-icon { transition: none; animation: none; }
  .carousel-track { scroll-behavior: auto; }
}
