/*
Theme Name:        Wonder News 1
Theme URI:         https://nexiamath.com/product/themes/wonder-news-1
Author:            Nexiamath
Author URI:        https://nexiamath.com
Description:       Wonder News 1 is a fast, mobile-first WordPress news and magazine theme built for media publishers, news portals, and editorial teams. Features include a dual sticky header, off-canvas navigation drawer, breaking news ticker, auto dark mode, reading progress bar, floating share bar, table of contents, and a smart nav overflow "More" dropdown. Built for SEO: Schema.org NewsArticle + BreadcrumbList, Open Graph, Twitter Card, canonical URLs, hreflang, Google News XML sitemap, and IndexNow instant indexing. Includes 6 configurable ad slots, WCAG 2.1 AA accessibility, RTL support, and full translation-readiness. Scores 90+ on Google PageSpeed Mobile. Compatible with the Nexiamath-SEO plugin. Requires WordPress 6.0+ and PHP 8.0+.
Version:           1.2.1
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       wonder-news-1
Tags:              news, blog, two-columns, three-columns, right-sidebar, left-sidebar, grid-layout, full-width-template, custom-logo, custom-menu, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready, rtl-language-support, accessibility-ready
*/

/* ─────────────────────────────────────────────────────────────
   TABLE OF CONTENTS
   1.  CSS Custom Properties & Dark-Mode Tokens
   2.  Reset & Base
   3.  Typography
   4.  Layout Skeleton
   5.  Header & Top Bar
   6.  Primary Navigation
   7.  Mobile Nav Drawer & Overlay
   8.  Mobile Bottom Navigation
   9.  Reading Progress Bar
   10. Breaking News Ticker
   11. Category Bar
   12. Post Cards & Grid
   13. Featured / Hero Post
   14. Table of Contents (TOC)
   15. Single Article
   16. Floating Share Bar
   17. Related Posts
   18. Author Box
   19. Sidebar & Widgets
   20. Ad Slots
   21. Pagination
   22. Footer
   23. Search & 404
   24. Comments
   25. Breadcrumbs
   26. Badges & Labels
   27. Utility / Accessibility
   28. Dark Mode
   29. Animations
   30. Responsive Breakpoints
───────────────────────────────────────────────────────────── */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
    /* Brand Blue */
    --wn-red:          #1976D2;
    --wn-red-dark:     #1565C0;
    --wn-red-light:    #E3F2FD;

    /* Accent Amber */
    --wn-accent:       #F57C00;
    --wn-accent-dark:  #E65100;
    --wn-accent-light: #FFF3E0;

    /* Dark Header */
    --wn-navy:         #0D2B4E;

    /* Neutrals */
    --wn-black:        #1A2535;
    --wn-dark:         #253545;
    --wn-gray-800:     #455669;
    --wn-gray-600:     #6B7B8D;
    --wn-gray-400:     #B0BEC5;
    --wn-gray-200:     #E1E8EF;
    --wn-gray-100:     #F4F7FB;
    --wn-white:        #FFFFFF;

    /* Semantic */
    --wn-link:         var(--wn-red);
    --wn-link-hover:   var(--wn-red-dark);
    --wn-bg:           var(--wn-gray-100);
    --wn-surface:      var(--wn-white);
    --wn-border:       var(--wn-gray-200);
    --wn-text:         var(--wn-dark);
    --wn-text-muted:   var(--wn-gray-600);

    /* Typography */
    --wn-font-body:    'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
    --wn-font-head:    'Noto Serif', Georgia, 'Times New Roman', serif;
    --wn-font-ui:      'Noto Sans', Arial, sans-serif;

    /* Misc */
    --wn-radius:       6px;
    --wn-radius-lg:    12px;
    --wn-shadow:       0 1px 4px rgba(25,118,210,.09), 0 2px 8px rgba(0,0,0,.04);
    --wn-shadow-md:    0 4px 20px rgba(25,118,210,.12), 0 2px 6px rgba(0,0,0,.06);
    --wn-shadow-lg:    0 8px 32px rgba(0,0,0,.12);
    --wn-max-width:    1240px;
    --wn-header-h:     60px;
    --wn-bnav-h:       58px;
    --wn-transition:   .18s ease;
    --wn-transition-lg: .3s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: var(--wn-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--wn-text);
    background: var(--wn-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Room for sticky header + mobile bottom nav */
    padding-top: 0;
    padding-bottom: var(--wn-bnav-h);
}
img, video { max-width: 100%; height: auto; display: block; }
a {
    color: var(--wn-link);
    text-decoration: none;
    transition: color var(--wn-transition);
}
a:hover, a:focus-visible { color: var(--wn-link-hover); }
ul, ol { padding-left: 1.5em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible {
    outline: 3px solid var(--wn-red);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wn-font-head);
    font-weight: 700;
    line-height: 1.22;
    color: var(--wn-black);
    letter-spacing: -.01em;
}
h1 { font-size: clamp(1.55rem, 5vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
h3 { font-size: clamp(1.1rem, 2.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 1rem; }
p { margin-bottom: 1.15em; }
blockquote {
    border-left: 4px solid var(--wn-accent);
    padding: 14px 20px;
    margin: 1.5em 0;
    background: var(--wn-accent-light);
    color: var(--wn-gray-800);
    font-style: italic;
    border-radius: 0 var(--wn-radius) var(--wn-radius) 0;
    font-size: 1.05em;
}
code, pre {
    font-family: 'Courier New', Courier, monospace;
    font-size: .875em;
    background: var(--wn-gray-100);
    border: 1px solid var(--wn-gray-200);
    border-radius: var(--wn-radius);
}
pre { padding: 16px; overflow-x: auto; }
code { padding: 2px 6px; }
hr { border: none; border-top: 1px solid var(--wn-border); margin: 2em 0; }

/* ── 4. Layout Skeleton ───────────────────────────────────── */
.wn-container {
    max-width: var(--wn-max-width);
    margin: 0 auto;
    padding: 0 16px;
}
/* Full-width content wrapper */
#wn-content {
    padding-top: 16px;
}
.wn-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 0 28px;
}
.wn-layout--full { grid-template-columns: 1fr; }
.wn-main { min-width: 0; }
.wn-sidebar { min-width: 0; }
.wn-sidebar-wrap { display: none; } /* Hidden on mobile – shown at tablet */

/* ── 5. Header & Top Bar ──────────────────────────────────── */
#wn-header {
    background: var(--wn-surface);
    box-shadow: 0 1px 0 var(--wn-border), var(--wn-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.wn-header-top {
    background: var(--wn-navy);
    color: var(--wn-gray-400);
    font-size: 12px;
    padding: 5px 0;
    display: none; /* Hidden on mobile */
}
.wn-header-top a {
    color: var(--wn-gray-400);
    transition: color var(--wn-transition);
}
.wn-header-top a:hover { color: var(--wn-white); }
.wn-header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.wn-header-date { display: flex; align-items: center; gap: 5px; }
.wn-header-social { display: flex; gap: 10px; }

.wn-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--wn-header-h);
    gap: 12px;
    padding: 0 4px;
}
.wn-site-branding a { text-decoration: none !important; }
.wn-site-branding a:hover .wn-site-title { color: var(--wn-red-dark); }
.wn-site-title {
    font-family: var(--wn-font-head);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--wn-red);
    letter-spacing: -.03em;
    line-height: 1;
    transition: color var(--wn-transition);
}
.wn-site-title span { color: var(--wn-accent); }
.wn-site-tagline {
    font-size: 10px;
    color: var(--wn-gray-600);
    margin-top: 2px;
    font-family: var(--wn-font-ui);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.wn-header-ad { display: none; } /* Leaderboard hidden on mobile */

/* ── 6. Primary Navigation ────────────────────────────────── */
.wn-nav-bar {
    background: var(--wn-red);
    position: relative;
}
/* Desktop nav list — hidden at mobile, container used for hamburger row */
.wn-nav-bar > .wn-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
}
.wn-nav-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* Mobile: hidden – desktop: flex */
}
.wn-nav-bar > .wn-container > ul > li { position: relative; }
.wn-nav-bar a {
    display: block;
    padding: 11px 18px;
    color: var(--wn-white) !important;
    font-family: var(--wn-font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background var(--wn-transition);
}
.wn-nav-bar a:hover,
.wn-nav-bar .current-menu-item > a,
.wn-nav-bar .current-menu-ancestor > a {
    background: rgba(0,0,0,.18);
}

/* Dropdown menus (desktop only) */
.wn-nav-bar .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--wn-white);
    box-shadow: var(--wn-shadow-md);
    z-index: 1001;
    flex-direction: column;
    border-top: 3px solid var(--wn-red);
    border-radius: 0 0 var(--wn-radius) var(--wn-radius);
}
.wn-nav-bar li:hover > .sub-menu,
.wn-nav-bar li.is-focused > .sub-menu { display: flex; }
.wn-nav-bar .sub-menu a {
    color: var(--wn-dark) !important;
    padding: 10px 16px;
    font-size: 13px;
    background: none;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid var(--wn-gray-100);
}
.wn-nav-bar .sub-menu li:last-child a { border-bottom: none; }
.wn-nav-bar .sub-menu a:hover {
    background: var(--wn-red-light);
    color: var(--wn-red) !important;
}

