/* ============================================================
   olim-page.css — הסגנונות הייחודיים לעמודי "עולים לכיתה א׳"
   ------------------------------------------------------------
   נשען על הטוקנים של המותג שמוגדרים ב-olim.css (--navy, --olive,
   --stone, --cream וכו׳). אפס HEX קשיח של צבעי מותג כאן.
   ============================================================ */

/* ===== הירו של מרכז ההורים ===== */
.olim-hero {
    background:
        radial-gradient(circle at 14% 36%, rgba(216,187,124,0.26), transparent 26%),
        radial-gradient(circle at 86% 22%, rgba(122,137,82,0.13), transparent 25%),
        linear-gradient(180deg, #FFFFFF 0%, var(--cream) 100%);
    padding: 54px 40px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.olim-hero::before {
    content: '';
    position: absolute;
    top: 54px;
    inset-inline-start: 7%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(216,187,124,0.40) 0 3px, transparent 3.5px) 0 0 / 24px 24px;
    opacity: 0.7;
    pointer-events: none;
}

.olim-hero-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }

.olim-hero h1 {
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.25;
    margin: 10px 0 18px;
}

.olim-hero-lead {
    font-size: 18.5px;
    line-height: 1.95;
    color: var(--text);
    max-width: 740px;
    margin: 0 auto 16px;
}

.olim-hero-welcome {
    font-size: 15.5px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 26px;
}

.olim-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ===== פירורי לחם ===== */
.olim-crumbs {
    font-size: 13px;
    color: var(--text-light);
    padding: 14px 0 0;
}
.olim-crumbs a { color: var(--blue-jlm); text-decoration: none; }
.olim-crumbs a:hover { text-decoration: underline; }
.olim-crumbs span { margin: 0 6px; opacity: .6; }

/* ===== כרטיסי מדריכים ===== */
.guide-grid {
    display: grid;
    /* ארבעה מדריכים. 2x2 מאוזן, במקום 3+1 שמשאיר כרטיס יתום בשורה */
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 32px;
}
@media (max-width: 760px) {
    .guide-grid { grid-template-columns: 1fr; }
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px 22px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(18,63,105,.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 5px;
    background: var(--navy);
}
.guide-card:nth-child(2)::before { background: var(--blue-jlm); }
.guide-card:nth-child(3)::before { background: var(--olive); }
.guide-card:nth-child(4)::before { background: var(--stone); }

.guide-card:hover,
.guide-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(18,63,105,.14);
    border-color: rgba(18,63,105,.22);
}

.guide-card-kicker {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    /* הזית של המותג (#7A8952) נותן 3.80 על לבן, מתחת ל-AA בטקסט קטן.
       גוון כהה יותר מאותה משפחה, כדי לשמור על השפה ולעמוד בניגודיות */
    color: #5C6A38;
    margin-bottom: 8px;
}

.guide-card h3 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 10px;
}

.guide-card p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.guide-card-more {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--blue-jlm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.guide-card-more::after { content: '←'; font-size: 16px; }

/* ===== גוף המדריך (עמודי המשנה) ===== */
.guide-body { max-width: 760px; }
.guide-body h2 {
    font-size: 25px;
    margin-top: 38px;
    margin-bottom: 12px;
}
.guide-body h2:first-of-type { margin-top: 6px; }
.guide-body p { font-size: 17px; line-height: 1.95; }

.guide-intro {
    font-size: 18.5px;
    line-height: 1.95;
    color: var(--text);
    border-inline-start: 4px solid var(--stone);
    padding-inline-start: 20px;
    margin-bottom: 30px;
}

.guide-list { margin: 0 0 20px; padding-inline-start: 0; list-style: none; counter-reset: gl; }
.guide-list li {
    counter-increment: gl;
    position: relative;
    padding-inline-start: 46px;
    margin-bottom: 15px;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text-light);
}
.guide-list li::before {
    content: counter(gl);
    position: absolute;
    inset-inline-start: 0;
    top: 2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(216,187,124,.26);
    border: 1px solid rgba(216,187,124,.5);
    color: var(--navy);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-bullets { margin: 0 0 20px; padding-inline-start: 0; list-style: none; }
.guide-bullets li {
    position: relative;
    padding-inline-start: 24px;
    margin-bottom: 12px;
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text-light);
}
.guide-bullets li::before {
    content: '';
    position: absolute;
    inset-inline-start: 2px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--olive);
}

