@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
#spc-panels, #dealer-specifications, #slatted-panels, #fire-resistant {
  scroll-margin-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 16px);
}
.parts-jumps a { position: relative; }
.parts-jumps a:hover { text-decoration: none; }
.parts-jumps a::after {
  content: "";
  position: absolute;
  inset: auto 0 7px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}
.parts-jumps a:is([aria-current], :focus-visible)::after { transform: scaleX(1); }
@media (hover: hover) {
  .parts-jumps a:hover::after { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .parts-jumps a::after { transition: transform .2s ease-out; }
}
.spc-feature {
  --spc-line: #c6c5b8;
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  grid-template-areas: "intro gallery" "selector gallery";
  align-items: start;
  align-content: center;
  gap: 0 clamp(28px, 5vw, 80px);
  padding-block: clamp(6px, 2vw, 24px);
}
.spc-copy { grid-area: intro; }
.spc-brand {
  margin: 0 0 12px;
  color: #52604f;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.spc-feature h1 { font-size: clamp(44px, 4.9vw, 74px); line-height: 1.02; text-wrap: balance; }
.spc-lead { max-width: 43ch; color: #485044; margin: 15px 0 20px; font-size: clamp(16px, 1.25vw, 18px); }
.spc-gallery { grid-area: gallery; min-width: 0; align-self: center; }
.spc-frame { margin: 0; }
.spc-image { position: relative; }
.spc-image .spc-inset { position: absolute; left: 3%; bottom: 4%; width: clamp(62px, 7vw, 98px); aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 50%; border: 2px solid #fffdf8; box-shadow: 0 2px 8px #292b242b; }
.spc-image > img:first-child {
  width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: #eae7dc; border-radius: 3px;
}
.spc-frame figcaption {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px;
  padding: 10px 0 8px; border-bottom: 1px solid var(--spc-line);
}
.spc-frame figcaption strong { font-size: 15px; font-weight: 550; }
.spc-frame figcaption span { color: #51574c; font-size: 12px; letter-spacing: .015em; }
.spc-selection { grid-area: selector; min-width: 0; }
#spc-picker { padding: 0; border: 0; margin: 0; min-width: 0; }
#spc-picker legend { padding: 0; margin-bottom: 10px; font-size: 19px; font-weight: 550; }
.spc-family + .spc-family { margin-top: 10px; }
.spc-family h3 { margin: 0 0 4px; font: 500 13px/1.4 var(--font-text); color: #495243; }
.spc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.spc-chip { position: relative; display: block; padding: 4px; cursor: pointer; }
.spc-chip input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.spc-chip img {
  width: clamp(38px, 3vw, 50px); height: 39px; object-fit: cover; border: 1px solid #787b6b63;
  border-radius: 2px; transition: transform .16s ease;
}
.spc-chip input:checked + img { outline: 2px solid #3c4937; outline-offset: 2px; }
.spc-chip input:focus-visible + img { outline: 3px dashed #774c19; outline-offset: 2px; }
.spc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; margin-top: 19px; }
.spc-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.spc-status:not(:empty) { display: block; margin: 6px 0 0; color: #3f513b; font-size: 14px; }
.spc-spec-link {
  display: flex; align-items: center; min-height: 46px; border-top: 1px solid var(--spc-line);
  margin-top: 16px; font-size: 14px; width: fit-content; max-width: 100%; text-underline-offset: .22em;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .spc-chip:hover img { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  .spc-frame:not([hidden]) .spc-image { animation: show-spc .24s ease-out; }
  @keyframes show-spc { from { opacity: .76; } to { opacity: 1; } }
}
@media (max-width: 800px) {
  .spc-feature { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "gallery" "selector"; gap: 14px; }
  .spc-brand { margin-bottom: 7px; }
  .spc-lead { max-width: 58ch; margin: 8px 0 0; }
  .spc-image > img:first-child { max-height: 520px; }
  .spc-frame figcaption { padding-top: 7px; }
  .spc-actions { margin-top: 14px; }
}

.dealer-sheet { padding-block: clamp(30px, 4.4vw, 65px) clamp(20px, 3vw, 46px); border-bottom: 1px solid #bfc0b1; }
.dealer-sheet-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.dealer-sheet-head h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); }
.dealer-sheet-head .spc-brand { margin-bottom: 6px; }
#dealer-finish { margin: 8px 0 0; font-size: 14px; color: #465143; }
#dealer-model, .dealer-profile strong { font-variant-numeric: tabular-nums; }
.dealer-print { font-size: 14px; }
.dealer-columns { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.dealer-sheet h3 { font: 500 clamp(20px, 2vw, 26px)/1.22 var(--font-text); letter-spacing: -.025em; margin: 0 0 12px; }
.dealer-formats > h3:not(:first-child) { margin-top: 25px; }
.dealer-formats > p, .dealer-profiles header p, .dealer-profile-body p { color: #495043; margin: 6px 0 11px; font-size: 15px; line-height: 1.55; }
.dealer-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 15px; font-variant-numeric: tabular-nums; }
.dealer-table th, .dealer-table td {
  text-align: left; vertical-align: top; padding: 10px clamp(5px, .8vw, 12px); border-bottom: 1px solid #d0d1c5;
  font-weight: 400; overflow-wrap: break-word; line-height: 1.4;
}
.dealer-table th:first-child { width: 35%; padding-left: 0; }
.dealer-table thead th { border-block: 1px solid #969e8e; font-weight: 600; }
.dealer-sheet[data-series="uv"] .dealer-table tr > :nth-child(2),
.dealer-sheet[data-series="yy"] .dealer-table tr > :nth-child(3) { background: #e8ecdf; }
.dealer-formats .dealer-footnote { font-size: 13px; margin-top: 10px; }
.dealer-profiles header { margin-bottom: 12px; }
.dealer-profile { border-top: 1px solid #bfc0b1; }
.dealer-profile:last-child { border-bottom: 1px solid #bfc0b1; }
.dealer-profile summary { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 2px; cursor: pointer; list-style: none; }
.dealer-profile summary::-webkit-details-marker { display: none; }
.dealer-profile summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: #455640; }
.dealer-profile[open] summary::after { content: "−"; }
.dealer-profile summary:focus-visible { outline: 3px solid #976237; outline-offset: -2px; }
.dealer-profile summary strong { font-size: 14px; }
.dealer-profile-body { padding: 0 0 8px; }
.dealer-profile-thumb {
  display: block; width: 58px; height: 52px; flex: none; object-fit: contain;
  background: #faf9f6; border: 1px solid #d7d6cb; border-radius: 3px;
}
.dealer-profile-body > img { display: block; width: 100%; max-width: 300px; height: auto; background: white; }
.dealer-install-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.dealer-install-views figure { margin: 0; }
.dealer-install-views img { display: block; width: 100%; height: auto; border: 1px solid #d7d6cb; }
.dealer-install-views figcaption { margin-top: 4px; font-size: 12px; line-height: 1.35; color: #495043; }
.dealer-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; border-top: 1px solid #c7c8bc; margin-top: 25px; padding-top: 13px; color: #495043; }
.dealer-source p { font-size: 12px; margin: 0; }
@media (max-width: 800px) {
  .dealer-columns { grid-template-columns: minmax(0, 1fr); }
  .dealer-table { font-size: 14px; }
  .dealer-sheet-head { align-items: flex-start; }
}
@media print {
  @page { margin: 14mm; }
  html, body { margin: 0 !important; padding: 0 !important; background: white !important; color: #121711; }
  body > :not(main), main > :not(#dealer-specifications), #print-spc-specs, .dealer-profiles header p { display: none !important; }
  main.wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
  .dealer-sheet { border: 0; padding: 0; }
  .dealer-sheet-head { margin: 0 0 12pt; }
  .dealer-sheet-head h2 { font-size: 24pt; }
  .dealer-columns { display: block; }
  .dealer-sheet h3 { font-size: 14pt; }
  .dealer-formats > p, .dealer-profile-body p, .dealer-table { font-size: 10pt; }
  .dealer-formats > h3:not(:first-child) { margin-top: 13pt; }
  .dealer-table td, .dealer-table th { padding: 5pt; }
  .dealer-formats .dealer-footnote, .dealer-source p { font-size: 9pt; }
  .dealer-profiles { break-before: page; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6pt 14pt; }
  .dealer-profiles header { grid-column: 1 / -1; margin: 0; }
  .dealer-profile { break-inside: avoid; }
  .dealer-profile summary { min-height: 0; padding: 6pt 0; gap: 8pt; }
  .dealer-profile summary::after { display: none; }
  .dealer-profile-body { padding: 0; }
  .dealer-profile-thumb { width: 28pt; height: 24pt; }
  .dealer-profile-body > img { width: 100%; height: 49pt; object-fit: contain; object-position: left center; }
  .dealer-install-views { gap: 6pt; margin: 3pt 0; }
  .dealer-install-views img { width: 100%; height: 46pt; object-fit: contain; border: 0; object-position: left center; }
  .dealer-install-views figcaption { font-size: 7.5pt; margin: 2pt 0; }
  .dealer-source { margin-top: 10pt; }
}
