/* 
 * Sovereign Engine Theme - Phase 6: V2 Premium Redesign
 * Brand: Vacation Central Florida
*/

:root {
    /* "Authority Insider" Color Palette (WCAG AAA) */
    --color-authority-navy: #0A2540;
    --color-sunshine-gold: #FFD166;
    --color-bg-white: #FFFFFF;
    --color-bg-offwhite: #FCFAFF; /* Softened canvas for editorial feel */
    --color-text-primary: #0B1B33; /* Near-black navy for stark contrast on white */
    
    /* Secondary Colors */
    --color-gray-100: #F7FAFC;
    --color-gray-200: #EDF2F7;
    --color-gray-400: #A0AEC0;
    --color-gray-700: #4A5568;
    
    /* Status Colors for Live Alert System */
    --color-alert-danger: #E53E3E;
    --color-alert-warning: #DD6B20;
    --color-alert-success: #38A169;
    --color-alert-info: #3182CE;

    /* Typography Scales (Mobile First) */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Lora', 'Georgia', serif; /* Shifted to elegant Serif for editorial authority */
    --font-subheading: 'Outfit', 'Inter', sans-serif;
    
    --text-xs: 0.75rem;     /* 12px */
    --text-sm: 0.875rem;    /* 14px */
    --text-base: 1rem;      /* 16px */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */
    --text-5xl: 3.5rem;     /* 56px (Increased for dramatic headings) */

    /* Spacing Scales */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem; /* New aggressive whitespace tier */

    /* Layout Grids */
    --container-max-width: 1400px; /* Expanded for full width layout */
    --content-max-width: 1200px; /* Expanded for wide tables and massive hero shots */
    --sidebar-width: 350px;
    
    /* UI Element Architecture */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 24px;
    
    /* Z-Index Scales */
    --z-alert: 1000;
    --z-header: 900;
    --z-modal: 1100;
}

/* Phase 8: Regional Theming Overrides (Sunshine Experience Step 3) */
.theme-space {
    --color-authority-navy: #091C30; /* Deep Atlantic Blue */
}


.theme-gulf {
    --color-authority-navy: #0D5C75; /* Relaxing Deep Turquoise */
}

/* True Dark Mode Toggle (Legacy class name 'sunlight-mode' retained for logic bonding) */
body.sunlight-mode {
    --color-bg-offwhite: #0A1929; /* Deep midnight blue background */
    --color-bg-white: #0F2744;    /* Dark card background */
    --color-gray-100: #132F51;
    --color-gray-200: #1A3E6B;
    --color-authority-navy: #E0F2FE; /* Bright ice blue for headings */
    --color-text-primary: #CBD5E1;   /* Soft slate for body text */
    --color-sunshine-gold: #FFD166;  /* Maintain brand gold */
    --color-gray-400: #94A3B8;
    --color-gray-700: #F8FAFC;
}

body.sunlight-mode .site-header {
    background: var(--color-bg-offwhite);
    border-bottom: 1px solid var(--color-gray-200);
}

body.sunlight-mode .site-footer {
    background: var(--color-bg-white) !important;
    border-top: 1px solid var(--color-gray-200) !important;
}

body.sunlight-mode * {
    box-shadow: none !important;
    text-shadow: none !important;
}

body.sunlight-mode img, body.sunlight-mode video {
    filter: contrast(1.2) brightness(0.9);
}

/* Phase 16: CXO Night Mode Micro-Animation Framework */
body, 
.site-header, 
.site-footer, 
.post-card,
.region-card,
.sidebar-sticky-element,
.reality-check-stamp,
.worth-the-wait-badge,
.hub-tab {
    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
h1, h2, h3, h4, h5, h6, p, .post-card-excerpt, .post-card-title, .site-title, .site-description, .article-content {
    transition: color 0.25s ease-in-out;
}


/* Thumb-Friendly Mobile Targets */
button, .btn, input, select {
    min-height: 44px;
    min-width: 44px;
}

/* Base Reset for Zero CLS & Predictability */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px; /* Base for REM */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-primary);
    background-color: var(--color-bg-offwhite);
    line-height: 1.6;
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-authority-navy);
    line-height: 1.15;
    margin-bottom: var(--space-6);
    font-weight: 600;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-family: var(--font-subheading); font-size: var(--text-xl); letter-spacing: 0.02em; }

