/* ==========================================================================
   locatria ENTERPRISE DESIGN SYSTEM v2.0
   AI Knowledge Hub & Content Publishing System Infrastructure
   ========================================================================== */

:root {
    /* Brand Tokens Specified in Design System */
    --primary-color: #6D5EF8;
    --secondary-color: #3B82F6;
    --accent-color: #7DD3FC;
    --highlight-color: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-color: #FFFFFF;
    --surface-color: #F8FAFC;
    --border-color: #E5E7EB;
    --text-color: #0F172A;
    --text-muted: #64748B;

    /* Theme Mappings */
    --bg-primary: var(--bg-color);
    --bg-surface: var(--surface-color);
    --bg-glass: rgba(255, 255, 255, 0.88);
    --border-hover: rgba(109, 94, 248, 0.35);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 20px 40px -15px rgba(109, 94, 248, 0.25);
    --primary-gradient: linear-gradient(135deg, #6D5EF8 0%, #8B5CF6 50%, #3B82F6 100%);
    --gradient-glow: linear-gradient(135deg, rgba(109, 94, 248, 0.12) 0%, rgba(139, 92, 246, 0.12) 50%, rgba(59, 130, 246, 0.12) 100%);
    --text-gradient: linear-gradient(135deg, #6D5EF8 0%, #8B5CF6 50%, #3B82F6 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Radii & Timings */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
    --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-primary: #0B0F19;
    --bg-surface: #111827;
    --bg-glass: rgba(17, 24, 39, 0.88);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(139, 92, 246, 0.4);
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 20px 40px -15px rgba(139, 92, 246, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* READING PROGRESS BAR v2.0 */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1100;
}
.reading-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 100ms ease-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button, input { font-family: inherit; border: none; outline: none; }
input, select, textarea { font-size: 16px !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; }

.gradient-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.w-full { width: 100%; }

.glass-panel, .glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

/* BREADCRUMB NAVIGATION v2.0 */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb-item a:hover { color: var(--primary-color); }
.breadcrumb-separator { font-size: 11px; opacity: 0.6; }
.breadcrumb-item.active { color: var(--text-color); font-weight: 600; }

/* ARTICLE TYPE TAGS & BADGES */
.article-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.type-guide { background: rgba(109, 94, 248, 0.12); color: var(--primary-color); border: 1px solid rgba(109, 94, 248, 0.25); }
.type-howto { background: rgba(59, 130, 246, 0.12); color: var(--secondary-color); border: 1px solid rgba(59, 130, 246, 0.25); }
.type-review { background: rgba(245, 158, 11, 0.12); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.25); }
.type-comparison { background: rgba(139, 92, 246, 0.12); color: var(--highlight-color); border: 1px solid rgba(139, 92, 246, 0.25); }
.type-casestudy { background: rgba(16, 185, 129, 0.12); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.25); }

/* CONTENT CALLOUT BOXES (GEO/AEO OPTIMIZED) */
.callout-box {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-surface);
    position: relative;
}
.callout-quick-answer { border-left-color: var(--primary-color); background: rgba(109, 94, 248, 0.06); }
.callout-pro-tip { border-left-color: var(--success-color); background: rgba(16, 185, 129, 0.06); }
.callout-important { border-left-color: var(--warning-color); background: rgba(245, 158, 11, 0.06); }
.callout-warning { border-left-color: var(--danger-color); background: rgba(239, 68, 68, 0.06); }
.callout-ai-insight { border-left-color: var(--highlight-color); background: rgba(139, 92, 246, 0.06); }

.callout-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.callout-quick-answer .callout-title { color: var(--primary-color); }
.callout-pro-tip .callout-title { color: var(--success-color); }
.callout-important .callout-title { color: var(--warning-color); }
.callout-warning .callout-title { color: var(--danger-color); }
.callout-ai-insight .callout-title { color: var(--highlight-color); }

/* AUTHOR & EEAT TRUST META CARD v2.0 */
.author-meta-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 20px 0 28px;
    font-size: 13px;
    flex-wrap: wrap;
}
.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}
.author-details { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-weight: 700; color: var(--text-color); }
.author-role { color: var(--text-muted); font-size: 12px; }
.eeat-badges { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.eeat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(16, 185, 129, 0.1); color: var(--success-color); border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }

/* GLOBAL SEARCH MODAL v2.0 (CTRL+K) */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}
.search-modal-overlay.active { opacity: 1; pointer-events: auto; }
.search-modal-box {
    width: 90%;
    max-width: 680px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform var(--transition-smooth);
}
.search-modal-overlay.active .search-modal-box { transform: translateY(0); }
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.search-modal-input {
    flex: 1;
    background: transparent;
    font-size: 18px !important;
    color: var(--text-color);
}
.search-modal-close {
    background: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}
.search-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.search-result-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background var(--transition-fast);
}
.search-result-item:hover { background: rgba(109, 94, 248, 0.08); }
.search-res-title { font-weight: 700; font-size: 15px; color: var(--text-color); }
.search-res-snippet { font-size: 12px; color: var(--text-muted); }

/* STICKY TOC SIDEBAR LAYOUT v2.0 */
.pillar-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}
.toc-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 20px;
    border-radius: var(--radius-md);
}
.toc-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.toc-link { color: var(--text-muted); padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all var(--transition-fast); }
.toc-link:hover, .toc-link.active { color: var(--primary-color); border-left-color: var(--primary-color); font-weight: 600; }

/* Buttons Specified in Design System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(109, 94, 248, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    opacity: 0.95;
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(109, 94, 248, 0.05);
}

.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); min-height: 50px; }
.btn-xl { padding: 18px 36px; font-size: 18px; border-radius: var(--radius-md); min-height: 56px; }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(109, 94, 248, 0.08);
    border: 1px solid rgba(109, 94, 248, 0.2);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    padding-top: max(16px, env(safe-area-inset-top));
    transition: all var(--transition-smooth);
}

.header.scrolled {
    padding: 10px 0;
    padding-top: max(10px, env(safe-area-inset-top));
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container { display: flex; align-items: center; justify-content: space-between; }
.logo-group { display: flex; align-items: center; gap: 10px; }
.logo-text { font-family: var(--font-heading); font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--text-color); }
.nav-desktop { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-color); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { background: transparent; color: var(--text-muted); padding: 8px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
.icon-btn:hover { color: var(--text-color); background: var(--border-color); }
.theme-toggle { background: transparent; color: var(--text-muted); padding: 8px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
.theme-toggle:hover { color: var(--text-color); background: var(--border-color); }

[data-theme="light"] .moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }

.mobile-menu-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: transparent; cursor: pointer; min-width: 44px; min-height: 44px; padding: 6px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text-color); transition: all var(--transition-fast); border-radius: 2px; }

.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(11, 15, 25, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity var(--transition-smooth); }
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-nav-content { position: absolute; right: 0; top: 0; bottom: 0; width: 85%; max-width: 340px; background: var(--bg-surface); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; transform: translateX(100%); transition: transform var(--transition-smooth); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2); }
.mobile-nav-overlay.active .mobile-nav-content { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.mobile-nav-close { font-size: 32px; background: none; color: var(--text-color); cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.mobile-link { font-size: 16px; font-weight: 600; color: var(--text-color); padding: 8px 0; border-bottom: 1px dashed var(--border-color); }

/* Hero Section */
.hero-section { position: relative; padding: 140px 0 60px; overflow: hidden; }
.hero-bg-blur { position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: var(--primary-gradient); filter: blur(140px); opacity: 0.18; pointer-events: none; border-radius: 50%; }
.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-content { text-align: left; }