/* ── Hamburger toggle button ─────────── */
.wn-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--wn-radius);
    transition: background var(--wn-transition);
    flex-shrink: 0;
}
.wn-nav-toggle:hover { background: rgba(0,0,0,.15); }
.wn-nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--wn-white);
    border-radius: 2px;
    transition: transform var(--wn-transition-lg), opacity var(--wn-transition), width var(--wn-transition-lg);
    transform-origin: center;
}
/* Animate to X when open */
.wn-nav-toggle[aria-expanded="true"] .wn-nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.wn-nav-toggle[aria-expanded="true"] .wn-nav-toggle-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.wn-nav-toggle[aria-expanded="true"] .wn-nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── 7. Mobile Nav Drawer & Overlay ──────────────────────── */
.wn-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,.55);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--wn-transition-lg);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.wn-nav-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
/* Off-canvas drawer: the primary menu becomes a panel */
#wn-primary-menu.is-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: var(--wn-navy);
    z-index: 1100;
    overflow-y: auto;
    padding: 0 0 24px;
    box-shadow: var(--wn-shadow-lg);
    animation: wn-drawer-slide-in var(--wn-transition-lg) forwards;
}
/* Close button inside drawer (injected by JS) */
.wn-nav-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,.2);
    border: none;
    color: var(--wn-gray-400);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--wn-transition);
    margin-bottom: 4px;
}
.wn-nav-close:hover { color: var(--wn-white); }
/* Drawer menu items */
#wn-primary-menu.is-open > li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
#wn-primary-menu.is-open > li > a {
    color: var(--wn-gray-400) !important;
    padding: 13px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
    background: none;
    display: block;
    transition: color var(--wn-transition), padding var(--wn-transition);
}
#wn-primary-menu.is-open > li > a:hover,
#wn-primary-menu.is-open .current-menu-item > a {
    color: var(--wn-white) !important;
    padding-left: 28px;
    background: rgba(255,255,255,.04);
}
/* Drawer sub-menus */
#wn-primary-menu.is-open .sub-menu {
    display: block;
    position: static;
    background: rgba(0,0,0,.25);
    border-top: none;
    box-shadow: none;
    border-radius: 0;
}
#wn-primary-menu.is-open .sub-menu a {
    color: var(--wn-gray-600) !important;
    padding: 10px 20px 10px 36px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
