@charset "UTF-8";
/*
Theme Name: NNM 
Version: 1.0
Author: NNM 
*/

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

:target {
    scroll-margin-top: 2em;
}

/* ===== CSS VARIABLES ===== */
:root {
    --white: #fff;
    --balck: #000;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --accent-primary: #1B4332;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
    --accent-hover: #2563eb;
    --border-color: #e2e8f0;
    --border-color-hover: #cbd5e1;
    --header-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    --footer-text-secondary: #c2d1e6;
    --code-bg: #f1f5f9;
    --table-header-bg: #f8fafc;
    --table-stripe: #f8fafc;
    --toc-bg: #f8fafc;
    --toc-border: #e2e8f0;
    --cookie-bg: rgba(15, 23, 42, 0.95);
    --cookie-text: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --cookie-shadow: 0 0 7px 0 rgba(255,255,255,0.4);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --accent-primary: #60a5fa;
        --accent-secondary: #818cf8;
        --accent-gradient: linear-gradient(135deg, #60a5fa, #818cf8);
        --accent-hover: #93c5fd;
        --border-color: #334155;
        --border-color-hover: #475569;
        --header-bg: rgba(15, 23, 42, 0.9);
        --footer-bg: #0a0f1a;
        --footer-text: #f1f5f9;
        --footer-text-secondary: #94a3b8;
        --code-bg: #1e293b;
        --table-header-bg: #1e293b;
        --table-stripe: #1e293b;
        --toc-bg: #1e293b;
        --toc-border: #334155;
        --cookie-bg: rgba(15, 23, 42, 0.95);
        --cookie-text: #f1f5f9;
    }
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
	
	overflow-x: hidden;
	overflow-y: scroll;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

main {
    flex: 1 0 auto;
}
.main-page .container {max-width: 1000px;}

/* ===== COMMON HEADER STYLES ===== */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.logo-area {
    line-height: 1.4;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-link {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-img {max-width: 80px;}
.site-name {max-width: 140px;}

.logo-symbol {
    font-size: 2rem;
    background: var(--accent-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.burger-line {
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: transform 0.3s;
}

.burger-menu[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-menu[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== HEADER V1: Logo left, menu right ===== */
.header-v1 {position: relative; z-index: 6;}
.header-v1 .header-container-v1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-v1 .main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ===== HEADER V2: Menu left, logo right ===== */
.header-v2 {position: relative; z-index: 5;}
.header-v2 .header-container-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-v2 .logo-right {
    text-align: right;
    margin-left: auto;
}

.header-v2 .nav-v2 {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-v2 .nav-list-v2 {
    gap: 1.5rem;
}

/* ===== HEADER V3: Logo left + burger right only ===== */
.header-v3 {position: relative; z-index: 4;}
.header-v3 .header-container-v3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-v3 .burger-v3 {
    display: flex;
}

/* ===== NAVIGATION STYLES (for V1 and V2) ===== */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
	margin: 0;
    position: relative;
}

.nav-item > a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    display: inline-block;
    position: relative;
}

.nav-item > a:hover {text-decoration: underline;}

.nav-item.dropdown > a {
    padding-right: 20px;
}
.nav-item.dropdown > a::after {
    content: "▼";
    font-size: 0.7rem;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    transition: transform 0.2s;
}

.nav-item.dropdown:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu .dropdown > a::after {
    content: "◀";
    font-size: 0.7rem;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-secondary);
}

.nav-item:last-child .dropdown-menu .dropdown > a::after {
    content: "▶";
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    min-width: 240px;
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}

.nav-item.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .dropdown-menu {
    top: 0;
    left: auto;
    right: 100%;
    margin-right: 5px;
}

.header-v2 .dropdown-menu .dropdown-menu {
    left: 100%;
    right: initial;
}

.nav-item:last-child .dropdown-menu .dropdown-menu {
    right: auto;
    left: 100%;
    margin-left: 5px;
}

.dropdown-menu .dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.dropdown-menu a:hover {
    background: var(--accent-gradient);
    color: white;
}

/* ===== SIDE MENU (for V3) ===== */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.side-menu-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
}

.side-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.side-menu-close:hover {
    background-color: var(--bg-tertiary);
}

.side-navigation {
    padding: 20px;
}

.side-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav-item {
    margin-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

.side-nav-item > a {
    display: block;
    padding: 15px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.side-nav-item > a:hover {
    color: var(--accent-primary);
}

.side-nav-item.dropdown > a {
    padding-right: 30px;
}

.side-nav-item.dropdown > a::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--accent-primary);
    transition: transform 0.3s;
}

.side-nav-item.dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.side-dropdown-menu {
    display: none;
    list-style: none;
    padding: 0 0 10px 20px;
    margin: 0;
    border-left: 2px solid var(--accent-primary);
}

.side-nav-item.active > .side-dropdown-menu {
    display: block;
}

.side-dropdown-menu > .active > .side-dropdown-menu {display: block;}


.side-dropdown-menu .side-dropdown-menu {
    border-left-color: var(--accent-secondary);
    margin-left: 15px;
}

.side-dropdown-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.side-dropdown-menu a:hover {
    color: var(--accent-primary);
}

.side-dropdown-menu .dropdown > a {
    padding-right: 25px;
    position: relative;
}

.side-dropdown-menu .dropdown > a::after {
    content: "▼";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--accent-secondary);
    transition: transform 0.3s;
}

.side-dropdown-menu .dropdown.active > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.side-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.9rem;
    text-align: center;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO IMAGE ===== */
.hero-image {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-image img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-wrap {
    background-color: var(--toc-bg);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0;
    border: 1px solid var(--toc-border);
}

.toc-wrap__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--accent-primary);
}

/* ===== ARTICLE CONTENT ===== */
.main-article {
    padding: 40px 0;
}
.entry-header {margin: 0 0 40px;}
.entry-header .title {margin: 0 0 40px;}


.article-content {
    margin-top: 30px;
}

.article-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.article-content h4 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.article-content h5 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
}

.article-content h6 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
}

