/* ==========================================================================
   YAAN · Product pages design layer (Batch 2)
   Scope: 9 category index pages + 245 product detail pages.
   Rules: 1px borders only, no card shadows, no gradients, no rotated media,
          type scale 12/14/16/22/28/36, radius <= 8px, brand teal #0c7b70.
   ========================================================================== */

:root {
    --pv-teal: #0c7b70;
    --pv-teal-dark: #095c54;
    --pv-navy: #0d213f;
    --pv-ink: #172436;
    --pv-body: #3f4f5c;
    --pv-muted: #507379;
    --pv-line: #dce8e6;
    --pv-soft: #f2f7f6;
    --pv-white: #fff;
    --pv-on-dark: #b8c6d9;
}

/* ---------- shared blocks ---------- */

.pv-sec {
    padding: 56px 0;
}

.pv-sec--soft {
    background: var(--pv-soft);
}

.pv-sec--tight {
    padding: 40px 0;
}

.pv-head {
    max-width: 760px;
    margin-bottom: 26px;
}

.pv-head > span {
    display: block;
    margin-bottom: 8px;
    color: var(--pv-teal);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pv-head h2 {
    color: var(--pv-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.22;
    letter-spacing: -.01em;
}

.pv-head p {
    margin-top: 10px;
    color: var(--pv-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- category hero ---------- */

.pv-hero {
    padding: 34px 0 44px;
    background: var(--pv-soft);
    border-bottom: 1px solid var(--pv-line);
}

.pv-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
    gap: 48px;
    align-items: center;
}

.pv-eyebrow {
    color: var(--pv-teal);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pv-hero h1 {
    margin: 10px 0 12px;
    color: var(--pv-ink);
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.14;
    letter-spacing: -.015em;
}

.pv-hero h1 .pv-h1-suffix {
    display: block;
    margin-top: 6px;
    color: var(--pv-muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.pv-lead {
    max-width: 620px;
    color: var(--pv-body);
    font-size: 15px;
    line-height: 1.72;
}

.pv-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.pv-hero__media {
    border: 1px solid var(--pv-line);
    border-radius: 8px;
    background: var(--pv-white);
    padding: 18px;
}

.pv-hero__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.pv-hero__media figcaption {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--pv-line);
    color: var(--pv-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* category-level parameter strip: real ranges, no marketing adjectives */
.pv-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    margin-top: 30px;
    border-top: 1px solid var(--pv-line);
}

.pv-fact {
    padding: 16px 18px 0 0;
}

.pv-fact dt {
    color: var(--pv-muted);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pv-fact dd {
    margin-top: 5px;
    color: var(--pv-navy);
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- product grid ---------- */

.pv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 18px;
}

.pv-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--pv-line);
    border-radius: 8px;
    background: var(--pv-white);
    transition: border-color .18s ease;
}

.pv-card:hover {
    border-color: #a9cfc9;
}

.pv-card__media {
    display: block;
    padding: 16px;
    border-bottom: 1px solid #edf3f2;
}

.pv-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.pv-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.pv-card__model {
    color: var(--pv-teal);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pv-card__body h3 {
    margin: 6px 0 8px;
    color: var(--pv-ink);
    font-size: 16px;
    line-height: 1.35;
}

.pv-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.pv-card__body h3 a:hover {
    color: var(--pv-teal);
}

.pv-card__specs {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    color: var(--pv-body);
    font-size: 12px;
    line-height: 1.55;
}

.pv-card__specs span strong {
    color: var(--pv-navy);
    font-weight: 600;
}

.pv-card__link {
    margin-top: auto;
    color: var(--pv-teal);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.pv-card__link:hover {
    text-decoration: underline;
}

/* ---------- factual checklist (replaces icon feature cards) ---------- */

.pv-check {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    max-width: 980px;
}

.pv-check li {
    position: relative;
    padding: 14px 0 14px 26px;
    border-bottom: 1px solid var(--pv-line);
    color: var(--pv-body);
    font-size: 14px;
    line-height: 1.62;
    list-style: none;
}

.pv-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--pv-teal);
    border-bottom: 2px solid var(--pv-teal);
    transform: rotate(-45deg);
}

.pv-check li strong {
    color: var(--pv-navy);
    font-weight: 600;
}

/* ---------- four-step flow ---------- */

.pv-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--pv-line);
}

.pv-step {
    position: relative;
    padding: 20px 24px 0 0;
}

.pv-step + .pv-step {
    padding-left: 24px;
    border-left: 1px solid var(--pv-line);
}

.pv-step b {
    display: block;
    color: var(--pv-navy);
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.pv-step strong {
    display: block;
    margin: 8px 0 6px;
    color: var(--pv-ink);
    font-size: 14px;
}

.pv-step p {
    color: var(--pv-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- dark proof band ---------- */

.pv-band {
    padding: 44px 0;
    background: var(--pv-navy);
    color: var(--pv-white);
}

.pv-band__nums {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.pv-band__nums b {
    display: block;
    color: #fff;
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}

.pv-band__nums span {
    display: block;
    margin-top: 6px;
    color: var(--pv-on-dark);
    font-size: 12px;
    line-height: 1.5;
}

.pv-band__certs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(184, 198, 217, .22);
}

.pv-band__certs em {
    color: var(--pv-on-dark);
    font-size: 12px;
    font-style: normal;
}

.pv-band__certs i {
    color: #dbe6ef;
    font-size: 12px;
    font-style: normal;
    letter-spacing: .04em;
}

/* ---------- FAQ ---------- */

.pv-faq details {
    border-bottom: 1px solid var(--pv-line);
}

.pv-faq summary {
    position: relative;
    padding: 16px 30px 16px 0;
    color: var(--pv-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.pv-faq summary::-webkit-details-marker {
    display: none;
}

.pv-faq summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 14px;
    color: var(--pv-teal);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.pv-faq details[open] summary::after {
    content: "\2013";
}

.pv-faq p {
    max-width: 860px;
    padding: 0 0 18px;
    color: var(--pv-body);
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- detail page additions ---------- */

.pv-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--pv-line);
    color: var(--pv-muted);
    font-size: 11px;
    letter-spacing: .02em;
}

.pv-proof span::after {
    content: "\00b7";
    margin-left: 12px;
    color: var(--pv-line);
}

.pv-proof span:last-child::after {
    content: "";
}

.pv-spec-note {
    margin-top: 12px;
    color: var(--pv-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .pv-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pv-hero__media {
        max-width: 460px;
    }

    .pv-check {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: none;
    }

    .pv-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pv-step:nth-child(3) {
        padding-left: 0;
        border-left: none;
    }

    .pv-step {
        padding-bottom: 18px;
        border-bottom: 1px solid var(--pv-line);
    }

    .pv-band__nums {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 20px;
    }

    .pv-sec {
        padding: 40px 0;
    }
}

@media (max-width: 620px) {
    .pv-hero {
        padding: 22px 0 30px;
    }

    .pv-steps {
        grid-template-columns: 1fr;
    }

    .pv-step + .pv-step {
        padding-left: 0;
        border-left: none;
    }

    .pv-fact {
        padding-right: 0;
    }

    .pv-band__nums b {
        font-size: 26px;
    }
}

/* wide multi-column spec tables must scroll inside their own box, never the page */
.detail-richtext,
.detail-spec-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-richtext > table,
.detail-spec-table > table {
    max-width: none;
}

.detail-richtext table.spec-table th,
.detail-richtext table.spec-table td,
.detail-spec-table table th,
.detail-spec-table table td {
    white-space: nowrap;
}

/* facts strip relaxes to one column on small screens (all category pages) */
@media (max-width: 620px) {
    .pv-facts {
        grid-template-columns: 1fr;
    }
}

/* about page journey stat strip */
.about-v2-journey-facts {
    margin-bottom: 34px;
}

/* ==========================================================================
   COMPAT LAYER 2026-11-18 — newer list-template class vocabulary.
   The CMS list template (tempid 9) emits these class names, which had no CSS
   rules, so product cards stacked full-width. Map them to the existing design
   tokens (1px borders, brand teal, radius<=8). Additive only; no core edits.
   ========================================================================== */

.pv-page { }
.pv-catalog, .pv-selection, .pv-process, .pv-faqsec { }

.pv-section-head {
    max-width: 760px;
    margin-bottom: 26px;
}
.pv-section-head > span {
    display: block;
    margin-bottom: 8px;
    color: var(--pv-teal);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pv-section-head h2 {
    color: var(--pv-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.22;
    letter-spacing: -.01em;
}

/* the actual product grid — was missing, caused full-width stacking */
.pv-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 18px;
}

/* title/desc aliases used inside .pv-card__body */
.pv-card__body .pv-card__title {
    margin: 6px 0 8px;
    color: var(--pv-ink);
    font-size: 16px;
    line-height: 1.35;
}
.pv-card__body .pv-card__title a { color: inherit; text-decoration: none; }
.pv-card__body .pv-card__title a:hover { color: var(--pv-teal); }
.pv-card__body .pv-card__desc {
    margin-bottom: 14px;
    color: var(--pv-body);
    font-size: 13px;
    line-height: 1.6;
}

/* hero CTA alias */
.pv-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

/* two-column section (heading beside content) */
.pv-two-col {
    display: grid;
    grid-template-columns: minmax(220px, 32%) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.pv-two-col > .pv-section-head { margin-bottom: 0; }

/* pagination */
.pv-pagination {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--pv-line);
    color: var(--pv-muted);
    font-size: 13px;
    text-align: center;
}
.pv-pagination a { color: var(--pv-teal); text-decoration: none; padding: 0 6px; }
.pv-pagination a:hover { text-decoration: underline; }
.pv-pagination b { color: var(--pv-ink); }

/* dark band grid (stats + image) */
.pv-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
    gap: 40px;
    align-items: center;
}
.pv-band__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}
.pv-band__stat strong {
    display: block;
    color: #fff;
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
}
.pv-band__stat span {
    display: block;
    margin-top: 6px;
    color: var(--pv-on-dark);
    font-size: 12px;
    line-height: 1.5;
}
.pv-band__side { border: 1px solid rgba(184,198,217,.28); border-radius: 8px; overflow: hidden; }
.pv-band__side img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pv-band__certs span { color: var(--pv-on-dark); font-size: 12px; }

@media (max-width: 900px) {
    .pv-two-col { grid-template-columns: 1fr; gap: 18px; }
    .pv-band__grid { grid-template-columns: 1fr; gap: 26px; }
    .pv-band__stats { gap: 18px 20px; }
}
@media (max-width: 620px) {
    .pv-band__stat strong { font-size: 24px; }
}

/* ===== RICH PRODUCT CONTENT LAYER 2026-11-18 (newly exposed by regex fix) ===== */
.prod-desc-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-main);
    margin: 0 0 18px;
}
.highlight-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 24px;
}
.hl-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 22px;
}
.hl-col .col-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.hl-col .col-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--primary);
}
.hl-col .col-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hl-col .col-body {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-main);
}
.hl-col .col-body ul {
    margin: 0;
    padding-left: 18px;
}
.hl-col .col-body li { margin-bottom: 6px; }
.hl-col .col-body p { margin: 0 0 8px; }
.hl-col .col-body p:last-child { margin-bottom: 0; }
/* technical spec tables inside description richtext */
.detail-richtext h2.sect-title {
    font-size: 20px;
    margin: 26px 0 14px;
    color: var(--text-main);
}
.detail-richtext .specs-tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}
.detail-richtext table {
    border-collapse: collapse;
    width: 100%;
    font-size: 13.5px;
}
.detail-richtext table th,
.detail-richtext table td {
    border: 1px solid var(--border);
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}
.detail-richtext table th {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
@media (max-width: 620px) {
    .hl-col { padding: 16px; }
}
