/*
Theme Name: WP Pro
Theme URI: https://wp-pro.com/wp-pro
Author: Developer
Author URI: https://wp-pro.com
Description: Lightweight, SEO-optimized WordPress theme with clean typography and responsive design.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-pro
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================
   CSS Variables
   ============================ */
:root {
    --wp-color-primary: #1a1a2e;
    --wp-color-accent: #0f3460;
    --wp-color-highlight: #e94560;
    --wp-color-text: #2d3436;
    --wp-color-text-light: #636e72;
    --wp-color-bg: #ffffff;
    --wp-color-bg-alt: #f8f9fa;
    --wp-color-border: #e1e5e9;
    --wp-color-link: #0f3460;
    --wp-color-link-hover: #e94560;
    --wp-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --wp-font-mono: "SF Mono", "Fira Code", "Roboto Mono", monospace;
    --wp-radius: 8px;
    --wp-radius-lg: 12px;
    --wp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --wp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --wp-transition: 0.25s ease;
    --wp-container: 1200px;
    --wp-content-width: 800px;
    --content-width: 800px;
}

/* ============================
   Reset & Base
   ============================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--wp-font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp-color-text);
    background: var(--wp-color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wp-color-link);
    text-decoration: none;
    transition: color var(--wp-transition);
}

a:hover {
    color: var(--wp-color-link-hover);
}

/* ============================
   Layout
   ============================ */
.container,
.articles-container {
    max-width: var(--wp-container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

main {
    min-height: 60vh;
    padding: 2rem 0;
}

main>article,
main>.content,
main>header,
main>section,
main>.no-content {
    max-width: var(--wp-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ============================
   Typography
   ============================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--wp-color-primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.875rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1.25em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--wp-color-highlight);
    background: var(--wp-color-bg-alt);
    border-radius: 0 var(--wp-radius) var(--wp-radius) 0;
    font-style: italic;
    color: var(--wp-color-text-light);
}

blockquote p:last-child {
    margin-bottom: 0;
}

pre,
code {
    font-family: var(--wp-font-mono);
    font-size: 0.9em;
}

pre {
    background: var(--wp-color-primary);
    color: #e8e8e8;
    padding: 1.25rem;
    border-radius: var(--wp-radius);
    overflow-x: auto;
    margin: 1.5em 0;
    line-height: 1.5;
}

code {
    background: var(--wp-color-bg-alt);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

pre code {
    background: none;
    padding: 0;
}

ul,
ol {
    padding-left: 1.5em;
    margin: 0 0 1.25em;
}

li {
    margin-bottom: 0.35em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

th,
td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp-color-border);
    text-align: left;
}

th {
    background: var(--wp-color-bg-alt);
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid var(--wp-color-border);
    margin: 2em 0;
}

/* ============================
   Entry Header & Content
   ============================ */
.entry-header {
    margin-bottom: 2rem;
}

.entry-header .header-content {
    max-width: var(--wp-content-width);
    margin: 0 auto;
}

.title,
h1.title {
    margin-top: 0;
    text-align: center;
}

.post-thumbnail {
    margin: 1.5rem 0;
    border-radius: var(--wp-radius-lg);
    overflow: hidden;
}

.post-thumbnail img,
.hero-banner {
    width: 100%;
    border-radius: var(--wp-radius-lg);
    object-fit: cover;
}

.content {
    max-width: var(--wp-content-width);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.content img {
    border-radius: var(--wp-radius);
    margin: 1em 0;
}

.content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content a:hover {
    text-decoration: none;
}

/* ============================
   Header Meta
   ============================ */
.header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--wp-color-text-light);
}

.header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.header-meta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.header-meta time {
    font-size: 0.9rem;
}

/* ============================
   Breadcrumbs
   ============================ */
.breadcrumbs {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--wp-color-text-light);
    max-width: var(--wp-container);
    margin: 0 auto 1rem;
    text-align: center;
}

.breadcrumbs a {
    color: var(--wp-color-text-light);
}

.breadcrumbs a:hover {
    color: var(--wp-color-link-hover);
}

.breadcrumbs .separator {
    margin: 0 0.4em;
    opacity: 0.5;
}

.breadcrumbs .current {
    color: var(--wp-color-text);
    font-weight: 500;
}

.child-pages-small-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .child-pages-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .child-pages-small-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   TOC
   ============================ */
.toc-wrap {
    background: var(--wp-color-bg-alt);
    border: 1px solid var(--wp-color-border);
    border-radius: var(--wp-radius-lg);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.toc-wrap__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--wp-color-primary);
    cursor: pointer;
}

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

.toc-list li {
    margin-bottom: 0.35rem;
}

.toc-list li a {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--wp-color-text);
    font-size: 0.95rem;
    transition: color var(--wp-transition), padding-left var(--wp-transition);
}

.toc-list li a:hover {
    color: var(--wp-color-link-hover);
    padding-left: 4px;
}

