/*
Theme Name: Mahadura
Theme URI: https://example.com/mahadura
Author: Tashtit
Author URI: https://example.com
Description: תבנית וורדפרס עריכתית יוקרתית בסגנון מגזין, קלה ומהירה, ללא Elementor. טיפוגרפיית Serif אלגנטית, קווי הפרדה דקים במקום צללים, פינות חדות ואקסנט אדום עיתונאי. תמיכת RTL מלאה, פירורי לחם מ-Yoast SEO, ובלוקים לפי קטגוריה בעמוד הבית. אותו מבנה ותוכן של Tashtit — שפה עיצובית שונה לחלוטין.
Version: 1.0.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, editorial, magazine
*/

/* ==========================================================================
   1. משתני עיצוב — מהדורה עריכתית (Serif, נייר, קווים דקים, פינות חדות)
   נשלטים חלקית מ"התאמה אישית" דרך functions.php.
   ========================================================================== */
:root {
    --color-primary: #a51c30;   /* אדום עיתונאי */
    --color-secondary: #17130f; /* כמעט־שחור חמים */

    --color-primary-dark: #7e1424;
    --color-secondary-soft: #4a4038;

    --color-text: #211c16;
    --color-muted: #8a7d6b;
    --color-border: #e2dacb;    /* קו שיער חמים */
    --color-rule: #17130f;      /* קו כהה למסגרות עריכתיות */
    --color-bg: #f6f1e7;        /* רקע נייר */
    --color-card: #fffdf8;      /* משטח שנהב */

    --radius: 0px;              /* פינות חדות — שפה עריכתית */
    --radius-sm: 0px;
    --shadow: none;
    --shadow-hover: none;
    --container: 1180px;

    --font: "Assistant", "Heebo", -apple-system, "Segoe UI", Arial, sans-serif;         /* גוף */
    --font-serif: "Frank Ruhl Libre", "Georgia", "Times New Roman", "David Libre", serif; /* כותרות */
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 18px;
    line-height: 1.8;
    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 {
    font-family: var(--font-serif);
    color: var(--color-secondary);
    line-height: 1.24;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.15em; }

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

.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-secondary);
    color: #fff;
    padding: 12px 26px;
    border: 1px solid var(--color-secondary);
    border-radius: 0;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .15s ease, color .15s ease;
}
.btn:hover { background: transparent; color: var(--color-secondary); }

/* ==========================================================================
   3. Header — מאסטהד מגזין
   ========================================================================== */
.site-header {
    background: var(--color-bg);
    border-top: 3px solid var(--color-rule);
    border-bottom: 1px solid var(--color-rule);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.site-title a { color: var(--color-secondary); }
.site-description {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.custom-logo { max-height: 52px; width: auto; }

.main-navigation ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-navigation a {
    display: block;
    padding: 10px 15px;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
    background: transparent;
    border-bottom-color: var(--color-primary);
}
.main-navigation ul ul {
    display: none;
    position: absolute;
    flex-direction: column;
    background: var(--color-card);
    box-shadow: none;
    border: 1px solid var(--color-rule);
    border-radius: 0;
    padding: 6px;
    min-width: 210px;
}
.main-navigation ul ul a { border-bottom: none; letter-spacing: .06em; }
.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-rule);
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-secondary);
}

/* ==========================================================================
   4. פירורי לחם (Yoast)
   ========================================================================== */
.breadcrumbs {
    padding: 16px 0;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
}
.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: 700; }

/* ==========================================================================
   5. עמוד פוסט בודד (single)
   ========================================================================== */
.entry-header-single {
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0 30px;
    margin-bottom: 34px;
    text-align: center;
}
.entry-category-badge {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 0 0 4px;
    border-bottom: 2px solid var(--color-primary);
    border-radius: 0;
    margin-bottom: 20px;
}
.entry-title-single {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.15;
    margin: 0 auto 20px;
    max-width: 900px;
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--color-muted);
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 7px; }
.entry-meta .author-avatar { border-radius: 50%; width: 34px; height: 34px; }

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 54px;
    align-items: start;
    padding-bottom: 70px;
}
.featured-image-single {
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: none;
    border: 1px solid var(--color-border);
}
.featured-image-single img { width: 100%; object-fit: cover; }

