/**
 * The Lab — Styles
 * 
 * @package     SleekNova
 * @version     3.2.0
 * @description Document-like aesthetic. Internal memo made public.
 *              No marketing polish. Just process.
 * 
 * V3.2 CHANGES (Deep Dive Visualization):
 * - NEW: .sn-lab-visualization container for viz HTML injection
 * - NEW: Responsive padding and max-width constraints
 * - NEW: Print styles hide interactive elements
 * 
 * V3.1 CHANGES (Product Identity in Metadata):
 * - NEW: .sn-lab-meta__brand-link for rejected Lab Notes
 * - Consistent link styling with existing meta links
 * 
 * V3 CHANGES (Verdict Filter with Pagination):
 * - Verdict filters now use links instead of buttons
 * - Server-side filtering preserves across pagination
 * 
 * V2 CHANGES (Verdict Filter):
 * - NEW: .sn-lab-verdict-filters for secondary filter row
 * - NEW: .sn-lab-verdict-filter buttons
 * - NEW: .sn-lab-card__verdict badge (passed/rejected)
 */

/* ============================================
   CSS VARIABLES — Lab-Specific
   ============================================ */
.sn-lab-archive,
.sn-lab-single {
    --lab-bg: #FAFAF8;
    --lab-card-bg: #FFFFFF;
    --lab-border: #E8E6E1;
    --lab-border-dark: #D4D1CA;
    --lab-text: #1A1815;
    --lab-text-secondary: #6B6560;
    --lab-text-muted: #9B9590;
    --lab-mono: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    --lab-accent: #A08060;
    --lab-status-complete: #7D8B6A;
    --lab-status-progress: #C4785C;
    --lab-status-archived: #9B9590;
}

/* ============================================
   ARCHIVE — Header
   ============================================ */
.sn-lab-header {
    padding: 3.5rem 1.5rem 2.5rem;
    background: var(--lab-bg);
    border-bottom: 1px solid var(--lab-border);
}

.sn-lab-header__inner {
    max-width: 960px;
    margin: 0 auto;
}

.sn-lab-breadcrumb {
    font-size: 0.875rem;
    color: var(--lab-text-secondary);
    margin-bottom: 1rem;
}

.sn-lab-breadcrumb a {
    color: var(--lab-text-secondary);
    text-decoration: none;
}

.sn-lab-breadcrumb a:hover {
    color: var(--lab-text);
    text-decoration: underline;
}

.sn-lab-breadcrumb__sep {
    margin: 0 0.5rem;
    color: var(--lab-text-muted);
}

.sn-lab-breadcrumb__current {
    color: var(--lab-text);
}

.sn-lab-header__title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0 0 1.25rem;
    line-height: 1.15;
}

.sn-lab-header__mission {
    font-size: 1.5rem;
    color: var(--lab-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   ARCHIVE — Intro / Why We Share This
   ============================================ */
.sn-lab-intro {
    padding: 3rem 1.5rem;
    background: var(--lab-card-bg);
    border-bottom: 1px solid var(--lab-border);
}

.sn-lab-intro__inner {
    max-width: 760px;
    margin: 0 auto;
}

.sn-lab-intro__heading {
    font-family: var(--lab-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lab-text-muted);
    margin: 0 0 1.5rem;
}

.sn-lab-intro__content {
    margin-bottom: 2rem;
}

.sn-lab-intro__content p {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--lab-text);
    margin: 0 0 1rem;
}

.sn-lab-intro__content p:last-child {
    margin-bottom: 0;
}

.sn-lab-intro__feedback {
    padding: 1.5rem;
    background: rgba(160, 128, 96, 0.05);
    border-left: 4px solid var(--lab-accent);
    border-radius: 0 8px 8px 0;
}

.sn-lab-intro__feedback p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--lab-text);
    margin: 0 0 0.5rem;
}

.sn-lab-intro__feedback p:last-of-type {
    margin-bottom: 0.75rem;
}

.sn-lab-intro__contact-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lab-accent);
    text-decoration: none;
}

