/* source: /static/css/themes/executive.css */
:root{

/*
====================================
EXECUTIVE THEME
Dark Mode
====================================
*/

/* Backgrounds */

--bg:#0f1115;

--surface:#171a21;

--surface2:#20242c;

--header-bg:#0b0d12;


/* Typography */

--text:#f5f5f4;

--muted:#a8adb8;


/* Brand */

--primary:#d4af37;

--accent:#c9a227;


/* Borders */

--border:#2b313c;


/* Hero */

--hero-bg:linear-gradient(
135deg,
#171a21,
#252b35
);


/* Effects */

--shadow:
0 12px 30px rgba(
0,
0,
0,
0.40
);

}


/*
====================================
EXECUTIVE THEME
Light Mode
====================================
*/

html[data-theme="light"]{

/* Backgrounds */

--bg:#f8f7f4;

--surface:#ffffff;

--surface2:#f2f0ea;

--header-bg:#ffffff;


/* Typography */

--text:#1f2937;

--muted:#5f6b7a;


/* Brand */

--primary:#a67c00;

--accent:#b8860b;


/* Borders */

--border:#e4e0d7;


/* Hero */

--hero-bg:linear-gradient(
135deg,
#ffffff,
#f4f1ea
);


/* Effects */

--shadow:
0 8px 18px rgba(
31,
41,
55,
0.08
);

}

/* source: /static/css/base.css */
*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body,
.site-header,
.hero,
.card,
footer{
transition:
background .2s ease,
color .2s ease,
border-color .2s ease;
}

body{
margin:0;
background:var(--bg);
color:var(--text);
font-family:Inter,system-ui,sans-serif;
line-height:1.7;
font-size:18px;
}

.container{
width:min(1400px,96vw);
margin:auto;
padding:0 20px;
}

main{
padding:24px 0 60px 0;
}

article{
max-width:1000px;
}

section{
margin-bottom:24px;
}

h1,
h2,
h3,
h4{
color:var(--text);
}

h2{
display:inline-block;
margin-bottom:18px;
font-size:1.8rem;
border-bottom:3px solid var(--accent);
padding-bottom:6px;
}

h2 a{
text-decoration:none;
color:inherit;
}

h3{
margin-top:0;
}

a{
color:var(--primary);
}


/* --- LIVE SEARCH RESULTS UI --- */
.search-result-item {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg);
}

.search-result-section {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.search-result-title {
    color: var(--text);
    font-weight: 600;
}

.search-result-empty {
    padding: 16px;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* --- HEADER LINK OVERRIDES --- */
.site-header a:hover,
.brand a:hover,
.main-nav a:hover {
    text-decoration: none !important;
}

/* --- KNOWLEDGE BASE DIRECTORY LAYOUT --- */
.kb-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: start; /* Prevents boxes from stretching vertically */
}

.kb-category-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.kb-category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.kb-category-header h2 {
    font-size: 1.3rem;
    margin: 0;
    border: none;
    padding: 0;
}

.kb-count {
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.kb-article-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.kb-article-list li {
    margin-bottom: 12px;
}

.kb-article-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text) !important;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.doc-icon {
    width: 16px;
    height: 16px;
    color: var(--muted);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.kb-article-list a:hover {
    color: var(--primary) !important;
    transform: translateX(4px);
}

.kb-article-list a:hover .doc-icon {
    color: var(--primary);
}

.kb-view-all {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary) !important;
    text-decoration: none !important;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    width: 100%;
}

.kb-view-all:hover {
    text-decoration: underline !important;
}

/* --- FULLSCREEN SEARCH MODAL --- */
.search-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Beautiful blur effect */
    z-index: 9999; /* Ensure it's above everything */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 12vh; /* Positions it nicely near the top */
    opacity: 1;
    transition: opacity 0.2s ease;
}

.search-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.search-modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 600px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.2s ease;
}

.search-modal-overlay.hidden .search-modal-content {
    transform: translateY(-20px); /* Slight slide-down animation */
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

#modal-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.15rem;
    outline: none;
    margin-left: 12px;
}

