/*
Theme Name:   teraju melaju
Theme URI:    https://teraju.id
Author:       Yaser Ace
Description:  terajuID is a modern, fully responsive WordPress news & magazine theme built for high-traffic media sites. Features include breaking news ticker, hero grid layout, category color system, reading progress bar, view counter, dark mode support, and a powerful Theme Customizer. Compatible with Gutenberg, WooCommerce, and major SEO plugins.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  terajuid
Tags:         news, magazine, blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, responsive-layout, rtl-language-support, theme-options, threaded-comments, translation-ready, editor-style
*/

/* ============================================================
   TABLE OF CONTENTS
   1. CSS Variables / Design Tokens
   2. Reset & Base
   3. Typography
   4. Layout & Grid
   5. Top Bar
   6. Header & Navigation
   7. Breaking News Ticker
   8. Category Navigation
   9. Hero Grid
   10. News Tag / Badge
   11. Post Cards
   12. Section Headers
   13. Two-Column Layout
   14. Sidebar Widgets
   15. Single Post
   16. Author Box
   17. Related Posts
   18. Comments
   19. Footer
   20. Utility Classes
   21. Dark Mode
   22. Responsive
============================================================ */

/* ============================================================
   1. CSS VARIABLES / DESIGN TOKENS
============================================================ */
/* Tempelkan ini di bagian paling atas style.css 
atau ganti bagian CSS VARIABLES yang lama.
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #e24b4a;
    --color-primary-dark: #c0392b;

    /* Typography - Menggunakan Roboto sebagai Font Utama */
    --font-sans: 'Roboto', 'Open Sans', system-ui, -apple-system, sans-serif;
    --font-serif: 'Roboto', 'Open Sans', sans-serif; /* Menghilangkan serif agar lebih modern */

    /* Layout */
    --container-width: 1140px;
    --radius-md: 12px;
}

/* Optimasi Khusus Isi Artikel */
.entry-content {
    font-family: 'Roboto', sans-serif !important;
    font-size: 18px;
    line-height: 1.85;
    color: #222222;
}

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

/* Fix Thumbnail Pilihan Untuk Anda agar Seragam */
.choice-card-img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.choice-card:hover .choice-card-img {
    transform: scale(1.05);
}

    /* Shadows */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

    /* Transitions */
    --transition: .2s ease;

    /* Category Colors */
    --cat-politik:       #FCEBEB; --cat-politik-text:       #A32D2D;
    --cat-ekonomi:       #E6F1FB; --cat-ekonomi-text:       #185FA5;
    --cat-teknologi:     #E1F5EE; --cat-teknologi-text:     #0F6E56;
    --cat-olahraga:      #FAEEDA; --cat-olahraga-text:      #854F0B;
    --cat-internasional: #F3E8FF; --cat-internasional-text: #6B21A8;
    --cat-kesehatan:     #ECFDF5; --cat-kesehatan-text:     #065F46;
    --cat-nasional:      #FFF7ED; --cat-nasional-text:      #9A3412;
    --cat-hiburan:       #FDF2F8; --cat-hiburan-text:       #9D174D;
    --cat-default:       #F1EFE8; --cat-default-text:       #5F5E5A;
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-800);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, textarea, select { font-family: var(--font-sans); }
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px; width: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