.sn-lab-intro__contact-link:hover {
    text-decoration: underline;
}

/* ============================================
   ARCHIVE — Filters
   ============================================ */
.sn-lab-filters {
    padding: 1rem 1.5rem;
    background: var(--lab-bg);
    border-bottom: 1px solid var(--lab-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sn-lab-filters__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sn-lab-filter {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--lab-text-secondary);
    background: transparent;
    border: 1px solid var(--lab-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sn-lab-filter:hover {
    border-color: var(--lab-border-dark);
    color: var(--lab-text);
}

.sn-lab-filter.is-active {
    background: var(--lab-text);
    border-color: var(--lab-text);
    color: #fff;
}

/* ============================================
   ARCHIVE — Verdict Filters (V2)
   Secondary filter row for Lab Results
   ============================================ */
.sn-lab-verdict-filters {
    padding: 0.75rem 1.5rem;
    background: var(--lab-bg);
    border-bottom: 1px solid var(--lab-border);
}

.sn-lab-verdict-filters__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sn-lab-verdict-filters__label {
    font-size: 0.8125rem;
    color: var(--lab-text-muted);
    margin-right: 0.25rem;
}

.sn-lab-verdict-filter {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--lab-text-secondary);
    background: transparent;
    border: 1px solid var(--lab-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sn-lab-verdict-filter:hover {
    border-color: var(--lab-border-dark);
    color: var(--lab-text);
}

.sn-lab-verdict-filter.is-active {
    background: var(--lab-accent);
    border-color: var(--lab-accent);
    color: #fff;
}

/* ============================================
   ARCHIVE — Card Verdict Badge (V2)
   ============================================ */
.sn-lab-card__verdict {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
}

.sn-lab-card__verdict--passed {
    background: rgba(125, 139, 106, 0.15);
    color: #5C6B4A;
}

.sn-lab-card__verdict--rejected {
    background: rgba(196, 120, 92, 0.15);
    color: #A65D3F;
}

/* ============================================
   ARCHIVE — Grid
   ============================================ */
.sn-lab-grid {
    padding: 2.5rem 1.5rem 4rem;
    background: var(--lab-bg);
}

.sn-lab-grid__inner {
    max-width: 960px;
    margin: 0 auto;
}

.sn-lab-grid__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .sn-lab-grid__list {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
}

/* ============================================
   ARCHIVE — Card
   ============================================ */
.sn-lab-card {
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-left: 3px solid var(--lab-border-dark);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sn-lab-card:hover {
    border-color: var(--lab-border-dark);
    border-left-color: var(--lab-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sn-lab-card__link {
    display: block;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
}

.sn-lab-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.sn-lab-card__id {
    font-family: var(--lab-mono);
    font-size: 0.75rem;
    color: var(--lab-text-muted);
}

.sn-lab-card__category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lab-accent);
    padding: 0.125rem 0.5rem;
    background: rgba(160, 128, 96, 0.1);
    border-radius: 100px;
}

.sn-lab-card__status {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
}

.sn-lab-card__status--complete {
    color: var(--lab-status-complete);
    background: rgba(125, 139, 106, 0.1);
}

.sn-lab-card__status--in-progress {
    color: var(--lab-status-progress);
    background: rgba(196, 120, 92, 0.1);
}

.sn-lab-card__status--archived {
    color: var(--lab-status-archived);
    background: rgba(155, 149, 144, 0.1);
}

.sn-lab-card__title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.sn-lab-card__subject {
    font-size: 1rem;
    color: var(--lab-text-secondary);
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.sn-lab-card__outcome {
    font-family: var(--lab-mono);
    font-size: 0.8125rem;
    color: var(--lab-text);
    padding: 0.5rem 0.75rem;
    background: var(--lab-bg);
    border-radius: 4px;
    margin: 0 0 0.75rem;
}

.sn-lab-card__date {
    font-size: 0.8125rem;
    color: var(--lab-text-muted);
}

/* ============================================
   ARCHIVE — Empty State
   ============================================ */
.sn-lab-empty {
    padding: 4rem 2rem;
    text-align: center;
}

.sn-lab-empty p {
    font-size: 1rem;
    color: var(--lab-text-secondary);
}

.sn-lab-empty a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--lab-accent);
    text-decoration: none;
}

.sn-lab-empty a:hover {
    text-decoration: underline;
}

/* ============================================
   ARCHIVE — Pagination
   ============================================ */
.sn-lab-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.sn-lab-pagination .nav-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hide all page numbers, show only prev/next */
.sn-lab-pagination .nav-links > a:not(.prev):not(.next),
.sn-lab-pagination .nav-links > span:not(.prev):not(.next) {
    display: none;
}

.sn-lab-pagination .prev,
.sn-lab-pagination .next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--lab-text-secondary);
    background: #FFFFFF;
    border: 1px solid var(--lab-border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 150ms ease;
}

.sn-lab-pagination .prev:hover,
.sn-lab-pagination .next:hover {
    border-color: var(--lab-border-dark);
    color: var(--lab-text);
}

@media (max-width: 479px) {
    .sn-lab-pagination .prev,
    .sn-lab-pagination .next {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }
}

/* ============================================
   SINGLE — Header
   ============================================ */
.sn-lab-single__header {
    padding: 3.5rem 1.5rem 2.5rem;
    background: var(--lab-bg);
}

.sn-lab-single__header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-single__title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0;
    line-height: 1.25;
}

/* ============================================
   SINGLE — Metadata Block
   ============================================ */
.sn-lab-single__meta-block {
    padding: 0 1.5rem;
    background: var(--lab-bg);
}

.sn-lab-single__meta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-meta {
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
}

.sn-lab-meta__row {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--lab-border);
}

.sn-lab-meta__row:last-child {
    border-bottom: none;
}

.sn-lab-meta__label {
    width: 140px;
    flex-shrink: 0;
    color: var(--lab-text-muted);
}

.sn-lab-meta__value {
    color: var(--lab-text);
}

.sn-lab-meta__value--mono {
    font-family: var(--lab-mono);
}

.sn-lab-meta__value--outcome {
    font-weight: 500;
}

.sn-lab-meta__status--complete {
    color: var(--lab-status-complete);
}

.sn-lab-meta__status--in-progress {
    color: var(--lab-status-progress);
}

.sn-lab-meta__status--archived {
    color: var(--lab-status-archived);
}

/* ============================================
   SINGLE — Content
   ============================================ */
.sn-lab-single__content {
    padding: 3rem 1.5rem;
    background: var(--lab-bg);
}

.sn-lab-single__content-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-prose {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--lab-text);
}

