/*
Theme Name: Soft Leaf SOS
Description: A symptom-first diagnostic theme for plant-recovery publishers, built around a calm clinical palette, card-based archives, a right sidebar, and a two-column reading layout.
Author: Soft Leaf SOS
Version: 2.1.5
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qk7md2
*/

:root {
    --bg: #f6f8f7;
    --fg: #2e3539;
    --muted: #68757d;
    --border: #d9e2dd;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(46, 53, 57, 0.08);
    --paper-border: #e4ebe7;
    --paper-shadow: 0 1px 2px rgba(46, 53, 57, 0.05), 0 12px 32px rgba(46, 53, 57, 0.08);
    --accent: #527491;
    --accent-dark: #3d5c75;
    --mint: #e2efe7;
    --card-bg: #ffffff;
    --thumb-ratio: 16 / 9;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.78;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--fg);
    overflow-wrap: break-word;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover, a:focus {
    color: var(--accent-dark);
    text-decoration: underline;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.vznkq-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */

.vznkq-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.vznkq-header.is-stuck {
    box-shadow: 0 12px 32px rgba(46, 53, 57, 0.14);
}

/* NOTE: the stuck state must not change the header's height (no padding
 * shrink) — the header is sticky, so a height change at scrollY 0 re-layouts
 * the whole page and makes the content visibly jump when scrolling to top. */
.vznkq-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 18px 0;
}

.vznkq-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.vznkq-branding .custom-logo {
    max-height: 48px;
    width: auto;
}

.vznkq-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mint) 0%, #cfe4d8 100%);
    border: 1px solid var(--border);
}

.vznkq-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.vznkq-site-name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.vznkq-site-name a {
    color: var(--fg);
}

.vznkq-site-name a:hover {
    color: var(--accent);
    text-decoration: none;
}

.vznkq-site-tag {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* Header search pill */

.vznkq-header-search {
    flex: 1;
    max-width: 460px;
    margin-left: auto;
}

.vznkq-header-search .search-form {
    display: flex;
    align-items: stretch;
    max-width: none;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vznkq-header-search .search-form:focus-within {
    background: var(--card-bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(82, 116, 145, 0.15);
}

.vznkq-header-search .search-field {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 8px 18px;
    font-size: 15px;
}

.vznkq-header-search .search-field:focus {
    outline: 0;
}

.vznkq-header-search .search-submit {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
}

.vznkq-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    background: var(--mint);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--fg);
}

.vznkq-menu-toggle:hover {
    background: var(--border);
}

/* Primary nav */

.vznkq-nav {
    border-bottom: 1px solid var(--border);
}

.vznkq-header.is-stuck .vznkq-nav {
    border-bottom-color: transparent;
}

.vznkq-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}

.vznkq-menu > li {
    position: relative;
}

.vznkq-menu > li > a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 15px 18px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.vznkq-menu > li::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.vznkq-menu > li > a:hover,
.vznkq-menu > li > a:focus {
    color: var(--accent);
    text-decoration: none;
}

.vznkq-menu > li:hover::after,
.vznkq-menu > li:focus-within::after,
.vznkq-menu > li.current-menu-item::after,
.vznkq-menu > li.current-menu-ancestor::after {
    transform: scaleX(1);
}

/* current page: mint pill */

.vznkq-menu > li.current-menu-item > a,
.vznkq-menu > li.current-menu-ancestor > a {
    color: var(--accent-dark);
}

.vznkq-menu > li.current-menu-item > a::before,
.vznkq-menu > li.current-menu-ancestor > a::before {
    content: "";
    position: absolute;
    inset: 8px 6px;
    background: var(--mint);
    border-radius: 999px;
    z-index: -1;
}

/* dropdown chevron */

.vznkq-menu .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: 1px;
    padding: 3px;
    border: solid var(--muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.vznkq-menu .menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
}

/* dropdown card */

.vznkq-menu .sub-menu {
    list-style: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 260px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(46, 53, 57, 0.14);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 60;
}

.vznkq-menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.vznkq-menu li:hover > .sub-menu,
.vznkq-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.vznkq-menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
}