/* גוף הכתבה — טיפוגרפיה מגזינית קריאה */
.entry-content {
    font-size: 1.16rem;
    line-height: 1.85;
    max-width: 720px;
}
.entry-content > p:first-of-type::first-letter {
    font-family: var(--font-serif);
    font-size: 3.6em;
    font-weight: 700;
    float: inline-start;
    line-height: .82;
    padding-inline-end: 12px;
    padding-top: 6px;
    color: var(--color-primary);
}
.entry-content h2 { margin-top: 1.7em; font-size: 1.9rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.4rem; }
.entry-content img { border-radius: 0; margin: 1.6em 0; border: 1px solid var(--color-border); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin-bottom: 1.3em; }
.entry-content li { margin-bottom: .55em; }
.entry-content blockquote {
    border: none;
    border-top: 2px solid var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
    background: transparent;
    margin: 2em 0;
    padding: 24px 0;
    border-radius: 0;
    color: var(--color-secondary);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    text-align: center;
}
.entry-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: 11px 15px; text-align: start; }
.entry-content th { background: var(--color-bg); font-family: var(--font-serif); }

.entry-tags { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags a {
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 6px 14px;
    border-radius: 0;
    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: 0;
    margin: 50px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.post-nav-item {
    display: flex;
    align-items: stretch;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: background .18s ease;
    min-height: 116px;
}
.post-nav-item.previous { border-inline-end: 1px solid var(--color-border); }
.post-nav-item:hover { background: rgba(23, 19, 15, 0.03); }
.post-nav-item.next { flex-direction: row-reverse; }
.pn-thumb {
    flex: 0 0 116px;
    background-size: cover;
    background-position: center;
    background-color: var(--color-bg);
    filter: grayscale(0.15);
}
.pn-thumb.no-image { background: var(--color-secondary); opacity: .9; }
.pn-body {
    padding: 18px 20px;
    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: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.pn-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.3;
    font-size: 1.12rem;
    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: transparent;
    border: none;
    border-top: 2px solid var(--color-secondary);
    border-radius: 0;
    padding: 18px 0 0;
    margin-bottom: 34px;
    box-shadow: none;
}
.sidebar .widget-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: .96rem; }
.sidebar li:last-child { border-bottom: none; }

/* ==========================================================================
   6. עמוד הבית — בלוקים לפי קטגוריה
   ========================================================================== */
.category-block { margin: 60px 0; }
.category-block-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 12px;
}
.category-block-title {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    margin: 0;
    position: relative;
    padding-inline-start: 0;
    font-weight: 900;
}
.category-block-title::before { content: none; }
.category-view-all {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary);
    white-space: nowrap;
}

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

/* Card base — עריכתי, ללא צל, מופרד בקווים */
.post-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: column;
}
.post-card:hover { box-shadow: none; transform: none; }
.post-card .card-thumb { display: block; overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); }
.post-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease, transform .4s ease; }
.post-card:hover .card-thumb img { filter: grayscale(0); transform: scale(1.03); }
.post-card .card-cat {
    font-size: .7rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: .14em;
}
.post-card .card-title { font-family: var(--font-serif); margin: 8px 0 8px; line-height: 1.24; }
.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: .74rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    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 0 0; }
.post-card.featured .card-title { font-size: 1.9rem; }
.post-card.featured .card-excerpt { color: var(--color-secondary-soft); font-size: 1.05rem; margin: 0 0 16px; }