.sn-lab-prose h2 {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.75rem;
    font-weight: 500;
    margin: 3rem 0 1.25rem;
    color: var(--lab-text);
}

.sn-lab-prose h3 {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.375rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem;
    color: var(--lab-text);
}

.sn-lab-prose p {
    margin: 0 0 1.5rem;
}

.sn-lab-prose ul,
.sn-lab-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.sn-lab-prose ol {
    list-style: decimal;
}

.sn-lab-prose li {
    margin-bottom: 0.5rem;
}

.sn-lab-prose blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: rgba(160, 128, 96, 0.05);
    border-left: 4px solid var(--lab-accent);
    font-size: 1.1875rem;
    font-style: italic;
    color: var(--lab-text-secondary);
    border-radius: 0 6px 6px 0;
}

.sn-lab-prose code {
    font-family: var(--lab-mono);
    font-size: 0.875em;
    padding: 0.125rem 0.375rem;
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 3px;
}

.sn-lab-prose pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #1A1815;
    color: #F5F5F0;
    border-radius: 6px;
    overflow-x: auto;
    font-family: var(--lab-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.sn-lab-prose pre code {
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}

.sn-lab-prose a {
    color: var(--lab-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sn-lab-prose a:hover {
    color: var(--lab-text);
}

.sn-lab-prose strong {
    font-weight: 600;
}

.sn-lab-prose hr {
    border: none;
    border-top: 1px solid var(--lab-border);
    margin: 2rem 0;
}

/* Tables in prose */
.sn-lab-prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.sn-lab-prose th,
.sn-lab-prose td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--lab-border);
}

.sn-lab-prose th {
    background: var(--lab-card-bg);
    font-weight: 600;
}

.sn-lab-prose tr:nth-child(even) td {
    background: rgba(0, 0, 0, 0.02);
}

/* ============================================
   SINGLE — Related Products
   ============================================ */
.sn-lab-single__related {
    padding: 2rem 1.5rem;
    background: var(--lab-card-bg);
    border-top: 1px solid var(--lab-border);
}

.sn-lab-single__related-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-related__heading {
    font-family: var(--lab-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lab-text-muted);
    margin: 0 0 1rem;
}

.sn-lab-related__grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.sn-lab-related__card {
    flex-shrink: 0;
    width: 140px;
    text-decoration: none;
    color: inherit;
}

.sn-lab-related__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: var(--lab-bg);
}