.article-content p {
    margin-bottom: 1.2em;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.article-content a:hover {
    color: var(--white);
    border-bottom-color: var(--accent-hover);
}

.article-content .read-more {
    border: 1px solid var(--accent-hover);
}

.article-content ul, 
.article-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
    color: var(--text-secondary);
}

.article-content li {
    margin-bottom: 0.4em;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 2em;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    font-style: italic;
}

.article-content pre {
    background-color: var(--code-bg);
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
    border: 1px solid var(--border-color);
}

.article-content iframe {
    max-width: 100%;
    border: none;
    border-radius: 8px;
    aspect-ratio: 16/9;
    width: 100%;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.article-content caption {
    font-weight: 600;
    margin-bottom: 0.5em;
    text-align: left;
}

.article-content th {
    background-color: var(--table-header-bg);
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-content td {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
}

.article-content tbody tr:nth-child(even) {
    background-color: var(--table-stripe);
}

.article-content details {
    margin: 1.5em 0;
    padding: 1em;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.article-content summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--accent-primary);
}

 /* Additional archive styles */
.archive-page {}

.archive-header {
    margin: 40px 0;
    text-align: center;
}

.archive-title {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.archive-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Layout switcher */
.layout-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.layout-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.layout-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.layout-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* Articles grid - common */
.articles-grid {
    display: grid;
    margin-bottom: 50px;
}


/* VARIANT 1: List layout */
.list-layout .article-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.list-layout .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-primary);
}

.list-layout .article-image {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.list-layout .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.list-layout .article-card:hover .article-image img {
    transform: scale(1.05);
}

.list-layout .article-info {
    flex: 1;
}

/* VARIANT 2: Grid layout (2 columns) */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-layout .article-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.grid-layout .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-primary);
}

.grid-layout .article-image {
	width: 100%;
    height: 220px;
    overflow: hidden;
	position: relative;
}

.grid-layout .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: center;
	position: absolute;
	inset: 0;
	transition: transform 0.3s;
}

.grid-layout .article-card:hover .article-image img {
    transform: scale(1.05);
}

.grid-layout .article-info {
    padding: 25px;
    flex: 1;
}

/* VARIANT 3: Masonry/Cards layout (3 columns) */
.masonry-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.masonry-layout .article-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.masonry-layout .article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: var(--accent-primary);
}

.masonry-layout .article-image {
	width: 100%;
    height: 180px;
    overflow: hidden;
	position: relative;
}

.masonry-layout .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	object-position: center;
	position: absolute;
	inset: 0;
	transition: transform 0.3s;
}

.masonry-layout .article-card:hover .article-image img {
    transform: scale(1.05);
}