/* פסקת סיום מודגשת */
.guide-closing {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
    margin-top: 34px;
}
.guide-closing p:last-child { margin-bottom: 0; }

/* הערת זהירות מקצועית */
.guide-note {
    background: rgba(112,169,202,.1);
    border-inline-start: 4px solid var(--sky);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 24px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--text-light);
}
.guide-note p:last-child { margin-bottom: 0; }

/* קישור עדין אל בית הספר בסוף מדריך */
.guide-softcta {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    font-size: 16.5px;
}
.guide-softcta a { color: var(--blue-jlm); font-weight: 700; }

/* ניווט בין המדריכים */
.guide-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 38px;
}
.guide-nav a {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}
.guide-nav a:hover { border-color: rgba(18,63,105,.24); transform: translateY(-2px); }
.guide-nav-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; color: #5C6A38; margin-bottom: 5px; }
.guide-nav-title { display: block; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.5; }

/* ===== אזור המשחקים ===== */
.play-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 32px;
}

.play-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 10px 28px rgba(18,63,105,.07);
}
.play-card h3 {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 20px;
    margin-bottom: 10px;
}
.play-card p { font-size: 15.5px; line-height: 1.8; }

/* ===== קלפי השיחה ===== */
.talkcard {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 12px 34px rgba(18,63,105,.08);
    max-width: 680px;
}

.talkcard-face {
    background:
        radial-gradient(circle at 12% 20%, rgba(216,187,124,.2), transparent 30%),
        linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    border: 1px solid rgba(216,187,124,.46);
    border-radius: 16px;
    min-height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 26px;
    position: relative;
}

/* קשת פסיפס קטנה בראש הקלף, מתוך צבעי המותג */
.talkcard-face::before {
    content: '';
    position: absolute;
    top: 14px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    width: 54px;
    height: 8px;
    background:
        radial-gradient(circle at 5px 4px, var(--navy) 3.5px, transparent 4px),
        radial-gradient(circle at 27px 4px, var(--olive) 3.5px, transparent 4px),
        radial-gradient(circle at 49px 4px, var(--stone) 3.5px, transparent 4px);
    background-repeat: no-repeat;
    opacity: .8;
}

.talkcard-q {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: clamp(19px, 3.4vw, 25px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.55;
    margin: 0;
}

.talkcard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.talkcard-count {
    font-size: 13.5px;
    /* text-muted נתן 3.10 בלבד מול הקרם של הקלף. text-light עומד ב-AA */
    color: var(--text-light);
    font-weight: 600;
    margin-inline-start: auto;
}

/* ===== משחק הזיכרון ===== */
.memory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}
.memory-stat { font-size: 14.5px; color: var(--text-light); font-weight: 600; }
.memory-stat strong { color: var(--navy); }

.memory-board {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 680px;
}

.memory-cell {
    position: relative;
    aspect-ratio: 3 / 4;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 12px;
}
.memory-cell:focus-visible { outline: 3px solid var(--blue-jlm); outline-offset: 3px; }

.memory-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* ההיפוך מבוסס אטימות ולא על rotateY.
   הסיבה: הקשר תלת ממדי בתוך <button> לא נשמר באופן עקבי בין דפדפנים,
   והפנים של הקלף נשאר בלתי נראה גם כשהטרנספורם מוחל כהלכה.
   אטימות + נראות נותנת בדיוק את אותה חוויה, בלי התלות הזו. */
.memory-front,
.memory-back {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity .25s ease;
}

.memory-front {
    background:
        radial-gradient(circle at 50% 30%, rgba(255,255,255,.22) 0 6px, transparent 7px),
        var(--navy);
    border: 1px solid var(--navy-deep);
    opacity: 1;
}
.memory-front::after {
    content: '';
    width: 40px;
    height: 7px;
    background:
        radial-gradient(circle at 4px 3.5px, var(--stone) 3px, transparent 3.5px),
        radial-gradient(circle at 20px 3.5px, var(--sky) 3px, transparent 3.5px),
        radial-gradient(circle at 36px 3.5px, var(--olive) 3px, transparent 3.5px);
    background-repeat: no-repeat;
}

.memory-back {
    background: #fff;
    border: 1px solid rgba(216,187,124,.6);
    padding: 6px;
    opacity: 0;
}

