/*
Theme Name: DharmicStories
Theme URI: https://dharmicstories.com
Author: DharmicStories
Author URI: https://dharmicstories.com
Description: A premium, scholarly, manuscript-inspired WordPress theme for intellectual dharma storytelling. Features light/dark modes, beautiful typography, and a timeless aesthetic rooted in Indian cultural heritage.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dharmic-stories
Tags: blog, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================ */

:root {
    /* Brand Palette */
    --clr-primary-bg:        #3B0F1A;
    --clr-secondary-bg:      #2A0A12;
    --clr-surface:           #F5EDE3;
    --clr-accent-gold:       #D6B36A;
    --clr-gold-highlight:    #F4E2A1;
    --clr-gold-shadow:       #8C6A2F;
    --clr-text-primary:      #1A1A1A;
    --clr-text-secondary:    #6B5E4A;
    --clr-border:            #E5D3A1;

    /* Light Theme (default) */
    --bg:                    #F5EDE3;
    --bg-card:               #FFFFFF;
    --bg-card-hover:         #FDF8F2;
    --text:                  #1A1A1A;
    --text-muted:            #6B5E4A;
    --accent:                #D6B36A;
    --accent-hover:          #8C6A2F;
    --accent-light:          #F4E2A1;
    --border:                #E5D3A1;
    --border-subtle:         #EDE0C8;
    --shadow:                rgba(140, 106, 47, 0.12);
    --shadow-md:             rgba(140, 106, 47, 0.20);
    --header-bg:             #3B0F1A;
    --header-text:           #F5EDE3;
    --header-accent:         #D6B36A;
    --footer-bg:             #2A0A12;
    --footer-text:           #F5EDE3;
    --footer-muted:          #9E8B73;
    --footer-border:         rgba(214, 179, 106, 0.25);
    --tag-bg:                #F4E2A1;
    --tag-text:              #6B5E4A;
    --toc-bg:                #FDF8F2;
    --code-bg:               #F0E6D3;
    --blockquote-border:     #D6B36A;
    --blockquote-bg:         rgba(214, 179, 106, 0.08);
    --input-bg:              #FFFFFF;
    --input-border:          #E5D3A1;
    --input-focus:           #D6B36A;
    --overlay:               rgba(59, 15, 26, 0.60);

    /* Typography Scale */
    --ff-heading:            'Playfair Display', 'Noto Sans Devanagari', Georgia, serif;
    --ff-body:               'Inter', 'Noto Sans Devanagari', system-ui, sans-serif;
    --ff-accent:             'Cormorant Garamond', serif;

    --fs-xs:                 0.75rem;
    --fs-sm:                 0.875rem;
    --fs-base:               1rem;
    --fs-md:                 1.125rem;
    --fs-lg:                 1.25rem;
    --fs-xl:                 1.5rem;
    --fs-2xl:                1.875rem;
    --fs-3xl:                2.25rem;
    --fs-4xl:                3rem;
    --fs-5xl:                3.75rem;

    --lh-tight:              1.2;
    --lh-snug:               1.4;
    --lh-normal:             1.6;
    --lh-relaxed:            1.75;
    --lh-loose:              2;

    --fw-light:              300;
    --fw-regular:            400;
    --fw-medium:             500;
    --fw-semibold:           600;
    --fw-bold:               700;

    /* Spacing */
    --space-1:               0.25rem;
    --space-2:               0.5rem;
    --space-3:               0.75rem;
    --space-4:               1rem;
    --space-5:               1.25rem;
    --space-6:               1.5rem;
    --space-8:               2rem;
    --space-10:              2.5rem;
    --space-12:              3rem;
    --space-16:              4rem;
    --space-20:              5rem;
    --space-24:              6rem;

    /* Layout */
    --max-width:             1200px;
    --content-width:         720px;
    --sidebar-width:         300px;
    --header-height:         72px;

    /* Effects */
    --radius-sm:             4px;
    --radius-md:             8px;
    --radius-lg:             16px;
    --radius-xl:             24px;
    --radius-full:           9999px;

    --transition-fast:       150ms ease;
    --transition-base:       250ms ease;
    --transition-slow:       400ms ease;
}

/* Dark Theme Variables */
body.dark-theme {
    --bg:                    #2A0A12;
    --bg-card:               #3B0F1A;
    --bg-card-hover:         #4A1520;
    --text:                  #F5EDE3;
    --text-muted:            #B8A89A;
    --accent:                #D6B36A;
    --accent-hover:          #F4E2A1;
    --accent-light:          rgba(214, 179, 106, 0.15);
    --border:                rgba(214, 179, 106, 0.25);
    --border-subtle:         rgba(214, 179, 106, 0.12);
    --shadow:                rgba(0, 0, 0, 0.30);
    --shadow-md:             rgba(0, 0, 0, 0.50);
    --tag-bg:                rgba(214, 179, 106, 0.15);
    --tag-text:              #D6B36A;
    --toc-bg:                #3B0F1A;
    --code-bg:               rgba(0, 0, 0, 0.30);
    --blockquote-bg:         rgba(214, 179, 106, 0.06);
    --input-bg:              #3B0F1A;
    --input-border:          rgba(214, 179, 106, 0.30);
    --overlay:               rgba(0, 0, 0, 0.70);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--text);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-3xl)); }
