/* input(3671,1): run-time error CSS1031: Expected selector, found '@media'
input(3677,1): run-time error CSS1031: Expected selector, found '@media'
input(3683,1): run-time error CSS1031: Expected selector, found '@media'
input(3689,1): run-time error CSS1031: Expected selector, found '@media'
input(3695,1): run-time error CSS1031: Expected selector, found '@media'
input(3701,1): run-time error CSS1031: Expected selector, found '@media'
input(3708,1): run-time error CSS1031: Expected selector, found '@media'
input(3713,1): run-time error CSS1031: Expected selector, found '@media'
input(3718,1): run-time error CSS1031: Expected selector, found '@media'
input(3723,1): run-time error CSS1031: Expected selector, found '@media'
input(3728,1): run-time error CSS1031: Expected selector, found '@media'
input(3733,1): run-time error CSS1031: Expected selector, found '@media'
input(3739,1): run-time error CSS1031: Expected selector, found '@media'
input(3745,1): run-time error CSS1031: Expected selector, found '@media'
input(3753,1): run-time error CSS1031: Expected selector, found '@media' */
/* ScentVerdict - Perfume Comparison Page Styles */

/* ============================================================
   Comparison-specific custom properties
   ============================================================ */
.compare-page {
    /* Perfume A vs Perfume B colour identity - sourced from brand tokens.
       Teal = perfume A (matches --color-accent), Violet = perfume B (matches --color-verdict-statement).
       Dark-mode dim/border alphas use the SAME teal/violet but live with rgba() so we can keep them
       constant across themes; the parent strokes inherit the theme-correct hex via the brand tokens. */
    --color-a: var(--color-accent);
    --color-b: var(--color-verdict-statement);
    --color-a-dim: rgba(0, 212, 170, 0.08);
    --color-b-dim: rgba(124, 58, 237, 0.08);
    --color-a-border: rgba(0, 212, 170, 0.15);
    --color-b-border: rgba(124, 58, 237, 0.15);
    --color-shared: var(--color-accent);

    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

/* ============================================================
   Section: Header (VS row)
   ============================================================ */
.compare-header {
    margin-bottom: var(--space-2xl);
}

.vs-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: start;
    margin-bottom: var(--space-md);
}

.vs-center {
    align-self: center;
}

.vs-left {
    text-align: right;
}

.vs-right {
    text-align: left;
}

.vs-left h1,
.vs-right h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 var(--space-xs);
    line-height: 1.2;
    overflow-wrap: break-word;
}

.vs-left .compare-brand,
.vs-right .compare-brand {
    font-size: 0.9rem;
    color: var(--color-muted);
    text-decoration: none;
}

.vs-left .compare-brand:hover,
.vs-right .compare-brand:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.compare-perfume-link {
    color: inherit;
    text-decoration: none;
}

.compare-perfume-link:hover {
    text-decoration: underline;
}

.indicator-a {
    color: var(--color-a);
}

.indicator-b {
    color: var(--color-b);
}

.vs-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.vs-badge {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* .similarity-ring removed - unused (page uses .sim-score--lg instead) */

.sim-score-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-perfumer {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-top: 2px;
}

.compare-perfumer a {
    color: var(--color-accent);
    text-decoration: none;
}

.compare-perfumer a:hover {
    text-decoration: underline;
}

/* Breadcrumb */
.compare-page .breadcrumb {
    margin-bottom: var(--space-lg);
}

/* ============================================================
   Section: ScentArt Hero
   ============================================================ */
/* Override core.css .scentart-hero full-bleed (used on single perfume page) */
.compare-page .scentart-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: 0;
    width: auto;
    min-height: auto;
    position: static;
}

.scentart-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    min-width: 0;
}

.scentart-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scentart-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.5;
    font-size: 3rem;
    font-weight: 700;
}

.scentart-panel-label {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Canvas fills the panel on desktop; hidden on mobile (static img shown instead) */
.scentart-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: hsl(240, 10%, 4%);
}

/* On mobile, canvas is now shown (live animation enabled) */

/* Tap-to-expand link to full ScentArt page (mobile only) */
.scentart-expand-link {
    display: none;
}

/* "View live ScentArt" link hidden on mobile - title is above canvas instead */

/* On desktop, hide static images when canvas is active (JS toggles display) */
@media (min-width: 768px) {
    .scentart-static-img {
        position: absolute;
        inset: 0;
    }
}

/* ============================================================
   Section: Combined Verdict (curated only)
   Prominent light-on-dark callout - the most important box on
   the page. Inverted colour scheme to stand apart from all
   other cards.
   ============================================================ */
.verdict-callout {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8f5 0%, #f4fbf8 52%, #eef7f4 100%);
    border: 1px solid rgba(0, 212, 170, 0.16);
    border-left: 6px solid rgba(0, 184, 148, 0.68);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) calc(var(--space-2xl) + 3.5rem) var(--space-xl) var(--space-2xl);
    margin-bottom: var(--space-2xl);
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.12);
}

.verdict-callout-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.verdict-callout-label .verdict-type-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(0, 212, 170, 0.12);
    color: #0b6b60;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.verdict-callout-label span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b6b60;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.verdict-callout p {
    font-size: 1.075rem;
    line-height: 1.75;
    color: #1f2337;
    margin: 0;
}

html.dark-mode .verdict-callout {
    background: linear-gradient(135deg, #21303b 0%, #263742 52%, #1f2c38 100%);
    border: 1px solid rgba(45, 212, 191, 0.22);
    border-left: 6px solid rgba(45, 212, 191, 0.72);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

html.dark-mode .verdict-callout-label .verdict-type-badge {
    background: rgba(45, 212, 191, 0.14);
    color: #8ef0dc;
    border-color: rgba(45, 212, 191, 0.26);
}

html.dark-mode .verdict-callout-label span:first-child {
    color: #8ef0dc;
}

html.dark-mode .verdict-callout p {
    color: #f5f3ef;
}

@media (prefers-color-scheme: dark) {
    html:not(.light-mode) .verdict-callout {
        background: linear-gradient(135deg, #21303b 0%, #263742 52%, #1f2c38 100%);
        border: 1px solid rgba(45, 212, 191, 0.22);
        border-left: 6px solid rgba(45, 212, 191, 0.72);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
    }

    html:not(.light-mode) .verdict-callout-label .verdict-type-badge {
        background: rgba(45, 212, 191, 0.14);
        color: #8ef0dc;
        border-color: rgba(45, 212, 191, 0.26);
    }

    html:not(.light-mode) .verdict-callout-label span:first-child {
        color: #8ef0dc;
    }

    html:not(.light-mode) .verdict-callout p {
        color: #f5f3ef;
    }
}

/* ============================================================
   Section: Bottle Images + Key Facts
   ============================================================ */
.glance-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.glance-bottle {
    text-align: center;
}

.glance-bottle a {
    display: block;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23fff' width='100%25' height='100%25'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    /* Edge dark mode fix - SVG data URI white bg (see core.css .card-image) */
    color-scheme: only light;
    forced-color-adjust: none;
    -ms-high-contrast-adjust: none;
}

.glance-bottle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-md);
}

.glance-bottle .placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d2d4a 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    opacity: 0.5;
    font-size: 2.5rem;
    font-weight: 700;
}

