/* Product pages (/products/<series>). Loaded after style.css, quonset.css and state.css.
   The hero, light "paper" band, Made-in-America band, steps, Jodi and FAQ reuse those styles;
   this file adds the spec sheet, photo gallery and lightbox, the clearance strip and the series comparison. */

/* Spec sheet: what the series is, in one scan */
.pd-spec { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.pd-spec h3 { font: 400 1.9rem/1.1 var(--font-display); letter-spacing: .02em; margin-bottom: .9rem; }
.pd-spec dl { margin: 0; border-top: 2px solid #152947; }
.pd-spec dl div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid #ddd8cc; }
.pd-spec dt { font-weight: 600; color: #152947; font-size: .95rem; }
.pd-spec dd { margin: 0; color: #33425a; font-size: .95rem; line-height: 1.55; }
.pd-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pd-lists h4 { font: 600 .78rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #8a5d00; margin: 0 0 .5rem; }
.pd-lists ul { margin: 0; padding-left: 1.1rem; color: #33425a; font-size: .92rem; line-height: 1.7; }
.pd-lists .pd-not { grid-column: 1 / -1; margin: 0; padding: .8rem 1rem; background: #fff; border: 1px solid #ddd8cc; border-radius: 6px; font-size: .9rem; color: #33425a; }
.pd-legacy { margin: 1.25rem 0 0; padding: .9rem 1rem; background: #fff; border: 1px solid #ddd8cc; border-left: 4px solid #e6a80f; border-radius: 6px; font-size: .92rem; line-height: 1.6; color: #33425a; }
.pd-legacy strong { color: #152947; }

/* Gallery */
.pd-gallery-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.1rem; }
.pd-gallery-head h3 { font: 400 1.9rem/1.1 var(--font-display); letter-spacing: .02em; margin: 0; }
.pd-gallery-head p { margin: 0; font-size: .92rem; }
.pd-gallery { list-style: none; padding: 0; margin: 0 0 clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pd-gallery li { margin: 0; min-width: 0; }
.pd-gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: inherit; }
.pd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; transition: transform .2s ease, box-shadow .2s ease; }
.pd-gallery button:hover img, .pd-gallery button:focus-visible img { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(21, 41, 71, .25); }
.pd-gallery button:focus-visible { outline: 3px solid #e6a80f; outline-offset: 3px; border-radius: 6px; }
.pd-gallery span { display: block; margin-top: .45rem; font-size: .85rem; line-height: 1.4; color: #33425a; }
.pd-gallery--one { grid-template-columns: minmax(0, 640px); }

.pd-lightbox { width: min(1100px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: 8px; background: #0d1828; color: #fff; }
.pd-lightbox::backdrop { background: rgba(5, 10, 20, .86); }
.pd-lightbox figure { margin: 0; }
.pd-lightbox img { display: block; width: 100%; max-height: calc(94vh - 4.5rem); object-fit: contain; background: #000; }
.pd-lightbox figcaption { padding: .85rem 4.5rem .95rem 1rem; font-size: .92rem; color: #d7deea; }
.pd-lb-btn { position: absolute; border: 0; background: rgba(13, 24, 40, .8); color: #fff; font-size: 1.8rem; line-height: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer; }
.pd-lb-btn:focus-visible { outline: 3px solid #e6a80f; }
.pd-lb-close { top: .6rem; right: .6rem; }
.pd-lb-prev { top: 45%; left: .6rem; }
.pd-lb-next { top: 45%; right: .6rem; }

/* Clearance strip */
.pd-clearance { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1.25rem clamp(1.5rem, 4vw, 3rem); align-items: center; margin-bottom: clamp(2rem, 5vw, 3rem); padding: clamp(1.2rem, 3vw, 1.75rem); background: #fff; border: 2px solid #b22234; border-radius: 8px; }
.pd-clearance-flag { display: inline-block; margin: 0 0 .6rem !important; padding: .25rem .6rem; background: #b22234; border-radius: 3px; color: #fff !important; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.quonset-page .pd-clearance h3 { font: 400 clamp(1.7rem, 2.6vw, 2.2rem)/1.05 var(--font-display); color: #152947; margin: 0 0 .5rem; }
.pd-clearance p { margin: 0; font-size: .96rem; }
.pd-clearance .lp-call { width: 100%; border: 0; cursor: pointer; }
.pd-clearance-cta p { margin-top: .7rem; text-align: center; font-size: .9rem; }
.pd-clearance-cta a { color: #152947; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }

/* Compare the four series */
.pd-compare { background: #111c2e; }
.pd-compare h2 { margin-bottom: .6rem; }
.pd-compare .lp-muted { max-width: 64ch; margin-bottom: 1.5rem; }
.pd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pd-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; }
.pd-table th, .pd-table td { padding: .85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid #30415d; color: #d7deea; }
.pd-table thead th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #8d98ab; font-weight: 600; }
.pd-table tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.pd-table tbody th a { color: #ffd166; text-decoration: underline; text-underline-offset: .2em; }
.pd-table tr.pd-current th, .pd-table tr.pd-current td { background: rgba(230, 168, 15, .1); }
.pd-table tr.pd-current th { color: #ffd166; }

@media (max-width: 900px) {
  .pd-spec, .pd-clearance { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-spec dl div { grid-template-columns: 1fr; gap: .2rem; }
  .pd-lists { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .pd-gallery span { font-size: .8rem; }
  .pd-gallery--one { grid-template-columns: 1fr; }
}