.esc-badge {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.esc-badge:hover {
    color: var(--text);
    border-color: var(--text);
}

.search-modal-results {
    max-height: 50vh;
    overflow-y: auto;
    padding: 8px 0;
}


/* --- SECTION PAGE LAYOUT --- */

.section-hero {
    text-align: center;
}

.section-hero h1 {
    margin-bottom: 12px;
}

.section-hero .hero-text {
    margin: 0 auto 20px auto;
}

.back-link-wrapper {
    margin-top: 20px;
}

.back-link {
    color: var(--primary) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.back-link:hover {
    text-decoration: underline !important;
}

.section-list-container {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.section-category-box {
    padding: 32px;
}

.section-article-list {
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.section-article-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.section-article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-article-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none !important;
}

.section-article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s ease;
}

.section-article-summary {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: normal;
    line-height: 1.6;
}

.section-article-cta {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

/* Hover effects for the article links */
.section-article-link:hover .section-article-title {
    color: var(--primary);
}

.section-article-link:hover .section-article-cta {
    text-decoration: underline;
}


/* ==========================================================
   SITEWIDE SEARCH SCOPE
   Search is present in the shared base layout, so these rules
   belong in the core bundle rather than the resources bundle.
   ========================================================== */

.search-scope-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.search-scope-tab {
    appearance: none;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--muted);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.search-scope-tab.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.search-result-source {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 7px;
    border: 1px solid var(--border);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg);
}

.search-result-source-resources {
    color: var(--primary);
}

.search-result-section {
    margin: 0;
}

.search-result-summary {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.45;
}

.search-result-empty-centered {
    padding-top: 32px;
    padding-bottom: 32px;
    text-align: center;
}

@media (max-width: 640px) {
    .search-modal-content {
        width: 96%;
    }
}

/* source: /static/css/header.css */
.site-header{
background:var(--header-bg);
border-bottom:1px solid var(--border);
position:sticky;
top:0;
z-index:100;
}


.site-header .container{
    display:flex;
    justify-content: flex-start; /* 1. CHANGED: Groups items to the left */
    align-items:center;
    gap:20px;
    padding:12px 20px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}


.site-header .container {
    display: flex;
    justify-content: flex-start; /* 1. CHANGED: Groups items to the left */
    align-items: center;
    gap: 20px;
    padding: 12px 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto; /* 2. ADDED: Pushes only the menu to the far right */
}

.brand a{
color:var(--text);
font-size:1.4rem;
font-weight:800;
text-decoration:none;
}

.brand-subtitle{
margin:0;
font-size:.9rem;
color:var(--muted);
}

.main-nav{
display:flex;
align-items:center;
gap:12px;
flex-wrap:wrap;
}

.main-nav a{
color:var(--text);
text-decoration:none;
padding:8px 12px;
border-radius:10px;
}

.main-nav a:hover{
background:var(--surface2);
}

.theme-toggle{
cursor:pointer;
border:1px solid var(--border);
padding:6px 12px;
border-radius:10px;
background:var(--surface);
color:var(--text);
}

.mobile-label{
display:none;
}

#brand-rotator{
display:inline-block;
min-width:120px;
font-weight:700;
color:var(--accent);
transition:opacity .25s ease;
}

.header-actions{
display:flex;
align-items:center;
gap:8px;
}

.nav-toggle{

display:none;

cursor:pointer;

border:1px solid var(--border);

padding:6px 12px;

border-radius:10px;

background:var(--surface);

color:var(--text);
}

/* --- HEADER ICON BUTTONS --- */
.header-icon-btn {
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-icon-btn:hover {
    background: var(--surface);
    color: var(--primary);
}

/* source: /static/css/hero.css */
.hero{

background:var(--hero-bg);

padding:36px 24px;

margin-bottom:24px;

border:1px solid var(--border);

border-radius:24px;

box-shadow:var(--shadow);

display:flex;

flex-direction:column;

align-items:center;

text-align:center;

gap:16px;

}

.hero h1{

margin:0;

font-size:clamp(2rem,4vw,3rem);

line-height:1.1;

letter-spacing:-0.02em;

}

.hero-text{

margin:0;

max-width:720px;

font-size:1.05rem;

line-height:1.7;

color:var(--muted);

}

.hero-badge{

padding:6px 14px;

border-radius:999px;

background:var(--surface);

border:1px solid var(--border);

font-size:.85rem;

font-weight:700;

letter-spacing:.04em;

text-transform:uppercase;

}

.dashboard-hero{

padding:28px 20px;

margin-bottom:20px;

}

.hero-actions{

display:flex;

gap:16px;

flex-wrap:wrap;

justify-content:center;

margin-top:8px;

}

.hero-utility-actions{

display:flex;

gap:10px;

flex-wrap:wrap;

justify-content:center;

margin-top:2px;

padding-top:14px;

border-top:1px solid var(--border);

width:min(100%,520px);

}

.hero-utility-action{

appearance:none;

border:1px solid var(--border);

background:color-mix(in srgb,var(--surface) 82%,transparent);

color:var(--muted);

border-radius:999px;

padding:9px 14px;

display:inline-flex;

align-items:center;

gap:8px;

font:inherit;

font-size:.9rem;

font-weight:650;

line-height:1;

cursor:pointer;

transition:border-color .16s ease,color .16s ease,background .16s ease,transform .16s ease;

}

.hero-utility-action:hover{

border-color:var(--primary);

color:var(--text);

background:var(--surface2);

}

.hero-utility-action:active{

transform:translateY(1px);

}

.hero-utility-action:focus-visible{

outline:2px solid var(--primary);

outline-offset:3px;

}

.hero-utility-action svg{

color:var(--primary);

flex:0 0 auto;

}

.hero-utility-action[hidden]{

display:none;

}

.hero-action-status{

min-height:1.2em;

font-size:.8rem;

color:var(--muted);

}

@media (max-width:520px){

.hero-utility-actions{

width:100%;

gap:8px;

}

.hero-utility-action{

flex:1 1 calc(50% - 4px);

justify-content:center;

padding:10px 8px;

font-size:.84rem;

}

}

/* source: /static/css/cards.css */
.cards{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(280px,1fr));
gap:12px;
}

.card{
background:var(--surface);
border:1px solid var(--border);
border-radius:16px;
padding:20px;
box-shadow:var(--shadow);
}

.card:hover{
transform:translateY(-2px);
border-color:var(--primary);
}

.card p{
margin-bottom:0;
color:var(--muted);
}

.card a{
text-decoration:none;
color:var(--primary);
font-weight:600;
}

/* --- PILLAR CARDS (HOMEPAGE) --- */
.pillar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.pillar-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pillar-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.pillar-card p {
    flex-grow: 1; /* Pushes the link to the bottom */
    margin-bottom: 24px;
}

.pillar-link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- PREMIUM/PAYWALL STYLING --- */
.premium-card {
    border: 1px solid var(--primary); /* Highlights paid features */
    background: linear-gradient(145deg, var(--surface) 0%, var(--bg) 100%);
}

.premium-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- FIX FOR CLICKABLE CARDS --- */
a.card {
    text-decoration: none; /* Removes the underline from the whole card */
    color: var(--text); /* Forces the text back to standard color */
    display: flex;
    flex-direction: column;
}

/* Ensure the heading and text aren't golden */
a.card h3 {
    color: var(--text);
}

a.card p {
    color: var(--muted);
}

/* Only make the specific link text golden */
a.card .pillar-link {
    color: var(--primary);
    margin-top: auto; /* Pushes the link to the bottom if content is short */
    display: inline-block;
}

/* Only underline the CTA text when hovering over the card */
a.card:hover .pillar-link {
    text-decoration: underline;
}

/* Optional: To remove underlines from standard links across the whole site unless hovered */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* --- UNIFIED CARD LINK STYLING --- */

/* 1. Strip default link styling from whole cards and links inside cards */
a.card,
a.card *,
.card a {
    text-decoration: none !important;
}

/* 2. Standardize Title Colors */
a.card h3, 
.card h3 a {
    color: var(--text);
    transition: color 0.2s ease;
}

/* 3. Standardize Paragraph Colors (prevent link bleed) */
a.card p,
.card p {
    color: var(--muted) !important;
}

/* 4. Hover States: Turn border and title golden, but NO underlines on main text */
a.card:hover,
.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

a.card:hover h3,
.card:hover h3 a,
.card h3 a:hover {
    color: var(--primary); 
}

/* 5. The specific "Browse Articles" CTA at the bottom of Home cards */
a.card .pillar-link {
    color: var(--primary) !important;
}

a.card:hover .pillar-link {
    text-decoration: underline !important; /* Only underline this specific text */
}

/* --- HOMEPAGE SPECIFIC GRIDS --- */

.platform-section {
    margin-bottom: 60px;
}

.platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.insight-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.insight-card .intel-tag {
    margin-bottom: 12px;
}

.insight-card strong {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.insight-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--muted) !important;
}

