
/* Product pages share the type and links. Each material has its own page composition. */
.product-editorial {
  color: #19352a;
}

.product-editorial :is(h1, h2, h3, p, figure) {
  margin: 0;
}

.product-editorial :is(h1, h2, h3) {
  font-family: var(--display);
  font-weight: 480;
  text-wrap: balance;
}

.product-editorial h1 {
  font-size: clamp(3.7rem, 9.7vw, 10.25rem);
  letter-spacing: -.074em;
  line-height: .96;
}

.product-editorial h2 {
  font-size: clamp(2.45rem, 4.75vw, 5rem);
  line-height: 1.03;
  letter-spacing: -.061em;
}

.product-editorial p {
  font-size: clamp(1.08rem, 1.32vw, 1.3rem);
  line-height: 1.52;
}

.product-inline {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  color: inherit;
  font-size: 1.04rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}

.product-inline:hover, .product-inline:focus-visible {
  text-decoration-thickness: 2px;
}

.product-inline:active {
  opacity: .78;
}

.timber-plate {
  padding-block-start: clamp(1.8rem, 4.1vw, 4.5rem);
}

.timber-plate .timber-panorama {
  margin-block-start: clamp(1.25rem, 2.15vw, 2.3rem);
  overflow: hidden;
  border-radius: .85rem;
  background: #74623b;
  aspect-ratio: 1.63;
}

.timber-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
}

.timber-introduction {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  padding-block: clamp(1.35rem, 2vw, 2.3rem);
  border-bottom: 1px solid #c4cabb;
}

.timber-introduction p {
  max-width: 56ch;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1.38;
}

.timber-applications {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(3.6rem, 7.8vw, 8rem);
}

.timber-drawers {
  margin-block-start: clamp(1.6rem, 3vw, 3.1rem);
}

.timber-drawers details {
  border-top: 1px solid #aab5a7;
}

.timber-drawers details:last-child {
  border-bottom: 1px solid #aab5a7;
}

.timber-drawers summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.7rem;
  padding-block: 1rem;
  font-family: var(--display);
  font-size: clamp(1.23rem, 1.55vw, 1.65rem);
  font-weight: 520;
  letter-spacing: -.035em;
  line-height: 1.23;
  cursor: pointer;
  list-style: none;
}

.timber-drawers summary::-webkit-details-marker {
  display: none;
}

.timber-drawers summary::after {
  content: '';
  width: 1.65rem;
  height: 1.65rem;
  flex: none;
  border: 1px solid #889789;
  border-radius: 50%;
  color: #19352a;
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 9px no-repeat;
}

.timber-drawers details[open] summary::after {
  color: #f6f5ef;
  background: linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat #19352a;
  border-color: #19352a;
}

.timber-drawers summary:hover, .timber-drawers summary:active {
  color: #695027;
}

.timber-drawers summary:focus-visible, .fuel-use-links a:focus-visible {
  outline: 3px solid #866529;
  outline-offset: 3px;
}

.timber-drawer-body {
  max-width: 52ch;
  padding: 0 1.25rem 1rem 0;
  color: #3e4d42;
}

.timber-drawer-body .product-inline {
  margin-block-start: .25rem;
  color: #19352a;
}

.timber-drawing {
  overflow: hidden;
  align-self: center;
  border-radius: 1rem;
  background: #203c31;
  color: #f6f5ef;
}

.timber-blueprint {
  display: block;
  width: 100%;
  height: auto;
  padding: clamp(.75rem, 1.6vw, 1.75rem);
  background-image: linear-gradient(90deg, #b5bc8c10 1px, transparent 1px), linear-gradient(#b5bc8c10 1px, transparent 1px);
  background-size: 23px 23px;
}

.timber-drawing figcaption {
  padding: clamp(1.25rem, 2vw, 2rem);
  border-top: 1px solid #59705f;
}

.timber-drawing h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.3rem);
  letter-spacing: -.045em;
}

.timber-drawing p {
  max-width: 43ch;
  margin-block: .5rem;
  color: #e1e8d9;
  font-size: 1.06rem;
}

.timber-drawing .product-inline {
  color: #f0d49a;
}

.fuel-opening {
  background: #322920;
  color: #fffaf1;
}

.fuel-opening-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
  padding-block: clamp(2.2rem, 4.4vw, 4.8rem);
}

.fuel-text h1 {
  max-width: 10ch;
  font-size: clamp(3.65rem, 7.5vw, 7.8rem);
}

.fuel-text p {
  max-width: 37ch;
  color: #f0e5d4;
  margin-block: clamp(1rem, 1.9vw, 1.9rem) 1.4rem;
}

.fuel-text .fuel-enquire {
  border: 1px solid #ead29f;
  color: #322920;
  background: #ead29f;
}

.fuel-text .fuel-enquire:is(:hover, :focus-visible) {
  color: #211d17;
  background: #fff4de;
  border-color: #fff4de;
}