.hero-title { font-size: clamp(32px, 5.5vw, 56px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 16px; line-height: 1.15; }
.hero-subtitle { font-size: clamp(15px, 2vw, 19px); color: var(--text-muted); max-width: 640px; margin-bottom: 28px; line-height: 1.6; }
.hero-cta-group { display: flex; align-items: center; gap: 16px; }

/* Abstract AI Visual Component */
.hero-visual { padding: 24px; border-radius: var(--radius-lg); }
.abstract-dashboard { display: flex; flex-direction: column; gap: 16px; }
.dash-bar { display: flex; align-items: center; gap: 8px; position: relative; margin-bottom: 8px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.red { background: #FF5F56; }
.dash-dot.yellow { background: #FFBD2E; }
.dash-dot.green { background: #27C93F; }
.dash-title { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); background: rgba(15, 23, 42, 0.04); padding: 2px 10px; border-radius: var(--radius-sm); }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 14px; text-align: left; }
.dash-card { padding: 16px 20px; }
.dash-label { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.dash-val { font-size: 20px; font-weight: 800; color: var(--text-color); margin: 6px 0; display: flex; align-items: center; gap: 10px; }
.tag-success { font-size: 11px; padding: 2px 8px; background: rgba(16, 185, 129, 0.1); color: var(--success-color); border-radius: var(--radius-sm); }
.tag-trend { font-size: 12px; color: var(--success-color); font-weight: 600; }
.dash-progress { width: 100%; height: 6px; background: rgba(109, 94, 248, 0.1); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.p-bar { height: 100%; background: var(--primary-gradient); border-radius: 3px; }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 40px; margin-top: 8px; }
.chart-col { flex: 1; background: rgba(109, 94, 248, 0.15); border-radius: 3px; }
.chart-col.active { background: var(--primary-gradient); }

/* Section Architecture */
.section { padding: 80px 0; position: relative; }
.section-header { margin-bottom: 44px; }
.section-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--primary-color); margin-bottom: 10px; display: inline-block; }
.section-title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: clamp(15px, 2vw, 18px); color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* Grids & Cards */
.logo-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-card { padding: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-md); }
.logo-icon { font-size: 24px; }
.logo-name { font-size: 15px; font-weight: 700; color: var(--text-color); }

.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.help-card { padding: 32px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.help-icon { font-size: 36px; margin-bottom: 16px; }
.help-card h3 { font-size: 20px; margin-bottom: 16px; }
.help-content-block { margin-bottom: 16px; text-align: left; }
.block-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--primary-color); display: block; margin-bottom: 4px; }
.help-content-block p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-card { padding: 32px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.topic-num { font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--primary-color); margin-bottom: 12px; opacity: 0.85; }
.topic-card h3 { font-size: 20px; margin-bottom: 8px; }
.topic-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex: 1; }
.topic-link { font-size: 14px; font-weight: 600; color: var(--primary-color); }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.article-thumb { height: 160px; width: 100%; padding: 14px; display: flex; align-items: flex-end; }
.bg-grad-1 { background: linear-gradient(135deg, #6D5EF8, #8B5CF6); }
.bg-grad-2 { background: linear-gradient(135deg, #3B82F6, #7DD3FC); }
.bg-grad-3 { background: linear-gradient(135deg, #8B5CF6, #D946EF); }
.article-tag { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); color: #FFF; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
.article-body { padding: 24px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.article-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.article-body h3 { font-size: 18px; margin-bottom: 8px; line-height: 1.35; }
.article-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; flex: 1; }
.article-read-link { font-size: 14px; font-weight: 600; color: var(--primary-color); }

.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { padding: 32px 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.res-card.highlight { background: var(--gradient-glow); border-color: rgba(109, 94, 248, 0.35); }
.res-icon { font-size: 32px; margin-bottom: 12px; }
.res-card h3 { font-size: 18px; margin-bottom: 8px; }
.res-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; flex: 1; }

.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-logo { font-size: 28px; }
.tool-head h4 { font-size: 16px; margin-bottom: 2px; }
.tool-use { font-size: 11px; color: var(--secondary-color); font-weight: 600; display: block; }
.tool-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.tool-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.tool-actions .btn { flex: 1; padding: 6px 10px; font-size: 12px; min-height: 36px; }

.timeline-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-step { flex: 1; min-width: 150px; padding: 20px 14px; text-align: center; }
.timeline-step.highlight { background: var(--gradient-glow); border-color: var(--primary-color); }
.step-num { font-family: var(--font-mono); font-size: 20px; font-weight: 800; color: var(--primary-color); margin-bottom: 6px; }
.step-num.accent { color: var(--secondary-color); }
.timeline-step h4 { font-size: 15px; margin-bottom: 6px; }
.timeline-step p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.timeline-arrow { font-size: 18px; color: var(--primary-color); font-weight: 800; }

.why-card { padding: 48px 32px; }
.why-pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; text-align: left; }
.why-item { padding: 24px; }
.why-icon { font-size: 28px; margin-bottom: 12px; }
.why-item h3 { font-size: 18px; margin-bottom: 8px; }
.why-item p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.newsletter-card { padding: 48px 32px; background: var(--gradient-glow); border-color: rgba(109, 94, 248, 0.35); }
.news-title { font-size: clamp(24px, 4vw, 32px); margin: 12px 0; }
.news-desc { font-size: 15px; color: var(--text-muted); max-width: 600px; margin: 0 auto 28px; }
.newsletter-form { max-width: 540px; margin: 0 auto; width: 100%; }
.input-group { display: flex; gap: 10px; background: var(--bg-surface); padding: 6px; border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.newsletter-input { flex: 1; padding: 12px 14px; background: transparent; font-size: 16px !important; color: var(--text-color); width: 100%; }
.form-microcopy { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.newsletter-success { display: none; margin-top: 16px; }
.newsletter-success.active { display: block; animation: fadeIn var(--transition-smooth); }
.success-icon { font-size: 36px; }

.accordion-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-trigger { width: 100%; padding: 18px 22px; background: transparent; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; color: var(--text-color); cursor: pointer; text-align: left; gap: 12px; }
.faq-icon { font-size: 20px; font-weight: 400; color: var(--primary-color); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height var(--transition-smooth), padding var(--transition-smooth); padding: 0 22px; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.faq-item.active .faq-content { padding: 0 22px 18px; max-height: 300px; }

.final-cta-section { padding: 90px 0; background: var(--text-color); color: #FFF; }
.final-title { color: #FFF; font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; }
.final-desc { color: #94A3B8; font-size: 16px; margin-bottom: 28px; }
.final-cta-group { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.footer { background: #0B0F19; color: #94A3B8; padding: 70px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; text-align: left; }
.brand-col .logo-text { color: #FFF; }
.footer-tagline { font-weight: 600; color: #E2E8F0; margin: 10px 0 6px; }
.footer-bio { font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.social-links { font-size: 13px; color: var(--accent-color); }
.footer-col h4 { color: #FFF; font-size: 15px; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col a:hover { color: #FFF; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 24px; text-align: center; font-size: 12px; }

.back-to-top { position: fixed; bottom: 24px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-gradient); color: #FFF; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(109, 94, 248, 0.4); opacity: 0; pointer-events: none; transition: opacity var(--transition-smooth), transform var(--transition-fast); z-index: 990; }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .pillar-layout-grid { grid-template-columns: 1fr; }
    .toc-sidebar { display: none; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-cta-group { justify-content: center; }
    .logo-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .help-grid, .topic-grid, .article-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-container { flex-direction: column; gap: 12px; }
    .timeline-arrow { transform: rotate(90deg); }
    .why-pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-section { padding: 110px 0 40px; }
    .hero-cta-group { flex-direction: column; width: 100%; gap: 12px; }
    .hero-cta-group .btn { width: 100%; }
    .logo-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .help-grid, .topic-grid, .article-grid, .resources-grid, .tools-grid, .why-pillars-grid { grid-template-columns: 1fr; }
    .input-group { flex-direction: column; background: transparent; border: none; box-shadow: none; padding: 0; gap: 10px; }
    .newsletter-input { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 16px; }
    .btn-input { width: 100%; border-radius: var(--radius-md); min-height: 50px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .logo-cards-grid { grid-template-columns: 1fr; }
    .final-cta-group { flex-direction: column; width: 100%; }
    .final-cta-group .btn { width: 100%; }
}

/* ARTICLE ENHANCEMENT UTILITIES */
.heading-anchor {
    color: var(--primary-color);
    opacity: 0;
    margin-left: 8px;
    font-size: 0.85em;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}
h2:hover .heading-anchor, h3:hover .heading-anchor {
    opacity: 1;
}
.article-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 28px;
    flex-wrap: wrap;
}
.share-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}
.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--gradient-glow);
}
.article-nav-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 40px 0;
}
@media (max-width: 640px) {
    .article-nav-prev-next { grid-template-columns: 1fr; }
}
.nav-article-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-article-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.nav-article-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}
.nav-article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
}
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-gradient);
    color: #FFF;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(109, 94, 248, 0.4);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}
.toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* STANDARDIZED CONTINUE LEARNING COMPONENT */
.learning-journey-container {
    margin-top: 50px;
    margin-bottom: 50px;
}
.journey-header-box {
    margin-bottom: 24px;
}
.journey-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}
.journey-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.progress-indicator-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}
.progress-bar-track {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.journey-matrix-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.matrix-card-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.journey-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.step-card {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85px;
    position: relative;
    border: 1px solid var(--border-color);
}
.step-card.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--text-color);
}
.step-card.completed:hover {
    border-color: #10B981;
    transform: translateY(-2px);
}
.step-card.current {
    background: var(--primary-gradient);
    color: #FFFFFF !important;
    border-color: transparent;
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(109, 94, 248, 0.35);
    cursor: default;
    pointer-events: none;
}
.step-card.upcoming {
    background: var(--bg-primary);
    border-color: var(--border-color);
    color: var(--text-color);
}
.step-card.upcoming:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.step-num-badge {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.step-card.completed .step-num-badge { color: #10B981; }
.step-card.current .step-num-badge { color: rgba(255,255,255,0.9); }
.step-card.upcoming .step-num-badge { color: var(--text-muted); }

.step-card-title {
    font-weight: 600;
    line-height: 1.3;
}
.step-card.current .step-card-title { color: #FFFFFF; }

.prev-next-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .prev-next-nav-grid {
        grid-template-columns: 1fr;
    }
}
.nav-direction-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nav-direction-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.nav-dir-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.nav-dir-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}
.nav-meta-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.nav-dir-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 6px;
    line-height: 1.35;
}
.nav-dir-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   PREMIUM DOCUMENTATION PORTAL DESIGN SYSTEM (Microsoft Learn / Vercel Docs Style)
   ========================================================================== */
.docs-layout-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}
@media (max-width: 992px) {
    .docs-layout-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .docs-sidebar {
        display: none; /* Collapses on smaller screens */
    }
}

/* STICKY DOCUMENTATION SIDEBAR */
.docs-sidebar {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}
.docs-nav-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}
.docs-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}
.docs-nav-link:hover {
    color: var(--text-color);
    background: rgba(109, 94, 248, 0.06);
}
.docs-nav-link.active {
    color: var(--primary-color);
    background: rgba(109, 94, 248, 0.12);
    font-weight: 600;
}
.docs-nav-sublist {
    list-style: none;
    padding: 4px 0 4px 18px;
    margin: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2px solid var(--border-color);
}
.docs-nav-sublink {
    display: block;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.docs-nav-sublink:hover {
    color: var(--primary-color);
}

/* DOCUMENTATION HERO & SEARCH BAR */
.docs-hero-box {
    margin-bottom: 32px;
}
.docs-hero-title {
    font-size: clamp(34px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.docs-hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 780px;
}
.docs-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.docs-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* SEARCH BOX */
.docs-search-container {
    position: relative;
    max-width: 640px;
    margin-bottom: 32px;
}
.docs-search-input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.docs-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(109, 94, 248, 0.15);
}
.docs-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
.docs-search-shortcut {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* VISUAL LEARNING PATH STEPPER */
.docs-learning-path-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    overflow-x: auto;
}
.path-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}
.path-step:hover { color: var(--primary-color); }
.path-step.active {
    color: var(--primary-color);
    background: rgba(109, 94, 248, 0.12);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(109, 94, 248, 0.3);
}
.path-arrow {
    color: var(--text-muted);
    font-size: 12px;
}

/* FEATURED GUIDE CARD */
.featured-guide-card {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 28px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(109, 94, 248, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1.5px solid rgba(109, 94, 248, 0.3);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .featured-guide-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--primary-gradient);
    color: #FFFFFF;
    margin-bottom: 12px;
}
.featured-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.25;
}
.featured-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* REDESIGNED ARTICLE CARDS */
.doc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.doc-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.doc-card:hover:not(.disabled) {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.doc-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-primary);
}
.doc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.doc-logo-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.doc-diff-badge {
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.doc-diff-badge.coming-soon {
    background: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    border-color: var(--border-color);
}
.doc-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.35;
}
.doc-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}
.doc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}
.doc-read-btn {
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* DOCUMENTATION COMPARISON TABLE */
.doc-table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    margin-bottom: 48px;
}
.doc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
    min-width: 620px;
}
.doc-table th {
    padding: 14px 18px;
    background: var(--bg-primary);
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}
.doc-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
}
.doc-table tr:last-child td {
    border-bottom: none;
}
.doc-table tr:hover td {
    background: rgba(109, 94, 248, 0.03);
}