.masonry-layout .article-info {
    padding: 20px;
    flex: 1;
}

/* Common article elements */
.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.article-category {
    color: var(--accent-primary);
    font-weight: 600;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.article-title a:hover {
    color: var(--accent-primary);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    background: var(--accent-primary);
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-item {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination-item.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

.pagination-prev,
.pagination-next {
    padding: 0 15px;
}

.pagination-dots {
    color: var(--text-tertiary);
}

@media (max-width: 1024px) {
    .masonry-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .list-layout .article-card {
        flex-direction: column;
    }

    .list-layout .article-image {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }

    .grid-layout,
    .masonry-layout {
        grid-template-columns: 1fr;
    }

    .archive-title {
        font-size: 2rem;
    }

    .layout-switcher {
        flex-wrap: wrap;
    }

    .pagination-item {
        min-width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--footer-text);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-notice {
	font-size: 13px;
    line-height: 1.4;
    margin: 0 0 30px;
	
	grid-column: 1 / -1;
}

.copyright {
	text-align: center;
    color: var(--footer-text-secondary);
    font-size: 0.9rem;
}


 /* Additional 404 page styles */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.error-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.error-btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.error-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.error-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.error-btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.error-search {
    margin-top: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-search form {
    display: flex;
    gap: 10px;
}

.error-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.error-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.error-search button {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.error-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Breadcrumbs styles */
.breadcrumbs {
    padding: 15px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
	margin: 0;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--text-tertiary);
    font-size: 1.1rem;
}

.breadcrumbs-item a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-item a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumbs-item.current {
    color: var(--text-primary);
    font-weight: 500;
}

.breadcrumbs-item .home-icon {
    font-size: 1.1rem;
    line-height: 1;
}


 /* Sitemap page styles */
.sitemap-page {
    padding: 40px 0;
}

.sitemap-content {
    max-width: 900px;
    margin: 0 auto;
}

.sitemap-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.sitemap-section:hover {
    box-shadow: var(--card-shadow);
    border-color: var(--accent-primary);
}

.sitemap-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
}

.sitemap-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-primary);
}

.sitemap-section h3 {
    font-size: 1.3rem;
    margin: 20px 0 15px;
    color: var(--accent-primary);
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.sitemap-list li {
    margin: 0;
    padding: 0;
}

.sitemap-list a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s;
    background: var(--bg-primary);
}

.sitemap-list a:hover {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.category-group {
    margin-bottom: 30px;
}

.category-group:last-child {
    margin-bottom: 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.sitemap-note {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    border: 1px dashed var(--border-color);
}


/* ===== COOKIE WIDGET ===== */
.cookie-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 400px;
    background-color: var(--cookie-bg);
    color: var(--cookie-text);
    padding: 15px 20px 15px 25px;
    border-radius: 60px;
    box-shadow: var(--cookie-shadow);
    z-index: 1000;
    animation: slideUp 0.4s;
    backdrop-filter: blur(5px);
}

.cookie-widget__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-widget__text {
    margin: 0;
    font-size: 0.9rem;
	color: var(--white);
    flex: 1;
}

.cookie-widget__button {
    background: var(--accent-gradient);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.cookie-widget__button:hover {
    transform: scale(1.05);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Vitrina ===== */
.vitrina-section {}
.vitrina-section .matches h2 {
	padding: 0;
}
.vitrina-section .matches-container {
	gap: 1rem;
}
.vitrina-section .match-card {
	padding: 20px 15px;
	max-width: 300px;
}
.vitrina-section .match-odds span {
	padding: 8px 8px;
}
.vitrina-section .team span {
	font-size: 12px;
}
.vitrina-section .match-card .match-result strong {
	font-size: 13px;
}
.vitrina-section .match-card .match-odds {
	gap: 6px;
}
.vitrina-section .match-card .match-odds span {
	font-size: 12px;
}
.vitrina-section .match-card {}


/* ===== MOBILE STYLES ===== */
@media (max-width: 991px) {
    .burger-v1,
    .burger-v2 {
        display: flex;
    }

    .site-name {display: none;}
    
    .header-v1 .nav-v1,
    .header-v2 .nav-v2 {
        position: fixed;
        top: var(--headerHeight);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--headerHeight));
        background: var(--bg-primary);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        overflow-y: auto;
        z-index: 99;
        border-top: 1px solid var(--border-color);
    }
    
    .header-v1 .nav-v1.active,
    .header-v2 .nav-v2.active {
        transform: translateX(0);
    }

    .header-v2 .logo-right {margin-left: initial;}
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item > a {
        padding: 15px 0;
        display: block;
    }
    
    .dropdown-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--accent-primary);
        margin: 10px 0 10px 20px;
        padding: 0 0 0 15px;
        background: transparent;
        min-width: auto;
    }
    
    .dropdown.active > .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        white-space: normal;
        padding: 10px 0;
    }
    
    .dropdown-menu a:hover {
        background: none;
        color: var(--accent-primary);
    }
    
    .nav-item.dropdown > a::after {
        content: "▼";
        font-size: 0.8rem;
    }
    
    .dropdown.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-text {
        font-size: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .error-btn {
        width: 100%;
        text-align: center;
    }
    
    .error-search form {
        flex-direction: column;
    }

    .breadcrumbs {
        padding: 10px 0;
    }

    .breadcrumbs-list {
        gap: 5px;
    }

    .breadcrumbs-item {
        font-size: 0.8rem;
    }


    .footer-content {
        grid-template-columns: 1fr;
    }


    .sitemap-section {
        padding: 20px;
    }

    .sitemap-section h2 {
        font-size: 1.5rem;
    }

    .sitemap-list {
        grid-template-columns: 1fr;
    }

    .tags-cloud {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sitemap-section {
        padding: 15px;
    }

    .sitemap-section h2 {
        font-size: 1.3rem;
    }

    .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .cookie-widget__content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-widget__button {
        width: 100%;
    }
}

/* ===== END ===== */

 /* ==========================================================================
   1. CSS VARIABLES & RESET
   ========================================================================== */

:root {
    --color-primary: #1B4332;
    --color-primary-deep: #0D2818;
    --color-accent: #D4A017;
    --color-neutral: #F5F3EF;
    --color-text: #2D2D2D;
    --color-bg: #FFFFFF;
    --color-border: #E0DDD7;
    --color-text-secondary: #6B6860;
    --color-surface: #F5F3EF;
    --color-success: #2E7D32;
    --color-danger: #C62828;
    --color-callout-bg: #FFFBEB;
    --color-funfact-bg: #F0FFF4;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    --fs-h1: clamp(1.75rem, 4vw, 2.5rem);
    --fs-h2: clamp(1.25rem, 3vw, 1.75rem);
    --fs-h3: clamp(1rem, 2.5vw, 1.25rem);
    --fs-body: clamp(0.9rem, 1.8vw, 1.05rem);
    --fs-caption: clamp(0.75rem, 1.5vw, 0.85rem);
    --fs-label: 0.7rem;
    --content-width: 740px;
    --section-gap: clamp(3rem, 6vw, 5rem);
    --component-radius: 6px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #4CAF6A;
        --color-primary-deep: #1B4332;
        --color-accent: #E8B730;
        --color-neutral: #1E1E1E;
        --color-text: #E0DDD7;
        --color-bg: #141414;
        --color-border: #333;
        --color-text-secondary: #9E9A92;
        --color-surface: #1E1E1E;
        --color-callout-bg: #2A2410;
        --color-funfact-bg: #1A2E1A;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
2. GENERAL TYPOGRAPHY
========================================================================== */

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--color-primary);
    line-height: 1.2;
    text-align: left;
    scroll-margin-top: 2rem;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
}

h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--fs-h3);
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

