/* CV-SMART-SUGGESTIONS — Smart Suggestions curation lightbox (new file).
   Self-contained: every class is cvss- prefixed. Inherits the host page's
   Culture Vitale variables when present and falls back to the portfolio's
   dark palette, so the lightbox can be called from any page. Light mode
   follows body.cvp-light exactly like the portfolio. */

.cvss-launch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    background: var(--cv-brass, #c8aa78);
    color: var(--cv-green-deep, #16251c);
    padding: 10px 20px;
    cursor: pointer;
    font-family: var(--cv-font-sans, "DM Sans", sans-serif);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cvss-launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
}

.cvss-launch svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Launcher rail: the portfolio's dual toggle stays exactly where it is and
   exactly as it is, centred; the launcher rides at its right as a compact
   companion, dropping below it on narrow screens. */
.cvp-tabs-rail {
    position: relative;
    width: min(100%, 1560px);
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cvp-tabs-rail .cvp-tabs {
    margin-left: auto;
    margin-right: auto;
}

.cvp-tabs-rail .cvss-launch-rail {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    min-height: 38px;
    gap: 7px;
    padding: 9px 16px;
    font-size: .68rem;
}

.cvp-tabs-rail .cvss-launch-rail svg {
    width: 13px;
    height: 13px;
}

.cvp-tabs-rail .cvss-launch-rail:hover {
    transform: translateY(-50%) translateY(-1px);
}

@media (max-width: 1180px) {
    .cvp-tabs-rail {
        flex-direction: column;
        gap: 12px;
    }

    .cvp-tabs-rail .cvss-launch-rail {
        position: static;
        transform: none;
    }

    .cvp-tabs-rail .cvss-launch-rail:hover {
        transform: translateY(-1px);
    }
}

.cvss-launch {
    position: relative;
}

/* Notification-style badge once a curation exists for the session. */
.cvss-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    background: var(--cv-green-deep, #16251c);
    color: var(--cv-brass, #c8aa78);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* ---------- Lightbox shell ---------- */

.cvss-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    background: rgba(5, 8, 6, .74);
    backdrop-filter: blur(12px);
}

.cvss-box {
    position: fixed;
    z-index: 91;
    top: calc(50% + 21px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1460px, calc(100vw - 28px));
    max-height: min(880px, calc(100vh - 84px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(200, 170, 120, .32);
    background: var(--cv-green, #203529);
    color: var(--cv-ink, #ebe4d2);
    box-shadow: 0 38px 100px rgba(0, 0, 0, .5);
    font-family: var(--cv-font-sans, "DM Sans", sans-serif);
    font-weight: 300;
}

body.cvp-light .cvss-box {
    background: #f6f1e8;
}

.cvss-frame {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200, 170, 120, .18);
    pointer-events: none;
}

/* The close control sits as a tab extension outside the lightbox's top right
   corner: unmistakable, and the only way to dismiss the curation. */
.cvss-close-tab {
    position: absolute;
    z-index: 5;
    top: -42px;
    right: 28px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid rgba(200, 170, 120, .32);
    border-bottom: 0;
    background: var(--cv-green, #203529);
    color: var(--cv-ink, #ebe4d2);
    cursor: pointer;
    font-family: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.cvp-light .cvss-close-tab {
    background: #f6f1e8;
}

.cvss-close-tab span[aria-hidden] {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    color: var(--cv-brass, #c8aa78);
}

.cvss-close-tab:hover {
    color: var(--cv-brass, #c8aa78);
}

/* Themed scrollbars: a hairline brass thumb, no default chrome. */
.cvss-scroll,
.cvss-side-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 170, 120, .5) transparent;
}

.cvss-scroll::-webkit-scrollbar,
.cvss-side-scroll::-webkit-scrollbar {
    width: 6px;
}

.cvss-scroll::-webkit-scrollbar-track,
.cvss-side-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cvss-scroll::-webkit-scrollbar-thumb,
.cvss-side-scroll::-webkit-scrollbar-thumb {
    background: rgba(200, 170, 120, .45);
    border-radius: 999px;
}

.cvss-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(26px, 4vw, 46px);
    flex: 1;
    min-height: 0;
}

.cvss-kicker {
    margin: 0 0 10px;
    color: var(--cv-brass, #c8aa78);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .3em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cvss-kicker svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cvss-box h2 {
    margin: 0 0 12px;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.08;
}

.cvss-box h2 em {
    font-style: italic;
}

.cvss-sub {
    margin: 0 0 26px;
    max-width: 62ch;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    line-height: 1.66;
    font-size: .93rem;
}

/* ---------- Step: brief ---------- */

.cvss-brief textarea {
    width: 100%;
    min-height: 168px;
    resize: vertical;
    border: 1px solid rgba(200, 170, 120, .3);
    border-radius: 0;
    outline: none;
    background: rgba(9, 14, 10, .26);
    color: inherit;
    padding: 14px 16px;
    font-family: inherit;
    font-size: .95rem;
    line-height: 1.6;
}

body.cvp-light .cvss-brief textarea {
    background: rgba(255, 255, 255, .62);
}

.cvss-brief textarea:focus {
    border-color: var(--cv-brass, #c8aa78);
}

/* ---------- Step: details ---------- */

.cvss-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.cvss-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--cv-muted, rgba(235, 228, 210, .58));
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.cvss-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(200, 170, 120, .3);
    border-radius: 0;
    outline: none;
    background: rgba(9, 14, 10, .26);
    color: inherit;
    padding: 9px 12px;
    font-family: inherit;
    font-size: .92rem;
}

body.cvp-light .cvss-field input {
    background: rgba(255, 255, 255, .62);
}

.cvss-field input:focus {
    border-color: var(--cv-brass, #c8aa78);
}

.cvss-field input.cvss-invalid {
    border-color: rgba(196, 106, 84, .85);
}

/* ---------- Shared actions ---------- */

.cvss-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.cvss-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    background: var(--cv-brass, #c8aa78);
    color: var(--cv-green-deep, #16251c);
    padding: 10px 22px;
    cursor: pointer;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

.cvss-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cvss-btn:disabled {
    opacity: .55;
    cursor: default;
}

.cvss-btn-ghost {
    background: transparent;
    color: var(--cv-brass, #c8aa78);
}

.cvss-back {
    border: 0;
    background: transparent;
    color: var(--cv-dim, rgba(235, 228, 210, .46));
    cursor: pointer;
    font-family: inherit;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 10px 2px;
}

.cvss-back:hover {
    color: var(--cv-brass, #c8aa78);
}

.cvss-note {
    margin: 18px 0 0;
    color: var(--cv-dim, rgba(235, 228, 210, .46));
    font-size: .78rem;
    line-height: 1.6;
}

.cvss-error {
    margin: 14px 0 0;
    color: #d9a08c;
    font-size: .82rem;
}

body.cvp-light .cvss-error {
    color: #9c4a33;
}

/* ---------- Step: curating (loading) ---------- */

.cvss-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 320px;
    gap: 18px;
}

.cvss-ring {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(200, 170, 120, .3);
    border-top-color: var(--cv-brass, #c8aa78);
    border-radius: 999px;
    animation: cvssSpin 1.15s linear infinite;
}

@keyframes cvssSpin {
    to { transform: rotate(360deg); }
}

.cvss-loading-line {
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: 1.35rem;
    font-weight: 400;
    min-height: 1.6em;
    transition: opacity .4s ease;
}

.cvss-loading-dots i {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 3px;
    border-radius: 999px;
    background: var(--cv-brass, #c8aa78);
    animation: cvssPulse 1.2s ease-in-out infinite;
}

.cvss-loading-dots i:nth-child(2) { animation-delay: .18s; }
.cvss-loading-dots i:nth-child(3) { animation-delay: .36s; }

@keyframes cvssPulse {
    0%, 100% { opacity: .25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

/* ---------- Step: results ---------- */

.cvss-results-head {
    padding-right: 210px; /* keeps the heading clear of the fixed New brief button */
}

.cvss-newbrief {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: 4px;
    border: 0;
    background: transparent;
    color: var(--cv-dim, rgba(235, 228, 210, .46));
    cursor: pointer;
    font-family: inherit;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 8px 2px;
}

.cvss-newbrief svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cvss-newbrief:hover {
    color: var(--cv-brass, #c8aa78);
}

/* Always in reach: the New brief control sits in the lightbox chrome, above
   the scrolling curation, so it never disappears as the visitor scrolls.
   Brass throughout so it reads unmistakably as an action. */
.cvss-newbrief-fixed {
    position: absolute;
    z-index: 5;
    /* Sits level with the "Curated for you" heading, clear of the right edge. */
    top: 74px;
    right: 46px;
    margin-top: 0;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    /* Opaque: content scrolling underneath must never show through. */
    background: var(--cv-green, #203529);
    color: var(--cv-brass, #c8aa78);
    font-size: .72rem;
    letter-spacing: .12em;
}

.cvss-newbrief-fixed svg {
    width: 15px;
    height: 15px;
}

body.cvp-light .cvss-newbrief-fixed {
    background: rgba(154, 122, 78, .1);
}

.cvss-newbrief-fixed:hover {
    background: var(--cv-brass, #c8aa78);
    color: var(--cv-green-deep, #16251c);
}

/* Selection count carried on the quote button itself. */
.cvss-count-chip {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    margin-left: 2px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--cv-green-deep, #16251c);
    color: var(--cv-brass, #c8aa78);
    font-size: .64rem;
    font-weight: 700;
}

/* Delivery and place pills, styled after the portfolio lightbox pills. */
.cvss-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}

.cvss-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    color: var(--cv-brass, #c8aa78);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cvss-pill-ghost {
    border-color: rgba(200, 170, 120, .4);
    color: var(--cv-muted, rgba(235, 228, 210, .68));
}

.cvss-side-copy {
    margin: 14px 0 0;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .86rem;
    line-height: 1.66;
}

.cvss-side-offerings {
    margin: 0;
    padding: 0 0 0 1.1em;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .84rem;
    line-height: 1.62;
}

.cvss-side-offerings li {
    margin: 0 0 4px;
}

/* Golden-circle numbered steps: the visitor's next actions at a glance. */
.cvss-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 30px;
    margin: 2px 0 8px;
}

.cvss-step {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .86rem;
}

.cvss-step i {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    color: var(--cv-brass, #c8aa78);
    font-style: normal;
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
}

.cvss-section {
    margin: 26px 0 0;
}

.cvss-section-title {
    margin: 0 0 14px;
    color: var(--cv-brass, #c8aa78);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.cvss-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
    gap: 16px;
}

.cvss-row-compact {
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
}

.cvss-card {
    position: relative;
    border: 1px solid rgba(200, 170, 120, .22);
    background: var(--cv-panel, rgba(255, 255, 255, .045));
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

.cvss-card:hover {
    border-color: var(--cv-brass, #c8aa78);
    transform: translateY(-2px);
}

.cvss-card.cvss-ticked {
    border-color: var(--cv-brass, #c8aa78);
    box-shadow: 0 0 0 1px var(--cv-brass, #c8aa78) inset;
}

.cvss-card-media {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgba(9, 14, 10, .3);
}

.cvss-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvss-card-media-empty {
    display: grid;
    place-items: center;
}

.cvss-card-media-empty svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: rgba(200, 170, 120, .5);
    stroke-width: 1.2;
}

.cvss-card-body {
    display: block;
    padding: 12px 13px 14px;
}

.cvss-card-kicker {
    margin: 0 0 5px;
    color: var(--cv-brass, #c8aa78);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* Workshop titles show in full: no clamping, ever. */
.cvss-card h4 {
    margin: 0 0 6px;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.18;
    overflow-wrap: break-word;
}

.cvss-card-meta {
    margin: 0;
    color: var(--cv-dim, rgba(235, 228, 210, .46));
    font-size: .68rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cvss-tick {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(235, 228, 210, .55);
    border-radius: 999px;
    background: rgba(5, 8, 6, .45);
    color: #f4efe5;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, border-color .15s ease;
}

.cvss-tick svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .15s ease;
}

.cvss-tick:hover {
    border-color: var(--cv-brass, #c8aa78);
}

.cvss-card.cvss-ticked .cvss-tick {
    background: var(--cv-brass, #c8aa78);
    border-color: var(--cv-brass, #c8aa78);
    color: var(--cv-green-deep, #16251c);
}

.cvss-card.cvss-ticked .cvss-tick svg {
    opacity: 1;
}

/* Person cards */

.cvss-person .cvss-card-media {
    aspect-ratio: 1 / 1;
}

/* ---------- Results footer bar ---------- */

.cvss-footer {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px clamp(18px, 3vw, 30px);
    border-top: 1px solid rgba(200, 170, 120, .24);
    background: var(--cv-green-deep, #16251c);
}

body.cvp-light .cvss-footer {
    background: #ece4d4;
}

.cvss-footer-count {
    margin-right: auto;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .78rem;
}

/* ---------- Detail sidebar ---------- */

.cvss-side {
    position: absolute;
    z-index: 6; /* covers the fixed New brief control while open */
    top: 0;
    right: 0;
    bottom: 0;
    width: min(470px, 100%);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(200, 170, 120, .3);
    background: var(--cv-green-deep, #16251c);
    box-shadow: -26px 0 60px rgba(0, 0, 0, .4);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
}

body.cvp-light .cvss-side {
    background: #efe8d9;
}

.cvss-side.cvss-side-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .28s ease, visibility 0s;
}

.cvss-side-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 26px 28px;
    flex: 1;
    min-height: 0;
}

/* One reading size across the detail panel: description, benefits, past
   clients and qualifications all match. Nothing is truncated, so this
   region scrolls as far as the content runs. */
.cvss-side-copy,
.cvss-side-block p,
.cvss-side-offerings {
    font-size: .88rem;
    line-height: 1.66;
}

/* The author's paragraph breaks are preserved and honoured. */
.cvss-side-copy,
.cvss-side-block p {
    white-space: pre-line;
}

/* Sidebar close lives top LEFT so it never collides with the lightbox close. */
.cvss-side-close {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(200, 170, 120, .4);
    border-radius: 999px;
    background: rgba(5, 8, 6, .4);
    color: #f4efe5;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

body.cvp-light .cvss-side-close {
    background: rgba(255, 255, 255, .5);
    color: #1c241d;
}

.cvss-side-media {
    margin: -24px -26px 18px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(9, 14, 10, .3);
}

.cvss-side-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvss-side h3 {
    margin: 0 0 8px;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.12;
}

.cvss-side-host {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(200, 170, 120, .18);
}

.cvss-side-host img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.cvss-side-host div {
    font-size: .8rem;
    line-height: 1.35;
}

.cvss-side-host small {
    color: var(--cv-dim, rgba(235, 228, 210, .46));
    display: block;
    font-size: .66rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cvss-side-block {
    margin: 16px 0 0;
}

.cvss-side-block strong {
    display: block;
    margin-bottom: 6px;
    color: var(--cv-brass, #c8aa78);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.cvss-side-block p {
    margin: 0;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .84rem;
    line-height: 1.62;
}

.cvss-side-actions {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 26px 18px;
    border-top: 1px solid rgba(200, 170, 120, .22);
}

/* ---------- Hover preview (desktop) ----------
   A floating preview of the card's detail, shown in the opposite half of the
   lightbox so it never covers the card being pointed at. Pointer-transparent. */

.cvss-peek {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: min(660px, calc(100% - 72px));
    display: flex;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(200, 170, 120, .4);
    background: var(--cv-green-deep, #16251c);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
    pointer-events: none;
}

body.cvp-light .cvss-peek {
    background: #efe8d9;
}

.cvss-peek.cvss-peek-bottom {
    top: auto;
    bottom: 96px; /* clears the action footer */
}

.cvss-peek-media {
    display: block;
    flex: 0 0 168px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(9, 14, 10, .3);
}

.cvss-peek-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cvss-peek-body {
    display: block;
    min-width: 0;
    align-self: center;
}

.cvss-peek-body h4 {
    margin: 0 0 6px;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.15;
}

.cvss-peek-copy {
    margin: 0 0 7px;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .8rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Deliverability notice ---------- */

.cvss-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    max-width: 58ch;
    margin: 4px auto 0;
    padding: 13px 16px;
    border: 1px solid rgba(200, 170, 120, .34);
    border-left-width: 2px;
    background: rgba(200, 170, 120, .07);
    text-align: left;
}

.cvss-notice svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin-top: 2px;
    fill: none;
    stroke: var(--cv-brass, #c8aa78);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cvss-notice span {
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    font-size: .78rem;
    line-height: 1.6;
}

.cvss-notice strong {
    color: var(--cv-brass, #c8aa78);
    font-weight: 700;
}

/* ---------- Sending overlay ---------- */

.cvss-sending {
    position: absolute;
    z-index: 8;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 8, 6, .72);
    backdrop-filter: blur(6px);
}

body.cvp-light .cvss-sending {
    background: rgba(246, 241, 232, .82);
}

.cvss-sending-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 34px 44px;
    border: 1px solid rgba(200, 170, 120, .4);
    background: var(--cv-green, #203529);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

body.cvp-light .cvss-sending-card {
    background: #f6f1e8;
}

.cvss-sending-card p {
    margin: 0;
    font-family: var(--cv-font-serif, "Cormorant Garamond", serif);
    font-size: 1.3rem;
    font-weight: 400;
}

/* ---------- Confirmation ---------- */

.cvss-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    gap: 14px;
    padding: 20px;
}

.cvss-done-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--cv-brass, #c8aa78);
    border-radius: 999px;
    color: var(--cv-brass, #c8aa78);
}

.cvss-done-mark svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cvss-done h2 {
    margin: 0;
}

.cvss-done p {
    max-width: 52ch;
    margin: 0;
    color: var(--cv-muted, rgba(235, 228, 210, .68));
    line-height: 1.66;
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
    .cvss-box {
        top: calc(50% + 24px);
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 62px);
    }

    .cvss-close-tab {
        top: -42px;
        right: 12px;
        padding: 0 16px;
    }

    .cvss-grid {
        grid-template-columns: 1fr;
    }

    .cvss-row,
    .cvss-row-compact {
        grid-template-columns: 1fr 1fr;
    }

    .cvss-results-head {
        padding-right: 108px;
    }

    .cvss-newbrief-fixed {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
    }

    .cvss-steps {
        gap: 10px 18px;
    }

    .cvss-side {
        width: 100%;
        border-left: 0;
    }

    .cvss-footer {
        gap: 8px;
    }

    .cvss-footer-count {
        flex-basis: 100%;
        margin-right: 0;
    }

    .cvss-peek {
        display: none;
    }
}
