/* ==========================================================================
   Miscw Theme Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* ── CSS Custom Properties (Design Tokens) ─────────────────────────────── */
:root {
    --color-nav-bg:       #0d1b2a;
    --color-body-bg:      #ffffff;
    --color-text:         #111111;
    --color-text-muted:   #888888;
    --color-accent:       #0077b6;
    --color-border:       #e5e5e5;
    --color-card-bg:      #f8f9fa;
    --color-footer-bg:    #0d1b2a;
    --color-footer-text:  #aaaaaa;

    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

    --nav-height:     52px;
    --container-max:  1160px;
    --sidebar-width:  280px;
    --gap:            24px;
    --radius:         5px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-body-bg);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-text);
}

p { margin: 0 0 1em; }

/* ── Layout Wrappers ────────────────────────────────────────────────────── */
.site-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    grid-template-areas: "main sidebar";
    gap: var(--gap);
    align-items: start;
    padding-top: var(--gap);
    padding-bottom: var(--gap);
}

.content-area  { grid-area: main; min-width: 0; }
.site-sidebar  { grid-area: sidebar; }

/* ── Site Header & Navigation ───────────────────────────────────────────── */
.site-header {
    background: var(--color-nav-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-nav { background: var(--color-nav-bg); }

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gap);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Logo / Site Name */
.site-branding a,
.site-name {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.site-branding img { height: 40px; width: auto; }
.site-name__accent { color: var(--color-accent); }

/* Primary Menu */
.primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.primary-menu li { position: relative; }

.primary-menu a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

/* Hamburger button (mobile only) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    position: relative;
    transition: transform 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

/* ── Leaderboard Ad ─────────────────────────────────────────────────────── */
.ad-leaderboard {
    background: var(--color-card-bg);
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

/* ── Section Headings ───────────────────────────────────────────────────── */
.section-heading {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
    display: inline-block;
    margin-bottom: 0;
    line-height: 1.2;
}

.section-heading a {
    color: var(--color-text);
    text-decoration: none;
}
.section-heading a:hover { color: var(--color-accent); }

/* Flex row wrapper used in category-row, sidebar, single.php */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.view-all {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}
.view-all:hover { text-decoration: underline; }

/* ── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
    margin-bottom: calc(var(--gap) * 1.25);
}

.hero-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--gap);
    align-items: start;
}

/* Height here provides the constraint for .post-card--overlay's height:100% */
.hero-primary {
    border-radius: var(--radius);
    overflow: hidden;
    height: 320px;
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Post Cards ─────────────────────────────────────────────────────────── */

/* ── Overlay card — full image with gradient text overlay ── */
/* NOTE: .post-card--overlay requires its container (.hero-primary or
   .category-row__large) to have an explicit height. The overlay card fills
   100% of that height via height:100% on both the article and the thumb img.
   Do not use this variant outside a height-constrained parent. */
.post-card--overlay {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
}

.post-card--overlay .post-card__thumb {
    display: block;
    width: 100%;
    height: 100%;
}

.post-card--overlay .post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.post-card--overlay:hover .post-card__thumb img { transform: scale(1.03); }

.post-card--overlay .post-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 32px 14px 14px;
}

.post-card--overlay .post-card__cat {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 6px;
}

.post-card--overlay .post-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 5px;
}

.post-card--overlay .post-card__title a { color: #ffffff; text-decoration: none; }
.post-card--overlay .post-card__title a:hover { color: rgba(255,255,255,0.85); }

.post-card--overlay .post-card__meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── List card — thumbnail left, content right ── */
.post-card--list {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--color-card-bg);
    border-radius: var(--radius);
    padding: 8px;
}

.post-card--list .post-card__thumb {
    flex-shrink: 0;
    width: 68px;
    overflow: hidden;
    border-radius: 3px;
}

.post-card--list .post-card__thumb img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.post-card--list:hover .post-card__thumb img { transform: scale(1.03); }

.post-card--list .post-card__body {
    flex: 1;
    min-width: 0;
}

.post-card--list .post-card__cat {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 4px;
}

.post-card--list .post-card__title {
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card--list .post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card--list .post-card__title a:hover { color: var(--color-accent); }

.post-card--list .post-card__meta {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 6px;
}

/* ── Grid card — stacked image above content (archive, search, related) ── */
.post-card--grid {
    background: var(--color-card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.post-card--grid:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.post-card--grid .post-card__thumb {
    display: block;
    overflow: hidden;
}

.post-card--grid .post-card__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.post-card--grid:hover .post-card__thumb img { transform: scale(1.02); }

.post-card--grid .post-card__body { padding: 10px 0 4px; }

.post-card--grid .post-card__cat {
    display: inline-block;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 3px;
    text-decoration: none;
    margin-bottom: 6px;
}

.post-card--grid .post-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
}

.post-card--grid .post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card--grid .post-card__title a:hover { color: var(--color-accent); }

.post-card--grid .post-card__excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.post-card--grid .post-card__meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Trending Strip ─────────────────────────────────────────────────────── */
.trending-section {
    margin-bottom: calc(var(--gap) * 1.25);
}

.trending-heading { margin-bottom: 12px; }

/* .trending-inner is an unstyled wrapper kept for backwards compatibility */

.trending-list {
    display: flex;
    flex-direction: column;
}

.trending-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border);
}

.trending-item:last-child { border-bottom: none; }

.trending-thumb {
    flex-shrink: 0;
    width: 68px;
    border-radius: 3px;
    overflow: hidden;
}

.trending-thumb img {
    width: 68px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}

.trending-body {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}

.trending-rank {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--color-border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 18px;
}

.trending-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-title a { color: var(--color-text); text-decoration: none; }
.trending-title a:hover { color: var(--color-accent); }

.trending-meta {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    margin-top: 3px;
}

/* ── Sidebar Categories ─────────────────────────────────────────────────── */
.sidebar-categories { margin-bottom: var(--gap); }

.cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.cat-pill:hover {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
    text-decoration: none;
}

.cat-pill__count {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.cat-pill:hover .cat-pill__count { color: rgba(255,255,255,0.75); }

/* ── Category Rows ──────────────────────────────────────────────────────── */
.category-row {
    margin-bottom: calc(var(--gap) * 1.5);
}

.category-row__grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--gap);
    align-items: start;
}

/* Height here provides the constraint for .post-card--overlay's height:100% */
.category-row__large {
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
}

.category-row__smalls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Post Grid (archive, search, index) ─────────────────────────────────── */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
}

