/* Long-form alphabet guides (blog/hebrew-alphabet-…, blog/german-alphabet-…). Builds on kids.css tokens. */
body.kids { font-size: 1.08rem; line-height: 1.75; }
.container { position: relative; z-index: 1; width: calc(100% - 32px); max-width: 880px; margin: 1.25rem auto 2rem;
    padding: clamp(1.1rem, 4vw, 2.2rem); background: #fff; border-radius: 28px; box-shadow: var(--k-shadow); }
.crumbs { font-size: .95rem; color: var(--k-ink-soft); }
.crumbs a { color: var(--k-ink-soft) !important; }
.container h1 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); line-height: 1.2; margin: .4rem 0 .6rem; }
.container h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.25; margin: 2rem 0 .6rem; border-left: 6px solid var(--k-orange); padding-left: .8rem; scroll-margin-top: 80px; }
.container h3 { font-size: clamp(1.15rem, 3.4vw, 1.35rem); line-height: 1.3; margin: 1.2rem 0 .3rem; color: #c94f2c; }
.container p, .container li { font-size: 1.08rem; }
.container ul, .container ol { padding-left: 1.4rem; }
.container li { margin: .25rem 0; }
.container a { color: #1f78c9; font-weight: 700; }
.meta { color: var(--k-ink-soft); font-size: .95rem; }

/* Quick answer box near the top (search intent) */
.answer { background: linear-gradient(135deg, #fff3c4, #ffe0ea); border-radius: 22px; padding: 1rem 1.2rem; margin: 1rem 0; }
.answer p { margin: .2rem 0; }
.hero-letters { font-size: clamp(1.8rem, 7vw, 2.8rem); letter-spacing: .15em; text-align: center; margin: .2rem 0 .6rem; color: var(--k-orange); font-weight: 700; line-height: 1.4; }

.toc { background: #f6f4ff; border-radius: 18px; padding: .8rem 1.2rem; margin: 1rem 0; }
.toc summary { font-weight: 800; cursor: pointer; }
.toc ol { margin: .5rem 0 0; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; font-size: 1rem; }

.tip { background: #eef7ff; border-radius: 18px; padding: .8rem 1rem; margin: 1rem 0; border-left: 6px solid var(--k-blue); }
.warn { background: #fff4ec; border-radius: 18px; padding: .8rem 1rem; margin: 1rem 0; border-left: 6px solid var(--k-orange); }

/* Letter cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin: 1rem 0; padding: 0; list-style: none; }
.cards > li { margin: 0; background: #fff8e6; border: 2px solid #ffe0b2; border-radius: 20px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .15rem; }
.cards .glyph { font-size: 3.2rem; line-height: 1.1; font-weight: 700; color: var(--k-orange); text-align: center; min-height: 3.6rem; }
.cards .name { text-align: center; font-weight: 800; font-size: 1.1rem; }
.cards .name small { display: block; font-weight: 600; color: var(--k-ink-soft); font-size: .88rem; }
.cards .snd { text-align: center; font-size: .98rem; }
.cards .ex { margin-top: .35rem; padding-top: .45rem; border-top: 2px dashed #ffd38a; font-size: .98rem; text-align: center; }
.cards .ex b { font-size: 1.35rem; }
.cards .ex i { color: var(--k-ink-soft); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.container table { border-collapse: separate; border-spacing: 0 4px; width: 100%; min-width: 520px; }
.container th { text-align: left; background: var(--k-orange); color: #fff; padding: .5rem .7rem; font-size: .98rem; }
.container th:first-child { border-radius: 12px 0 0 12px; } .container th:last-child { border-radius: 0 12px 12px 0; }
.container td { background: #fff8e6; padding: .45rem .7rem; vertical-align: middle; font-size: 1rem; }
.container td:first-child { border-radius: 12px 0 0 12px; } .container td:last-child { border-radius: 0 12px 12px 0; }
.container td.big { font-size: 1.8rem; font-weight: 700; color: var(--k-orange); text-align: center; line-height: 1.2; white-space: nowrap; }
/* Baloo 2 has no Hebrew glyphs: use fonts that ship with every OS and render niqqud well (no extra download) */
/* isolate: each Hebrew snippet keeps its own right-to-left order without flipping neighbouring English/punctuation */
[lang="he"] { font-family: 'Noto Sans Hebrew', 'Arial Hebrew', 'Segoe UI', Arial, 'David', 'Noto Sans', sans-serif; unicode-bidi: isolate; }
td[lang="he"] { unicode-bidi: normal; }
.ipa { font-family: 'Charis SIL', 'Doulos SIL', 'Gentium Plus', 'Noto Sans', 'Segoe UI', 'Lucida Sans Unicode', 'Arial Unicode MS', sans-serif; white-space: nowrap; }

/* Download box */
.download { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 1.2rem; align-items: center; background: #f0f6e8; border: 3px dashed #3ccf7a; border-radius: 24px; padding: 1.1rem; margin: 1.6rem 0; }
.download img { width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.download h2 { margin-top: 0; border: 0; padding: 0; }
.download .k-btn { color: #fff !important; margin: .4rem 0; }
.download .small { font-size: .92rem; color: var(--k-ink-soft); margin: .2rem 0; }
@media (max-width: 600px) { .download { grid-template-columns: 1fr; } }

/* Exercises */
.exercise { background: #fbf7ff; border-radius: 18px; padding: .7rem 1rem; margin: .8rem 0; }
.exercise h3 { margin-top: .2rem; }
.exercise details { margin-top: .4rem; }
.exercise .he-row { font-size: 1.6rem; text-align: center; margin: .2rem 0 .4rem; line-height: 1.6; unicode-bidi: normal; }
.exercise summary { cursor: pointer; font-weight: 800; color: var(--k-purple); }

/* Quiz */
.quiz { margin: 1rem 0; }
.quiz fieldset { border: 0; background: #fff8e6; border-radius: 18px; padding: .8rem 1rem; margin: .8rem 0; }
.quiz legend { font-weight: 800; padding: 0; float: left; width: 100%; margin-bottom: .4rem; }
.quiz legend + * { clear: both; }
.quiz label { display: flex; gap: .55rem; align-items: center; padding: .35rem .6rem; border-radius: 12px; cursor: pointer; margin: .2rem 0; background: #fff; border: 2px solid transparent; }
.quiz label:hover { border-color: #ffd38a; }
.quiz input[type=radio] { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; accent-color: var(--k-orange); }
.quiz .ok { border-color: #3ccf7a; background: #effcf3; }
.quiz .bad { border-color: #ff6b6b; background: #fff0f0; }
.quiz .why { margin: .4rem 0 0; font-size: 1rem; }
.quiz .why[hidden] { display: none; }
.quiz .score { font-weight: 800; font-size: 1.2rem; text-align: center; margin: .6rem 0; min-height: 1.8rem; }
.quiz-actions { text-align: center; }
.quiz-actions .k-btn { color: #fff !important; margin: .3rem; border: 0; cursor: pointer; font: inherit; font-weight: 800; }

/* Like this page box (assets/like.js) */
.like-box { background: #fff0f7; border: 3px solid #ffc2e2; border-radius: 24px; padding: 1rem 1.2rem; margin: 1.6rem 0; }
.like-box h2 { margin-top: 0; border: 0; padding: 0; }
.like-intro { margin: .2rem 0 .8rem; }
.like-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.like-form label { display: block; font-weight: 700; font-size: 1rem; }
.like-form input:not([type=checkbox]) { display: block; width: 100%; margin-top: .25rem; padding: .55rem .75rem; border: 2px solid #f4b8d6; border-radius: 12px; font: inherit; font-weight: 500; background: #fff; }
.like-form input:focus { border-color: var(--k-purple); outline: none; }
.like-consent { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 500 !important; margin: .8rem 0; font-size: .95rem !important; }
.like-consent input { width: 1.2rem; height: 1.2rem; margin-top: .3rem; flex: 0 0 auto; accent-color: var(--k-purple); }
.like-form .k-btn { color: #fff !important; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.like-form .k-btn:disabled { opacity: .6; cursor: wait; }
.like-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.like-msg { margin: .5rem 0 0; min-height: 1.5rem; font-weight: 700; }
.like-msg.err { color: #b4232a; }
.like-thanks { font-size: 1.2rem; font-weight: 800; margin: .3rem 0; }

.faq-item { background: #fff8e6; border-radius: 18px; padding: .6rem 1rem; margin: .7rem 0; }
.faq-item h3 { margin: .3rem 0; color: var(--k-ink); }
.cta { text-align: center; background: #f0f6e8; border-radius: 22px; padding: 1rem; margin: 1.5rem 0; }
.cta .k-btn { margin: .3rem; color: #fff !important; }
.refs li { font-size: 1rem; }
.related { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 .5rem; }
.related a { background: #f3f0ff; color: var(--k-ink) !important; padding: .45rem .9rem; border-radius: 999px; text-decoration: none; }

@media print {
    .k-topbar, .k-sky, .k-footer, .cta, .related, .toc, .quiz-actions, .download .k-btn { display: none !important; }
    .container { box-shadow: none; width: 100%; margin: 0; }
    .cards > li { break-inside: avoid; }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 20px); margin-top: .75rem; border-radius: 22px; }
    .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
}
