/* CCM Rights Guide - Brutalist Cleveland Revival Design - MOBILE ENHANCED */

/* ===========================
   COLOR VARIABLES - BRUTALIST CLEVELAND PALETTE
   =========================== */
:root {
    --concrete-dark: #2B2B2B;
    --concrete-mid: #4A4A4A;
    --concrete-light: #8B8B8B;
    --concrete-bg: #4a4a4a;
    --steel-blue: #1E3A5F;
    --rust-orange: #D84315;
    --industrial-yellow: #FFC107;
    --industrial-yellow-light: #ffc10729;
    --warning-red: #B71C1C;
    --pure-white: #FFFFFF;
    --pure-black: #000000;
    --grid-lines: #000000;
}

/* ===========================
   RESET AND BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; */
}

html {
    scroll-behavior: smooth;
}

body {
   font-family: 'Archivo', sans-serif;
    line-height: 1.5;
    color: var(--pure-black);
    background: var(--concrete-bg);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
}

h1, h2, h3, h4 {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: var(--pure-black);
}

u {
    background: var(--industrial-yellow-light);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Mobile container adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* ===========================
   SKIP TO CONTENT
   =========================== */
.skip-to-content {
    position: absolute;
    top: -200px;
    left: 0;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10000;
    border: 5px solid var(--industrial-yellow);
}

.skip-to-content:focus {
    top: 0;
}

/* ===========================
   LANGUAGE SELECTOR - BRUTALIST STYLE
   =========================== */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    display: flex;
    gap: 0;
    background: var(--pure-black);
    border: 5px solid var(--pure-black);
    box-shadow: 8px 8px 0 var(--concrete-mid);
    transition: all 0.3s ease;
}

.language-selector.compact {
    top: 10px;
    left: 10px;
    border: 3px solid var(--pure-black);
    box-shadow: 4px 4px 0 var(--concrete-mid);
}

.lang-btn {
    background: var(--pure-white);
    border: none;
    border-right: 3px solid var(--pure-black);
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    color: var(--pure-black);
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 60px;
}

.language-selector.compact .lang-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    min-width: 50px;
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover {
    background: var(--industrial-yellow);
    transform: translate(-2px, -2px);
}

.lang-btn.active {
    background: var(--steel-blue);
    color: var(--industrial-yellow);
}

.lang-btn:focus {
    outline: 3px solid var(--industrial-yellow);
    outline-offset: 3px;
}

/* Mobile adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        top: 10px;
        left: 10px;
        border: 3px solid var(--pure-black);
        box-shadow: 4px 4px 0 var(--concrete-mid);
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
        min-width: 45px;
    }
    
    .language-selector.compact .lang-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 40px;
    }
}

/* ===========================
   MODE TOGGLE - EXPOSED STRUCTURE
   =========================== */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 0;
    background: var(--pure-black);
    border: 5px solid var(--pure-black);
    box-shadow: 8px 8px 0 var(--rust-orange);
    transition: all 0.3s ease;
}

.mode-toggle.compact {
    top: 10px;
    right: 10px;
    border: 3px solid var(--pure-black);
    box-shadow: 4px 4px 0 var(--rust-orange);
}

.mode-btn {
    background: var(--pure-white);
    border: none;
    border-right: 3px solid var(--pure-black);
    padding: 15px 25px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--pure-black);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mode-toggle.compact .mode-btn {
    padding: 10px 15px;
    font-size: 0.75rem;
    gap: 5px;
}

.mode-btn:last-child {
    border-right: none;
}

.mode-icon {
    font-size: 1.2rem;
    filter: grayscale(100%);
    transition: font-size 0.3s ease;
}

.mode-toggle.compact .mode-icon {
    font-size: 1rem;
}

.mode-btn:hover {
    background: var(--industrial-yellow);
    transform: translate(-2px, -2px);
}

.mode-btn.active {
    background: var(--rust-orange);
    color: var(--pure-white);
}

.mode-btn:focus {
    outline: 3px solid var(--industrial-yellow);
    outline-offset: 3px;
}

/* Mobile adjustments for mode toggle */
@media (max-width: 768px) {
    .mode-toggle {
        top: 10px;
        right: 10px;
        border: 3px solid var(--pure-black);
        box-shadow: 4px 4px 0 var(--rust-orange);
    }
    
    .mode-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .mode-toggle.compact .mode-btn {
        padding: 6px 10px;
        font-size: 0.65rem;
        gap: 3px;
    }
    
    .mode-icon {
        font-size: 1rem;
    }
    
    .mode-toggle.compact .mode-icon {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .mode-btn span:not(.mode-icon) {
        font-size: 0.65rem;
    }
}

/* ===========================
   MODE CONTENT
   =========================== */
.mode-content {
    display: none;
}

.mode-content.active {
    display: block;
}

/* ===========================
   HERO HEADER - SHRINKING STICKY HEADER
   =========================== */
.hero-header, .faq-hero-header, .trainings-hero-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--concrete-dark);
    border-bottom: 15px solid var(--pure-black);
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-bottom-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-header.shrink, .faq-hero-header.shrink, .trainings-hero-header.shrink {
    min-height: 70px;
    border-bottom-width: 5px;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--rust-orange);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.faq-hero-header .hero-background {
    background: var(--steel-blue);
}

.trainings-hero-header .hero-background {
    background: var(--steel-blue);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    padding: 40px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.hero-header.shrink .hero-content,
.faq-hero-header.shrink .hero-content,
.trainings-hero-header.shrink .hero-content {
    padding: 0 40px 0 200px;
    min-height: 70px;
}

.hero-content .container {
    width: 80%;
}

.hero-content h1 {
    color: var(--industrial-yellow);
    font-size: 5.5rem;
    margin-bottom: 30px;
    text-shadow: 5px 5px 0 rgba(0,0,0,0.3);
    line-height: 0.85;
    letter-spacing: -0.03em;
    padding-left: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-header.shrink .hero-content h1,
.faq-hero-header.shrink .hero-content h1,
.trainings-hero-header.shrink .hero-content h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
    padding-left: 0px;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    border-left: transparent;
    line-height: 1;
}

.hero-content p {
    color: var(--pure-white);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    opacity: 1;
    width:75%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    margin-left: 25px;
    border-left: 5px solid var(--pure-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 200px;
    overflow: hidden;
}

.hero-header.shrink .hero-content p,
.faq-hero-header.shrink .hero-content p,
.trainings-hero-header.shrink .hero-content p {
    opacity: 0;
    max-height: 0;
    padding: 0 25px;
    margin: 0;
}

/* Mobile hero adjustments */
@media (max-width: 768px) {
    .hero-header, .faq-hero-header, .trainings-hero-header {
        min-height: 350px;
        border-bottom-width: 8px;
    }
    
    .hero-header.shrink, .faq-hero-header.shrink, .trainings-hero-header.shrink {
        min-height: 60px;
        border-bottom-width: 4px;
    }
    
    .hero-content {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        border-left-width: 10px;
        padding-left: 15px;
        text-shadow: 3px 3px 0 rgba(0,0,0,0.3);
    }
    
    .hero-header.shrink .hero-content,
    .faq-hero-header.shrink .hero-content,
    .trainings-hero-header.shrink .hero-content {
        padding: 0 15px 0 15px;
        min-height: 60px;
    }
    
    .hero-header.shrink .hero-content h1,
    .faq-hero-header.shrink .hero-content h1,
    .trainings-hero-header.shrink .hero-content h1 {
        font-size: 1.1rem;
        border-left-width: 4px;
        padding-left: 10px;
    }

    .hero-content p {
        font-size: 0.8rem;
        padding: 12px 15px;
        margin-left: 15px;
        border-left-width: 4px;
        letter-spacing: 0.05em;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-header, .faq-hero-header, .trainings-hero-header {
        min-height: 280px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        border-left-width: 8px;
        padding-left: 12px;
    }
    
    .hero-header.shrink .hero-content h1,
    .faq-hero-header.shrink .hero-content h1,
    .trainings-hero-header.shrink .hero-content h1 {
        font-size: 0.9rem;
    }
    
    .hero-content p {
        font-size: 0.7rem;
        padding: 10px 12px;
    }
}

/* ===========================
   MAIN NAVIGATION - SEPARATE STICKY BELOW HEADER
   =========================== */
nav#main-nav {
    position: sticky;
    top: 0;
    z-index: 99;
    background: var(--pure-black);
    border-bottom: 5px solid var(--industrial-yellow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-header.shrink ~ .guide-layout nav#main-nav,
.hero-header.shrink + nav#main-nav {
    top: 75px;
}

nav#main-nav .container {
    padding: 0;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: var(--industrial-yellow);
    border: 3px solid var(--pure-black);
    padding: 15px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.hamburger {
    width: 30px;
    height: 4px;
    background: var(--pure-black);
    transition: all 0.2s ease;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
}

.nav-menu li {
    margin: 0;
    border-right: 2px solid var(--concrete-mid);
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--pure-white);
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-bottom: 5px solid transparent;
    position: relative;
}

body.header-shrunk .nav-menu a {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-bottom-width: 3px;
}

.nav-menu a:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border-bottom-color: var(--pure-black);
}

.nav-menu a.active {
    background: var(--rust-orange);
    color: var(--pure-white);
    border-bottom-color: var(--pure-white);
}

/* Mobile navigation */
@media (max-width: 768px) {
    nav#main-nav {
        border-bottom-width: 3px;
    }
    
    .hero-header.shrink ~ .guide-layout nav#main-nav,
    .hero-header.shrink + nav#main-nav {
        top: 64px;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 12px;
    }
    
    .hamburger {
        width: 25px;
        height: 3px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--pure-black);
        border-top: 4px solid var(--industrial-yellow);
        max-height: 70vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-right: none;
        border-bottom: 2px solid var(--concrete-mid);
    }

    .nav-menu a {
        padding: 15px 20px;
        font-size: 0.85rem;
        border-bottom-width: 0;
        border-left: 5px solid transparent;
    }
    
    .nav-menu a:hover {
        border-left-color: var(--industrial-yellow);
        border-bottom-color: transparent;
    }
    
    .nav-menu a.active {
        border-left-color: var(--rust-orange);
        border-bottom-color: transparent;
    }

    body.header-shrunk .nav-menu a {
        padding: 15px 20px;
        font-size: 0.85rem;
    }
}

