/*
 * Product detail (single-pl_product.php) styles.
 * Scoped to .pl-prd root; enqueued only on is_singular('pl_product').
 *
 * Ports mockups/parfx-ultra/index.html. Brand tokens mirror the spectrum
 * palette + bone backgrounds. Square corners site-wide (zero border-radius).
 */

.pl-prd {
    --pl-teal:        #40A3A1;
    --pl-teal-dark:   #2d7a78;
    --pl-teal-600:    #349291;
    --pl-ember:       #D16D32;
    --pl-ember-dark:  #b85d2a;
    --pl-bone-50:     #fbfaf6;
    --pl-bone-100:    #f5f2ea;
    --pl-neutral-50:  #f6f6f5;
    --pl-neutral-100: #e5e5e3;
    --pl-neutral-300: #c9c9c5;
    --pl-neutral-400: #9d9d9b;
    --pl-neutral-500: #757572;
    --pl-neutral-600: #616160;
    --pl-neutral-700: #4a4a48;
    --pl-neutral-800: #2b2b2a;
    --pl-neutral-900: #1a1a1a;
    --sp-magenta: #AD1F69;
    --sp-gold:    #E6B229;
    --sp-green:   #449A46;

    background: var(--pl-bone-50);
    color: var(--pl-neutral-900);
    font-family: 'Cabin', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.pl-prd a { color: inherit; }
.pl-prd *, .pl-prd *::before, .pl-prd *::after { border-radius: 0; }

/* ---------- Containers ---------- */
.pl-prd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.pl-prd-container-narrow { max-width: 900px; }

/* ---------- Shared section heads ---------- */
.pl-prd-sectionhead { max-width: 720px; }
.pl-prd-sectionhead-center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.pl-prd-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-teal);
}
.pl-prd-sectionhead-title {
    margin: 12px 0 0;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--pl-neutral-900);
}
@media (min-width: 640px) { .pl-prd-sectionhead-title { font-size: 36px; } }
.pl-prd-sectionhead-intro {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--pl-neutral-600);
}

/* ---------- Buttons ---------- */
.pl-prd .pl-prd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pl-prd .pl-prd-btn-primary { background: var(--pl-teal); color: #fff; border: 1px solid var(--pl-teal); }
.pl-prd .pl-prd-btn-primary:hover { background: var(--pl-ember-dark); border-color: var(--pl-ember-dark); color: #fff; }
.pl-prd .pl-prd-btn-ghost {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--pl-bone-50);
}
.pl-prd .pl-prd-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.45); color: #fff; }
.pl-prd .pl-prd-btn-ghost-dark { color: var(--pl-bone-50); }

/* ============== HERO ============== */
.pl-prd-hero {
    position: relative;
    overflow: hidden;
    color: var(--pl-bone-50);
    background:
        radial-gradient(1000px 500px at 85% 8%,  rgba(209,109,50,0.22), transparent 60%),
        radial-gradient(820px 520px at 4% 92%,   rgba(64,163,161,0.22), transparent 60%),
        radial-gradient(620px 420px at 62% 112%, rgba(173,31,105,0.16), transparent 60%),
        linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 62%, #232323 100%);
}
.pl-prd-hero-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
    z-index: 0;
}
.pl-prd-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    padding: 56px 24px;
}
@media (min-width: 1024px) {
    .pl-prd-hero-grid { grid-template-columns: 7fr 5fr; gap: 56px; padding: 88px 24px; }
}

.pl-prd-hero-media-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    background: rgba(20,20,20,0.5);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8);
    overflow: hidden;
}
.pl-prd-hero-media-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
}
.pl-prd-hero-media-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(245,242,234,0.65);
    background: rgba(15,15,15,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 8px;
}