.memory-cell.flipped .memory-front,
.memory-cell.matched .memory-front { opacity: 0; }
.memory-cell.flipped .memory-back,
.memory-cell.matched .memory-back { opacity: 1; }

.memory-emoji { display: block; font-size: clamp(22px, 4.4vw, 34px); line-height: 1; }
.memory-label { display: block; font-size: 11px; font-weight: 700; color: var(--navy); text-align: center; line-height: 1.3; }

.memory-cell.matched .memory-back {
    border-color: var(--olive);
    background: rgba(122,137,82,.1);
}

.memory-done {
    margin-top: 18px;
    background: rgba(122,137,82,.12);
    border: 1px solid rgba(122,137,82,.35);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

/* ===== רשימת הפעולות ===== */
.checklist { max-width: 700px; margin-top: 26px; }

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.checklist-item:hover { border-color: rgba(18,63,105,.22); }
.checklist-item input { width: 22px; height: 22px; margin-top: 3px; flex-shrink: 0; accent-color: var(--olive); cursor: pointer; }
.checklist-item span { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.checklist-item.done span { color: var(--text-muted); text-decoration: line-through; }

.checklist-meter {
    margin-top: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
}
.checklist-bar {
    height: 12px;
    border-radius: 60px;
    background: rgba(18,63,105,.1);
    overflow: hidden;
    margin-bottom: 10px;
}
.checklist-fill {
    height: 100%;
    width: 0;
    border-radius: 60px;
    background: linear-gradient(90deg, var(--olive), var(--stone));
    transition: width .35s ease;
}
.checklist-text { font-size: 14.5px; color: var(--text-light); font-weight: 600; }

/* ===== שאלות נפוצות ===== */
.faq { max-width: 820px; margin-top: 30px; }

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 19px 22px;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(216,187,124,.26);
    color: var(--navy);
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary::after { content: '−'; background: rgba(122,137,82,.2); }
.faq-item summary:focus-visible { outline: 3px solid var(--blue-jlm); outline-offset: -3px; }

.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 16.5px; line-height: 1.9; margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===== כיתה א׳ בגאולים ===== */
.alef-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.alef-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: 0 10px 28px rgba(18,63,105,.07);
}
.alef-card h3 { font-family: 'Frank Ruhl Libre', serif; font-size: 20px; margin-bottom: 10px; }
.alef-card p { font-size: 15.5px; line-height: 1.8; margin-bottom: 0; }

/* ===== ההזמנה המסיימת ===== */
.olim-invite {
    background:
        radial-gradient(circle at 88% 18%, rgba(216,187,124,.2), transparent 30%),
        linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 40px 36px;
    margin-top: 10px;
}
.olim-invite h2 { margin-bottom: 16px; }
.olim-invite p { font-size: 17px; line-height: 1.95; max-width: 720px; }
.olim-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* ===== הדפסה ===== */
@media print {
    nav, .mobile-menu, .mosaic-topborder, footer, .to-top,
    .olim-hero-actions, .talkcard-actions, .guide-nav,
    .olim-invite-actions, .skip-link, .olim-crumbs { display: none !important; }
    body { padding-top: 0; background: #fff; }
    section { padding: 10px 0; }
    .print-cards { display: block !important; }
}

/* גלויות הדפסה: מוסתרות על המסך, מופיעות רק בהדפסה */
.print-cards { display: none; }
.print-cards .pc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.print-cards .pc-card {
    border: 1.5px dashed rgba(18,63,105,.45);
    border-radius: 12px;
    padding: 20px 16px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    page-break-inside: avoid;
}

/* ===== נייד ===== */
@media (max-width: 900px) {
    .memory-board { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .olim-hero { padding: 34px 18px 38px; }
    .olim-hero-lead { font-size: 16.5px; line-height: 1.85; }
    .olim-hero-welcome { font-size: 14.5px; }
    .olim-hero-actions { flex-direction: column; align-items: stretch; }
    .olim-hero-actions .btn-navy,
    .olim-hero-actions .btn-sun,
    .olim-hero-actions .btn-olive { text-align: center; }
    .guide-grid, .play-grid, .alef-grid { gap: 16px; }
    .guide-body h2 { font-size: 21px; }
    .guide-body p { font-size: 16px; }
    .guide-intro { font-size: 16.5px; padding-inline-start: 15px; }
    .guide-list li, .guide-bullets li { font-size: 15.5px; }
    .olim-invite { padding: 26px 20px; border-radius: 18px; }
    .olim-invite-actions { flex-direction: column; align-items: stretch; }
    .olim-invite-actions .btn-navy,
    .olim-invite-actions .btn-sun,
    .olim-invite-actions .btn-olive { text-align: center; }
    .faq-item summary { font-size: 16.5px; padding: 16px 18px; }
    .faq-answer { padding: 0 18px 18px; }
    .faq-answer p { font-size: 15.5px; }
    .talkcard { padding: 22px 18px; }
    .talkcard-face { min-height: 150px; padding: 30px 18px 22px; }
    .memory-board { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .checklist-item span { font-size: 15.5px; }
}

@media (max-width: 420px) {
    .memory-label { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .memory-inner, .checklist-fill, .guide-card, .guide-nav a { transition: none !important; }
}

/* ============================================================
   הרחבת המדריכים והמשחקים — נוסף אחרי שלירון ביקשה
   מדריכים מפורטים ומעוצבים יותר, והחומרים המקוריים
   (32 קלפי שיחה · 24 איורי זיכרון) נכנסו במקום מה שהמצאתי
   ============================================================ */

/* ===== ראש המדריך ===== */
.guide-top { padding-bottom: 0; }
.guide-head { max-width: 800px; }
.guide-head h1 {
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
    font-size: clamp(27px, 4.4vw, 40px);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.25;
    margin: 6px 0 20px;
}
.guide-standfirst {
    font-size: 20px;
    line-height: 1.9;
    color: var(--text);
    border-inline-start: 4px solid var(--stone);
    padding-inline-start: 22px;
    margin-bottom: 14px;
}
.guide-standfirst-sub {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-light);
    padding-inline-start: 26px;
    margin-bottom: 18px;
}
.guide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #5C6A38;
    padding-top: 6px;
}
.gm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--stone); flex: none; }
.gm-read { color: var(--text-light); font-weight: 600; letter-spacing: 0; }

/* ===== תוכן עניינים ===== */
.guide-toc {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 36px;
}
.toc-label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #5C6A38;
    margin-bottom: 10px;
}
.guide-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.guide-toc li { margin: 0; }
.guide-toc a {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--blue-jlm);
    text-decoration: none;
    border-bottom: 1px solid rgba(25,111,156,.28);
}
.guide-toc a:hover { border-bottom-color: var(--blue-jlm); }