/* ============================================================
   3. TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: var(--color-gray-800);
    font-weight: 700;
}
h1 { font-size: clamp(24px, 4vw, 36px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(17px, 2.5vw, 22px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

p { margin-bottom: 1.2em; }

blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--color-gray-100);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--color-gray-700);
    font-style: italic;
}
blockquote cite {
    display: block;
    font-size: 13px;
    font-style: normal;
    font-family: var(--font-sans);
    color: var(--color-gray-500);
    margin-top: 8px;
}

pre, code {
    font-family: var(--font-mono);
    font-size: 13px;
}
pre {
    background: var(--color-gray-800);
    color: #f0f0f0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}
code {
    background: var(--color-gray-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
}
pre code { background: none; color: inherit; padding: 0; }

/* ============================================================
   4. LAYOUT & GRID
============================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--spacing-xl);
    padding: var(--spacing-lg) 0;
    align-items: start;
}

.site-layout--full { grid-template-columns: 1fr; }

/* Post Grids */
.post-grid           { display: grid; gap: var(--gap); }
.post-grid--3col     { grid-template-columns: repeat(3, 1fr); }
.post-grid--2col     { grid-template-columns: repeat(2, 1fr); }
.post-grid--4col     { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   5. TOP BAR
============================================================ */
.topbar {
    background: var(--color-dark);
    color: var(--color-gray-400);
    font-size: 11px;
    padding: 5px 0;
    border-bottom: 1px solid #333;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}
.topbar__left  { display: flex; align-items: center; gap: 16px; }
.topbar__right { display: flex; align-items: center; gap: 12px; }

.topbar__date { color: var(--color-gray-500); }
.topbar__weather { color: var(--color-gray-400); }

.topbar__live {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff6b6b;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.topbar__live-dot {
    width: 6px; height: 6px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

.topbar__social { display: flex; gap: 10px; }
.topbar__social a {
    color: var(--color-gray-500);
    font-size: 13px;
    transition: color var(--transition);
}
.topbar__social a:hover { color: #fff; }

/* ============================================================
   6. HEADER & NAVIGATION
============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: var(--spacing-md);
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; gap: 8px; }
.custom-logo   { max-height: 44px; width: auto; }
.site-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--color-gray-800);
    letter-spacing: -1px;
    line-height: 1;
}
.site-title span { color: var(--color-primary); }

/* Search */
.header-search { position: relative; flex: 0 0 220px; }
.header-search input {
    width: 100%;
    height: 36px;
    border: 1px solid var(--color-gray-300);
    border-radius: 18px;
    padding: 0 36px 0 14px;
    font-size: 13px;
    background: var(--color-gray-100);
    transition: all var(--transition);
}
.header-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(226,75,74,.1);
}
.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-500);
    font-size: 15px;
    padding: 0;
}

/* Nav */
.main-navigation { flex: 1; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
    z-index: 200;
}
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--color-gray-700);
    border-bottom: 1px solid var(--color-gray-100);
}
.nav-menu .sub-menu li:last-child a { border-bottom: none; }
.nav-menu .sub-menu li a:hover { color: var(--color-primary); background: var(--color-primary-light); }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 18px;
    color: var(--color-gray-700);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-primary);
    width: 0;
    z-index: 9999;
    transition: width .1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   7. BREAKING NEWS TICKER
============================================================ */
.breaking-bar {
    background: var(--color-primary);
    color: #fff;
    padding: 7px 0;
    font-size: 12px;
    overflow: hidden;
}
.breaking-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.breaking-label {
    background: #fff;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .05em;
}
.breaking-ticker {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}
.breaking-ticker__track {
    display: inline-block;
    animation: ticker-scroll 30s linear infinite;
}
.breaking-ticker__track:hover { animation-play-state: paused; }
.breaking-ticker__item { display: inline-block; padding-right: 60px; }
.breaking-ticker__item a { color: #fff; font-weight: 500; }
.breaking-ticker__item a:hover { text-decoration: underline; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   8. CATEGORY NAVIGATION
============================================================ */
.cat-nav {
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav__inner {
    display: flex;
    white-space: nowrap;
}
.cat-nav__inner a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-gray-500);
    border-bottom: 2px solid transparent;
    border-right: 1px solid var(--color-gray-200);
    transition: all var(--transition);
}
.cat-nav__inner a:hover,
.cat-nav__inner a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ============================================================
   9. HERO GRID
============================================================ */
.hero-section { padding: 14px 0 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: block;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .4s ease;
}
.hero-card:hover img { transform: scale(1.03); }

/* Overlay gradient */
.hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}

/* No image fallback */
.hero-card--no-img {
    background: linear-gradient(135deg, var(--color-dark), #2d3748);
}

.hero-card__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
}