.glance-bottle-name {
    display: block;
    margin-top: var(--space-sm);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.facts-table {
    border-collapse: collapse;
    font-size: 0.85rem;
}

.facts-table .fact-val-a,
.facts-table .fact-val-b {
    width: 100px;
}

.facts-table th {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-warm);
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--color-border);
}

.facts-table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.facts-table .fact-label {
    text-align: center;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

.facts-table .fact-val-a {
    text-align: right;
    color: var(--color-text);
}

.facts-table .fact-val-b {
    text-align: left;
    color: var(--color-text);
}

/* Gender + Price badges inside facts table */
.facts-table .gender-letter {
    vertical-align: middle;
}

.facts-table .price-badge {
    vertical-align: middle;
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ============================================================
   Section: Compare section headers
   ============================================================ */
.compare-section {
    margin-bottom: var(--space-2xl);
}

.compare-section-header {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

.compare-subsection-header {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-heading);
    margin: var(--space-xl) 0 var(--space-md);
}

/* ============================================================
   Section: Verdict cards (below At a Glance)
   ============================================================ */
.compare-verdict-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.compare-verdict-cards .verdict-content {
    background: var(--color-card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.compare-verdict-cards .verdict-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    padding: var(--space-md) var(--space-md) 0;
    margin-bottom: var(--space-xs);
}

.compare-verdict-cards .verdict-quote {
    font-size: 0.85rem;
    font-style: normal;
    line-height: 1.6;
    flex: 1;
    color: var(--color-text);
    margin: 0;
    padding: 0 var(--space-md) var(--space-md);
}

.compare-verdict-cards .verdict-strip {
    border-radius: 0;
}

/* ============================================================
   Section: Radar Chart
   ============================================================ */
.radar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.radar-wrap svg {
    max-width: 320px;
    width: 100%;
    height: auto;
}

.radar-grid-circle {
    fill: none;
    stroke: var(--color-border);
    stroke-width: 0.5;
}

.radar-axis-line {
    stroke: var(--color-border);
    stroke-width: 0.5;
}

.radar-polygon-a {
    fill: rgba(0, 212, 170, 0.15);
    stroke: var(--color-a);
    stroke-width: 2;
}

.radar-polygon-b {
    fill: rgba(124, 58, 237, 0.15);
    stroke: var(--color-b);
    stroke-width: 2;
}

.radar-dot-a {
    fill: var(--color-a);
    r: 4;
}

.radar-dot-b {
    fill: var(--color-b);
    r: 4;
}

.radar-axis-label {
    fill: var(--color-muted);
    font-size: 12px;
    font-family: var(--font-sans);
    text-anchor: middle;
    dominant-baseline: central;
}

.radar-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.radar-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--color-text);
}

.radar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
}

.radar-legend-dot--a {
    background: var(--color-a);
}

.radar-legend-dot--b {
    background: var(--color-b);
}

/* ============================================================
   Section: Mood Comparison
   ============================================================ */
.mood-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.mood-spectrum-row {
    display: grid;
    grid-template-columns: 80px 80px 1fr 80px;
    gap: var(--space-sm);
    align-items: center;
}

.mood-spectrum-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}

.mood-spectrum-pole {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.mood-spectrum-pole--low {
    text-align: right;
}

.mood-spectrum-pole--high {
    text-align: left;
}

.mood-spectrum-track {
    position: relative;
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
}

.mood-marker-a,
.mood-marker-b {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    top: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--color-card-bg);
    box-shadow: var(--shadow-sm);
}

.mood-marker-a {
    background: var(--color-a);
    z-index: 2;
}

.mood-marker-b {
    background: var(--color-b);
    z-index: 1;
}

/* Mood legend (shared, like radar chart legend) */
.mood-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.mood-legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--color-text);
}

.mood-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.mood-legend-dot--a {
    background: var(--color-a);
}

.mood-legend-dot--b {
    background: var(--color-b);
}

/* Center the Mood subtitle within Scent Profile section */
#profile-section > .compare-subsection-header {
    text-align: center;
}

/* ============================================================
   Section: Unified Scent Profile Legend
   Single legend at bottom of Scent Profile section (radar + mood)
   ============================================================ */
.compare-profile-legend {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl, 32px);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.compare-profile-legend__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs, 4px);
    font-size: 0.82rem;
}

.compare-profile-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.compare-profile-legend__dot--a { background: var(--color-a); }
.compare-profile-legend__dot--b { background: var(--color-b); }

.compare-profile-legend__name {
    font-weight: 600;
    color: var(--color-text);
}

.compare-profile-legend__tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--color-muted);
    background: var(--sv-chrome-soft, rgba(0, 0, 0, 0.06));
    padding: 1px 6px;
    border-radius: var(--radius-sm, 4px);
    letter-spacing: 0.02em;
}

/* ============================================================
   Section: Performance Comparison (Mirrored Dots)
   ============================================================ */
.compare-perf-dots {
    max-width: 800px;
    margin: 0 auto;
}

.compare-perf-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.compare-perf-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
}

.compare-perf-metric {
    display: grid;
    grid-template-columns: 1fr 110px 1fr;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) 0;
}

.compare-perf-label {
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-heading);
    white-space: nowrap;
}

.compare-perf-side {
    display: grid;
    align-items: center;
    gap: var(--space-sm);
}

.compare-perf-side--a {
    grid-template-columns: 1fr auto;
}

.compare-perf-side--a .compare-perf-descriptor {
    text-align: right;
}

.compare-perf-side--b {
    grid-template-columns: auto 1fr;
}