p {
    margin-bottom: var(--space-6);
}

/* Sunlight Readability Protocol: High Contrast Links */
a {
    color: var(--color-authority-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--color-sunshine-gold);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Images & Media - Predefining behavior for Zero CLS */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    /* Require height auto, but expect explicit width/height on attributes */
    height: auto; 
    /* Ensures SVGs don't inherit text color inadvertently */
    fill: currentColor; 
}

/* Structure Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

/* Desktop overrides */
@media (min-width: 768px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    h3 { font-size: var(--text-3xl); }
    
    .container {
        padding-left: var(--space-10);
        padding-right: var(--space-10);
    }
}

/* Phase 2: Core Framework Components */

/* Live Regional Pulse Ticker */
.regional-pulse-ticker {
    background: var(--color-authority-navy);
    color: var(--color-sunshine-gold);
    padding: var(--space-2) 0;
    font-size: var(--text-xs);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: var(--z-alert);
}

.ticker-content {
    display: flex;
    gap: var(--space-12);
    animation: ticker-scroll 30s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
}

.ticker-badge {
    background: var(--color-sunshine-gold);
    color: var(--color-authority-navy);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    margin-right: var(--space-3);
    font-size: 10px;
    font-weight: 800;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Header & Brand Lockup (Editorial Style) */
.site-header {
    background: var(--color-bg-white);
    padding: var(--space-6) 0 0 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.site-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    color: var(--color-authority-navy);
    margin-bottom: 0;
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-description {
    color: var(--color-gray-400);
    font-size: var(--text-xs);
    font-family: var(--font-subheading);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.pathfinder-search .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--color-gray-400);
    pointer-events: none;
}

#pathfinder-input {
    padding: var(--space-2) var(--space-3) var(--space-2) var(--space-10);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-xl);
    font-family: var(--font-subheading);
    font-size: var(--text-sm);
    width: 250px;
    transition: all 0.3s ease;
    background: var(--color-gray-100);
}

#pathfinder-input:focus {
    width: 300px;
    outline: none;
    border-color: var(--color-sunshine-gold);
    background: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(242, 201, 76, 0.2);
}

.sunlight-toggle {
    background: none;
    border: none;
    color: var(--color-authority-navy);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sunlight-toggle:hover, body.sunlight-mode .sunlight-toggle {
    background: var(--color-sunshine-gold);
    color: var(--color-bg-white);
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: var(--space-4);
    }
    .header-tools {
        width: 100%;
        justify-content: space-between;
    }
    #pathfinder-input {
        width: 100%;
    }
}

/* Regional Hub UI (Refined Tabs) */
.regional-hubs {
    background: transparent;
    padding-top: var(--space-4);
}

.hub-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.hub-tab {
    padding: var(--space-3) 0;
    color: var(--color-gray-400);
    font-family: var(--font-subheading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    border-bottom: 2px solid transparent;
    position: relative;
    top: 1px;
    min-height: 44px; /* V4 Thumb-Friendly Navigation standard */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-tab:hover {
    color: var(--color-authority-navy);
    text-decoration: none;
}

.hub-tab.active {
    color: var(--color-authority-navy);
    border-bottom: 2px solid var(--color-sunshine-gold);
}

/* Post Feed (Gallery Aesthetics) */
.feed-container {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.post-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12) var(--space-8);
    margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .post-feed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .post-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-card:hover {
    transform: translateY(-8px);
}

.post-card-image-link {
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    display: block;
    margin-bottom: var(--space-6);
}

.post-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--color-gray-100);
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
    transform: scale(1.03);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content-link {
    color: var(--color-text-primary);
    text-decoration: none;
}

.post-card-primary-tag {
    color: var(--color-sunshine-gold);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-3);
    display: block;
}

.post-card-title {
    margin-bottom: var(--space-3);
    font-size: var(--text-2xl);
    line-height: 1.25;
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
    color: var(--color-authority-navy);
}