/* source: /static/css/footer.css */
footer{
margin-top:60px;
background:var(--header-bg);
border-top:1px solid var(--border);
}

.footer-content{
display:flex;
justify-content:space-between;
align-items:flex-start;
flex-wrap:wrap;
gap:24px;
padding:24px 0;
}

.footer-links{
display:flex;
flex-wrap:wrap;
gap:18px;
}

.footer-links a{
display:inline-block;
white-space:nowrap;
text-decoration:none;
}

.footer-links a:hover{
text-decoration:underline;
}

/* source: /static/css/forms.css */
.interest-form{
display:flex;
flex-direction:column;
gap:14px;
max-width:900px;
}

.form-help{
margin-top:-6px;
margin-bottom:8px;
color:var(--muted);
}

.interest-form input[type="text"],
.interest-form input[type="email"],
.interest-form textarea{
width:100%;
padding:14px 16px;
background:var(--surface2);
color:var(--text);
border:1px solid var(--border);
border-radius:12px;
font:inherit;
}

.interest-form textarea{
resize:vertical;
min-height:120px;
}

.topic-grid{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(260px,1fr));
gap:12px;
margin-bottom:8px;
}

.topic-option{
display:flex;
align-items:center;
gap:10px;
padding:14px;
background:var(--surface2);
border:1px solid var(--border);
border-radius:12px;
cursor:pointer;
}