/* ===========================
   READING PROGRESS BAR
   =========================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 8px;
    background: var(--industrial-yellow);
    z-index: 1002;
    border-bottom: 2px solid var(--pure-black);
}

@media (max-width: 768px) {
    .reading-progress {
        height: 5px;
    }
}

/* ===========================
   GUIDE LAYOUT - EXPOSED GRID
   =========================== */
.guide-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--pure-white);
}

@media (max-width: 1024px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   TABLE OF CONTENTS - STRUCTURAL SIDEBAR
   =========================== */
.toc-sidebar {
    position: relative;
    display: block;
    background: var(--concrete-dark);
    border-right: 8px solid var(--pure-black);
}

.toc-sticky {
    position: sticky;
    top: 630px;
    padding: 30px 25px;
    max-height: calc(100vh - 650px);
    overflow-y: auto;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.header-shrunk .toc-sticky {
    top: 60px;
    max-height: calc(100vh - 160px);
}

.toc-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--industrial-yellow);
    font-family: 'Archivo', sans-serif;
    border-bottom: 4px solid var(--industrial-yellow);
    padding-bottom: 10px;
    letter-spacing: 0.1em;
}

.toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin: 0;
}

.toc-nav a {
    display: block;
    padding: 12px 15px;
    color: var(--pure-white);
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    border-left: 4px solid transparent;
    transition: all 0.1s ease;
    margin-bottom: 2px;
    background: rgba(255,255,255,0.05);
}

.toc-nav a:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border-left-color: var(--pure-black);
    transform: translateX(5px);
}

.toc-nav a.active {
    background: var(--rust-orange);
    color: var(--pure-white);
    border-left-color: var(--pure-white);
}

/* Hide TOC on tablet and mobile */
@media (max-width: 1024px) {
    .toc-sidebar {
        display: none;
    }
}

/* =============================================
   TOC — Collapsible sub-items
   Sub-items (.toc-child) are hidden by default.
   They become visible only when their parent
   section is active (.toc-child-visible class
   is toggled by updateTOCActiveState() in main.js).
   ============================================= */

/* Hide all child rows by default */
.toc-nav .toc-child {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  /* Smooth open/close */
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

/* Show children when their parent is active */
.toc-nav .toc-child.toc-child-visible {
  max-height: 6rem;   /* tall enough for any wrapped label */
  opacity: 1;
}

/* Indent sub-items visually */
.toc-nav .toc-child a.toc-sub {
  padding-left: 1.25rem;
  font-size: 0.675em;
  opacity: 0.85;
  text-transform:none;
  font-weight: normal;
  
}

/* Active link highlight — works for both parent and child links */
.toc-nav a.active {
  font-weight: 600;
  color: var(--color-primary, #1a6b3c); /* adjust to your brand colour */
}

/* Active parent — subtle left border accent */
.toc-nav .toc-parent.toc-parent-active > a {
  border-left: 3px solid var(--color-primary, #1a6b3c);
  padding-left: calc(1rem - 3px); /* compensate for border width */
}


/* ===========================
   FAQ CONTROLS 
   =========================== */

.faq-controls {
    background: var(--pure-white);
    padding: 5px 0;
    border-bottom: 3px solid var(--pure-black);
}

.faq-controls.sticky-search {
    position: sticky;
    z-index: 99;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.header-shrunk .faq-controls.sticky-search {
    top: 75px;
}

/* New Grid Layout for Better Organization */
.faq-controls .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

/* Search Box - Full Width Row */
.search-box {
    position: relative;
    width: 80%;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 12px 200px 12px 45px;
    font-size: 0.9rem;
    font-family: 'Archivo', sans-serif;
    font-weight: bold;
    border: 3px solid var(--pure-black);
    background: var(--pure-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 2px 2px 0 var(--concrete-mid);
}

.search-box input:focus {
    outline: none;
    background: var(--industrial-yellow);
    box-shadow: 4px 4px 0 var(--pure-black);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pure-black);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-icon svg {
    width: 20px;
    height: 20px;
}

/* Search Navigation - Positioned Inside Search Box */
.search-navigation {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    border: 2px solid var(--industrial-yellow);
    z-index: 10;
}

.search-counter {
    font-family: 'Archivo', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-nav-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

.search-nav-btn,
.search-navigation .clear-search-nav {
    background: var(--industrial-yellow);
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s ease;
    color: var(--pure-black);
    padding: 0;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1;
}

.search-nav-btn svg {
    width: 14px;
    height: 14px;
}

.search-nav-btn:hover:not(:disabled),
.search-navigation .clear-search-nav:hover {
    background: var(--rust-orange);
    color: var(--pure-white);
    transform: scale(1.1);
}

.search-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--pure-black);
    color: var(--industrial-yellow);
    border: 2px solid var(--industrial-yellow);
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.1s ease;
    line-height: 1;
}

.clear-search:hover {
    background: var(--rust-orange);
    color: var(--pure-white);
    transform: translateY(-50%) scale(1.1);
}

.search-nav-separator {
    width: 1px;
    height: 24px;
    background: var(--industrial-yellow);
    opacity: 0.5;
    margin: 0 5px;
}

/* Filter and Action Buttons - Second Row */
.filter-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--pure-white);
    border: 3px solid var(--pure-black);
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--pure-black);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--concrete-mid);
}

.filter-btn:hover {
    background: var(--industrial-yellow);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--concrete-mid);
}

.filter-btn.active {
    background: var(--steel-blue);
    color: var(--industrial-yellow);
    border-color: var(--steel-blue);
    box-shadow: 3px 3px 0 var(--pure-black);
}

.faq-actions {
    display: flex;
    gap: 8px;
}

.faq-action-btn {
    background: var(--concrete-dark);
    border: 3px solid var(--pure-black);
    padding: 8px 16px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--pure-white);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.1s ease;
    white-space: nowrap;
    box-shadow: 2px 2px 0 var(--pure-black);
}

.faq-action-btn:hover {
    background: var(--rust-orange);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--pure-black);
}