.post-card-excerpt {
    color: var(--color-gray-700);
    font-size: var(--text-base);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Phase 7: V3 Legacy Authority Homepage */

/* 1. Cinematic Hero with Regional Switcher */
.cinematic-hero {
    position: relative;
    padding: var(--space-12) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--color-authority-navy);
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 1s ease-in-out, transform 10s ease-out;
    opacity: 0;
}

.hero-bg-layer.active {
    opacity: 1;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(27, 54, 93, 0.2) 0%, rgba(27, 54, 93, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: var(--space-16);
    text-align: center;
}

.hero-title {
    color: var(--color-bg-white);
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-2);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,0.6) !important;
}

.hero-subtitle {
    color: var(--color-sunshine-gold);
    font-family: var(--font-subheading);
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-10);
    text-shadow: 1px 1px 8px rgba(0,0,0,0.9) !important;
}

.regional-switcher {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.region-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: var(--color-bg-white);
}

.region-card:hover, .region-card.active {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-primary);
    transform: translateY(-8px);
    border-color: var(--color-sunshine-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.region-pill {
    display: inline-block;
    background: var(--color-sunshine-gold);
    color: var(--color-authority-navy);
    font-family: var(--font-subheading);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
    transition: background 0.3s ease;
}

.region-card:hover .region-pill, .region-card.active .region-pill {
    background: var(--color-authority-navy);
    color: var(--color-sunshine-gold);
}

.region-name {
    color: inherit;
    font-family: var(--font-subheading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.region-desc {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .regional-switcher {
        grid-template-columns: 1fr;
    }
}

/* 2. Proven Authority Manifesto */
.authority-manifesto {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.manifesto-inner {
    background: var(--color-authority-navy);
    color: var(--color-bg-white);
    padding: var(--space-16) var(--space-10);
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--color-sunshine-gold);
    text-align: center;
    box-shadow: 0 20px 40px rgba(11, 27, 51, 0.1);
}

.manifesto-heading {
    color: var(--color-bg-white);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-8);
}

.manifesto-body {
    font-size: var(--text-xl);
    color: var(--color-gray-200);
    max-width: 800px;
    margin: 0 auto var(--space-8);
    line-height: 1.8;
}

.manifesto-signature {
    font-family: var(--font-subheading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-sunshine-gold);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* 3. Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.bento-tile {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-bg-white);
    border: 1px solid var(--color-gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.bento-feature {
    grid-column: span 12;
    grid-row: span 2;
    background-size: cover;
    background-position: center;
    border: none;
}

.bento-link {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
}

.bento-feature .bento-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(27, 54, 93, 0.95) 0%, rgba(27, 54, 93, 0.1) 100%);
    z-index: 1;
}

.bento-feature .bento-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: var(--space-8);
    color: var(--color-bg-white);
}

.bento-feature .bento-title {
    color: var(--color-bg-white);
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
}

.bento-feature .bento-excerpt {
    font-size: var(--text-lg);
    color: var(--color-gray-200);
    max-width: 80%;
    margin: 0;
}

.bento-snack {
    grid-column: span 6;
    grid-row: span 1;
}

.bento-snack-img {
    height: 50%;
    overflow: hidden;
}

.bento-snack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-snack .bento-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.bento-snack .bento-title {
    font-size: var(--text-lg);
    margin-bottom: 0;
    line-height: 1.3;
}

.bento-snack .bento-title a {
    color: var(--color-authority-navy);
}

.bento-snack .bento-title a:hover {
    color: var(--color-sunshine-gold);
}

.bento-tags {
    font-family: var(--font-subheading);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--color-sunshine-gold);
    margin-bottom: var(--space-2);
}

@media (min-width: 992px) {
    .bento-feature {
        grid-column: span 8;
        grid-row: span 2;
    }
    .bento-snack {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-auto-rows: auto;
    }
    .bento-snack {
        grid-column: span 12;
    }
    .bento-snack-img {
        height: 200px;
    }
}