/* כותרות המקטעים מקבלות מרווח גלילה, בגלל ההדר הקבוע */
.guide-body h2 { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ===== רשימת צעדים מוערת ===== */
.guide-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: gstep; }
.guide-steps li {
    counter-increment: gstep;
    position: relative;
    padding-inline-start: 56px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.guide-steps li:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-steps li::before {
    content: counter(gstep);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gs-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    margin-bottom: 5px;
}
.gs-note { display: block; font-size: 16px; line-height: 1.85; color: var(--text-light); }

/* ===== רשימת שאלות ===== */
.guide-qlist { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.guide-qlist li {
    background: #fff;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--sky);
    border-radius: 12px;
    padding: 15px 20px;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
}

/* ===== תיבת צד ===== */
.guide-aside {
    background: rgba(216,187,124,.14);
    border: 1px solid rgba(216,187,124,.46);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px 0 28px;
}
.ga-title {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #5C6A38;
    margin-bottom: 10px;
}
.guide-aside ul { list-style: none; margin: 0; padding: 0; }
.guide-aside li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 9px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}
.guide-aside li:last-child { margin-bottom: 0; }
.guide-aside li::before {
    content: '';
    position: absolute;
    inset-inline-start: 2px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--olive);
}

/* ===== טבלת במקום / עדיף ===== */
.swap-table {
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 28px;
    background: #fff;
}
.swap-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0;
    border-bottom: 1px solid var(--border);
}
.swap-row:last-child { border-bottom: 0; }
.swap-row > span { padding: 15px 18px; font-size: 16px; line-height: 1.75; }
.swap-head > span {
    background: var(--navy);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    padding: 11px 18px;
}
.swap-before { color: var(--text-muted); border-inline-end: 1px solid var(--border); }
.swap-after { color: var(--navy); font-weight: 600; background: rgba(122,137,82,.07); }