.toc-gotop {
    font-size: 0.8rem;
    color: var(--wp-color-text-light);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.toc-anchlink {
    color: var(--wp-color-text-light);
    opacity: 0;
    transition: opacity var(--wp-transition);
    margin-right: 0.25rem;
}

h2:hover .toc-anchlink,
h3:hover .toc-anchlink,
h4:hover .toc-anchlink {
    opacity: 1;
}

/* ============================
   Footer
   ============================ */
.footer-navigation {
    background: var(--wp-color-bg-alt);
    border-top: 1px solid var(--wp-color-border);
    padding: 1.5rem 1.25rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: var(--wp-container);
}

.footer-menu li a {
    color: var(--wp-color-text-light);
    font-size: 0.9rem;
}

.footer-menu li a:hover {
    color: var(--wp-color-link-hover);
}

/* ============================
   404 & Empty States
   ============================ */
.error-404,
.no-content {
    text-align: center;
    padding: 4rem 1.25rem;
}

.error-404 .page-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 1rem;
}

.error-404 .page-content p {
    color: var(--wp-color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-404 .button,
.home-link .button,
.no-content a {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--wp-color-accent);
    color: #fff;
    border-radius: var(--wp-radius);
    font-weight: 600;
    transition: background var(--wp-transition), transform var(--wp-transition);
}

.error-404 .button:hover,
.home-link .button:hover,
.no-content a:hover {
    background: var(--wp-color-highlight);
    color: #fff;
    transform: translateY(-1px);
}

.pages-list {
    margin-top: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.pages-list ul {
    list-style: none;
    padding: 0;
}

.pages-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--wp-color-border);
}

/* ============================
   Author Box
   ============================ */
.author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--wp-color-bg-alt);
    border: 1px solid var(--wp-color-border);
    border-radius: var(--wp-radius-lg);
    margin: 2rem 0;
}

.author-avatar img {
    border-radius: 50%;
}

.author-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.author-header .h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.verified-badge svg {
    width: 20px;
    height: 20px;
    color: #0984e3;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--wp-color-text-light);
    margin: 0 0 0.5rem;
}

.author-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--wp-color-text-light);
}

.author-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.author-stat svg {
    width: 16px;
    height: 16px;
}

/* ============================
   Pagination & Page Links
   ============================ */
.page-links {
    margin: 2rem 0;
    font-weight: 600;
}

/* ============================
   WP Alignment
   ============================ */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-block-image figcaption,
.wp-block-embed figcaption {
    font-size: 0.85rem;
    color: var(--wp-color-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================
   Accessibility
   ============================ */
.screen-reader-text,
.um-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--wp-color-accent);
    outline-offset: 2px;
}

/* ============================
   Print
   ============================ */
@media print {

    .um-header,
    .footer-navigation,
    .breadcrumbs,
    .toc-wrap,
    .toc-gotop {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* ============================
   Responsive
   ============================ */
/* ============================
   Header Navigation (inline CSS moved here)
   ============================ */
.um-header *,
.um-header *::before,
.um-header *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    text-decoration: none;
    list-style: none;
}

.um-header {
    --um-primary-color: #333;
    --um-bg-color: #fff;
    --um-hover-color: inherit;
    --um-border-color: #ddd;
    --um-transition: 0.3s ease;
    --um-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    all: initial;
    font-family: inherit;
    display: block;
    position: relative;
    background-color: var(--um-bg-color);
    color: var(--um-primary-color);
}

.um-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 1rem;
    gap: 1rem;
}

.um-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: bold;
}

.um-logo__image {
    display: block;
    max-width: 200px;
    height: auto;
}

.um-logo__text {
    font-size: 1.25rem;
}

.um-logo-text {
    text-decoration: none;
    color: inherit;
    font-weight: bold;
    font-size: 1.25rem;
}

.um-burger {
    --um-burger-width: 30px;
    --um-burger-height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: var(--um-burger-width);
    height: var(--um-burger-height);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.um-burger__line {
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 1px;
    transition: transform var(--um-transition), opacity var(--um-transition);
}

.um-burger[aria-expanded="true"] .um-burger__line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.um-burger[aria-expanded="true"] .um-burger__line:nth-child(2) {
    opacity: 0;
}

.um-burger[aria-expanded="true"] .um-burger__line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.um-navigation {
    position: relative;
    z-index: 1000;
}

.um-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.um-menu-item {
    position: relative;
}

.um-menu-item__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.um-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none !important;
    flex: 1;
    transition: color var(--um-transition);
    border-radius: 4px;
}

a.um-menu-link:hover {
    color: var(--um-hover-color);
    background-color: rgba(0, 0, 0, 0.03);
}

.um-menu-item--current>.um-menu-item__inner>.um-menu-link {
    color: var(--um-hover-color);
    font-weight: 600;
}

.um-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background-color var(--um-transition);
}

.um-menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.um-menu-toggle__icon {
    transition: transform var(--um-transition);
}

.um-menu-toggle[aria-expanded="true"] .um-menu-toggle__icon {
    transform: rotate(180deg);
}

.um-sub-menu {
    display: none;
    min-width: 200px;
    background-color: var(--um-bg-color);
    box-shadow: var(--um-shadow);
    border: 1px solid var(--um-border-color);
    border-radius: 6px;
}

.um-sub-menu--depth-0 {
    position: absolute;
}

.um-sub-menu--depth-1 {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
}

.um-sub-menu--depth-2 {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0.5rem;
}

.um-sub-menu.active {
    display: block;
}