/* Footer (Minimalist Edition) */
.site-footer {
    background: var(--color-bg-white);
    padding: var(--space-16) 0 var(--space-8);
    text-align: center;
    border-top: 1px solid var(--color-gray-200);
    font-size: var(--text-sm);
    font-family: var(--font-subheading);
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Phase 3: The Article Engine (V2 Redesign) */

.content-container {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.article-header {
    text-align: center;
    padding: var(--space-16) 0 var(--space-10);
    max-width: 900px;
    margin: 0 auto;
}

.article-tags {
    margin-bottom: var(--space-6);
    font-family: var(--font-subheading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: var(--text-lg); /* Increased per user feedback */
    color: var(--color-sunshine-gold);
    letter-spacing: 0.10em;
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--color-authority-navy);
    border-radius: var(--border-radius-sm);
}

.article-title {
    margin-bottom: var(--space-6);
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    line-height: 1.15;
}

.gh-content h1, .article-content h1, .hub-page-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.gh-content h2, .article-content h2, .hub-page-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.25;
}

.gh-content h3, .article-content h3, .hub-page-content h3 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    line-height: 1.3;
}

.article-excerpt {
    font-size: var(--text-2xl);
    font-family: var(--font-heading);
    color: var(--color-gray-700);
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto var(--space-8);
}

.article-meta {
    font-size: var(--text-sm);
    font-family: var(--font-subheading);
    color: var(--color-gray-400);
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-image {
    margin-bottom: var(--space-16);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hub-page-content figure img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hub-page-content figure {
    margin: var(--space-10) 0;
}

.hub-page-content figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-gray-500);
    margin-top: var(--space-3);
    font-family: var(--font-subheading);
}