.post-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Single Post ────────────────────────────────────────────────────────── */
.single-post__header { margin-bottom: var(--gap); }

.single-post__title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 8px 0 12px;
}

.single-post__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    align-items: center;
}

.single-post__meta a { color: var(--color-text-muted); }
.single-post__meta a:hover { color: var(--color-accent); }

.single-post__featured-image {
    margin-bottom: var(--gap);
    border-radius: var(--radius);
    overflow: hidden;
}

.single-post__featured-image img { width: 100%; height: auto; }

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
}

.entry-content h2 { font-size: 1.5rem; margin-top: 1.5em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.25em; }

.entry-content p { margin-bottom: 1.25em; }

.entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 1em 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: var(--color-card-bg);
    font-style: italic;
    color: var(--color-text-muted);
}

.single-post__footer {
    margin-top: var(--gap);
    padding-top: var(--gap);
    border-top: 1px solid var(--color-border);
}

.single-post__tags a {
    display: inline-block;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--color-text);
    margin: 2px;
    text-decoration: none;
}
.single-post__tags a:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ── Author Bio ─────────────────────────────────────────────────────────── */
.author-bio {
    display: flex;
    gap: 16px;
    padding: var(--gap);
    background: var(--color-card-bg);
    border-radius: var(--radius);
    margin: var(--gap) 0;
    align-items: flex-start;
}

.author-bio img { border-radius: 50%; flex-shrink: 0; }

.author-bio__text strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.author-bio__text p { font-size: 0.875rem; color: var(--color-text-muted); margin: 0; }

/* ── Related Posts ──────────────────────────────────────────────────────── */
.related-posts { margin: calc(var(--gap) * 1.5) 0; }

/* ── Ad Zones ───────────────────────────────────────────────────────────── */
.ad-zone { text-align: center; }

