/*
Theme Name: ProductiveBoy 28
Theme URI: https://productiveboy.com
Author: ProductiveBoy
Description: A clean, secure, and customisable blogging theme. Built with modern design principles — dark mode, responsive layout, and Customizer-ready so anyone can build their own box.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: productiveboy28
Tags: two-columns, right-sidebar, custom-colors, custom-logo, editor-style, block-styles, featured-images, threaded-comments, translation-ready
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/


/* ═══════════════════════════════════════════════
   DESIGN TOKENS — LIGHT MODE (default)
   ═══════════════════════════════════════════════ */

:root {
    /* Colour palette */
    --color-navy:       #112960;
    --color-king-blue:  #1E50EF;
    --color-grey:       #B3BBCE;
    --color-light-bg:   #F8F9FA;
    --color-text-main:  #2c2c2c;
    --color-text-light: #666;
    --color-white:      #ffffff;
    --color-border:     #eaeaea;
    --color-card-bg:    #ffffff;
    --color-surface:    #f0f4ff;

    /* Typography */
    --font-heading: 'Roboto Slab', serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-width: 1100px;
    --content-width:   740px;
    --sidebar-width:   300px;
    --radius:          8px;
    --radius-sm:       4px;

    /* Transitions */
    --speed-fast: 0.15s;
    --speed:      0.25s;
    --speed-slow: 0.4s;
    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════════════════
   DARK MODE TOKENS
   ═══════════════════════════════════════════════ */

[data-theme="dark"] {
    --color-navy:       #a8bfff;
    --color-light-bg:   #1a1a2e;
    --color-text-main:  #e0e0e0;
    --color-text-light: #a0a0b0;
    --color-white:      #12121c;
    --color-border:     #2a2a3e;
    --color-card-bg:    #1e1e30;
    --color-surface:    #1e2444;
}

[data-theme="dark"] body {
    background-color: var(--color-white);
    color: var(--color-text-main);
}


/* ═══════════════════════════════════════════════
   GLOBAL RESET & TYPOGRAPHY
   ═══════════════════════════════════════════════ */

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

html {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

::selection {
    background: var(--color-king-blue);
    color: white;
}

a {
    color: var(--color-king-blue);
    text-decoration: none;
    transition: color var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}

a:hover { opacity: 0.8; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    margin-top: 2em;
    margin-bottom: 0.5em;
    font-weight: 700;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.25;
    transition: color var(--speed) var(--ease);
}

h1 { font-size: 2.5rem; line-height: 1.1; margin-top: 0; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1.5em;
    font-size: 1.08rem;
    line-height: 1.75;
}

blockquote {
    margin: 24px 0 24px 0;
    padding: 16px 20px 16px 24px;
    border-left: 4px solid var(--color-king-blue);
    font-style: italic;
    color: var(--color-text-light);
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    max-width: 100%;
}

.aligncenter { display: block; margin: 0 auto; }
.alignleft   { float: left; margin-right: 20px; }
.alignright  { float: right; margin-left: 20px; }


/* ═══════════════════════════════════════════════
   LAYOUT UTILITIES
   ═══════════════════════════════════════════════ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background-color: var(--color-king-blue);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background-color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--color-navy);
    color: white;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   READING PROGRESS BAR
   ═══════════════════════════════════════════════ */

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--color-king-blue), #6c8cff);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */

#site-header {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
    background: var(--color-white);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--speed) var(--ease),
                box-shadow var(--speed) var(--ease),
                border-color var(--speed) var(--ease);
}

#site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom-color: transparent;
}

[data-theme="dark"] #site-header.is-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: visible;
}

.logo { display: flex; align-items: center; }
.logo img,
.custom-logo { max-height: 50px; width: auto; display: block; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon buttons (dark mode toggle, hamburger) */
.icon-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text-main);
    transition: background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
    line-height: 1;
}

.icon-btn:hover {
    background: var(--color-surface);
    border-color: var(--color-king-blue);
}

/* Hamburger */
.menu-toggle {
    display: none; /* shown in mobile */
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 1px;
    transition: transform var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}

/* Desktop nav */
nav#site-navigation ul {
    display: flex;
    list-style: none;
    gap: 28px;
    margin: 0;
    padding: 0;
}

nav#site-navigation ul li { margin: 0; }

nav#site-navigation a {
    color: var(--color-navy);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--speed-fast) var(--ease);
}

nav#site-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-king-blue);
    transition: width var(--speed) var(--ease);
}

nav#site-navigation a:hover::after,
nav#site-navigation .current-menu-item a::after {
    width: 100%;
}


/* ═══════════════════════════════════════════════
   MAIN LAYOUT GRID
   ═══════════════════════════════════════════════ */

