/* Ipe owner page — scoped to .ipe-owner. Shared .ipe-pricer-* live in style.css. */

.ipe-owner {
    --yp-ink: #111111;
    --yp-muted: #5c5c5c;
    --yp-line: rgba(26, 71, 42, 0.12);
    --deck-profile-fill: #6b4530;
    --deck-profile-groove: #3f291d;
    color: var(--yp-ink);
}

#cumaruOwnerRoot {
    --deck-profile-fill: #8a5a32;
    --deck-profile-groove: #5c3a1e;
}

#garapaOwnerRoot {
    --deck-profile-fill: #c4a056;
    --deck-profile-groove: #8a6a28;
}

/* Planner diagrams follow the selected wood, not the page species. */
.ipe-pricer-form[data-preview-species="ipe"] {
    --deck-profile-fill: #69452f;
    --deck-profile-groove: #3f291d;
}

.ipe-pricer-form[data-preview-species="cumaru"] {
    --deck-profile-fill: #9b593c;
    --deck-profile-groove: #633522;
}

.ipe-pricer-form[data-preview-species="garapa"] {
    --deck-profile-fill: #c99a4c;
    --deck-profile-groove: #8d672f;
}

.ipe-owner section[id] {
    scroll-margin-top: 130px;
}

.ipe-owner .yp-hero {
    min-height: min(62vh, 560px);
}

.ipe-owner .yp-hero .breadcrumb-trail {
    color: rgba(255, 255, 255, 0.85);
}

.ipe-owner .yp-hero h1 {
    color: #fff;
    max-width: 24ch;
}

.ipe-owner .yp-hero-lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 42rem;
    font-size: 1.05rem;
    margin: 0.75rem 0 1.25rem;
}

.ipe-owner .yp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ipe-owner .yp-btn-on-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.ipe-owner .yp-btn-on-dark:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ipe-owner .ipe-hero-caption,
.ipe-owner .ipe-photo-caption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    margin-top: 0.85rem;
    max-width: 42rem;
}

.ipe-owner .page-content .ipe-photo-caption {
    color: var(--yp-muted);
    margin: 0.35rem 0 1rem;
}

.ipe-owner .yp-facts {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
}

.ipe-owner .yp-facts li {
    margin-bottom: 0.55rem;
}

.ipe-owner .yp-product-list {
    margin: 0 0 1.5rem;
    padding-left: 1.15rem;
}

.ipe-owner .yp-product-list li {
    margin-bottom: 0.4rem;
}

.ipe-owner .ipe-profile-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.ipe-owner .ipe-profile-figure {
    margin: 0;
    border: 1px solid var(--timber-border, #e0e0e0);
    border-radius: 8px;
    padding: 0.85rem;
    background: #f7f5ef;
}

.ipe-owner .ipe-profile-figure .deck-end-svg {
    display: block;
    width: 100%;
    height: auto;
}

.ipe-owner .ipe-profile-figure figcaption,
.ipe-owner .ipe-profile-caption {
    margin-top: 0.45rem;
    color: var(--yp-muted);
    font-size: 0.8rem;
}

.ipe-owner .ipe-profile-figure figcaption strong {
    display: block;
    color: var(--timber-green, #1a472a);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.ipe-owner .ipe-final-ctas {
    margin-top: 1.25rem;
}

.ipe-owner .ipe-result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.85rem 0 1rem;
}

.ipe-owner .ipe-result-chips span {
    border: 1px solid #d6ddd2;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #fff;
    font-size: 0.85rem;
}

.ipe-owner .ipe-lf-math {
    margin: 0 0 1rem;
    color: var(--yp-muted, #4a5548);
    font-size: 0.92rem;
}

.ipe-owner .ipe-species-learn {
    margin: 0.65rem 0 0;
    color: var(--yp-muted);
    font-size: 0.82rem;
}

.ipe-owner .ipe-profile-preview {
    display: block;
    width: min(100%, 280px);
    height: auto;
    margin: 0.5rem auto 0;
}

.ipe-owner .ipe-profile-preview[hidden],
.ipe-owner .deck-end-svg[hidden] {
    display: none !important;
}

.ipe-owner .ipe-owner-price-table {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

@media (min-width: 992px) {
    .ipe-owner .ipe-configurator-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
        gap: 1.5rem;
        align-items: start;
    }

    .ipe-owner .ipe-deck-preview {
        position: sticky;
        top: 7rem;
    }
}

@media (max-width: 991px) {
    .ipe-owner .ipe-configurator-layout {
        display: flex;
        flex-direction: column;
    }

    .ipe-owner .ipe-deck-preview {
        position: static;
        max-width: none;
        margin-top: .25rem;
    }
}

/* Keep the buying introduction and its grade details together. */
.ipe-owner #buying-facts { padding-bottom: 0; }
.ipe-owner #buying-facts .yp-facts { margin-bottom: 0; }
.ipe-owner #grades { padding-top: 2.5rem; }
.ipe-owner #grades .container-xl > :first-child { margin-top: 0; }
.ipe-owner .ipe-profile-guide > * { min-width: 0; }
@media (max-width: 767px) {
    .ipe-owner #grades { padding-top: 1.75rem; }
    .ipe-owner .ipe-profile-guide { grid-template-columns: minmax(0, 1fr); }
    .ipe-owner .ipe-profile-figure .deck-end-svg { max-width: 22rem; margin-inline: auto; }
    .ipe-owner .ipe-profile-comparison { overflow-x: visible; }
    .ipe-owner .ipe-profile-comparison table { display: block; }
    .ipe-owner .ipe-profile-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .ipe-owner .ipe-profile-comparison tbody { display: grid; gap: .75rem; }
    .ipe-owner .ipe-profile-comparison tr { display: grid; border: 1px solid #d6ddd2; border-radius: 8px; padding: .5rem; }
    .ipe-owner .ipe-profile-comparison td { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: .5rem; border: 0; }
    .ipe-owner .ipe-profile-comparison td::before { content: attr(data-label); font-weight: 600; }
}