/* ---------- Hero product gallery / carousel ---------- */
.pl-prd-gal-stage { position: relative; display: flex; align-items: center; gap: 10px; }
.pl-prd-gal-frame { flex: 1 1 auto; min-width: 0; }
.pl-prd .pl-prd-gal-arrow {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--pl-bone-50);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pl-prd .pl-prd-gal-arrow:hover,
.pl-prd .pl-prd-gal-arrow:focus,
.pl-prd .pl-prd-gal-arrow:active {
    background: var(--pl-teal);
    border-color: var(--pl-teal);
    color: #fff;
    outline: none;
    box-shadow: none;
}
.pl-prd-gal-thumbs {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.pl-prd .pl-prd-gal-thumb {
    width: 72px;
    height: 72px;
    padding: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.16);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.pl-prd-gal-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pl-prd .pl-prd-gal-thumb:hover,
.pl-prd .pl-prd-gal-thumb:focus {
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.05);
    outline: none;
    box-shadow: none;
}
.pl-prd .pl-prd-gal-thumb.is-active {
    border-color: var(--pl-teal);
    background: rgba(64,163,161,0.14);
}

.pl-prd-hero-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pl-teal);
    font-weight: 600;
}
.pl-prd-dot { opacity: 0.4; }

.pl-prd-hero-title {
    margin: 16px 0 0;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.04;
    color: var(--pl-bone-50);
}
@media (min-width: 640px) { .pl-prd-hero-title { font-size: 52px; } }
.pl-prd-hero-subtitle {
    display: block;
    margin-top: 6px;
    font-size: 22px;
    font-weight: 500;
    color: var(--pl-teal);
    line-height: 1.2;
}
@media (min-width: 640px) { .pl-prd-hero-subtitle { font-size: 26px; } }

.pl-prd-hero-lead {
    margin: 20px 0 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(245,242,234,0.85);
    max-width: 44ch;
}

.pl-prd-hero-specs {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pl-prd-hero-spec {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 14px;
    text-align: center;
}
.pl-prd-hero-spec-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--pl-bone-50);
    line-height: 1.1;
}
.pl-prd-hero-spec-label {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(245,242,234,0.6);
}
/* Keep unit symbols (e.g. the micro sign in "µmol/s") out of the uppercase
   transform, which would otherwise render µ as Greek capital Mu ("Mmol"). */
.pl-prd-hero-spec-label .pl-prd-nocaps { text-transform: none; }