.hero-card--main { grid-row: span 2; }
.hero-card--main .hero-card__body { padding: 28px; }

.hero-card__kicker {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.75);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-card__title {
    font-family: var(--font-serif);
    line-height: 1.25;
    color: #fff;
    margin: 0 0 8px;
}
.hero-card--main .hero-card__title { font-size: clamp(18px, 2.5vw, 26px); }
.hero-card--side .hero-card__title { font-size: 15px; font-weight: 600; }

.hero-card__meta {
    font-size: 11px;
    opacity: .8;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   10. NEWS TAG / BADGE
============================================================ */
.news-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    background: var(--cat-default);
    color: var(--cat-default-text);
}

/* Per-category color via data attribute */
[data-cat="politik"]       .news-tag, .news-tag[data-cat="politik"]       { background: var(--cat-politik);       color: var(--cat-politik-text); }
[data-cat="ekonomi"]       .news-tag, .news-tag[data-cat="ekonomi"]       { background: var(--cat-ekonomi);       color: var(--cat-ekonomi-text); }
[data-cat="teknologi"]     .news-tag, .news-tag[data-cat="teknologi"]     { background: var(--cat-teknologi);     color: var(--cat-teknologi-text); }
[data-cat="olahraga"]      .news-tag, .news-tag[data-cat="olahraga"]      { background: var(--cat-olahraga);      color: var(--cat-olahraga-text); }
[data-cat="internasional"] .news-tag, .news-tag[data-cat="internasional"] { background: var(--cat-internasional); color: var(--cat-internasional-text); }
[data-cat="kesehatan"]     .news-tag, .news-tag[data-cat="kesehatan"]     { background: var(--cat-kesehatan);     color: var(--cat-kesehatan-text); }
[data-cat="nasional"]      .news-tag, .news-tag[data-cat="nasional"]      { background: var(--cat-nasional);      color: var(--cat-nasional-text); }
[data-cat="hiburan"]       .news-tag, .news-tag[data-cat="hiburan"]       { background: var(--cat-hiburan);       color: var(--cat-hiburan-text); }

/* ============================================================
   11. POST CARDS
============================================================ */
.post-card {
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.post-card__img-wrap { overflow: hidden; }
.post-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-card:hover .post-card__img { transform: scale(1.04); }

.post-card__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card__tag { margin-bottom: 7px; }

.post-card__title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-gray-800);
    margin-bottom: 8px;
    flex: 1;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--color-primary); }

.post-card__excerpt {
    font-size: 13px;
    color: var(--color-gray-500);
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--color-gray-400);
    border-top: 1px solid var(--color-gray-100);
    padding-top: 10px;
    margin-top: auto;
}
.post-card__meta .author { font-weight: 600; color: var(--color-gray-600); }
.post-card__meta .reading-time { display: flex; align-items: center; gap: 3px; }

/* List-style card */
.post-list-card {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-gray-200);
    align-items: flex-start;
}
.post-list-card:last-child { border-bottom: none; }

.post-list-card__img {
    width: 90px;
    height: 68px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.post-list-card__img--placeholder {
    background: var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-size: 20px;
}

.post-list-card__body { flex: 1; min-width: 0; }
.post-list-card__title {
    font-family: var(--font-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-gray-800);
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-list-card__title a:hover { color: var(--color-primary); }
.post-list-card__meta {
    font-size: 11px;
    color: var(--color-gray-400);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================================
   12. SECTION HEADERS
============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: var(--spacing-md);
    position: relative;
}
.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--color-primary);
}
.section-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title i { color: var(--color-primary); }
.section-more {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-more:hover { text-decoration: underline; }

/* ============================================================
   13. TWO-COLUMN LAYOUT
============================================================ */
.two-col-section { padding: var(--spacing-lg) 0; }
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--spacing-xl);
    align-items: start;
}

/* ============================================================
   14. SIDEBAR WIDGETS
============================================================ */
.sidebar { position: sticky; top: 80px; }
.widget  { margin-bottom: var(--spacing-lg); }

