/* Arkansas Yellow Pine Template B — scoped to .ayp-owner */

.ayp-owner {
    --yp-ink: #111111;
    --yp-muted: #5c5c5c;
    --yp-line: rgba(26, 71, 42, 0.12);
    color: var(--yp-ink);
}

.ayp-owner section[id] {
    scroll-margin-top: 130px;
}

.ayp-owner .yp-hero {
    min-height: min(62vh, 560px);
}

.ayp-owner .yp-hero .breadcrumb-trail {
    color: rgba(255, 255, 255, 0.85);
}

.ayp-owner .yp-hero h1 {
    color: #fff;
    max-width: 22ch;
}

.ayp-owner .yp-hero-lead {
    color: rgba(255, 255, 255, 0.92);
    max-width: 42rem;
    font-size: 1.05rem;
    margin: 0.75rem 0 1.25rem;
}

.ayp-owner .yp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ayp-owner .yp-btn-on-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.ayp-owner .yp-btn-on-dark:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ayp-owner .yp-anchor-nav {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(245, 245, 245, 0.96);
    border-bottom: 1px solid var(--yp-line);
}

.ayp-owner .yp-anchor-list {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0;
    display: flex;
    gap: 0.35rem 1.1rem;
    overflow-x: auto;
    white-space: nowrap;
}

.ayp-owner .yp-anchor-list a {
    color: var(--timber-green);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.ayp-owner .yp-anchor-list a:hover,
.ayp-owner .yp-anchor-list a:focus-visible {
    border-bottom-color: var(--timber-gold);
    outline: none;
}

.ayp-owner .yp-facts {
    margin: 0 0 1.5rem;
    padding-left: 1.2rem;
}

.ayp-owner .yp-facts li {
    margin-bottom: 0.55rem;
}

.ayp-owner .yp-note {
    background: var(--timber-cream);
    border-left: 4px solid var(--timber-gold);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
}

.ayp-owner .yp-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 1.5rem;
}

.ayp-owner .yp-profile-card {
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    background: #fff;
}

.ayp-owner .yp-profile-card strong {
    display: block;
    color: var(--timber-green);
    margin-bottom: 0.35rem;
}

.ayp-owner .yp-product-list {
    margin: 0 0 1.5rem;
    padding-left: 1.15rem;
}

.ayp-owner .yp-product-list li {
    margin-bottom: 0.4rem;
}

.ayp-owner .yp-life {
    color: var(--yp-muted);
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.ayp-owner .yp-caption {
    font-size: 0.82rem;
    color: var(--yp-muted);
    margin-top: 0.5rem;
}

.ayp-owner .yp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.ayp-owner .yp-photo-grid figure {
    margin: 0;
}

.ayp-owner .yp-photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

.ayp-owner .yp-photo-grid figcaption {
    font-size: 0.82rem;
    color: var(--yp-muted);
    margin-top: 0.4rem;
}

.ayp-owner .yp-end-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.ayp-owner [hidden] {
    display: none !important;
}

.ayp-owner .yp-estimator-lead {
    max-width: 46rem;
    color: var(--yp-muted);
    margin: 0 0 0.5rem;
}

.ayp-owner .yp-estimator-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}

.ayp-owner .yp-estimator {
    display: contents;
}

.ayp-owner .yp-estimator-stack {
    display: contents;
}

.ayp-owner .yp-profile-fieldset,
.ayp-owner .yp-estimator-body {
    background: #fff;
    border: 1px solid var(--timber-border);
    border-radius: 12px;
    padding: 1.1rem 1.15rem 1.25rem;
}

.ayp-owner .yp-profile-fieldset {
    order: 1;
}

.ayp-owner .yp-estimator-aside {
    order: 2;
}

.ayp-owner .yp-estimator-body {
    order: 3;
}

.ayp-owner .yp-project-type-aside {
    border: 1px solid var(--timber-border);
    border-radius: 8px;
    padding: 0.55rem 0.7rem 0.65rem;
    margin: 0 0 0.85rem;
    background: #fff;
}