.vznkq-menu .sub-menu a::before {
    content: "";
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.15s ease;
}

.vznkq-menu .sub-menu a:hover,
.vznkq-menu .sub-menu a:focus {
    background: var(--mint);
    color: var(--accent-dark);
    text-decoration: none;
}

.vznkq-menu .sub-menu a:hover::before,
.vznkq-menu .sub-menu a:focus::before {
    background: var(--accent);
}

/* ---------- Search forms (sidebar / generic) ---------- */

.search-form {
    display: flex;
    gap: 12px;
    align-items: stretch;
    max-width: 640px;
}

.search-field {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    color: var(--fg);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.search-field:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

.search-submit,
.vznkq-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-submit:hover,
.vznkq-button:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

/* ---------- Layout ---------- */

.vznkq-main {
    padding: 48px 0 64px;
}

.vznkq-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.vznkq-content {
    flex: 1;
    min-width: 0;
}

.vznkq-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 16px;
}

/* On inner pages the breadcrumb sits just under the header,
 * so keep the gap above it compact (~1rem) instead of the archive default. */
body:not(.home) .vznkq-main {
    padding-top: 16px;
}

.breadcrumb .trail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumb .crumb {
    color: var(--muted);
    overflow-wrap: break-word;
}

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

.vznkq-sep {
    color: var(--border);
}

/* ---------- Hero ---------- */

.vznkq-hero {
    display: flex;
    gap: 32px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 48px;
    text-align: left;
}

.vznkq-hero-media {
    flex: 0 0 45%;
}