.widget-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-200);
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 40px; height: 2px;
    background: var(--color-primary);
}
.widget-title i { color: var(--color-primary); font-size: 16px; }

/* Trending widget */
.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-gray-200);
    line-height: 1;
    min-width: 28px;
    font-family: var(--font-serif);
}
.trending-item:first-child .trending-num { color: var(--color-primary); }
.trending-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-gray-700);
}
.trending-title a { color: inherit; }
.trending-title a:hover { color: var(--color-primary); }
.trending-meta { font-size: 11px; color: var(--color-gray-400); margin-top: 3px; }

/* Market ticker widget */
.market-widget {
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 12px;
}
.market-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid var(--color-gray-200);
    font-size: 12px;
}
.market-row:last-child { border-bottom: none; }
.market-name { font-weight: 600; color: var(--color-gray-700); }
.market-val  { font-weight: 700; }
.market-chg  { font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 3px; }
.up          { color: #16a34a; background: #dcfce7; }
.dn          { color: #dc2626; background: #fee2e2; }

/* Newsletter widget */
.newsletter-widget {
    background: var(--color-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    color: #fff;
}
.newsletter-widget h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.newsletter-widget p  { font-size: 12px; opacity: .85; margin-bottom: 14px; }
.newsletter-widget input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    margin-bottom: 8px;
    background: rgba(255,255,255,.2);
    color: #fff;
}
.newsletter-widget input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-widget input:focus { outline: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.3); }
.newsletter-widget button {
    width: 100%;
    padding: 9px;
    background: #fff;
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    transition: opacity var(--transition);
}
.newsletter-widget button:hover { opacity: .9; }

/* Tags cloud widget */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border: 1px solid var(--color-gray-300);
    border-radius: 20px;
    color: var(--color-gray-600);
    transition: all var(--transition);
}
.tag-cloud a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* ============================================================
   15. SINGLE POST
============================================================ */
.single-post { padding: var(--spacing-lg) 0; }

/* Breadcrumb */
.breadcrumb {
    font-size: 12px;
    color: var(--color-gray-400);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--color-gray-300); }

/* Article header */
.article-kicker {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-800);
    margin-bottom: 14px;
}
.article-deck {
    font-size: 18px;
    color: var(--color-gray-600);
    line-height: 1.6;
    font-family: var(--font-serif);
    font-style: italic;
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
    margin-bottom: 20px;
}

/* Article meta bar */
.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.article-meta__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
}
.article-meta__avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gray-200);
}
.article-meta__avatar--placeholder {
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    width: 32px; height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.article-meta__item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-gray-500);
}
.article-meta__item i { font-size: 14px; }
.article-meta__sep { color: var(--color-gray-300); }