.fuel-text .fuel-enquire:focus-visible {
  outline-color: #fff4de;
}

.fuel-sample {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1.7;
  border-radius: 50% 50% .7rem .7rem / 18% 18% .7rem .7rem;
  background: #80623c;
}

.fuel-sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}

.fuel-applications {
  padding-block: clamp(3.55rem, 7.75vw, 8rem);
}

.fuel-apps-intro {
  display: grid;
  gap: 1.1rem;
  align-items: end;
}

.fuel-apps-intro h2 {
  max-width: 14ch;
}

.fuel-apps-intro p {
  color: #435348;
  max-width: 46ch;
}

.fuel-picker {
  margin-block-start: clamp(1.7rem, 3.6vw, 3.7rem);
}

.fuel-use-links {
  display: grid;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}

.fuel-use-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem .6rem;
  border: 1px solid #b8b8a8;
  border-radius: .42rem;
  background: transparent;
  color: #3d463b;
  font-weight: 600;
  font-size: 1.01rem;
  line-height: 1.23;
  text-align: center;
}

.fuel-use-links a:is(:hover, :active) {
  background-color: #e5ded0;
  border-color: #9b8b70;
}

.fuel-use-links a[aria-selected="true"] {
  border-color: #a39880;
  background: #e9e2d5;
  color: #3c3328;
}

.fuel-running-marker {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  height: 3px;
  border-radius: 4px;
  background: #80572d;
}

.fuel-use-panels {
  margin-block-start: .85rem;
  overflow: hidden;
  border-radius: .8rem;
  background: #e9e2d5;
}

.fuel-use-panel {
  display: grid;
  align-content: center;
  gap: .75rem;
  padding: clamp(1.5rem, 4vw, 4.25rem);
  scroll-margin-top: 1.3rem;
  color: #3c3328;
}

.fuel-use-panel + .fuel-use-panel {
  border-top: 1px solid #bcad97;
}

.fuel-picker.enhanced .fuel-use-panel {
  border: none;
}

.fuel-use-panel h3 {
  font-size: clamp(1.75rem, 2.7vw, 3.05rem);
  line-height: 1.07;
  letter-spacing: -.051em;
}

.fuel-use-panel p {
  max-width: 50ch;
  font-size: clamp(1.06rem, 1.23vw, 1.2rem);
}

.fuel-use-panel .product-inline {
  margin-block-start: .5rem;
}

.fuel-guide {
  margin-block-start: .85rem;
}

@media (min-width: 48rem) {
  .timber-plate .timber-panorama {
    aspect-ratio: 3.45;
  }

  .timber-applications {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  }

  .fuel-opening-grid {
    grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
    column-gap: clamp(2rem, 5vw, 6rem);
  }

  .fuel-sample {
    aspect-ratio: 1.35;
    border-radius: 48% 1rem 1rem 48% / 66% 1rem 1rem 66%;
  }

  .fuel-apps-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    column-gap: clamp(2rem, 5vw, 6rem);
  }

  .fuel-use-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fuel-use-panel {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 6rem);
    min-height: 13rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .timber-plate .timber-panorama {
    animation: timber-uncover 1.05s cubic-bezier(.22,.66,.25,1) both;
  }

  .timber-panorama img {
    animation: timber-settle 1.1s ease-out both;
  }

  .fuel-sample {
    animation: fuel-aperture 1.1s cubic-bezier(.24,.65,.26,1) both;
  }

  .fuel-sample img {
    animation: fuel-settle 1.22s cubic-bezier(.2,.6,.24,1) both;
  }

  .fuel-running-marker {
    transition: transform .36s cubic-bezier(.22,.75,.28,1), width .2s ease;
  }

  .fuel-picker.enhanced .fuel-use-panel:not([hidden]) > * {
    animation: fuel-panel-in .32s cubic-bezier(.17,.62,.24,1) both;
  }

  .timber-drawers details[open] .timber-drawer-body {
    animation: material-detail .25s ease-out both;
  }

  .product-inline span {
    transition: transform .18s ease;
  }

  .product-inline:is(:hover, :focus-visible) span {
    transform: translate(2px,-2px);
  }

  @keyframes material-detail {
    from { opacity: .3; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes timber-uncover {
    from { clip-path: inset(0 71% 0 0 round .85rem); }
    to { clip-path: inset(0 0 0 0 round .85rem); }
  }

  @keyframes timber-settle {
    from { transform: scale(1.06) translateX(-2.3%); }
    to { transform: none; }
  }

  @keyframes fuel-aperture {
    from { clip-path: ellipse(18% 25% at 63% 54%); }
    to { clip-path: ellipse(108% 132% at 60% 54%); }
  }

  @keyframes fuel-settle {
    from { transform: scale(1.13); }
    to { transform: none; }
  }

  @keyframes fuel-panel-in {
    from { transform: translateX(var(--fuel-panel-shift, 24px)); opacity: .65; }
    to { transform: none; opacity: 1; }
  }
}