h4 { font-size: clamp(var(--fs-lg), 2vw, var(--fs-2xl)); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    margin-bottom: var(--space-4);
    line-height: var(--lh-loose);
    color: var(--text);
}

strong, b { font-weight: var(--fw-semibold); }
em, i { font-style: italic; }

/* Devanagari / Hindi text */
[lang="hi"], .hindi-text, .devanagari {
    font-family: 'Noto Serif Devanagari', 'Mangal', 'Noto Sans Devanagari', serif;
    line-height: 1.9;
}

/* Accent text — quotes, mantras, pull quotes */
.text-accent,
blockquote,
.mantra-text,
.pull-quote {
    font-family: var(--ff-accent);
}

/* ============================================================
   LAYOUT CONTAINERS
   ============================================================ */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--narrow {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.main-content {
    flex: 1;
    padding-block: var(--space-16);
}

/* Two-column layout */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-12);
    align-items: start;
}

/* ============================================================
   SITE HEADER
   ============================================================ */

.site-header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid rgba(214, 179, 106, 0.20);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--header-text);
    letter-spacing: 0.01em;
}

.logo-tagline {
    font-family: var(--ff-accent);
    font-size: var(--fs-xs);
    color: var(--header-accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Primary Navigation */
.nav-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-primary ul {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-primary li {
    position: relative;
}

.nav-primary a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--header-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
    opacity: 0.85;
}

.nav-primary a:hover,
.nav-primary .current-menu-item > a,
.nav-primary .current-menu-ancestor > a {
    color: var(--header-accent);
    opacity: 1;
    background: rgba(214, 179, 106, 0.10);
}

/* Dropdown */
.nav-primary .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #3B0F1A;
    border: 1px solid rgba(214, 179, 106, 0.25);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    box-shadow: 0 8px 32px rgba(0,0,0,0.40);
    z-index: 200;
}

.nav-primary li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-primary .sub-menu a {
    display: block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Search toggle */
.header-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    color: var(--header-text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(214, 179, 106, 0.20);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.header-search-toggle:hover {
    background: rgba(214, 179, 106, 0.15);
    color: var(--header-accent);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    color: var(--header-text);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(214, 179, 106, 0.20);
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
}

.theme-toggle:hover {
    background: rgba(214, 179, 106, 0.15);
    color: var(--header-accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: opacity var(--transition-fast), transform var(--transition-base);
    position: absolute;
}

.icon-sun { opacity: 1; }
.icon-moon { opacity: 0; transform: rotate(90deg); }

body.dark-theme .icon-sun { opacity: 0; transform: rotate(-90deg); }
body.dark-theme .icon-moon { opacity: 1; transform: rotate(0deg); }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--header-text);
    background: transparent;
    border: 1px solid rgba(214, 179, 106, 0.20);
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--header-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Header Search Bar */
.header-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(214, 179, 106, 0.20);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: 99;
}

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

.header-search-bar form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-3);
}

.header-search-bar input[type="search"] {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(214, 179, 106, 0.30);
    border-radius: var(--radius-md);
    color: var(--header-text);
    font-size: var(--fs-base);
    outline: none;
    transition: border-color var(--transition-fast);
}

.header-search-bar input[type="search"]::placeholder {
    color: rgba(245, 237, 227, 0.50);
}

.header-search-bar input[type="search"]:focus {
    border-color: var(--accent);
}

.header-search-bar button[type="submit"] {
    padding: var(--space-3) var(--space-5);
    background: var(--accent);
    color: #1A1A1A;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    transition: background var(--transition-fast);
}

.header-search-bar button[type="submit"]:hover {
    background: var(--clr-gold-highlight);
}

/* ============================================================
   ORNAMENTAL DIVIDER
   ============================================================ */

.ornament {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-block: var(--space-8);
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.ornament-symbol {
    color: var(--accent);
    font-family: var(--ff-accent);
    font-size: var(--fs-xl);
    line-height: 1;
    flex-shrink: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    margin-bottom: var(--space-10);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--ff-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
    color: var(--text);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-family: var(--ff-accent);
    font-size: var(--fs-md);
    color: var(--text-muted);
    font-style: italic;
    line-height: var(--lh-relaxed);
}

/* ============================================================
   POST CARDS
   ============================================================ */

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-md);
    background: var(--bg-card-hover);
}

.post-card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--border-subtle);
    flex-shrink: 0;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.04);
}