/* Share bar */
.share-bar {
    display: flex;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid;
    transition: all var(--transition);
    white-space: nowrap;
}
.share-btn--fb    { border-color: #1877F2; color: #1877F2; }
.share-btn--fb:hover { background: #1877F2; color: #fff; }
.share-btn--tw    { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn--tw:hover { background: #1DA1F2; color: #fff; }
.share-btn--wa    { border-color: #25D366; color: #25D366; }
.share-btn--wa:hover { background: #25D366; color: #fff; }
.share-btn--copy  { border-color: var(--color-gray-300); color: var(--color-gray-500); }
.share-btn--copy:hover { background: var(--color-gray-100); }

/* Featured image */
.article-featured-img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}
.article-img-caption {
    font-size: 12px;
    color: var(--color-gray-400);
    text-align: center;
    margin-bottom: 24px;
    font-style: italic;
}

/* Article body */
.entry-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--color-gray-700);
    max-width: 720px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 32px 0 14px;
    color: var(--color-gray-800);
}
.entry-content p  { margin-bottom: 20px; }
.entry-content img {
    border-radius: var(--radius-md);
    margin: 24px auto;
    width: 100%;
}
.entry-content a  { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul,
.entry-content ol { padding-left: 24px; margin-bottom: 20px; list-style: initial; }
.entry-content li { margin-bottom: 6px; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.entry-content th,
.entry-content td {
    padding: 10px 14px;
    border: 1px solid var(--color-gray-200);
    text-align: left;
}
.entry-content th { background: var(--color-gray-100); font-weight: 700; }

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 8px;
}
.post-tags__label { font-size: 12px; color: var(--color-gray-400); font-weight: 600; margin-right: 4px; }
.post-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--color-gray-300);
    border-radius: 20px;
    font-size: 11px;
    color: var(--color-gray-600);
    transition: all var(--transition);
}
.post-tag:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Post nav */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    margin: 24px 0;
}
.nav-previous, .nav-next {
    padding: 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.nav-previous:hover, .nav-next:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.nav-next { text-align: right; }
.nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-gray-400);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.nav-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-700);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   16. AUTHOR BOX
============================================================ */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--color-gray-200);
}
.author-box__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: var(--shadow-sm);
}
.author-box__avatar--placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-serif);
}
.author-box__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.author-box__role {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}
.author-box__bio {
    font-size: 13px;
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: 10px;
}
.author-box__social { display: flex; gap: 8px; }
.author-box__social a {
    font-size: 13px;
    color: var(--color-gray-500);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
}
.author-box__social a:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* ============================================================
   17. RELATED POSTS
============================================================ */
.related-posts { margin: 32px 0 0; }
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ============================================================
   18. COMMENTS
============================================================ */
.comments-area { margin-top: 32px; }
.comments-title {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gray-200);
    position: relative;
}
.comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 50px; height: 2px;
    background: var(--color-primary);
}

.comment-list { margin: 0; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--color-gray-100); }
.comment-body { display: flex; gap: 14px; }
.comment-author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-content { flex: 1; }
.comment-author-name {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}
.comment-date { font-size: 11px; color: var(--color-gray-400); margin-bottom: 8px; }
.comment-text { font-size: 14px; line-height: 1.65; color: var(--color-gray-600); }
.comment-reply-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 8px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Comment form */
.comment-form { margin-top: 32px; }
.comment-form-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.comment-form .form-group { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--color-gray-700); }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: border-color var(--transition);
    background: #fff;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(226,75,74,.1);
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.btn-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition);
}
.btn-submit:hover { background: var(--color-primary-dark); }

/* ============================================================
   19. FOOTER
============================================================ */
.site-footer {
    background: var(--color-dark);
    color: var(--color-gray-400);
    margin-top: var(--spacing-xl);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid #333;
}

.footer-widget h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

.footer-brand .site-title { font-size: 22px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }

.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 34px; height: 34px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-size: 14px;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.footer-nav li { margin-bottom: 8px; }
.footer-nav a  { font-size: 13px; color: var(--color-gray-400); transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }

.footer-recent-post {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #2a2a2a;
}
.footer-recent-post:last-child { border-bottom: none; }
.footer-recent-thumb {
    width: 52px; height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.footer-recent-title { font-size: 12px; color: var(--color-gray-300); line-height: 1.4; }
.footer-recent-title a { color: inherit; }
.footer-recent-title a:hover { color: #fff; }
.footer-recent-date { font-size: 10px; color: var(--color-gray-500); margin-top: 3px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 12px;
}
.footer-bottom-nav { display: flex; gap: 16px; }
.footer-bottom-nav a { color: var(--color-gray-500); }
.footer-bottom-nav a:hover { color: #fff; }

/* ============================================================
   20. UTILITY CLASSES
============================================================ */
.text-primary  { color: var(--color-primary); }
.text-muted    { color: var(--color-gray-400); }
.text-serif    { font-family: var(--font-serif); }
.bg-light      { background: var(--color-gray-100); }
.bg-dark       { background: var(--color-dark); }

.section-pad   { padding: var(--spacing-lg) 0; }
.mb-lg         { margin-bottom: var(--spacing-lg); }
.mt-lg         { margin-top: var(--spacing-lg); }

.badge-new {
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    vertical-align: middle;
}

.loading-placeholder {
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    padding: var(--spacing-lg) 0;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gray-600);
    transition: all var(--transition);
}
.page-numbers:hover,
.page-numbers.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.page-numbers.dots { border: none; width: auto; }

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px; height: 40px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover   { background: var(--color-primary-dark); transform: translateY(-2px); }

/* ============================================================
   21. DARK MODE
============================================================ */
@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-100: #1e1e1e;
        --color-gray-200: #2a2a2a;
        --color-gray-300: #3a3a3a;
        --color-gray-400: #888888;
        --color-gray-500: #aaaaaa;
        --color-gray-600: #cccccc;
        --color-gray-700: #dddddd;
        --color-gray-800: #f0f0f0;
    }
    body { background: #111; color: var(--color-gray-700); }
    .site-header  { background: #1a1a1a; border-color: #2a2a2a; }
    .post-card    { background: #1a1a1a; border-color: #2a2a2a; }
    .author-box   { background: #1a1a1a; }
    .comment-form input,
    .comment-form textarea { background: #1e1e1e; border-color: #333; color: #ddd; }
    .hero-card--side { background: #1a1a1a; }
}

/* Dark mode toggle class (for JS-toggled dark mode) */
body.dark-mode {
    --color-gray-100: #1e1e1e;
    --color-gray-200: #2a2a2a;
    --color-gray-300: #3a3a3a;
    --color-gray-400: #888888;
    --color-gray-500: #aaaaaa;
    --color-gray-600: #cccccc;
    --color-gray-700: #dddddd;
    --color-gray-800: #f0f0f0;
    background: #111;
}

/* ============================================================
   22. RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    :root { --container-width: 100%; --sidebar-width: 260px; }
    .hero-grid { height: 380px; }
    .post-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
    :root { --sidebar-width: 100%; }

    /* Nav */
    .menu-toggle   { display: flex; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-gray-200);
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .main-navigation.is-open { display: block; }
    .nav-menu { flex-direction: column; padding: 8px 0; gap: 0; }
    .nav-menu > li > a { border-radius: 0; padding: 12px 20px; }
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--color-gray-100);
        padding-left: 16px;
    }

    /* Hero */
    .hero-grid { grid-template-columns: 1fr; height: auto; }
    .hero-card--main  { height: 260px; }
    .hero-card--side  { height: 130px; }

    /* Layouts */
    .two-col-layout     { grid-template-columns: 1fr; }
    .site-layout        { grid-template-columns: 1fr; }
    .post-grid--3col    { grid-template-columns: repeat(2, 1fr); }
    .related-posts__grid { grid-template-columns: 1fr 1fr; }
    .post-navigation    { grid-template-columns: 1fr; }

    /* Article */
    .article-meta   { gap: 8px; }
    .share-bar      { margin-left: 0; width: 100%; }
    .article-title  { font-size: 24px; }
    .entry-content  { font-size: 16px; }
    .author-box     { flex-direction: column; align-items: center; text-align: center; }

    /* Header search */
    .header-search { display: none; }

    /* Footer */
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .footer-bottom  { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .post-grid--3col      { grid-template-columns: 1fr; }
    .post-grid--2col      { grid-template-columns: 1fr; }
    .related-posts__grid  { grid-template-columns: 1fr; }
    .comment-form .form-row { grid-template-columns: 1fr; }
    .footer-widgets       { grid-template-columns: 1fr; }
    .topbar               { display: none; }
    .hero-card--side      { display: none; }
    .hero-card--main      { height: 220px; }
}

/* ============================================================
   SINGLE POST — EXTENDED STYLES
============================================================ */

/* ── ARTICLE LAYOUT WRAPPER ─────────────────────────────── */
.article-wrapper {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── FLOATING SHARE SIDEBAR ─────────────────────────────── */
.floating-share {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}
.floating-share__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: .05em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 4px;
}
.floating-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-gray-500);
    transition: all var(--transition);
    cursor: pointer;
}
.floating-share__btn:hover { transform: scale(1.1); }
.floating-share__btn--fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.floating-share__btn--tw:hover  { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
.floating-share__btn--wa:hover  { background: #25D366; border-color: #25D366; color: #fff; }
.floating-share__btn--copy:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.floating-share__divider {
    width: 1px;
    height: 24px;
    background: var(--color-gray-200);
}
.floating-share__like {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.floating-share__like-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-gray-500);
}
.floating-share__like-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-200);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all var(--transition);
}
.floating-share__like-btn:hover,
.floating-share__like-btn.liked { color: #e24b4a; border-color: #e24b4a; }
.floating-share__like-btn.liked { background: #FCEBEB; }

/* ── TABLE OF CONTENTS ───────────────────────────────────── */
.toc-box {
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 28px 0;
}
.toc-box__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--color-gray-600);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}
.toc-box__title i { font-size: 14px; transition: transform .2s; }
.toc-box__title.collapsed i { transform: rotate(-90deg); }
.toc-box__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-box__list li {
    padding: 3px 0;
    border-bottom: 1px solid var(--color-gray-200);
}
.toc-box__list li:last-child { border-bottom: none; }
.toc-box__list a {
    font-size: 13px;
    color: var(--color-gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
}
.toc-box__list a:hover { color: var(--color-primary); }
.toc-box__list a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    opacity: .5;
}
.toc-box__list a.active { color: var(--color-primary); font-weight: 600; }
.toc-box__list a.active::before { opacity: 1; }
.toc-box__list--h3 { padding-left: 18px; }
.toc-box__list--h3 a::before { background: var(--color-gray-400); }

/* ── ARTICLE BODY ENHANCEMENTS ───────────────────────────── */
.entry-content .wp-block-pullquote {
    border-top: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    padding: 20px 0;
    text-align: center;
    margin: 32px 0;
}
.entry-content .wp-block-pullquote p {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--color-gray-700);
    line-height: 1.5;
}