.ayp-owner .yp-project-type-aside legend {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--timber-green);
    float: none;
    width: auto;
    padding: 0 0.3rem;
}

.ayp-owner .yp-project-type-aside .yp-style-option {
    padding: 0.35rem 0.65rem;
    min-height: 36px;
    font-size: 0.75rem;
}

.ayp-owner .yp-project-type-aside.is-flooring .yp-style-option {
    opacity: 0.55;
    pointer-events: none;
}

.ayp-owner .yp-profile-visual {
    margin: 0;
    position: static;
    background: #f7f5ef;
    border: 1px solid #d6ddd2;
    border-radius: 16px;
    padding: 1rem 1.1rem 1.15rem;
}

.ayp-owner .yp-profile-visual figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.65rem;
}

.ayp-owner .yp-profile-visual figcaption strong {
    color: var(--timber-green);
    font-size: 1rem;
}

.ayp-owner .yp-profile-visual figcaption span {
    color: #667164;
    font-size: 0.78rem;
    line-height: 1.35;
}

.ayp-owner .yp-diagram-svg svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.ayp-owner .yp-profile-visual .yp-note {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
}

.ayp-owner .yp-estimator fieldset {
    border: 1px solid var(--timber-border);
    border-radius: 6px;
    padding: 0.85rem 1rem 1rem;
    margin: 0 0 1rem;
}

.ayp-owner .yp-profile-fieldset {
    margin-bottom: 0;
}

.ayp-owner .yp-estimator legend {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--timber-green);
    float: none;
    width: auto;
    padding: 0 0.35rem;
}

.ayp-owner .yp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.ayp-owner .yp-estimator label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--timber-green);
}

.ayp-owner .yp-estimator input,
.ayp-owner .yp-estimator select {
    font-weight: 400;
    color: var(--yp-ink);
    border: 1px solid var(--timber-border);
    border-radius: 4px;
    padding: 0.65rem 0.6rem;
    min-height: 44px;
    width: 100%;
}

.ayp-owner .yp-estimator input:focus,
.ayp-owner .yp-estimator select:focus {
    outline: 2px solid var(--timber-gold);
    outline-offset: 1px;
}

.ayp-owner .yp-style-pills,
.ayp-owner .yp-size-series {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ayp-owner .yp-size-series {
    margin-bottom: 0.55rem;
}

.ayp-owner .yp-style-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    border: 1px solid var(--timber-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--timber-green);
    background: #fff;
    cursor: pointer;
}

.ayp-owner .yp-style-option:has(input:checked) {
    background: var(--timber-green);
    border-color: var(--timber-green);
    color: #fff;
}

.ayp-owner .yp-chip-locked {
    cursor: default;
    opacity: 0.92;
}

.ayp-owner .yp-style-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.ayp-owner .yp-card-controls {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.ayp-owner .yp-sec {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.ayp-owner .yp-sec > span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-muted, #667164);
}

.ayp-owner .yp-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.ayp-owner .yp-mode-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0.55rem 0.9rem;
    min-height: 44px;
    border: 1px solid var(--timber-border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--timber-green);
    background: #fff;
}

.ayp-owner .yp-mode-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.ayp-owner .yp-mode-option:has(input:checked) {
    background: var(--timber-green);
    border-color: var(--timber-green);
    color: #fff;
}

.ayp-owner .yp-mode-option:has(input:focus-visible) {
    outline: 2px solid var(--timber-gold);
    outline-offset: 2px;
}

.ayp-owner .yp-project-block {
    margin: 0 0 1rem;
}

.ayp-owner .yp-project-compact {
    margin: 0 0 0.25rem;
}

.ayp-owner .yp-project-compact .yp-size-more {
    margin-top: 0;
}

.ayp-owner .yp-field-label,
.ayp-owner .yp-pick-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--timber-green);
    margin: 0 0 0.4rem;
}

.ayp-owner .yp-pick-row {
    margin: 0 0 0.9rem;
}

.ayp-owner .yp-pick-row:last-child {
    margin-bottom: 0;
}