.compare-perf-dot-group {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.compare-perf-descriptor {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

/* ============================================================
   Section: Notes Comparison (Two-Column with Connectors)
   ============================================================ */
.compare-notes-wrapper {
    position: relative;
}

.compare-notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.compare-notes-col {
    padding: var(--space-md);
}

.compare-notes-col-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.compare-notes-col-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.compare-notes-col-dot--a { background: var(--color-a); }
.compare-notes-col-dot--b { background: var(--color-b); }

/* Phase rows - matched-height grid for side-by-side notes */
.compare-notes-phase-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    margin-bottom: var(--space-md);
}

.compare-notes-phase-row:last-child {
    margin-bottom: 0;
}

/* Override note-phase margin inside grid so stretch works */
.compare-notes-phase-row > .note-phase {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

/* Phase groups - 1px full border + tinted background (Phase 9.1 canonical pattern) */
.compare-page .note-phase {
    padding: var(--space-md);
    background: color-mix(in srgb, var(--color-border) 6%, var(--color-card-bg, #ffffff));
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-md);
}

.compare-page .note-phase:last-child {
    margin-bottom: 0;
}

.compare-page .note-phase.all {
    border-color: var(--color-note-all);
    background: color-mix(in srgb, var(--color-note-all) 6%, var(--color-card-bg, #ffffff));
}
.compare-page .note-phase.top {
    border-color: var(--color-note-top);
    background: color-mix(in srgb, var(--color-note-top) 6%, var(--color-card-bg, #ffffff));
}
.compare-page .note-phase.middle {
    border-color: var(--color-note-middle);
    background: color-mix(in srgb, var(--color-note-middle) 6%, var(--color-card-bg, #ffffff));
}
.compare-page .note-phase.base {
    border-color: var(--color-note-base);
    background: color-mix(in srgb, var(--color-note-base) 6%, var(--color-card-bg, #ffffff));
}

.compare-page .note-phase h4 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    margin: 0 0 var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.compare-page .note-phase.all h4 { color: var(--color-note-all-text); }
.compare-page .note-phase.top h4 { color: var(--color-note-top-text); }
.compare-page .note-phase.middle h4 { color: var(--color-note-middle-text); }
.compare-page .note-phase.base h4 { color: var(--color-note-base-text); }

/* Note pills */
.compare-page .note-pills {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.compare-page .note-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    white-space: nowrap;
    width: fit-content;
}

.compare-page .note-pill.key-note {
    font-weight: 600;
}

.compare-page .note-pill.key-note::after {
    content: " \2605";
    font-size: 0.65rem;
    color: var(--color-accent);
}

.compare-page .note-pill__weight {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-muted);
}

.compare-page .note-pill--draft {
    opacity: 0.55;
}

.compare-page .note-pill--shared {
    border-color: var(--color-shared);
    border-width: 2px;
    background: color-mix(in srgb, var(--color-shared) 6%, var(--color-card-bg));
}

.compare-page a.note-pill--link {
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.compare-page a.note-pill--link:hover {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-card-bg));
}

.compare-page a.note-pill--link.key-note:hover {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-card-bg));
}

/* SVG connector lines between shared notes */
.compare-notes-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}

.compare-note-connector {
    fill: none;
    stroke: var(--color-shared);
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
    opacity: 0.5;
}

/* Shared notes label */
.compare-notes-shared-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    font-size: 0.8rem;
    color: var(--color-shared);
    font-weight: 500;
}

.compare-notes-shared-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-shared);
}

.notes-empty {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ============================================================
   Section: Accords Comparison (Mirrored Bar Chart)
   ============================================================ */
.accord-compare {
    max-width: 800px;
    margin: 0 auto;
}

.accord-compare-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.accord-compare-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
}

.accord-row {
    display: grid;
    grid-template-columns: 1fr 140px 1fr;
    gap: 0;
    align-items: center;
    margin-bottom: 6px;
}

.accord-bar-side {
    height: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.accord-bar-track {
    flex: 1;
    min-width: 0;
    height: 100%;
    position: relative;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--color-border) 50%, transparent);
}

.accord-bar-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
}

@media (prefers-reduced-motion: reduce) {
    .accord-bar-fill,
    .similarity-bar-fill,
    .accord-stacked-fill {
        transition: none;
    }
}

.accord-bar-fill--a {
    right: 0;
    background: var(--color-a);
    opacity: 0.7;
}

.accord-bar-fill--b {
    left: 0;
    background: var(--color-b);
    opacity: 0.7;
}

.accord-row--primary .accord-bar-fill--a {
    opacity: 1;
}

.accord-row--primary .accord-bar-fill--b {
    opacity: 1;
}

.accord-row--shared .accord-bar-fill {
    opacity: 0.85;
}

.accord-row-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    padding: 0 var(--space-sm);
    white-space: nowrap;
}

.accord-row-label:hover {
    color: var(--color-accent);
}

.accord-row--shared .accord-row-label {
    color: var(--color-shared);
}

.accord-row--shared .accord-row-label:hover {
    color: var(--color-accent);
}

.accord-row--primary .accord-row-label {
    font-weight: 700;
    font-size: 0.8rem;
}

.accord-bar-pct {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 28px;
}

.accord-bar-pct--a {
    text-align: right;
}

.accord-bar-pct--b {
    text-align: left;
}

/* ── Accord Stacked Bars (hidden on desktop) ── */
.accord-compare-stacked {
    display: none;
}

/* ============================================================
   Section: Seasons + Occasions (Badge Layout)
   ============================================================ */
/* Two-column comparison with row-aligned content. The parent grid defines
   three macro-row tracks (perfume header + Seasons block + Occasions
   block); each .compare-rec-col uses grid-template-rows: subgrid so the
   two columns share row heights. Result: SEASONS in A aligns horizontally
   with SEASONS in B, same for OCCASIONS, even when one perfume has more
   pills or a longer reasoning paragraph. The shorter side gets whitespace
   at the bottom of its row, which reads as breathing room, not as a gap. */
.compare-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-lg);
}

.compare-rec-col {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / 4;
    row-gap: var(--space-lg);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.compare-rec-col--a {
    border-top: 3px solid var(--color-a);
}

.compare-rec-col--b {
    border-top: 3px solid var(--color-b);
}

.compare-rec-col-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-heading);
    /* margin-bottom removed - parent grid's row-gap handles spacing between
       the header row and the Seasons block row. Adding a margin here would
       double the gap on top of the grid's row-gap. */
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.compare-rec-col-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.compare-rec-col-dot--a {
    background: var(--color-a);
}

.compare-rec-col-dot--b {
    background: var(--color-b);
}