.primary-button{
margin-top:10px;
padding:14px 18px;
border:none;
border-radius:12px;
background:var(--accent);
color:#001b18;
font-size:1rem;
font-weight:700;
cursor:pointer;
}

/* source: /static/css/cookies.css */
.cookie-banner{
position:fixed;
bottom:0;
left:0;
right:0;
width:100%;
max-width:100%;
overflow-x:hidden;
background:var(--header-bg);
border-top:1px solid var(--border);
z-index:9999;
box-shadow:0 -5px 20px rgba(0,0,0,.4);
}

.cookie-banner.hidden{
display:none;
}

.cookie-banner-content{
width:100%;
max-width:1400px;
margin:auto;
padding:16px 20px;
display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
flex-wrap:wrap;
}

.cookie-banner-text{
color:var(--text);
min-width:0;
max-width:100%;
}

.cookie-banner-actions{
display:flex;
gap:10px;
flex-shrink:0;
}

.cookie-banner-actions button{
border:none;
cursor:pointer;
padding:10px 16px;
border-radius:8px;
font-weight:600;
}

#cookie-accept{
background:var(--accent);
color:#001b18;
}

#cookie-decline{
background:var(--surface2);
color:var(--text);
}

.cookie-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,.6);
display:flex;
justify-content:center;
align-items:center;
z-index:10000;
}

.cookie-modal.hidden{
display:none;
}

.cookie-modal-content{
background:var(--surface);
padding:24px;
border-radius:16px;
border:1px solid var(--border);
width:min(500px,90vw);
box-shadow:var(--shadow);
}

.cookie-modal-actions{
display:flex;
gap:12px;
margin-top:20px;
}

.cookie-modal-actions button{
cursor:pointer;
padding:10px 16px;
border-radius:8px;
border:1px solid var(--border);
background:var(--surface2);
color:var(--text);
}

@media (max-width:768px){
.cookie-banner-content{
flex-direction:column;
align-items:stretch;
padding:12px 16px;
gap:10px;
}

.cookie-banner-text{
font-size:.9rem;
line-height:1.45;
}

.cookie-banner-actions{
width:100%;
}

.cookie-banner-actions button{
flex:1;
}
}

/* source: /static/css/mobile.css */
/*
Mobile and responsive rules.

Keep all responsive behaviour here so desktop styles remain easy to read.
*/

.mobile-nav-shell{
display:none;
}

@media (max-width:900px){
.site-header .container{
flex-direction:row;
justify-content:space-between;
align-items:center;
}
}