.sn-lab-related__info {
    margin-top: 0.5rem;
}

.sn-lab-related__name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lab-text);
    line-height: 1.3;
}

.sn-lab-related__price {
    display: block;
    font-size: 0.75rem;
    color: var(--lab-text-secondary);
    margin-top: 0.25rem;
}

/* ============================================
   SINGLE — Disclosure
   ============================================ */
.sn-lab-single__disclosure {
    padding: 2rem 1.5rem;
    background: var(--lab-bg);
}

.sn-lab-single__disclosure-inner {
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-disclosure {
    text-align: center;
}

.sn-lab-disclosure__line {
    height: 1px;
    background: var(--lab-border);
    margin: 0 auto;
    max-width: 200px;
}

.sn-lab-disclosure__heading {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lab-text-muted);
    margin: 1.5rem 0 1rem;
}

.sn-lab-disclosure__text {
    font-size: 0.875rem;
    color: var(--lab-text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.sn-lab-disclosure__feedback {
    font-size: 0.875rem;
    color: var(--lab-text-secondary);
    margin: 0 0 1.5rem;
}

.sn-lab-disclosure__feedback a {
    color: var(--lab-accent);
    text-decoration: underline;
}

.sn-lab-disclosure__feedback a:hover {
    color: var(--lab-text);
}

/* ============================================
   SINGLE — Navigation
   ============================================ */
.sn-lab-single__nav {
    padding: 2rem 1.5rem;
    background: var(--lab-card-bg);
    border-top: 1px solid var(--lab-border);
}

.sn-lab-single__nav-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.sn-lab-nav__link {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.sn-lab-nav__link--prev {
    text-align: left;
}

.sn-lab-nav__link--next {
    text-align: right;
}

.sn-lab-nav__link--empty {
    visibility: hidden;
}

.sn-lab-nav__label {
    display: block;
    font-size: 0.75rem;
    color: var(--lab-text-muted);
    margin-bottom: 0.25rem;
}

.sn-lab-nav__title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lab-text);
    line-height: 1.3;
}

.sn-lab-nav__link:hover .sn-lab-nav__title {
    color: var(--lab-accent);
}

.sn-lab-nav__back {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--lab-text-secondary);
    border: 1px solid var(--lab-border);
    border-radius: 100px;
    text-decoration: none;
}

