/*
 * גבני הצפון | assets/css/main.css
 * קובץ העיצוב הראשי של תבנית WordPress
 *
 * סדר הקובץ: הגדרות בסיס -> רכיבי Northline -> התאמות מסך -> רכיבי גבני הצפון.
 * שינויי עיצוב חדשים: מומלץ להוסיף ליד הרכיב הרלוונטי, לא בסוף הקובץ.
 * הערה: נשמרו סדר הכללים והערכים המקוריים, למעט תיקון הלוגו ואיחוד משתני :root.
 */

@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700;800;900&display=swap");


/* 01. צבעים, משתנים והגדרות בסיס */
:root {
    --accent: #b75e36;
    --ink: #243c34;
    --cream: #faf7ee;
    --mint: #dce6d6;
    --line: #e1ded3;
    --muted: #58655d;
    --paper: #ffffff;
    --radius: 22px;
}


/* 02. איפוס, נגישות ומבנה רוחב */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "Heebo",Arial,sans-serif;
    line-height: 1.65;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,button:focus-visible,input:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

button,input {
    font: inherit;
}

button {
    cursor: pointer;
}

.screen-reader-text,
.nl-skip:not(:focus) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.nl-skip:focus {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    padding: 10px;
    z-index: 100;
}

.nl-shell {
    width: min(100% - 64px,1220px);
    margin-inline: auto;
}


/* 03. כותרת האתר, לוגו וניווט */
.nl-site-header {
    height: 88px;
    background: var(--cream);
    position: relative;
    z-index: 50;
    border-bottom: 1px solid rgba(20,30,20,.06);
}

.nl-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 48px;
}

.nl-brand {
    flex-shrink: 0;
}

.nl-wordmark {
    font-size: 27px;
    letter-spacing: -1px;
    font-weight: 900;
    white-space: nowrap;
}

.nl-brand-dot {
    color: var(--accent);
    padding-inline: 5px;
}

.nl-brand .custom-logo {
    display: block;
    max-width: 240px;
    max-height: 70px;
    width: auto;
    height: auto;
}

.nl-nav {
    margin-inline-start: auto;
}

.nl-menu,.nl-footer-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nl-menu a {
    font-weight: 600;
    font-size: 15px;
    transition: color .15s;
}

.nl-menu a:hover {
    color: var(--accent);
}

.nl-header-cta,.nl-button,.nl-outline-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-weight: 800;
    border-radius: 100px;
    white-space: nowrap;
    transition: transform .2s,background .2s;
}

.nl-header-cta {
    background: var(--accent);
    color: #fff;
    padding: 12px 23px;
    font-size: 14px;
}

.nl-header-cta:hover,.nl-button:hover,.nl-outline-button:hover {
    transform: translateY(-3px);
}

.nl-menu-toggle {
    display: none;
}


/* 04. אזור הפתיחה הראשי */
.nl-hero {
    background: var(--cream);
    padding-top: 78px;
}

.nl-hero-grid {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 40px;
    align-items: center;
    min-height: 475px;
}

.nl-eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    letter-spacing: .01em;
    font-weight: 800;
    color: var(--accent);
}

.nl-spark {
    font-size: 24px;
    line-height: 1;
}


/* 19. התאמות מקומיות לתבנית */
.nl-hero h1 {
    font-size: clamp(54px,6vw,91px);
    line-height: 1.04;
    letter-spacing: -.047em;
    font-weight: 900;
    margin: 22px 0 20px;
    max-width: 670px;
}

.nl-hero-content>p {
    font-size: 20px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 570px;
    margin: 0 0 30px;
}

.nl-hero-actions {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nl-button {
    font-size: 15px;
    padding: 16px 25px;
}

.nl-button-dark {
    background: var(--ink);
    color: #fff;
}

.nl-text-link {
    font-weight: 800;
    border-bottom: 1px solid currentColor;
}

.nl-hero-art {
    height: 450px;
    position: relative;
    border-radius: 39% 49% 28% 40%;
    background: #f8bf9c;
    overflow: hidden;
    isolation: isolate;
    transform: rotate(-2deg);
}

.nl-shape {
    position: absolute;
    border-radius: 50%;
}

.nl-shape-orange {
    height: 330px;
    width: 330px;
    background: #ef7e4d;
    right: -60px;
    top: -110px;
}

.nl-shape-pink {
    height: 320px;
    width: 340px;
    background: #f7a8a5;
    left: -110px;
    bottom: -120px;
}

.nl-shape-green {
    height: 290px;
    width: 290px;
    background: #cbdcb6;
    left: 14px;
    top: 25px;
    mix-blend-mode: multiply;
}

.nl-hero-art-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    font-size: clamp(32px,3.4vw,50px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.04em;
    transform: rotate(2deg);
}

.nl-hero-art-center em {
    font-style: normal;
    color: #fff;
}

.nl-hero-art-center span {
    font-size: 76px;
    margin-top: 14px;
    color: #fff;
}

.nl-art-sticker {
    position: absolute;
    bottom: 26px;
    right: 24px;
    border-radius: 50%;
    width: 112px;
    height: 112px;
    background: #fff7db;
    transform: rotate(17deg);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}


/* 05. נתוני פעילות ורצועת טקסט */
.nl-stats {
    display: flex;
    gap: 80px;
    padding-block: 66px 55px;
}

.nl-stats>div {
    display: flex;
    flex-direction: column;
    min-width: 125px;
}

.nl-stats strong {
    font-size: 51px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -.05em;
}

.nl-stats span {
    font-size: 15px;
    color: var(--muted);
    margin-top: 8px;
}

.nl-ticker {
    background: #d9e7d3;
    overflow: hidden;
    white-space: nowrap;
    border-block: 1px solid #cbdcc5;
}

.nl-ticker>div {
    font-size: 22px;
    font-weight: 900;
    word-spacing: 20px;
    padding: 19px 0;
    text-align: center;
    min-width: max-content;
}

.nl-ticker span {
    color: var(--accent);
    margin-inline: 12px;
}


/* 06. אזורי תוכן, כותרות וכפתורים */
.nl-section {
    padding-block: 95px 110px;
}

.nl-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 30px;
}