.pl-prd-hero-badges {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pl-prd-hero-badge {
    font-size: 12px;
    color: rgba(245,242,234,0.8);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 7px 12px;
}
/* Cert logo badges: white logo on the dark hero, no chip chrome */
.pl-prd-hero-badge--logo {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
.pl-prd-hero-badge--logo img {
    height: 36px;
    width: auto;
    display: block;
    /* Cert art is the client's official white-on-transparent files (2026-07-16);
       no whitening filters — a filter here would invert them to black */
    opacity: 0.92;
}
/* IP66 typographic lockup, sized to match the logos */
.pl-prd-hero-badge--ip {
    background: transparent;
    border: 1.5px solid #fff;
    border-radius: 0;
    color: #fff;
    opacity: 0.92;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 36px;
    padding: 0 0.45em;
    align-self: center;
}
@media (min-width: 768px) {
    .pl-prd-hero-badge--logo img { height: 44px; }
    .pl-prd-hero-badge--ip { line-height: 44px; }
}

.pl-prd-hero-actions {
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.pl-prd-hero-footnote {
    margin: 20px 0 0;
    font-size: 12px;
    color: rgba(245,242,234,0.6);
}

/* ============== BENEFITS ============== */
.pl-prd-benefits { padding: 72px 0; background: var(--pl-bone-50); }
.pl-prd-benefit-grid {
    margin-top: 44px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 640px) { .pl-prd-benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .pl-prd-benefit-grid.pl-prd-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .pl-prd-benefit-grid.pl-prd-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.pl-prd-benefit {
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    padding: 26px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pl-prd-benefit:hover { border-color: var(--pl-teal); box-shadow: 0 10px 26px -12px rgba(0,0,0,0.12); }
.pl-prd-benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(64,163,161,0.12);
    color: var(--pl-teal);
}
.pl-prd-benefit-icon svg { width: 24px; height: 24px; }
/* cycle spectrum accents across tiles */
.pl-prd-benefit:nth-child(4n+2) .pl-prd-benefit-icon { background: rgba(173,31,105,0.10); color: var(--sp-magenta); }
.pl-prd-benefit:nth-child(4n+3) .pl-prd-benefit-icon { background: rgba(230,178,41,0.15); color: var(--sp-gold); }
.pl-prd-benefit:nth-child(4n+4) .pl-prd-benefit-icon { background: rgba(68,154,70,0.14); color: var(--sp-green); }
.pl-prd-benefit-title {
    margin: 18px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--pl-neutral-900);
    line-height: 1.3;
}
.pl-prd-benefit-text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--pl-neutral-600);
}

/* ============== BODY SECTIONS ============== */
.pl-prd-bodywrap { padding: 8px 0 72px; background: var(--pl-bone-50); }
.pl-prd-bodysection { padding-top: 56px; }
.pl-prd-bodysection:first-child { padding-top: 8px; }
.pl-prd-bodysection-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: var(--pl-neutral-900);
    line-height: 1.25;
}
.pl-prd-bodysection-copy {
    margin-top: 14px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--pl-neutral-600);
    max-width: 70ch;
}
.pl-prd-bodysection-copy p { margin: 0 0 16px; }
.pl-prd-bodysection-copy p:last-child { margin-bottom: 0; }
.pl-prd-bodysection-copy strong { color: var(--pl-neutral-900); }
.pl-prd-bodysection-copy ul { margin: 0 0 16px; padding: 0; list-style: none; }
.pl-prd-bodysection-copy ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.pl-prd-bodysection-copy ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.62em;
    width: 6px; height: 6px;
    background: var(--pl-teal);
}
.pl-prd-bodysection-copy ol { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: pl-step; }
.pl-prd-bodysection-copy ol li { position: relative; padding-left: 38px; margin-bottom: 12px; counter-increment: pl-step; }
.pl-prd-bodysection-copy ol li::before {
    content: counter(pl-step);
    position: absolute;
    left: 0; top: 0.1em;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--pl-teal);
    color: #fff;
    font-size: 13px; font-weight: 700;
}
.pl-prd-bodysection-copy a { color: var(--pl-teal); text-decoration: none; transition: color 0.15s ease; }
.pl-prd-bodysection-copy a:hover { color: var(--pl-teal-dark); }

.pl-prd-bodysection-media { margin: 0; }
.pl-prd-bodysection-media img { display: block; width: 100%; height: auto; border: 1px solid var(--pl-neutral-100); background: #fff; }
.pl-prd-img-full { margin-top: 28px; }

/* split layout: text + side image */
.pl-prd-bodysection-split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) {
    .pl-prd-bodysection-split { grid-template-columns: 1fr 1fr; gap: 44px; }
    .pl-prd-bodysection-split.pl-prd-img-left .pl-prd-bodysection-text { order: 2; }
    .pl-prd-bodysection-split.pl-prd-img-left .pl-prd-bodysection-media { order: 1; }
}
.pl-prd-bodysection-split .pl-prd-bodysection-media.pl-prd-img-side img { object-fit: contain; }

/* diagram gallery: full-width captioned grid below the section text
   (dimension drawings, mounting options, spectrum charts) */
.pl-prd-bodysection-diagrams .pl-prd-bodysection-text { max-width: 820px; }
.pl-prd-diagram-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.pl-prd-diagram-grid-single { grid-template-columns: 1fr; }
.pl-prd-diagram { margin: 0; display: flex; flex-direction: column; }
.pl-prd-diagram-frame {
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    padding: 18px;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}
/* never upscale a low-res drawing past its natural size (Caelin 2026-07-15,
   TriPlane SQ); the flex frame centers it inside the sibling-height box */
.pl-prd-diagram-frame img { display: block; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.pl-prd-diagram-grid-single .pl-prd-diagram-frame { padding: 24px; }
.pl-prd-diagram-grid-single .pl-prd-diagram-frame img { max-width: 900px; margin: 0 auto; }
.pl-prd-diagram figcaption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--pl-neutral-500);
    text-align: center;
}