p {
    text-align: left;
    margin-bottom: 1.15rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration-color: var(--color-accent);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

ul,
ol {
    padding-left: 1.5rem;
    margin-bottom: 1.15rem;
}

li {
    margin-bottom: 0.4rem;
}

li:last-child {
    margin-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: var(--fs-body);
}

thead {
    border-bottom: 2px solid var(--color-primary);
}

th {
    text-align: left;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    color: var(--color-primary);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

tbody tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: var(--color-surface);
}

figure {
    margin: 1.5rem auto;
    max-width: 100%;
}

figcaption {
    font-size: var(--fs-caption);
    color: var(--color-text-secondary);
    text-align: center;
    margin-top: 0.5rem;
}

img.hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

img.article-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--component-radius);
}

/* ==========================================================================
3. LAYOUT — SECTIONS
========================================================================== */


[data-content] {
    max-width: initial;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0;
    margin-bottom: var(--section-gap);
}

[data-content="hero"],
[data-content="toc"] {
    max-width: none;
    padding: 0;
    margin-bottom: 0;
}

/* ==========================================================================
4. COMPONENTS
========================================================================== */

/* --- TL;DR --- */

.tldr {
    background: var(--color-surface);
    border-left: 3px solid var(--color-accent);
    padding: 1.5rem 1.75rem;
    border-radius: 0 var(--component-radius) var(--component-radius) 0;
}