.nl-section-heading h2 {
    font-size: clamp(38px,4.2vw,64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 12px 0;
}

.nl-section-heading p {
    font-size: 17px;
    color: var(--muted);
    margin: 0;
}

.nl-heading-spark {
    color: var(--accent);
    margin-inline: 14px;
}

.nl-outline-button {
    border: 1.5px solid var(--ink);
    padding: 12px 23px;
    font-size: 14px;
}

.nl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.nl-pill {
    border-radius: 100px;
    padding: 9px 21px;
    background: #fff;
    border: 1px solid #dfdfd4;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
}

.nl-pill-active,.nl-pill:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}


/* 07. כרטיסיות תוכן */
.nl-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 24px;
}

.nl-card {
    min-width: 0;
    background: var(--paper);
    border: 1px solid #eeeae2;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 9px 28px rgba(28,38,29,.045);
    transition: transform .2s,box-shadow .2s;
}

.nl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 36px rgba(28,38,29,.09);
}

.nl-card-image {
    display: block;
    position: relative;
    aspect-ratio: 1.5;
    background: #e4dacb;
    overflow: hidden;
}

.nl-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s;
}

/* לזכרם: שומרים על החלק העליון של תמונות דיוקן בכרטיסיות.
   PHP משתמש בגודל large שאינו חתוך מראש. */
.nl-card.gn-memorial-card .nl-card-image img {
    object-position: center top;
}

/* גבנים: שומרים על הפנים של המצולם בתמונת דיוקן אנכית בכרטיסייה.
   התמונה נטענת בגודל large, ללא חיתוך מוקדם של WordPress. */
.nl-card.gn-cheesemaker-portrait-card .nl-card-image img {
    object-position: center top;
}

.nl-card:hover img {
    transform: scale(1.045);
}

.nl-card-tag {
    position: absolute;
    right: 15px;
    top: 15px;
    border-radius: 30px;
    padding: 6px 13px;
    background: white;
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 4px 14px #0001;
}

.nl-card-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#d3e1ce,#ffd1bc);
}

.nl-card-fallback span {
    font-size: 130px;
    color: #fefbf5;
}

.nl-card-body {
    padding: 23px 24px 19px;
}

.nl-card-meta {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 9px;
}

.nl-card h3 {
    font-size: 23px;
    line-height: 1.35;
    letter-spacing: -.018em;
    margin: 0 0 9px;
    font-weight: 900;
}

.nl-card-excerpt {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 20px;
    min-height: 45px;
}

.nl-card-bottom {
    border-top: 1px solid var(--line);
    padding-top: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 37px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.nl-card-bottom a,.nl-card-bottom>span:last-child {
    font-size: 24px;
    color: var(--ink);
    line-height: 1;
}


/* 08. גרפיקת הדגמה */
.nl-demo-image {
    display: grid;
    place-items: center;
}

.nl-demo-0 {
    background: #e7a48d;
}

.nl-demo-1 {
    background: #afcbb4;
}

.nl-demo-2 {
    background: #cdb7d4;
}

.nl-demo-3 {
    background: #e8c985;
}

.nl-demo-4 {
    background: #9fbbc9;
}

.nl-demo-5 {
    background: #cfcfa4;
}

.nl-demo-art {
    font-size: 180px;
    color: #ffffffa6;
    line-height: 1;
    transform: rotate(-18deg);
}


/* 09. אזור אודות */
.nl-about {
    background: #e1eadf;
    padding-block: 85px;
}

.nl-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10%;
}

.nl-about-symbol {
    aspect-ratio: 1.25;
    display: grid;
    place-content: center;
    position: relative;
    text-align: center;
}

.nl-symbol-blob {
    font-size: 270px;
    line-height: 1;
    color: var(--accent);
    transform: rotate(25deg);
}

.nl-about-symbol>span {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
    transform: rotate(-8deg);
    color: var(--ink);
}

.nl-about-copy h2 {
    font-size: clamp(40px,5vw,70px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 17px 0 23px;
}

.nl-about-copy p {
    font-size: 19px;
    max-width: 570px;
    color: #47594b;
    line-height: 1.85;
    margin-bottom: 28px;
}

/* תמונה באזור אודות הקהילה */

.nl-about-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(36, 60, 52, 0.12);
}

.nl-about-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

@media (max-width: 720px) {
    .nl-about-image {
        border-radius: 18px;
    }
}


/* 09א. לזכרם: אזור זיכרון מאופק, לאחר "אודות" בעמוד הבית */
.gn-memorial {
    background: #f5f2e9;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 42px;
}

.gn-memorial-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.gn-memorial-kicker {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.gn-memorial h2 {
    margin: 4px 0 6px;
    font-size: clamp(28px, 3vw, 39px);
    line-height: 1.2;
    font-weight: 800;
}

.gn-memorial p {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
}

.gn-memorial-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 11px 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
}

.gn-memorial-link:hover {
    background: var(--ink);
    color: #fff;
}

@media (max-width: 720px) {
    .gn-memorial {
        padding-block: 34px;
    }

    .gn-memorial-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .gn-memorial-link {
        flex-shrink: 1;
    }
}