.post-card-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-primary-bg), var(--clr-secondary-bg));
    font-family: var(--ff-accent);
    font-size: var(--fs-4xl);
    color: rgba(214, 179, 106, 0.40);
}

.post-card-category {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--accent);
    color: #1A1A1A;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.post-card-body {
    padding: var(--space-5) var(--space-5) var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
}

.post-card-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
}

.post-card-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-snug);
    color: var(--text);
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-relaxed);
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.post-card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-more-link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.read-more-link:hover {
    gap: var(--space-3);
    color: var(--accent-hover);
}

.read-more-link::after {
    content: '→';
}

/* Reading time */
.reading-time {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ============================================================
   HERO SECTION — FEATURED POST
   ============================================================ */

.hero-section {
    background: linear-gradient(180deg, var(--clr-primary-bg) 0%, var(--clr-secondary-bg) 100%);
    padding-block: var(--space-20);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(214, 179, 106, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-accent-gold);
    margin-bottom: var(--space-5);
}

.hero-tag::before {
    content: '✦';
    font-size: 10px;
}

.hero-title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    line-height: var(--lh-tight);
    color: #F5EDE3;
    margin-bottom: var(--space-5);
    letter-spacing: -0.02em;
}

.hero-excerpt {
    font-family: var(--ff-accent);
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    color: rgba(245, 237, 227, 0.75);
    margin-bottom: var(--space-8);
    font-style: italic;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    font-size: var(--fs-sm);
    color: rgba(245, 237, 227, 0.60);
}

.hero-meta .sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(214, 179, 106, 0.50);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: var(--clr-accent-gold);
    color: #1A1A1A;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-hero:hover {
    background: var(--clr-gold-highlight);
    transform: translateY(-1px);
    color: #1A1A1A;
}

.hero-image-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.50);
    aspect-ratio: 4/3;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(214, 179, 106, 0.20);
    border-radius: inherit;
    pointer-events: none;
}

/* ============================================================
   POST GRIDS
   ============================================================ */

.posts-grid {
    display: grid;
    gap: var(--space-6);
}

.posts-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

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

.posts-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

/* Featured large card */
.post-card--featured {
    grid-column: span 2;
}

.post-card--featured .post-card-thumbnail {
    aspect-ratio: 21 / 9;
}

.post-card--featured .post-card-title {
    font-size: var(--fs-2xl);
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */

.category-strip {
    padding-block: var(--space-8);
    background: var(--header-bg);
    overflow-x: auto;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-strip-inner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: max-content;
    padding-inline: var(--space-6);
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
    border: 1px solid rgba(214, 179, 106, 0.30);
    color: #F5EDE3;
    text-decoration: none;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--clr-accent-gold);
    border-color: var(--clr-accent-gold);
    color: #1A1A1A;
}

/* ============================================================
   CATEGORY SECTIONS (Homepage)
   ============================================================ */

.category-section {
    padding-block: var(--space-16);
    border-bottom: 1px solid var(--border-subtle);
}

.category-section:last-child {
    border-bottom: none;
}

.category-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.view-all-link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    transition: gap var(--transition-fast);
}

.view-all-link:hover { gap: var(--space-3); }
.view-all-link::after { content: '→'; }

/* ============================================================
   YOUTUBE SECTION
   ============================================================ */

.youtube-section {
    padding-block: var(--space-20);
    background: linear-gradient(180deg, var(--clr-secondary-bg), var(--clr-primary-bg));
    position: relative;
    overflow: hidden;
}

.youtube-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(214, 179, 106, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.youtube-section .section-title,
.youtube-section .section-label,
.youtube-section .section-subtitle {
    color: #F5EDE3;
}

.youtube-section .section-label {
    color: var(--clr-accent-gold);
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0,0,0,0.50);
    border: 1px solid rgba(214, 179, 106, 0.20);
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

/* ============================================================
   SINGLE POST — ARTICLE
   ============================================================ */

.article-hero {
    background: linear-gradient(180deg, var(--clr-primary-bg) 0%, var(--clr-secondary-bg) 40%, transparent 100%);
    padding-top: var(--space-16);
    padding-bottom: 0;
    position: relative;
}

.article-hero-inner {
    text-align: center;
    max-width: 840px;
    margin: 0 auto;
    padding-inline: var(--space-6);
}

.article-category-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-accent-gold);
    margin-bottom: var(--space-5);
    text-decoration: none;
}

.article-title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    color: #F5EDE3;
    line-height: var(--lh-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

.article-subtitle {
    font-family: var(--ff-accent);
    font-size: var(--fs-xl);
    color: rgba(245, 237, 227, 0.75);
    line-height: var(--lh-relaxed);
    font-style: italic;
    margin-bottom: var(--space-8);
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding-block: var(--space-6);
    border-top: 1px solid rgba(214, 179, 106, 0.20);
    margin-top: var(--space-8);
    font-size: var(--fs-sm);
    color: rgba(245, 237, 227, 0.60);
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.article-featured-image {
    margin-top: var(--space-10);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    max-height: 520px;
}

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

/* Article body */
.article-wrap {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
    padding-top: var(--space-12);
    padding-bottom: var(--space-16);
}

.article-body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text);
    letter-spacing: 0.01em;
}

