/* Learn pages: calm, readable articles that match the app. */
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --surface-2: #EFECE5; --ink: #17181C; --muted: #6B6A70; --line: #E4E0D7;
  --accent: #B8650F; --accent-soft: #F7E9D4; --focus: #3659D8; --night: #0E1330; --night-2: #1A2152;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-he: "Noto Sans Hebrew", "Arial Hebrew", "David", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0C0D12; --surface: #16171E; --surface-2: #1E2029; --ink: #F1EFEA; --muted: #9A99A3; --line: #262833; --accent: #F0A94B; --accent-soft: #2A2116; --focus: #8FA5FF; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 24px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 650; letter-spacing: -.02em; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
.top nav { display: flex; align-items: center; gap: 16px; font-size: .95rem; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a.cta { color: #fff; background: var(--night); padding: 8px 14px; border-radius: 999px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 20px 24px 56px; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
h1 { font-size: clamp(2rem, 7vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 6px 0 14px; text-wrap: balance; }
h2 { font-size: 1.4rem; letter-spacing: -.02em; font-weight: 650; margin: 40px 0 10px; line-height: 1.25; }
p { margin: 0 0 16px; }
.lede { font-size: 1.2rem; color: var(--ink); opacity: .85; line-height: 1.55; }
.meta { font-size: .85rem; color: var(--muted); }
ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }
.cols { columns: 2; column-gap: 28px; }
@media (max-width: 520px) { .cols { columns: 1; } }

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 58px; background: var(--surface); border-radius: 16px; margin-bottom: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; display: grid; place-items: center; }

.note { background: var(--accent-soft); border-radius: 16px; padding: 14px 18px; font-size: .96rem; }

.bless { background: var(--surface); border-radius: 18px; padding: 18px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(20,18,12,.04), 0 8px 24px rgba(20,18,12,.05); }
.b-label { display: block; font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.b-he { font-family: var(--font-he); font-size: 1.4rem; line-height: 1.8; margin: 0 0 10px; text-align: right; }
.b-tr { font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
.b-en { color: var(--muted); font-size: .95rem; margin: 0; }

.words { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; background: var(--surface); border-radius: 18px; padding: 16px 18px; margin: 0 0 16px; }
.words dt { font-weight: 600; }
.words dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .words { grid-template-columns: 1fr; } .words dd { margin-bottom: 8px; } }

.near { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 8px; padding: 16px 18px; border-radius: 18px;
  color: #FBF8F2; background: linear-gradient(135deg, var(--night), var(--night-2) 60%, #3B2A48); }
.near div { display: flex; flex-direction: column; line-height: 1.3; }
.near-k { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.near b { white-space: nowrap; font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.near-s { font-size: .9rem; opacity: .8; }
.near-go { flex: none; color: #FBF8F2; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; }

.faq details { background: var(--surface); border-radius: 14px; padding: 14px 18px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.sources { font-size: .95rem; }

.related { margin-top: 44px; display: grid; gap: 8px; }
.related h2 { margin-top: 0; }
.rel { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; font-weight: 550; }
.rel i { font-style: normal; color: var(--accent); }

.cards { display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: 18px; padding: 18px; color: var(--ink); text-decoration: none; }
.card b { font-size: 1.1rem; letter-spacing: -.02em; }
.card span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card:hover, .rel:hover { outline: 1px solid var(--line); }

.foot { max-width: 720px; margin: 0 auto; padding: 24px 24px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* City index */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin-bottom: 8px; }
.city-grid a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .96rem; }
.city-grid a span { color: var(--muted); font-size: .8rem; }
.city-grid a:hover { color: var(--accent); }