/* ==========================================================================
   locatria COMPONENT LIBRARY v2.0 (CALLOUTS, DIAGRAMS & TABLES)
   ========================================================================== */
.gl-callout {
    border-left: 4px solid;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-size: 0.97rem;
    line-height: 1.65;
}
.gl-callout__label {
    font-weight: 700;
    margin: 0 0 0.4rem;
    letter-spacing: 0.01em;
    font-family: var(--font-heading);
}
.gl-callout p:last-child {
    margin-bottom: 0;
}
.gl-callout--tip {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}
.gl-callout--mistake {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}
.gl-callout--practice {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.08);
}
[data-theme="dark"] .gl-callout--tip {
    background: rgba(37, 99, 235, 0.15);
}
[data-theme="dark"] .gl-callout--mistake {
    background: rgba(217, 119, 6, 0.15);
}
[data-theme="dark"] .gl-callout--practice {
    background: rgba(5, 150, 105, 0.15);
}

.gl-diagram, pre.gl-diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.4;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin: 1.75rem 0;
    color: var(--text-color);
}
@media (max-width: 640px) {
    .gl-diagram, pre.gl-diagram {
        font-size: 0.68rem;
        padding: 0.85rem;
    }
}

/* Custom Table Formatting for Educational Content */
.gl-table-wrapper {
    overflow-x: auto;
    margin: 1.75rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}
