/* Catalogue */
.board-index-hero.board-index-photo {
  min-height: clamp(340px, 33vw, 540px);
  grid-template:
    "title ." auto
    "intro ." auto / minmax(0, .62fr) minmax(0, 1fr);
  align-content: center;
  gap: 20px;
  padding: clamp(40px, 6vw, 96px) max(18px, calc((100% - var(--page)) / 2)) clamp(32px, 5vw, 72px);
  color: var(--ink);
  background: transparent;
}

.board-index-photo::after {
  content: none;
}

.board-index-photo > figure {
  position: absolute;
  inset: 0 0 0 44%;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.board-index-photo > figure img {
  object-position: 52% 54%;
  filter: saturate(.62) contrast(.90) brightness(1.06);
}

.board-index-photo > div {
  grid-area: title;
}

.board-index-photo h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(4rem, 8vw, 7.75rem);
  line-height: .9;
  letter-spacing: -.035em;
}

.board-index-photo > div > .eyebrow,
.board-family-heading .eyebrow,
.board-row-link > .board-index,
.board-finder-heading .eyebrow,
.board-finder-number,
.board-finder-results > header > .eyebrow,
.faq-section.compact .faq-list summary > span {
  display: none;
}

.board-index-photo > p {
  grid-area: intro;
  align-self: start;
  max-width: 38ch;
  padding: 0;
  color: var(--muted);
  font: 400 clamp(1rem, 1.38vw, 1.25rem) / 1.55 var(--font-body);
}

.filter-bar {
  top: 0;
  min-height: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 8px max(18px, calc((100% - var(--page)) / 2));
  border-top: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  backdrop-filter: none;
}

.filter-bar::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  mask-image: linear-gradient(transparent, #000 20px, #000 calc(100% - 12px), transparent);
  pointer-events: none;
  content: "";
}

.filter-bar > p {
  font: 600 .875rem / 1.4 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.filter-bar > div {
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  overflow: visible;
}

.filter-bar button {
  position: relative;
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: 500 .875rem / 1.2 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.filter-bar button.icon-action {
  padding-inline: 0;
}

.filter-bar button:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.filter-bar button.is-active {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 700;
}

.filter-bar button.is-active::after {
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  background: var(--rust);
  content: "";
}

.board-catalogue,
.related-shapes {
  padding-inline: max(18px, calc((100% - var(--page)) / 2));
  background: var(--paper);
}

.board-catalogue {
  padding-block: clamp(32px, 5vw, 80px);
}

.board-catalogue .filter-empty {
  color: var(--ink);
}

.board-family-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 24px;
  scroll-margin-top: 66px;
}

.board-family-group[hidden] {
  display: none;
}

.board-family-group + .board-family-group {
  margin-top: clamp(40px, 5vw, 80px);
  padding-top: 0;
  border: 0;
}

.board-family-heading {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: end;
  gap: 12px 24px;
  padding: 0 0 20px;
  color: var(--ink);
}

.board-family-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 1.45rem + 2.8vw, 3.9rem);
  line-height: .96;
  letter-spacing: -.035em;
}

