/*
Theme Name: Tashtit
Theme URI: https://example.com/tashtit
Author: Tashtit
Author URI: https://example.com
Description: תבנית וורדפרס קלאסית, קלה ומהירה, ללא Elementor. עיצוב מודרני מבוסס כרטיסים, תמיכת RTL מלאה, פירורי לחם מ-Yoast SEO, ובלוקים לפי קטגוריה בעמוד הבית. שני צבעי בסיס ומספר קטגוריות נשלטים דרך "התאמה אישית".
Version: 1.3.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tashtit
Tags: rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, news
*/

/* ==========================================================================
   1. משתני צבע (נשלטים מ"התאמה אישית" דרך functions.php)
   ========================================================================== */
:root {
    --color-primary: #2563eb;
    --color-secondary: #0f172a;

    --color-primary-dark: #1d4ed8;
    --color-secondary-soft: #334155;

    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-border: #e5e7eb;
    --color-bg: #f8fafc;
    --color-card: #ffffff;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.10), 0 16px 40px rgba(15, 23, 42, 0.12);
    --container: 1200px;
    --font: "Assistant", "Rubik", "Heebo", -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   2. בסיס
   ========================================================================== */
* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-primary-dark); }

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

h1, h2, h3, h4 { color: var(--color-secondary); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

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

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title { font-size: 1.4rem; margin: 0; font-weight: 800; }
.site-title a { color: var(--color-secondary); }
.site-description { margin: 0; font-size: .85rem; color: var(--color-muted); }
.custom-logo { max-height: 48px; width: auto; }

.main-navigation ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-navigation a {
    display: block;
    padding: 8px 14px;
    color: var(--color-secondary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    flex-direction: column;
    background: var(--color-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 200px;
}
.main-navigation li { position: relative; }
.main-navigation li:hover > ul { display: flex; }

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-secondary);
}

/* ==========================================================================
   4. פירורי לחם (Yoast)
   ========================================================================== */
.breadcrumbs {
    padding: 14px 0;
    font-size: .9rem;
    color: var(--color-muted);
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .breadcrumb_last,
.breadcrumbs [aria-current="page"] { color: var(--color-secondary); font-weight: 600; }

/* ==========================================================================
   5. עמוד פוסט בודד (single)
   ========================================================================== */
.entry-header-single {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 26px;
    margin-bottom: 30px;
}
.entry-category-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.10);
    color: var(--color-primary);
    font-size: .8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.entry-title-single { font-size: 2.4rem; margin: 0 0 16px; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: var(--color-muted);
    font-size: .92rem;
}
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta .author-avatar { border-radius: 50%; width: 34px; height: 34px; }

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 60px;
}
.featured-image-single {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}
.featured-image-single img { width: 100%; object-fit: cover; }

.entry-content {
    font-size: 1.08rem;
}
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin-bottom: 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
    border-inline-start: 4px solid var(--color-primary);
    background: var(--color-bg);
    margin: 1.6em 0;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    color: var(--color-secondary-soft);
    font-style: italic;
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: start; }
.entry-content th { background: var(--color-bg); }

.entry-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a {
    font-size: .85rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--color-muted);
}
.entry-tags a:hover { border-color: var(--color-primary); color: var(--color-primary); }

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 44px 0;
}
.post-nav-item {
    display: flex;
    align-items: stretch;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
    min-height: 108px;
}
.post-nav-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--color-primary); }
.post-nav-item.next { flex-direction: row-reverse; }
.pn-thumb {
    flex: 0 0 108px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg);
}
.pn-thumb.no-image { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); opacity: .85; }
.pn-body {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    align-items: flex-start;
    text-align: start;
}
.post-nav-item.next .pn-body { align-items: flex-end; text-align: end; }
.pn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--color-primary);
}
.pn-title {
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-nav-item:hover .pn-title { color: var(--color-primary); }

/* Sidebar */
.sidebar .widget {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.sidebar li:last-child { border-bottom: none; }

/* ==========================================================================
   6. עמוד הבית — בלוקים לפי קטגוריה
   ========================================================================== */
.category-block { margin: 50px 0; }
.category-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 16px;
}
.category-block-title {
    font-size: 1.7rem;
    margin: 0;
    position: relative;
    padding-inline-start: 16px;
}
.category-block-title::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%;
    background: var(--color-primary);
    border-radius: 4px;
}
.category-view-all {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.category-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 26px;
    align-items: stretch;
}

/* Card base */
.post-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .18s ease, transform .18s ease;
    display: flex;
    flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.post-card .card-thumb { display: block; overflow: hidden; background: var(--color-bg); }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .card-thumb img { transform: scale(1.04); }