.tldr h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.tldr ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.tldr li {
    margin-bottom: 0.5rem;
    font-size: var(--fs-body);
    color: var(--color-text);
}

/* --- Info Box --- */

.info-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--component-radius);
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-box p {
    text-align: left;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.info-box ul {
    margin-bottom: 0;
}

.info-box li {
    color: var(--color-text);
    font-size: var(--fs-body);
}

/* --- Key Takeaway --- */

.key-takeaway {
    border-top: 2px solid var(--color-accent);
    padding-top: 1rem;
    margin: 2rem 0;
}

.key-takeaway p {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-primary);
    text-align: left;
}

/* --- Callout Tip --- */

.callout-tip {
    border-left: 3px solid var(--color-accent);
    background: var(--color-callout-bg);
    padding: 1.15rem 1.5rem;
    border-radius: 0 var(--component-radius) var(--component-radius) 0;
    margin: 1.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.callout-tip p {
    text-align: left;
    color: var(--color-text);
    margin-bottom: 0;
}

/* --- Fun Fact --- */

.fun-fact {
    position: relative;
    padding-left: 1.5rem;
    margin: 1.75rem 0;
}

.fun-fact::before {
    content: "\2014";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.fun-fact p {
    font-style: italic;
    color: var(--color-text-secondary);
    text-align: left;
}

/* --- Glossary Term --- */

.glossary-term {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.glossary-term:last-child {
    border-bottom: none;
}

.glossary-term p {
    text-align: left;
    color: var(--color-text);
    margin-bottom: 0;
}

.glossary-term strong {
    font-family: var(--font-mono);
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-accent);
    white-space: nowrap;
}

/* --- Section Bridge --- */

.section-bridge {
    text-align: center;
    margin: 2.5rem 0 0.5rem;
    position: relative;
}

.section-bridge::before,
.section-bridge::after {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--color-border);
    vertical-align: middle;
    margin: 0 0.75rem;
}

.section-bridge p {
    display: inline;
    font-style: italic;
    font-size: var(--fs-caption);
    color: var(--color-text-secondary);
    text-align: center;
}

/* --- Odds Example --- */

.odds-example {
    background: var(--color-primary);
    color: var(--color-bg);
    padding: 1.5rem;
    border-radius: var(--component-radius);
    margin: 1.75rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.odds-example p {
    text-align: center;
    color: var(--color-bg);
    margin-bottom: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .odds-example {
        background: #1B4332;
        color: #E0DDD7;
    }
    .odds-example p {
        color: #E0DDD7;
    }
}

/* --- Card Grid --- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}

/* --- Comparison --- */

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.75rem 0;
}

@media (max-width: 600px) {
    .comparison {
        grid-template-columns: 1fr;
    }
}

/* --- Dos and Don'ts --- */

.dos-donts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.75rem 0;
}

.dos-donts>div:first-child p strong {
    color: var(--color-success);
}

.dos-donts>div:last-child p strong {
    color: var(--color-danger);
}

.dos-donts p {
    text-align: left;
    color: var(--color-text);
}

.dos-donts li {
    color: var(--color-text);
}

@media (max-width: 600px) {
    .dos-donts {
        grid-template-columns: 1fr;
    }
}

/* --- Pre-bet Checklist --- */

.pre-bet-checklist {
    margin: 1.75rem 0;
}

.pre-bet-checklist>p strong {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-caption);
    color: var(--color-accent);
}

.pre-bet-checklist ul {
    border-left: 2px solid var(--color-border);
    padding-left: 1.75rem;
    list-style: none;
}

.pre-bet-checklist li {
    position: relative;
    padding-left: 0.25rem;
    color: var(--color-text);
}

.pre-bet-checklist li::before {
    content: "\2610";
    position: absolute;
    left: -1.5rem;
    color: var(--color-accent);
    background: var(--color-bg);
    padding: 0 2px;
}