/* ===== סיום המדריך ===== */
.guide-closing { position: relative; }
.gc-mark {
    position: absolute;
    top: -9px;
    inset-inline-start: 26px;
    width: 46px;
    height: 8px;
    background:
        radial-gradient(circle at 4px 4px, var(--navy) 3.5px, transparent 4px),
        radial-gradient(circle at 23px 4px, var(--olive) 3.5px, transparent 4px),
        radial-gradient(circle at 42px 4px, var(--stone) 3.5px, transparent 4px);
    background-repeat: no-repeat;
}

/* ===== מסנני קלפי השיחה ===== */
.talk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 20px; }
.talk-filter {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    border-radius: 60px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.talk-filter:hover { border-color: rgba(18,63,105,.3); }
.talk-filter.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.talk-filter:focus-visible { outline: 3px solid var(--blue-jlm); outline-offset: 2px; }

/* ===== קלף שיחה ===== */
.talkcard-face {
    --tile: var(--navy);
    display: block;
    text-align: start;
    border-top: 6px solid var(--tile);
    min-height: 0;
    padding: 24px 26px 26px;
}
.talkcard-face::before { display: none; }
.talkcard-group {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
    color: #5C6A38;
    margin-bottom: 12px;
}
.talkcard-q { text-align: start; margin-bottom: 0; }
.talkcard-parent {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(18,63,105,.22);
}
.tp-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--navy);
    background: rgba(216,187,124,.3);
    border-radius: 60px;
    padding: 3px 11px;
    margin-bottom: 8px;
}
.tp-text { font-size: 15.5px; line-height: 1.85; color: var(--text-light); margin: 0; }

/* ===== לוח הזיכרון עם האיורים ===== */
.memory-sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.mem-size {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-light);
    border-radius: 60px;
    padding: 7px 14px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.mem-size.is-on { background: var(--olive); color: #fff; border-color: var(--olive); }
.mem-size:focus-visible { outline: 3px solid var(--blue-jlm); outline-offset: 2px; }

.memory-board { grid-template-columns: repeat(4, 1fr); max-width: 620px; }
.memory-board[data-cols="6"] { grid-template-columns: repeat(6, 1fr); max-width: 860px; }

.memory-back img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 9px;
    display: block;
}
.memory-back { padding: 7px 7px 3px; gap: 2px; }
.memory-back .memory-label { margin-top: 1px; }

/* ===== הדפסה ===== */
.print-title { font-size: 20px; margin-bottom: 6px; }
.print-note { font-size: 13px; color: var(--text-light); margin-bottom: 14px; }

.print-cards .pc-card {
    --tile: var(--navy);
    border: 1px dashed rgba(18,63,105,.4);
    border-top: 4px solid var(--tile);
    border-radius: 10px;
    padding: 14px 16px 12px;
    min-height: 112mm;
    display: flex;
    flex-direction: column;
    text-align: start;
    page-break-inside: avoid;
    break-inside: avoid;
}
.pc-group {
    font-size: 9pt;
    font-weight: 800;
    letter-spacing: 1px;
    color: #5C6A38;
    margin-bottom: 10px;
}
.pc-q {
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
    font-size: 15pt;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.5;
    flex: 1;
    margin: 0;
}
.pc-p {
    font-size: 9.5pt;
    line-height: 1.6;
    color: #4A5560;
    margin: 0;
    padding-top: 9px;
    border-top: 1px dashed rgba(18,63,105,.25);
}
.pc-p span {
    display: block;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--navy);
    margin-bottom: 3px;
    font-size: 8pt;
}

.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
.pm-card {
    border: 1px dashed rgba(18,63,105,.4);
    border-radius: 10px;
    padding: 6mm 4mm 4mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3mm;
    page-break-inside: avoid;
    break-inside: avoid;
}
.pm-card img { width: 100%; max-width: 44mm; height: auto; display: block; }
.pm-card span { font-size: 10pt; font-weight: 700; color: var(--navy); }

@media print {
    /* כשמדפיסים קלפי שיחה מסתירים את אזור הזיכרון, ולהפך */
    body.printing-talk #zikaron,
    body.printing-talk #peulot,
    body.printing-talk .guide-top,
    body.printing-mem #klafim,
    body.printing-mem #peulot { display: none !important; }
    body.printing-talk #printMem,
    body.printing-mem #printTalk { display: none !important; }

    .talkcard, .memory-toolbar, .memory-board, .memory-done,
    .talk-filters, .memory-sizes, .guide-toc { display: none !important; }

    .print-cards .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 5mm; }
}