/* ============== SPECIFICATIONS ============== */
.pl-prd-specs { padding: 72px 0; background: var(--pl-bone-100); }
.pl-prd-spec-groups {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) { .pl-prd-spec-groups { grid-template-columns: repeat(2, 1fr); } }
/* A lone trailing spec card (odd count) spans full width, its rows in two columns.
   Row-flow grid (not CSS multicol): rows read left-to-right, so the last row and
   any trailing gap land bottom-RIGHT, never a hole at the bottom of the left column. */
@media (min-width: 768px) {
    .pl-prd-spec-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .pl-prd-spec-group:last-child:nth-child(odd) .pl-prd-spec-table {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
    /* borders above rows (except the first visual row), so an empty trailing
       cell never shows a stray underline */
    .pl-prd-spec-group:last-child:nth-child(odd) .pl-prd-spec-row { border-bottom: 0; border-top: 1px solid var(--pl-neutral-100); }
    .pl-prd-spec-group:last-child:nth-child(odd) .pl-prd-spec-row:nth-child(-n+2) { border-top: 0; }
}
.pl-prd-spec-group {
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    padding: 26px 28px 22px;
}
.pl-prd-spec-group-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--pl-teal);
}
.pl-prd-spec-table { margin: 0; }
.pl-prd-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pl-neutral-100);
}
.pl-prd-spec-row:last-child { border-bottom: 0; }
.pl-prd-spec-row dt { margin: 0; font-size: 14px; color: var(--pl-neutral-600); }
.pl-prd-spec-row dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--pl-neutral-900); text-align: right; }
.pl-prd-spec-note {
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--pl-neutral-500);
    padding-left: 14px;
    border-left: 2px solid var(--pl-ember);
}
/* Unified Dimensions block (Caelin 2026-07-09): drawings + measurement tables in
   one section below Fixture detail. Reuses .pl-prd-specs styling; no divider line.
   The drawings sub-block sits under the section head, tables below it. Drawing-row
   headings are demoted to h3 (the section carries the one Dimensions h2). */
.pl-prd-dims-diagrams { margin-top: 8px; }
/* No extra top padding on the first drawing block: the section head + diagram-wrap
   margins already separate it from the heading. 24px here stacked into a ~60px void
   below the "<Product> dimensions" heading (Caelin 2026-07-09). */
.pl-prd-dims .pl-prd-bodysection:first-child { padding-top: 0; }
.pl-prd-dims .pl-prd-bodysection-title { font-size: 20px; }
.pl-prd-dims-diagrams + .pl-prd-spec-groups { margin-top: 56px; }

/* When two product sections with the SAME background stack, their 72px top +
   72px bottom paddings double into a 144px void with no color change to justify
   it. Collapse the following section's top padding so the gap stays a normal
   ~72px. Color-change boundaries keep the full gap (the bg shift reads the
   break). Section bg tier is tagged in the template via .pl-prd-sec--50/100. */
.pl-prd-sec--50 + .pl-prd-sec--50,
.pl-prd-sec--100 + .pl-prd-sec--100 { padding-top: 0; }

/* ============== CAPACITY TABLE (editable) ============== */
.pl-prd-capacity { padding: 72px 0; background: var(--pl-bone-100); }
.pl-prd-captable-wrap {
    margin-top: 40px;
    border: 1px solid var(--pl-neutral-100);
    background: #fff;
}
/* Only become a horizontal scroll container on narrow screens where the table
   overflows. On desktop it stays a plain block, so no scrollbar gutter is
   reserved under the last row (which showed as a trailing white strip). */