/* Mobile Adjustments for FAQ Controls */
@media (max-width: 768px) {
    .faq-controls {
        padding: 12px 0;
    }
    
    body.header-shrunk .faq-controls.sticky-search {
        top: 64px;
    }
    
    .faq-controls .container {
        gap: 10px;
    }
    
    .search-box input {
        padding: 10px 170px 10px 38px;
        font-size: 0.75rem;
        border-width: 2px;
    }
    
    .search-icon {
        left: 10px;
    }
    
    .search-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .search-counter {
        font-size: 0.65rem;
    }
    
    .search-nav-btn,
    .search-navigation .clear-search-nav {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    .search-nav-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .clear-search {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
    
    .filter-buttons-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-btn {
        font-size: 0.65rem;
        padding: 6px 10px;
        flex: 1;
        min-width: calc(33.333% - 6px);
        border-width: 2px;
    }
    
    .faq-actions {
        width: 100%;
    }
    
    .faq-action-btn {
        flex: 1;
        font-size: 0.65rem;
        padding: 6px 10px;
        text-align: center;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .search-box input {
        padding: 8px 150px 8px 35px;
        font-size: 0.7rem;
    }
    
    .filter-btn {
        font-size: 0.6rem;
        padding: 5px 8px;
        min-width: calc(50% - 4px);
    }
    
    .faq-action-btn {
        font-size: 0.6rem;
        padding: 5px 8px;
    }
}

/* ===========================
   MAIN CONTENT - RAW CONCRETE AESTHETIC
   =========================== */
main {
    background: var(--pure-white);
    padding: 50px 40px;
    border-left: 3px solid var(--grid-lines);
}

@media (max-width: 768px) {
    main {
        margin: 0; 
        width: 100vw;
        position: relative; 
        left: 50%; 
        right: 50%; 
        transform: translateX(-50%); 
    }
}

.faq-main {
    padding: 30px 0 60px;
}

section {
    margin-bottom: 40px;
    scroll-margin-top: 640px;
    border-bottom: 3px solid var(--grid-lines);
    padding-bottom: 20px;
}

body.header-shrunk section {
    scroll-margin-top: 150px;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 8px solid var(--pure-black);
    display: block;
    background: var(--industrial-yellow);
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
    box-shadow: 8px 8px 0 var(--concrete-mid);
}

h3 {
    font-size: 1.6rem;
    color: var(--pure-white);
    border-left: 8px solid var(--rust-orange);
    background: var(--steel-blue);
    padding: 25px 20px;
    margin-bottom: 20px;
    margin-top: 40px;
    margin-left: -20px;
}

h4 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: var(--pure-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid var(--pure-black);
    padding-bottom: 8px;
}

p {
    margin-bottom: 20px;
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Mobile content adjustments */
@media (max-width: 1024px) {
    main {
        border-left: none;
    }
}

@media (max-width: 768px) {
    main {
        padding: 30px 20px;
    }
    
    .faq-main {
        padding: 20px 0 40px;
    }
    
    section {
        scroll-margin-top: 420px;
        margin-bottom: 30px;
    }
    
    body.header-shrunk section {
        scroll-margin-top: 130px;
    }

    h2 {
        font-size: 1.8rem;
        padding: 15px;
        margin-left: -15px;
        margin-right: -15px;
        box-shadow: 5px 5px 0 var(--concrete-mid);
        border-bottom-width: 5px;
    }

    h3 {
        font-size: 1.3rem;
        padding: 15px;
        margin-left: -15px;
        border-left-width: 5px;
    }
    
    h4 {
        font-size: 1.1rem;
        border-bottom-width: 2px;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 15px;
    }
    
    h2 {
        font-size: 1.5rem;
        padding: 12px;
        margin-left: -12px;
        margin-right: -12px;
        box-shadow: 4px 4px 0 var(--concrete-mid);
    }
    
    h3 {
        font-size: 1.1rem;
        padding: 12px;
        margin-left: -12px;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
}

.in-text-image {
    width: 100%;
    position: relative;
    margin-top: 10px;
}

.image-subtitle {
    margin-top: 0;
    margin-bottom: 30px;
    color: rgb(90, 90, 90);
    font-size: 0.6rem;
    font-weight: 100;
}

/* ===========================
   INSET BOXES - STRUCTURAL ELEMENTS
   =========================== */

.docs-ref {
    border-top: 3px solid var(--grid-lines);
    padding-top: 20px;
}

.docs-ref strong {
    font-weight: 600;
}

.deeper-look {
    background: var(--steel-blue);
    color: var(--pure-white);
    border: 5px solid var(--pure-black);
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 10px 10px 0 var(--pure-black);
    position: relative;
}

.deeper-look::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 10px;
    background: var(--industrial-yellow);
}

.deeper-look h4 {
    color: var(--industrial-yellow);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--industrial-yellow);
    padding-bottom: 10px;
}

.deeper-look p:last-child {
    margin-bottom: 0;
}

.deeper-look a {
    color: var(--industrial-yellow);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.deeper-look a:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    text-decoration: none;
}

/* Mobile deeper-look adjustments */
@media (max-width: 768px) {
    .deeper-look {
        border-width: 3px;
        padding: 20px;
        margin: 20px 0;
        box-shadow: 6px 6px 0 var(--pure-black);
    }
    
    .deeper-look::before {
        height: 8px;
    }
    
    .deeper-look h4 {
        font-size: 1.1rem;
        border-bottom-width: 2px;
    }
    
    .deeper-look p {
        font-size: 0.95rem;
    }
}

.example {
    background: var(--pure-white);
    border: 5px solid var(--rust-orange);
    padding: 25px 30px;
    margin: 30px 0;
    box-shadow: 8px 8px 0 var(--rust-orange);
    position: relative;
}

.example::after {
    content: 'EXAMPLE';
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--rust-orange);
    color: var(--pure-white);
    padding: 5px 15px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.example h4 {
    color: var(--rust-orange);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 3px solid var(--rust-orange);
}

.example h4::before {
    content: '→ ';
}

/* Mobile example adjustments */
@media (max-width: 768px) {
    .example {
        border-width: 3px;
        padding: 20px;
        margin: 20px 0;
        box-shadow: 5px 5px 0 var(--rust-orange);
    }
    
    .example::after {
        font-size: 0.65rem;
        padding: 4px 12px;
        top: -12px;
        right: 15px;
    }
    
    .example h4 {
        font-size: 1.1rem;
        border-bottom-width: 2px;
    }
}

.rights-highlight {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    padding: 30px;
    margin: 30px 0;
    border: 8px solid var(--pure-black);
    box-shadow: 12px 12px 0 var(--pure-black);
    position: relative;
}

.rights-highlight::before {
    content: '!';
    position: absolute;
    top: -25px;
    left: 30px;
    background: var(--warning-red);
    color: var(--pure-white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    border: 5px solid var(--pure-black);
}

.rights-highlight h4 {
    color: var(--pure-black);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 4px solid var(--pure-black);
}

.rights-highlight ul {
    margin: 0;
    padding-left: 25px;
}

.rights-highlight li {
    margin-bottom: 12px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
}

.rights-highlight a {
    color: var(--pure-black);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Mobile rights-highlight adjustments */
@media (max-width: 768px) {
    .rights-highlight {
        border-width: 5px;
        padding: 25px 20px;
        margin: 20px 0;
        box-shadow: 8px 8px 0 var(--pure-black);
    }
    
    .rights-highlight::before {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        top: -20px;
        left: 20px;
        border-width: 3px;
    }
    
    .rights-highlight h4 {
        font-size: 1.2rem;
        border-bottom-width: 3px;
    }
    
    .rights-highlight li {
        font-size: 0.85rem;
    }
}

/* ===========================
   FAQ ITEMS - IMPROVED DESIGN WITH PREVIEW
   =========================== */

/* FAQ Item Base */
.faq-item {
    background: var(--pure-white);
    border: 3px solid var(--pure-black);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0 var(--concrete-mid);
}

.faq-item.search-result-active {
    border-color: var(--rust-orange);
    box-shadow: 6px 6px 0 var(--rust-orange);
}

.faq-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--concrete-mid);
}

/* FAQ Question - Now Always Visible */
.faq-question {
    background: var(--concrete-dark);
    color: var(--industrial-yellow);
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.1s ease;
    letter-spacing: 0.02em;
    gap: 15px;
}

.faq-question:hover {
    background: var(--pure-black);
}

.faq-question-text {
    flex: 1;
}

.faq-question::after {
    content: '▼';
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question {
    background: var(--warning-red);
    color: var(--pure-white);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

/* FAQ Answer - With Preview */
.faq-answer {
    background: var(--pure-white);
    border-top: 2px solid var(--concrete-mid);
    transition: all 0.3s ease;
}

/* Closed State - Show Preview */
.faq-item:not(.active) .faq-answer {
    padding: 12px 20px;
    max-height: 60px;
    overflow: hidden;
    position: relative;
}

.faq-item:not(.active) .faq-answer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--pure-white));
    pointer-events: none;
}

.faq-answer-content {
    padding-bottom: 20px;
    font-weight: 100;
}

.faq-item:not(.active) .faq-answer-content {
    display: -webkit-box;
    --webkit-line-clamp: 2;
    --webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.faq-item:not(.active) .faq-answer-content::after {
    content: '...';
    position: absolute;
    right: 0;
    bottom: 0;
    background: var(--pure-white);
    padding-left: 20px;
}

/* Open State - Show Full Content */
.faq-item.active .faq-answer {
    padding: 15px;
    max-height: none;
    overflow: visible;
}

.faq-item.active .faq-answer::after {
    display: none;
}

.faq-item.active .faq-answer-content {
    display: block;
    --webkit-line-clamp: unset;
    --webkit-box-orient: unset;
    overflow: visible;
}

.faq-item.active .faq-answer-content::after {
    display: none;
}

/* Answer Content Styling */
.faq-answer-content p {
    margin-bottom: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 10px 0 10px 25px;
}

.faq-answer-content li {
    margin-bottom: 8px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-answer-content a {
    color: var(--steel-blue);
    font-weight: bold;
    text-decoration: underline;
}

.faq-answer-content a:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
}

/* FAQ Actions Bar */
.faq-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 7px;
    padding-bottom: 7px;
    padding-left: 15px;
    border-top: 2px solid var(--concrete-bg);
    gap: 15px;
    flex-wrap: wrap;
}

.faq-item:not(.active) .faq-actions {
    display: none;
}

/* Feedback Section */
.faq-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.feedback-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--concrete-mid);
    letter-spacing: 0.05em;
}

.feedback-btn {
    background: var(--pure-white);
    border: 2px solid var(--concrete-mid);
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.1s ease;
    color: var(--concrete-mid);
}

.feedback-btn:hover:not(:disabled) {
    border-color: var(--pure-black);
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 var(--pure-black);
}

.feedback-btn svg {
    width: 16px;
    height: 16px;
}

.feedback-positive:hover:not(:disabled),
.feedback-positive.submitted {
    background: var(--industrial-yellow);
    border-color: var(--industrial-yellow);
    color: var(--pure-black);
}