.article-body > * + * {
    margin-top: var(--space-6);
}

/* Intro hook — first paragraph styled larger and more prominent */
.article-body .intro-hook {
    font-size: 1.2rem;
    line-height: 1.85;
    color: var(--text);
    font-weight: var(--fw-medium);
    background: linear-gradient(to right, var(--blockquote-bg), transparent);
    border-left: 3px solid var(--accent);
    padding: var(--space-5) var(--space-6);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: var(--space-8);
}
body.dark-theme .article-body .intro-hook {
    background: linear-gradient(to right, rgba(214,179,106,0.06), transparent);
}

.article-body h2 {
    font-family: var(--ff-heading);
    font-size: clamp(1.4rem, 2.5vw, 1.875rem);
    font-weight: var(--fw-bold);
    margin-top: var(--space-16);
    margin-bottom: var(--space-5);
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--accent);
    display: block;
}

.article-body h3 {
    font-family: var(--ff-heading);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: var(--fw-bold);
    margin-top: var(--space-12);
    margin-bottom: var(--space-3);
    color: var(--text);
    line-height: 1.3;
}

.article-body h4 {
    font-size: var(--fs-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.article-body p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: var(--space-5);
}

.article-body ul,
.article-body ol {
    padding-left: var(--space-6);
    margin-block: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.article-body ul { list-style: none; padding-left: 0; }
.article-body ol { list-style: none; padding-left: 0; counter-reset: dharmic-counter; }

.article-body ul li {
    padding-left: var(--space-7);
    position: relative;
    line-height: 1.75;
    font-size: 1.05rem;
}
.article-body ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 0.65rem;
    top: 7px;
}

.article-body ol li {
    padding-left: var(--space-10);
    position: relative;
    line-height: 1.75;
    font-size: 1.05rem;
    counter-increment: dharmic-counter;
}
.article-body ol li::before {
    content: counter(dharmic-counter);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #1A1A1A;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--ff-body);
}

.article-body a {
    color: var(--accent);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

.article-body blockquote {
    background: var(--blockquote-bg);
    border-left: 4px solid var(--blockquote-border);
    padding: var(--space-6) var(--space-8);
    margin-block: var(--space-10);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--ff-accent);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text);
    position: relative;
}
.article-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.25rem;
    left: var(--space-4);
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.25;
    font-family: var(--ff-accent);
    line-height: 1;
}

.article-body blockquote cite {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--fs-sm);
    font-style: normal;
    color: var(--text-muted);
    font-family: var(--ff-body);
}

.article-body code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.article-body pre {
    background: var(--code-bg);
    padding: var(--space-5);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-block: var(--space-6);
    border: 1px solid var(--border);
}

.article-body pre code {
    background: none;
    padding: 0;
    font-size: var(--fs-sm);
}

.article-body img {
    border-radius: var(--radius-md);
    margin-block: var(--space-6);
    box-shadow: 0 4px 20px var(--shadow);
}

.article-body figure {
    margin-block: var(--space-8);
}

.article-body figcaption {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-3);
    font-style: italic;
    font-family: var(--ff-accent);
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin-block: var(--space-10);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin-block: var(--space-6);
    font-size: var(--fs-sm);
}

.article-body th,
.article-body td {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border);
    text-align: left;
}

.article-body th {
    background: var(--accent-light);
    color: #1A1A1A;
    font-weight: var(--fw-semibold);
}

/* Mantra text */
.mantra-text {
    font-family: var(--ff-accent);
    font-size: var(--fs-2xl);
    text-align: center;
    color: var(--accent);
    letter-spacing: 0.05em;
    line-height: var(--lh-relaxed);
    padding: var(--space-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--blockquote-bg);
    margin-block: var(--space-8);
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.toc-box {
    background: var(--toc-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-10);
}

/* Inline TOC — shown on mobile, hidden on desktop when sidebar TOC is present */
.toc-box--inline { display: block; }
.toc-box--sticky { display: none; }

.toc-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.toc-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.toc-num {
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    min-width: 1.4rem;
    flex-shrink: 0;
}

.toc-list a {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    transition: color var(--transition-fast);
    line-height: var(--lh-snug);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.toc-list a:hover,
.toc-list a.is-active {
    color: var(--accent);
    background: var(--blockquote-bg);
}

.toc-list--h3 { padding-left: var(--space-5); }
.toc-list--h3 a { font-size: var(--fs-xs); }

/* ============================================================
   AD SLOTS
   ============================================================ */

.ad-slot {
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow: hidden;
}

.ad-slot--header {
    height: 90px;
    margin-bottom: var(--space-4);
}

.ad-slot--inline {
    height: 250px;
    margin-block: var(--space-8);
}

.ad-slot--sidebar {
    height: 300px;
    width: 100%;
}

/* ============================================================
   SOCIAL SHARING
   ============================================================ */

.share-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-7) var(--space-6);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--blockquote-bg) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    margin-block: var(--space-10);
}