.sn-lab-nav__back:hover {
    border-color: var(--lab-border-dark);
    color: var(--lab-text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .sn-lab-header__title {
        font-size: 2.25rem;
    }
    
    .sn-lab-header__mission {
        font-size: 1.25rem;
    }
    
    .sn-lab-single__title {
        font-size: 2rem;
    }
    
    .sn-lab-meta__row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .sn-lab-meta__label {
        width: auto;
    }
    
    .sn-lab-single__nav-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sn-lab-nav__link {
        text-align: center !important;
    }
    
    .sn-lab-nav__link--empty {
        display: none;
    }
}
/* ============================================
   V41: LAB RESULTS CONTEXT BANNER
   For rejection pages - shows brands they were noticed
   ============================================ */

.sn-lab-context-banner {
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    max-width: 900px;
}

.sn-lab-context-banner__inner {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(160, 128, 96, 0.06) 0%, rgba(160, 128, 96, 0.02) 100%);
    border: 1px solid rgba(160, 128, 96, 0.15);
    border-left: 3px solid var(--accent, #A08060);
    border-radius: 8px;
}

@media (min-width: 768px) {
    .sn-lab-context-banner {
        padding: 0 2rem;
        margin-bottom: 2.5rem;
    }
    
    .sn-lab-context-banner__inner {
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
}

.sn-lab-context-banner__text {
    margin: 0 0 1rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary, #4A4540);
}

.sn-lab-context-banner__text strong {
    color: var(--text-primary, #1A1815);
}

.sn-lab-context-banner__text a {
    color: var(--accent, #A08060);
    text-decoration: none;
}

.sn-lab-context-banner__text a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .sn-lab-context-banner__text {
        margin: 0;
        flex: 1;
    }
}

.sn-lab-context-banner__link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #1A1815);
    background: #FFFFFF;
    border: 1px solid var(--border-default, rgba(0, 0, 0, 0.08));
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 150ms ease;
}

.sn-lab-context-banner__link:hover {
    background: var(--bg-muted, #EFEEE9);
    border-color: var(--border-strong, rgba(0, 0, 0, 0.12));
}

/* V1.3: Context banner variants for passed/rejected */
.sn-lab-context-banner--passed .sn-lab-context-banner__inner {
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.06) 0%, rgba(45, 106, 79, 0.02) 100%);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-left: 3px solid #2D6A4F;
}

.sn-lab-context-banner--passed .sn-lab-context-banner__text a {
    color: #2D6A4F;
}

.sn-lab-context-banner--rejected .sn-lab-context-banner__inner {
    background: linear-gradient(135deg, rgba(160, 128, 96, 0.06) 0%, rgba(160, 128, 96, 0.02) 100%);
    border: 1px solid rgba(160, 128, 96, 0.15);
    border-left: 3px solid var(--accent, #A08060);
}

/* ============================================
   V1.3: VERDICT BADGES — "Made the Cut" / "Did Not Pass"
   Subtle badges with info tooltips
   ============================================ */

.sn-lab-single__title-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.sn-lab-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.5rem; /* Align with title baseline */
}

.sn-lab-badge--did-not-pass .sn-lab-badge__text {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8B7355;
    padding: 0.375rem 0.625rem;
    background: rgba(139, 115, 85, 0.08);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 4px;
}

/* V1.3: "Made the Cut" badge for passed products */
.sn-lab-badge--made-the-cut .sn-lab-badge__text {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2D6A4F;
    padding: 0.375rem 0.625rem;
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.25);
    border-radius: 4px;
}

.sn-lab-badge__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--lab-text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s ease, background 0.15s ease;
}

.sn-lab-badge__info:hover,
.sn-lab-badge__info:focus {
    color: var(--lab-text-secondary);
    background: rgba(0, 0, 0, 0.04);
    outline: none;
}

.sn-lab-badge__tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    padding: 1rem;
    background: var(--lab-text);
    color: #F5F5F0;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 0.8125rem;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 100;
}

.sn-lab-badge__tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: var(--lab-text);
    transform: rotate(45deg);
}

.sn-lab-badge__tooltip a {
    display: block;
    margin-top: 0.75rem;
    color: #C4A77D;
    text-decoration: none;
    font-weight: 500;
}

.sn-lab-badge__tooltip a:hover {
    text-decoration: underline;
}