@media (max-width:768px){
body{
font-size:16px;
padding-bottom:calc(112px + env(safe-area-inset-bottom));
}

/* Mobile navigation replaces the desktop header and footer. */
.site-header,
footer{
display:none;
}

.mobile-nav-shell{
display:block;
position:fixed;
left:0;
right:0;
bottom:calc(10px + env(safe-area-inset-bottom));
z-index:8000;
pointer-events:none;
}

.mobile-dock,
.mobile-nav-panel{
pointer-events:auto;
}

.mobile-dock{
position:relative;
width:min(calc(100vw - 20px),720px);
min-height:72px;
margin:0 auto;
padding:7px 12px;
display:grid;
grid-template-columns:minmax(54px,.72fr) minmax(128px,1.8fr) repeat(3,minmax(54px,.72fr));
align-items:center;
gap:2px;
background:var(--surface);
border:1px solid var(--border);
border-radius:28px;
box-shadow:0 14px 38px rgba(0,0,0,.36);
transition:width .22s ease,min-height .22s ease,padding .22s ease,border-radius .22s ease;
}

.mobile-dock-action{
min-width:0;
min-height:56px;
padding:5px 4px;
border:0;
background:transparent;
color:var(--text);
font:inherit;
cursor:pointer;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:2px;
text-decoration:none;
border-radius:16px;
}

.mobile-dock-action:active,
.mobile-dock-action:hover{
background:var(--surface2);
}

.mobile-dock-action svg{
width:27px;
height:27px;
fill:none;
stroke:currentColor;
stroke-width:1.9;
stroke-linecap:round;
stroke-linejoin:round;
}

.mobile-dock-action span{
font-size:.69rem;
line-height:1.05;
font-weight:650;
white-space:nowrap;
color:var(--muted);
}

.mobile-dock-brand{
min-width:0;
height:48px;
display:flex;
align-items:center;
justify-content:center;
padding:0 10px;
border-left:1px solid var(--border);
border-right:1px solid var(--border);
color:var(--text);
font-size:1.12rem;
font-weight:850;
letter-spacing:-.025em;
text-decoration:none;
white-space:nowrap;
}

.mobile-dock-brand:hover{
text-decoration:none;
}

.mobile-dock-brand-dot{
color:var(--primary);
}

.mobile-theme-toggle .theme-icon-moon{
display:none;
}

.mobile-theme-toggle.is-light-theme .theme-icon-sun{
display:none;
}

.mobile-theme-toggle.is-light-theme .theme-icon-moon{
display:block;
}

.mobile-dock-audio{
display:none;
}

.mobile-dock-audio .mobile-audio-icon-pause{
display:none;
}

.mobile-dock-audio.is-playing .mobile-audio-icon-play{
display:none;
}

.mobile-dock-audio.is-playing .mobile-audio-icon-pause{
display:block;
}

.mobile-dock-collapse{
position:absolute;
right:14px;
top:-14px;
width:30px;
height:25px;
padding:0;
display:flex;
align-items:center;
justify-content:center;
border:1px solid var(--border);
border-bottom-color:var(--surface);
border-radius:14px 14px 6px 6px;
background:var(--surface);
color:var(--muted);
cursor:pointer;
box-shadow:0 -4px 12px rgba(0,0,0,.16);
}

.mobile-dock-collapse svg{
width:16px;
height:16px;
fill:none;
stroke:currentColor;
stroke-width:2;
stroke-linecap:round;
stroke-linejoin:round;
transition:transform .2s ease;
}

.mobile-nav-shell.is-collapsed .mobile-dock{
width:176px;
min-height:58px;
padding:5px 26px;
grid-template-columns:1fr;
border-radius:30px;
}

.mobile-nav-shell.is-collapsed .mobile-dock-action{
display:none;
}

.mobile-nav-shell.is-collapsed .mobile-dock-brand{
height:46px;
border:0;
font-size:1.08rem;
}

.mobile-nav-shell.is-collapsed.has-audio-control .mobile-dock{
width:224px;
padding:5px 28px 5px 8px;
grid-template-columns:48px 1fr;
}

.mobile-nav-shell.is-collapsed.has-audio-control .mobile-dock-audio{
display:flex;
min-height:46px;
border-radius:18px;
}

.mobile-nav-shell.is-collapsed.has-audio-control .mobile-dock-audio svg{
width:22px;
height:22px;
}

.mobile-nav-shell.is-collapsed.has-audio-control .mobile-dock-brand{
border-left:1px solid var(--border);
}

.mobile-nav-shell.is-collapsed .mobile-dock-collapse{
display:flex;
right:8px;
top:50%;
transform:translateY(-50%);
width:24px;
height:34px;
border:0;
border-radius:12px;
box-shadow:none;
background:transparent;
}

.mobile-nav-shell.is-collapsed .mobile-dock-collapse svg{
transform:rotate(180deg);
}

.mobile-nav-panel{
position:absolute;
left:50%;
bottom:82px;
transform:translateX(-50%);
width:min(calc(100vw - 24px),520px);
max-height:min(68vh,560px);
overflow:auto;
background:var(--surface);
border:1px solid var(--border);
border-radius:22px;
box-shadow:0 18px 48px rgba(0,0,0,.42);
}

.mobile-nav-panel-inner{
padding:14px;
}

.mobile-nav-links{
display:grid;
grid-template-columns:1fr 1fr;
gap:8px;
}

.mobile-nav-links a{
min-height:44px;
display:flex;
align-items:center;
justify-content:center;
padding:9px 10px;
border:1px solid var(--border);
border-radius:12px;
background:var(--surface2);
color:var(--text);
font-size:.86rem;
font-weight:650;
line-height:1.25;
text-align:center;
text-decoration:none;
}

.mobile-nav-links a:hover{
color:var(--primary);
text-decoration:none;
}

.mobile-nav-divider{
height:1px;
margin:12px 2px 8px;
background:var(--border);
}

.mobile-nav-legal{
display:flex;
align-items:center;
justify-content:center;
flex-wrap:nowrap;
gap:0;
min-width:0;
}

.mobile-nav-legal a{
position:relative;
min-width:0;
padding:4px 9px;
color:var(--muted);
font-size:.72rem;
font-weight:550;
line-height:1.2;
white-space:nowrap;
text-align:center;
text-decoration:none;
}

.mobile-nav-legal a + a::before{
content:"·";
position:absolute;
left:-1px;
color:var(--muted);
opacity:.65;
}

.mobile-nav-legal a:hover,
.mobile-nav-legal a:active{
color:var(--primary);
text-decoration:none;
}

/* Existing mobile content sizing. */
.hero{
padding:32px 20px;
margin-bottom:24px;
}

.hero h1{
font-size:1.6rem;
}

.hero-text{
font-size:1rem;
line-height:1.7;
font-weight:500;
max-width:none;
color:var(--muted);
}

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

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

.primary-button{
width:100%;
}

.cookie-banner-content{
flex-direction:column;
align-items:flex-start;
}
}