@media (max-width: 800px) {
    .pl-prd-captable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
/* Phone: tighten cell padding + type so the 5-column capacity table fits (or nearly
   fits) the viewport instead of forcing a horizontal scroll. */
@media (max-width: 480px) {
    .pl-prd-captable { font-size: 13px; }
    .pl-prd-captable thead th { padding: 11px 8px; font-size: 10px; letter-spacing: 0.06em; }
    .pl-prd-captable tbody th,
    .pl-prd-captable tbody td { padding: 10px 8px; }
}
.pl-prd-captable { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.pl-prd-captable thead th {
    background: var(--pl-neutral-900);
    color: var(--pl-bone-50);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    padding: 14px 18px;
    text-align: right;
    white-space: nowrap;
}
.pl-prd-captable thead th:first-child { text-align: left; }
.pl-prd-captable thead th.is-highlight { background: var(--pl-teal); color: #fff; }
.pl-prd-captable tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--pl-neutral-900);
    padding: 13px 18px;
    background: var(--pl-bone-50);
}
.pl-prd-captable tbody td { text-align: right; padding: 13px 18px; color: var(--pl-neutral-700); white-space: nowrap; }
.pl-prd-captable tbody tr + tr th,
.pl-prd-captable tbody tr + tr td { border-top: 1px solid var(--pl-neutral-100); }
.pl-prd-captable td.is-highlight { background: rgba(64,163,161,0.08); color: var(--pl-neutral-900); font-weight: 600; }
.pl-prd-captable-note { margin: 14px 0 0; font-size: 13px; color: var(--pl-neutral-500); }

/* ============== GALLERY ============== */
.pl-prd-gallery-section { padding: 72px 0; background: var(--pl-bone-50); }
.pl-prd-gallery {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px)  { .pl-prd-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pl-prd-gallery { grid-template-columns: repeat(3, 1fr); } }
.pl-prd-gtile {
    margin: 0;
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* gallery tiles are not links: no hover affordance (Camrin 2026-07-04) */
.pl-prd-gtile img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--pl-bone-50);
    padding: 16px;
}
.pl-prd-gtile figcaption {
    font-size: 13px;
    color: var(--pl-neutral-600);
    padding: 12px 16px;
    border-top: 1px solid var(--pl-neutral-100);
}

/* ============== INTEGRATION CALLOUT ============== */
.pl-prd-callout {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    background: var(--pl-neutral-900);
    color: var(--pl-bone-50);
}
.pl-prd-callout-glow { position: absolute; width: 380px; height: 380px; filter: blur(80px); z-index: 0; }
.pl-prd-callout-glow-a { top: -120px; right: -120px; background: rgba(64,163,161,0.16); }
.pl-prd-callout-glow-b { bottom: -120px; left: -120px; background: rgba(64,163,161,0.14); }
.pl-prd-callout-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 1024px) { .pl-prd-callout-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.pl-prd-callout-title { margin: 12px 0 0; font-size: 30px; font-weight: 600; line-height: 1.2; }
@media (min-width: 640px) { .pl-prd-callout-title { font-size: 36px; } }
.pl-prd-callout-text { margin: 18px 0 0; font-size: 18px; line-height: 1.65; color: rgba(245,242,234,0.82); }
.pl-prd-callout-stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pl-prd-callout-stats li { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 16px; }
.pl-prd-callout-stat-value { display: block; font-size: 22px; font-weight: 700; }
.pl-prd-callout-stat-label { display: block; margin-top: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(245,242,234,0.6); }
.pl-prd-callout-actions { margin-top: 28px; }
.pl-prd-callout-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }

/* ============== DOWNLOADS ============== */
.pl-prd-downloads { padding: 72px 0; background: var(--pl-bone-50); }
/* Left-aligned so the cards line up with the section heading's left edge.
   Fixed-width columns keep cards consistent; trailing rows stay left-aligned. */