/* ===== נייד ===== */
@media (max-width: 768px) {
    .guide-standfirst { font-size: 17px; padding-inline-start: 16px; }
    .guide-standfirst-sub { font-size: 15.5px; padding-inline-start: 18px; }
    .guide-toc { padding: 16px 18px; margin-bottom: 26px; }
    .guide-toc ul { gap: 6px 14px; }
    .guide-toc a { font-size: 14.5px; }
    .guide-steps li { padding-inline-start: 46px; }
    .guide-steps li::before { width: 32px; height: 32px; font-size: 15px; }
    .gs-title { font-size: 16.5px; }
    .gs-note { font-size: 15px; }
    .guide-qlist li { font-size: 16.5px; padding: 13px 16px; }
    .guide-aside { padding: 16px 18px; }
    .guide-aside li { font-size: 15px; }
    .swap-row { grid-template-columns: 1fr; }
    .swap-before { border-inline-end: 0; border-bottom: 1px solid var(--border); }
    .swap-head { display: none; }
    .swap-row > span { font-size: 15px; padding: 13px 15px; }
    .talk-filter { font-size: 13.5px; padding: 8px 14px; }
    .talkcard-face { padding: 18px 18px 20px; }
    .memory-board { grid-template-columns: repeat(3, 1fr); }
    .memory-board[data-cols="6"] { grid-template-columns: repeat(4, 1fr); }
    .memory-toolbar { gap: 10px; }
}

/* ============================================================
   צבעי המותג על הכרטיסים, וערכת ההדפסה של משחק הזיכרון
   ============================================================ */

/* ===== כרטיסי "כיתה א׳ בגאולים" — היו לבן ואפור בלבד ===== */
.alef-card {
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}
.alef-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 6px;
}
.alef-card:nth-child(1)::before { background: var(--navy); }
.alef-card:nth-child(2)::before { background: var(--blue-jlm); }
.alef-card:nth-child(3)::before { background: var(--olive); }

/* נקודת פסיפס קטנה מעל הכותרת, בצבע הכרטיס */
.alef-card h3::before {
    content: '';
    display: block;
    width: 44px;
    height: 8px;
    margin-bottom: 12px;
    background:
        radial-gradient(circle at 4px 4px, var(--navy) 3.5px, transparent 4px),
        radial-gradient(circle at 22px 4px, var(--olive) 3.5px, transparent 4px),
        radial-gradient(circle at 40px 4px, var(--stone) 3.5px, transparent 4px);
    background-repeat: no-repeat;
}

/* ===== כרטיסי המשחקים במרכז ===== */
.play-card {
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}
.play-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 6px;
}
.play-card:nth-child(1)::before { background: var(--stone); }
.play-card:nth-child(2)::before { background: var(--sky); }
.play-card:nth-child(3)::before { background: var(--olive); }

/* ============================================================
   ערכת ההדפסה של משחק הזיכרון
   על המסך מוסתרת לגמרי. מופיעה רק כשמדפיסים.
   ============================================================ */