.share-bar__heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.share-label {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text);
    letter-spacing: -0.01em;
}

.share-bar__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    border: 2px solid transparent;
    color: #fff;
    background: #555;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    cursor: pointer;
    min-height: 44px;
    letter-spacing: 0.02em;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--whatsapp:hover { background: #1EAF54; color: #fff; }

.share-btn--facebook { background: #1877F2; color: #fff; }
.share-btn--facebook:hover { background: #0D63D3; color: #fff; }

.share-btn--twitter { background: #000; color: #fff; }
.share-btn--twitter:hover { background: #222; color: #fff; }

.share-btn--copy {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}
.share-btn--copy:hover { background: var(--accent); color: #1A1A1A; }
.share-btn--copy.is-copied { background: var(--accent); color: #1A1A1A; }

/* ============================================================
   TAGS
   ============================================================ */

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-block: var(--space-6);
}

.tag-item {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--tag-bg);
    color: var(--tag-text);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    text-decoration: none;
    letter-spacing: 0.04em;
    border: 1px solid var(--border);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.tag-item:hover {
    background: var(--accent);
    color: #1A1A1A;
    border-color: var(--accent);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
    padding-block: var(--space-16);
    border-top: 1px solid var(--border);
    margin-top: var(--space-12);
    background: var(--bg-card-hover, var(--bg));
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

/* Enhanced post card hover for related posts */
.related-posts .post-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.related-posts .post-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px var(--shadow-md);
}
.related-posts .post-card-thumbnail img {
    transition: transform 0.4s ease;
}
.related-posts .post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-section {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
    padding-bottom: var(--space-16);
}

.comments-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-2xl);
    color: var(--text);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

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

.comment {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.comment:last-child { border-bottom: none; }

.comment-author-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.comment-author-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author-name {
    font-weight: var(--fw-semibold);
    color: var(--text);
    font-size: var(--fs-sm);
}

.comment-date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.comment-content {
    font-size: var(--fs-base);
    color: var(--text);
    line-height: var(--lh-relaxed);
    padding-left: 56px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--fs-xs);
    color: var(--accent);
    font-weight: var(--fw-medium);
    margin-top: var(--space-2);
    padding-left: 56px;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.comment-reply-link:hover { text-decoration: underline; }

/* Nested */
.children {
    padding-left: var(--space-10);
    list-style: none;
}

/* Comment Form */
.comment-form-wrap {
    margin-top: var(--space-10);
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.comment-form-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    margin-bottom: var(--space-6);
    color: var(--text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-group label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    padding: var(--space-3) var(--space-4);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: var(--fs-base);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(214, 179, 106, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: var(--lh-relaxed);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-8);
    background: var(--accent);
    color: #1A1A1A;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-submit:hover {
    background: var(--clr-gold-highlight);
    transform: translateY(-1px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.sidebar-widget-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    color: var(--text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.sidebar-widget-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--accent);
    border-radius: 2px;
}

/* Search widget */
.sidebar-search-form {
    display: flex;
    gap: var(--space-2);
}

.sidebar-search-form input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: var(--fs-sm);
    outline: none;
}

.sidebar-search-form input:focus { border-color: var(--input-focus); }

.sidebar-search-form button {
    padding: var(--space-2) var(--space-4);
    background: var(--accent);
    color: #1A1A1A;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
}

/* Recent posts widget */
.recent-post-item {
    display: flex;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--border-subtle);
}

.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item:first-child { padding-top: 0; }

.recent-post-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--border-subtle);
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info { flex: 1; min-width: 0; }

.recent-post-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text);
    line-height: var(--lh-snug);
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.recent-post-title a { color: inherit; text-decoration: none; }
.recent-post-title a:hover { color: var(--accent); }

.recent-post-date {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* Categories widget */
.categories-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
}

.categories-list li:last-child { border-bottom: none; }

.categories-list a {
    font-size: var(--fs-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: var(--fw-medium);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.categories-list a::before {
    content: '◆';
    font-size: 6px;
    color: var(--accent);
}

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

.categories-count {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    background: var(--tag-bg);
    padding: 1px 8px;
    border-radius: var(--radius-full);
}

/* Tags cloud widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ============================================================
   ARCHIVE PAGE
   ============================================================ */

.archive-header {
    background: linear-gradient(180deg, var(--clr-primary-bg), var(--clr-secondary-bg));
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
}

.archive-icon {
    font-size: var(--fs-4xl);
    margin-bottom: var(--space-4);
}

.archive-label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-accent-gold);
    margin-bottom: var(--space-3);
}

.archive-title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    color: #F5EDE3;
    margin-bottom: var(--space-5);
}

.archive-description {
    font-family: var(--ff-accent);
    font-size: var(--fs-md);
    color: rgba(245, 237, 227, 0.70);
    font-style: italic;
    max-width: 600px;
    margin-inline: auto;
    line-height: var(--lh-relaxed);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding-top: var(--space-12);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--accent);
    color: #1A1A1A;
    border-color: var(--accent);
}

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-header {
    background: linear-gradient(180deg, var(--clr-primary-bg), var(--clr-secondary-bg));
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
}

.search-title {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    color: #F5EDE3;
    margin-bottom: var(--space-6);
}

.search-form-large {
    max-width: 600px;
    margin-inline: auto;
    display: flex;
    gap: var(--space-3);
}

.search-form-large input[type="search"] {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(214, 179, 106, 0.30);
    border-radius: var(--radius-md);
    color: #F5EDE3;
    font-size: var(--fs-base);
    outline: none;
}

.search-form-large input:focus { border-color: var(--clr-accent-gold); }

.search-form-large button {
    padding: var(--space-4) var(--space-6);
    background: var(--clr-accent-gold);
    color: #1A1A1A;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: var(--space-20) 0;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: var(--fs-5xl);
    margin-bottom: var(--space-6);
    opacity: 0.40;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */

.page-header {
    background: linear-gradient(180deg, var(--clr-primary-bg), var(--clr-secondary-bg));
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
}

.page-title-main {
    font-family: var(--ff-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    color: #F5EDE3;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 1px solid var(--footer-border);
}

.footer-top {
    padding: var(--space-20) 0 var(--space-12);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-10);
}

.footer-brand {}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-5);
}

.footer-logo-name {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    color: #F5EDE3;
    font-weight: var(--fw-bold);
}

.footer-logo-tagline {
    font-family: var(--ff-accent);
    font-size: var(--fs-xs);
    color: var(--clr-accent-gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-about {
    font-size: var(--fs-sm);
    color: var(--footer-muted);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--footer-border);
    color: var(--footer-muted);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--clr-accent-gold);
    color: #1A1A1A;
    border-color: var(--clr-accent-gold);
}

.footer-col-title {
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: #F5EDE3;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--footer-border);
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a::before {
    content: '›';
    color: var(--clr-accent-gold);
    font-size: var(--fs-base);
}

.footer-links a:hover { color: var(--clr-accent-gold); }

/* Newsletter / footer form */
.footer-newsletter-text {
    font-size: var(--fs-sm);
    color: var(--footer-muted);
    margin-bottom: var(--space-4);
    line-height: var(--lh-relaxed);
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-newsletter-form input {
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--footer-border);
    border-radius: var(--radius-md);
    color: #F5EDE3;
    font-size: var(--fs-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.footer-newsletter-form input::placeholder { color: rgba(245, 237, 227, 0.40); }
.footer-newsletter-form input:focus { border-color: var(--clr-accent-gold); }

.footer-newsletter-form button {
    padding: var(--space-3);
    background: var(--clr-accent-gold);
    color: #1A1A1A;
    border-radius: var(--radius-md);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.footer-newsletter-form button:hover { background: var(--clr-gold-highlight); }

/* Footer bottom */
.footer-bottom {
    padding: var(--space-5) 0;
    border-top: 1px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: var(--footer-muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-5);
}

.footer-bottom-links a {
    font-size: var(--fs-xs);
    color: var(--footer-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover { color: var(--clr-accent-gold); }

/* ============================================================
   GUTENBERG / BLOCK EDITOR COMPATIBILITY
   ============================================================ */

.wp-block-image img { border-radius: var(--radius-md); }

.wp-block-pullquote {
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    padding: var(--space-6);
    font-family: var(--ff-accent);
    font-size: var(--fs-xl);
    font-style: italic;
    color: var(--text);
    margin-block: var(--space-8);
}

.wp-block-quote {
    border-left: 3px solid var(--accent);
    padding: var(--space-4) var(--space-6);
    background: var(--blockquote-bg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-block: var(--space-6);
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--border);
    margin-block: var(--space-8);
}

.wp-block-button__link {
    background: var(--accent) !important;
    color: #1A1A1A !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-3) var(--space-6) !important;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.04em;
    transition: background var(--transition-fast);
}

.wp-block-button__link:hover {
    background: var(--clr-gold-highlight) !important;
    color: #1A1A1A !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent-color { color: var(--accent); }
.mt-auto { margin-top: auto; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: #1A1A1A;
    padding: var(--space-2) var(--space-4);
    z-index: 1000;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE — BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .hero-image-wrap { order: -1; }

    .posts-grid--4col { grid-template-columns: repeat(2, 1fr); }
    .posts-grid--3col { grid-template-columns: repeat(2, 1fr); }
    .post-card--featured { grid-column: span 2; }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container { padding-inline: var(--space-4); }
    .container--narrow { padding-inline: var(--space-4); }

    .nav-primary { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* Mobile nav open state */
    .nav-primary.is-open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6);
        overflow-y: auto;
        z-index: 99;
    }

    .nav-primary.is-open ul {
        flex-direction: column;
        width: 100%;
        gap: var(--space-1);
    }

    .nav-primary.is-open li { width: 100%; }
    .nav-primary.is-open a {
        font-size: var(--fs-lg);
        padding: var(--space-4);
        width: 100%;
    }

    .nav-primary.is-open .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.20);
        margin-top: var(--space-1);
        border-radius: var(--radius-md);
    }

    .hero-section { padding-block: var(--space-12); }
    .hero-title { font-size: var(--fs-3xl); }
    .hero-excerpt { font-size: var(--fs-base); }

    .posts-grid--3col,
    .posts-grid--2col,
    .posts-grid--4col { grid-template-columns: 1fr; }

    .post-card--featured { grid-column: span 1; }
    .post-card--featured .post-card-thumbnail { aspect-ratio: 16/9; }

    .form-row { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .related-posts-grid { grid-template-columns: 1fr; }

    .article-title { font-size: var(--fs-3xl); }
    .article-meta-bar { gap: var(--space-3); flex-direction: column; align-items: center; }

    .share-bar { flex-direction: column; align-items: flex-start; }

    .search-form-large { flex-direction: column; }

    .archive-title { font-size: var(--fs-3xl); }

    .toc-box { padding: var(--space-4); }

    .children { padding-left: var(--space-5); }
}

/* Small Mobile */
@media (max-width: 480px) {
    .article-wrap { padding-inline: var(--space-4); }
    .comments-section { padding-inline: var(--space-4); }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .share-bar,
    .related-posts,
    .comments-section,
    .ad-slot,
    .theme-toggle,
    #dharmic-progress-wrap,
    .toc-sidebar,
    .category-strip { display: none !important; }

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

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */

#dharmic-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

#dharmic-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--clr-accent-gold), var(--clr-gold-highlight));
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(214, 179, 106, 0.6);
}

/* ============================================================
   SINGLE-POST: STICKY TOC LAYOUT
   ============================================================ */

/* Outer wrapper — switches to two-column on wide screens */
.single-content-wrap {
    max-width: var(--content-width);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.single-content-wrap--has-toc {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-10);
    align-items: start;
}

/* Sticky TOC sidebar */
.toc-sidebar {
    display: none; /* hidden on mobile */
}

.toc-box--sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    max-height: calc(100vh - var(--header-height) - var(--space-12));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    margin-bottom: 0;
}

/* article-wrap fills the right column */
.single-content-wrap--has-toc .article-wrap {
    max-width: 100%;
    padding-inline: 0;
}

/* Desktop: show sidebar TOC, hide inline TOC */
@media (min-width: 1024px) {
    .toc-sidebar { display: block; }
    .toc-box--inline { display: none; }
}

/* ============================================================
   KEY TAKEAWAY BOX
   ============================================================ */

.key-takeaway-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-7);
    background: linear-gradient(135deg, rgba(214,179,106,0.12) 0%, rgba(244,226,161,0.06) 100%);
    border: 1px solid rgba(214,179,106,0.4);
    border-left: 4px solid var(--clr-accent-gold);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
}

body.dark-theme .key-takeaway-box {
    background: linear-gradient(135deg, rgba(214,179,106,0.08) 0%, rgba(214,179,106,0.03) 100%);
    border-color: rgba(214,179,106,0.3);
    border-left-color: var(--clr-accent-gold);
}

.key-takeaway-box__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--clr-accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    margin-top: 2px;
}

.key-takeaway-box__label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-gold-shadow);
    margin-bottom: var(--space-2);
}