/* Show tooltip on hover/focus */
.sn-lab-badge__info:hover + .sn-lab-badge__tooltip,
.sn-lab-badge__info:focus + .sn-lab-badge__tooltip,
.sn-lab-badge__tooltip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .sn-lab-single__title-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sn-lab-badge {
        margin-top: 0;
    }
    
    .sn-lab-badge__tooltip {
        left: -10px;
        width: calc(100vw - 3rem);
        max-width: 280px;
    }
}

/* ============================================
   V2.0: EYEBROW LABEL
   "The Research Story" - Lab feeling preserved
   ============================================ */

.sn-lab-single__eyebrow {
    display: block;
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--lab-text-muted);
    margin-bottom: 0.75rem;
}

/* ============================================
   V2.0: PRODUCT HERO — For Passed Lab Notes
   Immediate product recognition for searchers
   ============================================ */

.sn-lab-product-hero {
    padding: 0 1.5rem;
    margin: 0 auto 2rem;
    max-width: 900px;
}

.sn-lab-product-hero__inner {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 12px;
}

@media (max-width: 600px) {
    .sn-lab-product-hero__inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.sn-lab-product-hero__image-wrap {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--lab-bg);
}

.sn-lab-product-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-lab-product-hero__score {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-family: var(--lab-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--lab-text);
    border-radius: 4px;
}

.sn-lab-product-hero__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* V2.2: Brand now links to brand audit page */
.sn-lab-product-hero__brand {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--lab-text-muted);
    margin-bottom: 0.375rem;
    text-decoration: none;
    transition: color 200ms ease;
    display: inline-block;
}

.sn-lab-product-hero__brand:hover {
    color: var(--lab-text);
}

.sn-lab-product-hero__title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0 0 0.5rem;
    line-height: 1.25;
}

.sn-lab-product-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sn-lab-product-hero__price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--lab-text);
}

/* V2.1: Taxonomy Pills — Same style as PDP discovery pills */
.sn-lab-product-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.sn-lab-product-hero__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 100px;
    transition: all 150ms ease;
}

.sn-lab-product-hero__pill--vibe {
    color: #6B5B4F;
    background: rgba(107, 91, 79, 0.08);
    border: 1px solid rgba(107, 91, 79, 0.15);
}

.sn-lab-product-hero__pill--vibe:hover {
    background: rgba(107, 91, 79, 0.12);
    border-color: rgba(107, 91, 79, 0.25);
}

.sn-lab-product-hero__pill--category {
    color: var(--lab-accent);
    background: rgba(160, 128, 96, 0.08);
    border: 1px solid rgba(160, 128, 96, 0.15);
}

.sn-lab-product-hero__pill--category:hover {
    background: rgba(160, 128, 96, 0.12);
    border-color: rgba(160, 128, 96, 0.25);
}

.sn-lab-product-hero__pill--price {
    color: #2D6A4F;
    background: rgba(45, 106, 79, 0.08);
    border: 1px solid rgba(45, 106, 79, 0.15);
}

.sn-lab-product-hero__pill--price:hover {
    background: rgba(45, 106, 79, 0.12);
    border-color: rgba(45, 106, 79, 0.25);
}

.sn-lab-product-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sn-lab-product-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 150ms ease;
}

.sn-lab-product-hero__btn--primary {
    color: #FFFFFF;
    background: #2D6A4F;
    border: 1px solid #2D6A4F;
}

.sn-lab-product-hero__btn--primary:hover {
    background: #245A42;
    border-color: #245A42;
}

.sn-lab-product-hero__btn--secondary {
    color: var(--lab-text);
    background: transparent;
    border: 1px solid var(--lab-border-dark);
}

.sn-lab-product-hero__btn--secondary:hover {
    background: var(--lab-bg);
    border-color: var(--lab-text);
}

/* ============================================
   V2.2: SMART DISCOVERY SECTION
   Unified section for passed and rejected Lab Notes
   Shows highest-scored products + filtered browse URL
   ============================================ */

.sn-lab-discovery {
    padding: 2.5rem 1.5rem;
    background: var(--lab-bg);
    border-top: 1px solid var(--lab-border);
    border-bottom: 1px solid var(--lab-border);
}