/* Base Content Styles */
.article-content p {
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.article-content h2 {
    margin-top: var(--space-10);
}

.article-content h3 {
    margin-top: var(--space-8);
}

/* BLUF Block - Bottom Line Up Front */
.bluf-block {
    background: var(--color-authority-navy);
    color: var(--color-bg-white);
    padding: var(--space-6);
    border-radius: var(--border-radius-md);
    border-left: 6px solid var(--color-sunshine-gold);
    margin-bottom: var(--space-10);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.bluf-block strong {
    display: block;
    color: var(--color-sunshine-gold);
    text-transform: uppercase;
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.bluf-block p {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.5;
}

/* 2026 Reality Check Module */
.reality-check {
    background: var(--color-gray-100);
    border: 2px solid var(--color-alert-danger);
    border-radius: var(--border-radius-md);
    margin: var(--space-8) 0;
    overflow: hidden;
}

.rc-header {
    background: var(--color-alert-danger);
    color: var(--color-bg-white);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.rc-header::before {
    content: "⚠️";
    margin-right: var(--space-2);
}

.rc-body {
    padding: var(--space-4);
}

.rc-body p:last-child {
    margin-bottom: 0;
}

/* Interactive Value Matrix Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--space-8) 0;
}

.value-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
    min-width: 600px;
}

.value-matrix th,
.value-matrix td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.value-matrix th {
    background: var(--color-authority-navy);
    color: var(--color-bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
}

.value-matrix tbody tr:nth-child(even) {
    background: var(--color-gray-100);
}

.value-matrix tbody tr:hover {
    background: var(--color-gray-200);
}

/* Semantic Stickiness Footer (Next Step Pathing) */
.semantic-next-steps {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--color-authority-navy);
    border-radius: var(--border-radius-md);
    text-align: center;
}

.semantic-next-steps .hub-title {
    color: var(--color-bg-white);
    margin-bottom: var(--space-6);
}

.semantic-card {
    background: rgba(255,255,255,0.1);
    padding: var(--space-6);
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--color-sunshine-gold);
    transition: background 0.2s ease;
}

.semantic-card:hover {
    background: rgba(255,255,255,0.15);
}

.semantic-path-label {
    display: block;
    color: var(--color-gray-400);
    font-family: var(--font-subheading);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.semantic-card .post-card-title a {
    color: var(--color-bg-white);
    font-size: var(--text-2xl);
    text-decoration: none;
}

.semantic-card .post-card-title a:hover {
    color: var(--color-sunshine-gold);
}

/* Newsletter Trust Integration */
.insider-newsletter-post-script {
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    padding: var(--space-8);
    border-radius: var(--border-radius-md);
    margin-top: var(--space-12);
    text-align: center;
}

.insider-newsletter-post-script h5 {
    color: var(--color-authority-navy);
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.insider-newsletter-post-script p {
    color: var(--color-gray-700);
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

.insider-newsletter-post-script form {
    display: flex;
    gap: var(--space-2);
    max-width: 400px;
    margin: 0 auto;
}

.insider-newsletter-post-script input[type="email"] {
    flex-grow: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-subheading);
}

.insider-newsletter-post-script button {
    background: var(--color-authority-navy);
    color: var(--color-bg-white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0 var(--space-6);
    font-family: var(--font-subheading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.insider-newsletter-post-script button:hover {
    background: var(--color-sunshine-gold);
    color: var(--color-authority-navy);
}

.message-success, .message-error {
    display: none;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    font-family: var(--font-subheading);
    width: 100%;
}

.success .message-success, .error .message-error {
    display: block;
}

/* Phase 5: Ghost Koenig Editor Polyfills */

/* Ghost requires these classes for the editor's image sizing options. */

/* Wide Viewport Images */
.kg-width-wide {
    position: relative;
    width: 80vw;
    min-width: 100%;
    margin-left: calc(50% - 40vw);
    margin-right: calc(50% - 40vw);
    transform: translateX(calc(50vw - 50%));
}

@media (max-width: 800px) {
    .kg-width-wide {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }
}

/* Full Viewport Images */
.kg-width-full {
    position: relative;
    width: 100vw;
    min-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    transform: translateX(calc(50vw - 50%));
}

@media (max-width: 800px) {
    .kg-width-full {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }
}

/* Ensure images within Koenig blocks scale correctly */
figure.kg-card {
    margin: var(--space-8) 0;
}

figure.kg-card img {
    margin: 0 auto;
}

figcaption {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-top: var(--space-2);
}

/* Cinematic Image Formatting Restrictions (Zero Distortion) */
.article-image img, 
.kg-image-card img, 
.kg-gallery-image img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Phase 7: Insider Tool Modules (Sunshine UI) */

/* -- The Honesty Index -- */
.honesty-index-box {
    background-color: var(--color-bg-white);
    border: 3px solid var(--color-sunshine-gold);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    box-shadow: 0 8px 20px rgba(255, 209, 102, 0.15);
    position: relative;
    overflow: hidden;
}

.honesty-index-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 6px; height: 100%;
    background-color: var(--color-sunshine-gold);
}

.hi-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--color-authority-navy);
}

.hi-icon {
    color: var(--color-sunshine-gold);
}

.hi-title {
    margin: 0;
    font-family: var(--font-subheading);
    font-size: var(--text-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hi-content {
    color: var(--color-text-primary);
}

.hi-question {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
    color: var(--color-authority-navy);
}

.hi-hack {
    margin: 0;
    font-size: var(--text-base);
}

/* -- Adventure Map Downloader -- */
.adventure-map-dl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--color-authority-navy) 0%, #1A3E6D 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--space-6);
    margin: var(--space-6) 0;
    color: var(--color-bg-white);
    gap: var(--space-5);
    flex-wrap: wrap;
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.2);
}

.am-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-sunshine-gold);
    flex-shrink: 0;
}

.am-details {
    flex-grow: 1;
}

.am-title {
    color: var(--color-bg-white);
    font-family: var(--font-subheading);
    font-size: var(--text-xl);
    margin: 0 0 var(--space-1) 0;
}

.am-size {
    font-size: var(--text-sm);
    color: var(--color-gray-200);
}

.am-btn {
    background-color: var(--color-sunshine-gold);
    color: var(--color-text-primary);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--border-radius-xl);
    font-family: var(--font-subheading);
    font-weight: 700;
    text-align: center;
    min-width: 160px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.am-btn:hover {
    background-color: #ffe08a;
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Phase 5: Pathfinder AI Search Modal */
.pathfinder-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 27, 51, 0.85); /* Navy transparent backdrop */
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.pathfinder-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.pathfinder-modal {
    background: var(--color-bg-white);
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 6px solid var(--color-sunshine-gold);
}

.pathfinder-modal-overlay.active .pathfinder-modal {
    transform: translateY(0) scale(1);
}

.pf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-200);
}

