/* ==========================================================================
   1. Core Variables & Base Reset Matrix
   ========================================================================== */
:root {
    --bg-dark: #121314;       /* Deep obsidian canvas background tint */
    --bg-card: #1a1c1e;       /* Clean matte dark-gray container background */
    --text-main: #f8fafc;     /* Clean off-white bold header text elements */
    --text-muted: #cbd5e1;    /* Highly readable slate-gray base copy text */
    --accent-green: #22c55e;  /* Distinctive NC Mesh vibrant brand green */
    --border-color: #2a2d31;  /* Balanced section division boundary line border */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 1rem;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==========================================================================
   2. Browser Custom Scrollbar Elements
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #2a2d31;
    border-radius: 20px;
    border: 2px solid var(--bg-dark);
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@supports (scrollbar-color: auto) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #2a2d31 var(--bg-dark);
    }
}

/* ==========================================================================
   3. Global Typography & Core Anchor Formatting
   ========================================================================== */
h1, h2, h3, .hero h1 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

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

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease, text-shadow 0.3s ease !important;
}

a:hover {
    text-decoration: underline;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* ==========================================================================
   4. Header Navigation Bar Layout & Logo Branding
   ========================================================================== */
.navbar {
    background-color: rgba(18, 19, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.25rem 0;
}

.brand-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.brand-text span {
    color: var(--accent-green);
    font-weight: 800;
}

.logo-brand:hover {
    text-decoration: none;
}

.logo-brand:hover .brand-img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.45));
}

.logo-brand:hover .brand-text {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

.nav-links a.active {
    color: var(--accent-green) !important;
    border-bottom: 2px solid var(--accent-green);
    padding-bottom: 0.25rem;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* ==========================================================================
   5. Interactive Structure Hardware Acceleration Overrides
   ========================================================================== */
.card, .map-placeholder, .btn {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   6. Hero & Main Section Component Layouts
   ========================================================================== */
.hero {
    padding: 11rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
}

.hero-content-block {
    padding: 4rem 0 3rem;
}

.hero-content-extended {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.hero-content-block h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-content-block p {
    margin: 0 auto;
    max-width: 720px;
    color: var(--text-muted);
}

.logo-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.partner-logo {
    max-height: 60px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.hero-image {
    margin-top: 1.75rem;
}

.hero-image img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: inline-block;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Structural Features Element Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem 0;
    align-items: stretch;
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.features .container {
    display: flex;
    justify-content: center;
}

.comparison-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.comparison-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
    justify-items: center;
    align-items: stretch;
}

.comparison-layout .card {
    text-align: center;
    width: calc(100% + 30px);
    max-width: 390px;
}

.comparison-card {
    max-width: 980px;
    width: calc(100% + 60px);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.compare-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-green);
}

.compare-table th:first-child {
    color: #0B6FAB;
}

.compare-table th:nth-child(3) {
    color: #0B6FAB;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
    text-align: center;
}

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

    .comparison-layout .card {
        max-width: none;
    }
}

/* Glass effect for structural cards when hovered */
.card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.card:hover {
    background-color: rgba(26, 28, 30, 0.65) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-color: rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(34, 197, 94, 0.15);
    transform: translateY(-4px);
}

.meshcore-choice-card:hover {
    border-color: rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
                0 0 16px rgba(59, 130, 246, 0.12);
}

.feature-icon {
    font-size: 1.75rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.feature-card {
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-6px);
    cursor: pointer;
}

.feature-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.feature-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.feature-popup-content {
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.feature-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
}

.feature-popup-content h3 {
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

/* ==========================================================================
   7. Map Framework Wrapper Containers
   ========================================================================== */
.map-section {
    padding: 3rem 0;
}

.map-placeholder {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    height: 450px;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
}

.map-placeholder:hover {
    background-color: rgba(26, 28, 30, 0.65) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-color: rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(34, 197, 94, 0.15);
    transform: translateY(-4px);
}

.map-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

/* ==========================================================================
   8. UI Interactive Action Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--bg-dark) !important;
}

.btn-primary:hover {
    text-decoration: none;
    background-color: #22c55e !important;
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.5) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main) !important;
    border: 1px solid #4a4e54;
    margin-left: 1rem;
}

.btn-secondary:hover {
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   9. Footer & Branding Metadata Section Notes
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 4rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* ==========================================================================
   10. Fluid Screen Adaptation & Mobile Media Boundaries
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.9rem 0;
    }

    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .logo-brand {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .brand-img {
        height: 32px;
    }
    
    .brand-text {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        gap: 0.5rem;
    }

    .nav-links li {
        display: block;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.92rem;
        white-space: normal;
        display: block;
        text-align: center;
        padding: 0.35rem 0;
    }
    
    .hero {
        padding: 8.2rem 0 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content-block {
        padding: 2.25rem 0 1.75rem;
    }

    .hero-content-block h2 {
        font-size: 1.5rem;
    }

    .hero-content-extended {
        max-width: 100%;
    }

    .hero-buttons {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .btn, .btn-primary, .btn-secondary {
        display: block;
        text-align: center;
        padding: 0.7rem 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .comparison-layout {
        padding: 1.5rem 0;
    }

    .compare-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.6rem;
    }
}
/* ==========================================================================
   11. Navigation Dropdown Interface & Glass Panel Overrides
   ========================================================================== */
.nav-links li {
    position: relative;
    display: inline-block;
}

/* Setup alignment for indicators */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

/* Hidden Dropdown Panel Core Layout Metrics */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(26, 28, 30, 0.95); /* Matched to --bg-card */
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-width: 170px;
    padding: 0.5rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 197, 94, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

/* Dropdown Menu List Anchors */
.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    color: var(--text-muted) !important;
    font-size: 0.875rem !important;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease !important;
}

/* Left Icon Accent Highlight Colors inside Drop Panel */
.dropdown-menu a i {
    font-size: 0.9rem;
    color: #4b5563; /* Subtle gray fallback icon tint */
    transition: color 0.2s ease;
}

/* Trigger reveal animations on user cursor hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown:hover .nav-arrow {
    transform: rotate(180deg);
    color: var(--accent-green);
}

/* Inside Item Hover States mapping signature brand neon-green glow */
.dropdown-menu a:hover {
    background-color: rgba(34, 197, 94, 0.08);
    color: var(--text-main) !important;
    text-decoration: none;
    padding-left: 1.4rem; /* Soft linear offset expand */
}

.dropdown-menu a:hover i {
    color: var(--accent-green);
}

/* ==========================================================================
   12. Responsive Adaptation For Mobile Dropdowns
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem !important;
        padding-top: 0.5rem;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }

    /* Convert absolute cards to flat linear rows under parent targets on phones */
    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.15);
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Controlled dynamically via tap click toggle fallback */
        padding: 0.25rem 0;
        margin-top: 0.25rem;
    }
    
    /* Auto expand structural child nodes inside narrow viewports */
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .dropdown-menu a:hover {
        padding-left: 0;
        background-color: transparent;
        color: var(--accent-green) !important;
    }
}
/* Header Navbar Image Brand Constraints */
.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;          /* Uniform horizontal spacing gap between asset and text elements */
    text-decoration: none;
    padding: 0.25rem 0;
}