.vznkq-hero-media img {
    width: 100%;
    aspect-ratio: var(--thumb-ratio);
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.vznkq-hero-body {
    flex: 1;
    min-width: 0;
}

.vznkq-hero-kicker {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
}

.vznkq-hero-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.vznkq-hero-title a {
    color: var(--fg);
}

.vznkq-hero-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.vznkq-hero-excerpt {
    color: var(--muted);
    margin-bottom: 16px;
}

/* ---------- Meta row ---------- */

.vznkq-meta {
    font-size: 14px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 16px;
}

.vznkq-meta a {
    color: var(--muted);
}

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

/* Meta dedupe: on list cards and the home hero only the date stays;
 * the author already has the author bio / byline role elsewhere, and the
 * category is carried by the archive context and breadcrumb. */
.vznkq-card .vznkq-byline,
.vznkq-hero .vznkq-byline,
.vznkq-hero-kicker {
    display: none;
}

/* ---------- Card grid ---------- */

.vznkq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.vznkq-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.vznkq-card:hover {
    box-shadow: 0 6px 18px rgba(46, 53, 57, 0.12);
}

.vznkq-card-media img {
    width: 100%;
    aspect-ratio: var(--thumb-ratio);
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.vznkq-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.vznkq-card-title {
    font-size: 20px;
}

.vznkq-card-title a {
    color: var(--fg);
}

.vznkq-card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.vznkq-card-excerpt {
    font-size: 16px;
    color: var(--muted);
}

/* ---------- Archive headers ---------- */

.vznkq-archive-head {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.vznkq-archive-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.vznkq-archive-desc {
    color: var(--muted);
    font-size: 16px;
}

/* ---------- Single post ---------- */

.vznkq-post {
    background: var(--card-bg);
    border: 1px solid var(--paper-border);
    border-radius: var(--radius);
    box-shadow: var(--paper-shadow);
    padding: 40px;
}

.vznkq-post-title {
    font-size: 34px;
    margin-bottom: 12px;
}

/* Static pages have no meta row under the title, so give the title the same
   breathing room as paragraph spacing inside the content. */
.page .vznkq-post-title {
    margin-bottom: 24px;
}

.vznkq-post-thumb {
    margin: 24px 0 32px;
}

.vznkq-post-thumb img {
    width: 100%;
    aspect-ratio: var(--thumb-ratio);
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.vznkq-entry {
    overflow-wrap: break-word;
}

.vznkq-entry > * + * {
    margin-top: 24px;
}

.vznkq-entry h2 {
    font-size: 26px;
    margin-top: 32px;
}

.vznkq-entry h3 {
    font-size: 22px;
    margin-top: 28px;
}

.vznkq-entry ul,
.vznkq-entry ol {
    padding-left: 28px;
}

.vznkq-entry blockquote {
    border-left: 3px solid var(--accent);
    background: var(--mint);
    padding: 16px 24px;
    border-radius: 0 6px 6px 0;
    color: var(--fg);
}

.vznkq-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vznkq-entry table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.vznkq-entry th,
.vznkq-entry td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}

.vznkq-entry th {
    background: var(--mint);
}

.vznkq-entry code {
    background: var(--mint);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.vznkq-page-links {
    margin-top: 24px;
    font-size: 15px;
    color: var(--muted);
}

/* ---------- Article note ---------- */

.vznkq-note {
    margin-top: 32px;
    background: var(--mint);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    padding: 18px 24px;
    font-size: 16px;
}

.vznkq-note > * + * {
    margin-top: 8px;
}

/* ---------- Tags ---------- */

.vznkq-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vznkq-tags a {
    font-size: 14px;
    padding: 5px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

.vznkq-tags a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* ---------- Author bio ---------- */

.vznkq-author {
    margin-top: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.vznkq-author-avatar {
    flex: 0 0 auto;
}

.vznkq-author-avatar img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
}

.vznkq-author-main {
    flex: 1;
    min-width: 0;
}

.vznkq-author-label {
    margin: 0 0 3px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.vznkq-author-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.vznkq-author-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    border-bottom: 1px dashed var(--border);
}

.vznkq-author-bio {
    font-size: 16px;
    color: var(--muted);
}

/* ---------- Related posts ---------- */

.vznkq-related {
    margin-top: 48px;
}

.vznkq-related-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.vznkq-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.vznkq-related-grid .vznkq-card-title {
    font-size: 16px;
}

.vznkq-related-grid .vznkq-card-body {
    padding: 14px 16px 18px;
}

/* ---------- Pagination ---------- */

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

.vznkq-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--fg);
    font-size: 15px;
    font-weight: 600;
}

.vznkq-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.vznkq-pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ---------- Sidebar ---------- */

.vznkq-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
}

.vznkq-widget-title {
    font-size: 17px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.vznkq-widget ul {
    list-style: none;
}

.vznkq-widget li {
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    overflow-wrap: break-word;
}

.vznkq-widget li:last-child {
    border-bottom: 0;
}

.vznkq-widget .search-form {
    max-width: none;
    flex-direction: column;
}

/* ---------- Comments ---------- */

.vznkq-comments {
    margin-top: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.vznkq-comments .comments-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.vznkq-comments .comment-list {
    list-style: none;
}

.vznkq-comments .comment-list .children {
    list-style: none;
    margin-left: 32px;
}

.vznkq-comments .comment-body {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background: var(--bg);
    overflow-wrap: break-word;
}

.vznkq-comments .comment-meta {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.vznkq-comments .comment-author {
    font-weight: 700;
    color: var(--fg);
}

.vznkq-comments .reply {
    margin-top: 8px;
    font-size: 14px;
}

.vznkq-comments .comment-respond .comment-reply-title {
    font-size: 20px;
    margin-bottom: 16px;
}

.vznkq-comments .comment-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.vznkq-comments .comment-form input[type="text"],
.vznkq-comments .comment-form input[type="email"],
.vznkq-comments .comment-form input[type="url"],
.vznkq-comments .comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card-bg);
    margin-bottom: 16px;
}

.vznkq-comments .comment-form .submit {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.vznkq-comments .comment-form .submit:hover {
    background: var(--accent-dark);
}

.vznkq-comments .comment-navigation {
    margin: 16px 0;
    font-size: 15px;
}

/* ---------- 404 / empty states ---------- */

.vznkq-empty {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 40px;
}

.vznkq-empty-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.vznkq-empty p {
    color: var(--muted);
    margin-bottom: 24px;
}

/* ---------- Footer ---------- */

.vznkq-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    margin-top: 64px;
}

.vznkq-footer-menu {
    padding: 48px 0 32px;
}

.vznkq-footer-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.vznkq-footer-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.vznkq-footer-name:hover {
    color: var(--accent);
    text-decoration: none;
}

.vznkq-footer-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.vznkq-footer-heading {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--fg);
    margin-bottom: 12px;
}

.vznkq-footer-sub {
    list-style: none;
}

.vznkq-footer-sub li {
    margin-bottom: 6px;
}

.vznkq-footer-sub a {
    font-size: 15px;
    color: var(--muted);
    overflow-wrap: break-word;
}

.vznkq-footer-sub a:hover {
    color: var(--accent);
}

.vznkq-footer-text {
    font-size: 15px;
    color: var(--muted);
}

.vznkq-footer-base {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 14px;
    color: var(--muted);
}

.vznkq-footer-base-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .vznkq-header-inner {
        gap: 16px;
        justify-content: space-between;
    }

    .vznkq-header-search {
        display: none;
    }

    .vznkq-menu-toggle {
        display: inline-flex;
    }

    .vznkq-nav {
        display: none;
    }

    .vznkq-nav.is-open {
        display: block;
    }

    .vznkq-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
    }

    .vznkq-menu > li > a {
        padding: 13px 16px;
    }

    .vznkq-menu > li::after {
        display: none;
    }

    .vznkq-menu > li.current-menu-item > a::before,
    .vznkq-menu > li.current-menu-ancestor > a::before {
        inset: 6px 4px;
    }

    .vznkq-menu .sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--border);
        border-radius: 0;
        margin: 0 0 6px 24px;
        padding: 0;
        min-width: 0;
        display: none;
    }

    .vznkq-menu .sub-menu::before {
        display: none;
    }

    /* Undo the desktop hover/focus-within transform so the static
     * sub-menu never shifts sideways while it is open on touch. */
    .vznkq-menu li:hover > .sub-menu,
    .vznkq-menu li:focus-within > .sub-menu {
        transform: none;
    }

    /* Chevron state is driven by .is-open only, not sticky touch hover. */
    .vznkq-menu .menu-item-has-children:hover > a::after {
        transform: rotate(45deg) translateY(-2px);
    }

    .vznkq-menu .menu-item-has-children.is-open > a::after {
        transform: rotate(225deg) translateY(-1px);
    }

    .vznkq-menu .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .vznkq-layout {
        flex-direction: column;
    }

    .vznkq-sidebar {
        width: 100%;
    }

    .vznkq-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .vznkq-hero-media {
        flex: none;
    }

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

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    /* Narrow the canvas gutter together with the paper padding so the two
     * layers add up reasonably on phones: a (paper padding) = b (gutter) = 1rem. */
    .vznkq-wrap {
        padding: 0 16px;
    }

    .vznkq-author-body {
        padding: 0 16px 18px;
    }

    .vznkq-author {
        gap: 14px;
        padding: 18px 16px;
    }

    .vznkq-author-avatar img {
        width: 56px;
        height: 56px;
    }

    /* The header shares .vznkq-wrap; its vertical padding lives on
     * .vznkq-header-inner (18px 0), which the container rule above never
     * touches, so the header keeps its height on narrow screens. */

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

    .vznkq-post,
    .vznkq-comments,
    .vznkq-empty {
        padding: 24px 16px;
    }

    .vznkq-hero {
        padding: 24px;
    }

    .vznkq-hero-title {
        font-size: 24px;
    }

    .vznkq-archive-title {
        font-size: 26px;
    }

    .vznkq-post-title {
        font-size: 24px;
    }

    .vznkq-empty-title {
        font-size: 24px;
    }

    .vznkq-entry h2 {
        font-size: 22px;
    }

    .vznkq-entry h3 {
        font-size: 19px;
    }

    /* On phones the sidebar stacks above the footer; collapse the three
     * stacked gaps (last widget margin, main padding-bottom, footer
     * margin-top) to about 3.5rem combined so the page doesn't end in a
     * big empty stretch. */
    .vznkq-widget {
        margin-bottom: 16px;
    }

    .vznkq-main {
        padding-bottom: 16px;
    }

    .vznkq-footer {
        margin-top: 24px;
    }
}