.board-family-heading > p {
  max-width: 38ch;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

:is(.board-catalogue, .related-shapes) .board-rows {
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.board-catalogue .board-rows {
  grid-template-columns: minmax(0, 1fr);
}

.related-shapes .board-rows {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2.5vw, 40px);
}

:is(.board-catalogue, .related-shapes) .board-row {
  min-width: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

:is(.board-catalogue, .related-shapes) .board-row::after {
  content: none;
}

.board-row .board-row-link {
  height: 100%;
  grid-template:
    "shape shape" auto
    "name name" auto
    "copy copy" 1fr
    "facts arrow" auto / minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 12px;
  padding: 0 0 12px;
  color: var(--ink);
  transition: none;
}

.board-catalogue .board-row-link {
  min-height: 126px;
  grid-template: "shape name copy facts arrow" auto / minmax(140px, 1.24fr) minmax(0, .86fr) minmax(0, 1.15fr) minmax(0, .7fr) 36px;
  align-items: center;
  gap: clamp(8px, 1.7vw, 24px);
  padding: 8px 0;
}

.board-row .board-row-link:hover,
.board-row .board-row-link:focus-visible {
  color: var(--ink);
  background: transparent;
}

.board-row .board-row-link:focus-visible {
  z-index: 3;
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.board-row .board-row-message {
  display: contents;
}

.board-row .board-row-cutout-frame {
  grid-area: shape;
  width: 100%;
  height: clamp(180px, 22vw, 330px);
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.board-row .board-row-cutout-frame img,
.board-row:hover .board-row-cutout-frame img,
.board-row:focus-within .board-row-cutout-frame img {
  position: static;
  width: auto;
  max-width: 100%;
  height: 90%;
  filter: drop-shadow(3px 6px 4px #182a2b26);
  transform: none;
  transition: none;
}

.board-catalogue .board-row-cutout-frame {
  height: 108px;
  background: transparent;
  container-type: inline-size;
}

.board-catalogue .board-row .board-row-cutout-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  height: min(330px, 91cqw);
  transform: translate(-50%, -50%) rotate(90deg);
}

.board-row .board-row-name {
  grid-area: name;
  padding: 12px 0 0;
}

.board-catalogue .board-row-name {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 0;
}

.board-row .board-row-name p {
  margin: 0;
  color: var(--muted);
  font: 400 .82rem / 1.35 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
}

.board-row .board-row-name h3 {
  font-size: clamp(1.5rem, 2.35vw, 2.55rem);
  font-weight: 400;
  line-height: 1;
  overflow-wrap: break-word;
  transition: none;
}

.board-row:hover .board-row-name h3,
.board-row:focus-within .board-row-name h3 {
  transform: none;
}

.board-row-link:focus-visible .board-row-name h3 {
  color: var(--rust);
}

.board-row .board-row-copy {
  grid-area: copy;
  max-width: 36ch;
  padding: 8px 0 12px;
  color: var(--ink);
  font: 400 .95rem / 1.45 var(--font-body);
}

.board-catalogue .board-row-copy {
  padding: 0;
}

.board-row .board-row-meta,
.board-row-link:hover .board-row-meta,
.board-row-link:focus-visible .board-row-meta {
  display: grid;
  grid-area: facts;
  align-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font: 400 .8rem / 1.35 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.board-row .board-row-meta span {
  min-width: 0;
  gap: 6px;
}

.board-row .board-row-meta span:last-child {
  font-variant-numeric: tabular-nums;
}

.board-row .board-row-meta svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

.board-row .board-row-arrow {
  grid-area: arrow;
  align-self: end;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 0;
  background: transparent;
  color: var(--rust);
}

.board-catalogue .board-row-arrow {
  align-self: center;
}

.board-row .board-row-arrow svg {
  width: 20px;
  height: 20px;
  transition: none;
}

.board-row .board-row-link:hover .board-row-arrow svg {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .board-row-link:hover .board-row-name h3 { color: var(--rust); }

  @media (prefers-reduced-motion: no-preference) {
    .board-row:not(:where(.board-catalogue *)) .board-row-cutout-frame img,
    .board-row:not(:where(.board-catalogue *)):hover .board-row-cutout-frame img {
      transition: translate 220ms var(--motion-out), rotate 220ms var(--motion-out), scale 220ms var(--motion-out);
    }

    .board-row-link:not(:where(.board-catalogue *)):hover .board-row-cutout-frame img {
      translate: 0 -4px;
      rotate: -4deg;
      scale: 1.045;
    }

    .board-row:not(:where(.board-catalogue *)) .board-row-arrow svg { transition: transform 200ms var(--motion-out); }
    .board-row:not(:where(.board-catalogue *)) .board-row-link:hover .board-row-arrow svg { transform: translateX(4px); }
  }
}

@media (min-width: 1180px) {
  .board-family-group {
    grid-template-columns: minmax(180px, .27fr) minmax(0, 1fr);
  }

  .board-family-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding-top: 8px;
  }

  .board-family-heading h2 {
    font-size: clamp(2.4rem, 3.28vw, 4rem);
  }
}

/* Choice and comparison */
.board-finder {
  width: 100%;
  gap: clamp(26px, 5vw, 64px);
  padding-inline: max(18px, calc((100% - var(--page)) / 2));
  background: var(--paper);
}

.board-finder-heading {
  gap: clamp(18px, 4vw, 72px);
}

.board-finder-heading h2 {
  margin-top: 0;
  font-size: var(--heading-section);
  line-height: 1.04;
  text-wrap: balance;
}

.compare-guide h2 {
  margin-top: 0;
  font-size: clamp(1.625rem, 1.15rem + 1.35vw, 2.45rem);
  line-height: 1.08;
  text-wrap: pretty;
}

.compare-table [role="cell"]:last-child {
  font-family: var(--font-body);
  font-size: .8125rem;
  letter-spacing: 0;
  text-transform: none;
}

.board-finder-form {
  gap: 0;
  border: 0;
}

.board-finder-form fieldset {
  padding: 0 clamp(12px, 2vw, 24px) clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  background: var(--paper-light);
}

.board-finder-form fieldset + fieldset {
  border-left: 0;
}

.board-finder-form legend {
  width: auto;
  padding: 5px 5px 5px 0;
  font-size: clamp(1.18rem, 1.7vw, 1.65rem);
  font-weight: 600;
}

.board-finder-form legend span {
  color: var(--forest);
  font-family: var(--font-body);
  font-size: .82rem;
}

.board-finder-options label > span {
  font-family: var(--font-body);
  font-size: .925rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.board-finder-options label:hover > span {
  border-color: var(--forest);
}

.board-finder-options input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-light);
}

.board-finder-options input:focus-visible + span {
  outline-color: var(--forest);
}

.board-finder-results > header {
  grid-template-columns: minmax(0, 1fr);
}

.board-finder-results > header h3,
.board-finder-result h3 {
  font-weight: 600;
}

.board-finder-result > a {
  min-height: 0;
  grid-template-rows: 1fr auto auto;
  gap: 20px;
  background: var(--paper-light);
}

.board-finder-result > a:hover {
  background: var(--accent);
  color: var(--ink);
}

.board-finder-result > a:hover div > p:last-child {
  color: var(--ink);
}

.board-finder-result h3 {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: .98;
}

.board-finder-result div > p:last-child {
  margin-top: 14px;
}

.board-finder-result dl,
.board-finder-result dl > div + div {
  border-color: var(--line);
}

.board-finder-result dt,
.board-finder-link {
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.compare-guide > div > .eyebrow {
  display: none;
}

.faq-section.compact .faq-list summary {
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 12px;
}

.faq-section.compact .faq-list details > div {
  padding-left: 0;
}

/* Single-board hero and technical story */
.product-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.product-turntable > .product-model-nav {
  position: absolute;
  inset: calc(var(--header) + 6px) var(--board-gutter) auto;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: var(--ink);
  pointer-events: none;
}

.product-model-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-inline: 10px;
  color: inherit;
  background: transparent;
  font: 400 clamp(1rem, 2vw, 1.25rem) / 1.15 var(--font-headline);
  text-decoration: none;
  pointer-events: auto;
}

.product-model-nav a:is(:hover, :focus-visible) span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.product-model-nav a:focus-visible {
  outline-color: currentColor;
  outline-offset: 2px;
}

.product-model-nav svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 45.01rem) {
  .product-turntable > .product-hero.photo-fade-hero {
    --photo-header-scrim: linear-gradient(180deg, #142220ba, #142220b5 calc(var(--header) + 47px), transparent calc(var(--header) + 100px));
  }

  .product-turntable > .product-model-nav {
    color: var(--paper-light);
  }
}

@media (max-width: 45rem) {
  .product-turntable > .product-model-nav + .product-hero.product-hero-photo {
    padding-block-start: 58px;
  }
}

.product-page .product-hero.product-hero-photo {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  grid-template:
    "intro studio" 1fr
    "specs studio" auto / minmax(0, .87fr) minmax(0, 1.13fr);
  gap: 24px clamp(24px, 5vw, 80px);
  padding: clamp(24px, 4vw, 64px) max(18px, calc((100% - var(--page)) / 2));
  color: var(--ink);
  background: transparent;
}

.product-hero-photo::after {
  content: none;
}

.product-hero-photo .product-copy {
  grid-area: intro;
  max-width: 100%;
  align-self: center;
  padding: 0;
}

.product-hero-photo .product-copy > .eyebrow {
  color: var(--rust);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-hero-photo .product-copy h1 {
  max-width: 100%;
  margin: 12px 0 20px;
  font-size: clamp(3.4rem, 7.2vw, 6.75rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.product-hero-photo .product-lede {
  max-width: 32ch;
  margin-bottom: clamp(20px, 2vw, 32px);
  font-size: clamp(1.16rem, 1.62vw, 1.55rem);
  line-height: 1.32;
}

.product-hero-photo .product-primary-action {
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.product-primary-action > div {
  gap: 8px 20px;
}

.product-starting-price span,
.product-starting-price small {
  max-width: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-starting-price strong {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 2.45vw, 2.55rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.product-hero-photo .product-primary-action .button-link {
  min-height: 48px;
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper-light);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.product-hero-photo .product-primary-action .button-link:hover,
.product-hero-photo .product-primary-action .button-link:focus-visible {
  border-color: var(--ink);
  background: var(--accent);
  color: var(--ink);
}

.product-hero-photo .product-primary-action .text-link {
  min-height: 44px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

:is(.product-primary-action, .product-ending-actions) .icon-action {
  border: 1px solid var(--line);
}

:is(.product-primary-action, .product-ending-actions) .icon-action:is(:hover, :focus-visible) {
  border-color: var(--ink);
  background: var(--paper-light);
}

.product-hero-photo .product-specs {
  grid-area: specs;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, 1fr);
  border-color: var(--line);
}

.product-hero-photo .product-specs > div,
.product-hero-photo .product-specs > div + div {
  padding: 12px 12px 12px 0;
  border: 0;
}

.product-hero-photo .product-specs > div:first-child {
  padding-left: 0;
}

.product-hero-photo .product-specs span {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-hero-photo .product-specs strong {
  font: 600 .875rem / 1.36 var(--font-body);
  font-variant-numeric: tabular-nums;
}

.product-hero-photo .product-board-slider {
  grid-area: studio;
  width: 100%;
  gap: 0;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 0;
  background: transparent;
}

.product-hero-photo .product-board-stage {
  height: auto;
  min-height: clamp(388px, 56svh, 580px);
  background: radial-gradient(ellipse 48% 47% at center, var(--paper-2), transparent 100%);
}

.product-hero-photo .product-board-slide {
  transform: none;
}

.product-hero-photo .product-board-slide img {
  padding: clamp(18px, 2vw, 32px);
  filter: none;
}

.product-hero-photo .product-board-switch {
  display: flex;
  justify-content: center;
  gap: 16px;
  border: 0;
}

.product-hero-photo .product-board-switch button {
  padding-inline: 16px;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.product-hero-photo .product-board-switch button[aria-pressed="true"] {
  color: var(--rust);
  background: transparent;
  text-decoration: underline 2px;
  text-underline-offset: 6px;
}

.product-hero-photo .product-board-switch button:hover {
  background: var(--accent);
  color: var(--ink);
}

.product-hero-photo .product-board-switch button:focus-visible {
  outline-color: var(--ink);
  outline-offset: -4px;
}

.product-page .product-story {
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(24px, 7vw, 106px);
}

.product-story.brand-watermark::after {
  content: none;
}

.product-story .section-rail-board {
  grid-template-rows: auto auto auto;
  align-self: start;
  gap: 16px;
}

.product-story .section-rail-board .eyebrow {
  display: none;
}

.product-story-image {
  aspect-ratio: 5 / 6;
  margin: 0;
  overflow: hidden;
}

.product-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.73) contrast(.92) brightness(1.06);
}

.product-story h2 {
  max-width: 26ch;
  font-size: var(--heading-narrative);
  line-height: 1.06;
  text-wrap: pretty;
}

.product-story .product-deep-copy {
  padding-left: 18px;
  border-left: 1px solid var(--forest);
}

.product-tech-grid > div {
  min-height: 0;
  background: var(--paper-light);
}

.product-tech-grid dt {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.product-tech-grid dd {
  margin-top: 10px;
}

.product-photo-statement {
  width: 100%;
  min-height: clamp(350px, 38vw, 560px);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
  padding-inline-end: max(18px, calc((100% - var(--page)) / 2));
  color: var(--ink);
  background: transparent;
}

.product-photo-statement figure {
  position: relative;
  inset: auto;
  z-index: 0;
  align-self: stretch;
  margin: 0;
  overflow: hidden;
}

.product-photo-statement figure::after {
  content: none;
}

.product-photo-statement figure img {
  position: absolute;
  inset: 0;
  filter: saturate(.62) contrast(.88) brightness(1.10);
}

.product-photo-statement img:is([src$="/water-light-rocks.webp"], [src$="/surfer-horizon.webp"], [src$="/beach-lines-board.webp"]) {
  filter: saturate(.78) contrast(.98) brightness(1.025);
}

.product-photo-statement img:is([src$="/dune-haze.webp"], [src$="/dune-ripples.webp"]) {
  filter: saturate(.68) contrast(.94) brightness(1.04);
}

.product-photo-statement img[src$="/wave-lip-spray.webp"] { object-position: 50% 52%; }
.product-photo-statement img[src$="/ocean-storm.webp"] { object-position: 50% 46%; }
.product-photo-statement img[src$="/rain-on-ocean.webp"] { object-position: 52% 50%; }
.product-photo-statement img[src$="/surfer-horizon.webp"] { object-position: 62% 56%; }
.product-photo-statement img[src$="/surfer-board-silhouette.webp"] { object-position: 68% 50%; }
.product-photo-statement img[src$="/water-light-rocks.webp"] { object-position: 54% 50%; }
.product-photo-statement img[src$="/dune-haze.webp"] { object-position: 50% 62%; }
.product-photo-statement img[src$="/dune-ripples.webp"] { object-position: 54% 44%; }
.product-photo-statement img[src$="/beach-lines-board.webp"] { object-position: 50% 58%; }
.product-photo-statement img[src$="/night-green-lights.webp"] { object-position: 58% 48%; }
.product-photo-statement img[src$="/dark-water-ripple.webp"] { object-position: 50% 48%; }

.product-photo-statement .photo-story-copy {
  position: relative;
  z-index: 1;
  width: min(100%, clamp(19rem, 32vw, 31rem));
  align-self: center;
  justify-self: end;
  margin: 0;
  padding: 0;
}

.product-photo-statement .photo-story-copy h2 {
  max-width: 20ch;
  margin: 0 0 16px;
  font-size: var(--heading-narrative);
  line-height: 1.04;
  text-wrap: balance;
}

.product-photo-statement .photo-story-copy > p:not(.eyebrow) {
  font: 400 1.05rem / 1.55 var(--font-body);
}

.product-photo-statement .photo-story-copy .eyebrow {
  display: none;
}

/* Gallery, dimensions and stock */
.product-gallery-shell,
.product-gallery {
  background: var(--paper);
}

.product-gallery-shell {
  padding-top: clamp(48px, 6vw, 88px);
  color: var(--ink);
}
.product-gallery-heading > p { color: var(--muted); }

.product-gallery {
  --masonry-gap: clamp(5px, .8vw, 12px);
  width: var(--page);
  margin-inline: auto;
  padding: 0 0 clamp(42px, 7vw, 88px);
}

.product-gallery-heading {
  gap: clamp(20px, 5vw, 70px);
  padding: 0 max(18px, calc((100% - var(--page)) / 2)) clamp(24px, 5vw, 60px);
}

.product-gallery-heading h2 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--heading-section);
  line-height: 1.04;
  text-wrap: balance;
}

.product-gallery-heading .eyebrow {
  display: none;
}

.product-gallery .gallery-open img {
  filter: none;
}

.product-gallery .studio-board-view { background: var(--paper-2); }

.product-gallery .gallery-open:focus-visible {
  outline-color: var(--rust);
}

.product-gallery figcaption {
  color: var(--paper-light);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: 0;
  text-transform: none;
}

.gallery-lightbox {
  background: var(--ink);
}

.gallery-lightbox :is(header button, .gallery-lightbox-nav) svg {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox header button:hover {
  background: var(--accent);
  color: var(--ink);
}

.size-chart-section {
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(28px, 5.5vw, 84px);
  padding-inline: max(18px, calc((100% - var(--page)) / 2));
  background: var(--paper);
}

.size-chart-intro {
  top: 18px;
}

.size-chart-intro > .eyebrow {
  display: none;
}

.size-chart-intro h2 {
  max-width: 22ch;
  margin: 0 0 clamp(12px, 2vw, 24px);
  font-size: var(--heading-narrative);
  line-height: 1.08;
  text-wrap: pretty;
}

.size-table-scroll {
  border-radius: 0;
  scrollbar-color: var(--forest) var(--paper-2);
}

.size-table {
  min-width: 490px;
}

.size-table caption {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.size-table tbody :is(th, td),
.size-table tbody tr:hover > * {
  padding: 10px 12px 10px 8px;
}

.size-table tbody tr:hover {
  background: var(--accent);
  color: var(--ink);
}

.size-table tbody tr:hover .size-cart-cell {
  padding-left: 8px;
}

.size-cart-link {
  width: 44px;
  height: 44px;
  background: var(--paper-light);
}

.size-cart-link:hover {
  border-color: var(--forest);
  background: var(--forest);
  transform: none;
}

.shop-stock-section {
  padding: clamp(48px, 6vw, 88px) max(18px, calc((100% - var(--page)) / 2));
  background: var(--forest);
}

.shop-stock-heading {
  gap: clamp(20px, 5vw, 72px);
  padding-bottom: clamp(24px, 5vw, 54px);
}

.shop-stock-heading h2 {
  max-width: none;
  font-size: var(--heading-section);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.shop-stock-heading > p,
.shop-stock-footer > p,
.shop-stock-unavailable {
  color: var(--paper-light);
}

.shop-stock-card {
  background: var(--ink);
}

.shop-stock-card:hover {
  background: var(--ink-soft);
  transform: none;
}

.shop-stock-card figure::after {
  content: none;
}

.shop-stock-card figure > span {
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.shop-stock-card img {
  padding: 0;
}

.shop-stock-card-copy {
  min-height: 0;
  gap: 18px;
  padding: clamp(16px, 2vw, 26px);
}

.shop-stock-card-copy > div {
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.shop-stock-card-copy strong {
  font: 650 clamp(1.28rem, 2vw, 1.85rem) / 1.12 var(--font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.shop-stock-card-copy > .eyebrow {
  display: none;
}

.shop-stock-card-copy > div span {
  font: 600 .82rem / 1.4 var(--font-body);
  letter-spacing: 0;
  text-align: start;
  text-transform: none;
}

.shop-stock-card-copy h3 {
  margin-top: 0;
  font-weight: 600;
}

.shop-stock-skeleton {
  min-height: 0;
  padding-bottom: 18px;
}

.shop-stock-skeleton > div {
  background: var(--ink-soft);
  animation: none;
}

.shop-stock-unavailable {
  padding: clamp(24px, 5vw, 64px) 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.related-shapes .section-heading h2 {
  font-size: var(--heading-section);
  line-height: 1.06;
  text-wrap: balance;
}

@media (max-width: 1000px) {
  .related-shapes .board-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .filter-bar { position: static; }
  .filter-bar::before { content: none; }

  .board-family-group { scroll-margin-top: 0; }
}

@media (max-width: 800px) {
  .board-index-hero.board-index-photo {
    min-height: 0;
    grid-template: "title" auto "intro" auto "image" auto / minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding-bottom: 0;
  }

  .board-index-photo h1 {
    font-size: clamp(3.3rem, 10vw, 5.2rem);
  }

  .board-index-photo > figure {
    position: relative;
    inset: auto;
    grid-area: image;
    aspect-ratio: 2 / 1;
    max-height: 320px;
    margin-inline: calc(-1 * max(18px, (100% - var(--page)) / 2));
  }

  .board-index-photo > p { max-width: 42ch; }
  .board-index-photo > figure img { object-position: 52% 60%; }

  .board-family-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
  }

  .board-catalogue .board-row-link {
    grid-template:
      "shape name arrow" auto
      "shape copy arrow" 1fr
      "shape facts arrow" auto / minmax(74px, .50fr) minmax(0, 1fr) 28px;
    align-items: start;
    gap: 6px 12px;
    padding: 12px 0;
  }

  .board-catalogue .board-row-cutout-frame {
    height: 100%;
    min-height: 179px;
  }

  .board-catalogue .board-row .board-row-cutout-frame img {
    position: static;
    width: auto;
    max-width: 88%;
    height: 163px;
    transform: none;
  }

  .board-finder-form {
    gap: 18px;
  }

  .board-finder-form fieldset + fieldset {
    border-left: 1px solid var(--line);
  }

  .board-finder-submit {
    margin-top: 0;
  }

  .product-page .product-hero.product-hero-photo {
    grid-template: "intro" auto "studio" auto "specs" auto / minmax(0, 1fr);
  }

  .product-hero-photo .product-copy h1 {
    font-size: clamp(3.4rem, 9vw, 5.3rem);
  }

  .product-hero-photo .product-board-stage {
    min-height: clamp(310px, 51svh, 480px);
  }

  .product-page .product-story,
  .size-chart-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-story-image {
    aspect-ratio: 4 / 3;
  }

  .product-story .section-rail-board {
    grid-row: 2;
  }

  .size-chart-intro {
    position: static;
  }

  .product-photo-statement {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 12px;
    padding-inline: max(18px, calc((100% - var(--page)) / 2));
  }

  .product-photo-statement figure {
    aspect-ratio: 2 / 1;
    margin-inline: calc(-1 * max(18px, (100% - var(--page)) / 2));
  }

  .product-photo-statement .photo-story-copy { width: 100%; }
}

@media (max-width: 540px) {
  .filter-bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-block: 8px;
  }

  .filter-bar > div {
    padding: 2px 0;
  }

  .filter-bar button {
    padding-inline: 10px;
    font-size: .82rem;
  }

  .related-shapes .board-rows {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-shapes .board-row .board-row-cutout-frame {
    height: 100%;
    min-height: 179px;
  }

  .related-shapes .board-row .board-row-cutout-frame img {
    height: 163px;
    max-width: 88%;
  }

  .related-shapes .board-row .board-row-link {
    grid-template:
      "shape name arrow" auto
      "shape copy arrow" 1fr
      "shape facts arrow" auto / minmax(74px, .50fr) minmax(0, 1fr) 28px;
    gap: 6px 12px;
    padding: 12px 0;
  }

  .related-shapes .board-row-name {
    padding: 0;
  }

  .board-row .board-row-copy {
    padding: 0;
    font-size: .88rem;
  }

  .board-row .board-row-meta {
    font-size: .72rem;
  }

  .board-row .board-row-arrow {
    align-self: center;
    width: 28px;
  }

  .product-hero-photo .product-copy h1 {
    margin-block: 10px 14px;
    font-size: clamp(3.1rem, 11vw, 4rem);
  }

  .product-hero-photo .product-lede {
    margin-bottom: 17px;
  }

  .product-hero-photo .product-primary-action {
    gap: 12px;
  }

  .product-primary-action > div {
    row-gap: 2px;
  }

  .product-hero-photo .product-board-stage {
    min-height: clamp(265px, 36svh, 330px);
  }

  .product-hero-photo .product-specs > div,
  .product-hero-photo .product-specs > div + div {
    padding-inline: 8px;
  }

  .product-hero-photo .product-specs > div:first-child {
    padding-left: 0;
  }

  .product-gallery {
    width: 100%;
    padding-inline: 6px;
  }

  .shop-stock-grid {
    grid-auto-columns: minmax(76%, 1fr);
    margin-right: 0;
    padding-right: 0;
    overscroll-behavior-inline: contain;
  }
}