.pf-modal-title {
    margin: 0;
    font-size: var(--text-lg);
    font-family: var(--font-subheading);
    color: var(--color-authority-navy);
}

.pf-close-btn {
    background: none; border: none;
    font-size: 28px;
    color: var(--color-gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0 var(--space-2);
}

.pf-close-btn:hover { color: var(--color-alert-danger); }

.pf-modal-interaction {
    display: flex;
    padding: var(--space-6);
    gap: var(--space-3);
    background: var(--color-bg-white);
}

.pf-modal-input {
    flex-grow: 1;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--border-radius-md);
    font-size: var(--text-base);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.2s;
}

.pf-modal-input:focus {
    border-color: var(--color-sunshine-gold);
}

.pf-submit-btn {
    background: var(--color-authority-navy);
    color: var(--color-bg-white);
    border: none;
    padding: 0 var(--space-6);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pf-submit-btn:hover { background: #1B365D; }

.pf-modal-results {
    padding: 0 var(--space-6) var(--space-6) var(--space-6);
    max-height: 400px;
    overflow-y: auto;
    font-size: var(--text-base);
    color: var(--color-text-primary);
    line-height: 1.6;
}

.pf-placeholder-text {
    color: var(--color-gray-400);
    text-align: center;
    font-style: italic;
}
\n
/* =========================================================================
   PHASE 9: THE ELITE JOURNAL UX (CONTEXTUAL NAVIGATOR)
   ========================================================================= */

/* Maximize container widths to allow sidebars */
.article-engine .article-content {
    max-width: 1400px !important; 
    padding: 0 4vw !important;
}

.elite-hub-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-8);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 800px) {
    .elite-hub-layout {
        grid-template-columns: 1fr minmax(260px, 320px);
        gap: 5vw;
    }
}

.hub-page-content {
    min-width: 0;
    width: 100%;
}

/* Base Desktop Sidebar - Hidden on mobile */
.contextual-sidebar {
    display: none;
}

@media (min-width: 800px) {
    .contextual-sidebar {
        display: block !important;
    }
}

/* The Sticky Module */
.sidebar-sticky-element {
    position: sticky;
    top: 120px; /* Ride just below header */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--color-authority-navy);
    padding: var(--space-6);
    box-shadow: 0 15px 35px rgba(10, 37, 64, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.sunlight-mode .sidebar-sticky-element {
    background: rgba(15, 39, 68, 0.85); /* Dark mode */
    border-color: rgba(255, 209, 102, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Inner Layouts */
.pathfinder-header {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-gray-200);
}

body.sunlight-mode .pathfinder-header {
    border-bottom-color: rgba(255,255,255,0.1);
}

.pathfinder-eyebrow {
    color: var(--color-sunshine-gold);
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: var(--space-1);
}

.pathfinder-header h4 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

/* Subtle animation when JS swaps content */
.pathfinder-body {
    transition: opacity 0.3s ease;
}
.pathfinder-body.fade {
    opacity: 0.2;
}

/* --------------------------------------------------------------------------
   Mobile Peek-a-Boo Hub
   -------------------------------------------------------------------------- */
.mobile-peekaboo-hub {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 37, 64, 0.95); /* Authority Navy */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--color-sunshine-gold);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    z-index: 2000;
    transform: translateY(100%); /* Hidden initially */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}

.mobile-peekaboo-hub.visible {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .mobile-peekaboo-hub {
        display: none !important; /* Never ever show on desktop */
    }
}

.peekaboo-text {
    flex-grow: 1;
    color: #ffffff;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
}

.peekaboo-btn {
    background: var(--color-sunshine-gold);
    color: var(--color-authority-navy);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-subheading);
    font-weight: 800;
    font-size: 0.75rem;
    text-decoration: none;
    margin-left: var(--space-4);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.peekaboo-btn:hover {
    background: #ffffff;
    color: var(--color-authority-navy);
    text-decoration: none;
}


/* =========================================================================
   PHASE 10: GLOBAL TOOLS & VCF CONCIERGE UX
   ========================================================================= */