#wn-primary-menu.is-open .sub-menu a:hover { color: var(--wn-white) !important; }

/* ── 8. Mobile Bottom Navigation ─────────────────────────── */
.wn-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--wn-bnav-h);
    background: var(--wn-surface);
    border-top: 1px solid var(--wn-border);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 900;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    /* Safe area inset for notch phones */
    padding-bottom: env(safe-area-inset-bottom);
}
.wn-mobile-bottom-nav a,
.wn-mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 6px 4px;
    color: var(--wn-gray-600);
    font-family: var(--wn-font-ui);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 0;
    transition: color var(--wn-transition);
    text-decoration: none !important;
}
.wn-mobile-bottom-nav a:hover,
.wn-mobile-bottom-nav button:hover,
.wn-mobile-bottom-nav a.is-active,
.wn-mobile-bottom-nav .is-active { color: var(--wn-red); }
.wn-mobile-bottom-nav a svg,
.wn-mobile-bottom-nav button svg { flex-shrink: 0; }

/* ── 9. Reading Progress Bar ─────────────────────────────── */
#wn-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wn-red) 0%, var(--wn-accent) 100%);
    z-index: 9999;
    transition: width .1s linear;
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
}

/* ── 10. Breaking News Ticker ─────────────────────────────── */
.wn-ticker {
    background: var(--wn-black);
    color: var(--wn-white);
    font-size: 13px;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.wn-ticker-label {
    background: var(--wn-accent);
    color: var(--wn-white);
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .1em;
    white-space: nowrap;
    flex-shrink: 0;
}
.wn-ticker-track {
    overflow: hidden;
    flex: 1;
    position: relative;
    height: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.wn-ticker-inner {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: wn-ticker-scroll 35s linear infinite;
    padding-left: 24px;
}
.wn-ticker-inner a {
    color: rgba(255,255,255,.75);
    margin-right: 56px;
    font-size: 13px;
    position: relative;
    transition: color var(--wn-transition);
}
.wn-ticker-inner a::before {
    content: '▶';
    color: var(--wn-accent);
    margin-right: 6px;
    font-size: 9px;
}
.wn-ticker-inner a:hover { color: var(--wn-white); }

/* ── 11. Category Bar ─────────────────────────────────────── */
.wn-cat-bar {
    background: var(--wn-surface);
    border-bottom: 1px solid var(--wn-border);
    font-size: 13px;
    padding: 8px 0;
}
.wn-cat-bar-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px; /* clip scrollbar */
    -webkit-overflow-scrolling: touch;
}
.wn-cat-bar-inner::-webkit-scrollbar { display: none; }
.wn-cat-bar a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    background: var(--wn-gray-100);
    color: var(--wn-gray-800);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all var(--wn-transition);
    border: 1px solid transparent;
}
.wn-cat-bar a:hover {
    background: var(--wn-red);
    color: var(--wn-white);
    border-color: var(--wn-red);
}

/* ── 12. Post Cards & Grid ────────────────────────────────── */
.wn-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.wn-card {
    background: var(--wn-surface);
    border-radius: var(--wn-radius-lg);
    box-shadow: var(--wn-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--wn-transition), transform var(--wn-transition);
    will-change: transform;
    border: 1px solid var(--wn-border);
}
.wn-card:hover {
    box-shadow: var(--wn-shadow-md);
    transform: translateY(-2px);
}
.wn-card__thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: var(--wn-gray-200);
    flex-shrink: 0;
}
.wn-card__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.wn-card:hover .wn-card__thumb img { transform: scale(1.05); }
.wn-card__thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wn-gray-400);
    font-size: 42px;
}
.wn-card__body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.wn-card__cat {
    font-family: var(--wn-font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--wn-red);
    margin-bottom: 6px;
    text-decoration: none !important;
}
.wn-card__cat:hover { color: var(--wn-red-dark); }
.wn-card__title {
    font-family: var(--wn-font-head);
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    flex: 1;
}
.wn-card__title a { color: var(--wn-black); text-decoration: none; }
.wn-card__title a:hover { color: var(--wn-red); }
.wn-card__excerpt {
    font-size: .875rem;
    color: var(--wn-gray-800);
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wn-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: var(--wn-gray-600);
    font-family: var(--wn-font-ui);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--wn-border);
    flex-wrap: wrap;
}
.wn-card__meta a { color: var(--wn-gray-600); }
.wn-card__meta a:hover { color: var(--wn-red); }