/* Secondary list — רשימת משנה מופרדת בקווים */
.category-secondary {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.post-card.mini {
    flex-direction: row;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
}
.category-secondary .post-card.mini:first-child { border-top: none; padding-top: 0; }
.post-card.mini .card-thumb {
    flex: 0 0 104px;
    aspect-ratio: 1 / 1;
}
.post-card.mini .card-body { padding: 0; flex: 1; min-width: 0; }
.post-card.mini .card-title { font-size: 1.12rem; margin: 6px 0; }
.post-card.mini .card-meta { margin-top: 4px; }

/* ==========================================================================
   7. Archive / Blog grid
   ========================================================================== */
.page-hero {
    background: transparent;
    border-bottom: 2px solid var(--color-secondary);
    padding: 40px 0 26px;
    margin-bottom: 44px;
    text-align: center;
}
.page-hero h1 { font-family: var(--font-serif); font-size: 3rem; margin: 0 0 10px; }
.page-hero .archive-description { color: var(--color-secondary-soft); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }
.archive-count {
    display: inline-block;
    background: transparent;
    color: var(--color-primary);
    font-weight: 800;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 0;
    border-radius: 0;
    margin-bottom: 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px 40px;
    padding-bottom: 60px;
}
.posts-grid .post-card .card-thumb { aspect-ratio: 16 / 11; }
.posts-grid .post-card .card-body { padding: 18px 0 0; }
.posts-grid .post-card .card-title { font-size: 1.4rem; }
.posts-grid .post-card .card-excerpt { color: var(--color-secondary-soft); font-size: .98rem; }

/* Pagination — עריכתי מרובע */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 70px;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--color-rule);
    border-radius: 0;
    background: transparent;
    color: var(--color-secondary);
    font-weight: 700;
}
.pagination .page-numbers.current { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.pagination a.page-numbers:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ==========================================================================
   8. Page (עמוד רגיל)
   ========================================================================== */
.page-content-wrap {
    background: transparent;
    border: none;
    border-top: 3px solid var(--color-rule);
    border-radius: 0;
    padding: 34px 0 50px;
    margin-bottom: 50px;
    box-shadow: none;
    max-width: 760px;
}

/* ==========================================================================
   9. Footer — פוטר נייר עם קו עליון עבה (עריכתי)
   ========================================================================== */
.site-footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.78);
    padding: 60px 0 24px;
    margin-top: 70px;
    border-top: 4px solid var(--color-primary);
}
.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 34px;
}
.site-footer .widget-title {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 7px 0; font-size: .95rem; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    text-align: center;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   9b. Hero (עמוד הבית) — כותרת מובילה קולנועית עריכתית
   ========================================================================== */
.hero { margin: 40px 0 14px; }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* כתבה מובילה */
.hero-main {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 500px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--color-rule);
    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, 11, 8, 0.92) 0%, rgba(15, 11, 8, 0.50) 48%, rgba(15, 11, 8, 0.10) 100%);
}
.hero-main .hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 44px;
    color: #fff;
    max-width: 800px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
}
.hero-cat {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: 0;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-title {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 2.9rem;
    line-height: 1.12;
    margin: 0 0 14px;
    font-weight: 900;
}
.hero-main:hover .hero-title { text-decoration: none; opacity: .94; }
.hero-excerpt {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    margin: 0 0 16px;
    max-width: 620px;
}
.hero-meta {
    color: rgba(255, 255, 255, 0.75);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* הבזקים בצד — כרטיסים מופרדים בקווים */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid var(--color-secondary);
}
.hero-side-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: background .18s ease;
    flex: 1;
    min-height: 0;
    padding: 18px 0;
}
.hero-side-item:last-child { border-bottom: none; }
.hero-side-item:hover { box-shadow: none; transform: none; background: rgba(23, 19, 15, 0.03); }
.hero-side-thumb { flex: 0 0 92px; overflow: hidden; background: var(--color-bg); border: 1px solid var(--color-border); align-self: stretch; }
.hero-side-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.1); }
.hero-side-body { padding: 0; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-side-title {
    font-family: var(--font-serif);
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    line-height: 1.28;
    margin: 5px 0;
    font-size: 1.08rem;
}
.hero-side-item:hover .hero-side-title { color: var(--color-primary); }
.hero-side-date { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }

/* ==========================================================================
   9c. תוכן עניינים (TOC) — קופסת עריכה מסוגרת בקווים
   ========================================================================== */
.toc-box {
    background: transparent;
    border: 1px solid var(--color-secondary);
    border-inline-start: 1px solid var(--color-secondary);
    border-radius: 0;
    margin: 0 0 34px;
}
.toc-details { padding: 0; }
.toc-title {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    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: 8px; 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: 100px; }

/* ==========================================================================
   9d. תוספות פוטר (ברירת מחדל)
   ========================================================================== */
.footer-desc { color: rgba(255, 255, 255, 0.65); font-size: .92rem; margin: 0; }
.footer-logo { margin-bottom: 14px; }
.footer-logo img { max-height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-post-date { display: block; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.site-footer .footer-col li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .footer-col li:last-child { border-bottom: none; }
.site-footer .footer-about .widget-title { font-family: var(--font-serif); font-size: 1.5rem; border-bottom: none; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .single-layout { grid-template-columns: 1fr; gap: 40px; }
    .category-grid { grid-template-columns: 1fr; gap: 30px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 30px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { min-height: 380px; }
    .hero-title { font-size: 2.1rem; }
    .entry-title-single { font-size: 2.2rem; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 782px) {
    body { font-size: 17px; }
    .entry-content { font-size: 1.1rem; }
    .menu-toggle { display: block; }
    .main-navigation {
        position: absolute;
        top: 84px;
        inset-inline-start: 0;
        width: 100%;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-rule);
        box-shadow: none;
        display: none;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; align-items: stretch; padding: 10px 24px; }
    .main-navigation a { border-bottom: 1px solid var(--color-border); }
    .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; gap: 12px; }
    .post-card.mini .card-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-item.previous { border-inline-end: none; border-bottom: 1px solid var(--color-border); }
    .entry-content > p:first-of-type::first-letter { font-size: 3em; }
}

@media (max-width: 560px) {
    .posts-grid { grid-template-columns: 1fr; }
    .entry-title-single { font-size: 1.85rem; }
    .hero-title { font-size: 1.7rem; }
    .hero-main .hero-content { padding: 26px 24px; }
}
