/* 
 * Theme 2026 Base Styles
 * Общие стили для всех страниц сайта
 * Включает: CSS переменные, типографику, header, footer, базовые компоненты
 */

/* Self-hosted fonts (eliminates Google Fonts external requests) */
/* Inter Variable - same build as Google Fonts v20, split by unicode-range */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter-Cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/Inter-CyrillicExt.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/SourceCodePro-Latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/SourceCodePro-LatinExt.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/SourceCodePro-Cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hand2Note balanced color palette - trust, reliability, professionalism, growth */
    /* Teal/Cyan - perfect balance between blue (trust) and green (growth) */
    --primary-color: #0D9488;
    --primary-dark: #0F766E;
    --primary-light: #14B8A6;
    --primary-hover: #0F766E;
    --primary-bg: #E6FFFA;
    --primary-bg-dark: #134E4A;
    
    /* Accent colors */
    --accent-color: #0891B2;
    --accent-light: #06B6D4;
    
    /* Text colors */
    --text-dark: #0F172A;
    --text-gray: #475569;
    --text-light: #64748B;
    --text-white: #FFFFFF;
    
    /* Backgrounds - professional and clean */
    --bg-white: #FFFFFF;
    --bg-light: #F0FDFA;
    --bg-lighter: #E6FFFA;
    --bg-section: #F0FDFA;
    --surface-1: #FFFFFF;
    --surface-2: #F0FDFA;
    --surface-3: #E6FFFA;
    
    /* Borders */
    --border-color: #CCFBF1;
    --border-light: #E6FFFA;
    --border-strong: #99F6E4;
    --text-muted: #64748B;
    --text-accent: #0D9488;
    
    /* Shadows - subtle and professional */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-primary: 0 4px 12px rgba(13, 148, 136, 0.2);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --primary-color: #22C6AE;
    --primary-dark: #159A88;
    --primary-light: #6EE7CF;
    --primary-hover: #1BAA98;
    --primary-bg: #123530;
    --primary-bg-dark: #0E2A26;
    --accent-color: #1FB39D;
    --accent-light: #4FD1BF;
    --text-dark: #E7ECE9;
    --text-gray: #C6D0CC;
    --text-light: #93A39C;
    --text-white: #FFFFFF;
    --bg-white: #0E1416;
    --bg-light: #151E21;
    --bg-lighter: #1B272B;
    --bg-section: #151E21;
    --surface-1: #151E21;
    --surface-2: #1A2428;
    --surface-3: #202E33;
    --border-color: #26363B;
    --border-light: #1E2C31;
    --border-strong: #2F4047;
    --text-muted: #9CB0AA;
    --text-accent: #6EE7CF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 4px 12px rgba(34, 198, 174, 0.24);
}

/* Keep nested scroll containers dark in Chromium/WebKit browsers. */
:root[data-theme="dark"] *:not(html):not(body) {
    scrollbar-color: #2A3136 #141A1D;
}

:root[data-theme="dark"] *:not(html):not(body)::-webkit-scrollbar-track {
    background: #141A1D;
}

:root[data-theme="dark"] *:not(html):not(body)::-webkit-scrollbar-thumb {
    background-color: #2A3136;
    border-radius: 999px;
    border: 1px solid #141A1D;
}


:root[data-theme="dark"] body {
    background: linear-gradient(180deg, rgba(14, 20, 22, 0.95) 300px, rgba(14, 20, 22, 0) 800px), #0E1416;
}

:root[data-theme="dark"] .site,
:root[data-theme="dark"] .site-content,
:root[data-theme="dark"] .content-area,
:root[data-theme="dark"] .widget-area {
    background-color: transparent;
    color: var(--text-dark);
}

:root[data-theme="dark"] .widget-area .widget_search .search-form,
:root[data-theme="dark"] .error-404 .page-content .search-form,
:root[data-theme="dark"] .no-results .page-content .search-form,
:root[data-theme="dark"] .search-form,
:root[data-theme="dark"] .header-account-dropdown,
:root[data-theme="dark"] .header-account-link,
:root[data-theme="dark"] .header-account-logout,
:root[data-theme="dark"] .nav-dropdown-menu,
:root[data-theme="dark"] .tool-format-tab.is-active,
:root[data-theme="dark"] .article-body table {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark);
}

:root[data-theme="dark"] .article-body table thead th,
:root[data-theme="dark"] .article-body table tbody tr:hover {
    background: var(--bg-lighter);
}

:root[data-theme="dark"] .article-body table th,
:root[data-theme="dark"] .article-body table td {
    border-bottom-color: var(--border-color);
}

:root[data-theme="dark"] .error-404 .page-content .search-form input[type="search"]:focus,
:root[data-theme="dark"] .error-404 .page-content .search-form .search-field:focus,
:root[data-theme="dark"] .no-results .page-content .search-form input[type="search"]:focus,
:root[data-theme="dark"] .no-results .page-content .search-form .search-field:focus {
    background: var(--bg-white);
}

:root[data-theme="dark"] .entry-content,
:root[data-theme="dark"] .article-body {
    color: var(--text-dark);
}

/* Critical dark first-paint styles stay in base to avoid late overrides flash. */
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
:root[data-theme="dark"] select:not(.footer-language-switcher),
:root[data-theme="dark"] textarea {
    background-color: var(--bg-light) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
    color: var(--text-light) !important;
}

:root[data-theme="dark"] body:not(.homepage-section) .site-main,
:root[data-theme="dark"] body:not(.homepage-section) .hentry,
:root[data-theme="dark"] body:not(.homepage-section) .entry-content,
:root[data-theme="dark"] body:not(.homepage-section) .article-main,
:root[data-theme="dark"] body:not(.homepage-section) .article-layout,
:root[data-theme="dark"] body:not(.homepage-section) .article-body {
    background: transparent !important;
    color: var(--text-dark);
}

:root[data-theme="dark"] body:not(.homepage-section) .toc-widget,
:root[data-theme="dark"] body:not(.homepage-section) .article-code-block,
:root[data-theme="dark"] body:not(.homepage-section) .article-quote,
:root[data-theme="dark"] body:not(.homepage-section) .article-image figcaption,
:root[data-theme="dark"] body:not(.homepage-section) .search .hentry,
:root[data-theme="dark"] body:not(.homepage-section) .archive .hentry {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
}

:root[data-theme="dark"] .author-box {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
}

:root[data-theme="dark"] body:not(.homepage-section) .recent-guide-link {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
}

:root[data-theme="dark"] body:not(.homepage-section) .recent-guide-link:hover {
    background: var(--bg-lighter) !important;
}