.ad-in-content {
    margin: var(--gap) 0;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.ad-below-post {
    margin: var(--gap) 0;
    padding: 12px 0;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.site-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 16px);
    max-height: calc(100vh - var(--nav-height) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.sidebar-ad-wrap {
    margin-bottom: var(--gap);
}

.ad-sidebar { text-align: center; }

.widget {
    background: var(--color-body-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
    margin-bottom: 16px;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumb__link {
    color: var(--color-text-muted);
    text-decoration: none;
}
.breadcrumb__link:hover { color: var(--color-accent); text-decoration: underline; }

.breadcrumb__sep { color: var(--color-border); }

.breadcrumb__current { color: var(--color-text); }

/* ── Archive Header ─────────────────────────────────────────────────────── */
.archive-header {
    margin-bottom: var(--gap);
    padding-bottom: var(--gap);
    border-bottom: 1px solid var(--color-border);
}

.archive-title { font-size: 1.75rem; }

.archive-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin-top: 8px;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: var(--gap) 0;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links .current {
    background: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

/* ── 404 & Search ───────────────────────────────────────────────────────── */
.error-404,
.search-results-header { padding: var(--gap) 0; }

.error-404__title { font-size: 2.5rem; margin-bottom: 12px; }

.search-form {
    display: flex;
    gap: 8px;
    margin: var(--gap) 0;
}

.search-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-stack);
}

.search-submit {
    padding: 10px 20px;
    background: var(--color-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-stack);
}
.search-submit:hover { background: #005f8e; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    margin-top: calc(var(--gap) * 2);
}

.ad-footer {
    background: rgba(255,255,255,0.05);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: calc(var(--gap) * 1.5) var(--gap);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-accent);
    display: block;
}

.footer-col p,
.footer-col li {
    font-size: 0.875rem;
    color: var(--color-footer-text);
    line-height: 1.6;
}

.footer-menu li { margin-bottom: 6px; }
.footer-menu a { color: var(--color-footer-text); text-decoration: none; }
.footer-menu a:hover { color: #ffffff; text-decoration: underline; }

.footer-recent-list li { margin-bottom: 6px; }
.footer-recent-list a { color: var(--color-footer-text); text-decoration: none; font-size: 0.875rem; }
.footer-recent-list a:hover { color: #ffffff; text-decoration: underline; }

.footer-site-name {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-cat-list li { margin-bottom: 6px; }
.footer-cat-list a { color: var(--color-footer-text); text-decoration: none; font-size: 0.875rem; }
.footer-cat-list a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 10px 16px;
}

.copyright { font-size: 0.8125rem; color: rgba(255,255,255,0.5); margin: 0; }
.copyright a { color: rgba(255,255,255,0.5); }
.copyright a:hover { color: #ffffff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Tablet: ≤1023px */
@media ( max-width: 1023px ) {
    .site-container {
        grid-template-columns: 1fr;
        grid-template-areas: "main" "sidebar";
    }

    .site-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: ≤767px */
@media ( max-width: 767px ) {
    .nav-toggle { display: block; }

    .primary-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--color-nav-bg);
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        padding: 8px 0 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 99;
    }

    .primary-menu.is-open { display: flex; }
    .primary-menu a { padding: 10px 24px; }

    .hero-inner,
    .category-row__grid { grid-template-columns: 1fr; }

    .hero-primary  { height: 240px; }
    .category-row__large { height: 180px; }

    .post-grid     { grid-template-columns: 1fr; }
    .post-grid--4  { grid-template-columns: repeat(2, 1fr); }

    .single-post__title { font-size: 1.5rem; }
    .footer-inner  { grid-template-columns: 1fr 1fr; }
}

@media ( max-width: 480px ) {
    .hero-secondary { display: none; }
    .footer-inner   { grid-template-columns: 1fr; }
    .post-grid--4   { grid-template-columns: 1fr; }
}

/* ── WordPress Core Classes ─────────────────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.alignleft  { float: left; margin: 0 var(--gap) var(--gap) 0; }
.alignright { float: right; margin: 0 0 var(--gap) var(--gap); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--color-text-muted); text-align: center; margin-top: 4px; }