/* 10. תחתית האתר */
.nl-footer {
    background: var(--ink);
    color: #fff;
    padding-top: 85px;
}

.nl-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    padding-bottom: 65px;
}

.nl-footer-kicker {
    color: #fac4a7;
    font-weight: 800;
}

.nl-footer h2 {
    font-size: clamp(38px,5vw,72px);
    line-height: 1.12;
    letter-spacing: -.04em;
    margin: 15px 0 0;
}

.nl-button-light {
    background: #fff;
    color: var(--ink);
}

.nl-footer-bottom {
    border-top: 1px solid #ffffff3a;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    font-size: 13px;
    color: #c5d0c9;
}

.nl-footer-bottom strong {
    font-size: 17px;
    color: #fff;
}

.nl-footer-bottom span {
    margin-inline: 10px;
}

.nl-footer-menu {
    gap: 18px;
}


/* 11. כותרות עמודים וחיפוש */
.nl-page-title {
    background: #e3eadd;
    padding-block: 78px 84px;
}

.nl-page-title h1 {
    font-size: clamp(42px,6.5vw,82px);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin: 15px 0;
}

.nl-page-title h1 span {
    color: var(--accent);
}

.nl-page-title p {
    font-size: 18px;
    color: var(--muted);
    margin: 0;
}

.nl-search-form {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin-top: 28px;
}

.nl-search-form input {
    min-width: 0;
    flex: 1;
    border: 1px solid #d5dbd1;
    padding: 13px 22px;
    border-radius: 50px;
    background: white;
}

.nl-search-form button {
    background: var(--ink);
    color: white;
    border: 0;
    border-radius: 50px;
    padding: 11px 30px;
    font-weight: 800;
}


/* 12. עמודי פריט וכתבות */
.nl-detail-narrow {
    max-width: 850px;
}

.nl-detail-header {
    background: #e3eadd;
    padding: 46px 0 70px;
}

.nl-back {
    display: block;
    margin-bottom: 34px;
    font-weight: 700;
    font-size: 14px;
}

.nl-detail-header h1 {
    font-size: clamp(40px,5vw,73px);
    line-height: 1.1;
    letter-spacing: -.04em;
    margin: 18px 0;
}

.nl-detail-header p {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 20px;
}

.nl-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nl-detail-meta span {
    border: 1px solid #a6b9aa;
    padding: 8px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 14px;
}

.nl-detail-content {
    max-width: 920px;
    padding-top: 55px;
    padding-bottom: 70px;
}

.nl-featured img,.nl-page-content>img,.nl-page-content>.wp-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
}

/* תמונות ראשיות אנכיות בכתבות: מציגים את מלוא הדיוקן בלי חיתוך. */
.nl-detail-content .nl-featured--portrait {
    width: min(100%, 420px);
    margin-inline: auto;
}

.nl-detail-content .nl-featured--portrait img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* מקטע מקרר ההבשלה: בלוק עמודות עם המחלקה gn-fridge-layout. */
.nl-prose .wp-block-columns.gn-fridge-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: clamp(18px, 3vw, 36px);
    margin-block: 32px 42px;
}

.nl-prose .wp-block-columns.gn-fridge-layout > .wp-block-column {
    min-width: 0;
    margin: 0;
}

.nl-prose .gn-fridge-layout figure {
    margin: 0;
}

.nl-prose .gn-fridge-layout img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    border-radius: 16px;
}

.nl-prose .gn-fridge-layout figcaption {
    margin-top: 7px;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 720px) {
    .nl-detail-content .nl-featured--portrait {
        width: min(100%, 360px);
    }

    .nl-prose .wp-block-columns.gn-fridge-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .nl-prose .gn-fridge-layout figure {
        max-width: 330px;
        margin-inline: auto;
    }
}