.sn-lab-discovery__inner {
    max-width: 800px;
    margin: 0 auto;
}

.sn-lab-discovery__header {
    text-align: center;
    margin-bottom: 2rem;
}

.sn-lab-discovery__heading {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0 0 0.5rem;
}

.sn-lab-discovery__subhead {
    font-size: 0.9375rem;
    color: var(--lab-text-secondary);
    margin: 0;
}

.sn-lab-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

@media (max-width: 700px) {
    .sn-lab-discovery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sn-lab-discovery__grid {
        grid-template-columns: 1fr;
    }
}

.sn-lab-discovery__card {
    display: block;
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.sn-lab-discovery__card:hover {
    border-color: var(--lab-border-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.sn-lab-discovery__image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--lab-bg);
}

.sn-lab-discovery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-lab-discovery__score {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-family: var(--lab-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--lab-text);
    border-radius: 4px;
}

.sn-lab-discovery__info {
    padding: 1rem;
}

.sn-lab-discovery__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lab-text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.sn-lab-discovery__price {
    display: block;
    font-size: 0.875rem;
    color: var(--lab-text-secondary);
}

.sn-lab-discovery__cta {
    text-align: center;
    margin-top: 2rem;
}

.sn-lab-discovery__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--lab-text);
    background: var(--lab-card-bg);
    border: 1px solid var(--lab-border);
    border-radius: 100px;
    text-decoration: none;
    transition: all 150ms ease;
}

.sn-lab-discovery__link:hover {
    border-color: var(--lab-text);
    background: var(--lab-text);
    color: #FFFFFF;
}

/* Legacy: Keep alternatives classes for backwards compatibility */
.sn-lab-alternatives { display: none; }

/* ============================================
   V2.0: LAB FOOTER — Epic & Worldclass
   Transparency + Quiz CTA — Never a dead end
   ============================================ */

.sn-lab-single__footer {
    background: var(--lab-bg);
    border-top: 1px solid var(--lab-border);
}

.sn-lab-single__footer-inner {
    max-width: 100%;
}

/* --- Transparency Section V2.1 — Clean two-row layout --- */
.sn-lab-transparency {
    padding: 1.5rem 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.sn-lab-transparency__main {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
}

.sn-lab-transparency__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(45, 106, 79, 0.08);
    border-radius: 50%;
    color: #2D6A4F;
}

.sn-lab-transparency__text {
    font-size: 0.9375rem;
    color: var(--lab-text-secondary);
    line-height: 1.5;
    margin: 0;
    padding-top: 0.375rem;
}

.sn-lab-transparency__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: calc(36px + 0.875rem); /* Align with text above icon */
}

.sn-lab-transparency__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lab-accent);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.sn-lab-transparency__link:hover {
    text-decoration: underline;
}

.sn-lab-transparency__divider {
    color: var(--lab-text-muted);
}

@media (max-width: 640px) {
    .sn-lab-transparency__links {
        padding-left: 0;
    }
}

/* --- Quiz CTA Section V2.1 — Now outside footer as final block --- */
.sn-lab-quiz-cta {
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, var(--lab-text) 0%, #0D0B09 100%);
    text-align: center;
}

@media (min-width: 768px) {
    .sn-lab-quiz-cta {
        padding: 5rem 2rem;
    }
}

.sn-lab-quiz-cta__inner {
    max-width: 420px;
    margin: 0 auto;
}

.sn-lab-quiz-cta__eyebrow {
    display: block;
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
}

.sn-lab-quiz-cta__title {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 2rem;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .sn-lab-quiz-cta__title {
        font-size: 2.5rem;
    }
}

.sn-lab-quiz-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 2rem;
    line-height: 1.5;
}

.sn-lab-quiz-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--lab-text);
    background: #FFFFFF;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 200ms ease;
}

.sn-lab-quiz-cta__button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .sn-lab-quiz-cta__button {
        padding: 1.125rem 2.5rem;
        font-size: 1.0625rem;
    }
}