.feedback-negative:hover:not(:disabled),
.feedback-negative.submitted {
    background: var(--warning-red);
    border-color: var(--warning-red);
    color: var(--pure-white);
}

.feedback-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.feedback-count {
    font-size: 0.7rem;
}

.feedback-thanks {
    color: var(--steel-blue);
    font-size: 0.75rem;
    font-weight: bold;
    animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Share Button */
.share-btn {
    background: var(--steel-blue);
    border: 2px solid var(--steel-blue);
    color: var(--pure-white);
    padding: 6px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.1s ease;
    letter-spacing: 0.05em;
}

.share-btn:hover {
    background: var(--pure-black);
    border-color: var(--pure-black);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--industrial-yellow);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    opacity: 1;
}

.share-modal.closing {
    opacity: 0;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.share-modal-content {
    position: relative;
    background: var(--pure-white);
    border: 5px solid var(--pure-black);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 12px 12px 0 var(--rust-orange);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--pure-black);
    border: none;
    color: var(--industrial-yellow);
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    transition: all 0.1s ease;
}

.share-modal-close:hover {
    background: var(--warning-red);
    color: var(--pure-white);
}

.share-modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: none;
    padding: 0;
    border: none;
    color: var(--pure-black);
}

.share-preview {
    padding: 20px;
    margin-bottom: 25px;
    border: 5px solid var(--rust-orange);
}

.share-preview strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--pure-black);
}

.share-preview p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--concrete-dark);
    margin: 0;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    background: var(--pure-white);
    border: 3px solid var(--pure-black);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0 var(--pure-black);
}

.share-option:hover:not(:disabled) {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pure-black);
}

.share-option:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.whatsapp-share {
    color: #25D366;
    border-color: #25D366;
}

.whatsapp-share:hover {
    background: #25D366;
    color: var(--pure-white);
}

.whatsapp-share svg {
    width: 24px;
    height: 24px;
}

.copy-share {
    color: var(--steel-blue);
    border-color: var(--steel-blue);
}

.copy-share:hover:not(:disabled) {
    background: var(--steel-blue);
    color: var(--pure-white);
}

.copy-share svg {
    width: 24px;
    height: 24px;
}

/* FAQ Category Headers */
.faq-category-header {
    background: var(--steel-blue);
    color: var(--industrial-yellow);
    padding: 20px 25px;
    margin: 35px 0 15px;
    font-family: 'Archivo', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 5px solid var(--pure-black);
    box-shadow: 8px 8px 0 var(--pure-black);
    position: relative;
}

.faq-category-header::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 8px;
    background: var(--industrial-yellow);
}

.faq-category-header:first-child {
    margin-top: 0;
}

/* Search Highlighting */
mark {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    padding: 2px 4px;
    font-weight: 900;
    border: 1px solid var(--pure-black);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-category-header {
        padding: 15px 18px;
        font-size: 1rem;
        border-width: 3px;
        margin: 25px 0 12px;
        box-shadow: 5px 5px 0 var(--pure-black);
    }
    
    .faq-category-header::before {
        height: 6px;
    }
    .faq-item {
        border-width: 2px;
        margin-bottom: 8px;
        box-shadow: 3px 3px 0 var(--concrete-mid);
    }
    
    .faq-question {
        padding: 10px 15px;
        font-size: 0.75rem;
        gap: 10px;
    }
    
    .faq-question::after {
        font-size: 1rem;
    }
    
    .faq-item:not(.active) .faq-answer {
        padding: 10px 15px;
        max-height: 55px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
    
    .faq-answer-content p,
    .faq-answer-content li {
        font-size: 0.9rem;
    }
    
    .faq-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .faq-feedback {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .feedback-label {
        font-size: 0.7rem;
    }
    
    .feedback-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 15px;
        font-size: 0.7rem;
    }
    
    .share-modal-content {
        padding: 30px 20px;
        width: 95%;
        box-shadow: 8px 8px 0 var(--rust-orange);
    } 
    
    .share-modal-content h3 {
        font-size: 1.3rem;
    }
    
    .share-preview {
        padding: 15px;
    }
    
    .share-option {
        padding: 12px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.7rem;
    }
    
    .share-modal-content {
        padding: 25px 15px;
    }
    
    .share-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* FAQ Container */
.faq-container {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .faq-container {
        margin-top: 20px;
    }
}

/* ===========================
   LISTS AND LINKS
   =========================== */
ul, ol {
    margin: 20px 0 20px 45px;
}

li {
    margin-bottom: 12px;
    font-family: 'Archivo', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 100;
}

a {
    color: var(--steel-blue);
    font-weight: bold;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.1s ease;
}

a:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    text-decoration: none;
}

@media (max-width: 768px) {
    ul, ol {
        margin: 15px 0 15px 25px;
    }
    
    li {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* ===========================
   FOOTER - FOUNDATION
   =========================== */
footer {
    background: var(--concrete-dark);
    color: var(--pure-white);
    padding: 40px 30px;
    text-align: left;
    border-top: 10px solid var(--pure-black);
    font-family: 'Archivo', sans-serif;
}

footer p {
    opacity: 1;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

footer a {
    color: var(--industrial-yellow);
}

@media (max-width: 768px) {
    footer {
        padding: 30px 20px;
        border-top-width: 6px;
    }
    
    footer p {
        font-size: 0.75rem;
    }
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    width: 60px;
    height: 60px;
    border: 4px solid var(--industrial-yellow);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 6px 6px 0 var(--rust-orange);
    transition: all 0.1s ease;
    z-index: 998;
    font-family: 'Archivo', sans-serif;
}

.back-to-top:hover {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--rust-orange);
}

.back-to-top.visible {
    display: flex;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-width: 3px;
        box-shadow: 4px 4px 0 var(--rust-orange);
    }
    
    .back-to-top:hover {
        box-shadow: 5px 5px 0 var(--rust-orange);
    }
}

/* ===========================
   TRAININGS MODE - BRUTALIST LEARNING
   =========================== */

.trainings-main {
    padding: 60px 0;
    background: var(--concrete-bg);
}

.trainings-intro {
    text-align: left;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--pure-white);
    border: 6px solid var(--pure-black);
    box-shadow: 12px 12px 0 var(--pure-black);
}

.trainings-intro h2 {
    font-size: 2.8rem;
    background: var(--industrial-yellow);
    margin: -40px -40px 30px -40px;
    padding: 30px 40px;
}

.trainings-intro p {
    font-size: 1rem;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Mobile trainings adjustments */
@media (max-width: 768px) {
    .trainings-main {
        padding: 40px 0;
    }
    
    .trainings-intro {
        padding: 25px 20px;
        margin-bottom: 40px;
        border-width: 4px;
        box-shadow: 8px 8px 0 var(--pure-black);
    }
    
    .trainings-intro h2 {
        font-size: 2rem;
        margin: -25px -20px 20px -20px;
        padding: 20px;
    }
    
    .trainings-intro p {
        font-size: 0.95rem;
    }
    
    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
}

/* Scenario Cards */
.scenario-card {
    background: var(--pure-white);
    border: 6px solid var(--pure-black);
    padding: 30px;
    transition: all 0.1s ease;
    cursor: pointer;
    box-shadow: 8px 8px 0 var(--concrete-dark);
    position: relative;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    height: 12px;
    background: var(--rust-orange);
}

.scenario-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--concrete-dark);
}

.scenario-card-request {
    border-style: dashed;
    border-width: 4px;
    background: var(--concrete-bg);
}

.scenario-card-request::before {
    background: var(--concrete-mid);
}

.scenario-number {
    display: inline-block;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Archivo', sans-serif;
    border: 4px solid var(--industrial-yellow);
}

.scenario-number-request {
    background: transparent;
    color: var(--concrete-mid);
    border-color: var(--concrete-mid);
}

.scenario-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
}

.scenario-category {
    display: inline-block;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    padding: 6px 15px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Archivo', sans-serif;
}

.scenario-description {
    font-family: 'Archivo', sans-serif;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.scenario-challenge {
    background: var(--warning-red);
    color: var(--pure-white);
    border: none;
    padding: 15px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-left: 6px solid var(--pure-black);
}

.start-scenario,
.request-scenario-btn {
    display: inline-block;
    background: var(--rust-orange);
    color: var(--pure-white);
    padding: 15px 30px;
    border: 4px solid var(--pure-black);
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.1s ease;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--pure-black);
}

.start-scenario:hover,
.request-scenario-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pure-black);
}

/* Mobile scenario card adjustments */
@media (max-width: 768px) {
    .scenario-card {
        border-width: 4px;
        padding: 20px;
        box-shadow: 6px 6px 0 var(--concrete-dark);
    }
    
    .scenario-card::before {
        height: 10px;
    }
    
    .scenario-card:hover {
        transform: translate(-2px, -2px);
        box-shadow: 8px 8px 0 var(--concrete-dark);
    }
    
    .scenario-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.5rem;
        border-width: 3px;
    }
    
    .scenario-title {
        font-size: 1.3rem;
    }
    
    .scenario-category {
        font-size: 0.65rem;
        padding: 5px 12px;
    }
    
    .scenario-description {
        font-size: 0.9rem;
    }
    
    .scenario-challenge {
        padding: 12px;
        font-size: 0.8rem;
        border-left-width: 4px;
    }
    
    .start-scenario,
    .request-scenario-btn {
        padding: 12px 25px;
        font-size: 0.75rem;
        border-width: 3px;
    }
}