.post-card .card-cat {
    font-size: .72rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.post-card .card-title { margin: 6px 0 8px; }
.post-card .card-title a { color: var(--color-secondary); }
.post-card .card-title a:hover { color: var(--color-primary); }
.post-card .card-meta { font-size: .82rem; color: var(--color-muted); margin-top: auto; }

/* Featured (main) card */
.post-card.featured .card-thumb { aspect-ratio: 16 / 10; }
.post-card.featured .card-body { padding: 22px 24px; }
.post-card.featured .card-title { font-size: 1.5rem; }
.post-card.featured .card-excerpt { color: var(--color-muted); font-size: .98rem; margin: 0 0 14px; }

/* Secondary list */
.category-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-card.mini {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}
.post-card.mini .card-thumb {
    flex: 0 0 120px;
    aspect-ratio: 1 / 1;
}
.post-card.mini .card-body { padding: 12px 16px; flex: 1; min-width: 0; }
.post-card.mini .card-title { font-size: 1.02rem; }

/* ==========================================================================
   7. Archive / Blog grid
   ========================================================================== */
.page-hero {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
    margin-bottom: 36px;
}
.page-hero h1 { font-size: 2.2rem; margin: 0 0 8px; }
.page-hero .archive-description { color: var(--color-muted); max-width: 700px; }
.archive-count {
    display: inline-block;
    background: rgba(37, 99, 235, 0.10);
    color: var(--color-primary);
    font-weight: 700;
    font-size: .9rem;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    padding-bottom: 50px;
}
.posts-grid .post-card .card-thumb { aspect-ratio: 16 / 10; }
.posts-grid .post-card .card-body { padding: 18px 20px; }
.posts-grid .post-card .card-title { font-size: 1.2rem; }
.posts-grid .post-card .card-excerpt { color: var(--color-muted); font-size: .92rem; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 60px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    color: var(--color-secondary);
    font-weight: 600;
}
.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination a.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }

/* ==========================================================================
   8. Page (עמוד רגיל)
   ========================================================================== */
.page-content-wrap {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px 0 20px;
    margin-top: 60px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: #fff; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.site-footer .widget-title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: .88rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   9b. Hero (עמוד הבית)
   ========================================================================== */
.hero { margin: 34px 0 10px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 22px;
    align-items: stretch;
}

/* כתבה מובילה */
.hero-main {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--color-secondary);
    isolation: isolate;
}
.hero-main.no-image {
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}
.hero-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.90) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.08) 100%);
}
.hero-main .hero-content {
    position: relative;
    z-index: 2;
    padding: 34px 38px;
    color: #fff;
    max-width: 760px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 10px;
}
.hero-cat {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.hero-title {
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.22;
    margin: 0 0 12px;
}
.hero-main:hover .hero-title { text-decoration: underline; text-underline-offset: 4px; }
.hero-excerpt {
    color: rgba(255, 255, 255, 0.90);
    font-size: 1.02rem;
    margin: 0 0 14px;
}
.hero-meta { color: rgba(255, 255, 255, 0.72); font-size: .86rem; }

/* הבזקים בצד */
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side-item {
    display: flex;
    gap: 14px;
    align-items: stretch;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .18s ease, transform .18s ease;
    flex: 1;
    min-height: 0;
}
.hero-side-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hero-side-thumb { flex: 0 0 96px; overflow: hidden; background: var(--color-bg); }
.hero-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-side-body { padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-side-title { display: block; font-weight: 700; color: var(--color-secondary); line-height: 1.32; margin: 4px 0; font-size: 1rem; }
.hero-side-item:hover .hero-side-title { color: var(--color-primary); }
.hero-side-date { font-size: .8rem; color: var(--color-muted); }

/* ==========================================================================
   9c. תוכן עניינים (TOC)
   ========================================================================== */
.toc-box {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-inline-start: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    margin: 0 0 30px;
}
.toc-details { padding: 0; }
.toc-title {
    font-weight: 800;
    color: var(--color-secondary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.toc-title::-webkit-details-marker { display: none; }
/* אייקון רשימה */
.toc-title::before {
    content: "";
    width: 18px; height: 18px;
    flex: 0 0 auto;
    background: var(--color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* חץ שמסתובב בפתיחה */
.toc-title::after {
    content: "";
    width: 14px; height: 14px;
    margin-inline-start: auto;
    background: var(--color-muted);
    transition: transform .2s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.toc-details[open] .toc-title::after { transform: rotate(180deg); }
.toc-details[open] .toc-title { border-bottom: 1px solid var(--color-border); }
.toc-list { margin: 0; padding: 14px 22px 18px; padding-inline-start: 40px; }
.toc-list li { margin-bottom: 7px; line-height: 1.5; }
.toc-list li.toc-sub { padding-inline-start: 18px; font-size: .95rem; }
.toc-list a { text-decoration: none; color: var(--color-secondary-soft); }
.toc-list a:hover { color: var(--color-primary); text-decoration: underline; }

/* גלילה חלקה עם רווח לכותרות (עוגנים) */
.entry-content h2[id],
.entry-content h3[id] { scroll-margin-top: 90px; }

/* ==========================================================================
   9d. תוספות פוטר (ברירת מחדל)
   ========================================================================== */
.footer-desc { color: rgba(255, 255, 255, 0.7); font-size: .92rem; margin: 0; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { max-height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-post-date { display: block; font-size: .78rem; color: rgba(255, 255, 255, 0.5); }
.site-footer .footer-col li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .footer-col li:last-child { border-bottom: none; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .single-layout { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 340px; }
    .hero-title { font-size: 1.7rem; }
}

@media (max-width: 782px) {
    body { font-size: 16px; }
    .entry-title-single { font-size: 1.8rem; }
    .menu-toggle { display: block; }
    .main-navigation {
        position: absolute;
        top: 72px;
        inset-inline-start: 0;
        width: 100%;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        display: none;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; align-items: stretch; padding: 10px 20px; }
    .main-navigation ul ul { position: static; box-shadow: none; border: none; padding-inline-start: 16px; }
    .main-navigation li:hover > ul { display: block; }
    .post-card.mini { flex-direction: column; }
    .post-card.mini .card-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .post-nav { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .posts-grid { grid-template-columns: 1fr; }
    .page-content-wrap { padding: 24px; }
}