.nl-prose {
    font-size: 19px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

/* קישורים בתוך טקסט של כתבות ועמודים: בולטים ונגישים, בלי לשנות כפתורים וניווט. */
:where(.nl-prose, .nl-page-content) :is(p, li, blockquote, figcaption, td, dd) a:not(.wp-block-button__link):not(.nl-button):not(.nl-outline-button):not([style]) {
    color: #a54825;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-skip-ink: auto;
}

:where(.nl-prose, .nl-page-content) :is(p, li, blockquote, figcaption, td, dd) a:not(.wp-block-button__link):not(.nl-button):not(.nl-outline-button):not([style]):hover {
    color: #78361f;
    text-decoration-thickness: 2px;
}

.nl-prose img {
    max-width: 100%;
    height: auto;
}

.nl-prose h2,.nl-prose h3 {
    line-height: 1.25;
}

.nl-page-content {
    padding-block: 65px;
    max-width: 860px;
}


/* 12a. כרטיס היכרות אחיד למדור גבנים */
.gn-cheesemaker-card {
    margin-block: 42px 18px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #d6e0d3;
    border-radius: 18px;
    background: #eff2e9;
    color: var(--ink);
}
.gn-cheesemaker-card h2 {
    margin: 0 0 22px;
    font-size: clamp(23px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.3;
}
.gn-cheesemaker-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    margin: 0;
}
.gn-cheesemaker-card .gn-cheesemaker-field {
    min-width: 0;
    padding-block: 12px;
    border-top: 1px solid #d6e0d3;
}
.gn-cheesemaker-card dt {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}
.gn-cheesemaker-card dd {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.gn-cheesemaker-card a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}
@media (max-width: 600px) {
    .gn-cheesemaker-card { margin-block: 32px 12px; padding: 20px; }
    .gn-cheesemaker-card dl { grid-template-columns: minmax(0, 1fr); }
    .gn-cheesemaker-card .gn-cheesemaker-field { padding-block: 10px; }
    .gn-cheesemaker-card dd { font-size: 16px; }
}

/* 13. עימוד, הודעות ואזורים משניים */
.nl-pagination {
    margin-top: 40px;
}

.nl-pagination .nav-links {
    display: flex;
    gap: 10px;
}

.nl-pagination a,.nl-pagination .current {
    padding: 8px 14px;
    background: white;
    border-radius: 8px;
}

.nl-empty {
    grid-column: 1/-1;
    background: #fff;
    padding: 35px;
    border-radius: 18px;
}

.nl-more {
    background: #faf4e9;
}


/* טאבלט ומסכים בינוניים, עד 1000px */
@media (max-width:1000px) {
    .nl-shell {
        width: min(100% - 42px,1220px);
    }

    .nl-header-inner {
        gap: 24px;
    }

    .nl-hero {
        padding-top: 50px;
    }

    .nl-hero-grid {
        gap: 25px;
    }

    .nl-hero h1 {
        font-size: clamp(45px,6.2vw,68px);
    }

    .nl-hero-art {
        height: 360px;
    }

    .nl-cards {
        gap: 17px;
    }

    .nl-card-body {
        padding: 19px;
    }

    .nl-stats {
        gap: 55px;
    }

    .nl-footer h2 {
        font-size: 47px;
    }

}


/* מובייל, עד 720px */
@media (max-width:720px) {
    .nl-shell {
        width: min(100% - 32px,1220px);
    }

    .nl-site-header {
        height: 72px;
    }

    .nl-header-inner {
        gap: 12px;
    }

    .nl-wordmark {
        font-size: 23px;
    }

    .nl-header-cta {
        margin-inline-start: auto;
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
    }

    .nl-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 0;
        background: transparent;
        font-size: 13px;
        font-weight: 800;
        padding: 8px;
    }

    .nl-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: 0;
        background: var(--cream);
        box-shadow: 0 15px 25px #0001;
        border-top: 1px solid var(--line);
        padding: 18px 24px;
    }

    .nl-nav.nl-nav-open {
        display: block;
    }

    .nl-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nl-menu a {
        display: block;
        padding: 12px 5px;
    }

    .nl-hero {
        padding-top: 46px;
    }

    .nl-hero-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
    }

    .nl-hero-content h1 {
        font-size: clamp(49px,13vw,72px);
        margin: 15px 0;
    }

    .nl-hero-content>p {
        font-size: 17px;
    }

    .nl-hero-art {
        height: 335px;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

    .nl-hero-art-center {
        font-size: 37px;
    }

    .nl-stats {
        gap: 0;
        justify-content: space-between;
        padding-block: 40px;
    }

    .nl-stats>div {
        min-width: 0;
    }

    .nl-stats strong {
        font-size: 32px;
    }

    .nl-stats span {
        font-size: 11px;
    }

    .nl-ticker>div {
        font-size: 17px;
        padding: 15px 0;
    }

    .nl-section {
        padding-block: 65px;
    }

    .nl-section-heading {
        align-items: start;
        flex-direction: column;
        gap: 16px;
    }

    .nl-section-heading h2 {
        font-size: 44px;
    }

    .nl-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 12px;
    }

    .nl-card-image {
        aspect-ratio: 1.12;
    }

    .nl-card-body {
        padding: 14px;
    }

    .nl-card h3 {
        font-size: 17px;
    }

    .nl-card-meta {
        font-size: 11px;
    }

    .nl-card-excerpt {
        font-size: 12px;
        line-height: 1.5;
        min-height: 55px;
    }

    .nl-card-bottom {
        font-size: 11px;
    }

    .nl-card-tag {
        font-size: 10px;
        padding: 5px 9px;
        right: 8px;
        top: 9px;
    }

    .nl-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 7px;
    }

    .nl-pill {
        white-space: nowrap;
        font-size: 12px;
    }

    .nl-about {
        padding-block: 58px;
    }

    .nl-about-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nl-about-symbol {
        aspect-ratio: 1.7;
    }

    .nl-symbol-blob {
        font-size: 185px;
    }

    .nl-about-symbol>span {
        font-size: 18px;
    }

    .nl-about-copy h2 {
        font-size: 46px;
    }

    .nl-about-copy p {
        font-size: 17px;
    }

    .nl-footer {
        padding-top: 55px;
    }

    .nl-footer-top {
        align-items: start;
        flex-direction: column;
        gap: 27px;
    }

    .nl-footer h2 {
        font-size: 43px;
    }

    .nl-footer-bottom {
        flex-wrap: wrap;
    }

    .nl-page-title {
        padding-block: 52px;
    }

    .nl-page-title p {
        font-size: 16px;
    }

    .nl-detail-header {
        padding-bottom: 45px;
    }

    .nl-detail-header p {
        font-size: 17px;
    }

    .nl-prose {
        font-size: 17px;
    }

    /* לוגו רספונסיבי בכותרת */
    .nl-brand .custom-logo {
        max-width: 150px;
        max-height: 50px;
    }

}