.compare-rec-block {
    /* margin-bottom removed - parent grid's row-gap handles spacing between
       the Seasons block row and the Occasions block row. */
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Subsection kicker (SEASONS / OCCASIONS). Uppercase tracked caps - now in
   the heading colour (not muted) so they read clearly as section labels
   inside each per-perfume card. Sits below the card name + above the
   BEST FOR / ALSO WORKS row. */
.compare-rec-block h4 {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 var(--space-xs);
}

/* Compare surface inherits the canonical .rec-* design from
   perfume-detail.css (stacked tiers, solid-teal best, outlined-teal also,
   sr-only tier labels). Scoped overrides below only handle layout
   adjustments needed for the two-column comparison context. */
.compare-page .rec-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.compare-page .rec-tier {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

/* Inline kicker for each tier. Uniform muted treatment matches the
   perfume-detail.css rule above; tight tracking + small size = leader
   text, not a heading fighting the pills. */
.compare-page .rec-tier-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-muted);
    white-space: nowrap;
    margin-right: var(--space-xs);
}

.compare-page .rec-tier-pills {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.compare-page .rec-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    line-height: 1.4;
}

.compare-page .rec-pill.best {
    background: var(--color-accent);
    color: var(--color-text-heading);
    border-color: var(--color-accent);
}

.compare-page .rec-pill.also {
    background: transparent;
    color: var(--color-accent-text);
    border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
}

/* Reasoning paragraph. Mirrors the perfume-detail.css treatment so the
   prose sits below each tier block as editorial body text - italic, muted,
   1px subtle divider on the left. Capped at 60ch so long reasoning stays
   readable inside the per-perfume card column. */
.compare-page .rec-reasoning {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: var(--space-sm) 0 0 0;
    padding-left: var(--space-md);
    border-left: 1px solid var(--color-border-subtle);
    max-width: 60ch;
}

.compare-rec-none {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-style: italic;
}

/* ============================================================
   Section: Price Comparison (size-aligned table)
   ============================================================ */

/* Column headers */
.cpt-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cpt-header__col {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-heading);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}

.cpt-header__col--a {
    border-bottom-color: var(--color-a);
}

.cpt-header__col--b {
    border-bottom-color: var(--color-b);
}

/* Per-side summary stack: holds the optional Amazon spotlight and the
   modern Lowest Upfront / Best Value cards (.price-summary__card). The
   outer grid splits the row into perfume A / perfume B columns; each
   column flex-stacks its children with a small gap. */
.cpt-summaries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.cpt-summaries__col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

/* The modern .price-summary__card declares flex: 1 for the perfume page's
   horizontal .price-summary row. Inside our vertical column stack that
   would force every card to fill the available height, ballooning short
   cards. Reset to natural height. */
.cpt-summaries__col .price-summary__card {
    flex: 0 0 auto;
}

/* Empty-state placeholder when a side has no price data at all. */
.cpt-summaries__empty {
    padding: var(--space-md);
    border: 1px dashed var(--color-border-subtle);
    border-radius: var(--radius-md);
    color: var(--color-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
}

/* Per-side "also worth checking" row: rule + branded buttons (eBay etc.)
   stacked beneath the size table, mirroring the perfume page's pattern but
   split A | B so each side keeps its own retailer set. */
.cpt-also-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.cpt-also-row__cell {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

.cpt-also-row__cell .price-rule {
    margin: 0;
}

/* Size-aligned table */
.cpt-table {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cpt-size-row {
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cpt-size-row__header {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    color: var(--color-text-heading);
    background: color-mix(in srgb, var(--color-text) 5%, transparent);
    border-bottom: 1px solid var(--color-border-subtle);
}

.cpt-size-row__offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cpt-size-row__cell {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.cpt-size-row__cell:first-child {
    border-right: 2px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

/* Offer rows inside the table: remove card wrapper, flatten */
.cpt-size-row__cell .price-offer {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: var(--space-xs) var(--space-sm);
    gap: var(--space-sm);
    grid-template-columns: 1fr auto auto auto;
}

.cpt-size-row__cell .price-offer:hover {
    transform: none;
    box-shadow: none;
    background: color-mix(in srgb, var(--color-accent) 6%, transparent);
    border-radius: var(--radius-sm);
}

/* Hide size column inside table (shown in row header) */
.cpt-size-row__cell .price-offer__size {
    display: none;
}

/* Compact buy button */
.cpt-size-row__cell .btn-buy {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
}

/* Empty cell placeholder */
.cpt-size-row__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    color: color-mix(in srgb, var(--color-muted) 50%, transparent);
    font-size: 0.8rem;
    font-style: italic;
    background: color-mix(in srgb, var(--color-text) 2%, transparent);
    border-radius: var(--radius-sm);
    margin: var(--space-xs);
}

/* Keep price-empty for the no-data case */
.price-empty {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-style: italic;
    padding: var(--space-md) 0;
}

@media (max-width: 768px) {
    .cpt-header {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .cpt-header__col {
        font-size: 0.8rem;
    }

    .cpt-summaries {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .cpt-summaries__col {
        gap: var(--space-xs);
    }

    .cpt-size-row__offers {
        grid-template-columns: 1fr 1fr;
    }

    .cpt-size-row__cell {
        padding: var(--space-xs);
    }

    /* Compact offer rows in comparison table on mobile */
    .cpt-size-row__cell .price-offer {
        grid-template-columns: 1fr auto;
        gap: var(--space-xs);
    }

    .cpt-size-row__cell .price-offer__retailer .retailer-logo {
        max-width: 48px;
        max-height: 24px;
    }

    .cpt-size-row__cell .price-offer__ppm {
        display: none;
    }

    .cpt-size-row__cell .btn-buy {
        display: none;
    }

    .cpt-also-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }
}

/* ============================================================
   Section: Which Should You Buy (curated)
   ============================================================ */
.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.choose-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.choose-card--a {
    border-top: 3px solid var(--color-a);
}

.choose-card--b {
    border-top: 3px solid var(--color-b);
}

.choose-card-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.choose-card--a .choose-card-header {
    color: var(--color-a);
}

.choose-card--b .choose-card-header {
    color: var(--color-b);
}

.choose-reasons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.choose-reasons li {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.choose-reasons li:last-child {
    border-bottom: none;
}

.choose-reasons li::before {
    content: "\2713";
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Bidirectional dupe page link (Clone relationships only) */
.compare-dupes-link {
    text-align: center;
    margin-top: var(--space-lg);
}

.compare-dupes-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.compare-dupes-link a:hover {
    background: var(--color-accent);
    color: #fff;
}

.compare-dupes-link a svg {
    transition: transform 0.15s ease;
}

.compare-dupes-link a:hover svg {
    transform: translateX(2px);
}

/* ============================================================
   Section: Similarity Breakdown
   ============================================================ */
.similarity-section {
    margin-bottom: var(--space-2xl);
}

.similarity-row {
    display: grid;
    grid-template-columns: 100px 1fr 50px;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-md);
}

.similarity-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.similarity-bar-track {
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.similarity-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.similarity-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-heading);
    text-align: right;
}

.similarity-shared {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 212, 170, 0.04);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: var(--radius-md);
}

.similarity-shared-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
}

.similarity-shared-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-shared);
    margin-right: var(--space-xs);
}

.similarity-shared-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-shared);
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.similarity-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.similarity-insight {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.similarity-insight--similar {
    background: rgba(0, 212, 170, 0.06);
    border-color: rgba(0, 212, 170, 0.2);
}

.similarity-insight--different {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.2);
}

.similarity-insight-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.similarity-insight--similar .similarity-insight-label {
    color: var(--color-shared);
}

.similarity-insight--different .similarity-insight-label {
    color: var(--color-b);
}

.similarity-insight p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text);
    margin: 0;
}