.um-sub-menu .um-menu-link {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    text-align: left;
}

@media (max-width: 1023px) {
    .um-burger {
        display: flex;
    }

    .um-menu-link {
        text-align: left;
        ;
    }

    .um-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--um-bg-color);
        transition: left var(--um-transition);
        overflow-y: auto;
        padding: 5rem 1rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .um-navigation.active {
        left: 0;
    }

    .um-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .um-overlay.active {
        display: block;
    }

    .um-sub-menu--depth-1,
    .um-sub-menu--depth-2 {
        position: static;
        margin-left: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
    }
}

@media (min-width: 1024px) {
    .um-container {
        flex-wrap: nowrap;
    }

    .um-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .um-menu-toggle {
        display: none;
    }

    .um-menu-item--has-children:hover>.um-sub-menu {
        display: block;
    }

    .um-menu-item:last-child .um-sub-menu--depth-1,
    .um-menu-item:nth-last-child(2) .um-sub-menu--depth-1 {
        left: auto;
        right: 0;
    }
}

.um-menu-toggle:focus-visible,
.um-menu-link:focus-visible,
.um-burger:focus-visible {
    outline: 2px solid var(--um-hover-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .um-header * {
        transition: none !important;
        animation: none !important;
    }
}

.um-header.um-theme-dark {
    --um-primary-color: inherit;
    --um-bg-color: inherit;
    --um-hover-color: inherit;
    --um-border-color: inherit;
}

/* ============================
   Header Variant: CENTERED
   ============================ */
.um-header--centered .um-container--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.um-header--centered .um-centered-logo {
    margin-bottom: 0.25rem;
}

.um-header--centered .um-centered-nav .um-menu {
    justify-content: center;
}

@media (max-width: 1023px) {
    .um-header--centered .um-container--centered {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================
   Header Variant: MINIMAL
   ============================ */
@media (min-width: 1024px) {
    .um-header--minimal .um-burger {
        display: flex;
    }

    .um-header--minimal .um-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--um-bg-color);
        transition: left var(--um-transition);
        overflow-y: auto;
        padding: 5rem 1rem 2rem;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .um-header--minimal .um-navigation.active {
        left: 0;
    }

    .um-header--minimal .um-menu {
        flex-direction: column;
    }

    .um-header--minimal .um-menu-toggle {
        display: flex;
    }

    .um-header--minimal .um-menu-item--has-children:hover>.um-sub-menu {
        display: none;
    }

    .um-header--minimal .um-sub-menu.active {
        display: block;
    }

    .um-header--minimal .um-sub-menu--depth-1,
    .um-header--minimal .um-sub-menu--depth-2 {
        position: static;
        margin-left: 1rem;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
    }
}

/* ============================
   News Template (page-news.php)
   ============================ */
.news-main {
    padding: 2rem 0;
}

.news-header {
    margin-bottom: 2rem;
}

.news-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0;
}

.news-breadcrumbs {
    margin-bottom: 1rem;
}

/* Featured (first) post */
.news-featured {
    margin-bottom: 2.5rem;
    border-radius: var(--wp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--wp-color-border);
    transition: box-shadow var(--wp-transition);
}

.news-featured:hover {
    box-shadow: var(--wp-shadow-md);
}

.news-featured__link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 320px;
}

.news-featured__image {
    position: relative;
    overflow: hidden;
}

.news-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-featured__img {
    transform: scale(1.03);
}

.news-featured__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wp-color-accent), var(--wp-color-primary));
    color: rgba(255, 255, 255, 0.4);
}

.news-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.news-featured__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--wp-color-text-light);
    margin-bottom: 0.75rem;
}

.news-tag {
    display: inline-block;
    padding: 0.2em 0.6em;
    background: var(--wp-color-highlight);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-reading-time {
    opacity: 0.7;
}

.news-featured__title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.news-featured__excerpt {
    color: var(--wp-color-text-light);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.news-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--wp-color-accent);
    transition: gap var(--wp-transition);
}

.news-featured:hover .news-featured__cta {
    gap: 0.75rem;
}

/* Grid of remaining posts */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.news-card {
    border-radius: var(--wp-radius);
    overflow: hidden;
    border: 1px solid var(--wp-color-border);
    transition: box-shadow var(--wp-transition), transform var(--wp-transition);
}

.news-card:hover {
    box-shadow: var(--wp-shadow-sm);
    transform: translateY(-2px);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card__image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

.news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--wp-color-bg-alt);
    color: var(--wp-color-text-light);
}

.news-card__body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--wp-color-text-light);
    margin-bottom: 0.5rem;
}

.news-card__sep {
    opacity: 0.5;
}