:root[data-theme="dark"] body:not(.homepage-section) .widget-area .widget_search .search-form input[type="search"],
:root[data-theme="dark"] body:not(.homepage-section) .error-404 .page-content .search-form input[type="search"],
:root[data-theme="dark"] body:not(.homepage-section) .no-results .page-content .search-form input[type="search"] {
    background: var(--bg-lighter) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

:root[data-theme="dark"] body.light-header-section .nav-dropdown-menu {
    background: var(--bg-light);
    border-color: var(--border-color);
}

/* Internal pages header (separate from homepage header) */
:root[data-theme="dark"] body:not(.light-header-section) .header {
    background: linear-gradient(135deg, #132325 0%, #173136 55%, #12272C 100%) !important;
    border-bottom: 1px solid rgba(110, 231, 207, 0.14) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .header::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(34, 198, 174, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(21, 154, 136, 0.1) 0%, transparent 52%) !important;
}

/* Keep Poker Guide header tone distinct from main guide in dark mode */
:root[data-theme="dark"] body.poker-guide-page:not(.light-header-section) .header {
    background: linear-gradient(135deg, #13292E 0%, #173A40 55%, #14333A 100%) !important;
}

:root[data-theme="dark"] body.poker-guide-page:not(.light-header-section) .header::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(58, 128, 150, 0.1) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(34, 92, 110, 0.1) 0%, transparent 52%) !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .nav-menu > li > a {
    color: rgba(231, 236, 233, 0.9) !important;
    border-bottom: none !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .nav-menu > li > a:hover {
    color: #F3F6F4 !important;
    background: transparent !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .nav-menu > li > a.active,
:root[data-theme="dark"] body:not(.light-header-section) .nav-menu > li.current-menu-item > a,
:root[data-theme="dark"] body:not(.light-header-section) .nav-menu > li.current_page_item > a {
    color: #EAF7F2 !important;
    background: transparent !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .search-toggle,
:root[data-theme="dark"] body:not(.light-header-section) .header-account-btn,
:root[data-theme="dark"] body:not(.light-header-section) .theme-toggle {
    color: rgba(231, 236, 233, 0.9) !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .search-toggle:hover,
:root[data-theme="dark"] body:not(.light-header-section) .header-account-btn:hover,
:root[data-theme="dark"] body:not(.light-header-section) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #F3F6F4 !important;
}

:root[data-theme="dark"] .header-avatar {
    background: #2f7f8b !important;
    color: #ffffff !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .nav-dropdown-menu {
    background: #17262B !important;
    border: 1px solid #2A3C42 !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .nav-dropdown-menu a:hover {
    background: rgba(34, 198, 174, 0.12) !important;
    color: #EAF7F2 !important;
}

:root[data-theme="dark"] .header-account-logout:hover {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.45) !important;
    background: rgba(127, 29, 29, 0.35) !important;
}

:root[data-theme="dark"] .header-account-link:hover {
    color: var(--text-accent) !important;
    border-color: var(--primary-color) !important;
    background: var(--primary-bg) !important;
}

:root[data-theme="dark"] .error-404,
:root[data-theme="dark"] .no-results {
    background: transparent;
}

:root[data-theme="dark"] .error-404 .entry-header h1,
:root[data-theme="dark"] .no-results .page-header .page-title {
    color: var(--text-dark) !important;
}

:root[data-theme="dark"] .error-404 .page-content p,
:root[data-theme="dark"] .no-results .page-content p {
    color: var(--text-gray) !important;
}

:root[data-theme="dark"] .error-404 .page-content .search-form,
:root[data-theme="dark"] .no-results .page-content .search-form {
    background: var(--bg-light) !important;
    border-color: var(--border-color) !important;
}

:root[data-theme="dark"] .error-404 .page-content .search-form input[type="search"],
:root[data-theme="dark"] .error-404 .page-content .search-form .search-field,
:root[data-theme="dark"] .no-results .page-content .search-form input[type="search"],
:root[data-theme="dark"] .no-results .page-content .search-form .search-field {
    background: var(--bg-lighter) !important;
    border-color: var(--border-color) !important;
    color: var(--text-dark) !important;
}

:root[data-theme="dark"] .error-404 .page-content .search-form input[type="search"]:focus,
:root[data-theme="dark"] .error-404 .page-content .search-form .search-field:focus,
:root[data-theme="dark"] .no-results .page-content .search-form input[type="search"]:focus,
:root[data-theme="dark"] .no-results .page-content .search-form .search-field:focus {
    background: var(--bg-white) !important;
}

:root[data-theme="dark"] .h2n-alert--warning,
:root[data-theme="dark"] .warning-block {
    background: #2A2213;
    border-color: #6B4F1D;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(180deg, rgba(252, 249, 247, 0.8) 300px, rgba(252, 249, 247, 0) 800px), #FFFFFF;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1E5631 0%, #2d6a62 50%, #1e4656 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    position: relative;
    z-index: 1;
}

/* Light header только для главных страниц */
body.light-header-section .header {
    background: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

body.light-header-section .header::before {
    display: none;
}

body.light-header-section .navbar {
    position: static;
    z-index: auto;
}

/* Poker Guide pages - blue shade to differentiate from main pages */
body.poker-guide-page .header {
    background: linear-gradient(135deg, #1e4656 0%, #2d6a7a 50%, #1e4b6a 100%) !important;
}

body.poker-guide-page .header::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(45, 106, 122, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 70, 90, 0.15) 0%, transparent 50%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo h1,
.logo .logo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

/* Light logo для главных страниц */
body.light-header-section .logo h1,
body.light-header-section .logo .logo-title {
    color: var(--text-dark);
    text-shadow: none;
}

.logo .reseller-badge,
a.reseller-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

/* Light badge для главных страниц */
body.light-header-section .logo .reseller-badge,
body.light-header-section a.reseller-badge {
    color: var(--primary-color) !important;
    background: rgba(20, 184, 166, 0.1) !important;
    border: none !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

/* Hide mobile menu on desktop */
.nav-menu-mobile {
    display: none !important;
}

/* Hide Poker Guide only on narrow tablet widths; keep it in mobile burger */
@media (min-width: 769px) and (max-width: 899px) {
    .nav-menu > li.nav-item-last-item {
        display: none;
    }
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
    opacity: 1;
}

/* Light menu для главных страниц */
body.light-header-section .nav-menu a {
    color: var(--text-dark);
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.light-header-section .nav-menu a:hover,
body.light-header-section .nav-menu a.active {
    color: var(--primary-color);
    opacity: 1;
}

body.light-header-section .nav-menu > li,
body.light-header-section .nav-menu > li > a,
body.light-header-section .nav-menu > li > a:hover,
body.light-header-section .nav-menu > li > a.active {
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Light mobile menu toggle для главных страниц */
body.light-header-section .mobile-menu-toggle span {
    background: var(--text-dark);
}

body.light-header-section .mobile-menu-toggle:hover {
    background: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(13, 148, 136, 0.05);
    border-color: var(--primary-hover);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* Legacy article action links (inline styles in old posts) */
a.article-action-link {
    display: inline-block !important;
    background-color: var(--primary-color) !important;
    color: #fff !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
    margin-right: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

a.article-action-link:hover,
a.article-action-link:focus {
    background-color: var(--primary-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    text-decoration: none !important;
}

a.article-action-link:active {
    background-color: var(--primary-dark) !important;
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
}

.section-title a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-color);
}

.section-subtitle {
    display: inline;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-gray);
    font-style: italic;
    opacity: 0.7;
    margin-left: 0.3rem;
}

.section-description {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
}

/* Footer */
.footer {
    background: #1F2937;
    color: #E5E7EB;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(13, 148, 136, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section .footer-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #E8ECEF;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 1rem;
    color: #9CA3AF;
    font-size: 14px;
}

.footer-bottom p a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom p a:hover {
    color: var(--primary-light);
}

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

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Footer Language Switcher */
.footer-language-switcher-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-icon:hover {
    color: var(--primary-light);
}

.footer-social-icon svg {
    display: block;
}

footer .footer-language-switcher {
    background: transparent;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    padding-right: 2rem;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    appearance: none;
    display: inline-block;
    width: auto;
    min-width: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

footer .footer-language-switcher:hover {
    color: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%230D9488' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

footer .footer-language-switcher:focus {
    outline: none;
    border-color: rgba(13, 148, 136, 0.4);
    color: var(--primary-light);
}

footer .footer-language-switcher option {
    background: #1F2937;
    color: #E5E7EB;
}

footer.site-light-footer .footer-language-switcher {
    color: #6B7280;
    border-color: rgba(0, 0, 0, 0.1);
}

footer.site-light-footer .footer-language-switcher:hover {
    color: var(--primary-color);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Content Area Styles */
.site-content {
    flex: 1 0 auto;
}

/* Layout for content area and sidebar */
body:not(.full-width-layout):not(.no-sidebar) .site-content {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 2rem;
}

/* Remove width restrictions from site-content when article-main is inside */
body.single .site-content,
body.page .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.full-width-layout):not(.no-sidebar) .content-area {
    flex: 1 1 0;
    min-width: 0;
    padding: 2rem 0;
}

body:not(.full-width-layout):not(.no-sidebar) .widget-area {
    flex: 0 0 320px;
    padding: 2rem 0;
}

/* Full width layout (no sidebar) */
body.full-width-layout .content-area,
body.no-sidebar .content-area {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FEF2F2 0%, #F0FDFA 50%, #FEF2F2 100%);
}

body.full-width-layout .site-main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px 0;
}

:root[data-theme="dark"] body.full-width-layout .content-area,
:root[data-theme="dark"] body.no-sidebar .content-area {
    background: transparent !important;
}

:root[data-theme="dark"] body.full-width-layout .site-main,
:root[data-theme="dark"] body.no-sidebar .site-main {
    background: transparent;
}

/* Default for pages without sidebar class */
.content-area {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.site-main {
    width: 100%;
}

/* Entry Styles */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

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

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.entry-content h1 {
    font-size: 2.25rem;
}

.entry-content h2 {
    font-size: 1.875rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content h5 {
    font-size: 1.125rem;
}

.entry-content h6 {
    font-size: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.entry-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-color);
}

/* Do not show link underline/border for image links in article content */
.entry-content figure.wp-block-image > a,
.entry-content figure.wp-block-image > a:hover {
    border-bottom: none !important;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #CBD5E1;
    padding: 1.25rem 1.5rem 1.25rem 2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-gray);
    background: #F8FAFC;
    border-radius: 8px;
}

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

.entry-content code {
    background: var(--bg-light);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Source Code Pro', monospace;
}

.entry-content pre {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* Article/Page Styles */
.hentry {
    margin-bottom: 3rem;
}

.hentry:last-child {
    margin-bottom: 0;
}

/* Consistent bottom padding for article and sidebar */
.hentry.article-content {
    margin-bottom: 0;
    padding-bottom: 6rem;
    min-width: 0;
}

.article-layout > .article-sidebar {
    padding-bottom: 6rem;
}

/* Navigation Styles */
.post-navigation,
.paging-navigation,
.comment-navigation {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links,
.paging-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next,
.paging-navigation .nav-previous,
.paging-navigation .nav-next {
    flex: 1;
}

.post-navigation a,
.paging-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover,
.paging-navigation a:hover {
    color: var(--primary-hover);
}

/* Page Header (Archives, Search) */
.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-title span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Sidebar Styles */
.widget-area {
    width: 100%;
    padding: 2rem 20px;
}

.widget {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

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

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.widget p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

.widget a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--primary-hover);
}

/* Widget Search */
.widget_search .search-form {
    display: flex;
    gap: 0.5rem;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.widget_search input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.widget_search input[type="submit"]:hover {
    background: var(--primary-hover);
}

/* Сайдбар: форма поиска — светлая, одна рамка, без padding у контейнера */
.widget-area .widget_search {
    padding: 0;
}

.widget-area .widget_search .search-form {
    background: white !important;
    border: 1px solid var(--border-color);
    backdrop-filter: none;
}

.widget-area .widget_search .search-form input[type="search"] {
    border: none;
}

@media (max-width: 1024px) {
    .widget-area .widget_search {
        display: none;
    }

    /* На странице поиска сайдбар скрыт (поиск+промо не показываются) — контент на всю ширину */
    body.search .widget-area {
        display: none;
    }

    body.search .site-content {
        flex-direction: column;
    }

    body.search .content-area {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* 404 и «Ничего не найдено» — общий блок и форма поиска (светлая, на всю ширину) */
.error-404,
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .entry-header h1,
.no-results .page-header .page-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-404 .page-content,
.no-results .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 .page-content p,
.no-results .page-content p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.error-404 .page-content .search-form,
.no-results .page-content .search-form {
    width: 100%;
    max-width: 560px;
    margin: 2rem auto 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-404 .page-content .search-form:before,
.no-results .page-content .search-form:before {
    display: none;
}

.error-404 .page-content .search-form label,
.no-results .page-content .search-form label {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    margin: 0;
}

.error-404 .page-content .search-form input[type="search"],
.error-404 .page-content .search-form .search-field,
.no-results .page-content .search-form input[type="search"],
.no-results .page-content .search-form .search-field {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    min-height: 52px;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.error-404 .page-content .search-form input[type="search"]:focus,
.error-404 .page-content .search-form .search-field:focus,
.no-results .page-content .search-form input[type="search"]:focus,
.no-results .page-content .search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.error-404 .page-content .search-form input[type="search"]::placeholder,
.no-results .page-content .search-form input[type="search"]::placeholder {
    color: var(--text-light);
}

.error-404 .page-content .search-form input[type="submit"],
.error-404 .page-content .search-form .search-submit,
.no-results .page-content .search-form input[type="submit"],
.no-results .page-content .search-form .search-submit {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 0;
    padding: 1rem 1.5rem;
    min-height: 52px;
    width: auto;
    height: auto;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-404 .page-content .search-form input[type="submit"]:hover,
.error-404 .page-content .search-form .search-submit:hover,
.no-results .page-content .search-form input[type="submit"]:hover,
.no-results .page-content .search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* Archive: список записей */
.archive .hentry {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.archive .hentry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Страница результатов поиска */
body.search {
    background: linear-gradient(135deg, #FEF2F2 0%, #F0FDFA 50%, #FEF2F2 100%);
}

.search .hentry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.search .hentry:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.search .page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
}

.search .entry-header {
    margin-bottom: 1.25rem;
}

.search .entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.search .article-meta {
    padding-bottom: 0;
}

.search .entry-content {
    margin-top: 0;
    color: var(--text-gray);
}

.search .entry-content p {
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-read-more:hover {
    color: var(--primary-hover);
}

.search-result-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.search-result-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    text-decoration: none;
    display: block;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: rgba(236, 254, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.search-result-thumb-placeholder svg {
    opacity: 0.35;
}

.search-result-body {
    flex: 1;
    min-width: 0;
}

/* Search Load More */
.search-load-more-wrap {
    text-align: center;
    margin-top: 2rem;
    padding-bottom: 3rem;
}

.search-load-more-btn {
    padding: 0.75rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--bg-white);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-load-more-btn:hover {
    background: var(--primary-bg);
}

.search-load-more-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

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

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-list .comment .comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-list .comment .comment-author .fn {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-list .comment .comment-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.comment-list .comment .comment-content {
    color: var(--text-dark);
    line-height: 1.7;
}

.comment-list .comment .comment-content p {
    margin-bottom: 1rem;
}

.comment-list .comment .comment-content p:last-child {
    margin-bottom: 0;
}

.comment-list .comment .reply {
    margin-top: 1rem;
}

.comment-list .comment .reply a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.comment-list .comment .reply a:hover {
    color: var(--primary-hover);
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.comment-form input[type="submit"]:active {
    transform: translateY(0);
}

/* General Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

button,
input[type="submit"],
input[type="button"],
.button {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
    background: var(--primary-hover);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.button:active {
    transform: translateY(0);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .logo h1,
    .logo .logo-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .logo .reseller-badge,
    a.reseller-badge {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .logo h1,
    .logo .logo-title {
        font-size: 1rem;
    }

    /* ============================================
       МОБИЛЬНОЕ МЕНЮ - БАЗОВАЯ СТРУКТУРА
       ============================================ */
    
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop menu on mobile */
    .nav-menu-desktop {
        display: none !important;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 69px;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 1003;
    }

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

    /* Show mobile menu on mobile */
    .nav-menu-mobile {
        display: none !important;
    }

    .nav-menu-mobile.active {
        display: flex !important;
    }

    .nav-menu > li {
        width: 100%;
        margin: 0;
    }

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

    .nav-menu > li > a {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
        font-weight: 500;
    }

    /* В мобиле скрываем родительские пункты Training и HUD, показываем их подпункты как обычные пункты */
    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-dropdown > .nav-dropdown-toggle {
        display: none !important;
    }

    .nav-dropdown-toggle::after {
        display: none !important;
    }

    .nav-dropdown-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0;
        margin: 0;
        min-width: auto;
        width: 100%;
        top: auto !important;
        left: auto !important;
        margin-top: 0 !important;
    }

    .nav-dropdown-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

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

    .nav-dropdown-menu a {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
        font-weight: 500;
        position: relative;
    }

    .nav-dropdown-menu a::before {
        display: none !important;
    }

    /* ============================================
       СВЕТЛОЕ МЕНЮ (Homepage)
       ============================================ */
    
    :root:not([data-theme="dark"]) body.light-header-section .nav-menu {
        background: white;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        border-top: 1px solid var(--border-color);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-menu > li {
        border-bottom: 1px solid var(--border-color);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-menu > li > a {
        color: var(--text-dark);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-menu > li > a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-dropdown-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-dropdown-menu a {
        color: var(--text-dark);
    }

    :root:not([data-theme="dark"]) body.light-header-section .nav-dropdown-menu a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }

    /* ============================================
       ТЕМНОЕ МЕНЮ (Internal Pages)
       ============================================ */
    
    body:not(.light-header-section) .nav-menu,
    :root[data-theme="dark"] body.light-header-section .nav-menu {
        background: #232d3b;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    body:not(.light-header-section) .nav-menu > li,
    :root[data-theme="dark"] body.light-header-section .nav-menu > li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #232d3b;
    }

    /* Убираем границу у контейнера dropdown, так как границы будут у элементов внутри */
    body:not(.light-header-section) .nav-menu > li.nav-dropdown,
    :root[data-theme="dark"] body.light-header-section .nav-menu > li.nav-dropdown {
        border-bottom: none;
    }

    body:not(.light-header-section) .nav-dropdown-menu li,
    :root[data-theme="dark"] body.light-header-section .nav-dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: #232d3b;
    }

    body:not(.light-header-section) .nav-dropdown-menu li:last-child,
    :root[data-theme="dark"] body.light-header-section .nav-dropdown-menu li:last-child {
        border-bottom: none;
    }

    body:not(.light-header-section) .nav-menu > li > a,
    body:not(.light-header-section) .nav-dropdown-menu a,
    :root[data-theme="dark"] body.light-header-section .nav-menu > li > a,
    :root[data-theme="dark"] body.light-header-section .nav-dropdown-menu a {
        color: rgba(255, 255, 255, 0.9);
        background: #232d3b;
    }

    body:not(.light-header-section) .nav-menu > li > a:hover,
    body:not(.light-header-section) .nav-dropdown-menu a:hover,
    :root[data-theme="dark"] body.light-header-section .nav-menu > li > a:hover,
    :root[data-theme="dark"] body.light-header-section .nav-dropdown-menu a:hover {
        background: #38414e;
        color: white;
    }

    body:not(.light-header-section) .nav-dropdown-menu,
    :root[data-theme="dark"] body.light-header-section .nav-dropdown-menu {
        background: transparent;
        margin: 0;
        padding: 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    section {
        padding: 60px 0;
    }

    /* Content Responsive */
    body:not(.full-width-layout):not(.no-sidebar) .site-content {
        flex-direction: column;
        padding: 0 20px;
    }

    body:not(.full-width-layout):not(.no-sidebar) .content-area,
    body:not(.full-width-layout):not(.no-sidebar) .widget-area {
        flex: 1 1 100%;
        padding: 1.5rem 0;
    }

    .content-area {
        padding: 1.5rem 20px;
    }

    .entry-title {
        font-size: 2rem;
    }

    .entry-content h1 {
        font-size: 1.875rem;
    }

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

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .post-navigation .nav-links,
    .paging-navigation .nav-links {
        flex-direction: column;
    }

    /* Sidebar Responsive */
    .widget-area {
        padding: 1.5rem 20px;
    }

    .widget {
        padding: 1.25rem;
    }

    .search-result-item {
        gap: 1rem;
    }

    .search-result-thumb {
        width: 72px;
        height: 72px;
    }

    .page-title {
        font-size: 1.875rem;
    }

    .error-404 .entry-header h1,
    .no-results .page-header .page-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    section {
        padding: 60px 0;
    }
}

/* ============================================
   Header Search & Dropdown Menu Styles
   ============================================ */

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
    border-radius: 6px;
}

.search-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Light search toggle для главных страниц */
body.light-header-section .search-toggle {
    color: var(--text-dark);
}

body.light-header-section .search-toggle:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.search-form-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1004;
    min-width: 300px;
}

.search-form-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0.25rem;
}

/* Dark search form для внутренних страниц с темным header */
:root[data-theme="dark"] body:not(.light-header-section) .search-form {
    background: rgba(31, 41, 55, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: transparent;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Dark search input для внутренних страниц с темным header */
:root[data-theme="dark"] body:not(.light-header-section) .search-input {
    color: white !important;
    background: transparent !important;
    border: none !important;
}

:root[data-theme="dark"] body:not(.light-header-section) .search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-submit {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   Header Actions (search + account wrapper)
   ============================================ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.theme-toggle {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    width: 36px;
    height: 34px;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon-sun {
    display: inline-flex;
}

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

:root[data-theme="dark"] .theme-toggle-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-toggle-icon-moon {
    display: inline-flex;
}

body.light-header-section .theme-toggle {
    border: none;
    background: none;
    color: var(--text-dark);
}

body.light-header-section .theme-toggle:hover {
    background: var(--bg-light);
}

:root[data-theme="dark"] .theme-toggle {
    color: #C6D0CC;
}

/* ============================================
   Header Account
   ============================================ */
.header-account {
    position: relative;
    display: flex;
    align-items: center;
}

.header-account-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.header-account-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-account-btn.is-logged-in {
    padding: 0.35rem;
}

.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

/* Light header variants */
body.light-header-section .header-account-btn {
    color: var(--text-dark);
}

body.light-header-section .header-account-btn:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Account dropdown */
.header-account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1005;
}

.header-account-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-account-email {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.header-account-link {
    display: block;
    width: 100%;
    padding: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-gray);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.header-account-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-bg);
}

.header-account-logout {
    display: block;
    width: 100%;
    padding: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-gray);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    text-align: center;
}

.header-account-logout:hover {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: '▼';
    font-size: 0.55rem;
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 1;
    vertical-align: middle;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: rgba(31, 41, 55, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1003;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Light dropdown menu для главных страниц */
body.light-header-section .nav-dropdown-menu {
    background: white;
    border: 1px solid var(--border-color);
    backdrop-filter: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Light dropdown menu links для главных страниц */
body.light-header-section .nav-dropdown-menu a {
    color: var(--text-dark);
}

body.light-header-section .nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ============================================
   Article Page Styles
   ============================================ */

/* Article Main Layout */
.article-main {
    padding: 2rem 0 0;
    background: linear-gradient(135deg, #FEF2F2 0%, #F0FDFA 50%, #FEF2F2 100%);
    width: 100%;
    margin: 0;
    max-width: 100%;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

/* Breadcrumbs (same algorithm as .tool-crumbs-inner) */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: nowrap;
    overflow: hidden;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

.breadcrumb-separator {
    color: var(--text-light);
    opacity: 0.5;
    flex-shrink: 0;
}

.breadcrumbs > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

/* ===== Tool Format Tabs (shared across tool pages) ===== */
.tool-format-tabs {
    padding: 0;
}

.tool-format-tabs-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e8e5e3;
    border-radius: 10px;
    padding: 3px;
    width: fit-content;
}

.tool-format-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-gray);
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
}

.tool-format-tab:hover:not(:disabled) {
    color: var(--text-dark);
}

.tool-format-tab.is-active {
    color: var(--text-dark);
    background: #fff;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: default;
}

.tool-format-tab.is-soon,
.tool-format-tab.is-soon:hover {
    color: #a8a2a0;
    background: transparent;
    cursor: default;
    opacity: 1;
    pointer-events: none;
}

.tool-tab-badge {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #a8a2a0;
    background: rgba(0,0,0,0.06);
    padding: 2px 5px;
    border-radius: 3px;
    line-height: 1;
}

@media (max-width: 640px) {
    .tool-format-tabs {
        overflow: hidden;
    }

    .tool-format-tabs-inner {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    .tool-format-tabs-inner::-webkit-scrollbar {
        display: none;
    }

    .tool-format-tab {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .tool-tab-badge {
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}

/* ===== Tool SEO Section (shared across all tool pages) ===== */
.tool-seo-section {
    padding: 0 0 72px;
}

.tool-seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 14px;
    line-height: 1.3;
}

.tool-seo-content h2:first-child {
    margin-top: 0;
}

.tool-seo-content h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--text-dark);
    margin: 24px 0 8px;
}

.tool-seo-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin: 0 0 14px;
}

.tool-seo-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.tool-seo-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.tool-seo-content a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-color);
}

@media (max-width: 640px) {
    .tool-seo-content h2 {
        font-size: 1.25rem;
    }

    .tool-seo-content h3 {
        font-size: 1rem;
    }
}

/* ===== Tool Breadcrumbs (shared across all tool pages) ===== */
.tool-crumbs {
    padding: 20px 0 0;
}

.tool-crumbs-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: nowrap;
    overflow: hidden;
}

.tool-crumbs-inner a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tool-crumbs-inner a:hover {
    color: var(--primary-color);
}

.tool-crumb-sep {
    color: var(--text-light);
    opacity: 0.5;
    flex-shrink: 0;
}

.tool-crumbs-inner > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

/* Mobile breadcrumbs: collapse middle → Home / … / Current Page */
@media (max-width: 640px) {
    .breadcrumbs,
    .tool-crumbs-inner {
        font-size: 0.78rem !important;
        gap: 0.3rem !important;
    }

    .breadcrumbs > *:nth-child(n+3):nth-last-child(n+3),
    .tool-crumbs-inner > *:nth-child(n+3):nth-last-child(n+3) {
        display: none !important;
    }

    .breadcrumbs > *:nth-child(2):nth-last-child(n+3)::after,
    .tool-crumbs-inner > *:nth-child(2):nth-last-child(n+3)::after {
        content: '\00a0\2026';
    }

    .breadcrumbs > *,
    .tool-crumbs-inner > * {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .breadcrumbs > *:last-child,
    .tool-crumbs-inner > *:last-child {
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    padding-bottom: 1rem;
}

.article-date,
.article-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.article-updated::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='23 4 23 10 17 10'%3E%3C/polyline%3E%3Cpath d='M20.49 15a9 9 0 1 1-2.12-9.36L23 10'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.article-author a {
    color: inherit;
    text-decoration: none;
}

.article-author a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Featured Image */
.article-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Ensure entry-content inside article-body uses article styles */
.article-body .entry-content {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.article-body .entry-content p,
.article-body .entry-content ul,
.article-body .entry-content ol,
.article-body .entry-content li,
.article-body .entry-content a,
.article-body .entry-content strong {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.article-lead {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-body h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--text-gray);
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.article-body a:hover {
    color: var(--primary-hover);
    border-bottom-color: var(--primary-color);
}

/* Do not show link underline/border for image links in article body */
.article-body figure.wp-block-image > a,
.article-body figure.wp-block-image > a:hover {
    border-bottom: none !important;
}

.article-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-body a strong {
    color: inherit;
}

/* Images, figures, and other content elements inside article-body */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body figure {
    margin: 2.5rem 0;
}

.article-body figure img {
    margin: 0;
}

.article-body figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #94A3B8;
    text-align: center;
    line-height: 1.5;
    font-style: italic;
}

.article-body blockquote {
    border-left: 4px solid #CBD5E1;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-gray);
    background: #F8FAFC;
    padding: 1.25rem 1.5rem 1.25rem 2rem;
    border-radius: 8px;
}

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

.article-body code {
    background: #F1F5F9;
    padding: 0.2em 0.45em;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: 'Source Code Pro', 'Menlo', 'Consolas', monospace;
    color: #334155;
    border: 1px solid #E2E8F0;
}

.article-body pre {
    background: #F8FAFC;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-body pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* Responsive wrapper for tables that WordPress adds via .wp-block-table */
.article-body .wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body .wp-block-table table {
    margin: 0;
}

/* WP core block-library: .wp-block-table thead/tfoot { border: 3px solid } uses currentColor — heavy and ignores th/td rules */
.article-body .wp-block-table thead {
    border-bottom: none;
}

.article-body .wp-block-table tfoot {
    border-top: none;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border: none;
    border-top: none;
    border-right: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
    line-height: 1.6;
    background: #fff;
}

.article-body table th,
.article-body table td {
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid #E2E8F0;
    text-align: left;
    vertical-align: top;
    color: var(--text-gray);
}

.article-body table thead th {
    background: #F8FAFC;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    border-bottom: 2px solid #E2E8F0;
}

.article-body table tbody tr:hover {
    background: #F8FAFC;
}

.article-body table tbody tr:last-child td {
    border-bottom: none;
}

.article-body table td:first-child {
    font-weight: 500;
    color: var(--text-dark);
}

.article-body table a {
    font-weight: 600;
    border-bottom: none;
}

.article-body table a:hover {
    border-bottom: none;
}

/* Article Images */
.article-image {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: var(--bg-light);
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Code Blocks */
.article-code-block {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-family: 'Source Code Pro', 'Menlo', 'Consolas', monospace;
    font-size: 0.95rem;
    color: #334155;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.article-code-block p {
    margin: 0;
    color: #E5E7EB;
}

/* Quotes */
.article-quote {
    background: var(--primary-bg);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
}

.article-quote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.article-quote strong {
    color: var(--primary-color);
}

/* Alert Blocks (Info / Warning / Danger) */
.h2n-alert {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3B82F6;
    background: #EFF6FF;
    margin: 2rem 0;
}

.h2n-alert--info {
    border-left-color: #3B82F6;
    background: #EFF6FF;
}

.h2n-alert--warning {
    border-left-color: #D97706;
    background: #FFFBEB;
}

.h2n-alert--danger {
    border-left-color: #DC2626;
    background: #FEF2F2;
}

.h2n-alert__icon {
    flex-shrink: 0;
    margin-top: 4px;
    line-height: 1;
}

.h2n-alert__icon svg {
    display: block;
}

.h2n-alert--info .h2n-alert__icon {
    color: #3B82F6;
}

.h2n-alert--warning .h2n-alert__icon {
    color: #D97706;
}

.h2n-alert--danger .h2n-alert__icon {
    color: #DC2626;
}

.h2n-alert__content {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1E293B;
}

.h2n-alert__content p:last-child {
    margin-bottom: 0;
}

/* Override article-body styles for alert content */
.article-body .h2n-alert__content {
    color: #1E293B;
}

.article-body .h2n-alert__content a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.2);
    border-bottom: none;
}

.article-body .h2n-alert__content a:hover {
    text-decoration-color: currentColor;
    border-bottom: none;
}

/* Legacy Alert Blocks (.red-block, .warning-block, .green-block) */
.red-block {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid #DC2626;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
}

.red-block p {
    color: #991B1B;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.red-block p:last-child {
    margin-bottom: 0;
}

.red-block b,
.red-block strong {
    color: #7F1D1D;
}

.green-block {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-left: 4px solid #16A34A;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
}

.green-block p {
    color: #166534;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.green-block p:last-child {
    margin-bottom: 0;
}

.green-block a {
    color: #16A34A;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(22, 163, 74, 0.3);
    text-underline-offset: 3px;
}

.green-block a:hover {
    color: #166534;
    text-decoration-color: #166534;
}

.green-block b,
.green-block strong {
    color: #14532D;
}

.warning-block {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-left: 4px solid #D97706;
    border-radius: 8px;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
}

.warning-block p {
    color: #92400E;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 0.75rem 0;
    font-weight: 500;
}

.warning-block p:last-child {
    margin-bottom: 0;
}

.warning-block a {
    color: #D97706;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(217, 119, 6, 0.3);
    text-underline-offset: 3px;
}

.warning-block a:hover {
    color: #92400E;
    text-decoration-color: #92400E;
}

.warning-block b,
.warning-block strong {
    color: #78350F;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-group:not(.has-background) {
    background: transparent;
    border: 0;
}

/* Shared dark article components (migrated from override-only layer) */
:root[data-theme="dark"] body:not(.homepage-section) .article-body pre,
:root[data-theme="dark"] body:not(.homepage-section) .article-code-block,
:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-code {
    background: var(--surface-2);
    border-color: var(--border-strong);
    color: #D7E0DC;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body pre code,
:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-code code {
    background: transparent;
    color: #D7E0DC;
    border: 0;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table table,
:root[data-theme="dark"] body:not(.homepage-section) .article-body table {
    background: var(--surface-2);
    color: #D2DBD7;
    border-color: var(--border-strong);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(47, 64, 71, 0.8);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body table thead th {
    background: var(--surface-3);
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-strong);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body table th,
:root[data-theme="dark"] body:not(.homepage-section) .article-body table td {
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-strong);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body table td:first-child {
    color: #E1E8E5;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body table tbody tr:hover {
    background: #1F2C31;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:nth-child(odd),
:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:nth-child(odd) td {
    background: #1D2A2F;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:nth-child(even),
:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:nth-child(even) td {
    background: #182327;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:hover,
:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes table tbody tr:hover td {
    background: #233239;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body .wp-block-table.is-style-stripes {
    border-bottom: 1px solid var(--border-strong);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-body blockquote {
    background: var(--surface-2);
    border-left-color: #4B5E66;
    color: var(--text-gray);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-quote {
    background: #17312C;
    border-left: 3px solid var(--primary-color);
    color: var(--text-dark);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-quote p {
    color: var(--text-dark);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-quote strong {
    color: var(--text-accent);
}

:root[data-theme="dark"] .h2n-alert {
    border-left-width: 4px;
    border-radius: 8px;
}

:root[data-theme="dark"] .h2n-alert--info {
    background: #182638;
    border-left-color: #3B82F6;
    border-color: rgba(59, 130, 246, 0.3);
}

:root[data-theme="dark"] .h2n-alert--warning {
    background: #2C2314;
    border-left-color: #D97706;
    border-color: rgba(217, 119, 6, 0.32);
}

:root[data-theme="dark"] .h2n-alert--danger {
    background: #321A1C;
    border-left-color: #DC2626;
    border-color: rgba(220, 38, 38, 0.34);
}

:root[data-theme="dark"] .h2n-alert--info .h2n-alert__icon {
    color: #60A5FA;
}

:root[data-theme="dark"] .h2n-alert--warning .h2n-alert__icon {
    color: #F59E0B;
}

:root[data-theme="dark"] .h2n-alert--danger .h2n-alert__icon {
    color: #F87171;
}

:root[data-theme="dark"] .h2n-alert__content,
:root[data-theme="dark"] .article-body .h2n-alert__content {
    color: var(--text-dark);
}

:root[data-theme="dark"] .article-body .h2n-alert__content a {
    color: #F3F6F4;
    text-decoration-color: rgba(243, 246, 244, 0.35);
}

:root[data-theme="dark"] .red-block {
    background: #321A1C;
    border-color: rgba(220, 38, 38, 0.34);
    border-left-color: #DC2626;
}

:root[data-theme="dark"] .red-block p {
    color: #FECACA;
}

:root[data-theme="dark"] .red-block b,
:root[data-theme="dark"] .red-block strong {
    color: #FCA5A5;
}

:root[data-theme="dark"] .green-block {
    background: #182E23;
    border-color: rgba(22, 163, 74, 0.34);
    border-left-color: #16A34A;
}

:root[data-theme="dark"] .green-block p {
    color: #BBF7D0;
}

:root[data-theme="dark"] .green-block a {
    color: #4ADE80;
    text-decoration-color: rgba(74, 222, 128, 0.45);
}

:root[data-theme="dark"] .green-block a:hover {
    color: #86EFAC;
    text-decoration-color: #86EFAC;
}

:root[data-theme="dark"] .green-block b,
:root[data-theme="dark"] .green-block strong {
    color: #86EFAC;
}

:root[data-theme="dark"] .warning-block {
    background: #2C2314;
    border-color: rgba(217, 119, 6, 0.32);
    border-left-color: #D97706;
}

:root[data-theme="dark"] .warning-block p {
    color: #FCD9A6;
}

:root[data-theme="dark"] .warning-block a {
    color: #F59E0B;
    text-decoration-color: rgba(245, 158, 11, 0.4);
}

:root[data-theme="dark"] .warning-block a:hover {
    color: #FBBF24;
    text-decoration-color: #FBBF24;
}

:root[data-theme="dark"] .warning-block b,
:root[data-theme="dark"] .warning-block strong {
    color: #F8C67A;
}

@media (max-width: 768px) {
    .red-block,
    .green-block,
    .warning-block {
        padding: 1rem 1.25rem;
        margin: 1.5rem 0;
    }

    .red-block p,
    .green-block p,
    .warning-block p {
        font-size: 1rem;
    }
}

/* Inline CTA Button Block */
.wp-block-h2n-cta-button {
    margin: 2rem 0;
}

.article-body .wp-block-h2n-cta-button .btn-primary {
    color: white;
    border-bottom: none;
}

.article-body .wp-block-h2n-cta-button .btn-primary:hover {
    border-bottom: none;
}

.article-body .wp-block-h2n-cta-button .btn-secondary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.article-body .wp-block-h2n-cta-button .btn-secondary:hover {
    color: var(--primary-hover);
    border: 2px solid var(--primary-hover);
}

/* CTA Button Colors */
.btn-color-red {
    background: #BE3A3A;
    box-shadow: 0 1px 3px rgba(190, 58, 58, 0.2);
}

.btn-color-red:hover {
    background: #A13030;
    box-shadow: 0 4px 14px rgba(190, 58, 58, 0.35);
}

.btn-secondary.btn-color-red {
    background: transparent;
    color: #BE3A3A;
    border-color: #BE3A3A;
}

.btn-secondary.btn-color-red:hover {
    background: rgba(190, 58, 58, 0.05);
    color: #A13030;
    border-color: #A13030;
}

.btn-color-indigo {
    background: #6366F1;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.2);
}

.btn-color-indigo:hover {
    background: #4F46E5;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-secondary.btn-color-indigo {
    background: transparent;
    color: #6366F1;
    border-color: #6366F1;
}

.btn-secondary.btn-color-indigo:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #4F46E5;
    border-color: #4F46E5;
}

.btn-color-amber {
    background: #D97706;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
}

.btn-color-amber:hover {
    background: #B45309;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-secondary.btn-color-amber {
    background: transparent;
    color: #D97706;
    border-color: #D97706;
}

.btn-secondary.btn-color-amber:hover {
    background: rgba(217, 119, 6, 0.05);
    color: #B45309;
    border-color: #B45309;
}

.btn-color-slate {
    background: #334155;
    box-shadow: 0 1px 3px rgba(51, 65, 85, 0.2);
}

.btn-color-slate:hover {
    background: #1E293B;
    box-shadow: 0 4px 14px rgba(51, 65, 85, 0.35);
}

.btn-secondary.btn-color-slate {
    background: transparent;
    color: #334155;
    border-color: #334155;
}

.btn-secondary.btn-color-slate:hover {
    background: rgba(51, 65, 85, 0.05);
    color: #1E293B;
    border-color: #1E293B;
}

/* Override article-body link color for colored buttons */
.article-body .wp-block-h2n-cta-button .btn-color-red,
.article-body .wp-block-h2n-cta-button .btn-color-indigo,
.article-body .wp-block-h2n-cta-button .btn-color-amber,
.article-body .wp-block-h2n-cta-button .btn-color-slate {
    color: white;
}

.article-body .wp-block-h2n-cta-button .btn-secondary.btn-color-red { color: #BE3A3A; }
.article-body .wp-block-h2n-cta-button .btn-secondary.btn-color-indigo { color: #6366F1; }
.article-body .wp-block-h2n-cta-button .btn-secondary.btn-color-amber { color: #D97706; }
.article-body .wp-block-h2n-cta-button .btn-secondary.btn-color-slate { color: #334155; }

/* Product card pricing (legacy HUD Store pages) */
.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.product-price-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.article-body a.add-to-cart {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-bottom: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.article-body a.add-to-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
    color: white;
    border-bottom: none;
}

/* Article CTA */
.article-cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    padding: 0;
    margin: 3rem 0 0;
    color: white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2.5rem;
    text-align: center;
}

.article-cta .cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.article-cta p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
    line-height: 1.6;
}

.article-cta p strong {
    color: white;
    font-weight: 700;
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
}

.cta-benefit-item svg {
    flex-shrink: 0;
    stroke-width: 3;
    color: white;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #F0FDFA;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: var(--primary-dark);
}

/* Article CTA - GTO Wizard variant */
.article-cta-gtowizard {
    background: linear-gradient(135deg, #E67E22 0%, #C0601A 100%);
}

.article-cta-gtowizard .cta-button {
    color: #D35400;
}

.article-cta-gtowizard .cta-button:hover {
    background: #FFF7ED;
    color: #A04000;
}

/* Article CTA - Newsletter variant */
.article-cta-newsletter {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.article-cta-newsletter .cta-button {
    color: #059669;
}

.article-cta-newsletter .cta-button:hover {
    background: #ECFDF5;
    color: #047857;
}

/* Newsletter form */
.cta-newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.cta-newsletter-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.cta-newsletter-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.article-cta input[type="email"].cta-newsletter-email {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1rem;
    outline: none;
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.article-cta input[type="email"].cta-newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.article-cta input[type="email"].cta-newsletter-email:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.cta-newsletter-message {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-newsletter-success {
    color: #D1FAE5;
}

.cta-newsletter-error {
    color: #FED7D7;
}

/* Article CTA - FreeBetRange variant */
.article-cta-freebetrange {
    background: linear-gradient(135deg, #8f4a9e 0%, #643272 100%);
}

.article-cta-freebetrange .cta-button {
    color: #7a3589;
}

.article-cta-freebetrange .cta-button:hover {
    background: #FDF4FF;
    color: #643272;
}

/* Article CTA - Discord variant */
.article-cta-discord {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
}

.article-cta-discord .cta-button {
    color: #5865F2;
}

.article-cta-discord .cta-button:hover {
    background: #EEF0FF;
    color: #4752C4;
}

/* Dark theme ownership: article CTA variants (migrated from compat layer) */
:root[data-theme="dark"] body:not(.homepage-section) .article-cta {
    background: linear-gradient(135deg, #17312C 0%, #1A3A34 55%, #122A25 100%);
    border: 1px solid rgba(110, 231, 207, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta .cta-title,
:root[data-theme="dark"] body:not(.homepage-section) .article-cta p {
    color: #F3F6F4;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta p strong {
    background: rgba(255, 255, 255, 0.12);
    color: #F3F6F4;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta .cta-benefit-item {
    background: rgba(21, 30, 33, 0.72);
    border-color: rgba(110, 231, 207, 0.22);
    color: #E7ECE9;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta .cta-button {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    border-color: rgba(94, 234, 212, 0.38);
    color: #FFFFFF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta .cta-button:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
    color: #FFFFFF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-gtowizard {
    background: linear-gradient(135deg, #3A2A12 0%, #4A3518 100%);
    border-color: rgba(245, 158, 11, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-gtowizard .cta-button {
    background: linear-gradient(135deg, #C76412 0%, #B45309 100%);
    border-color: rgba(245, 158, 11, 0.42);
    color: #FFF7ED;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-gtowizard .cta-button:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
    color: #FFF7ED;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-newsletter {
    background: linear-gradient(135deg, #10352B 0%, #114838 100%);
    border-color: rgba(52, 211, 153, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-freebetrange {
    background: linear-gradient(135deg, #34173F 0%, #432152 100%);
    border-color: rgba(192, 132, 252, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-freebetrange .cta-button {
    background: linear-gradient(135deg, #7E22CE 0%, #6B21A8 100%);
    border-color: rgba(192, 132, 252, 0.42);
    color: #F5EEFF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-freebetrange .cta-button:hover {
    background: linear-gradient(135deg, #9333EA 0%, #7E22CE 100%);
    color: #F5EEFF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-discord {
    background: linear-gradient(135deg, #232F63 0%, #2A3774 100%);
    border-color: rgba(129, 140, 248, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-discord .cta-button {
    background: linear-gradient(135deg, #4F5DC9 0%, #434FB0 100%);
    border-color: rgba(129, 140, 248, 0.42);
    color: #EEF1FF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta-discord .cta-button:hover {
    background: linear-gradient(135deg, #636FE0 0%, #4F5DC9 100%);
    color: #EEF1FF;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta input[type="email"].cta-newsletter-email {
    background: rgba(21, 30, 33, 0.72);
    border-color: rgba(255, 255, 255, 0.22);
    color: #F3F6F4;
}

:root[data-theme="dark"] body:not(.homepage-section) .article-cta input[type="email"].cta-newsletter-email::placeholder {
    color: rgba(231, 236, 233, 0.65);
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    margin: 2.5rem 0 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.author-box:hover {
    box-shadow: var(--shadow-md);
}

.author-box-avatar {
    flex-shrink: 0;
    line-height: 0;
}

.author-box-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-info {
    min-width: 0;
}

.author-box a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
}

.author-box p {
    margin-bottom: 0;
}

.author-box img {
    margin: 0;
    border-radius: 50%;
}

.author-box-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.author-box-name:hover {
    color: var(--primary-color);
}

.author-box-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.author-box-bio {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0.5rem 0 0;
    line-height: 1.55;
}

/* Tool Author Section (poker tools E-E-A-T card) */
.tool-author-section {
    margin-top: 2.5rem;
}

.tool-author-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.tool-author-box {
    align-items: flex-start;
    margin-top: 1.8rem;
}

.tool-seo-content .tool-author-box p {
    margin: 0;
}

.tool-seo-content .tool-author-box .author-box-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.15rem 0 0;
}

.tool-seo-content .tool-author-box .author-box-bio {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0.5rem 0 0;
    line-height: 1.55;
}

/* Article Sidebar */
.article-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
    height: fit-content;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Table of Contents */
.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: calc(100vh - 500px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.toc-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: block;
}

.toc-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.toc-link.active {
    background: var(--primary-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* CTA Widget */
.cta-widget {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    text-align: center;
}

.cta-widget .widget-title {
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
}

.cta-widget p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cta-widget-text-mobile {
    display: none;
}

.cta-widget strong {
    color: var(--text-dark);
    font-weight: 700;
}

.cta-widget .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.cta-widget .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

/* Sidebar CTA - GTO Wizard variant */
.cta-widget-gtowizard {
    background: #FFF7ED;
    border-color: #FDDCAB;
}

.cta-widget-gtowizard .widget-title {
    color: #D35400;
    border-bottom-color: #FDDCAB;
}

.cta-widget-gtowizard .btn-primary {
    background: #E67E22;
    border-color: #E67E22;
}

.cta-widget-gtowizard .btn-primary:hover {
    background: #D35400;
    border-color: #D35400;
}

/* Sidebar CTA - FreeBetRange variant */
.cta-widget-freebetrange {
    background: #FDF4FF;
    border-color: #F0D4F5;
}

.cta-widget-freebetrange .widget-title {
    color: #871791;
    border-bottom-color: #F0D4F5;
}

.cta-widget-freebetrange .btn-primary {
    background: #871791;
    border-color: #871791;
}

.cta-widget-freebetrange .btn-primary:hover {
    background: #711b7a;
    border-color: #711b7a;
}

/* Dark theme ownership: sidebar CTA variants (migrated from compat layer) */
:root[data-theme="dark"] body:not(.homepage-section) .cta-widget {
    background: #17312C;
    border-color: rgba(110, 231, 207, 0.22);
    color: var(--text-dark);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget .widget-title {
    color: #BDF3E6;
    border-bottom-color: rgba(110, 231, 207, 0.22);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget p {
    color: #C6D0CC;
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget .btn-primary {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
    border-color: rgba(94, 234, 212, 0.36);
    color: #FFFFFF;
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget .btn-primary:hover {
    background: linear-gradient(135deg, #14B8A6 0%, #0F766E 100%);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-gtowizard {
    background: #32220F;
    border-color: rgba(217, 119, 6, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-gtowizard .widget-title {
    color: #F7C78A;
    border-bottom-color: rgba(217, 119, 6, 0.28);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-gtowizard .btn-primary {
    background: linear-gradient(135deg, #C76412 0%, #B45309 100%);
    border-color: rgba(245, 158, 11, 0.42);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-gtowizard .btn-primary:hover {
    background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-freebetrange {
    background: #2B1633;
    border-color: rgba(192, 132, 252, 0.3);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-freebetrange .widget-title {
    color: #DEB8FF;
    border-bottom-color: rgba(192, 132, 252, 0.3);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-freebetrange .btn-primary {
    background: linear-gradient(135deg, #7E22CE 0%, #6B21A8 100%);
    border-color: rgba(192, 132, 252, 0.4);
}

:root[data-theme="dark"] body:not(.homepage-section) .cta-widget-freebetrange .btn-primary:hover {
    background: linear-gradient(135deg, #9333EA 0%, #7E22CE 100%);
}

:root[data-theme="dark"] body:not(.homepage-section) .wp-block-h2n-cta-button .btn,
:root[data-theme="dark"] body:not(.homepage-section) a.article-action-link {
    --primary-color: #0F766E;
    --primary-hover: #115E59;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* Recent Guides Widget */
.article-recent-guides {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.recent-guides-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.recent-guides-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.recent-guide-item {
    margin: 0;
    padding: 0;
}

.recent-guide-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.recent-guide-link:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.recent-guide-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-light);
}

.recent-guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-guide-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.recent-guide-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: block;
}

.recent-guide-link:hover .recent-guide-title {
    color: var(--primary-color);
}

.recent-guide-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
    display: block;
}

.recent-guide-arrow {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 20px;
    height: 20px;
}

.recent-guide-arrow svg {
    width: 20px;
    height: 20px;
}

.recent-guide-link:hover .recent-guide-arrow {
    transform: translateX(4px);
}

.recent-guides-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.recent-guides-view-all:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* Responsive Tabs - Active tabs */
.responsive-tabs .responsive-tabs__list__item--active, 
.responsive-tabs .responsive-tabs__list__item--active:hover {
	background: #f7f7f7 !important;
	color: #606060 !important;
	border-color: #e7e7e7 !important;
}

/* Responsive Tabs - Inactive tabs (default state - transparent/neutral) */
.responsive-tabs .responsive-tabs__list__item:not(.responsive-tabs__list__item--active) {
	background: transparent !important;
	color: #6b7280 !important;
	border-color: transparent !important;
}

.responsive-tabs .responsive-tabs__list__item:not(.responsive-tabs__list__item--active):hover {
	background: #f9fafb !important;
	color: #606060 !important;
	border-color: #e7e7e7 !important;
}

/* Mobile tab titles - light background */
.responsive-tabs h2.tabtitle {
	background: #f7f7f7 !important;
	color: #606060 !important;
	border-color: #e7e7e7 !important;
}

.responsive-tabs h2.tabtitle:hover {
	background: #f0f0f0 !important;
}

/* Mobile responsive tabs heading - fix dark background */
@media (max-width: 767px) {
	.responsive-tabs-wrapper {
		border-top: 1px solid #e7e7e7 !important;
	}
	
	.responsive-tabs .responsive-tabs__heading--active,
	.responsive-tabs .responsive-tabs__heading--active:hover {
		background: #f7f7f7 !important;
		color: #606060 !important;
		border-color: #e7e7e7 !important;
	}
	
	.responsive-tabs .responsive-tabs__heading--active:after,
	.responsive-tabs .responsive-tabs__heading--active:hover:after {
		border-bottom-color: #777 !important;
	}
}

.responsive-tabs .responsive-tabs__panel {
	background: #f7f7f7 !important;
	border: 1px solid #e7e7e7 !important;
	border-top: 1px solid #e7e7e7 !important;
}

/* Dark theme ownership: responsive tabs (migrated from compat layer) */
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__list__item--active,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__list__item--active:hover,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__list__item:not(.responsive-tabs__list__item--active):hover,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs h2.tabtitle,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__heading--active,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__heading--active:hover,
:root[data-theme="dark"] body:not(.homepage-section) .responsive-tabs .responsive-tabs__panel {
    background: var(--bg-light);
    color: var(--text-gray);
    border-color: var(--border-color);
}

/* Responsive Article Styles */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .article-sidebar {
        position: static;
        order: -1;
        padding: 0 !important;
        margin: 0 !important;
        height: 0;
        overflow: visible;
    }

    /* Hide Table of Contents on tablet and mobile */
    .toc-widget {
        display: none;
    }

    /* Sticky promo banner at bottom on tablet and mobile - compact one-line version */
    .cta-widget {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: left;
        overflow: hidden;
    }

    .cta-widget .widget-title {
        display: none;
    }

    .cta-widget-text-desktop {
        display: none;
    }

    .cta-widget-text-mobile {
        display: block;
        margin: 0 !important;
        margin-bottom: 0 !important;
        font-size: 0.85rem;
        color: var(--text-dark);
        flex: 1;
        min-width: 0;
        line-height: 1.4;
        overflow-wrap: break-word;
        word-wrap: break-word;
        padding-right: 0.5rem;
    }

    .cta-widget p {
        margin-bottom: 0;
    }

    .cta-widget-text-mobile strong {
        font-weight: 700;
    }

    .cta-widget .btn-primary {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        min-height: 36px;
    }

    /* Extra footer padding so sticky promo banner doesn't cover language switcher & social icons */
    .footer {
        padding-bottom: 100px;
    }

    /* Reduce spacing for Recent Guides widget on tablet */
    .article-recent-guides {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .recent-guide-image {
        width: 90px;
        height: 65px;
    }

    .recent-guide-link {
        gap: 0.875rem;
        padding: 0.75rem;
    }

    .article-title {
        font-size: 2.25rem;
    }

    .article-body h2 {
        font-size: 1.75rem;
    }

    .article-body h3 {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .article-main {
        padding: 1.5rem 0 0;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .article-layout {
        max-width: 100%;
        box-sizing: border-box;
    }

    .article-title {
        font-size: 1.9rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .article-lead {
        font-size: 1.15rem;
        padding: 1.25rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-body table {
        font-size: 0.88rem;
    }

    .article-body table th,
    .article-body table td {
        padding: 0.6rem 0.75rem;
    }

    .article-body table thead th {
        font-size: 0.72rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }

    .article-cta .cta-title {
        font-size: 1.5rem;
    }

    .article-cta p {
        font-size: 1rem;
    }

    .cta-benefits {
        gap: 0.75rem;
    }

    .cta-benefit-item {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
    }

    /* Stack newsletter input + button vertically on mobile */
    .cta-newsletter-input-wrap {
        flex-direction: column;
    }

    .cta-newsletter-email {
        width: 100%;
    }

    .recent-guide-image {
        width: 70px;
        height: 50px;
    }

    .recent-guide-link {
        gap: 0.75rem;
        padding: 0.625rem;
    }

    .recent-guide-title {
        font-size: 0.9rem;
    }

    .recent-guide-date {
        font-size: 0.75rem;
    }

    .recent-guide-arrow {
        width: 18px;
        height: 18px;
    }

    .recent-guide-arrow svg {
        width: 18px;
        height: 18px;
    }

    .sidebar-widget {
        padding: 1.25rem;
    }


    .logo {
        order: 1;
        margin-right: auto;
    }
    
    .header-actions {
        order: 2;
        gap: 0;
    }

    .theme-toggle {
        height: 32px;
        width: 34px;
    }
    
    .mobile-menu-toggle {
        order: 3;
        margin-left: 0.5rem;
    }
    
    .navbar {
        justify-content: space-between;
    }

    .header-search {
        position: static;
    }

    .search-form-wrapper {
        left: 1rem;
        right: 1rem;
        min-width: unset;
    }

    .search-form {
        padding: 0.2rem;
    }

    .search-input {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.65rem;
    }

    .article-lead {
        font-size: 1.05rem;
    }

    .article-featured-image {
        margin-bottom: 2rem;
    }

    .cta-content {
        padding: 2rem 1.5rem;
    }

    .article-cta .cta-title {
        font-size: 1.5rem;
    }

    .article-cta p {
        font-size: 1rem;
    }

    .cta-benefits {
        gap: 0.75rem;
    }

    .cta-benefit-item {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
    }

    .author-box {
        gap: 1rem;
        padding: 1.25rem;
    }

    .author-box-avatar img {
        width: 52px;
        height: 52px;
    }

    .author-box-name {
        font-size: 0.95rem;
    }

    .author-box-bio {
        font-size: 0.85rem;
    }

    .search-form-wrapper {
        left: 0.5rem;
        right: 0.5rem;
    }
}

/* DPT plugin: flatter article thumbnails */
.dpt-mag1 .dpt-thumbnail-aspect-ratio,
.dpt-grid1 .dpt-thumbnail-aspect-ratio {
    padding-top: 56.25% !important;
}