.pm-cover {
    text-align: center;
    padding: 24mm 18mm 16mm;
    position: relative;
    page-break-after: always;
    break-after: page;
    min-height: 250mm;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pm-cover-arch { width: 86mm; height: auto; display: block; margin: 0 auto 10mm; }
.pm-cover-logo { width: 48mm; height: auto; display: block; margin: 0 auto 8mm; }
.pm-cover-title {
    font-family: 'Frank Ruhl Libre', 'Noto Serif Hebrew', serif;
    font-size: 30pt;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 0 4mm;
}
.pm-cover-sub {
    font-size: 13pt;
    font-weight: 700;
    color: #5C6A38;
    letter-spacing: .5px;
    margin: 0 0 8mm;
}
.pm-cover-rule {
    width: 60mm;
    height: 10px;
    margin: 0 auto 8mm;
    background:
        radial-gradient(circle at 5px 5px, var(--navy) 4.5px, transparent 5px),
        radial-gradient(circle at 30px 5px, var(--olive) 4.5px, transparent 5px),
        radial-gradient(circle at 55px 5px, var(--stone) 4.5px, transparent 5px),
        radial-gradient(circle at 80px 5px, var(--blue-jlm) 4.5px, transparent 5px),
        radial-gradient(circle at 105px 5px, var(--sky) 4.5px, transparent 5px);
    background-repeat: no-repeat;
}
.pm-cover-how {
    font-size: 11.5pt;
    line-height: 1.85;
    color: #3C4858;
    max-width: 140mm;
    margin: 0 auto;
}
.pm-cover-city { width: 100%; max-width: 150mm; height: auto; margin: auto auto 5mm; display: block; }
.pm-cover-foot { font-size: 9pt; color: #69707C; margin: 0; }

/* גיליון הקלפים */
.pm-sheet { page-break-before: always; break-before: page; }
.pm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5mm;
}
.pm-card {
    border: 1.2pt dashed rgba(18,63,105,.5);
    border-radius: 4mm;
    background: var(--cream);
    padding: 4mm 3mm 3mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2mm;
    page-break-inside: avoid;
    break-inside: avoid;
    position: relative;
}
/* פס צבע דק בראש כל קלף, כדי שהערכה תיראה שייכת למותג */
.pm-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2.4mm;
    border-radius: 4mm 4mm 0 0;
}
.pm-card:nth-child(6n+1)::before { background: var(--navy); }
.pm-card:nth-child(6n+2)::before { background: var(--navy); }
.pm-card:nth-child(6n+3)::before { background: var(--olive); }
.pm-card:nth-child(6n+4)::before { background: var(--olive); }
.pm-card:nth-child(6n+5)::before { background: var(--stone); }
.pm-card:nth-child(6n)::before   { background: var(--stone); }

.pm-card img { width: 100%; max-width: 42mm; height: auto; display: block; border-radius: 2mm; }
.pm-name {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 11pt;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
}

/* גיליון הגבים */
.pm-backs .pm-card {
    background:
        radial-gradient(circle at 50% 34%, rgba(255,255,255,.14) 0 10mm, transparent 10.5mm),
        var(--navy);
    justify-content: center;
    gap: 2mm;
    /* גובה הקלף נגזר מהתוכן. min-height קבוע דחק את השם אל מחוץ לקלף */
    min-height: 0;
    aspect-ratio: 3 / 4;
    padding: 6mm 3mm 5mm;
}
.pm-backs .pm-card::before { background: var(--stone); }
.pm-backs .pm-card img { max-width: 26mm; width: 70%; flex: none; }
/* השם על הגב חייב לנצח את .pm-name שצבעו כחול כהה על רקע כחול כהה */
.pm-backs .pm-card .pm-back-name { color: #fff; }
.pm-back-name {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 13pt;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}

@media print {
    .pm-grid { grid-template-columns: repeat(3, 1fr); }
    .pm-cover { min-height: auto; }
    /* הדפסת רקעים חייבת להיות מופעלת כדי שהגבים יצאו כחולים */
    .pm-backs .pm-card,
    .pm-card::before,
    .pm-cover-rule {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .alef-card, .play-card { padding-top: 26px; }
}

/* ===== יישור מקטע ההזמנה המסיים =====
   הטקסט נראה מרופט כי הפסקאות הוגבלו ל-720px בתוך מכולה רחבה,
   והשורה האחרונה נשברה לבד. יישור מפורש לימין בכל הרכיבים. */
.olim-invite { text-align: start; }
.olim-invite h2,
.olim-invite p,
.olim-invite .section-label { text-align: start; }
.olim-invite p {
    max-width: 68ch;
    margin-inline-end: auto;
    text-wrap: pretty;
}
.olim-invite-actions { justify-content: flex-start; }

/* ===== יישור משחק הזיכרון למרכז =====
   ללוח היה max-width בלי שוליים אוטומטיים, ולכן הוא נצמד לצד אחד.
   כאן מיושרים הלוח, סרגל הכלים והודעת הסיום לאותו מרכז. */
.memory-board { margin-inline: auto; }
.memory-toolbar {
    justify-content: center;
    max-width: 860px;
    margin-inline: auto;
}
.memory-done {
    max-width: 620px;
    margin-inline: auto;
    text-align: center;
}

/* ===== יישור קלפי השיחה למרכז ===== */
.talkcard { margin-inline: auto; }
.talk-filters {
    justify-content: center;
    max-width: 760px;
    margin-inline: auto;
}
/* גם רשימת חמש הפעולות, כדי שכל שלוש הפעילויות יישבו על אותו ציר */
.checklist { margin-inline: auto; }