.news-card__title {
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.news-card__excerpt {
    font-size: 0.875rem;
    color: var(--wp-color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* News empty state */
.news-empty {
    text-align: center;
    padding: 4rem 1.25rem;
}

.news-empty h2 {
    margin-top: 0;
}

.news-empty__link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--wp-color-accent);
    color: #fff;
    border-radius: var(--wp-radius);
    font-weight: 600;
    transition: background var(--wp-transition);
}

.news-empty__link:hover {
    background: var(--wp-color-highlight);
    color: #fff;
}

/* News responsive */
@media (max-width: 992px) {
    .news-featured__link {
        grid-template-columns: 1fr;
    }

    .news-featured__image {
        height: 250px;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-featured__body {
        padding: 1.25rem;
    }

    .news-featured__image {
        height: 200px;
    }

    .news-card__image {
        height: 160px;
    }
}

/* ============================
   Footer Bottom
   ============================ */
.footer-bottom {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--wp-color-text-light);
    border-top: 1px solid var(--wp-color-border);
}

.footer-copyright {
    text-align: center !important;
}

.footer-copyright a {
    color: var(--wp-color-text-light);
}

.footer-copyright a:hover {
    color: var(--wp-color-link-hover);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
    main {
        padding: 1.25rem 0;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-meta {
        justify-content: center;
    }
}

/* ============================
   Header Variant: Centered
   ============================ */
.um-header--centered .um-container--centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.um-header--centered .um-centered-logo {
    margin-bottom: 0.5rem;
}

.um-header--centered .um-centered-nav {
    width: 100%;
}

.um-header--centered .um-menu {
    justify-content: center;
}

@media (max-width: 1023px) {
    .um-header--centered .um-container--centered {
        flex-direction: row;
        justify-content: space-between;
    }

    .um-header--centered .um-centered-logo {
        margin-bottom: 0;
    }
}

/* ============================
   Header Variant: Minimal
   ============================ */
.um-header--minimal .um-navigation {
    /* Hide desktop menu completely — only mobile drawer */
    display: none;
}

.um-header--minimal .um-burger {
    display: flex;
    /* Always show burger */
}

/* When burger opens drawer */
.um-header--minimal .um-navigation.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--um-bg-color);
    overflow-y: auto;
    padding: 5rem 1rem 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* ============================
   News Template
   ============================ */
.news-main {
    padding: 2rem 0;
}

.news-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.news-page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0;
}

.news-breadcrumbs {
    margin-bottom: 1rem;
}

/* Featured (hero) card */
.news-featured {
    margin-bottom: 2.5rem;
    border-radius: var(--wp-radius-lg);
    overflow: hidden;
    background: var(--wp-color-bg-alt);
    border: 1px solid var(--wp-color-border);
    transition: box-shadow var(--wp-transition);
}

.news-featured:hover {
    box-shadow: var(--wp-shadow-md);
}

.news-featured__link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    text-decoration: none;
    color: inherit;
    min-height: 340px;
}

.news-featured__image {
    position: relative;
    overflow: hidden;
}

.news-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-featured__img {
    transform: scale(1.03);
}

.news-featured__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--wp-color-accent) 0%, var(--wp-color-primary) 100%);
    color: rgba(255, 255, 255, 0.4);
}

.news-featured__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.5rem;
}

.news-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--wp-color-text-light);
    margin-bottom: 0.75rem;
}

.news-tag {
    display: inline-block;
    background: var(--wp-color-highlight);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-featured__title {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    color: var(--wp-color-primary);
}

.news-featured__excerpt {
    color: var(--wp-color-text-light);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.news-featured__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--wp-color-accent);
    transition: gap var(--wp-transition);
}

.news-featured:hover .news-featured__cta {
    gap: 0.8rem;
}

@media (max-width: 768px) {
    .news-featured__link {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .news-featured__image {
        height: 220px;
    }

    .news-featured__body {
        padding: 1.25rem;
    }
}

/* Grid cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.news-card {
    border-radius: var(--wp-radius-lg);
    overflow: hidden;
    background: var(--wp-color-bg);
    border: 1px solid var(--wp-color-border);
    transition: box-shadow var(--wp-transition), transform var(--wp-transition);
}

.news-card:hover {
    box-shadow: var(--wp-shadow-md);
    transform: translateY(-2px);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card__image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card__img {
    transform: scale(1.05);
}

.news-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3e3e3f 0%, #5c5b5d 100%);
    color: rgba(255, 255, 255, 0.4);
}

.news-card__body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card__meta {
    font-size: 0.8rem;
    color: var(--wp-color-text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-card__sep {
    opacity: 0.5;
}

.news-card__title {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--wp-color-primary);
}

.news-card__excerpt {
    font-size: 0.9rem;
    color: var(--wp-color-text-light);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-card__image {
        height: 160px;
    }
}

/* News pagination */
.news-pagination {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.news-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.news-pagination li {
    margin: 0;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--wp-radius);
    text-decoration: none;
    color: var(--wp-color-text);
    font-weight: 500;
    border: 1px solid var(--wp-color-border);
    transition: all var(--wp-transition);
}

.news-pagination .current {
    background: var(--wp-color-accent);
    color: #fff;
    border-color: var(--wp-color-accent);
}

.news-pagination a.page-numbers:hover {
    background: var(--wp-color-bg-alt);
    border-color: var(--wp-color-accent);
}

.news-empty {
    text-align: center;
    padding: 4rem 0;
}

.news-empty h2 {
    margin-top: 0;
}

.news-empty__link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--wp-color-accent);
    color: #fff;
    border-radius: var(--wp-radius);
    font-weight: 600;
    margin-top: 1rem;
}

.news-empty__link:hover {
    background: var(--wp-color-highlight);
    color: #fff;
}

.news-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================
   Sitemap (moved from inline)
   ============================ */