.brand-img {
    height: 44px;          /* Clean bounding height constraint matched with header font size metrics */
    width: auto;           /* Automatically recalculates correct aspect ratios with zero stretching */
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.15));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.brand-text span {
    color: var(--accent-green);
    font-weight: 800;
}

/* ==========================================================================
   13. Interactive Accordion Configuration Layout
   ========================================================================== */
.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.accordion-header:hover h2 {
    color: var(--accent-green) !important;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.guide-section.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-green);
}

/* Hidden container mechanics with hardware acceleration scaling */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                visibility 0.4s ease,
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-section.active .accordion-content {
    max-height: 4000px; /* High bounding allowance to accommodate long inner nested lists */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ==========================================================================
   13. Optimized Interactive Accordion Dashboard Layout
   ========================================================================== */
.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-header:hover {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.05);
}

.accordion-header h2 {
    margin-bottom: 0;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.accordion-header:hover h2 {
    color: var(--accent-green) !important;
}

.accordion-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

/* Dynamic Active States when expanded */
.guide-section.active .accordion-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--border-color);
    background-color: rgba(26, 28, 30, 0.4);
}

.guide-section.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--accent-green);
}

/* Accordion slide-down container physics */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                visibility 0.4s ease,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-section.active .accordion-content {
    max-height: 5000px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Interior Card Clean Up styling */
.accordion-content .card {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 2.5rem;
    background-color: rgba(26, 28, 30, 0.25);
    backdrop-filter: blur(8px);
}

/* Sequential Onboarding Setup Steps */
.accordion-content p strong {
    color: var(--accent-green);
}

.accordion-content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Core Settings Group Headers */
.accordion-content h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Formatting for Config Target unordered lists */
.accordion-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.accordion-content ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.01);
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Custom Highlight Keypads for technical values */
.settings-value {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    background-color: #0f1112;
    border: 1px solid var(--border-color);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Themed Warning Alerts (Like the MQTT warning line) */
/* Full-Width Accordion Warning Banner Elements */
.settings-warning {
    display: block !important;
    width: 100% !important;
    color: #f87171 !important;                 /* Vibrant, readable light-crimson tint */
    background-color: rgba(239, 68, 68, 0.07); /* Faint dark red backdrop blend */
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;            /* Solid high-contrast alert border edge */
    padding: 0.85rem 1.25rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.85rem !important;
    line-height: 1.5;
    margin: 1rem 0;                           /* Even vertical block spacing separation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Strict 2x2 Layout Matrix for Protocol Analysis */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Enforces exactly two equal columns on desktop */
    gap: 1.5rem;
    padding: 2.5rem 0;
}

/* Fluid responsive adaptation for tablets and smartphones */
@media (max-width: 768px) {
    .grid-2x2 {
        grid-template-columns: 1fr;         /* Collapses safely into a strict vertical column layout */
    }
}