/* Scenario Player */
.scenario-player-header {
    background: var(--pure-white);
    border-bottom: 8px solid var(--pure-black);
    padding: 40px;
    margin-bottom: 0;
}

.back-to-overview {
    background: var(--concrete-dark);
    border: 3px solid var(--pure-black);
    color: var(--pure-white);
    padding: 12px 24px;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.1s ease;
    margin-bottom: 25px;
    box-shadow: 4px 4px 0 var(--pure-black);
}

.back-to-overview:hover {
    background: var(--pure-black);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pure-black);
}

.scenario-badge {
    display: inline-block;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    padding: 8px 20px;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Archivo', sans-serif;
    border: 3px solid var(--industrial-yellow);
}

.scenario-player-title h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    border-left: 12px solid var(--rust-orange);
    padding-left: 25px;
}

.scenario-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile scenario player adjustments */
@media (max-width: 768px) {
    .scenario-player-header {
        padding: 25px 20px;
        border-bottom-width: 5px;
    }
    
    .back-to-overview {
        padding: 10px 20px;
        font-size: 0.7rem;
        margin-bottom: 20px;
    }
    
    .scenario-badge {
        padding: 6px 15px;
        font-size: 0.7rem;
    }
    
    .scenario-player-title h1 {
        font-size: 2rem;
        border-left-width: 8px;
        padding-left: 15px;
    }
    
    .scenario-subtitle {
        font-size: 0.85rem;
    }
}

/* Progress Tracker */
.scenario-progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0;
    background: var(--pure-black);
    border-bottom: 6px solid var(--industrial-yellow);
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--concrete-light);
    border-right: 2px solid var(--concrete-mid);
    background: var(--concrete-dark);
}

.progress-step:last-child {
    border-right: none;
}

.progress-step.active {
    color: var(--industrial-yellow);
    background: var(--steel-blue);
}

.progress-step.completed {
    color: var(--pure-white);
    background: var(--rust-orange);
}

@media (max-width: 768px) {
    .scenario-progress-tracker {
        border-bottom-width: 4px;
        flex-wrap: wrap;
    }
    
    .progress-step {
        padding: 10px 5px;
        font-size: 0.6rem;
        min-width: 33.333%;
        border-right-width: 1px;
    }
}

/* Game Container */
.scenario-game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
    background: var(--concrete-bg);
}

@media (max-width: 768px) {
    .scenario-game-container {
        grid-template-columns: 1fr;
    }
}

/* Case File */
.scenario-case-file {
    background: var(--pure-white);
    border: 6px solid var(--pure-black);
    border-right: 3px solid var(--pure-black);
    padding: 35px;
    position: relative;
}

.scenario-case-file::before {
    content: 'CLASSIFIED';
    position: absolute;
    top: -18px;
    right: 30px;
    background: var(--warning-red);
    color: var(--pure-white);
    padding: 6px 20px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    font-family: 'Archivo', sans-serif;
    border: 3px solid var(--pure-black);
}

.case-header {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--pure-black);
    text-transform: uppercase;
}

.info-section {
    margin-bottom: 25px;
}

.info-label {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    padding: 5px 10px;
    display: inline-block;
}

.info-value {
    font-family: 'Archivo', sans-serif;
    color: var(--pure-black);
    padding-left: 15px;
    border-left: 5px solid var(--rust-orange);
    margin-top: 8px;
    font-weight: bold;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.metric-box {
    background: var(--industrial-yellow);
    border: 4px solid var(--pure-black);
    padding: 20px;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Archivo', sans-serif;
    color: var(--pure-black);
    line-height: 1;
}

.metric-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 8px;
}

.alert-box {
    background: var(--warning-red);
    color: var(--pure-white);
    border: 5px solid var(--pure-black);
    padding: 20px;
    margin-top: 20px;
}

.alert-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.alert-box ul {
    margin-left: 20px;
    margin-top: 10px;
}

/* Mobile case file adjustments */
@media (max-width: 768px) {
    .scenario-case-file {
        border-width: 4px;
        border-right-width: 4px;
        padding: 25px 20px;
    }
    
    .scenario-case-file::before {
        font-size: 0.6rem;
        padding: 5px 15px;
        top: -15px;
        right: 20px;
    }
    
    .case-header {
        font-size: 1.3rem;
        border-bottom-width: 3px;
    }
    
    .info-label {
        font-size: 0.7rem;
    }
    
    .info-value {
        font-size: 0.9rem;
        border-left-width: 4px;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .metric-box {
        border-width: 3px;
        padding: 15px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .alert-box {
        border-width: 3px;
        padding: 15px;
    }
    
    .alert-title {
        font-size: 0.9rem;
    }
}

/* Decision Panel */
.scenario-decision-panel {
    background: var(--concrete-dark);
    border: 6px solid var(--pure-black);
    border-left: 3px solid var(--pure-black);
    padding: 35px;
    color: var(--pure-white);
}

.decision-header {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--industrial-yellow);
    text-transform: uppercase;
    color: var(--industrial-yellow);
}

.phase-indicator {
    background: var(--steel-blue);
    color: var(--industrial-yellow);
    padding: 10px 20px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    text-align: center;
    border: 3px solid var(--industrial-yellow);
}

.decision-prompt {
    margin-bottom: 25px;
    line-height: 1.7;
    font-family: 'Archivo', sans-serif;
    font-weight: 500;
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-left: 5px solid var(--industrial-yellow);
}

.decision-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.decision-option {
    background: var(--pure-white);
    border: 4px solid var(--concrete-mid);
    padding: 20px;
    cursor: pointer;
    transition: all 0.1s ease;
    color: var(--pure-black);
}

.decision-option:hover:not(.locked) {
    border-color: var(--industrial-yellow);
    transform: translateX(5px);
    box-shadow: 6px 6px 0 var(--industrial-yellow);
}

.decision-option.selected {
    border-color: var(--rust-orange);
    background: var(--industrial-yellow);
    box-shadow: 6px 6px 0 var(--rust-orange);
}

.decision-option.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.option-letter {
    display: inline-block;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    margin-right: 15px;
    font-size: 1.2rem;
}

.option-text {
    display: inline;
    font-family: 'Archivo', sans-serif;
    line-height: 1.6;
    font-weight: 500;
}

/* Mobile decision panel adjustments */
@media (max-width: 768px) {
    .scenario-decision-panel {
        border-width: 4px;
        border-left-width: 4px;
        padding: 25px 20px;
    }
    
    .decision-header {
        font-size: 1.3rem;
        border-bottom-width: 3px;
    }
    
    .phase-indicator {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    .decision-prompt {
        padding: 15px;
        border-left-width: 4px;
        font-size: 0.95rem;
    }
    
    .decision-options {
        gap: 12px;
    }
    
    .decision-option {
        border-width: 3px;
        padding: 15px;
    }
    
    .option-letter {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .option-text {
        font-size: 0.9rem;
    }
}

/* Consequence Panel */
.scenario-consequence-panel {
    background: var(--pure-white);
    border: 6px solid var(--pure-black);
    padding: 40px;
    margin-top: 0;
    display: none;
}

.scenario-consequence-panel.active {
    display: block;
}

.consequence-header {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: var(--industrial-yellow);
    padding: 20px;
    margin: -40px -40px 30px -40px;
    border-bottom: 6px solid var(--pure-black);
}

.section-subheading {
    font-size: 1.4rem;
    margin: 35px 0 20px 0;
    text-transform: uppercase;
    border-left: 8px solid var(--rust-orange);
    padding-left: 20px;
    background: var(--concrete-bg);
    padding: 15px 20px;
    margin-left: -20px;
    margin-right: -20px;
}

.narrative-box {
    background: var(--steel-blue);
    color: var(--pure-white);
    border-left: 8px solid var(--industrial-yellow);
    padding: 25px;
    margin: 25px 0;
    font-family: 'Archivo', sans-serif;
    line-height: 1.8;
    font-weight: 500;
}

/* Mobile consequence panel adjustments */
@media (max-width: 768px) {
    .scenario-consequence-panel {
        border-width: 4px;
        padding: 25px 20px;
    }
    
    .consequence-header {
        font-size: 1.6rem;
        padding: 15px;
        margin: -25px -20px 20px -20px;
        border-bottom-width: 4px;
    }
    
    .section-subheading {
        font-size: 1.2rem;
        border-left-width: 5px;
        padding: 12px 15px;
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .narrative-box {
        border-left-width: 5px;
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* Impact Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.impact-card {
    background: var(--pure-white);
    border: 4px solid var(--pure-black);
    padding: 25px;
    text-align: center;
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: grayscale(100%);
}

.impact-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.impact-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Archivo', sans-serif;
}

.impact-value.positive { 
    color: var(--pure-black);
    background: var(--industrial-yellow);
    padding: 5px;
}
.impact-value.negative { 
    color: var(--pure-white);
    background: var(--warning-red);
    padding: 5px;
}
.impact-value.neutral { 
    color: var(--pure-black);
    background: var(--concrete-bg);
    padding: 5px;
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-card {
        border-width: 3px;
        padding: 20px;
    }
    
    .impact-icon {
        font-size: 2rem;
    }
    
    .impact-value {
        font-size: 1.5rem;
    }
}

/* Learning Box */
.learning-box {
    background: var(--industrial-yellow);
    border: 5px solid var(--pure-black);
    padding: 25px;
    margin: 25px 0;
    box-shadow: 8px 8px 0 var(--pure-black);
}

.learning-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    color: var(--pure-black);
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .learning-box {
        border-width: 3px;
        padding: 20px;
        box-shadow: 5px 5px 0 var(--pure-black);
    }
    
    .learning-title {
        font-size: 1.1rem;
    }
}

/* Real World Box */
.realworld-box {
    background: var(--steel-blue);
    color: var(--pure-white);
    border-left: 10px solid var(--industrial-yellow);
    padding: 25px;
    margin-top: 25px;
    font-family: 'Archivo', sans-serif;
}

@media (max-width: 768px) {
    .realworld-box {
        border-left-width: 6px;
        padding: 20px;
        font-size: 0.95rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: 4px solid var(--pure-black);
    font-size: 0.85rem;
    transition: all 0.1s ease;
}

.btn-primary {
    background: var(--rust-orange);
    color: var(--pure-white);
    box-shadow: 6px 6px 0 var(--pure-black);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--pure-black);
}

.btn-secondary {
    background: var(--pure-white);
    color: var(--pure-black);
    box-shadow: 6px 6px 0 var(--concrete-mid);
}

.btn-secondary:hover {
    background: var(--industrial-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--concrete-mid);
}

.confirm-decision-btn {
    margin-top: 25px;
}

.outcome-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 25px;
        font-size: 0.75rem;
        border-width: 3px;
    }
    
    .btn-primary {
        box-shadow: 4px 4px 0 var(--pure-black);
    }
    
    .btn-primary:hover {
        box-shadow: 5px 5px 0 var(--pure-black);
    }
    
    .btn-secondary {
        box-shadow: 4px 4px 0 var(--concrete-mid);
    }
    
    .btn-secondary:hover {
        box-shadow: 5px 5px 0 var(--concrete-mid);
    }
    
    .outcome-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
    .language-selector,
    .mode-toggle,
    .reading-progress,
    nav#main-nav,
    .faq-controls,
    .back-to-top,
    .toc-sidebar {
        display: none !important;
    }

    body {
        background: white;
    }

    .guide-layout {
        grid-template-columns: 1fr;
    }

    main {
        box-shadow: none;
        margin: 0;
        border: none;
    }

    section {
        page-break-inside: avoid;
    }
}



/* Hero Subtitle with Mode Links */
.hero-subtitle-modes {
    color: var(--pure-white);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    max-width: 700px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    margin-left: 25px;
    border-left: 5px solid var(--pure-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 200px;
    overflow: hidden;
}

.hero-header.shrink .hero-subtitle-modes {
    opacity: 0;
    max-height: 0;
    padding: 0 25px;
    margin: 0;
}

.mode-link {
    color: var(--pure-white);
    font-weight: 900;
    text-decoration: none;
    padding: 2px 6px;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    border-bottom: 4px solid transparent;
}

.mode-link.guide-link {
    border-bottom-color: var(--rust-orange);
    background: rgba(216, 67, 21, 0.2);
}

.mode-link.faq-link {
    border-bottom-color: var(--steel-blue);
    background: rgba(30, 58, 95, 0.2);
}

.mode-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 var(--industrial-yellow);
}

.mode-link.guide-link:hover {
    background: var(--rust-orange);
    border-bottom-color: var(--pure-black);
}

.mode-link.faq-link:hover {
    background: var(--steel-blue);
    border-bottom-color: var(--industrial-yellow);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-subtitle-modes {
        font-size: 0.8rem;
        padding: 12px 15px;
        margin-left: 15px;
        border-left-width: 4px;
        letter-spacing: 0.05em;
        max-width: 100%;
    }
    
    .mode-link {
        border-bottom-width: 3px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle-modes {
        font-size: 0.7rem;
        padding: 10px 12px;
    }
    
    .mode-link {
        border-bottom-width: 2px;
    }
}





/* ===========================
   FAQ MODE — CHAT/MESSENGER AESTHETIC
   Scoped to #faq-mode so guide-mode FAQ blocks are unaffected
   =========================== */

#faq-mode .faq-results-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
}
/* ---- Category dividers ---- */
#faq-mode .faq-category-header {
    position: sticky;
    top: 640px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 10px;
    padding: 5px;
    background: var(--pure-white);
    border: none;
    box-shadow: none;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    color: var(--concrete-light);
}

#faq-mode .faq-category-header::before {
    display: none;
}