/* List-style card */
.wn-card--list {
    flex-direction: row;
    gap: 0;
    transform: none;
}
.wn-card--list:hover { transform: none; }
.wn-card--list .wn-card__thumb {
    width: 110px;
    min-width: 110px;
    padding-top: 0;
    height: 90px;
    flex-shrink: 0;
    border-radius: 0;
}
.wn-card--list .wn-card__body {
    padding: 10px 14px;
}
.wn-card--list .wn-card__title {
    font-size: .875rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wn-card--list .wn-card__meta { padding-top: 6px; }

/* Section header */
.wn-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--wn-red);
}
.wn-section-head h2,
.wn-section-head h3 {
    font-family: var(--wn-font-head);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin: 0;
}
.wn-section-head a { color: var(--wn-black); }
.wn-section-head a:hover { color: var(--wn-red); }

/* ── 13. Featured / Hero Post ─────────────────────────────── */
.wn-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.wn-hero__main {
    position: relative;
    border-radius: var(--wn-radius-lg);
    overflow: hidden;
    background: var(--wn-gray-200);
    min-height: 240px;
    display: block;
}
.wn-hero__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: transform .5s ease;
}
.wn-hero__main:hover img { transform: scale(1.03); }
.wn-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,15,30,.9) 0%, rgba(5,15,30,.35) 55%, transparent 100%);
}
.wn-hero__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--wn-white);
}
.wn-hero__cat {
    display: inline-block;
    background: var(--wn-red);
    color: var(--wn-white);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 3px 10px;
    border-radius: var(--wn-radius);
    margin-bottom: 8px;
    text-decoration: none !important;
}
.wn-hero__title {
    font-family: var(--wn-font-head);
    font-size: clamp(1.15rem, 4vw, 1.65rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--wn-white);
    margin-bottom: 8px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.wn-hero__title a { color: var(--wn-white); text-decoration: none; }
.wn-hero__title a:hover { opacity: .9; }
.wn-hero__meta {
    font-size: 12px;
    color: rgba(255,255,255,.72);
    font-family: var(--wn-font-ui);
}
.wn-hero__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.wn-hero__side .wn-card {
    margin: 0;
}

/* ── 14. Table of Contents (TOC) ──────────────────────────── */
.wn-toc {
    background: var(--wn-red-light);
    border: 1px solid var(--wn-red);
    border-left: 4px solid var(--wn-red);
    border-radius: var(--wn-radius);
    margin: 1.5em 0 1.8em;
    overflow: hidden;
}
.wn-toc summary {
    cursor: pointer;
    padding: 12px 16px;
    font-family: var(--wn-font-ui);
    font-size: .9rem;
    font-weight: 700;
    color: var(--wn-red-dark);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    transition: background var(--wn-transition);
}
.wn-toc summary::-webkit-details-marker { display: none; }
.wn-toc summary::before {
    content: '≡';
    font-size: 1.1em;
    line-height: 1;
}
.wn-toc summary::after {
    content: '+';
    margin-left: auto;
    font-size: 1.2em;
    font-weight: 300;
    color: var(--wn-red);
    transition: transform var(--wn-transition);
}
.wn-toc[open] summary::after {
    content: '−';
}
.wn-toc summary:hover { background: rgba(25,118,210,.08); }
.wn-toc ol {
    margin: 0;
    padding: 8px 16px 16px 36px;
    counter-reset: toc-counter;
}
.wn-toc ol li {
    margin-bottom: 6px;
    font-size: .875rem;
    line-height: 1.4;
}
.wn-toc ol li a {
    color: var(--wn-dark);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dotted var(--wn-gray-400);
    transition: color var(--wn-transition);
}
.wn-toc ol li a:hover { color: var(--wn-red); border-bottom-color: var(--wn-red); }

/* ── 15. Single Article ───────────────────────────────────── */
.wn-article {
    background: var(--wn-surface);
    border-radius: var(--wn-radius-lg);
    padding: 20px 16px 24px;
    box-shadow: var(--wn-shadow);
    border: 1px solid var(--wn-border);
}
.wn-article__header { margin-bottom: 20px; }
.wn-article__cat-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.wn-article__title {
    font-family: var(--wn-font-head);
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.22;
    color: var(--wn-black);
    margin-bottom: 14px;
    letter-spacing: -.02em;
}
.wn-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--wn-gray-600);
    font-family: var(--wn-font-ui);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--wn-border);
    line-height: 1.4;
}
.wn-article__meta a { color: var(--wn-gray-600); }
.wn-article__meta a:hover { color: var(--wn-red); }
.wn-article__meta-sep { color: var(--wn-gray-400); }
.wn-article__author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wn-border);
}
.wn-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.wn-article__featured-img {
    margin-bottom: 20px;
    border-radius: var(--wn-radius);
    overflow: hidden;
}
.wn-article__featured-img img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}
.wn-article__caption {
    font-size: 12px;
    color: var(--wn-gray-600);
    text-align: center;
    padding: 6px 8px;
    font-style: italic;
    background: var(--wn-gray-100);
    margin-top: 0;
}