body.dark-theme .key-takeaway-box__label {
    color: var(--clr-accent-gold);
}

.key-takeaway-box__text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
    font-style: italic;
    font-family: var(--ff-accent);
    font-weight: 400;
}

/* ============================================================
   INTRO HOOK — first paragraph prominent style
   (applied via JS, .intro-hook class on first <p>)
   ============================================================ */

/* Already defined in .article-body .intro-hook above */

/* ============================================================
   MID-ARTICLE ORNAMENT DIVIDER
   (injected by JS after 4th paragraph)
   ============================================================ */

.mid-article-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-block: var(--space-10);
}

.mid-article-divider__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.mid-article-divider__symbol {
    color: var(--accent);
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* ============================================================
   VIRAL CONTENT HIGHLIGHT BOXES
   ============================================================ */

/* Generic highlight box */
.highlight-box,
.article-body .highlight-box {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    margin-block: var(--space-8);
    font-size: 1rem;
    line-height: 1.75;
    border: 1px solid transparent;
}

.highlight-box::before,
.warning-box::before,
.tip-box::before {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Important / Highlight */
.highlight-box {
    background: rgba(214,179,106,0.10);
    border-color: rgba(214,179,106,0.35);
    border-left: 4px solid var(--clr-accent-gold);
}
.highlight-box::before { content: '💡'; }

/* Warning / Avoid this */
.warning-box,
.article-body .warning-box {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    margin-block: var(--space-8);
    font-size: 1rem;
    line-height: 1.75;
    background: rgba(200,60,50,0.07);
    border: 1px solid rgba(200,60,50,0.25);
    border-left: 4px solid #C83C32;
    color: var(--text);
}
.warning-box::before { content: '⚠️'; }

/* Tip / Do this */
.tip-box,
.article-body .tip-box {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-md);
    margin-block: var(--space-8);
    font-size: 1rem;
    line-height: 1.75;
    background: rgba(34,139,34,0.07);
    border: 1px solid rgba(34,139,34,0.25);
    border-left: 4px solid #228B22;
    color: var(--text);
}
.tip-box::before { content: '✅'; }

body.dark-theme .highlight-box { background: rgba(214,179,106,0.07); border-color: rgba(214,179,106,0.2); }
body.dark-theme .warning-box   { background: rgba(200,60,50,0.10);   border-color: rgba(200,60,50,0.2); }
body.dark-theme .tip-box       { background: rgba(34,139,34,0.10);   border-color: rgba(34,139,34,0.2); }

/* ============================================================
   CONCLUSION BLOCK
   ============================================================ */

.conclusion-block {
    margin-block: var(--space-12);
    text-align: center;
}

.conclusion-block__ornament {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.conclusion-block__line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.conclusion-block__symbol {
    color: var(--accent);
    font-size: 1rem;
    opacity: 0.8;
    flex-shrink: 0;
}

.conclusion-block__inner {
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.conclusion-block__prompt {
    font-family: var(--ff-accent);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.conclusion-block__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--accent);
    color: #1A1A1A;
    font-weight: var(--fw-semibold);
    font-size: var(--fs-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), transform var(--transition-fast);
    letter-spacing: 0.03em;
}

.conclusion-block__link:hover {
    background: var(--clr-gold-highlight);
    transform: translateY(-2px);
}

/* ============================================================
   AUTHOR BOX — Upgraded
   ============================================================ */

.author-box {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-6) var(--space-7);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-block: var(--space-10);
    transition: box-shadow var(--transition-base);
}

.author-box:hover {
    box-shadow: 0 8px 30px var(--shadow);
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.author-box__name {
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--text);
    margin-bottom: var(--space-1);
}

.author-box__bio {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.author-box__link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--accent);
    transition: color var(--transition-fast);
}