/* Inline info box */
.entry-content .info-box {
    background: #E6F1FB;
    border-left: 3px solid #185FA5;
    padding: 14px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0;
    font-size: 14px;
    color: #0C447C;
}

/* Drop cap first paragraph */
.entry-content > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 3.8em;
    line-height: .75;
    margin: 4px 8px 0 0;
    color: var(--color-primary);
    font-weight: 700;
}

/* ── POST SCORE / RATING ─────────────────────────────────── */
.post-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-top: 1px solid var(--color-gray-200);
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-gray-500);
}
.post-rating__stars { color: #f59e0b; font-size: 15px; }
.post-rating__count { font-size: 12px; }

/* ── ARTICLE FOOTER DIVIDER ──────────────────────────────── */
.article-footer-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--color-gray-300);
    font-size: 13px;
}
.article-footer-divider::before,
.article-footer-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray-200);
}

/* ── INLINE NEWSLETTER (mid-article) ─────────────────────── */
.inline-newsletter {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
    text-align: center;
    color: #fff;
}
.inline-newsletter h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 6px;
}
.inline-newsletter p {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin-bottom: 16px;
}
.inline-newsletter .nl-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}
.inline-newsletter input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    background: rgba(255,255,255,.15);
    color: #fff;
}
.inline-newsletter input::placeholder { color: rgba(255,255,255,.5); }
.inline-newsletter button {
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ── STICKY READING STATUS BAR ───────────────────────────── */
.reading-status {
    position: sticky;
    top: 60px;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 8px 0;
    display: none;
}
.reading-status.visible { display: block; }
.reading-status__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.reading-status__title {
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reading-status__bar {
    width: 100px;
    height: 4px;
    background: var(--color-gray-200);
    border-radius: 2px;
    flex-shrink: 0;
}
.reading-status__fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    width: 0;
    transition: width .1s;
}

/* ── RESPONSIVE: HIDE FLOATING SHARE ─────────────────────── */
@media (max-width: 900px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }
    .floating-share { display: none; }
}