/* Article body */
.wn-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--wn-text);
    font-family: var(--wn-font-body);
}
.wn-content h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    margin: 2em 0 .75em;
    border-left: 4px solid var(--wn-red);
    padding-left: 14px;
    scroll-margin-top: 80px;
}
.wn-content h3 {
    font-size: clamp(1.05rem, 3vw, 1.2rem);
    margin: 1.7em 0 .6em;
    scroll-margin-top: 80px;
}
.wn-content h4 { margin: 1.3em 0 .5em; }
.wn-content img {
    border-radius: var(--wn-radius);
    margin: 1.5em auto;
    max-width: 100%;
}
.wn-content a { color: var(--wn-red); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.wn-content a:hover { color: var(--wn-red-dark); }
.wn-content ul, .wn-content ol { margin: .75em 0 1.25em; }
.wn-content li { margin-bottom: .45em; }
.wn-content table { margin: 1.5em 0; border: 1px solid var(--wn-gray-200); }
.wn-content th { background: var(--wn-gray-100); padding: 10px 14px; text-align: left; font-size: .9em; }
.wn-content td { padding: 9px 14px; border-top: 1px solid var(--wn-gray-200); font-size: .9em; }

/* In-article ad */
.wn-ad-inline {
    margin: 2em auto;
    text-align: center;
    background: var(--wn-gray-100);
    border: 1px dashed var(--wn-gray-400);
    border-radius: var(--wn-radius);
    padding: 4px;
}
.wn-ad-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--wn-gray-600);
    letter-spacing: .09em;
    margin-bottom: 4px;
    font-family: var(--wn-font-ui);
}

/* Article footer – tags, share */
.wn-article__footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--wn-border);
}
.wn-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.wn-tag {
    display: inline-block;
    padding: 4px 13px;
    background: var(--wn-gray-100);
    border: 1px solid var(--wn-gray-200);
    border-radius: 99px;
    font-size: 12px;
    color: var(--wn-gray-800);
    transition: all var(--wn-transition);
}
.wn-tag:hover {
    background: var(--wn-red);
    border-color: var(--wn-red);
    color: var(--wn-white);
    text-decoration: none;
}

/* Share buttons */
.wn-share {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.wn-share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wn-gray-800);
    white-space: nowrap;
}
.wn-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: var(--wn-radius);
    font-size: 12px;
    font-weight: 600;
    color: var(--wn-white) !important;
    text-decoration: none !important;
    transition: opacity var(--wn-transition), transform var(--wn-transition);
    cursor: pointer;
    border: none;
}
.wn-share-btn:hover { opacity: .85; transform: translateY(-1px); color: var(--wn-white) !important; }
.wn-share-btn--fb   { background: #1877f2; }
.wn-share-btn--tw   { background: #000; }
.wn-share-btn--wa   { background: #25d366; }
.wn-share-btn--tg   { background: #2ca5e0; }
.wn-share-btn--li   { background: #0a66c2; }
.wn-share-btn--copy { background: var(--wn-gray-600); }

/* ── 16. Floating Share Bar ───────────────────────────────── */
.wn-share-float {
    position: fixed;
    bottom: calc(var(--wn-bnav-h) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    background: var(--wn-white);
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 800;
    border: 1px solid var(--wn-border);
    transition: opacity var(--wn-transition-lg), transform var(--wn-transition-lg);
    white-space: nowrap;
    max-width: calc(100vw - 32px);
}
.wn-share-float.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}
.wn-share-float .wn-share-label {
    font-size: 11px;
    color: var(--wn-gray-600);
}
.wn-share-float .wn-share-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.wn-share-float .wn-share-btn span { display: none; } /* Icon only */

/* ── 17. Related Posts ────────────────────────────────────── */
.wn-related { margin-top: 28px; }
.wn-related .wn-grid { gap: 12px; }

/* ── 18. Author Box ───────────────────────────────────────── */
.wn-author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--wn-gray-100);
    border-radius: var(--wn-radius-lg);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--wn-border);
}
.wn-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--wn-surface);
    box-shadow: var(--wn-shadow);
}
.wn-author-box__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--wn-font-head);
}
.wn-author-box__name a { color: var(--wn-black); }
.wn-author-box__name a:hover { color: var(--wn-red); }
.wn-author-box__bio {
    font-size: .875rem;
    color: var(--wn-gray-800);
    line-height: 1.5;
}

/* ── 19. Sidebar & Widgets ────────────────────────────────── */
.wn-widget {
    background: var(--wn-surface);
    border-radius: var(--wn-radius-lg);
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: var(--wn-shadow);
    border: 1px solid var(--wn-border);
}
.wn-widget-title {
    font-family: var(--wn-font-head);
    font-size: .9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--wn-red);
    color: var(--wn-black);
}
.wn-widget ul { list-style: none; padding: 0; margin: 0; }
.wn-widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--wn-border);
    font-size: .9rem;
}
.wn-widget ul li:last-child { border-bottom: none; }
.wn-widget ul li a { color: var(--wn-dark); }
.wn-widget ul li a:hover { color: var(--wn-red); text-decoration: none; }

/* Popular posts */
.wn-popular-list { list-style: none; padding: 0; margin: 0; }
.wn-popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--wn-border);
}
.wn-popular-item:last-child { border-bottom: none; }
.wn-popular-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--wn-gray-200);
    font-family: var(--wn-font-head);
    line-height: 1;
    min-width: 22px;
    flex-shrink: 0;
}
.wn-popular-title { font-size: .875rem; font-weight: 600; line-height: 1.35; }
.wn-popular-title a { color: var(--wn-black); }
.wn-popular-title a:hover { color: var(--wn-red); text-decoration: none; }
.wn-popular-meta { font-size: 11px; color: var(--wn-gray-600); margin-top: 3px; }

/* Search widget */
.wn-search-form {
    display: flex;
    border: 1.5px solid var(--wn-gray-200);
    border-radius: var(--wn-radius);
    overflow: hidden;
    transition: border-color var(--wn-transition);
}
.wn-search-form:focus-within { border-color: var(--wn-red); }
.wn-search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    background: var(--wn-surface);
    color: var(--wn-text);
}
.wn-search-form button {
    background: var(--wn-red);
    color: var(--wn-white);
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 15px;
    transition: background var(--wn-transition);
}
.wn-search-form button:hover { background: var(--wn-red-dark); }