.gl-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.93rem;
}
.gl-table th, .gl-table td {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
}
.gl-table th {
    background: var(--bg-surface);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}
.gl-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   locatria REUSABLE EDUCATIONAL HUB COMPONENTS v3.0
   ========================================================================== */

/* 1. BRANDED FRAMEWORK COMPONENT (TIMELINE) */
.gl-framework-container {
    margin: 40px 0;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.gl-framework-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-color);
}
.gl-framework-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 16px;
}
.gl-framework-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--gradient-glow);
    z-index: 1;
    transform: translateY(-50%);
}
.gl-framework-step {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
    flex: 1;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}
.gl-framework-step:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.gl-framework-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #FFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.gl-framework-step .step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}
.gl-framework-step .step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .gl-framework-timeline {
        flex-direction: column;
        align-items: stretch;
    }
    .gl-framework-timeline::before {
        top: 20px;
        bottom: 20px;
        left: 36px;
        width: 3px;
        height: auto;
    }
    .gl-framework-step {
        text-align: left;
        padding-left: 60px;
        position: relative;
    }
    .gl-framework-step .step-num {
        position: absolute;
        left: 16px;
        top: 18px;
        margin: 0;
    }
}

/* 2. LEARNING JOURNEY ROADMAP COMPONENT */
.gl-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.gl-roadmap-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.gl-roadmap-card.active {
    border-color: var(--primary-color);
    background: rgba(109, 94, 248, 0.05);
    box-shadow: 0 4px 20px rgba(109, 94, 248, 0.15);
}
.gl-roadmap-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    width: fit-content;
}
.gl-roadmap-badge.completed { background: rgba(16, 185, 129, 0.12); color: var(--success-color); }
.gl-roadmap-badge.current { background: var(--primary-gradient); color: #FFF; }
.gl-roadmap-badge.next { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }

/* 3. INDUSTRY FOCUS CARDS */
.gl-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.gl-industry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition-smooth);
}
.gl-industry-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.gl-industry-icon { font-size: 32px; margin-bottom: 12px; }
.gl-industry-title { font-size: 18px; font-weight: 700; color: var(--text-color); margin-bottom: 8px; }
.gl-industry-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* 4. HUB NAVIGATION GRID */
.gl-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin: 28px 0;
}
.gl-hub-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all var(--transition-fast);
}
.gl-hub-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}
.gl-hub-header { display: flex; align-items: center; justify-content: space-between; }
.gl-hub-icon { font-size: 24px; }
.gl-hub-status {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}
.gl-hub-status.live { background: rgba(16, 185, 129, 0.12); color: var(--success-color); }
.gl-hub-status.coming { background: rgba(245, 158, 11, 0.12); color: var(--warning-color); }