@media (max-width:420px){
.mobile-dock{
width:calc(100vw - 12px);
padding-left:7px;
padding-right:7px;
grid-template-columns:minmax(46px,.65fr) minmax(112px,1.65fr) repeat(3,minmax(46px,.65fr));
}

.mobile-dock-action svg{
width:25px;
height:25px;
}

.mobile-dock-action span{
font-size:.64rem;
}

.mobile-dock-brand{
font-size:1rem;
padding-left:6px;
padding-right:6px;
}

.mobile-nav-shell.is-collapsed.has-audio-control .mobile-dock{
width:214px;
grid-template-columns:44px 1fr;
}

.mobile-nav-links a{
font-size:.82rem;
}

.mobile-nav-legal a{
padding-left:7px;
padding-right:7px;
font-size:.68rem;
}
}

/* source: /static/css/layout-fixes.css */
/* ==========================================================
   LAYOUT REFINEMENTS

   Shared width and overflow corrections for mobile and desktop.
   ========================================================== */

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
}

.container{
    width:100%;
    max-width:1400px;
    margin-left:auto;
    margin-right:auto;
    padding-left:20px;
    padding-right:20px;
}

.site-header .container{
    width:100%;
    max-width:1400px;
}

main.container{
    width:100%;
}

.article-hero{
    width:100%;
    max-width:1120px;
    margin-left:auto;
    margin-right:auto;
}

.article-content{
    width:100%;
    max-width:1120px;
    margin-left:auto;
    margin-right:auto;
}

.footer-content{
    width:100%;
    max-width:1400px;
}

.cookie-banner,
.cookie-modal{
    max-width:100vw;
}

@media (max-width:768px){
    .container{
        width:100%;
        padding-left:16px;
        padding-right:16px;
    }

    .site-header .container{
        padding-left:16px;
        padding-right:16px;
    }

    .article-hero,
    .article-content{
        width:100%;
        max-width:none;
    }

    .article-hero{
        padding-left:0;
        padding-right:0;
    }

    .footer-content{
        width:100%;
        padding-left:16px;
        padding-right:16px;
    }
}