.pl-prd-download-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    justify-content: start;
}
@media (min-width: 620px)  { .pl-prd-download-grid { grid-template-columns: repeat(2, minmax(0, 360px)); } }
@media (min-width: 1000px) { .pl-prd-download-grid { grid-template-columns: repeat(3, minmax(0, 360px)); } }
.pl-prd-download {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    padding: 22px;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pl-prd-download:hover { border-color: var(--pl-teal); box-shadow: 0 10px 26px -12px rgba(0,0,0,0.14); }
.pl-prd-download-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(64,163,161,0.12);
    color: var(--pl-teal);
}
.pl-prd-download-icon svg { width: 24px; height: 24px; }
.pl-prd-download-body { display: flex; flex-direction: column; min-width: 0; }
.pl-prd-download-meta { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pl-neutral-500); font-weight: 600; }
.pl-prd-download-title { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--pl-neutral-900); transition: color 0.15s ease; }
.pl-prd-download:hover .pl-prd-download-title { color: var(--pl-teal); }
.pl-prd-download-desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--pl-neutral-600); }
.pl-prd-download-cta { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--pl-teal); }
.pl-prd-download:hover .pl-prd-download-cta { color: var(--pl-teal-dark); }

/* ============== FAQ ============== */
.pl-prd-faq { padding: 72px 0; background: var(--pl-bone-100); }
.pl-prd-faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.pl-prd-faq-item { background: #fff; border: 1px solid var(--pl-neutral-100); padding: 20px 22px; }
.pl-prd-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--pl-neutral-900);
}
.pl-prd-faq-q::-webkit-details-marker { display: none; }
.pl-prd-faq-mark { color: var(--pl-teal); font-size: 24px; line-height: 1; transition: transform 0.2s ease; flex-shrink: 0; }
.pl-prd-faq-item[open] .pl-prd-faq-mark { transform: rotate(45deg); }
.pl-prd-faq-a { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--pl-neutral-600); }
.pl-prd-faq-a p { margin: 0 0 12px; }
.pl-prd-faq-a p:last-child { margin-bottom: 0; }
.pl-prd-faq-a a { color: var(--pl-teal); text-decoration: none; }
.pl-prd-faq-a a:hover { color: var(--pl-teal-dark); }

/* ============== CTA BAND ============== */
.pl-prd-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 84px 0;
    background: var(--pl-neutral-800);
    color: var(--pl-bone-50);
}
.pl-prd-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pl-prd-cta-bg);
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    z-index: -2;
}
.pl-prd-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.78), rgba(26,26,26,0.30));
    z-index: -1;
}
.pl-prd-cta-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.pl-prd-cta-heading { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--pl-bone-50); }
@media (min-width: 640px) { .pl-prd-cta-heading { font-size: 34px; } }
.pl-prd-cta-sub { margin: 16px auto 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: rgba(245,242,234,0.8); text-wrap: balance; }
.pl-prd-cta-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ============== REVEAL ============== */
.pl-prd-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.2,0.7,0.3,1), transform 0.7s cubic-bezier(0.2,0.7,0.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.pl-prd-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .pl-prd-reveal, .pl-prd-reveal.is-visible { opacity: 1; transform: none; transition: none; }
}

/* grid children can't shrink below content without this */
.pl-prd-hero-grid > *, .pl-prd-callout-grid > *, .pl-prd-bodysection-split > * { min-width: 0; }

/* ============== HERO TIER JUMP-NAV ============== */
.pl-prd-hero-tiernav { margin-top: 26px; }
.pl-prd-hero-tiernav-label {
    display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 700; color: rgba(245,242,234,0.55); margin-bottom: 10px;
}
.pl-prd-hero-tiernav-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-prd-tierjump {
    display: inline-flex; align-items: center; padding: 9px 16px;
    font-size: 14px; font-weight: 700; color: #f5f2ea;
    background: rgba(245,242,234,0.06); border: 1px solid rgba(245,242,234,0.22);
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease; cursor: pointer;
}
.pl-prd-tierjump:hover, .pl-prd-tierjump:focus-visible {
    background: rgba(64,163,161,0.18); border-color: var(--pl-teal); color: #fff;
}
.pl-prd-tierjump.is-featured { border-color: var(--pl-teal); background: rgba(64,163,161,0.14); }