/* מכשירים צרים, עד 420px */
@media (max-width:420px) {
    .nl-cards {
        grid-template-columns: 1fr;
    }

    .nl-card-image {
        aspect-ratio: 1.7;
    }

    .nl-card h3 {
        font-size: 22px;
    }

    .nl-card-excerpt {
        min-height: 0;
    }

    .nl-stats strong {
        font-size: 26px;
    }

    /* כפתור הצטרפות נשאר גלוי גם בטלפונים צרים. */
    .nl-header-inner {
        gap: 7px;
    }

    .nl-brand .custom-logo {
        max-width: 105px;
        max-height: 42px;
    }

    .nl-header-cta {
        display: inline-flex;
        flex-shrink: 0;
        margin-inline-start: auto;
        padding: 8px 9px;
        font-size: 11px;
        gap: 4px;
        white-space: nowrap;
    }

    .nl-menu-toggle {
        flex-shrink: 0;
        margin-inline-start: 0;
        padding: 6px;
        font-size: 12px;
    }

    .nl-hero-art {
        height: 290px;
    }

    .nl-art-sticker {
        width: 85px;
        height: 85px;
        font-size: 13px;
    }

    .nl-hero-art-center {
        font-size: 30px;
    }

    .nl-hero-art-center span {
        font-size: 55px;
    }

}


/* נגישות: הפחתת תנועה — הגדרה מצומצמת ובטוחה.
   הוסר איפוס גורף של animation/transition שהוביל למסך ריק בנייד. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


/* ==============================================================
   התאמות ייעודיות לקהילת גבני הצפון
   ============================================================= */

/* 15. גבני הצפון: תמונת פתיחה */
.gn-hero-image {
    min-height: 460px;
    border-radius: 30% 8% 30% 8%;
    background: linear-gradient(135deg,#d7be8f 0%,#f0dcc0 46%,#a4b698 100%);
    display: flex;
    align-items: end;
    overflow: hidden;
    position: relative;
}

.gn-hero-image:before {
    content: "◒";
    position: absolute;
    top: -145px;
    left: -80px;
    font-size: 510px;
    line-height: 1;
    color: #496f5680;
}

.gn-hero-image:after {
    content: "✳";
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 260px;
    color: #fff8;
}

.gn-hero-image-overlay {
    position: relative;
    z-index: 2;
    background: #243c34d9;
    color: white;
    width: 100%;
    padding: 32px 42px;
    display: flex;
    flex-direction: column;
}

.gn-hero-image-overlay span {
    font-size: 14px;
    font-weight: 700;
}

.gn-hero-image-overlay strong {
    font-size: clamp(26px,3vw,45px);
    line-height: 1.14;
}


/* 16. גבני הצפון: ניווט מהיר */
.gn-quicknav {
    padding: 32px 0;
    background: #e6eadc;
}

.gn-quicknav-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
}

.gn-quicknav-grid a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: white;
    border: 1px solid #dce3d7;
    border-radius: 20px;
    padding: 25px;
    font-size: 25px;
}

.gn-quicknav-grid strong {
    font-size: 19px;
}

.gn-quicknav-grid span {
    font-size: 13px;
    color: var(--muted);
}


/* 17. גבני הצפון: רצועת מפה */
.gn-map-band {
    background: #d9e4d3;
    padding: 85px 0;
}

.gn-map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.gn-map-grid h2 {
    font-size: clamp(36px,4.2vw,62px);
    line-height: 1.1;
    margin: 15px 0;
}

.gn-map-grid p {
    font-size: 19px;
    line-height: 1.7;
}

.gn-map-illustration {
    min-height: 330px;
    background: linear-gradient(130deg,#f2e5c5,#aec59d);
    border-radius: 32px;
    display: grid;
    place-content: center;
    text-align: center;
    font-size: 120px;
    color: #315643;
}

.gn-map-illustration span {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

/* 18. גבני הצפון: הודעות, סינון ויצירת קשר */
.gn-empty {
    border: 1px dashed #b8beb4;
    border-radius: 20px;
    padding: 28px;
    background: #fff;
    color: #526159;
}

.gn-filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 22px;
}

.gn-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
}

.gn-filters input,.gn-filters select {
    border: 1px solid #abbcaf;
    background: white;
    border-radius: 11px;
    padding: 11px 13px;
    min-width: 160px;
}

.gn-contact-card {
    background: #e7eddf;
    border-radius: 22px;
    padding: 24px;
    margin-top: 35px;
}

.gn-contact-card .nl-outline-button {
    margin: 5px;
}


/* 19. התאמות מקומיות לתבנית */
.nl-hero h1 {
    font-size: clamp(49px,5vw,76px);
}


/* 04. אזור הפתיחה הראשי */
.nl-hero {
    padding-bottom: 60px;
}

.nl-hero-art {
    display: none;
}


/* גבני הצפון: התאמות עד 850px */
@media (max-width:850px) {
    .gn-quicknav-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .gn-map-grid {
        grid-template-columns: 1fr;
    }

    .gn-hero-image {
        min-height: 330px;
    }

}


/* גבני הצפון: התאמות עד 480px */
@media (max-width:480px) {
    .gn-quicknav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .gn-quicknav-grid a {
        padding: 14px;
        font-size: 20px;
    }

    .gn-quicknav-grid strong {
        font-size: 16px;
    }

    .gn-quicknav-grid span {
        font-size: 12px;
    }

    .gn-hero-image {
        min-height: 290px;
    }

    .gn-hero-image-overlay {
        padding: 20px;
    }

    .gn-filters>* {
        width: 100%;
    }

    .gn-filters input,.gn-filters select {
        width: 100%;
    }

}


/* ================================================================
   19. עמוד הבית | שיפורי Hero, תמונה, ניווט מהיר
   ================================================================ */

/* אלמנטים אלה מופעלים רק בעמוד הבית כדי לא לשנות תבניות אחרות. */
.gn-home-hero {
    padding-top: 62px;
    padding-bottom: 74px;
}

.gn-home-hero .nl-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(28px, 4vw, 64px);
    min-height: 510px;
}

.gn-home-hero .nl-hero-content {
    padding-block: 18px;
}