/* ── 20. Ad Slots ─────────────────────────────────────────── */
.wn-ad-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wn-gray-100);
    border: 1px dashed var(--wn-gray-400);
    border-radius: var(--wn-radius);
    overflow: hidden;
    position: relative;
}
.wn-ad-slot::before {
    content: attr(data-ad-label);
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--wn-gray-600);
    font-family: var(--wn-font-ui);
    white-space: nowrap;
}
.wn-ad-leaderboard { width: 100%; min-height: 90px; margin: 6px 0; }
.wn-ad-rectangle   { width: 100%; min-height: 250px; margin: 0 0 20px; }
.wn-ad-halfpage    { width: 100%; min-height: 600px; margin: 0 0 20px; }
.wn-ad-billboard   { width: 100%; min-height: 120px; margin: 0 0 24px; }
.wn-ad-inline      { min-height: 280px; max-width: 336px; margin: 2em auto; }

/* ── 21. Pagination ───────────────────────────────────────── */
.wn-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 28px 0;
    flex-wrap: wrap;
}
.wn-pagination a,
.wn-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--wn-radius);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid var(--wn-border);
    background: var(--wn-surface);
    color: var(--wn-dark);
    transition: all var(--wn-transition);
    text-decoration: none !important;
}
.wn-pagination a:hover {
    background: var(--wn-red);
    border-color: var(--wn-red);
    color: var(--wn-white);
    transform: translateY(-1px);
}
.wn-pagination .current {
    background: var(--wn-red);
    border-color: var(--wn-red);
    color: var(--wn-white);
}
.wn-pagination .dots { border: none; background: none; }

/* ── 22. Footer ───────────────────────────────────────────── */
#wn-footer {
    background: var(--wn-black);
    color: var(--wn-gray-400);
    margin-top: 40px;
    /* Ensure footer clears mobile bottom nav */
    padding-bottom: 8px;
}
.wn-footer-ad-bar {
    background: var(--wn-dark);
    padding: 14px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.wn-footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.wn-footer-widget-title {
    font-family: var(--wn-font-head);
    font-size: .9rem;
    font-weight: 700;
    color: var(--wn-white);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--wn-red);
}
.wn-footer-widget ul { list-style: none; padding: 0; margin: 0; }
.wn-footer-widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: .875rem;
}
.wn-footer-widget ul li:last-child { border-bottom: none; }
.wn-footer-widget ul li a { color: var(--wn-gray-400); }
.wn-footer-widget ul li a:hover { color: var(--wn-white); text-decoration: none; }