.ayp-owner .yp-product-fieldset .yp-style-option {
    white-space: normal;
    line-height: 1.25;
    text-align: center;
}

.ayp-owner .yp-hint {
    font-size: 0.78rem;
    color: var(--yp-muted);
    margin: 0.35rem 0 0;
}

.ayp-owner .yp-size-summary {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--yp-muted);
}

.ayp-owner .yp-size-more {
    margin-top: 0.55rem;
}

.ayp-owner .yp-size-more summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--timber-green);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.ayp-owner .yp-size-more .yp-size-series,
.ayp-owner .yp-size-more .yp-style-pills {
    margin-top: 0.45rem;
}

.ayp-owner .yp-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid var(--timber-border);
    border-radius: 8px;
    background: #fbfaf6;
}

.ayp-owner .yp-row.yp-row-opening {
    grid-template-columns: 1fr 1fr 4.5rem auto;
}

.ayp-owner .yp-dim-input {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ayp-owner .yp-dim-unit {
    font-weight: 600;
    color: var(--yp-muted);
    font-size: 0.82rem;
}

.ayp-owner .yp-open-type {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    grid-column: 1 / -1;
}

.ayp-owner .yp-remove {
    background: none;
    border: 0;
    color: #8a2f2f;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
}

.ayp-owner .yp-add-btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
}

.ayp-owner .yp-summary {
    background: transparent;
    padding: 0;
}

.ayp-owner .yp-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 0.5rem;
    margin: 0 0 0.65rem;
}

.ayp-owner .yp-metric {
    background: var(--timber-cream);
    border: 1px solid var(--yp-line);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
}

.ayp-owner .yp-metric span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--yp-muted);
}

.ayp-owner .yp-metric strong {
    display: block;
    color: var(--timber-green);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.ayp-owner .yp-disclaimer {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    color: var(--yp-muted);
}

.ayp-owner .yp-error {
    color: #8a2f2f;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.ayp-owner .yp-skip-planner {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

.ayp-owner .yp-matches {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--timber-border);
    border-radius: 8px;
}

.ayp-owner .yp-matches ul {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.ayp-owner .sidebar-card .btn-gold,
.ayp-owner .sidebar-card .btn-timber-outline {
    margin-bottom: 0.5rem;
}

.q-flooring-handoff {
    background: #f8fdf8;
    border: 1px solid rgba(26, 71, 42, 0.2);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin: 0 0 1.25rem;
}

.q-flooring-handoff[hidden] {
    display: none;
}

.q-flooring-handoff h2 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.q-flooring-handoff ul {
    margin: 0 0 0.5rem;
    padding-left: 1.1rem;
}

@media (min-width: 992px) {
    .ayp-owner .yp-estimator-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr);
        gap: 1.75rem;
        align-items: start;
    }

    .ayp-owner .yp-estimator {
        display: block;
        background: #fff;
        border: 1px solid var(--timber-border);
        border-radius: 12px;
        padding: 1.1rem 1.15rem 1.25rem;
    }

    .ayp-owner .yp-estimator-stack {
        display: block;
    }

    .ayp-owner .yp-profile-fieldset,
    .ayp-owner .yp-estimator-body {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        order: unset;
    }

    .ayp-owner .yp-estimator-aside {
        order: unset;
        position: sticky;
        top: 7rem;
    }

    .ayp-owner .yp-profile-visual {
        position: static;
        top: auto;
    }
}

.ayp-owner .yp-flooring-unit {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}
.ayp-owner .yp-flooring-unit p {
    font-weight: 600;
    margin: 0 0 0.35rem;
}
.ayp-owner .yp-flooring-unit label {
    margin-right: 0.85rem;
}

@media (max-width: 767.98px) {
    .ayp-owner .yp-grid,
    .ayp-owner .yp-photo-grid,
    .ayp-owner .yp-row,
    .ayp-owner .yp-row.yp-row-opening {
        grid-template-columns: 1fr;
    }

    .ayp-owner .yp-photo-grid img {
        height: 200px;
    }

    .ayp-owner .yp-hero h1 {
        max-width: none;
        font-size: 1.85rem;
    }
}