#faq-mode .faq-category-header::after {
    content: '';
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--pure-black) 0px,
        var(--pure-black) 6px,
        transparent 6px,
        transparent 12px
    );
}

#faq-mode .faq-category-header:first-child {
    margin-top: 0;
}

body.header-shrunk #faq-mode .faq-category-header {
    top: 255px;
}

@media (max-width: 768px) {
    #faq-mode .faq-category-header {
        top: 380px;
    }

    body.header-shrunk #faq-mode .faq-category-header {
        top: 130px;
    }
}

/* ---- FAQ item wrapper ---- */
#faq-mode .faq-item {
    background: none;
    border: none;
    box-shadow: none;
    margin-bottom: 4px;
    padding: 0 16px;
    overflow: visible;
}

#faq-mode .faq-item:hover {
    transform: none;
    box-shadow: none;
}

/* ---- Question bubble (left side, "community asks") ---- */
#faq-mode .faq-question {
    display: flex;
    justify-content: flex-start;
    background: none;
    padding: 6px 0;
    cursor: pointer;
    gap: 0;
}

#faq-mode .faq-question::after {
    display: none; /* remove default chevron */
}

#faq-mode .faq-bubble-q {
    position: relative;
    background: var(--concrete-dark);
    color: var(--industrial-yellow);
    padding: 10px 16px;
    max-width: 72%;
    font-family: 'Archivo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.45;
    border: 3px solid var(--pure-black);
    box-shadow: 3px 3px 0 var(--pure-black);
    transition: background 0.1s ease, transform 0.1s ease;
    cursor: pointer;
}

#faq-mode .faq-bubble-q::before {
    content: 'Q';
    display: inline-block;
    background: var(--rust-orange);
    color: var(--pure-white);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 5px;
    margin-right: 8px;
    border: 1px solid var(--pure-black);
    vertical-align: middle;
    flex-shrink: 0;
}

#faq-mode .faq-item.active .faq-bubble-q {
    background: var(--pure-black);
    transform: translateX(3px);
}

#faq-mode .faq-question:hover .faq-bubble-q {
    background: var(--steel-blue);
    color: var(--pure-white);
}

/* ---- Answer bubble (right side, "guide responds") ---- */
#faq-mode .faq-answer {
    display: flex;
    justify-content: flex-end;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin 0.25s ease;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

#faq-mode .faq-answer::after {
    display: none;
}

#faq-mode .faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    margin: 4px 0 12px;
    padding: 0 16px 0 0;
}

#faq-mode .faq-item:not(.active) .faq-answer {
    max-height: 0;
    padding: 0;
}

#faq-mode .faq-bubble-a {
    position: relative;
    background: var(--pure-white);
    border: 3px solid var(--pure-black);
    border-left: 6px solid var(--rust-orange);
    padding: 14px 18px;
    max-width: 78%;
    box-shadow: -3px 3px 0 var(--pure-black);
}

#faq-mode .faq-bubble-a::before {
    content: 'A';
    display: inline-block;
    background: var(--steel-blue);
    color: var(--industrial-yellow);
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 5px;
    margin-right: 8px;
    border: 1px solid var(--pure-black);
    vertical-align: middle;
}

/* Answer content typography inside chat bubble */
#faq-mode .faq-answer-content {
    display: block;
    overflow: visible;
}

#faq-mode .faq-answer-content::after {
    display: none;
}

#faq-mode .faq-answer-content p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 8px;
    font-weight: 400;
}

#faq-mode .faq-answer-content p:last-of-type {
    margin-bottom: 0;
}

#faq-mode .faq-answer-content ul,
#faq-mode .faq-answer-content ol {
    margin: 8px 0 8px 20px;
    font-size: 0.88rem;
}

#faq-mode .faq-answer-content li {
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ---- Actions bar inside answer bubble ---- */
#faq-mode .faq-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 2px solid var(--concrete-bg);
    flex-wrap: wrap;
}

#faq-mode .faq-item:not(.active) .faq-actions {
    display: none;
}

#faq-mode .faq-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

#faq-mode .feedback-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

#faq-mode .feedback-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-width: 2px;
}

#faq-mode .share-btn {
    padding: 5px 12px;
    font-size: 0.7rem;
    border-width: 2px;
    gap: 5px;
}

#faq-mode .share-btn svg {
    width: 14px;
    height: 14px;
}

/* ---- Search highlight inside chat bubbles ---- */
#faq-mode mark {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    padding: 1px 3px;
    font-weight: 900;
    border: 1px solid var(--pure-black);
}