/* 6. CALLOUT COMPONENT VARIATIONS */
.gl-callout--remember {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}
[data-theme="dark"] .gl-callout--remember {
    background: rgba(139, 92, 246, 0.15);
}

/* 10. EEAT TRUST BLOCK */
.gl-eeat-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: center;
}
.gl-eeat-item { display: flex; align-items: center; gap: 12px; }
.gl-eeat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(109, 94, 248, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.gl-eeat-label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.gl-eeat-val { font-size: 14px; font-weight: 700; color: var(--text-color); }

/* 11. ENTITY TAGS */
.gl-entity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(109, 94, 248, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(109, 94, 248, 0.2);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9em;
}

/* ==========================================================================
   LOCATRIA ENTERPRISE MOBILE & MULTI-DEVICE RESPONSIVE OPTIMIZATIONS v4.0
   ========================================================================== */

/* Touch Target Size & Accessibility (Min 44px for Mobile Interaction) */
button, a, .nav-link, .mobile-link, .toc-link, .faq-trigger, .theme-toggle {
    min-height: 44px;
    touch-action: manipulation;
}

/* Prevent Horizontal Overflow on Small Devices (Smartphones & Foldables) */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile Table Horizontal Scroll Containers */
.gl-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border-radius: var(--radius-md);
}