/* ============================================================
   Section: Compare Another Pair (Picker)
   ============================================================ */
.picker-section {
    background: var(--color-bg-warm);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.picker-section h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-lg);
}

.picker-inputs {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.picker-input {
    flex: 1;
    max-width: 300px;
    min-width: 200px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--color-card-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

.picker-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.picker-vs {
    font-weight: 700;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.picker-btn {
    display: inline-block;
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.picker-btn:hover {
    background: var(--color-accent-hover);
}

/* ── Sticky Section Navigation (matches perfume-detail pattern) ── */
.compare-page .section-nav {
    position: sticky;
    top: var(--header-h, 76px);
    z-index: 50;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
    overflow-x: auto;
    scrollbar-width: none;
    /* GPU-promote to stop scroll jitter on mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.compare-page .section-nav::-webkit-scrollbar {
    display: none;
}

.compare-page .section-nav__list {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    margin: 0;
    padding: var(--space-sm) 0;
    white-space: nowrap;
}

.compare-page .section-nav__pill {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid transparent;
}

.compare-page .section-nav__pill:hover {
    color: var(--color-accent);
    text-decoration: none;
    background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}

.compare-page .section-nav__pill:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.compare-page .section-nav__pill.active {
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    border-color: var(--color-accent);
    font-weight: 600;
}

/* Sections clear sticky header + nav on anchor scroll */
.compare-page section[id] {
    scroll-margin-top: calc(var(--header-h, 76px) + var(--nav-h, 44px) + var(--space-md));
}

/* (Sticky mini-header removed - section-nav provides orientation) */

/* ── ScentArt Fullscreen (hidden on desktop) ── */
.scentart-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    margin-top: var(--space-sm);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-muted);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.scentart-fullscreen-btn:hover {
    color: var(--color-accent-text);
    border-color: rgba(0, 212, 170, 0.45);
}

.scentart-fs-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 10, 17, 0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.scentart-fs-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.scentart-fs-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.scentart-fs-pane {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    overflow: hidden;
}

.scentart-fs-pane--a {
    left: 0;
}

.scentart-fs-pane--b {
    right: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.scentart-fs-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background: #0a0a0f;
}

.scentart-fs-card {
    position: absolute;
    z-index: 201;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(320px, calc(100% - 32px));
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.scentart-fs-card--a {
    bottom: 16px;
    left: 16px;
}

.scentart-fs-card--b {
    right: 16px;
    bottom: 16px;
    flex-direction: row-reverse;
    text-align: right;
}

.scentart-fs-card__thumb {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23fff' width='100%25' height='100%25'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color-scheme: only light;
    forced-color-adjust: none;
}

.scentart-fs-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23fff' width='100%25' height='100%25'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
    padding: 4px;
}

.scentart-fs-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.scentart-fs-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.scentart-fs-card__name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scentart-fs-card__brand {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scentart-fs-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 202;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scentart-fs-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* ── ScentArt Comparison Full Page ── */

.scentart-fs-page {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: #0a0a0f;
}

.scentart-fs-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 202;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.scentart-fs-back:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* (Old floating TOC removed - using sticky section-nav instead) */

/* ── Mobile Notes (hidden on desktop) ── */
.compare-notes-mobile {
    display: none;
}

/* ============================================================
   Responsive: Mobile (< 768px)
   ============================================================ */
@media (max-width: 767px) {
    /* ── Section Nav (mobile) ── */
    .compare-page .section-nav {
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-md);
        /* seo-visual.md H5 / Spec 2.6: 8-tab bar truncates after "Accords" on
           narrow viewports, hiding Performance / Similarity / Price tabs with
           no visible affordance. mask-image fades the right edge so users
           recognise the bar is scrollable. Pure CSS, no JS, no DOM change. */
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, black calc(100% - 28px), transparent);
        /* Snap each pill into view when scrolled so the active tab lands flush. */
        scroll-snap-type: x proximity;
    }

    .compare-page .section-nav__list {
        gap: 2px;
        padding: var(--space-xs) 0;
    }

    .compare-page .section-nav__pill {
        font-size: 0.7rem;
        padding: 6px var(--space-sm);
        scroll-snap-align: start;
    }

    /* ── Mobile Compact Header ── */
    .vs-row {
        grid-template-columns: 1fr auto 1fr;
        text-align: left;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .vs-left {
        text-align: left;
    }

    .vs-right {
        text-align: right;
    }

    .vs-left h1,
    .vs-right h1 {
        font-size: 1rem;
        line-height: 1.2;
    }

    .sim-score-label {
        display: none;
    }

    .vs-left .compare-perfumer,
    .vs-right .compare-perfumer {
        display: none;
    }

    .vs-center .sim-score--lg {
        width: 48px;
        height: 48px;
        border-width: 2.5px;
    }

    .vs-center .sim-score--lg .sim-score__value {
        font-size: 0.75rem;
    }

    .vs-center .vs-badge {
        width: 48px;
        height: 48px;
        font-size: 0.9rem;
    }

    /* ── ScentArt Stacked with Live Animation (mobile) ── */
    .compare-page .scentart-hero {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        overflow: visible;
    }

    .scentart-panel {
        aspect-ratio: 16 / 9;
        overflow: visible;
        margin-top: 1.5rem;
    }

    .scentart-canvas {
        border-radius: var(--radius-lg);
    }

    .scentart-static-img {
        border-radius: var(--radius-lg);
    }

    .scentart-panel-label {
        position: absolute;
        top: 0;
        left: 0;
        bottom: auto;
        right: auto;
        transform: translateY(calc(-100% - 6px));
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        font-size: 0.85rem;
        font-weight: 600;
        border-radius: 0;
    }

    .scentart-panel-label.indicator-a {
        color: var(--color-a);
    }

    .scentart-panel-label.indicator-b {
        color: var(--color-b);
    }

    .scentart-expand-link {
        display: none;
    }

    .scentart-fullscreen-btn {
        width: 100%;
        margin-top: var(--space-xs);
    }

    .scentart-fs-overlay {
        background: rgba(8, 10, 17, 0.98);
    }

    .scentart-fs-close {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
    }

    .scentart-fs-card {
        max-width: calc(50% - 24px);
        padding: 9px 10px;
    }

    .scentart-fs-card--a {
        bottom: 12px;
        left: 12px;
    }

    .scentart-fs-card--b {
        right: 12px;
        bottom: 12px;
    }

    .scentart-fs-card__thumb {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .scentart-fs-card__name {
        font-size: 0.8rem;
    }

    .scentart-fs-card__brand {
        font-size: 0.7rem;
    }

    .glance-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .glance-bottle {
        margin-bottom: var(--space-md);
    }

    .facts-table {
        font-size: 0.8rem;
    }

    /* ── Performance Compact Mirrored (mobile) ── */
    .compare-perf-metric {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: auto auto;
        gap: 4px;
        align-items: center;
        margin-bottom: var(--space-md);
    }

    .compare-perf-label {
        text-align: center;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 4px;
    }

    .compare-perf-side--a {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 4px;
        justify-content: flex-end;
    }

    .compare-perf-side--b {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .compare-perf-side--a .compare-perf-descriptor {
        text-align: right;
        font-size: 0.65rem;
        min-width: 50px;
    }

    .compare-perf-side--b .compare-perf-descriptor {
        text-align: left;
        font-size: 0.65rem;
        min-width: 50px;
    }

    .perf-dot {
        width: 9px;
        height: 9px;
    }

    .compare-perf-header {
        display: none; /* Header not needed - colors identify sides */
    }

    .compare-notes-grid {
        grid-template-columns: 1fr;
    }

    .compare-notes-phase-row {
        grid-template-columns: 1fr;
    }

    .compare-notes-lines {
        display: none;
    }

    .accord-row-label {
        font-size: 0.65rem;
        min-width: 60px;
        padding: 0 4px;
    }

    /* Mobile: stack the two perfume columns vertically. Drop subgrid so
       the cards layout independently instead of overlapping in shared rows. */
    .compare-rec-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .compare-rec-col {
        grid-template-rows: none;
        grid-row: auto;
    }

    .price-grid,
    .price-grid--two-col {
        grid-template-columns: 1fr;
    }

    .compare-verdict-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .verdict-callout {
        padding: calc(var(--space-lg) + 1.5rem) var(--space-md) var(--space-lg);
    }

    .verdict-callout-label .verdict-type-badge {
        top: var(--space-sm);
        right: var(--space-sm);
    }

    .verdict-callout p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

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

    .picker-inputs {
        flex-direction: column;
    }

    .picker-input {
        max-width: none;
        width: 100%;
    }

    .mood-spectrum-row {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
        text-align: center;
    }

    .mood-spectrum-pole--low,
    .mood-spectrum-pole--high {
        text-align: center;
    }

    .compare-profile-legend {
        gap: var(--space-lg, 16px);
    }

    .compare-profile-legend__item {
        font-size: 0.75rem;
    }

    .similarity-row {
        grid-template-columns: 80px 1fr 40px;
    }

    /* ── Tighten section spacing on mobile ── */
    .compare-header {
        margin-bottom: var(--space-lg);
    }

    .compare-section {
        margin-bottom: var(--space-xl);
    }

    .compare-section-header {
        margin-bottom: var(--space-md);
        font-size: 1.15rem;
    }

    /* ── Accord Stacked Bars (mobile) ── */
    .accord-compare {
        display: none;
    }

    .accord-compare-stacked {
        display: block;
    }

    .accord-stacked-row {
        margin-bottom: var(--space-md);
    }

    .accord-stacked-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 6px;
    }

    .accord-stacked-name {
        font-weight: 600;
        color: var(--color-text-heading, #e2e8f0);
        font-size: 0.85rem;
        text-decoration: none;
    }

    .accord-stacked-name:hover {
        color: var(--color-accent, #0d9488);
    }

    .accord-stacked-shared {
        font-size: 0.7rem;
        color: var(--color-accent);
    }

    .accord-stacked-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
    }

    .accord-stacked-pct {
        font-size: 0.7rem;
        width: 28px;
        text-align: right;
        flex-shrink: 0;
    }

    .accord-stacked-track {
        flex: 1;
        height: 8px;
        background: var(--color-surface, #1e2538);
        border-radius: 4px;
        overflow: hidden;
    }

    .accord-stacked-fill {
        height: 100%;
        border-radius: 4px;
        transition: width 0.3s ease;
    }

    .accord-stacked-fill--a {
        background: var(--color-a);
    }

    .accord-stacked-fill--b {
        background: var(--color-b);
    }

    /* ── Mobile Notes ── */
    .compare-notes-wrapper {
        display: none;
    }

    .compare-notes-mobile {
        display: block;
    }

    /* Phase tabs */
    .notes-phase-tabs {
        display: flex;
        border-bottom: 2px solid var(--color-border, #2a2f3e);
        margin-bottom: var(--space-md);
    }

    .notes-phase-tab {
        padding: 10px 14px;
        font-size: 0.8rem;
        color: var(--color-text-muted, #64748b);
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        cursor: pointer;
        font-family: inherit;
    }

    .notes-phase-tab.is-active {
        color: var(--color-accent);
        font-weight: 600;
        border-bottom-color: var(--color-accent);
    }

    /* Phase panels */
    .notes-phase-panel {
        display: none;
    }

    .notes-phase-panel.is-active {
        display: block;
    }

    /* Shared notes label */
    .notes-shared-label {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-accent);
        font-weight: 600;
        margin-bottom: 8px;
    }

    .notes-shared-line {
        width: 16px;
        height: 1px;
        background: rgba(0, 212, 170, 0.3);
    }

    .notes-shared-line--grow {
        flex: 1;
    }

    /* Merged shared note rows */
    .notes-merged-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        background: color-mix(in srgb, var(--color-shared) 5%, var(--color-card-bg, #1E1E34));
        border: 1px solid rgba(0, 212, 170, 0.2);
        border-radius: 8px;
        margin-bottom: 6px;
        position: relative;
        overflow: hidden;
    }

    .notes-merged-bar {
        position: absolute;
        top: 0;
        width: 3px;
        height: 100%;
    }

    .notes-merged-bar--a {
        left: 0;
        background: var(--color-a);
    }

    .notes-merged-bar--b {
        right: 0;
        background: var(--color-b);
    }

    .notes-merged-name {
        font-weight: 600;
        color: var(--color-text-heading, #e2e8f0);
        font-size: 0.85rem;
    }

    .notes-merged-weights {
        margin-left: auto;
        display: flex;
        gap: 8px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .notes-merged-vs {
        color: var(--color-text-muted, #64748b);
    }

    /* Unique notes grid */
    .notes-unique-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: var(--space-md);
    }

    .notes-unique-label {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .notes-unique-line {
        width: 8px;
        height: 1px;
    }

    .notes-unique-line--a {
        background: rgba(0, 212, 170, 0.3);
    }

    .notes-unique-line--b {
        background: rgba(124, 58, 237, 0.3);
    }

    .notes-unique-line--grow {
        flex: 1;
    }

    .notes-unique-pill {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 7px 8px;
        background: var(--color-surface, #1e2538);
        border: 1px solid var(--color-border, #2a2f3e);
        border-radius: 6px;
        margin-bottom: 6px;
    }

    .notes-unique-pill--a {
        border-left: 2px solid var(--color-a);
    }

    .notes-unique-pill--b {
        border-left: 2px solid var(--color-b);
    }

    .notes-unique-name {
        font-size: 0.78rem;
        color: var(--color-text-heading, #e2e8f0);
    }

    .notes-unique-weight {
        font-size: 0.6rem;
        color: var(--color-text-muted, #94a3b8);
        margin-left: auto;
    }

}

/* ============================================================
   Compare Index - Smart Hub
   ============================================================ */

/* --- Page Layout --- */
.ci-page {
    padding: var(--space-2xl) 0;
}

/* --- Header --- */
.ci-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.ci-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: var(--space-xs);
}

.ci-header__subtitle {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0 auto;
    line-height: 1.6;
    white-space: nowrap;
}

/* --- Picker Bar --- */
.ci-picker {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.ci-picker__slot {
    flex: 1;
    min-width: 0;
    position: relative;
}

.ci-picker__input-wrap {
    position: relative;
}

.ci-picker__input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-sizing: border-box;
}

.ci-picker__input--a {
    border-left: 3px solid var(--color-accent);
}

.ci-picker__input--b {
    border-left: 3px solid var(--color-verdict-statement);
}

.ci-picker__input--a:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.ci-picker__input--b:focus {
    outline: none;
    border-color: var(--color-verdict-statement);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.ci-picker__results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
}

/* Picker search result styling */
.ci-picker__results .search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ci-picker__results .search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.ci-picker__results .search-result-item:hover {
    background: var(--color-bg-warm);
}

.ci-picker__results .search-result-item.is-active {
    background: var(--color-bg-warm);
    outline: 2px solid rgba(0, 212, 170, 0.45);
    outline-offset: -2px;
}

.ci-picker__results .search-result-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.ci-picker__results .search-result-brand {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.ci-picker__results .search-result-item img {
    width: 32px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.ci-picker__results .search-view-all,
.ci-picker__results .search-no-results {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    color: var(--color-muted);
    text-decoration: none;
}

.ci-picker__results .search-results-section-header {
    display: none;
}

.ci-picker__selected {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-warm);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    min-height: 40px;
}

.ci-picker__selected-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ci-picker__clear {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0 var(--space-xs);
    line-height: 1;
}

.ci-picker__clear:hover {
    color: var(--color-text);
}

.ci-picker__vs {
    font-weight: 700;
    color: var(--color-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.ci-picker__btn {
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition-fast), opacity var(--transition-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

.ci-picker__btn:hover:not(:disabled) {
    background: var(--color-accent-hover);
}

.ci-picker__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- Filter Bar --- */
.ci-filters {
    margin-bottom: var(--space-lg);
}

.ci-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.ci-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    text-decoration: none;
    background: var(--color-card-bg);
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.ci-chip:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.ci-chip:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.ci-chip--active {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.ci-chip--active:hover {
    background: var(--color-accent-hover);
    color: var(--color-primary);
    border-color: var(--color-accent-hover);
}

.ci-filter-divider {
    width: 1px;
    height: 24px;
    background: var(--color-border);
    margin: 0 var(--space-xs);
}

.ci-search {
    width: 180px;
}

.ci-search .entity-search-input {
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.85rem;
}

.ci-count {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-left: auto;
    white-space: nowrap;
}

/* ==========================================================================
   Compare Index - Card Grid
   ========================================================================== */

.ci-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* --- Card Base --- */
.ci-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.ci-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.ci-card:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* --- Card Header: two perfumes + VS centre --- */
.ci-card__header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-md);
    align-items: center;
}

.ci-card__perfume {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    min-width: 0;
}

.ci-card__perfume--b {
    flex-direction: row-reverse;
    text-align: right;
}

.ci-card__img {
    width: 48px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='%23fff' width='100%25' height='100%25'/%3E%3C/svg%3E") !important;
    background-size: cover !important;
    color-scheme: only light;
    forced-color-adjust: none;
}

.ci-card__perfume-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.ci-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-heading);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-card__brand {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VS centre column */
.ci-card__vs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-card__vs-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Score Ring */
.ci-score {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2.5px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.ci-score__value {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
}

.ci-score--high {
    border-color: var(--color-accent);
}

.ci-score--high .ci-score__value {
    color: var(--color-accent);
}

.ci-score--mid {
    border-color: var(--color-accent);
}

.ci-score--mid .ci-score__value {
    color: var(--color-accent);
}

.ci-score--low {
    border-color: var(--color-verdict-statement);
}

.ci-score--low .ci-score__value {
    color: var(--color-verdict-statement);
}

/* --- Card Meta: tags + bar --- */
.ci-card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Tags */
.ci-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.ci-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem var(--space-sm);
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ci-tag--similar {
    background: rgba(0, 212, 170, 0.12);
    color: #00B894;
}

.ci-tag--contrast {
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-verdict-statement);
}

.ci-tag--complementary {
    background: rgba(45, 212, 191, 0.12);
    color: #0d9488;
}

.ci-tag--dupe {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.ci-tag--flanker {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

/* Similarity Bar */
.ci-card__bar {
    height: 2px;
    background: var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ci-card__bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
}

/* --- Card Footer --- */
.ci-card__footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.ci-card__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.ci-card:hover .ci-card__cta {
    color: var(--color-accent-hover);
}

/* --- Sort Dropdown --- */
.ci-sort {
    flex-shrink: 0;
}

.ci-sort__select {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-xl) var(--space-xs) var(--space-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236D6D7A' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-sm) center;
    transition: border-color var(--transition-fast);
}

.ci-sort__select:hover,
.ci-sort__select:focus-visible {
    border-color: var(--color-accent);
    outline: none;
}

/* --- Filter row --- */
.ci-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    align-items: center;
}

/* --- Filter row scroll fade (mobile) --- */
.ci-filters__row-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ci-filters__row-wrap::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--space-xl);
    background: linear-gradient(to right, transparent, var(--color-card-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

/* --- Pagination --- */
.ci-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.ci-load-more {
    padding: var(--space-sm) var(--space-xl);
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.ci-load-more:hover {
    background: var(--color-accent);
    color: var(--color-primary);
}

.ci-load-more:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.ci-load-more:active {
    transform: scale(0.97);
}

/* --- Empty State --- */
.ci-empty {
    text-align: center;
    padding: var(--space-2xl) 0;
    color: var(--color-muted);
    font-size: 1rem;
}

/* --- Responsive: Tablet (≤ 900px) --- */
@media (max-width: 900px) {
    .ci-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* --- Responsive: Mobile (≤ 767px) --- */
@media (max-width: 767px) {
    .ci-page {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Picker */
    .ci-picker {
        flex-direction: column;
        align-items: stretch;
    }

    .ci-picker__vs {
        text-align: center;
    }

    .ci-picker__btn {
        width: 100%;
    }

    /* Filter bar: stack rows vertically */
    .ci-filter-bar {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    /* Row 1: Sort + Search side by side */
    .ci-sort {
        order: -2;
        flex: 0 0 auto;
    }

    .ci-sort__select {
        min-width: 100px;
    }

    .ci-search {
        order: -2;
        flex: 1;
        min-width: 0;
    }

    /* Row 2: Filter chips full width (horizontal scroll) */
    .ci-filters__row-wrap {
        order: -1;
        width: 100%;
    }

    .ci-filters__row-wrap::after {
        opacity: 1;
    }

    .ci-filters__row {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-right: var(--space-lg);
    }

    .ci-filters__row::-webkit-scrollbar {
        display: none;
    }

    /* Gender icons: inline after chips */
    .ci-filter-divider {
        display: none;
    }

    .filter-gender {
        flex-shrink: 0;
    }

    .ci-count {
        width: 100%;
        text-align: center;
        margin-left: 0;
        font-size: 0.75rem;
    }

    .ci-filters__refine {
        flex-direction: column;
        align-items: stretch;
    }

    .ci-brand-input {
        max-width: none;
    }

    /* Card: stack perfumes vertically */
    .ci-card {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .ci-card__header {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ci-card__perfume {
        flex-direction: row;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }

    .ci-card__perfume--b {
        flex-direction: row;
        text-align: left;
        border-top: 1px solid var(--color-border);
    }

    .ci-card__img {
        width: 44px;
        height: 58px;
    }

    .ci-card__name {
        font-size: 0.88rem;
    }

    .ci-card__brand {
        font-size: 0.78rem;
    }

    /* VS / Score: centred between the two perfumes */
    .ci-card__vs {
        align-self: center;
        padding: var(--space-xs) 0;
    }

    .ci-score {
        width: 42px;
        height: 42px;
    }

    .ci-score__value {
        font-size: 0.75rem;
    }

    .ci-card__vs-label {
        font-size: 0.7rem;
    }

    /* Tags */
    .ci-card__tags {
        gap: var(--space-xs);
    }

    .ci-tag {
        font-size: 0.65rem;
        padding: 0.125rem var(--space-xs);
    }

    /* Footer */
    .ci-card__excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .ci-card__cta {
        font-size: 0.8rem;
    }

    /* Pagination */
    .ci-pagination {
        flex-direction: column;
        gap: var(--space-md);
    }

    /* Header */
    .ci-header h1 {
        font-size: 1.5rem;
    }

    .ci-header__subtitle {
        font-size: 0.88rem;
        white-space: normal;
    }
}

/* --- Responsive: Small mobile (≤ 380px) --- */
@media (max-width: 380px) {
    .ci-card__img {
        width: 36px;
        height: 48px;
    }

    .ci-card__name {
        font-size: 0.82rem;
    }

    .ci-score {
        width: 36px;
        height: 36px;
    }

    .ci-score__value {
        font-size: 0.68rem;
    }

    .ci-card__excerpt {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    .ci-card {
        transition: border-color var(--transition-fast);
    }

    .ci-card:hover {
        transform: none;
    }

    .ci-chip,
    .ci-sort__select,
    .ci-load-more {
        transition: none;
    }
}

/* --- Dark Mode: Card Grid overrides --- */
html.dark-mode .ci-card:hover,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}}

/* Tags: brighter text + more visible backgrounds on dark surfaces */
html.dark-mode .ci-tag--similar,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-tag--similar {
    background: rgba(0, 212, 170, 0.18);
    color: var(--color-accent);
}}

html.dark-mode .ci-tag--contrast,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-tag--contrast {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
}}

html.dark-mode .ci-tag--complementary,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-tag--complementary {
    background: rgba(45, 212, 191, 0.18);
    color: #2dd4bf;
}}

html.dark-mode .ci-tag--dupe,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-tag--dupe {
    background: rgba(248, 113, 113, 0.18);
    color: #f87171;
}}

html.dark-mode .ci-tag--flanker,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-tag--flanker {
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
}}

/* Score ring: brighter text for readability */
html.dark-mode .ci-score--high .ci-score__value,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--high .ci-score__value {
    color: #4ade80;
}}

html.dark-mode .ci-score--mid .ci-score__value,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--mid .ci-score__value {
    color: var(--color-accent);
}}

html.dark-mode .ci-score--low .ci-score__value,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--low .ci-score__value {
    color: #a78bfa;
}}

html.dark-mode .ci-score--high,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--high {
    border-color: #4ade80;
}}

html.dark-mode .ci-score--mid,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--mid {
    border-color: var(--color-accent);
}}

html.dark-mode .ci-score--low,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-score--low {
    border-color: #a78bfa;
}}

/* Similarity bar gradient adjustment */
html.dark-mode .ci-card__bar-fill,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-card__bar-fill {
    background: linear-gradient(90deg, var(--color-accent), #4ade80);
}}

/* Sort dropdown */
html.dark-mode .ci-sort__select,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-sort__select {
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239999A8' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}}

/* Filter scroll fade */
html.dark-mode .ci-filters__row-wrap::after,
@media (prefers-color-scheme: dark) { html:not(.light-mode) .ci-filters__row-wrap::after {
    background: linear-gradient(to right, transparent, var(--color-bg));
}}