.main-grid {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 60px;
    padding: 40px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.content-column {
    width: 100%;
    min-width: 0;
}

/* Full-width variant for page.php */
.content-fullwidth {
    grid-column: 1 / -1;
    max-width: var(--content-width);
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════
   POST CARDS & CONTENT
   ═══════════════════════════════════════════════ */

.pinned-post {
    background-color: var(--color-surface);
    border-left: 5px solid var(--color-king-blue);
    padding: 30px;
    margin-bottom: 50px;
    border-radius: 0 var(--radius) var(--radius) 0;
    width: 100%;
    transition: background-color var(--speed) var(--ease);
}

.pinned-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-king-blue);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    font-family: var(--font-body);
}

.pinned-post h2 { margin-top: 0; font-size: 2rem; }

article {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 60px;
    width: 100%;
    max-width: 100%;
    transition: border-color var(--speed) var(--ease);
}

article:last-child { border-bottom: none; }

/* Post thumbnail */
.post-thumbnail {
    display: block;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform var(--speed-slow) var(--ease);
}

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

.post-meta {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
}

.post-title a {
    color: var(--color-navy);
    transition: color var(--speed-fast) var(--ease);
}

.post-title a:hover {
    color: var(--color-king-blue);
    opacity: 1;
}

.entry-content,
.post-excerpt,
.pinned-post p,
.pinned-post h2,
.post-title {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.entry-content pre,
.entry-content table,
.entry-content iframe,
.post-excerpt pre {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}


/* ═══════════════════════════════════════════════
   AUTHOR BOX (single.php)
   ═══════════════════════════════════════════════ */

.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--color-surface);
    padding: 24px;
    border-radius: var(--radius);
    margin: 40px 0 30px;
    transition: background-color var(--speed) var(--ease);
}

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

.author-info { flex: 1; }

.author-name {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--color-navy);
}

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


/* ═══════════════════════════════════════════════
   SOCIAL SHARE (single.php)
   ═══════════════════════════════════════════════ */

.social-share {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 10px;
}

.share-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    transition: transform var(--speed-fast) var(--ease), opacity var(--speed-fast) var(--ease);
}

.share-btn:hover {
    transform: scale(1.1);
    opacity: 1;
    color: white;
}

.share-twitter  { background: #1a1a1a; }
.share-linkedin { background: #0077B5; }
.share-facebook { background: #1877F2; }

.post-divider {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}


/* ═══════════════════════════════════════════════
   POST NAVIGATION
   ═══════════════════════════════════════════════ */

.post-navigation {
    margin-top: 10px;
}

.post-navigation .nav-heading {
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    margin-top: 6px;
}

.post-navigation a {
    font-weight: 500;
    transition: color var(--speed-fast) var(--ease);
}


/* ═══════════════════════════════════════════════
   CALLOUT BOX (Native Block Style)
   ═══════════════════════════════════════════════ */

.wp-block-group.is-style-blue-callout,
.wp-block-paragraph.is-style-blue-callout,
.callout {
    background: var(--color-surface);
    border: 1px solid var(--color-king-blue);
    border-radius: var(--radius);
    padding: 20px;
    margin: 30px 0;
    transition: background-color var(--speed) var(--ease);
}

.wp-block-group.is-style-blue-callout h1,
.wp-block-group.is-style-blue-callout h2,
.wp-block-group.is-style-blue-callout h3,
.wp-block-group.is-style-blue-callout h4,
.callout h4 { margin-top: 0; font-size: 1.1rem; }

.wp-block-group.is-style-blue-callout p:last-child,
.callout p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════
   NATIVE FOOTNOTES
   ═══════════════════════════════════════════════ */

.wp-block-footnotes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.wp-block-footnotes ol { padding-left: 20px; }

.wp-block-footnotes a {
    color: var(--color-king-blue);
    text-decoration: none;
}

a[data-fn] {
    vertical-align: super;
    font-size: 0.7em;
    color: var(--color-king-blue);
    margin-left: 2px;
    text-decoration: none;
    font-weight: bold;
}


/* ═══════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════ */

.pagination {
    margin: 40px 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--speed-fast) var(--ease);
}

.pagination .current {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

.pagination a.page-numbers:hover {
    background: var(--color-king-blue);
    color: white;
    border-color: var(--color-king-blue);
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════ */

aside {
    padding-top: 10px;
}

.widget {
    margin-bottom: 40px;
    transition: transform var(--speed-fast) var(--ease);
}

.widget-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-navy);
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 0;
    font-family: var(--font-body);
    font-weight: 600;
}

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

.widget ul li {
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    transition: border-color var(--speed) var(--ease);
}

.widget ul li a {
    color: var(--color-text-light);
    font-size: 0.95rem;
    transition: color var(--speed-fast) var(--ease);
}

.widget ul li a:hover {
    color: var(--color-king-blue);
    opacity: 1;
}

/* View-all link (podcast section) */
.view-all-link {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    display: block;
    margin-top: 15px;
    transition: color var(--speed-fast) var(--ease);
}

.view-all-link:hover {
    color: var(--color-king-blue);
    opacity: 1;
}


/* ═══════════════════════════════════════════════
   EMAIL CAPTURE WIDGET
   ═══════════════════════════════════════════════ */

.email-widget {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3f8f 100%);
    color: white;
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
}

.email-widget h4 {
    color: white;
    margin-top: 0;
    font-size: 1.2rem;
}

.email-widget p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.email-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--speed-fast) var(--ease);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-king-blue);
}