.gn-home-hero h1 {
    max-width: 760px;
    font-size: clamp(40px, 4.4vw, 66px);
    line-height: 1.14;
    letter-spacing: -0.035em;
}

/* שורות כותרת מכוונות: בלי שבירה אוטומטית באמצע המשפט */
.gn-home-hero .gn-title-line,
.gn-map-grid .gn-title-line {
    display: block;
    white-space: nowrap;
}

.gn-home-hero .nl-hero-actions {
    flex-wrap: wrap;
    gap: 16px 26px;
}

.gn-home-hero .nl-button-dark {
    background: var(--ink);
    min-height: 52px;
}

/* The hero photo fills its container while keeping the caption legible. */
.gn-home-hero .gn-hero-image {
    width: 100%;
    min-height: 480px;
    height: 100%;
    border-radius: 32px;
    isolation: isolate;
    background: linear-gradient(135deg, #bac9a9, #f2dfbc 55%, #b1c6a6);
    box-shadow: 0 22px 48px rgba(35, 59, 48, .12);
}

.gn-home-hero .gn-hero-image::before,
.gn-home-hero .gn-hero-image::after {
    display: none;
}

.gn-home-hero .gn-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gn-home-hero .gn-hero-has-photo::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(17, 39, 30, .72), transparent 65%);
    pointer-events: none;
}

.gn-home-hero .gn-hero-image-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(22px, 3vw, 36px);
    background: transparent;
    width: 100%;
    min-height: 145px;
    justify-content: flex-end;
}

.gn-home-hero .gn-hero-has-photo .gn-hero-image-overlay {
    background: linear-gradient(to top, rgba(17, 39, 30, .55), transparent);
}

.gn-home-hero .gn-hero-image-overlay span {
    font-size: 14px;
    letter-spacing: .02em;
}

.gn-home-hero .gn-hero-image-overlay strong {
    font-size: clamp(30px, 3.4vw, 49px);
    line-height: 1.16;
}

/* A visible design fallback until an actual photo is uploaded. */
.gn-home-hero .gn-hero-no-photo {
    display: flex;
    align-items: flex-end;
}

.gn-hero-placeholder-mark {
    position: absolute;
    top: 4%;
    left: 13%;
    color: rgba(36, 60, 52, .16);
    font-size: clamp(210px, 27vw, 370px);
    line-height: 1;
    pointer-events: none;
}

.gn-home-hero .gn-hero-no-photo .gn-hero-image-overlay {
    background: linear-gradient(to top, rgba(36, 60, 52, .93), rgba(36, 60, 52, .05));
}

