/*
 * AgeTech AI Blog — editorial AgTech visual system.
 * This readable source stylesheet intentionally overrides the legacy compiled bundle.
 */

/* @section: design-tokens */
:root {
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --page: #f3f7f4;
    --page-alt: #eaf2ed;
    --surface: #ffffff;
    --surface-raised: #ffffff;
    --surface-soft: #edf7f1;
    --ink: #0b1f17;
    --ink-soft: #344a40;
    --muted: #65756d;
    --line: #dce7e0;
    --line-strong: #c7d8ce;
    --brand: #09a950;
    --brand-strong: #08783d;
    --brand-soft: #dff7e8;
    --tech: #00a99d;
    --tech-soft: #d9f7f4;
    --lime: #b8ed46;
    --navy: #0b2034;
    --shadow-sm: 0 8px 22px rgba(17, 55, 37, 0.07);
    --shadow-md: 0 18px 50px rgba(17, 55, 37, 0.11);
    --radius-sm: 9px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --container: 1200px;
    --transition: 180ms ease;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --page: #07130f;
    --page-alt: #0b1914;
    --surface: #10211a;
    --surface-raised: #152a21;
    --surface-soft: #183126;
    --ink: #e4f1e9;
    --ink-soft: #bad0c3;
    --muted: #90a99b;
    --line: rgba(220, 241, 229, 0.12);
    --line-strong: rgba(220, 241, 229, 0.2);
    --brand: #5bd887;
    --brand-strong: #7ce59f;
    --brand-soft: rgba(68, 193, 112, 0.14);
    --tech: #4dd6ca;
    --tech-soft: rgba(77, 214, 202, 0.12);
    --lime: #b7e768;
    --navy: #071a2a;
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 22px 54px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

/* @section: base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: radial-gradient(circle at 7% 3%, rgba(9, 169, 80, 0.08) 0, transparent 27rem), var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition), color var(--transition);
}
:root[data-theme="dark"] body { background: radial-gradient(circle at 7% 3%, rgba(91, 216, 135, 0.06) 0, transparent 27rem), var(--page); }
body::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--tech), var(--brand) 58%, var(--lime));
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-strong); text-underline-offset: 0.18em; }
a:hover { color: var(--tech); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: #0b1f17; }
:focus-visible { outline: 3px solid var(--tech); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute !important;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    width: auto;
    height: auto;
    left: 1rem;
    top: 1rem;
    z-index: 99999;
    padding: 0.75rem 1rem;
    color: var(--ink);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* @section: site-header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    transition: background-color var(--transition), border-color var(--transition);
}
:root[data-theme="dark"] .site-header { background: rgba(16, 33, 26, 0.9); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 2rem; }
.site-branding { flex: 0 0 auto; }
.site-branding a { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: linear-gradient(145deg, var(--brand-soft), var(--tech-soft));
    border: 1px solid var(--line-strong);
    border-radius: 13px;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.34rem; font-weight: 760; letter-spacing: -0.035em; }
.brand-name .accent { color: var(--brand); margin-left: 0.2rem; }
.brand-slogan { margin-top: 0.28rem; color: var(--muted); font-size: 0.68rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 0.68rem 0.78rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    border-radius: 9px;
    transition: color var(--transition), background-color var(--transition);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a { color: var(--brand-strong); background: var(--brand-soft); }
.main-navigation ul ul {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.55rem;
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul { display: flex; }
.main-navigation ul ul a { padding: 0.65rem 0.75rem; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.theme-toggle {
    width: 60px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--ink-soft);
    transition: border-color var(--transition), background-color var(--transition);
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle-track { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 7px; }
.theme-icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; z-index: 1; }
.theme-toggle-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-raised);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
    transition: transform 220ms ease, background-color var(--transition);
}
:root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(26px); }
.menu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    place-items: center;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

/* @section: blog-layout */
.site-content { padding-block: clamp(2.5rem, 5vw, 4.75rem) 5rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 4vw, 2.75rem); align-items: start; }
.content-grid--single { grid-template-columns: 1fr; }
.page-header { margin-bottom: 1.8rem; }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    color: var(--brand-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 23px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.page-title { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 760; line-height: 1.02; letter-spacing: -0.055em; }
.title-rule { display: block; width: 82px; height: 5px; margin-top: 1.15rem; border-radius: 5px; background: linear-gradient(90deg, var(--brand), var(--tech), var(--lime)); }
.posts-grid { display: grid; gap: 1.65rem; }
.featured-articles { margin-top: clamp(2.5rem, 5vw, 4rem); }
.posts-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color var(--transition), background-color var(--transition);
}
.post-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; opacity: 0; background: linear-gradient(90deg, var(--brand), var(--tech), var(--lime)); transition: opacity var(--transition); }
.post-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.post-card:hover::after { opacity: 1; }
.post-card-media { position: relative; display: block; overflow: hidden; min-height: 255px; background: linear-gradient(145deg, var(--navy), var(--brand-strong)); text-decoration: none; }
.post-card-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, transparent 55%, rgba(0, 169, 157, 0.22)); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease, filter var(--transition); }
.post-card:hover .post-card-media img { transform: scale(1.035); }
:root[data-theme="dark"] .post-card-media img { filter: brightness(0.88) saturate(0.92); }
.post-card-placeholder { display: grid; place-content: center; justify-items: center; gap: 0.75rem; color: rgba(255,255,255,.86); font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.placeholder-mark { width: 58px; height: 58px; border: 2px solid rgba(255,255,255,.62); border-radius: 18px 18px 18px 4px; transform: rotate(45deg); }
.post-card-body { min-width: 0; display: flex; flex-direction: column; padding: clamp(1.25rem, 3vw, 1.7rem); }
.category-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.42rem;
    margin-bottom: 0.78rem;
    padding: 0.34rem 0.62rem;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}