/* ---- Active / search result highlight ---- */
#faq-mode .faq-item.search-result-active .faq-bubble-q {
    background: var(--rust-orange);
    color: var(--pure-white);
    box-shadow: 4px 4px 0 var(--industrial-yellow);
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    #faq-mode .faq-item {
        padding: 0 10px;
    }

    #faq-mode .faq-bubble-q {
        max-width: 88%;
        font-size: 0.78rem;
        padding: 9px 13px;
    }

    #faq-mode .faq-bubble-a {
        max-width: 92%;
        padding: 12px 14px;
    }

    #faq-mode .faq-answer-content p,
    #faq-mode .faq-answer-content li {
        font-size: 0.85rem;
    }

    #faq-mode .faq-item.active .faq-answer {
        padding: 0 10px 0 0;
    }
}
/* ============================================================
   styles_additions.css
   New styles for:
   1. GADH branding bar
   2. Ask a Question modal + inline buttons
   3. Translation coming-soon toast
   4. Redesigned TOC sidebar (no ugly scrollbar)
   ============================================================ */


/* ===========================
   1. GADH BRANDING BAR
   =========================== */

/*
   The bar is position:relative so it sits in normal document flow
   and pushes page content down below it.
   The language selector and mode toggle are position:fixed with a
   higher z-index so they simply float above everything — the GADH
   bar, the hero, all of it — and never move.
*/
.gadh-bar {
    background: var(--pure-black);
    color: var(--concrete-light);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 3px solid var(--industrial-yellow);
    position: relative;
    z-index: 999; /* below the fixed buttons */
}

/* Ensure fixed buttons always float above the bar */
.language-selector,
.mode-toggle {
    z-index: 1100;
}

.gadh-bar a {
    color: var(--industrial-yellow);
    text-decoration: none;
    font-weight: 900;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.gadh-bar a:hover {
    border-bottom-color: var(--industrial-yellow);
    background: none;
    color: var(--industrial-yellow);
}

.gadh-bar-sep {
    opacity: 0.35;
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .gadh-bar {
        font-size: 0.62rem;
        padding: 6px 15px;
        gap: 7px;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ===========================
   2. ASK A QUESTION — FLOATING HEADER BUTTON
   =========================== */

/* The persistent "Ask" button in the mode-toggle area */
.ask-header-btn {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 1000;
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border: 4px solid var(--pure-black);
    padding: 8px 18px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--pure-black);
    transition: background 0.12s ease, box-shadow 0.12s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.ask-header-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--pure-black);
    background: var(--rust-orange);
    color: var(--pure-white);
}

.ask-header-btn .ask-header-icon {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-style: normal;
}

/* Compact when header shrinks */
body.header-shrunk .ask-header-btn {
    top: 56px;
    padding: 6px 14px;
    font-size: 0.65rem;
    border-width: 3px;
    box-shadow: 3px 3px 0 var(--pure-black);
}

@media (max-width: 768px) {
    /* Hide the floating ask button on mobile — use inline buttons instead */
    .ask-header-btn {
        display: none;
    }
}


/* ===========================
   2b. INLINE "ASK A QUESTION" BUTTONS
   (appear below each FAQ section and in TOC)
   =========================== */

.inline-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    background: transparent;
    border: 2px dashed var(--concrete-mid);
    color: var(--concrete-mid);
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.inline-ask-btn span {
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
}

.inline-ask-btn:hover {
    background: var(--industrial-yellow);
    border-color: var(--pure-black);
    border-style: solid;
    color: var(--pure-black);
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--pure-black);
}


/* ===========================
   2c. ASK MODAL
   =========================== */

.ask-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ask-modal.active {
    opacity: 1;
}

.ask-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
}

.ask-modal-content {
    position: relative;
    background: var(--pure-white);
    border: 5px solid var(--pure-black);
    width: min(560px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 12px 12px 0 var(--industrial-yellow);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ask-modal.active .ask-modal-content {
    transform: translateY(0) scale(1);
}

.ask-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--pure-black);
    border: none;
    color: var(--industrial-yellow);
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    font-weight: 900;
    transition: background 0.1s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ask-modal-close:hover {
    background: var(--warning-red);
    color: var(--pure-white);
}

/* Modal header band */
.ask-modal-header {
    background: var(--concrete-dark);
    color: var(--pure-white);
    padding: 28px 32px 24px;
    border-bottom: 5px solid var(--industrial-yellow);
}

.ask-modal-badge {
    display: inline-block;
    background: var(--industrial-yellow);
    color: var(--pure-black);
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    padding: 3px 10px;
    margin-bottom: 12px;
    border: 2px solid var(--pure-black);
}

.ask-modal-header h2 {
    font-size: 1.8rem;
    color: var(--industrial-yellow);
    background: none;
    padding: 0;
    margin: 0 0 8px;
    border: none;
    box-shadow: none;
    text-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    line-height: 1;
}

.ask-modal-header p {
    font-size: 0.82rem;
    opacity: 0.85;
    margin: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Form body */
.ask-modal-form {
    padding: 24px 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ask-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.ask-label {
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pure-black);
}

.ask-optional {
    font-weight: 400;
    opacity: 0.5;
    text-transform: none;
    letter-spacing: 0;
}

.ask-required {
    color: var(--warning-red);
}

.ask-input,
.ask-textarea,
.ask-select {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    border: 3px solid var(--concrete-mid);
    background: var(--pure-white);
    color: var(--pure-black);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ask-input:focus,
.ask-textarea:focus,
.ask-select:focus {
    outline: none;
    border-color: var(--pure-black);
    box-shadow: 3px 3px 0 var(--industrial-yellow);
}

.ask-input.ask-input-error,
.ask-textarea.ask-input-error {
    border-color: var(--warning-red);
    box-shadow: 3px 3px 0 var(--warning-red);
}

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

.ask-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.ask-char-count {
    text-align: right;
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--concrete-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: -4px;
}

.ask-error-msg {
    font-family: 'Archivo', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--warning-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ask-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: var(--industrial-yellow-light);
    border-left: 4px solid var(--industrial-yellow);
    padding: 10px 14px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--concrete-dark);
    line-height: 1.5;
}

.ask-note svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.6;
}

.ask-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 2px solid var(--concrete-bg);
}

.ask-cancel-btn {
    background: var(--pure-white);
    border: 3px solid var(--concrete-mid);
    padding: 10px 22px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--concrete-mid);
    transition: all 0.1s ease;
}

.ask-cancel-btn:hover {
    border-color: var(--pure-black);
    color: var(--pure-black);
}

.ask-submit-btn {
    background: var(--rust-orange);
    border: 3px solid var(--pure-black);
    padding: 10px 24px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--pure-white);
    box-shadow: 3px 3px 0 var(--pure-black);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ask-submit-btn:hover:not(:disabled) {
    background: var(--pure-black);
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--industrial-yellow);
}

.ask-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 3px 3px 0 var(--pure-black);
}

/* Spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinning {
    animation: spin 0.8s linear infinite;
}

.ask-submit-spinner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Success state */
.ask-modal-success {
    padding: 40px 32px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.ask-success-icon {
    width: 64px;
    height: 64px;
    background: var(--industrial-yellow);
    border: 5px solid var(--pure-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--pure-black);
    box-shadow: 5px 5px 0 var(--pure-black);
    margin-bottom: 8px;
}

.ask-modal-success h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--pure-black);
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.ask-modal-success p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--concrete-dark);
    max-width: 380px;
}

/* Mobile ask modal */
@media (max-width: 768px) {
    .ask-modal-content {
        border-width: 4px;
        box-shadow: 8px 8px 0 var(--industrial-yellow);
    }

    .ask-modal-header {
        padding: 22px 20px 18px;
        border-bottom-width: 4px;
    }

    .ask-modal-header h2 {
        font-size: 1.5rem;
    }

    .ask-modal-form {
        padding: 20px;
        gap: 14px;
    }

    .ask-actions {
        flex-direction: column-reverse;
    }

    .ask-cancel-btn,
    .ask-submit-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===========================
   3. TRANSLATION COMING SOON TOAST
   =========================== */

.translation-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    width: min(420px, 92vw);
}

.translation-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.translation-toast-inner {
    background: var(--pure-black);
    border: 4px solid var(--industrial-yellow);
    box-shadow: 6px 6px 0 var(--industrial-yellow);
    padding: 14px 18px 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--pure-white);
    font-family: 'Archivo', sans-serif;
}

.translation-toast-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.translation-toast-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.translation-toast-text strong {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--industrial-yellow);
}