/* ============== TIERS (model-family tabs) ============== */
.pl-prd-tiers { padding: 72px 0; background: var(--pl-bone-100); scroll-margin-top: 96px; }
/* bodywrap normally hugs benefits (same bg); after the tiers band or straight off the hero it needs full section padding */
.pl-prd-tiers + .pl-prd-bodywrap,
.pl-prd-hero + .pl-prd-bodywrap { padding-top: 72px; }
.pl-prd-tiers .pl-prd-sectionhead { margin-bottom: 34px; }
.pl-prd-tablist {
    display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--pl-neutral-100);
}
.pl-prd-tab {
    position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 14px 22px 16px; margin-bottom: -2px; cursor: pointer;
    background: transparent; border: 0; border-bottom: 2px solid transparent;
    font-family: inherit; font-size: 17px; font-weight: 700; color: var(--pl-neutral-500);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.pl-prd-tab:hover { color: var(--pl-neutral-800); }
.pl-prd-tab.is-active { color: var(--pl-neutral-900); border-bottom-color: var(--pl-teal); }
.pl-prd-tab.is-featured.is-active { border-bottom-color: var(--pl-ember); }
.pl-prd-tab-flag {
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 800;
    color: var(--pl-ember); line-height: 1;
}
.pl-prd-tab:focus-visible { outline: 2px solid var(--pl-teal); outline-offset: 2px; }
/* Hello/kit paint bare <button> active/focus magenta; keep tabs flat (teal underline is the active cue). */
.pl-prd .pl-prd-tab,
.pl-prd .pl-prd-tab:hover,
.pl-prd .pl-prd-tab:focus,
.pl-prd .pl-prd-tab:focus-visible,
.pl-prd .pl-prd-tab:active,
.pl-prd .pl-prd-tab.is-active,
.pl-prd .pl-prd-tab[aria-selected="true"] { background-color: transparent !important; box-shadow: none !important; }

.pl-prd-tabpanels { margin-top: 32px; }
.pl-prd-tabpanel { display: none; }
.pl-prd-tabpanel.is-active { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.pl-prd-tabpanel[hidden] { display: none; }

.pl-prd-tierpanel-tag {
    font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
    color: var(--pl-teal-dark); margin-bottom: 8px;
}
.pl-prd-tierpanel-name { font-size: 30px; line-height: 1.1; font-weight: 600; color: var(--pl-neutral-900); margin: 0 0 14px; }
.pl-prd-tierpanel-summary { font-size: 17px; line-height: 1.6; color: var(--pl-neutral-700); margin: 0 0 16px; }
.pl-prd-tierpanel-bestfor { font-size: 15px; line-height: 1.55; color: var(--pl-neutral-600); margin: 0 0 20px; }
.pl-prd-tierpanel-bestfor span {
    display: inline-block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    font-weight: 800; color: var(--pl-neutral-500); margin-right: 6px;
}
/* spec-sheet link = brand teal outline button, ember hover (Camrin 2026-07-04) */
.pl-prd .pl-prd-tierpanel-doc {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px;
    font-size: 14px; font-weight: 600; color: var(--pl-teal-dark);
    background: transparent; border: 1px solid var(--pl-teal);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pl-prd .pl-prd-tierpanel-doc svg { width: 16px; height: 16px; flex: none; }
.pl-prd .pl-prd-tierpanel-doc:hover { background: var(--pl-ember-dark); border-color: var(--pl-ember-dark); color: #fff; }

.pl-prd-tierspecs-wrap { overflow-x: auto; }
.pl-prd-tierspecs { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; }
/* reset the theme's global <table> cell shading + borders so this reads like the clean spec-group rows */
.pl-prd-tierspecs, .pl-prd-tierspecs tr, .pl-prd-tierspecs th, .pl-prd-tierspecs td { background: transparent !important; border: 0; }
.pl-prd-tierspecs th, .pl-prd-tierspecs td {
    text-align: left; padding: 13px 2px; border-bottom: 1px solid var(--pl-neutral-100); vertical-align: top;
}
.pl-prd-tierspecs th { font-weight: 400; color: var(--pl-neutral-600); width: 44%; }
.pl-prd-tierspecs td { font-weight: 600; color: var(--pl-neutral-900); }
/* last row keeps its bottom border so the table reads closed */

@media (max-width: 860px) {
    .pl-prd-tabpanel.is-active { grid-template-columns: 1fr; gap: 26px; }
    .pl-prd-tab { padding: 12px 16px; font-size: 15px; }
    .pl-prd-tablist { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
    .pl-prd-tab { white-space: nowrap; }
}

/* ============== LIGHTBOX (click-to-zoom, gallery-aware) ==============
   Appended to <body> (outside .pl-prd), so every rule here is unscoped +
   hardcoded (the --pl-* tokens live on .pl-prd and would not resolve here).
   z-index sits above the WP admin bar (99999). */
.pl-prd-lightbox {
    position: fixed; inset: 0; z-index: 2147483000;
    display: none; align-items: center; justify-content: center;
    padding: 4vmin; background: rgba(20,20,19,0.95);
    opacity: 0; transition: opacity 0.2s ease;
}
.pl-prd-lightbox.is-open { display: flex; opacity: 1; }
.pl-prd-lightbox-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; }
.pl-prd-lightbox-img {
    max-width: 88vw; max-height: 84vh; width: auto; height: auto;
    object-fit: contain; background: #fff; box-shadow: 0 24px 70px -20px rgba(0,0,0,0.6);
}
.pl-prd-lightbox-cap { color: rgba(245,242,234,0.85); font-size: 15px; text-align: center; max-width: 720px; line-height: 1.5; }
/* shared button base; !important beats the Hello/kit bare-button focus magenta */
.pl-prd-lightbox-btn {
    position: absolute; display: inline-flex; align-items: center; justify-content: center;
    color: #f5f2ea; cursor: pointer; line-height: 1;
    background: rgba(245,242,234,0.08) !important; border: 1px solid rgba(245,242,234,0.25);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-prd-lightbox-btn:focus { background: rgba(245,242,234,0.08) !important; }
.pl-prd-lightbox-btn:hover { background: var(--pl-teal) !important; border-color: var(--pl-teal); color: #fff; }
.pl-prd-lightbox-btn:focus-visible { outline: 2px solid #40A3A1; outline-offset: 2px; }
.pl-prd-lightbox-btn[hidden] { display: none; }
.pl-prd-lightbox-close { top: 18px; right: 20px; width: 44px; height: 44px; font-size: 30px; }
.pl-prd-lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.pl-prd-lightbox-prev { left: 3vmin; }
.pl-prd-lightbox-next { right: 3vmin; }
@media (prefers-reduced-motion: reduce) { .pl-prd-lightbox { transition: none; } }
@media (max-width: 640px) {
    .pl-prd-lightbox-prev { left: 8px; } .pl-prd-lightbox-next { right: 8px; }
    .pl-prd-lightbox-nav { width: 44px; height: 44px; font-size: 26px; }
}

/* ============== PROJECTS (social proof strip) ============== */
.pl-prd-projects { padding: 72px 0; background: var(--pl-bone-50); }
.pl-prd-projects-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 640px)  { .pl-prd-projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .pl-prd-projects-grid.pl-prd-projects-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .pl-prd-projects-grid.pl-prd-projects-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.pl-prd-projcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pl-neutral-100);
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.pl-prd-projcard:hover { border-color: var(--pl-teal); box-shadow: 0 10px 26px -12px rgba(0,0,0,0.14); }
.pl-prd-projcard-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pl-neutral-100); }
.pl-prd-projcard-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pl-prd-projcard:hover .pl-prd-projcard-cover img { transform: scale(1.04); }
.pl-prd-projcard-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.pl-prd-projcard-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pl-neutral-500); font-weight: 600; }
.pl-prd-projcard-name { margin: 6px 0 0; font-size: 18px; font-weight: 600; color: var(--pl-neutral-900); transition: color 0.15s ease; }
.pl-prd-projcard:hover .pl-prd-projcard-name { color: var(--pl-teal); }
.pl-prd-projcard-sub { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--pl-neutral-600); }
.pl-prd-projcard-cta { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 600; color: var(--pl-teal); }
.pl-prd-projcard:hover .pl-prd-projcard-cta { color: var(--pl-teal-dark); }