.email-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--color-king-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}

.email-btn:hover {
    background-color: #3b66f5;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   PODCAST WIDGET
   ═══════════════════════════════════════════════ */

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

.podcast-item {
    display: flex;
    gap: 15px;
    margin-bottom: 16px;
    padding: 10px;
    border-radius: var(--radius-sm);
    align-items: center;
    transition: transform var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease);
}

.podcast-item:hover {
    transform: translateX(4px);
    background: var(--color-surface);
}

.podcast-icon {
    width: 46px;
    height: 46px;
    background: var(--color-surface);
    color: var(--color-king-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background var(--speed) var(--ease);
}

.podcast-details a {
    font-weight: 600;
    color: var(--color-navy);
    display: block;
    line-height: 1.3;
    margin-bottom: 3px;
    font-size: 0.92rem;
    transition: color var(--speed-fast) var(--ease);
}

.podcast-details a:hover {
    color: var(--color-king-blue);
    opacity: 1;
}

.podcast-meta {
    font-size: 0.72rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

#site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 0;
    margin-top: 40px;
    font-size: 0.92rem;
    transition: background-color var(--speed) var(--ease);
}

[data-theme="dark"] #site-footer {
    background: #0a0a14;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    overflow: visible;
}

.footer-logo {
    color: white;
    font-size: 1.3rem;
    margin: 0 0 8px;
    font-family: var(--font-heading);
}

.footer-tagline {
    opacity: 0.7;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
    font-family: var(--font-body);
    font-weight: 600;
}

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

.footer-nav ul li { margin-bottom: 8px; }

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--speed-fast) var(--ease);
}

.footer-nav a:hover {
    color: white;
    opacity: 1;
}

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

.social-links li { margin-bottom: 8px; }

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--speed-fast) var(--ease);
}

.social-links a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    overflow: visible;
}

.footer-bottom p {
    font-size: 0.82rem;
    opacity: 0.6;
    margin: 0;
}


/* ═══════════════════════════════════════════════
   404 PAGE
   ═══════════════════════════════════════════════ */

.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-title {
    font-size: 6rem;
    color: var(--color-king-blue);
    margin: 0;
    line-height: 1;
    opacity: 0.3;
    font-family: var(--font-heading);
}

.error-404 h2 {
    margin-top: 10px;
    font-size: 1.6rem;
}

.error-404 p {
    color: var(--color-text-light);
    max-width: 480px;
    margin: 0 auto 30px;
}

.search-404 {
    max-width: 400px;
    margin: 0 auto 30px;
}

.search-404 input[type="search"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--speed-fast) var(--ease);
    background: var(--color-card-bg);
    color: var(--color-text-main);
}

.search-404 input[type="search"]:focus {
    outline: none;
    border-color: var(--color-king-blue);
}


/* ═══════════════════════════════════════════════
   ARCHIVE HEADER
   ═══════════════════════════════════════════════ */

.archive-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}

.archive-title {
    font-size: 2rem;
    margin: 0;
}

.archive-description {
    color: var(--color-text-light);
    font-size: 1rem;
    margin: 8px 0 0;
}


/* ═══════════════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════════════ */

#menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed) var(--ease), visibility var(--speed) var(--ease);
    pointer-events: none;
}

#menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 800px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .header-inner {
        position: relative;
    }

    /* Show hamburger */
    .menu-toggle {
        display: flex;
    }

    /* Off-canvas nav */
    nav#site-navigation {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        padding: 80px 24px 24px;
        z-index: 99;
        transition: right var(--speed) var(--ease);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    nav#site-navigation.is-open {
        right: 0;
    }

    nav#site-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    nav#site-navigation ul li {
        border-bottom: 1px solid var(--color-border);
    }

    nav#site-navigation a {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
    }

    nav#site-navigation a::after {
        display: none;
    }

    .pinned-post {
        padding: 20px;
        border-left-width: 3px;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }

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

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

    .social-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/* ═══════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════ */

@media print {
    #site-header, aside, .btn, .post-navigation, .pagination,
    .social-share, .author-box, #reading-progress, #menu-overlay,
    .header-actions {
        display: none !important;
    }

    .main-grid {
        display: block;
        padding: 0;
    }

    body, p, h1, h2, h3 {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    article { border-bottom: none; }
}


/* ═══════════════════════════════════════════════
   WORDPRESS ADMIN BAR OFFSET
   ═══════════════════════════════════════════════ */

.admin-bar #site-header {
    top: 32px;
}

.admin-bar #reading-progress {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px;
    }
    .admin-bar #reading-progress {
        top: 46px;
    }
}