.category-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.entry-title { margin: 0; color: var(--ink); font-family: var(--font-display); letter-spacing: -0.035em; }
.post-card .entry-title { font-size: clamp(1.26rem, 2vw, 1.6rem); line-height: 1.15; font-weight: 720; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--brand-strong); }
.entry-summary { margin-top: 0.85rem; color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; }
.entry-summary p { margin: 0; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.78rem; }
.post-card-meta .author { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.post-card-meta strong { color: var(--ink); }
.pagination { margin-top: 2.75rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0.45rem 0.7rem;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
}
.pagination .current,
.pagination a:hover { color: #fff; background: var(--brand-strong); border-color: var(--brand-strong); }
.empty-state { padding: 3rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* @section: sidebar-widgets */
.widget-area { position: sticky; top: 112px; display: grid; gap: 1.25rem; }
.admin-bar .widget-area { top: 144px; }
.widget { overflow: hidden; padding: 1.35rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.widget-title { position: relative; margin: 0 0 1rem; padding-bottom: 0.8rem; color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.06rem; font-weight: 720; letter-spacing: -0.025em; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--tech)); border-radius: 2px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.68rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { padding-bottom: 0; border-bottom: 0; }
.widget a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 560; }
.widget a:hover { color: var(--brand-strong); }
.widget p:first-child { margin-top: 0; }
.widget p:last-child { margin-bottom: 0; }
.widget input:not([type="checkbox"]):not([type="radio"]),
.widget select,
.widget textarea,
.search-form .search-field { width: 100%; min-height: 44px; padding: 0.7rem 0.8rem; color: var(--ink); background: var(--page-alt); border: 1px solid var(--line-strong); border-radius: 9px; }
.search-form { display: grid; gap: 0.65rem; }
.search-form .search-submit,
.widget button,
.widget input[type="submit"] { min-height: 42px; padding: 0.65rem 1rem; color: #fff; background: linear-gradient(120deg, var(--brand-strong), var(--brand)); border: 0; border-radius: 9px; font-weight: 750; }
/* @section: articles-pages */
.article-shell { overflow: hidden; padding: clamp(1.4rem, 4vw, 2.75rem); color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.article-header { margin-bottom: 2rem; padding-bottom: 1.65rem; border-bottom: 1px solid var(--line); }
.article-header .entry-title { max-width: 18ch; font-size: clamp(2rem, 5vw, 3.65rem); font-weight: 760; line-height: 1.04; }
.page-article-header .entry-title { max-width: none; }
.entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.15rem; color: var(--muted); font-size: 0.88rem; }
.entry-meta strong { color: var(--ink); }
.meta-divider { width: 4px; height: 4px; border-radius: 50%; background: var(--brand); }
.post-thumbnail { overflow: hidden; margin: 0 0 2rem; border-radius: var(--radius-md); background: var(--page-alt); }
.post-thumbnail img { width: 100%; display: block; }
:root[data-theme="dark"] .post-thumbnail img { filter: brightness(.9) saturate(.92); }
.entry-content { color: var(--ink-soft); font-size: clamp(1rem, 1.5vw, 1.08rem); line-height: 1.82; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.035em; }
.entry-content h2 { margin-top: 2.4rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.entry-content h3 { margin-top: 2rem; font-size: 1.45rem; }
.entry-content blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--surface-soft); border-left: 5px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.entry-content pre,
.entry-content code { font-family: var(--font-mono); }
.entry-content pre { overflow-x: auto; padding: 1.25rem; background: var(--navy); color: #e7f5ed; border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 0.8rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--ink); background: var(--surface-soft); }
.entry-content .wp-block-button__link { background: var(--brand-strong); border-radius: 9px; }
.article-footer { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.tags-links a { display: inline-block; margin: 0.2rem; padding: 0.24rem 0.48rem; background: var(--brand-soft); border-radius: 7px; text-decoration: none; }
.share-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.share-label { font-size: 0.78rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.share-link { padding: 0.4rem 0.85rem; font-size: 0.78rem; font-weight: 700; color: var(--brand-strong); text-decoration: none; background: var(--brand-soft); border-radius: 20px; transition: background-color var(--transition), color var(--transition); }
.share-link:hover { color: #fff; background: var(--brand-strong); }

/* @section: comments */
.comments-area { max-width: 62rem; margin: 2.5rem auto 0; padding: clamp(1.4rem, 4vw, 2.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.comments-title { margin: 0 0 1.5rem; color: var(--ink); font-family: var(--font-display); font-size: 1.45rem; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.comment-list .children { margin-top: 1.1rem; padding-left: clamp(1rem, 4vw, 2.25rem); }
.comment-body { padding: 1.1rem 1.25rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.comment-author .fn { font-style: normal; font-weight: 750; color: var(--ink); }
.comment-metadata { margin-bottom: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { margin: 0.4rem 0; color: var(--ink-soft); }
.comment-reply-link { display: inline-block; margin-top: 0.6rem; padding: 0.32rem 0.8rem; font-size: 0.76rem; font-weight: 750; color: var(--brand-strong); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 7px; }
.no-comments { color: var(--muted); }
.comment-reply-title { margin: 1.5rem 0 1rem; color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-weight: 650; color: var(--ink); }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea { width: 100%; padding: 0.7rem 0.8rem; margin-bottom: 1rem; color: var(--ink); background: var(--page-alt); border: 1px solid var(--line-strong); border-radius: 9px; font-family: var(--font-sans); }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; }
.comment-form .comment-form-cookies-consent input { width: auto; margin: 0; }
.comment-form .form-submit input[type="submit"] { min-height: 42px; padding: 0.65rem 1.4rem; color: #fff; background: linear-gradient(120deg, var(--brand-strong), var(--brand)); border: 0; border-radius: 9px; font-weight: 750; cursor: pointer; }

/* @section: error-404 */
.error-404 { display: grid; justify-items: center; gap: 0.75rem; }
.error-404 h1 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.error-404-search { width: 100%; max-width: 420px; margin-top: 0.5rem; }
.error-404-back { margin-top: 0.5rem; }

/* @section: site-footer */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    padding: 3rem 0;
    color: #c8ded2;
    background: radial-gradient(circle at 90% 0, rgba(5, 183, 108, .2), transparent 24rem), linear-gradient(135deg, #071827, #073e2e);
    border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; width: 42%; height: 3px; background: linear-gradient(90deg, var(--tech), var(--brand), var(--lime)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 1rem; gap: 2rem; }
.footer-brand { display: grid; gap: 0.25rem; }
.footer-brand-name { color: #fff; font-family: var(--font-display); font-size: 1.25rem; font-weight: 750; }
.footer-slogan { color: #83cda2; font-size: .8rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.footer-social-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; color: #c8ded2; font-size: 0.78rem; font-weight: 650; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; transition: background-color var(--transition), color var(--transition); }
.footer-social-link:hover { color: var(--navy); background: #fff; }
.footer-copyright { margin: 0; color: #abc4b7; font-size: .82rem; text-align: right; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { color: #c8ded2; font-size: .82rem; font-weight: 650; text-decoration: none; }
.footer-navigation a:hover { color: #fff; }

/* @section: wordpress-helpers */
.alignwide { margin-left: min(-5vw, -2rem); margin-right: min(-5vw, -2rem); max-width: none; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption, .gallery-caption { color: var(--muted); font-size: .82rem; }
.sticky { border-color: var(--brand); }
.bypostauthor { outline: 1px solid var(--brand-soft); }

/* @section: responsive-layout */
@media (max-width: 900px) {
    .admin-bar .site-header { top: 46px; }
    .header-inner { min-height: 72px; gap: 1rem; }
    .brand-slogan { display: none; }
    .main-navigation {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 1rem;
        right: 1rem;
        display: none;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 0.65rem;
        background: var(--surface-raised);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { align-items: stretch; flex-direction: column; gap: 0.2rem; }
    .main-navigation a { padding: 0.8rem; }
    .main-navigation ul ul { position: static; display: flex; min-width: 0; padding: 0.3rem 0 0.3rem 0.9rem; background: transparent; border: 0; box-shadow: none; }
    .menu-toggle { display: grid; }
    .content-grid { grid-template-columns: 1fr; }
    .widget-area { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .posts-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .container { width: min(100% - 1.25rem, var(--container)); }
    .site-content { padding-block: 2.25rem 3.5rem; }
    .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
    .brand-name { font-size: 1.18rem; }
    .theme-toggle { width: 54px; }
    :root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(20px); }
    .post-card { grid-template-columns: 1fr; min-height: 0; }
    .post-card-media { min-height: 205px; aspect-ratio: 16 / 10; }
    .posts-grid--featured { grid-template-columns: 1fr; }
    .post-card-body { padding: 1.2rem; }
    .post-card-meta { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .widget-area { grid-template-columns: 1fr; }
    .article-shell { padding: 1.25rem; border-radius: var(--radius-md); }
    .article-header .entry-title { font-size: clamp(1.8rem, 9vw, 2.55rem); }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .footer-copyright { text-align: left; }
}

@media (max-width: 430px) {
    .site-branding a { gap: .55rem; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-mark svg { width: 22px; height: 22px; }
    .brand-name { font-size: 1.04rem; }
    .theme-toggle { width: 50px; height: 32px; }
    .theme-toggle-thumb { width: 24px; height: 24px; }
    :root[data-theme="dark"] .theme-toggle-thumb { transform: translateX(18px); }
    .header-actions { gap: .45rem; }
    .menu-toggle { width: 38px; height: 38px; }
    .page-title { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