/* Fluid Responsive Typography & Container Margins for Mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero-title {
        font-size: clamp(26px, 7vw, 36px) !important;
    }
    .hero-subtitle {
        font-size: 15px !important;
    }
    .pillar-layout-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    .toc-sidebar {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
        margin-bottom: 24px;
    }
    .journey-steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
    .gl-framework-timeline {
        flex-direction: column;
    }
    .gl-eeat-block {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}

/* Foldable & Small Mobile Screen Fixes (width <= 380px) */
@media (max-width: 380px) {
    .hero-section {
        padding-top: 90px !important;
    }
    .step-card {
        padding: 12px !important;
    }
    .step-card-title {
        font-size: 12px !important;
    }
}

/* ARTICLE BODY MOBILE RESPONSIVE TYPOGRAPHY & SPACING FIXES */
@media (max-width: 768px) {
    body {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
    
    /* Article Headings & Titles */
    h1, .article-content-body h1 {
        font-size: clamp(24px, 6.5vw, 32px) !important;
        line-height: 1.25 !important;
        margin-bottom: 14px !important;
    }
    h2, .article-content-body h2 {
        font-size: clamp(20px, 5.5vw, 24px) !important;
        line-height: 1.3 !important;
        margin-top: 28px !important;
        margin-bottom: 12px !important;
    }
    h3, .article-content-body h3 {
        font-size: clamp(17px, 4.5vw, 20px) !important;
        line-height: 1.35 !important;
        margin-top: 22px !important;
        margin-bottom: 10px !important;
    }

    /* Paragraphs & Lead Text */
    p, .article-content-body p, div[style*="font-size: 18px"] {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    /* Callout & Answer Boxes */
    .callout-box, .callout-quick-answer, .gl-callout {
        padding: 16px 18px !important;
        margin: 20px 0 !important;
        border-radius: var(--radius-md) !important;
    }
    .callout-title {
        font-size: 14px !important;
    }

    /* Author Meta Card */
    .author-meta-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }
    .eeat-badges {
        width: 100% !important;
        justify-content: space-between !important;
    }

    /* Prev / Next Direction Nav Grid */
    .prev-next-nav-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .nav-direction-card {
        padding: 18px !important;
    }

    /* Table of Contents Collapsible Mobile Accordion Feel */
    .toc-sidebar {
        background: var(--bg-surface) !important;
        border: 1px solid var(--border-color) !important;
        padding: 16px !important;
        margin-bottom: 24px !important;
    }
    .toc-list {
        max-height: 260px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}