/* Four clear categories, aligned and with hover/focus feedback. */
.gn-quicknav-grid a {
    justify-content: flex-start;
    min-width: 0;
    min-height: 155px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gn-quicknav-grid a:hover,
.gn-quicknav-grid a:focus-visible {
    transform: translateY(-3px);
    border-color: #afc8b0;
    box-shadow: 0 12px 24px rgba(35, 59, 48, .09);
}

.gn-quicknav-grid .gn-quicknav-icon {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
}

.gn-map-illustration {
    gap: 6px;
}

.gn-map-illustration .gn-map-symbol {
    display: block;
    font-size: 112px;
    font-weight: 400;
    line-height: 1;
}

.gn-map-illustration > span:last-child {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

/* The logo rules below are intentionally scoped to the header. */
@media (max-width: 720px) {
    .gn-home-hero {
        padding-top: 38px;
        padding-bottom: 52px;
    }

    .gn-home-hero .nl-hero-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: 0;
    }

    /* הכותרת הארוכה צריכה להיכנס כולה בשורה השנייה גם בנייד. */
    .gn-home-hero h1 {
        font-size: clamp(26px, 8.2vw, 48px);
    }

    .gn-map-grid h2 {
        font-size: clamp(28px, 8vw, 44px);
    }

    .gn-home-hero .gn-hero-image {
        min-height: 350px;
        height: 350px;
    }

    .gn-quicknav-grid a {
        min-height: 142px;
    }

    .nl-brand .custom-logo {
        max-width: 150px;
        max-height: 50px;
    }
}

@media (max-width: 480px) {
    .gn-home-hero .gn-hero-image {
        min-height: 300px;
        height: 300px;
    }

    .gn-home-hero .gn-hero-image-overlay strong {
        font-size: 30px;
    }

    .gn-quicknav-grid a {
        min-height: 130px;
    }

    .gn-quicknav-grid .gn-quicknav-icon {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gn-quicknav-grid a {
        transition: none;
    }
}


/* =====================================
   גבני הצפון - תצוגת מפת הגבנים
   ===================================== */

.gn-map-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 24px;
    background: #d9e4d3;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.gn-map-preview a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.gn-map-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.35s ease;
}

.gn-map-preview a:hover img {
    transform: scale(1.035);
}

.gn-map-preview-label {
    position: absolute;
    bottom: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 30px;
    background: #243c34;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

@media (max-width: 720px) {
    .gn-map-preview {
        border-radius: 18px;
    }

    .gn-map-preview-label {
        right: 12px;
        bottom: 12px;
        font-size: 12px;
        padding: 9px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gn-map-preview img {
        transition: none;
    }
}



/* ============================================================
   20. תצוגת קטגוריות | עדכון 0.3
   ששת מדורי הקהילה הראשיים בכרטיסיות הניווט
   ============================================================ */

.gn-quicknav-six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gn-post-tags {
    margin-block: 30px;
}

@media (max-width: 850px) {
    .gn-quicknav-six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   22. תפריט ראשי, תפריט תחתון ותתי-תפריטים | 0.3.3
   - במחשב: hover וגם focus-within (מקלדת)
   - בטלפון: פתיחה בלחיצה באמצעות site.js
   ============================================================ */

.nl-nav {
    min-width: 0;
}

.nl-menu,
.nl-footer-menu {
    list-style: none;
}

.nl-menu li,
.nl-footer-menu li {
    position: relative;
    list-style: none;
}

.nl-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
}

.nl-menu a,
.nl-footer-menu a {
    text-decoration: none;
}

.nl-menu .current-menu-item > a,
.nl-menu .current-menu-ancestor > a,
.nl-footer-menu .current-menu-item > a {
    color: var(--accent);
}

.gn-submenu-toggle {
    display: none;
}

/* סימון ברור של פריט עם ילדים */
.nl-menu > .menu-item-has-children > a::after,
.nl-footer-menu > .menu-item-has-children > a::after {
    content: "⌄";
    display: inline-block;
    margin-inline-start: 7px;
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

/* תת-תפריט במחשב: פתיחה במעבר עכבר ובמיקוד מקלדת */
.nl-menu .sub-menu,
.nl-footer-menu .sub-menu {
    position: absolute;
    z-index: 100;
    top: 100%;
    right: 0;
    left: auto;
    width: max-content;
    min-width: 208px;
    max-width: min(330px, 90vw);
    margin: 0;
    padding: 9px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 16px 36px rgba(20, 35, 29, .15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.nl-menu .sub-menu .sub-menu,
.nl-footer-menu .sub-menu .sub-menu {
    top: -9px;
    right: 100%;
}

.nl-menu li:hover > .sub-menu,
.nl-menu li:focus-within > .sub-menu,
.nl-footer-menu li:hover > .sub-menu,
.nl-footer-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nl-menu .sub-menu a,
.nl-footer-menu .sub-menu a {
    display: block;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
}

.nl-menu .sub-menu a:hover,
.nl-menu .sub-menu a:focus-visible,
.nl-footer-menu .sub-menu a:hover,
.nl-footer-menu .sub-menu a:focus-visible {
    color: var(--ink);
    background: var(--mint);
}

/* תחתית: תפריט בר-גלישה שמאפשר גם תתי-תפריטים כלפי מעלה */
.nl-footer-menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 5px;
}

.nl-footer-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 3px;
    color: #fff;
}

.nl-footer-menu > li > .sub-menu {
    top: auto;
    bottom: 100%;
    transform: translateY(-8px);
}

.nl-footer-menu > li:hover > .sub-menu,
.nl-footer-menu > li:focus-within > .sub-menu {
    transform: translateY(0);
}

/* התפריט בנייד: תתי-תפריטים נפתחים בתוך הזרימה ולא מרחפים */
@media (max-width: 720px) {
    .nl-nav {
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nl-menu > li {
        border-bottom: 1px solid var(--line);
    }

    .nl-menu > li:last-child {
        border-bottom: 0;
    }

    .nl-menu li.menu-item-has-children {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: start;
    }

    .nl-menu li.menu-item-has-children > a {
        grid-column: 1;
        min-width: 0;
    }

    .nl-menu li.menu-item-has-children > .gn-submenu-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .nl-menu li.menu-item-has-children > .sub-menu {
        grid-column: 1 / -1;
    }

    .nl-menu > li > a,
    .nl-menu .sub-menu a {
        display: block;
        min-height: 44px;
        padding: 11px 8px;
    }

    .nl-menu > .menu-item-has-children > a::after {
        display: none;
    }

    .gn-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--ink);
        font-size: 21px;
    }

    .gn-submenu-toggle[aria-expanded="true"] {
        background: var(--mint);
    }

    .nl-menu .sub-menu,
    .nl-menu .sub-menu .sub-menu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
        padding: 2px 12px 8px 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .nl-menu li.gn-submenu-open > .sub-menu {
        display: block;
    }

    .nl-menu .sub-menu a {
        font-size: 14px;
        font-weight: 500;
    }

    .nl-footer-bottom {
        align-items: flex-start;
    }

    .nl-footer-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* בתחתית האתר תתי-הפריטים גלויים בנייד כדי שלא יהיו תלויי hover */
    .nl-footer-menu .sub-menu,
    .nl-footer-menu .sub-menu .sub-menu {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 0 12px 4px 0;
        margin: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
        color: #fff;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .nl-footer-menu .sub-menu a {
        color: #fff;
    }

    .nl-footer-menu > .menu-item-has-children > a::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nl-menu .sub-menu,
    .nl-footer-menu .sub-menu,
    .nl-menu > .menu-item-has-children > a::after {
        transition: none;
    }
}


/* ============================================================
   23. מניעת גלילה אופקית לא מכוונת | 2026-11-20
   שומר על גלילה אנכית ועל תפריטים נפתחים.
   ============================================================ */

/* Elements with long titles or menus must be allowed to shrink in grids. */
.nl-hero-grid > *,
.nl-about-grid > *,
.gn-map-grid > *,
.nl-header-inner > * {
    min-width: 0;
}

/* A headline split into intentional lines must fit narrow phones. */
@media (max-width: 480px) {
    .gn-home-hero h1 {
        font-size: clamp(22px, 6.7vw, 32px);
    }

    .gn-map-grid h2 {
        font-size: clamp(26px, 7.2vw, 35px);
    }
}

/* Prevent off-canvas decoration or unbroken text from widening the page.
   We use clip instead of hidden to avoid creating an extra scrolling box. */
html,
body {
    overflow-x: clip;
}


/* 24. תחתית האתר: ניווט, קרדיט ארגוני ודפי מעטפת */
.nl-footer {
    padding-block: 48px 24px;
    text-align: center;
}
.gn-footer-brand {
    margin-bottom: 24px;
}
.gn-footer-brand strong {
    display: block;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 900;
    line-height: 1.2;
}
.gn-footer-brand p {
    margin: 8px 0 0;
    font-size: 16px;
    color: #dce6d6;
}
.nl-footer .nl-footer-menu,
.nl-footer .gn-legal-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 24px;
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}
.nl-footer .nl-footer-menu > li,
.nl-footer .gn-legal-menu > li {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nl-footer .nl-footer-menu > li > a,
.nl-footer .gn-legal-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 5px 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
    white-space: normal;
}
.nl-footer .nl-footer-menu > li > a:hover,
.nl-footer .gn-legal-menu > li > a:hover,
.nl-footer a:focus-visible {
    color: #fac4a7;
    text-decoration: underline;
}
.nl-footer a:focus-visible {
    outline-color: #fac4a7;
}
.nl-footer .sub-menu,
.nl-footer .menu-item-has-children > a::after {
    display: none;
}
.gn-footer-partners {
    border-block: 1px solid #ffffff3a;
    margin-block: 20px;
    padding-block: 22px;
}
.gn-footer-partners p {
    margin: 0;
    color: #dce6d6;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.gn-footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.gn-footer-logos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
.nl-footer .gn-legal-menu > li > a {
    color: #dce6d6;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gn-footer-copyright {
    display: block;
    margin-top: 12px;
    color: #c5d0c9;
    font-size: 12px;
}
@media (max-width: 720px) {
    .nl-footer { padding-block: 32px 20px; }
    .nl-footer .nl-footer-menu,
    .nl-footer .gn-legal-menu { gap: 2px 16px; }
    .gn-footer-partners { padding-block: 16px; margin-block: 14px; }
}


/* 25. כותרות עמודים פנימיים: פירורי לחם והדגשה */
.gn-page-title {
    padding-block: 62px 66px;
}
.gn-page-title .gn-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--muted);
}
.gn-page-title .gn-breadcrumbs li {
    min-width: 0;
    overflow-wrap: anywhere;
}
.gn-page-title .gn-breadcrumbs li + li::before {
    content: "/";
    margin-inline-end: 9px;
    color: #819186;
}
.gn-page-title .gn-breadcrumbs a:hover,
.gn-page-title .gn-breadcrumbs a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.gn-page-title .gn-breadcrumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}
.gn-page-title h1 {
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin: 16px 0 22px;
    overflow-wrap: break-word;
}
.gn-page-title .gn-page-title-accent {
    display: block;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}