/* 1. Live Pulse Ticker (Absolute Top) */
.regional-pulse-ticker {
    background: var(--color-authority-navy);
    color: #ffffff;
    font-family: var(--font-subheading);
    font-size: 0.75rem;
    padding: 8px 16px;
    text-align: center;
    border-bottom: 2px solid var(--color-sunshine-gold);
    z-index: 3000;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes slow-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(255, 209, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

.pulse-alert {
    animation: slow-pulse 2.5s infinite ease-in-out;
}

body.sunlight-mode .regional-pulse-ticker {
    background: #0A1929;
    border-bottom: 1px solid rgba(255,209,102,0.3);
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scrollTicker 20s linear infinite;
    padding-left: 100%;
}
.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes scrollTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Phase 10: Grandmaster Typography Overrides (Blockquotes & Callouts)
   ========================================================================== */

/* Overriding the default Ghost red accent blockquote styling */
.gh-content blockquote {
    margin: 2.5em 0;
    padding: 1.25em 1.5em;
    border-left: 5px solid var(--color-sunshine-gold);
    background-color: var(--color-bg-white);
    box-shadow: -6px 0 15px rgba(17, 35, 63, 0.15); /* Authority Navy soft shadow */
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-authority-navy);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.gh-content blockquote::before {
    content: none;
}

.gh-content blockquote p {
    margin: 0;
}

/* ==========================================================================
   Phase 11: Rigid CSS Grid Containment (Preventing Overflow Overlaps)
   ========================================================================== */

/* 
 * If a user adds a 'Full Width' or 'Wide' element inside the Ghost Editor 
 * onto a Hub Page, it will normally stretch to 100vw and physically cover 
 * the right sidebar. We must force-trap those elements inside the grid column.
 */
.hub-page-content {
    min-width: 0; 
    overflow-x: hidden;
}

.hub-page-content .kg-content-wide, 
.hub-page-content .kg-content-full,
.hub-page-content .kg-width-wide,
.hub-page-content .kg-width-full {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    left: 0 !important;
}

.ticker-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-right: 8px;
    letter-spacing: 0.1em;
}

/* 2. VCF Concierge Search Bar (Header Alignment) */
.header-tools {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.pathfinder-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .pathfinder-search {
        display: none; /* Hide complex search on ultra mobile, prioritize hub nav */
    }
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-gray-400);
}

#pathfinder-input {
    width: 100%;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: 24px;
    padding: 10px 16px 10px 40px;
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    color: var(--color-authority-navy);
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

#pathfinder-input:focus {
    outline: none;
    border-color: var(--color-sunshine-gold);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.2);
    background: #fff;
}

body.sunlight-mode #pathfinder-input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
body.sunlight-mode #pathfinder-input::placeholder {
    color: var(--color-gray-400);
}

/* 3. The Concierge Modal Overlay */
.pathfinder-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 37, 64, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pathfinder-modal-overlay.active {
    display: flex;
}
.pathfinder-modal {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: var(--border-radius-xl);
    padding: var(--space-6);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border-top: 6px solid var(--color-sunshine-gold);
}
body.sunlight-mode .pathfinder-modal {
    background: #0F2744;
}
.pf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-gray-200);
    padding-bottom: var(--space-2);
}
.pf-modal-title {
    font-family: var(--font-subheading);
    font-size: 1.25rem;
    margin: 0;
    font-weight: 800;
    color: var(--color-authority-navy);
}
body.sunlight-mode .pf-modal-title { color: #fff; }
.pf-close-btn {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-gray-400);
}
.pf-modal-interaction {
    display: flex; gap: 10px; margin-bottom: var(--space-4);
}
.pf-modal-input {
    flex-grow: 1; padding: 12px 16px; border: 2px solid var(--color-gray-200); border-radius: 8px; font-family: var(--font-sans);
}
.pf-submit-btn {
    background: var(--color-authority-navy); color: #fff; padding: 12px 24px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* Universal Fluid Typography Baseline For Data Payloads */
.article-content ul, 
.article-content ol {
    font-size: clamp(1.1rem, 1.5vw + 0.8rem, 1.5rem) !important;
    line-height: 1.6 !important;
}
.article-content h1, 
.article-content h2, 
.article-content h3 {
    font-size: clamp(1.4rem, 4vw, 2rem) !important;
}
.article-content li {
    margin-bottom: 12px !important;
}


/* Sovereign Engine Delayed Modal */
.vcf-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 37, 64, 0.85);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(5px); opacity: 1; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.vcf-modal-overlay.hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
}
.vcf-modal-content {
    background: #fff; padding: 40px 30px; border-radius: 16px; width: 90%; max-width: 400px;
    position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.3); text-align: center;
    border-top: 6px solid var(--color-sunshine-gold);
}
.vcf-modal-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    font-size: 28px; color: var(--color-gray-400); cursor: pointer; transition: color 0.2s ease;
}
.vcf-modal-close:hover { color: var(--color-authority-navy); }
.modal-subscribe-form .message-success, .modal-subscribe-form .message-error { display: none; }
.modal-subscribe-form.success .message-success { display: block; }
.modal-subscribe-form.error .message-error { display: block; }