.translation-toast-text span {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.translation-toast-close {
    background: none;
    border: none;
    color: var(--concrete-light);
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.1s ease;
}

.translation-toast-close:hover {
    color: var(--industrial-yellow);
}

@media (max-width: 480px) {
    .translation-toast {
        bottom: 80px; /* above back-to-top button */
    }
    
    .translation-toast-inner {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .translation-toast-icon {
        font-size: 1.3rem;
    }
}


/* ===========================
   4. REDESIGNED TOC SIDEBAR
   Replaces the previous design completely.
   No visible scrollbar — uses a subtle fade mask instead.
   =========================== */

.toc-sidebar {
    position: relative;
    display: block;
    background: var(--concrete-dark);
    border-right: 8px solid var(--pure-black);
}

/* Sticky container — fade mask instead of scrollbar */
.toc-sticky {
    position: sticky;
    top: 630px;
    padding: 0;
    max-height: calc(100vh - 650px);
    overflow: hidden;       /* no native scrollbar */
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.header-shrunk .toc-sticky {
    top: 60px;
    max-height: calc(100vh - 80px);
}

/* Inner scroll container — actually scrollable, bar hidden */
.toc-scroll-inner {
    max-height: inherit;
    overflow-y: auto;
    padding: 24px 0 60px; /* bottom pad ensures last item visible under fade */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}

.toc-scroll-inner::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
}

/* Fade-out mask at bottom */
.toc-sticky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--concrete-dark) 85%);
    pointer-events: none;
    z-index: 2;
}

/* ── TOC heading ── */
.toc-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--concrete-light);
    padding: 0 22px 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 6px;
}

/* Override old h3 style inside toc-sticky */
.toc-sticky > h3,
.toc-sticky h3 {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--concrete-light);
    padding: 0 22px 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    margin-bottom: 6px;
    background: none;
    box-shadow: none;
    line-height: 1.2;
}

/* ── Nav list reset ── */
.toc-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-nav li {
    margin: 0;
}

/* ── Parent items ── */
.toc-nav .toc-parent > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 22px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.3;
}

/* Section number badge */
.toc-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 0.6rem;
    font-weight: 900;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.15s ease;
}

.toc-label {
    flex: 1;
}

.toc-nav .toc-parent > a:hover {
    color: var(--pure-white);
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(255,255,255,0.3);
}

.toc-nav .toc-parent > a:hover .toc-num {
    background: var(--rust-orange);
    color: var(--pure-white);
    border-color: var(--rust-orange);
}

/* Active parent state */
.toc-nav .toc-parent.toc-parent-active > a {
    color: var(--industrial-yellow);
    background: rgba(255, 193, 7, 0.08);
    border-left-color: var(--industrial-yellow);
}

.toc-nav .toc-parent.toc-parent-active > a .toc-num {
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border-color: var(--industrial-yellow);
}

/* Active link (on the section itself, not a sub) */
.toc-nav a.active {
    color: var(--industrial-yellow) !important;
}

/* ── Child items (sub-sections) ── */
.toc-nav .toc-child {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.22s ease, opacity 0.18s ease;
}

.toc-nav .toc-child.toc-child-visible {
    max-height: 5rem;
    opacity: 1;
}

.toc-nav .toc-child a.toc-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px 7px 35px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-family: 'Archivo', sans-serif;
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.toc-sub-arrow {
    font-size: 0.8rem;
    opacity: 0.4;
    flex-shrink: 0;
    margin-top: -1px;
}

.toc-nav .toc-child a.toc-sub:hover {
    color: rgba(255,255,255,0.8);
    border-left-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.toc-nav .toc-child a.toc-sub.active {
    color: var(--industrial-yellow) !important;
    border-left-color: var(--industrial-yellow);
}

/* ── Divider between sections ── */
.toc-nav .toc-divider {
    height: 1px;
    margin: 6px 22px;
    background: rgba(255,255,255,0.07);
}

/* ── Ask button inside TOC ── */
.toc-ask-btn-wrap {
    padding: 16px 22px 0;
    margin-top: 4px;
}

.toc-ask-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed rgba(255, 193, 7, 0.35);
    color: rgba(255, 193, 7, 0.6);
    padding: 9px 14px;
    font-family: 'Archivo', sans-serif;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s ease;
}

.toc-ask-btn:hover {
    background: var(--industrial-yellow);
    border-color: var(--industrial-yellow);
    border-style: solid;
    color: var(--pure-black);
}

.toc-ask-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    font-size: 0.85rem;
    font-weight: 900;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.toc-ask-btn:hover .toc-ask-icon {
    background: var(--pure-black);
    border-color: var(--pure-black);
    color: var(--industrial-yellow);
}

/* Hide TOC on tablet and mobile (unchanged) */
@media (max-width: 1024px) {
    .toc-sidebar {
        display: none;
    }
}


/* ===========================
   FAQ SECTION ASK BUTTON
   Light-touch ghost button that appears after each FAQ category
   =========================== */

.faq-section-ask-wrap {
    display: flex;
    justify-content: flex-end;
    padding: 6px 0 20px 0;
    border-bottom: 1px solid var(--concrete-bg);
    margin-bottom: 8px;
}

.faq-section-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--concrete-mid);
    color: var(--concrete-mid);
    font-family: 'Archivo', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.faq-section-ask-btn:hover {
    opacity: 1;
    border-color: var(--industrial-yellow);
    color: var(--pure-black);
    background: var(--industrial-yellow);
}

.faq-section-ask-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: currentColor;
    color: var(--concrete-bg);
    font-size: 0.65rem;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
}

.faq-section-ask-btn:hover .faq-section-ask-icon {
    background: var(--pure-black);
    color: var(--industrial-yellow);
}


/* ===========================
   FAQ CONTROLS BAR — shrink expand/collapse, add Ask button
   =========================== */

/* Make expand/collapse much smaller and more subdued */
#expand-all,
#collapse-all {
    font-size: 0.62rem !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    opacity: 0.65;
    border-width: 2px !important;
    box-shadow: 2px 2px 0 var(--pure-black) !important;
    transition: opacity 0.15s ease !important;
}

#expand-all:hover,
#collapse-all:hover {
    opacity: 1;
}

/* Ask button in the FAQ controls bar */
.faq-controls-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border: 2px solid var(--pure-black);
    font-family: 'Archivo', sans-serif;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--pure-black);
    transition: all 0.12s ease;
    white-space: nowrap;
    margin-left: auto; /* push to far right of controls bar */
}

.faq-controls-ask-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--pure-black);
    background: var(--rust-orange);
    color: var(--pure-white);
    border-color: var(--rust-orange);
}

.faq-controls-ask-btn .faq-controls-ask-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    font-size: 0.6rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}

.faq-controls-ask-btn:hover .faq-controls-ask-icon {
    background: var(--pure-white);
    color: var(--rust-orange);
}



/* ===========================
   FAQ CONTROLS BAR — UPDATED
   Expand/Collapse as a toggle group + Ask button
   =========================== */

/* Remove old individual overrides — replace with cleaner system */
#expand-all,
#collapse-all {
    font-size: 0.72rem !important;
    padding: 7px 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.06em !important;
    opacity: 1 !important;
    border-width: 2px !important;
    box-shadow: none !important;
    transition: all 0.15s ease !important;
    background: var(--pure-white);
    color: var(--concrete-mid);
    border: 2px solid var(--concrete-mid) !important;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
}

/* Toggle group container */
.faq-view-toggle {
    display: inline-flex;
    border: 2px solid var(--pure-black);
    overflow: hidden;
    box-shadow: 3px 3px 0 var(--pure-black);
    flex-shrink: 0;
}

.faq-view-toggle #expand-all,
.faq-view-toggle #collapse-all {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 7px 14px !important;
    font-size: 0.72rem !important;
    background: var(--pure-white);
    color: var(--concrete-mid);
    position: relative;
}

/* Divider between the two toggle buttons */
.faq-view-toggle #expand-all {
    border-right: 2px solid var(--concrete-mid) !important;
}

.faq-view-toggle #expand-all:hover,
.faq-view-toggle #collapse-all:hover {
    background: var(--concrete-bg) !important;
    color: var(--pure-black) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Active/selected state for the toggle buttons */
.faq-view-toggle #expand-all.toggle-active,
.faq-view-toggle #collapse-all.toggle-active {
    background: var(--concrete-dark) !important;
    color: var(--industrial-yellow) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* The new Ask button in FAQ controls */
.faq-controls-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: var(--industrial-yellow);
    color: var(--pure-black);
    border: 2px solid var(--pure-black);
    font-family: 'Archivo', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--pure-black);
    transition: all 0.12s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.faq-controls-ask-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--pure-black);
    background: var(--rust-orange);
    color: var(--pure-white);
    border-color: var(--pure-black);
}

.faq-controls-ask-btn .faq-controls-ask-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--pure-black);
    color: var(--industrial-yellow);
    font-size: 0.65rem;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.12s ease;
}

.faq-controls-ask-btn:hover .faq-controls-ask-icon {
    background: var(--pure-white);
    color: var(--rust-orange);
}

/* Updated faq-actions: now a flex row holding both toggle group and ask btn */
.faq-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* Mobile */
@media (max-width: 768px) {
    .faq-actions {
        width: 100%;
        justify-content: space-between;
    }

    .faq-controls-ask-btn {
        font-size: 0.65rem;
        padding: 6px 12px;
        gap: 5px;
        box-shadow: 2px 2px 0 var(--pure-black);
    }

    .faq-view-toggle #expand-all,
    .faq-view-toggle #collapse-all {
        padding: 6px 10px !important;
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .faq-controls-ask-btn span:not(.faq-controls-ask-icon) {
        display: none; /* icon only on very small screens */
    }

    .faq-controls-ask-btn {
        padding: 6px 10px;
    }
}