.gn-page-title .gn-page-subtitle {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}
@media (max-width: 720px) {
    .gn-page-title { padding-block: 42px 46px; }
    .gn-page-title .gn-breadcrumbs ol { font-size: 13px; }
    .gn-page-title h1 { font-size: clamp(32px, 7vw, 44px); }
    .gn-page-title .gn-page-subtitle { font-size: 16px; }
}


/* 26. דף אודות: תמונות אותנטיות, טקסט ועיצוב רספונסיבי */
.nl-page-content:has(> .gn-about-content) {
    max-width: 1080px;
}
.gn-about-content {
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    padding-bottom: 10px;
}
.gn-about-motto {
    margin: 0 0 32px;
    color: var(--accent);
    font-size: clamp(20px, 2.3vw, 27px);
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}
.gn-about-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    margin-block: 0 54px;
}
.gn-about-content .gn-about-copy,
.gn-about-content .gn-about-photo { min-width: 0; }
.gn-about-content h2 {
    margin: 0 0 14px;
    font-size: clamp(25px, 2.5vw, 33px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
    color: var(--ink);
}
.gn-about-content p:not(.gn-about-motto) {
    font-size: 17px;
    line-height: 1.8;
}
.gn-about-copy p { margin: 0 0 14px; }
.gn-about-copy p:last-child { margin-bottom: 0; }
.gn-about-photo {
    display: block;
    width: 100%;
    margin: 0;
    border-radius: 18px;
    background-color: #dce6d6;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 10px 26px rgba(36, 60, 52, .10);
}
/* כתובות התמונות יחסיות לקובץ CSS, ולכן תקינות גם במעבר דומיין */
.gn-about-photo-group {
    aspect-ratio: 1024 / 682;
    background-image: url('../img/about-community-group.webp');
}
.gn-about-photo-learning {
    aspect-ratio: 4 / 3;
    background-image: url('../img/about-community-learning.webp');
}
.gn-about-vision {
    padding: 24px 30px;
    border-inline-start: 3px solid var(--accent);
    background: #f1f0e7;
    border-radius: 14px;
}
.gn-about-vision p { margin: 0; }
.gn-about-affiliation {
    margin: 24px 0 0 !important;
    color: var(--muted);
    font-size: 14px !important;
    line-height: 1.7 !important;
}
@media (max-width: 720px) {
    .gn-about-motto { text-align: right; margin-bottom: 26px; }
    .gn-about-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-bottom: 38px;
    }
    .gn-about-section .gn-about-copy { order: 1; }
    .gn-about-section .gn-about-photo { order: 2; }
    .gn-about-content p:not(.gn-about-motto) { font-size: 16px; }
    .gn-about-vision { padding: 20px; }
    .gn-about-affiliation { font-size: 13px !important; }
}

/* תמונה לצד טקסט בגוף פוסט */
.gn-float-image {
    float: left;
    width: 240px;
    max-width: 40%;
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 16px;
}

@media (max-width: 720px) {
    .gn-float-image {
        float: none;
        display: block;
        width: 220px;
        max-width: 100%;
        margin: 0 auto 24px;
    }
}