.author-box__link:hover { color: var(--accent-hover); }

/* ============================================================
   POST NAVIGATION — Upgraded
   ============================================================ */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-block: var(--space-10);
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-md);
    border-color: var(--accent);
}

.post-nav-link--next { text-align: right; }

.post-nav-link__dir {
    font-size: var(--fs-xs);
    color: var(--accent);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-nav-link__title {
    font-family: var(--ff-heading);
    font-size: var(--fs-base);
    color: var(--text);
    font-weight: var(--fw-semibold);
    line-height: 1.35;
}

/* ============================================================
   RESPONSIVE — NEW COMPONENTS
   ============================================================ */

@media (max-width: 1024px) {
    /* Switch to single-column layout — inline TOC shows, sidebar hides */
    .single-content-wrap--has-toc {
        display: block;
        max-width: var(--content-width);
        margin-inline: auto;
        padding-inline: var(--space-6);
    }
    .toc-sidebar { display: none !important; }
    .toc-box--inline { display: block !important; }

    .single-content-wrap--has-toc .article-wrap {
        padding-inline: 0;
    }
}

@media (max-width: 768px) {
    .single-content-wrap {
        padding-inline: var(--space-4);
    }

    .key-takeaway-box {
        flex-direction: column;
        gap: var(--space-3);
        padding: var(--space-5);
    }

    .share-bar { padding: var(--space-5); }
    .share-bar__buttons { gap: var(--space-2); }
    .share-btn { padding: var(--space-3) var(--space-4); font-size: var(--fs-xs); min-height: 44px; }

    .conclusion-block__prompt { font-size: 1.2rem; }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-5);
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .article-body p,
    .article-body .intro-hook {
        font-size: 1.05rem;
    }

    .highlight-box,
    .warning-box,
    .tip-box {
        padding: var(--space-4) var(--space-5);
    }
}

@media (max-width: 480px) {
    .article-body h2 { font-size: 1.3rem; }
    .article-body h3 { font-size: 1.1rem; }
    .article-body blockquote { font-size: 1.15rem; padding: var(--space-4) var(--space-5); }
    .key-takeaway-box__text { font-size: 1rem; }
}