.wn-footer-bottom {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    text-align: center;
}
.wn-footer-copy { color: var(--wn-gray-600); }
.wn-footer-copy a { color: var(--wn-gray-400); }
.wn-footer-copy a:hover { color: var(--wn-white); }
.wn-footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.wn-footer-links a { color: var(--wn-gray-600); }
.wn-footer-links a:hover { color: var(--wn-white); text-decoration: none; }
.wn-footer-social { display: flex; gap: 10px; }
.wn-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    color: var(--wn-gray-400);
    font-size: 14px;
    transition: all var(--wn-transition);
}
.wn-footer-social a:hover {
    background: var(--wn-red);
    color: var(--wn-white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── 23. Search & 404 ─────────────────────────────────────── */
.wn-page-hero {
    background: var(--wn-surface);
    border-radius: var(--wn-radius-lg);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: var(--wn-shadow);
    border: 1px solid var(--wn-border);
}
.wn-page-hero h1 { font-size: clamp(1.35rem, 4vw, 2rem); margin-bottom: 12px; }
.wn-page-hero p {
    color: var(--wn-gray-600);
    max-width: 480px;
    margin: 0 auto 24px;
    font-size: .95rem;
}
.wn-404-code {
    font-size: 5rem;
    font-weight: 900;
    color: var(--wn-red);
    line-height: 1;
    opacity: .12;
    display: block;
    margin-bottom: 8px;
}

/* ── 24. Comments ─────────────────────────────────────────── */
.wn-comments {
    background: var(--wn-surface);
    border-radius: var(--wn-radius-lg);
    padding: 22px 16px;
    margin-top: 20px;
    box-shadow: var(--wn-shadow);
    border: 1px solid var(--wn-border);
}
.wn-comments-title { font-size: 1rem; font-weight: 800; margin-bottom: 20px; color: var(--wn-black); }
.comment-list { list-style: none; padding: 0; }
.comment-body {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--wn-border);
}
.comment-author img { border-radius: 50%; width: 40px; height: 40px; }
.comment-meta { font-size: 12px; color: var(--wn-gray-600); margin-bottom: 6px; }
.comment-content p { font-size: .9rem; margin-bottom: .5em; line-height: 1.6; }
.comment-reply-link { font-size: 12px; color: var(--wn-red); font-weight: 600; }
.wn-comment-form .comment-form-comment textarea,
.wn-comment-form input[type="text"],
.wn-comment-form input[type="email"],
.wn-comment-form input[type="url"] {
    width: 100%;
    border: 1.5px solid var(--wn-gray-200);
    border-radius: var(--wn-radius);
    padding: 10px 14px;
    font-size: 14px;
    margin-top: 4px;
    transition: border-color var(--wn-transition), box-shadow var(--wn-transition);
    background: var(--wn-surface);
    color: var(--wn-text);
}
.wn-comment-form input:focus,
.wn-comment-form textarea:focus {
    border-color: var(--wn-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(25,118,210,.12);
}
.wn-comment-form .submit {
    background: var(--wn-red);
    color: var(--wn-white);
    border: none;
    border-radius: var(--wn-radius);
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--wn-transition), transform var(--wn-transition);
}
.wn-comment-form .submit:hover {
    background: var(--wn-red-dark);
    transform: translateY(-1px);
}

/* ── 25. Breadcrumbs ──────────────────────────────────────── */
.wn-breadcrumb {
    font-size: 12px;
    color: var(--wn-gray-600);
    padding: 10px 0;
    font-family: var(--wn-font-ui);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    overflow: hidden; /* Prevent overflow on mobile */
}
.wn-breadcrumb a { color: var(--wn-gray-600); }
.wn-breadcrumb a:hover { color: var(--wn-red); text-decoration: none; }
.wn-breadcrumb-sep { color: var(--wn-gray-400); margin: 0 1px; }
.wn-breadcrumb-current {
    color: var(--wn-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* ── 26. Badges & Labels ──────────────────────────────────── */
.wn-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--wn-radius);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: var(--wn-font-ui);
    text-decoration: none !important;
    line-height: 1.6;
    transition: opacity var(--wn-transition);
}
.wn-badge:hover { opacity: .85; }
.wn-badge--cat   { background: var(--wn-red); color: var(--wn-white); }
.wn-badge--new   { background: #e53935; color: var(--wn-white); }
.wn-badge--video { background: var(--wn-navy); color: var(--wn-white); }
.wn-badge--photo { background: #00695c; color: var(--wn-white); }

/* ── 27. Utility / Accessibility ──────────────────────────── */
.wn-text-red     { color: var(--wn-red); }
.wn-text-muted   { color: var(--wn-gray-600); }
.wn-text-sm      { font-size: .875rem; }
.wn-text-xs      { font-size: .75rem; }
.wn-fw-bold      { font-weight: 700; }
.wn-mt-0         { margin-top: 0 !important; }
.wn-mb-4         { margin-bottom: 4px; }
.wn-mb-8         { margin-bottom: 8px; }
.wn-mb-16        { margin-bottom: 16px; }
.wn-mb-24        { margin-bottom: 24px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    top: 0;
    left: 8px;
    width: auto;
    height: auto;
    padding: 10px 18px;
    background: var(--wn-red);
    color: var(--wn-white);
    font-weight: 700;
    z-index: 99999;
    border-radius: 0 0 var(--wn-radius) var(--wn-radius);
}

/* ── 28. Dark Mode ────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --wn-bg:       #0f1720;
        --wn-surface:  #182333;
        --wn-border:   rgba(255,255,255,.09);
        --wn-text:     #d8e3ee;
        --wn-text-muted: #8a9ab0;
        --wn-black:    #e2ecf6;
        --wn-dark:     #c8d8e8;
        --wn-gray-800: #7890a8;
        --wn-gray-600: #546880;
        --wn-gray-400: #344860;
        --wn-gray-200: #1e2f42;
        --wn-gray-100: #172030;
        --wn-white:    #182333;
        --wn-shadow:   0 1px 4px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
        --wn-shadow-md: 0 4px 20px rgba(0,0,0,.4);
        --wn-accent-light: rgba(245,124,0,.12);
        --wn-red-light: rgba(25,118,210,.15);
    }
    #wn-header { box-shadow: 0 1px 0 rgba(255,255,255,.06); }
    .wn-article__caption { background: var(--wn-gray-100); }
    .wn-search-form input[type="search"] { background: var(--wn-surface); color: var(--wn-text); }
    .wn-toc { background: var(--wn-red-light); border-color: rgba(25,118,210,.3); }
    .wn-toc ol li a { color: var(--wn-dark); border-bottom-color: var(--wn-gray-400); }
    .wn-author-box { background: var(--wn-gray-100); }
    #wn-footer { background: #0a1118; }
    .wn-footer-ad-bar { background: #0d1a26; }
    .wn-mobile-bottom-nav { box-shadow: 0 -1px 0 rgba(255,255,255,.06), 0 -4px 12px rgba(0,0,0,.3); }
    .wn-share-float { background: var(--wn-surface); border-color: var(--wn-border); box-shadow: 0 4px 20px rgba(0,0,0,.4); }
    blockquote { background: rgba(245,124,0,.1); }
    .wn-nav-bar .sub-menu { background: #0d1a26; }
    .wn-nav-bar .sub-menu a { color: var(--wn-dark) !important; border-bottom-color: rgba(255,255,255,.04); }
    .wn-nav-bar .sub-menu a:hover { background: rgba(25,118,210,.2); color: #90caf9 !important; }
}

/* ── 29. Animations ───────────────────────────────────────── */
@keyframes wn-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes wn-drawer-slide-in {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}
@keyframes wn-fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 30. Responsive Breakpoints ───────────────────────────── */

/* ─ Small phones (< 400px) ─ */
@media (max-width: 399px) {
    .wn-container { padding: 0 12px; }
    .wn-site-title { font-size: 1.3rem; }
    .wn-hero__side { grid-template-columns: 1fr; }
    .wn-share-btn span { display: none; }
    .wn-share-btn { padding: 8px 10px; }
}

/* ─ Tablet portrait (≥ 600px) ─ */
@media (min-width: 600px) {
    .wn-container { padding: 0 20px; }
    .wn-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .wn-hero__main { min-height: 320px; }
    .wn-hero__side { grid-template-columns: 1fr 1fr; }
    .wn-article { padding: 24px 24px 28px; }
}

/* ─ Tablet landscape (≥ 768px) ─ */
@media (min-width: 768px) {
    body { padding-bottom: 0; } /* No bottom nav padding — bnav hidden at this width */
    .wn-header-top { display: block; }
    .wn-header-main { padding: 0; }
    .wn-site-title { font-size: 1.85rem; }
    .wn-layout {
        grid-template-columns: 1fr 280px;
        gap: 24px;
        padding: 20px 0 32px;
    }
    .wn-sidebar-wrap { display: block; }
    /* Hero: main + side */
    .wn-hero {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        margin-bottom: 28px;
    }
    .wn-hero__main { min-height: 340px; }
    .wn-hero__side {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .wn-hero__side .wn-card { flex: 1; }
    .wn-hero__caption { padding: 24px; }
    .wn-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .wn-grid--3 { grid-template-columns: repeat(2, 1fr); }
    /* Nav on tablet: hamburger still shown, menu still drawer */
    .wn-mobile-bottom-nav { display: none; } /* Hide bottom nav on tablet+ */
    .wn-footer-widgets { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .wn-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .wn-article { padding: 28px; }
}

/* ─ Desktop (≥ 1024px) ─ */
@media (min-width: 1024px) {
    .wn-layout { grid-template-columns: 1fr 300px; gap: 28px; }
    .wn-header-ad { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    /* Desktop nav: full horizontal menu, no hamburger */
    .wn-nav-toggle { display: none !important; }
    .wn-nav-bar > .wn-container > ul {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .wn-nav-bar > .wn-container > ul::-webkit-scrollbar { display: none; }
    /* Desktop hero */
    .wn-hero { grid-template-columns: 2fr 1fr; }
    .wn-hero__main { min-height: 400px; }
    /* Grids */
    .wn-grid { gap: 22px; }
    .wn-grid--3 { grid-template-columns: repeat(3, 1fr); }
    /* Article */
    .wn-article { padding: 36px 40px; }
    .wn-article__title { font-size: clamp(1.65rem, 3vw, 2.1rem); }
    /* Floating share bar only on mobile */
    .wn-share-float { display: none; }
    /* Footer */
    .wn-footer-widgets { grid-template-columns: repeat(4, 1fr); gap: 40px; }
}

/* ─ Wide desktop (≥ 1280px) ─ */
@media (min-width: 1280px) {
    .wn-layout { grid-template-columns: 1fr 320px; gap: 32px; }
    .wn-hero__main { min-height: 440px; }
    .wn-article { padding: 40px 48px; }
}


/* ── Nav Overflow "More ▼" dropdown ──────────────────────── */
.wn-nav-more-item {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}
.wn-nav-more-toggle {
    display: flex;
    align-items: center;
    gap: .3em;
    padding: 11px 16px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-family: var(--wn-font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--wn-white) !important;
    white-space: nowrap;
    transition: background var(--wn-transition);
}
.wn-nav-more-toggle::after { content: ' ▼'; font-size: .6em; }
.wn-nav-more-toggle:hover { background: rgba(0,0,0,.18); }
.wn-nav-more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--wn-white);
    border-top: 3px solid var(--wn-accent);
    border-radius: 0 0 var(--wn-radius-lg) var(--wn-radius-lg);
    box-shadow: var(--wn-shadow-md);
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    z-index: 2000;
    animation: wn-drop-in .15s ease;
}
.wn-nav-more-item.is-open .wn-nav-more-dropdown { display: block; }
.wn-nav-more-dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--wn-dark) !important;
    font-family: var(--wn-font-ui);
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none !important;
    transition: background var(--wn-transition);
    border-bottom: 1px solid var(--wn-gray-100);
}
.wn-nav-more-dropdown li:last-child a { border-bottom: none; }
.wn-nav-more-dropdown li a:hover { background: var(--wn-red-light); color: var(--wn-red) !important; }
@keyframes wn-drop-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Hide More on mobile — hamburger covers all items */
@media (max-width: 1023px) {
    .wn-nav-more-item { display: none !important; }
}

/* ── Logo SVG default branding ───────────────────────────── */
.wn-default-logo-link { text-decoration: none !important; display: inline-block; }
.wn-logo-svg { height: 42px; width: auto; max-width: 180px; display: block; }
@media (max-width: 599px) {
    .wn-logo-svg { height: 34px; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
    #wn-header, #wn-footer, .wn-sidebar, .wn-ad-slot,
    .wn-ticker, .wn-cat-bar, .wn-share, .wn-share-float,
    .wn-mobile-bottom-nav, #wn-progress-bar { display: none !important; }
    .wn-layout { grid-template-columns: 1fr; }
    .wn-article { box-shadow: none; padding: 0; }
    body { font-size: 12pt; padding-bottom: 0; }
    a::after { content: ' (' attr(href) ')'; font-size: 10pt; color: #555; }
}

/* ── Performance: reduce motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .wn-ticker-inner { animation: none; }
}

/* ── Touch devices: remove hover artefacts ───────────────── */
@media (hover: none) and (pointer: coarse) {
    .wn-card:hover { transform: none; box-shadow: var(--wn-shadow); }
    .wn-nav-more-toggle:hover { background: transparent; }
}