.sitemap-content {
    margin: 30px 0;
}

.sitemap-section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: var(--wp-radius);
}

.sitemap-section h2 {
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sitemap-section h3 {
    color: var(--wp-color-text-light);
    margin: 15px 0 10px;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sitemap-list .has-children {
    grid-column: span 3;
}

.sitemap-list.depth-1 {
    padding: 16px 0px;
}

@media (max-width: 1024px) {
    .sitemap-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitemap-list .has-children {
        grid-column: span 2;
    }
}

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

    .sitemap-list .has-children {
        grid-column: span 1;
    }
}

.sitemap-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.sitemap-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--wp-color-accent);
}

.sitemap-list a {
    text-decoration: none;
    color: inherit;
    transition: color var(--wp-transition);
}

.sitemap-list a:hover {
    color: var(--wp-color-link-hover);
}

.category-group {
    margin-bottom: 20px;
}

.tags-cloud {
    line-height: 2;
}

.tag {
    display: inline-block;
    background: var(--wp-color-bg-alt);
    padding: 5px 10px;
    margin: 3px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--wp-color-text);
    font-size: 0.875rem;
    border: 1px solid var(--wp-color-border);
    transition: all var(--wp-transition);
}

.tag:hover {
    background: var(--wp-color-accent);
    color: #fff;
    border-color: var(--wp-color-accent);
}

/*  */
[data-content] {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    margin-bottom: var(--section-gap);
}

.articles-main {
    padding: 20px 0;
}

.articles-breadcrumbs {
    margin-bottom: 20px;
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-page-title {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
}

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

.articles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.article-item {
    flex: 1 1 calc(50% - 30px);
    min-width: 300px;
    box-sizing: border-box;
}

.article-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.article-card__image-link {
    display: block;
    text-decoration: none;
}

.article-card__image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.article-card__img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__img {
    transform: scale(1.05);
}

.article-card__image--placeholder {
    background: linear-gradient(135deg, #e0e6fe 0%, #353337 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 60px;
    opacity: 0.7;
}

.article-card__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card__header {
    margin-bottom: 15px;
}

.article-card__title {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    line-height: 1.3;
}

.article-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card__title a:hover {
    color: inherit;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: inherit;
}

.article-meta__separator {
    color: #999;
    font-size: 0.9em;
}

.article-meta__date,
.article-meta__author,
.article-meta__category,
.article-meta__time {
    display: inline-flex;
    align-items: center;
}

.article-card__excerpt {
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.6;
    color: inherit;
}

.article-card__footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.article-card__read-more:hover {
    gap: 10px;
}

.read-more-arrow {
    transition: transform 0.3s ease;
}

.article-card__read-more:hover .read-more-arrow {
    transform: translateX(3px);
}

.articles-pagination {
    margin-top: 40px;
}

.articles-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
}

.articles-pagination li {
    margin: 0;
}

.articles-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

.articles-pagination .current {
    background: inherit;
    color: inherit;
    border-color: inherit;
}

.articles-pagination a.page-numbers:hover {
    background: inherit;
    border-color: inherit;
    color: inherit;
}

.articles-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    text-align: center;
}

.articles-empty__content {
    max-width: 500px;
}

