 /* ===== Shared theme bits (from x_compare) ===== */
    .btn-sm {
        padding: 5px 15px;
        font-size: 0.8rem;
    }

    /* Nav rules handled globally in head.css */

    body.no-hero main {
        padding-top: 110px;
    }

    .header-base {
        background: #ffffff;

    }

    .header-base h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 700;
    }

    .header-base h4 {
        margin-top: -18px;
        font-size: 14px;
        font-weight: 400;
        color: #64748b;
    }

    main>section>.container {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* ===== Manual page layout ===== */
    .page {
        max-width: 1280px;
        margin: 0 auto;
    }

    .layout {
        display: grid;
        grid-template-columns: minmax(340px, 520px) 1fr;
        gap: 16px;
        height: calc(100vh - 190px);
    }

    .left,
    .right {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        overflow: hidden;
    }

    .left {
        display: flex;
        flex-direction: column;
    }

    .pdf-wrap {
        flex: 1 1 auto;
        min-height: 0;
    }

    .pdf-wrap iframe,
    .pdf-wrap object {
        width: 100%;
        height: 100%;
        border: 0;
    }

    .right {
        padding: 16px;
        overflow: auto;
    }

    .group-title {
        margin: 16px 0 8px;
        font-weight: 600;
        font-size: 13px;
        color: #0f172a;
    }

    .kv {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 8px;
        padding: 6px 0;
        border-bottom: 1px dashed #e2e8f0;
        font-size: 12px;
    }

    .kv:last-child {
        border-bottom: 0;
    }

    .kv .k {
        color: #64748b;
    }

    .kv .v {
        white-space: pre-wrap;
    }

    .right .kv,
    .right .features-collapse {
        user-select: none;
    }

    .guest-model-preview {
        position: relative;
        flex: 1 1 auto;
        min-height: 360px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 28px;
        background: linear-gradient(135deg, #f8fafc 0%, #eef8fa 100%);
        overflow: hidden;
    }

    .guest-pdf-ghost {
        position: absolute;
        inset: 28px 36px;
        z-index: 1;
        border: 1px solid #dbe7ef;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
        filter: blur(2.4px);
        opacity: .62;
        transform: rotate(-1.5deg);
        padding: 20px;
    }

    .ghost-toolbar {
        height: 18px;
        margin: -20px -20px 18px;
        border-radius: 8px 8px 0 0;
        background: #004767;
    }

    .ghost-title,
    .ghost-line,
    .ghost-table span {
        display: block;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .ghost-title {
        width: 54%;
        height: 18px;
        margin-bottom: 22px;
        background: #94a3b8;
    }

    .ghost-line {
        width: 72%;
        height: 10px;
        margin-bottom: 10px;
    }

    .ghost-line.wide {
        width: 88%;
    }

    .ghost-line.short {
        width: 46%;
    }

    .ghost-table {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 26px 0;
    }

    .ghost-table span {
        height: 28px;
        border-radius: 4px;
        background: #e2e8f0;
    }

    .guest-product-card {
        position: relative;
        z-index: 2;
        width: min(76%, 360px);
        padding: 18px;
        border: 1px solid rgba(226, 232, 240, .9);
        border-radius: 10px;
        background: rgba(255, 255, 255, .88);
        box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
    }

    .guest-product-card img {
        width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .guest-model-fallback {
        width: 160px;
        height: 160px;
        border-radius: 18px;
        background: #004767;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 42px;
        font-weight: 700;
    }

    .guest-pdf-lock {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 24px;
        z-index: 3;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 12px 14px;
        border: 1px solid #bdeff3;
        border-radius: 8px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 10px 28px rgba(15, 23, 42, .12);
    }

    .guest-pdf-lock strong {
        font-size: 13px;
        color: #0f172a;
    }

    .guest-pdf-lock span {
        flex: 1;
        min-width: 180px;
        font-size: 12px;
        color: #64748b;
    }

    .limited-preview-callout {
        margin-bottom: 14px;
        padding: 14px;
        border: 1px solid #bdeff3;
        border-radius: 10px;
        background: #f0fcfd;
    }

    .limited-preview-callout h3 {
        margin: 0 0 6px;
        font-size: 15px;
    }

    .limited-preview-callout p {
        margin-bottom: 10px;
        font-size: 12px;
        color: #475569;
    }

    .locked-specs-wrap {
        position: relative;
    }

    .locked-specs-wrap .kv {
        pointer-events: none;
    }

    .locked-specs-wrap .v {
        filter: blur(4px);
        opacity: .58;
    }

    .locked-specs-overlay {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.84));
        pointer-events: auto;
    }

    .locked-placeholder {
        display: inline-block;
        min-width: 160px;
        height: 13px;
        border-radius: 999px;
        color: transparent;
        background: #cbd5e1;
    }

    .locked-features-wrap {
        min-height: 46px;
    }

    .secondary {
        color: #94a3b8;
        text-decoration: none;
    }

    .card {
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #ffffff;
        margin-bottom: 10px;
        font-size: 13px;
    }

    form label {
        display: block;
        margin: 8px 0;
        font-size: 12px;
    }

    input[type="text"],
    textarea {
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 8px 10px;
        font-size: 12px;
    }

    textarea {
        min-height: 100px;
    }

    details {
        margin-top: 8px;
        font-size: 12px;
    }

    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .actions {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 16px;
    }



    @media (max-width: 900px) {
        .layout {
            grid-template-columns: 1fr;
            height: auto;
        }

        .left {
            height: 50vh;
        }
    }

    /* === FIX #2: tighter spec spacing & compact typography === */

    /* Overall right panel padding a bit smaller */
    .right {
        padding: 12px;
    }

    /* Group titles closer to lists and slightly smaller */
    .group-title {
        margin: 12px 0 6px;
        font-size: 12px;
        font-weight: 600;
    }

    /* Softer group separators */
    .right hr {
        margin: 10px 0;
        border: 0;
        border-top: 1px solid #eef2f7;
    }

    /* Key–Value rows: less vertical padding, tighter gap, compact line-height */
    .kv {
        grid-template-columns: 200px 1fr;
        /* was 220px */
        gap: 6px;
        /* was 8px */
        padding: 3px 0;
        /* was 6px 0 */
        border-bottom: 1px dashed #edf2f7;
        /* lighter line */
        font-size: 11.5px;
        /* slightly smaller */
        line-height: 1.25;
        /* tighter lines */
    }

    /* Remove any accidental extra spacing inside cells */
    .kv .k,
    .kv .v {
        margin: 0;
    }

    /* Form elements in edit mode—also a bit tighter */
    form label {
        margin: 6px 0;
    }

    /* was 8px */
    input[type="text"],
    textarea {
        padding: 6px 8px;
        /* was 8px 10px */
        font-size: 12px;
    }

    /* Feature textarea doesn't need to be tall by default */
    textarea {
        min-height: 80px;
    }

    .header-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-flex h1 {
        margin-bottom: 4px;
    }

    .header-right .btn {
        margin-top: 4px;
        white-space: nowrap;
    }

    .features-collapse {
        margin-top: 6px;
    }

    .features-summary {

        align-items: center;
        gap: 8px;
        border: 1px solid #03BFCB;

        padding: 10px 30px;
        font-size: 15px;
        user-select: none;
        font-weight: 600;
        background: none;
        border-color: #03BFCB;
        border-radius: 100px;
        display: inline-block;
        text-decoration: none;
        border-style: solid;
        border-width: 1px;
        position: relative;
        cursor: pointer;
        outline: none;
        text-align: center;
        transition: all .5s;
    }

    .features-summary::before {
        content: "▸";
        display: inline-block;
        transition: transform .15s ease;
    }

    .features-collapse[open] .features-summary::before {
        transform: rotate(90deg);
    }

    .features-count {
        color: #64748b;
        font-weight: 500;
    }

    .features-body {
        margin-top: 8px;
    }

    .features-list {
        margin: 0;
        padding-left: 18px;
        font-size: 12px;
        line-height: 1.35;
    }

    .features-list li {
        margin: 2px 0;
    }

/* ── Brochure upgrade banner (free users) ───────────────────── */
.brochure-upgrade-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,71,103,.96), rgba(0,118,142,.92));
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,71,103,.18);
}

.brochure-upgrade-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.brochure-upgrade-text span {
    font-size: 13px;
    color: rgba(255,255,255,.78);
    line-height: 1.45;
}

.brochure-upgrade-banner .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .brochure-upgrade-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Compare CTA banner (public spec page) ──────────────────── */
.model-compare-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #eef6f9;
    border: 1px solid #cfe6ec;
}

.model-compare-cta strong {
    display: block;
    font-size: 15px;
    color: #0b2b3c;
    margin-bottom: 4px;
}

.model-compare-cta span {
    font-size: 13px;
    color: #405568;
    line-height: 1.45;
}

.model-compare-cta .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .model-compare-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.compare-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 8px;
}

.compare-suggestions a {
    font-size: 12px;
    color: #04788e;
    background: #fff;
    border: 1px solid #cfe6ec;
    border-radius: 999px;
    padding: 4px 10px;
    text-decoration: none;
}

.compare-suggestions a:hover {
    background: #04788e;
    color: #fff;
}