/* Sovereign Framework: Ghost Editor Callout Override (Reality Check) */
.kg-callout-card-red {
    background-color: var(--color-authority-navy) !important;
    border: 3px solid var(--color-sunshine-gold) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: var(--space-4) var(--space-6) !important;
}
.kg-callout-card-red .kg-callout-text,
.kg-callout-card-red .kg-callout-emoji {
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
}
.kg-callout-card-red strong {
    color: var(--color-sunshine-gold) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

/* UI Architecture: Asymmetric Magazine Recommendation Matrix */
.elite-recommendation-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
@media (min-width: 1024px) {
    .elite-recommendation-matrix {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}
.primary-recs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 600px) {
    .primary-recs {
        grid-template-columns: 1fr 1fr;
    }
}
.luxury-image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    background: var(--color-gray-100);
}
.luxury-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.luxury-image-link:hover .luxury-image {
    transform: scale(1.05);
}
.luxury-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}
.luxury-title a { color: var(--color-authority-navy); text-decoration: none; transition: color 0.2s; }
.luxury-title a:hover { color: var(--color-sunshine-gold); }
.luxury-meta { font-size: 0.85rem; color: var(--color-gray-500); font-family: var(--font-body); }

.snack-header {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--color-gray-500);
    margin: 0 0 1.5rem 0;
    border-bottom: 2px solid var(--color-gray-200);
    padding-bottom: 0.75rem;
    font-weight: 800;
}
.snack-list { display: flex; flex-direction: column; gap: 1.5rem; }
.snack-card {
    display: grid;
    grid-template-columns: 1fr 90px;
    gap: 1.25rem;
    align-items: start;
}
.snack-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 0.5rem 0;
}
.snack-title a { color: var(--color-authority-navy); text-decoration: none; transition: color 0.2s; }
.snack-title a:hover { color: var(--color-sunshine-gold); }
.snack-meta { font-size: 0.8rem; color: var(--color-gray-400); }
.snack-image-link {
    display: block;
    width: 90px; height: 90px;
    border-radius: 8px; overflow: hidden;
    background: var(--color-gray-100);
    flex-shrink: 0;
}
.snack-image { width: 100%; height: 100%; object-fit: cover; }



/* Phase 11: SJM-1.0 'Soft-Slide' Modal Engine */
.vcf-modal-overlay { position: fixed; bottom: 30px; right: 30px; z-index: var(--z-modal); width: 400px; max-width: calc(100vw - 40px); pointer-events: none; }
.vcf-modal-overlay.hidden .vcf-modal-content { opacity: 0; transform: translateY(50px) scale(0.95); pointer-events: none; }
.vcf-modal-content { background: var(--color-bg-white); border: 1px solid var(--color-gray-200); border-radius: var(--border-radius-lg); box-shadow: 0 15px 40px rgba(10, 37, 64, 0.15); padding: var(--space-6); position: relative; pointer-events: auto; transition: opacity 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); opacity: 1; transform: translateY(0) scale(1); border-left: 5px solid var(--color-sunshine-gold); }
.vcf-modal-close { position: absolute; top: 15px; right: 15px; background: transparent; border: none; font-size: 1.5rem; line-height: 1; color: var(--color-gray-400); cursor: pointer; transition: color 0.2s; }
.vcf-modal-close:hover { color: var(--color-alert-danger); }