.articles-empty__title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.articles-empty__text {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.articles-empty__link {
    display: inline-block;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.articles-empty__link:hover {
    background: #005a87;
}

@media (max-width: 992px) {
    .article-item {
        flex: 1 1 calc(50% - 30px);
    }

    .articles-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .articles-grid {
        gap: 20px;
    }

    .article-item {
        flex: 1 1 100%;
    }

    .article-card__content {
        padding: 20px;
    }

    .article-card__image {
        height: 180px;
    }

    .articles-page-title {
        font-size: 1.8rem;
    }

    .article-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .articles-container {
        padding: 0 15px;
    }

    .article-card__image {
        height: 160px;
    }

    .article-card__title {
        font-size: 1.2rem;
    }

    .articles-pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 0.9rem;
    }
}

/*  */

/* ─── General Typography ─── */

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

    h2 {
      font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
      margin-top: 0;
      margin-bottom: 1rem;
    }

    h3 {
      font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
      margin-top: 2rem;
      margin-bottom: 0.75rem;
      scroll-margin-top: 2rem;
    }

    p {
      text-align: left;
      margin-bottom: 1.25em;
    }

    a {
      color: var(--accent-secondary);
      text-decoration: underline;
      text-underline-offset: 2px;
      transition: color 0.2s ease;
    }

    a:hover {
      color: var(--accent-hover);
    }

    a:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
      border-radius: 2px;
    }

    strong {
      font-weight: 700;
    }

    ul,
    ol {
      text-align: left;
      padding-left: 1.5em;
      margin-bottom: 1.25em;
    }

    li {
      margin-bottom: 0.5em;
    }

    blockquote {
      border-left: 3px solid var(--accent);
      padding-left: 1.25em;
      margin: 1.5em 0;
      font-style: italic;
      color: var(--text-secondary);
    }

    figure {
      margin: 1.5em auto;
    }

    figure img {
      display: block;
      max-width: 100%;
      height: auto;
    }

    figcaption {
      text-align: center;
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-top: 0.5rem;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5em 0;
      font-size: 0.95rem;
    }

    th,
    td {
      text-align: left;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    th {
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
      background-color: var(--bg-page);
    }

    hr {
      border: none;
      border-top: 1px solid var(--border-color);
      margin: 2rem 0;
    }

    /* ─── Layout Sections ─── */

    [data-content] {
      max-width: var(--content-width);
      margin-left: auto;
      margin-right: auto;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
      margin-bottom: var(--section-gap);
    }

    h2[id] {
      scroll-margin-top: 2rem;
    }

    /* ─── Site Header ─── */

    .site-header {
      background-color: var(--bg-header);
      border-bottom: 1px solid var(--border-color);
      padding: 0.75rem 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 10;
    }

    .site-logo img {
      display: block;
      width: 200px;
      height: auto;
    }

    .header-meta {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .header-badge {
      font-family: var(--font-body);
      font-size: 0.75rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }

    .header-trust {
      font-family: var(--font-body);
      font-size: 0.7rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      border-left: 1px solid var(--border-color);
      padding-left: 1rem;
    }

    /* ─── Hero Section ─── */

    [data-content="hero"] {
      width: 100%;
      background-color: var(--bg-page);
      padding-top: 3.5rem;
      padding-bottom: 3rem;
      text-align: center;
      margin-bottom: 0;
    }

    [data-content="hero"]>* {
      position: relative;
      z-index: 1;
    }

    [data-content="hero"] .hero-rubric {
      font-family: var(--font-body);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--accent);
      margin-bottom: 1.25rem;
      text-align: center;
    }

    [data-content="hero"] h1 {
      font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
      text-align: center;
      max-width: var(--content-width);
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 1rem;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    [data-content="hero"] .hero-description {
      font-size: 1.1rem;
      color: var(--text-secondary);
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 1.5rem;
      text-align: center;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    [data-content="hero"] .hero-byline {
      font-size: 0.85rem;
      color: var(--text-secondary);
      margin-bottom: 1.5rem;
      text-align: center;
    }

    [data-content="hero"] .hero-date {
      font-size: 0.75rem;
      color: var(--text-secondary);
      text-align: center;
      margin-bottom: 2rem;
    }

    [data-content="hero"] figure {
      max-width: var(--content-width);
      margin-left: auto;
      margin-right: auto;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    [data-content="hero"] figure img {
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
    }

    .hero-cta {
      display: inline-block;
      margin-top: 1.5rem;
      padding: 0.65rem 1.75rem;
      font-family: var(--font-heading);
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--text-primary);
      background-color: var(--accent);
      border: none;
      border-radius: 6px;
      text-decoration: none;
      transition: background-color 0.2s ease, transform 0.15s ease;
      text-align: center;
    }

    .hero-cta:hover {
      background-color: var(--accent-hover);
      color: var(--text-primary);
      transform: translateY(-1px);
    }

    /* ─── Article Image ─── */

    .article-image {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 6px;
    }

    /* ─── Components: TL;DR ─── */

    .tldr {
      background-color: var(--bg-card);
      border-left: 4px solid var(--accent);
      padding: 1.5rem 1.75rem;
      border-radius: 0 6px 6px 0;
      box-shadow: 0 1px 4px var(--shadow-card);
    }

    .tldr h2 {
      font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
      margin-bottom: 1rem;
      color: var(--text-primary);
    }

    .tldr ul {
      margin-bottom: 0;
    }

    .tldr li {
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 0.75em;
    }

    .tldr li:last-child {
      margin-bottom: 0;
    }

    /* ─── Components: Info Box ─── */

    .info-box {
      background-color: var(--bg-card);
      border-left: 4px solid var(--accent);
      padding: 1.25rem 1.5rem;
      border-radius: 0 6px 6px 0;
      box-shadow: 0 2px 8px var(--shadow-card);
      margin: 1.75em 0;
    }

    .info-box p {
      text-align: left;
      margin-bottom: 0.75em;
      font-size: 0.95rem;
    }

    .info-box p:last-child {
      margin-bottom: 0;
    }

    .info-box strong {
      font-family: var(--font-heading);
      font-size: 0.95rem;
    }

    /* ─── Components: Callout ─── */

    .callout {
      background-color: var(--green-tint);
      border-left: 4px solid var(--accent);
      padding: 1.25rem 1.5rem;
      border-radius: 0 6px 6px 0;
      margin: 1.75em 0;
    }

    .callout p {
      text-align: left;
      margin-bottom: 0;
      font-size: 0.95rem;
      color: var(--text-primary);
    }

    /* ─── Components: Key Takeaway ─── */

    .key-takeaway {
      border-top: 2px solid var(--accent);
      padding-top: 1rem;
      margin: 2em 0;
    }

    .key-takeaway p {
      text-align: left;
      font-family: var(--font-heading);
      font-size: clamp(1.15rem, 1rem + 0.4vw, 1.35rem);
      font-weight: 600;
      line-height: 1.4;
      color: var(--text-primary);
      margin-bottom: 0;
    }

    /* ─── Components: Fun Fact ─── */

    .fun-fact {
      position: relative;
      padding-left: 1.5rem;
      margin: 1.75em 0;
    }

    .fun-fact::before {
      content: "\2014";
      position: absolute;
      left: 0;
      top: 0;
      color: var(--accent);
      font-weight: 700;
    }

    .fun-fact p {
      text-align: left;
      font-style: italic;
      color: var(--text-secondary);
      margin-bottom: 0;
      font-size: 0.95rem;
      line-height: 1.65;
    }

    /* ─── Components: Glossary Term ─── */

    .glossary-term {
      display: flex;
      align-items: baseline;
      gap: 12px;
      margin: 1em 0;
    }

    .glossary-term strong {
      font-family: var(--font-mono);
      font-size: 0.9rem;
      color: var(--accent-secondary);
      text-decoration: underline;
      text-underline-offset: 3px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .glossary-term span {
      font-family: var(--font-body);
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    /* ─── Components: Dos / Don'ts ─── */

    .dos-donts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin: 1.75em 0;
    }

    .dos-donts>div:first-child {
      border-top: 3px solid var(--accent);
      padding-top: 1rem;
    }

    .dos-donts>div:last-child {
      border-top: 3px solid var(--danger);
      padding-top: 1rem;
    }

    .dos-donts strong {
      font-family: var(--font-heading);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      display: block;
      margin-bottom: 0.75rem;
    }

    .dos-donts>div:first-child strong {
      color: var(--accent);
    }

    .dos-donts>div:last-child strong {
      color: var(--danger);
    }

    .dos-donts ul {
      padding-left: 1.25em;
      margin-bottom: 0;
    }

    .dos-donts li {
      font-size: 0.9rem;
      line-height: 1.55;
    }

    /* ─── Components: Pre-Bet Checklist ─── */

    .pre-bet-checklist {
      margin: 1.75em 0;
    }

    .pre-bet-checklist>p>strong {
      display: block;
      font-family: var(--font-heading);
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .pre-bet-checklist ul {
      border-left: 2px solid var(--border-color);
      padding-left: 1.75rem;
      list-style: none;
    }

    .pre-bet-checklist li {
      position: relative;
      font-size: 0.95rem;
      line-height: 1.6;
      margin-bottom: 0.75em;
    }

    .pre-bet-checklist li::before {
      content: "\2610";
      position: absolute;
      left: -1.65rem;
      color: var(--accent);
      background-color: var(--bg-page);
      font-size: 0.9rem;
      line-height: 1.7;
    }

    /* ─── Components: At a Glance ─── */

    .at-a-glance {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 0;
      margin: 1.75em 0;
      background-color: var(--bg-card);
      border-radius: 8px;
      box-shadow: 0 2px 8px var(--shadow-card);
      overflow: hidden;
    }

    .at-a-glance>div {
      padding: 1.25rem 1rem;
      border-right: 1px solid var(--border-color);
      text-align: center;
    }

    .at-a-glance>div:last-child {
      border-right: none;
    }

    .at-a-glance strong {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.7rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--text-secondary);
      margin-bottom: 0.4rem;
    }

    .at-a-glance p {
      text-align: center;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 0;
      line-height: 1.3;
    }

    .at-a-glance p:first-child {
      margin-bottom: 0;
    }

    /* ─── Components: Card Grid ─── */

    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin: 1.75em 0;
    }

    .card-grid>div {
      background-color: var(--bg-card);
      padding: 1.25rem;
      border-radius: 8px;
      box-shadow: 0 2px 8px var(--shadow-card);
      border-top: 3px solid var(--accent);
    }

    .card-grid p {
      text-align: left;
      font-size: 0.9rem;
      margin-bottom: 0.5em;
    }

    .card-grid p:last-child {
      margin-bottom: 0;
    }

    .card-grid strong {
      font-family: var(--font-heading);
      font-size: 0.95rem;
    }

    /* ─── Components: Comparison ─── */

    .comparison {
      margin: 1.75em 0;
      overflow-x: auto;
    }

    .comparison table {
      min-width: 500px;
    }

    .comparison th {
      background-color: var(--accent);
      color: var(--text-primary);
      font-size: 0.8rem;
    }

    .comparison td {
      font-size: 0.9rem;
      vertical-align: top;
    }

    .comparison tr:nth-child(even) td {
      background-color: var(--bg-page);
    }

    /* ─── Components: Odds Example ─── */

    .odds-example {
      background-color: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 1.5rem;
      margin: 1.75em 0;
      box-shadow: 0 2px 8px var(--shadow-card);
    }

    .odds-example strong {
      display: block;
      font-family: var(--font-heading);
      font-size: 0.85rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--accent);
      margin-bottom: 0.75rem;
    }

    .odds-example p {
      text-align: left;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      line-height: 1.65;
      color: var(--text-primary);
      margin-bottom: 0;
    }

    /* ─── Components: Worked Example ─── */

    .worked-example {
      background-color: var(--bg-page);
      padding: 1.75rem;
      border-radius: 8px;
      margin: 1.75em 0;
      border: 1px solid var(--border-color);
    }

    .worked-example p {
      text-align: left;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      line-height: 1.65;
      color: var(--text-primary);
      margin-bottom: 0.75em;
    }

    .worked-example p:last-child {
      margin-bottom: 0;
    }

    .worked-example hr {
      border-top-color: var(--border-color);
      margin: 1rem 0;
    }

    .worked-example strong {
      color: var(--accent);
    }

    /* ─── Components: Section Bridge ─── */

    .section-bridge {
      text-align: center;
      margin: 2.5rem 0 1rem;
      position: relative;
    }

    .section-bridge::before,
    .section-bridge::after {
      content: "\00B7\00A0\00B7\00A0\00B7";
      color: var(--border-color);
      font-size: 1rem;
      letter-spacing: 0.3em;
    }

    .section-bridge p {
      text-align: center;
      font-style: italic;
      color: var(--accent);
      font-size: 0.95rem;
      margin: 0.5rem 0;
    }

    /* ─── Components: Author Bio ─── */

    .author-bio {
      display: block;
      font-size: 0.8rem;
      color: var(--text-secondary);
      font-style: italic;
      border-top: 1px solid var(--border-color);
      padding-top: 1rem;
      margin-top: 2rem;
      margin-bottom: var(--section-gap);
      line-height: 1.5;
    }

    /* ─── TOC: Compact Horizontal ─── */

    [data-content="toc-section"] {
      margin-bottom: 3rem;
    }

    .toc-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }

    .toc-bar a {
      display: inline-block;
      font-family: var(--font-heading);
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-secondary);
      text-decoration: none;
      padding: 0.4rem 0.85rem;
      border: 1px solid var(--border-color);
      border-radius: 20px;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .toc-bar a:hover {
      color: var(--text-primary);
      border-color: var(--accent);
      background-color: var(--green-tint);
    }

    /* ─── FAQ Accordion ─── */

    [data-content="faq"] details {
      border-bottom: 1px solid var(--border-color);
    }

    [data-content="faq"] details:first-of-type {
      border-top: 1px solid var(--border-color);
    }

    [data-content="faq"] summary {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.1rem 0;
      font-family: var(--font-heading);
      font-weight: 700;
      font-size: 1rem;
      color: var(--text-primary);
      cursor: pointer;
      list-style: none;
      transition: color 0.2s ease;
    }

    [data-content="faq"] summary::-webkit-details-marker {
      display: none;
    }

    [data-content="faq"] summary::after {
      content: "+";
      font-family: var(--font-mono);
      font-size: 1.2rem;
      font-weight: 400;
      color: var(--text-secondary);
      flex-shrink: 0;
      margin-left: 1rem;
      transition: transform 0.3s ease;
    }

    [data-content="faq"] details[open] summary::after {
      content: "\2212";
    }

    [data-content="faq"] summary:hover {
      color: var(--accent-secondary);
    }

    [data-content="faq"] details>div {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.35s ease, opacity 0.3s ease;
    }

    [data-content="faq"] details[open]>div {
      max-height: 500px;
      opacity: 1;
    }

    [data-content="faq"] details>div>p {
      padding-bottom: 1rem;
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.7;
    }

    /* ─── Footer ─── */

    .site-footer {
      background-color: var(--bg-footer);
      color: inherit;
      font-size: 0.8rem;
      line-height: 1.6;
      padding: 3rem 0 0;
      margin-top: var(--section-gap);
    }

    .footer-grid {
      max-width: 960px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      padding:2rem;
    }

    .footer-col .h4 {
      font-family: var(--font-heading);
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: inherit;
      margin-bottom: 0.75rem;
    }

    .footer-col p {
      text-align: left;
      color: #a0a4aa;
      font-size: 0.78rem;
      margin-bottom: 0.5em;
    }

    .footer-col a {
      color: #a0a4aa;
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-col a:hover {
      color: var(--accent);
    }

    .footer-col ul {
      list-style: none;
      padding-left: 0;
      margin-bottom: 0;
    }

    .footer-col li {
      margin-bottom: 0.35em;
    }

    .footer-bottom {
      max-width: 960px;
      padding-top: 1.25rem;
      text-align: center;
      font-size: 0.72rem;
      color: #777;
      margin: auto;
    }

    .footer-logo img {
      display: block;
      width: 140px;
      height: auto;
      margin-bottom: 1rem;
      filter: brightness(1.8);
    }

    /* ─── Responsive ─── */

    @media (max-width: 768px) {
      [data-content] {
        padding-left: 1rem;
        padding-right: 1rem;
      }

      .site-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
      }

      .header-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .header-trust {
        border-left: none;
        padding-left: 0;
      }

      [data-content="hero"] {
        padding-top: 2.5rem;
        padding-bottom: 2rem;
      }

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

      .at-a-glance {
        grid-template-columns: repeat(2, 1fr);
      }

      .at-a-glance>div {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
      }

      .at-a-glance>div:nth-child(odd) {
        border-right: 1px solid var(--border-color);
      }

      .at-a-glance>div:nth-last-child(-n+2) {
        border-bottom: none;
      }

      .dos-donts {
        grid-template-columns: 1fr;
      }

      .comparison {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
      }

      .glossary-term {
        flex-direction: column;
        gap: 4px;
      }

      .toc-bar {
        gap: 0.4rem;
      }

      .toc-bar a {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
      }

      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .at-a-glance {
        grid-template-columns: 1fr;
      }

      .at-a-glance>div {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
      }

      .at-a-glance>div:last-child {
        border-bottom: none;
      }

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