/* --- At a Glance --- */

.at-a-glance {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    margin: 1.75rem 0;
}

.at-a-glance>div {
    padding: 1rem 1.25rem;
    border-right: 1px solid var(--color-border);
}

.at-a-glance>div:last-child {
    border-right: none;
}

.at-a-glance p {
    text-align: center;
    color: var(--color-text);
}

.at-a-glance p strong {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    display: block;
    margin-bottom: 0.25rem;
}

@media (max-width: 600px) {
    .at-a-glance {
        grid-template-columns: 1fr;
    }
    .at-a-glance>div {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    .at-a-glance>div:last-child {
        border-bottom: none;
    }
}

/* --- Worked Example --- */

.worked-example {
    background: var(--color-surface);
    padding: 1.5rem 1.75rem;
    border-radius: var(--component-radius);
    margin: 1.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.worked-example p {
    text-align: left;
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: var(--fs-body);
}

.worked-example p strong {
    font-family: var(--font-display);
    font-weight: 600;
}

/* --- Data Card --- */

.data-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--component-radius);
    padding: 1.25rem;
    margin: 1.75rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* --- Table Responsive --- */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

.table-responsive table {
    min-width: 480px;
}

/* ==========================================================================
5. HERO SECTION
========================================================================== */

[data-content="hero"] {
    background: linear-gradient(170deg, var(--color-primary) 0%, #0D2818 100%);
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(3rem, 8vw, 5rem);
    overflow: hidden;
    margin-bottom: var(--section-gap);
}

[data-content="hero"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient( 0deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px), repeating-linear-gradient( 90deg, transparent, transparent 39px, rgba(255, 255, 255, 0.03) 39px, rgba(255, 255, 255, 0.03) 40px);
    pointer-events: none;
}

[data-content="hero"]::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    [data-content="hero"] {
        background: linear-gradient(170deg, #1B4332 0%, #0A1F14 100%);
    }
    [data-content="hero"]::after {
        background: linear-gradient(to bottom, transparent, var(--color-bg));
    }
}

.hero-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

[data-content="hero"] h1 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-align: center;
}

.hero-subtitle {
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 0;
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.badge-date,
.badge-trust {
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ==========================================================================
5b. TABLE OF CONTENTS — Grid 2 columns
========================================================================== */

[data-content="toc"] {
    max-width: var(--content-width);
    margin: 0 auto var(--section-gap);
    padding: 0 1.25rem;
}

.toc-nav {
    column-count: 2;
    column-gap: 2.5rem;
}

.toc-nav>ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-group {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.toc-group>a {
    display: block;
    font-weight: 600;
    font-size: var(--fs-body);
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: color 0.2s ease;
}

.toc-group>a:hover {
    color: var(--color-accent);
}

.toc-sub {
    list-style: none;
    padding: 0.25rem 0 0.25rem 1rem;
    margin: 0;
}

.toc-sub li a {
    display: block;
    font-size: var(--fs-caption);
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
}

.toc-sub li a:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .toc-nav {
        column-count: 1;
    }
}

/* ==========================================================================
6. FAQ ACCORDION
========================================================================== */

details {
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    interpolate-size: allow-keywords;
}

summary {
    cursor: pointer;
    font-weight: 600;
    font-size: var(--fs-body);
    padding: 1rem 2rem 1rem 0;
    position: relative;
    list-style: none;
    color: var(--color-text);
    transition: color 0.2s ease;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: "\2212";
    transform: translateY(-50%) rotate(0deg);
}

summary:hover {
    color: var(--color-primary);
}

summary:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

::details-content {
    opacity: 0;
    block-size: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}

details[open]::details-content {
    opacity: 1;
    block-size: auto;
    overflow: visible;
}

details[open]>div {
    padding-bottom: 1rem;
}

details[open]>div p {
    text-align: left;
    color: var(--color-text);
}

@supports not selector(::details-content) {
    details[open]>*:not(summary) {
        animation: faq-fade 0.3s ease forwards;
    }
    @keyframes faq-fade {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==========================================================================
8. MEDIA QUERIES
========================================================================== */

@media (max-width: 600px) {
    [data-content] {
        padding: 0 0;
    }
    [data-content="hero"] {
        padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem);
    }
    .glossary-term {
        flex-direction: column;
        gap: 0.25rem;
    }
}