/* ============================================
   V2.4: DOI LINK IN METADATA
   For Deep Dives referencing academic research
   ============================================ */
.sn-lab-meta__doi-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--lab-mono);
    font-size: 0.8125rem;
    color: var(--lab-accent);
    text-decoration: none;
    transition: color 150ms ease;
}

.sn-lab-meta__doi-link:hover {
    color: var(--lab-text);
    text-decoration: underline;
}

.sn-lab-meta__doi-link svg {
    opacity: 0.5;
    flex-shrink: 0;
}

.sn-lab-meta__doi-link:hover svg {
    opacity: 0.8;
}

/* ============================================
   V3.1: BRAND LINK IN METADATA
   For rejected Lab Notes — links to brand page
   if brand has verified products
   ============================================ */
.sn-lab-meta__brand-link {
    color: var(--lab-accent);
    text-decoration: none;
    transition: color 150ms ease;
}

.sn-lab-meta__brand-link:hover {
    color: var(--lab-text);
    text-decoration: underline;
}

/* ============================================
   V2.4: CONNECTED PRODUCTS SECTION
   For Deep Dives — manually selected products
   that embody the research findings
   ============================================ */
.sn-lab-connected-products {
    padding: 3rem 1.5rem;
    background: var(--lab-card-bg);
    border-top: 1px solid var(--lab-border);
}

.sn-lab-connected-products__inner {
    max-width: 900px;
    margin: 0 auto;
}

.sn-lab-connected-products__header {
    text-align: center;
    margin-bottom: 2rem;
}

.sn-lab-connected-products__heading {
    font-family: var(--font-display, 'Fraunces', serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--lab-text);
    margin: 0 0 0.5rem;
}

.sn-lab-connected-products__subhead {
    font-size: 0.9375rem;
    color: var(--lab-text-secondary);
    margin: 0;
}

.sn-lab-connected-products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 540px) {
    .sn-lab-connected-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .sn-lab-connected-products__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) {
    .sn-lab-connected-products__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* 6 products = show 6 columns on wide screens */
@media (min-width: 1100px) {
    .sn-lab-connected-products__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.sn-lab-connected-products__card {
    display: block;
    background: var(--lab-bg);
    border: 1px solid var(--lab-border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.sn-lab-connected-products__card:hover {
    border-color: var(--lab-border-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.sn-lab-connected-products__image-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--lab-card-bg);
}

.sn-lab-connected-products__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sn-lab-connected-products__score {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: #FFFFFF;
    background: var(--lab-text);
    border-radius: 4px;
}

.sn-lab-connected-products__info {
    padding: 0.875rem;
}

.sn-lab-connected-products__brand {
    display: block;
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lab-text-muted);
    margin-bottom: 0.25rem;
}

.sn-lab-connected-products__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lab-text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    
    /* Truncate long names */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sn-lab-connected-products__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sn-lab-connected-products__price {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--lab-text);
}

.sn-lab-connected-products__pillar {
    font-family: var(--lab-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--lab-accent);
    background: rgba(160, 128, 96, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    white-space: nowrap;
}

/* ============================================
   V3.2: VISUALIZATION SECTION (Deep Dives)
   Container for Agent 17C generated HTML
   ============================================ */
.sn-lab-visualization {
    margin: 3rem 0;
    padding: 0 1rem;
}

.sn-lab-visualization__inner {
    max-width: 960px;
    margin: 0 auto;
}

/* The viz HTML contains its own styling, but we add some safety margins */
.sn-lab-visualization figure {
    margin: 0;
}

.sn-lab-visualization figcaption {
    margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sn-lab-visualization {
        margin: 2rem 0;
        padding: 0 0.75rem;
    }
}

/* Print: hide interactive elements, show figcaption */
@media print {
    .sn-lab-visualization .tooltip,
    .sn-lab-visualization button {
        display: none !important;
    }
    
    .sn-lab-visualization figcaption {
        display: block !important;
    }
}