/* Sha'ar Network demo — palette drawn from Beit Sar Shalom (navy + gold) */
:root {
  --navy: #171748;
  --navy-2: #1f2160;
  --navy-3: #2b2e7a;
  --gold: #b7922b;
  --gold-2: #d4b25a;
  --gold-soft: #f3ead2;
  --sky: #2ea3f2;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #1b1c33;
  --muted: #5d6079;
  --line: #e6e2d6;
  --line-2: #efece4;
  --ok: #2f8f5b;
  --ok-soft: #e3f3ea;
  --warn: #b7791f;
  --warn-soft: #fbf0dc;
  --bad: #b23b3b;
  --bad-soft: #f8e4e4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23,23,72,.06), 0 6px 24px rgba(23,23,72,.07);
  --shadow-lg: 0 2px 6px rgba(23,23,72,.08), 0 18px 48px rgba(23,23,72,.14);
  --max: 1200px;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Raleway", system-ui, sans-serif;
  --heb: "Frank Ruhl Libre", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  font-feature-settings: "lnum" 1; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.heb { font-family: var(--heb); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-family: var(--head); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- demo ribbon + header ---------- */
.ribbon { background: var(--gold); color: var(--navy); font-family: var(--head); font-size: .78rem; font-weight: 500; text-align: center; padding: 6px 12px; }
.ribbon a { color: var(--navy); text-decoration: underline; }
header.site { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 38px; }
.brand-name { font-family: var(--head); font-weight: 600; font-size: 1.12rem; line-height: 1.05; }
.brand-name small { display: block; font-size: .64rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.navlinks { display: flex; gap: 4px; margin-left: 8px; }
.navlinks a { color: rgba(255,255,255,.82); font-family: var(--head); font-size: .9rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.navlinks a:hover { color: #fff; background: rgba(255,255,255,.07); }
.navlinks a.on { color: #fff; background: rgba(183,146,43,.22); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hsearch { position: relative; }
.hsearch input { width: 220px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 999px; padding: 8px 14px 8px 36px; font-size: .9rem; transition: width .2s, background .2s; }
.hsearch input::placeholder { color: rgba(255,255,255,.55); }
.hsearch input:focus { outline: none; width: 270px; background: rgba(255,255,255,.15); border-color: var(--gold-2); }
.hsearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.6); }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
.lang { color: rgba(255,255,255,.7); font-family: var(--head); font-size: .78rem; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; padding: 4px 7px; background: transparent; }
.lang option { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 500; font-size: .92rem; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s, color .15s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 2px 10px rgba(183,146,43,.35); }
.btn-gold:hover { background: #a6831f; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-soft); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; } .btn-ok:hover { background: #267a4c; color: #fff; }
.btn-bad { background: #fff; color: var(--bad); border-color: #e9c3c3; } .btn-bad:hover { background: var(--bad-soft); color: var(--bad); }
.btn-warn { background: #fff; color: var(--warn); border-color: #ecd6ac; } .btn-warn:hover { background: var(--warn-soft); color: var(--warn); }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(46,163,242,.18), transparent 60%), radial-gradient(900px 500px at 0% 120%, rgba(183,146,43,.22), transparent 60%), var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='72' viewBox='0 0 64 72'%3E%3Cpath d='M12 70V34a20 20 0 0 1 40 0v36' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='2'/%3E%3C/svg%3E"); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold-2); }
.hero .lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; }
.hero-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; max-width: 560px; margin: 28px 0 18px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; border: 0; padding: 12px 14px; font-size: 1rem; background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.7); align-items: center; }
.hero-quick a { color: #fff; border: 1px solid rgba(255,255,255,.22); padding: 4px 11px; border-radius: 999px; font-size: .8rem; }
.hero-quick a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.hero-art { position: relative; height: 420px; }
.arch-card { position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; width: 270px; }
.arch-card .row { display: flex; gap: 10px; align-items: center; }
.hero-arch { position: absolute; inset: 10px 40px 0 40px; border: 2px solid rgba(212,178,90,.55); border-bottom: 0; border-radius: 200px 200px 0 0; }
.hero-arch.two { inset: 46px 76px 0 76px; border-color: rgba(212,178,90,.25); }
.hero-heb { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-62%); font-family: var(--heb); font-size: 8.5rem; color: rgba(212,178,90,.18); font-weight: 700; line-height: 1; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--paper); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 620px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -44px; position: relative; z-index: 2; overflow: hidden; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--head); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .88rem; }

.countries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.country { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.country:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.country .flag { width: 38px; height: 26px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); margin-bottom: 12px; }
.country h3 { margin: 0 0 2px; font-size: 1.02rem; }
.country .muted { font-size: .82rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; right: 22px; font-family: var(--head); font-weight: 700; font-size: 2.6rem; color: var(--gold-soft); line-height: 1; }
.step .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 14px; }
.step .ic svg { width: 22px; height: 22px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23,23,72,.04); overflow: hidden; }
a.card { display: flex; flex-direction: column; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d9cfb3; color: var(--ink); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcover { height: 150px; position: relative; overflow: hidden; }
.pcover svg.art { width: 100%; height: 100%; display: block; }
.pcover .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard h3 { margin: 0; font-size: 1.08rem; }
.pcard .tagline { color: var(--muted); font-size: .92rem; margin: 0; }
.pcard .meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: auto; padding-top: 8px; }
.pcard .meta span { display: inline-flex; align-items: center; gap: 5px; }
.progress { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 99px; }
.progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 5px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--head); font-size: .72rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: var(--gold-soft); color: #7b6014; white-space: nowrap; }
.chip.navy { background: var(--navy); color: #fff; }
.chip.white { background: rgba(255,255,255,.92); color: var(--navy); }
.chip.line { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.sky { background: #e2f2fd; color: #1a6fa8; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.person { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.person-top { display: flex; gap: 14px; align-items: center; width: 100%; }
.person h3 { margin: 0; font-size: 1rem; }
.person .role { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.person .skills { display: flex; flex-wrap: wrap; gap: 5px; }
.person .foot { display: flex; justify-content: space-between; width: 100%; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: auto; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--head); font-weight: 600; font-size: 1.05rem; flex: none; position: relative; letter-spacing: .02em; }
.avatar.lg { width: 120px; height: 120px; font-size: 2.3rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar.sm { width: 36px; height: 36px; font-size: .78rem; }
.avatar.xs { width: 28px; height: 28px; font-size: .66rem; }
.avatar .vf { position: absolute; right: -2px; bottom: -2px; width: 19px; height: 19px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; display: grid; place-items: center; }
.avatar.lg .vf { width: 32px; height: 32px; right: 2px; bottom: 2px; border-width: 3px; }
.avatar .vf svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.5; }
.avatar.lg .vf svg { width: 16px; height: 16px; }
.stack { display: flex; }
.stack .avatar { border: 2px solid #fff; margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }
.cc { font-family: var(--head); font-size: .66rem; font-weight: 600; letter-spacing: .05em; padding: 1px 5px; border-radius: 4px; background: var(--navy); color: #fff; }

/* ---------- page heads ---------- */
.phead { background: var(--navy); color: #fff; padding: 44px 0 40px; position: relative; overflow: hidden; }
.phead::after { content: ""; position: absolute; right: -60px; top: -30px; width: 360px; height: 360px; border: 2px solid rgba(212,178,90,.25); border-radius: 50% 50% 0 0; border-bottom: 0; }
.phead h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.phead p { color: rgba(255,255,255,.78); max-width: 680px; margin: 0; }
.crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: var(--gold-2); }

/* ---------- directory/search ---------- */
.dir { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 72px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 88px; }
.filters h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.filters h4:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--navy); width: 16px; height: 16px; }
.check .n { margin-left: auto; color: var(--muted); font-size: .78rem; }
.searchbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.field-ic { position: relative; flex: 1; min-width: 220px; }
.field-ic svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field-ic input { width: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: .98rem; }
.field-ic input:focus, .input:focus, select.input:focus, textarea.input:focus { outline: 2px solid rgba(183,146,43,.35); border-color: var(--gold); }
.results-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { border: 0; cursor: pointer; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--gold); margin: 0 auto 10px; display: block; }
mark { background: #fbe7a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.filter-toggle { display: none; }

/* ---------- detail pages ---------- */
.detail { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 32px 0 80px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 1.25rem; }
.panel > h3 { font-size: 1rem; }
.side { position: sticky; top: 88px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.pbanner { height: 260px; position: relative; overflow: hidden; }
.pbanner svg.art { width: 100%; height: 100%; }
.pbanner .wrap { position: absolute; inset: auto 0 0 0; padding-bottom: 28px; }
.pbanner h1 { color: #fff; margin: 10px 0 6px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.pbanner p { color: rgba(255,255,255,.88); margin: 0; font-size: 1.05rem; }
.pbanner .crumbs { margin-bottom: 0; }
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.impact div { background: var(--cream); border-radius: var(--radius-sm); padding: 14px; }
.impact b { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--navy); }
.impact span { font-size: .8rem; color: var(--muted); }
.need { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-2); align-items: flex-start; }
.need:first-of-type { border-top: 0; padding-top: 4px; }
.need .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.need h4 { margin: 0 0 2px; font-size: .98rem; }
.need p { margin: 0; font-size: .9rem; color: var(--muted); }
.need .btn { margin-left: auto; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px 38px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tdot { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; }
.timeline li.done .tdot { background: var(--gold); border-color: var(--gold); }
.timeline li.done .tdot svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3.5; }
.timeline b { font-family: var(--head); font-weight: 500; font-size: .95rem; color: var(--navy); }
.timeline span { display: block; font-size: .8rem; color: var(--muted); }
.update { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.update:first-of-type { border-top: 0; padding-top: 0; }
.update p { margin: 3px 0 0; font-size: .93rem; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink); }
.team-row:first-of-type { border-top: 0; }
.team-row:hover { color: var(--ink); }
.team-row:hover b { color: var(--gold); }
.team-row b { display: block; font-family: var(--head); font-weight: 500; font-size: .93rem; color: var(--navy); }
.team-row span { font-size: .8rem; color: var(--muted); }
.big-num { font-family: var(--head); font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.1; }

/* profile */
.prof-head { background: linear-gradient(180deg, var(--navy) 0, var(--navy) 130px, transparent 130px); padding-top: 40px; }
.prof-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; gap: 26px; align-items: flex-end; flex-wrap: wrap; margin-top: 30px; }
.prof-card .who { flex: 1; min-width: 240px; }
.prof-card h1 { font-size: 1.9rem; margin: 0 0 4px; }
.prof-card .hebname { font-family: var(--heb); color: var(--gold); font-size: 1rem; margin-left: 6px; font-weight: 500; }
.prof-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.prof-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: 6px; }
.prof-meta span { display: inline-flex; gap: 5px; align-items: center; }
.skills-lg { display: flex; flex-wrap: wrap; gap: 8px; }
.skills-lg .chip { font-size: .8rem; padding: 6px 12px; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; font-family: var(--head); }
.avail.open { color: var(--ok); } .avail.limited { color: var(--warn); } .avail.no { color: var(--muted); }

/* ---------- forms ---------- */
.form-wrap { max-width: 860px; margin: 0 auto; padding: 36px 20px 80px; }
.stepper { display: flex; gap: 0; margin-bottom: 26px; counter-reset: st; }
.stepper div { flex: 1; text-align: center; font-family: var(--head); font-size: .8rem; color: var(--muted); position: relative; padding-top: 38px; }
.stepper div::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 600; color: var(--muted); z-index: 1; }
.stepper div::after { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper div:first-child::after { left: 50%; } .stepper div:last-child::after { right: 50%; }
.stepper div.on { color: var(--navy); font-weight: 600; }
.stepper div.on::before { border-color: var(--gold); background: var(--gold); color: #fff; }
.stepper div.done::before { border-color: var(--navy); background: var(--navy); color: #fff; content: "\2713"; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; font-family: var(--head); font-size: .84rem; font-weight: 500; color: var(--navy); }
label.f .hint { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: .8rem; }
.input { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--body); font-size: .95rem; color: var(--ink); }
textarea.input { min-height: 110px; resize: vertical; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: #fff; transition: all .12s; font-family: var(--body); font-weight: 500; color: var(--ink); }
.pick input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pick input:focus-visible + span { outline: 2px solid var(--gold); }
.form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.agree { display: flex; gap: 12px; padding: 14px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; align-items: flex-start; cursor: pointer; }
.agree input { margin-top: 4px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.err { color: var(--bad); font-size: .85rem; margin-top: 10px; }
.success { text-align: center; padding: 50px 30px; }
.success .ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; }
.success .ic svg { width: 34px; height: 34px; stroke-width: 2.5; }
.join-aside { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.join-aside div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .86rem; color: var(--muted); }
.join-aside b { display: block; color: var(--navy); font-family: var(--head); font-weight: 600; font-size: .92rem; margin-bottom: 2px; }

/* ---------- admin ---------- */
.admin-bar { background: #0f0f33; color: rgba(255,255,255,.75); font-size: .82rem; }
.admin-bar .wrap { display: flex; gap: 14px; align-items: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.kpi span { color: var(--muted); font-size: .84rem; }
.kpi b { display: block; font-family: var(--head); font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.kpi.hot { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fff); }
.kpi.hot b { color: var(--gold); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-family: var(--head); font-size: .9rem; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }
.tabs .count { background: var(--gold); color: #fff; font-size: .7rem; border-radius: 99px; padding: 1px 7px; }
.tabs .count.z { background: var(--line); color: var(--muted); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.review-top { display: flex; gap: 16px; padding: 18px 20px; align-items: flex-start; cursor: pointer; }
.review-top:hover { background: #fdfcf8; }
.review-top h3 { margin: 0 0 4px; font-size: 1.05rem; }
.review-top .sub { font-size: .84rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.review-top .right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.review-body { border-top: 1px solid var(--line-2); padding: 20px; display: grid; grid-template-columns: 1fr 300px; gap: 24px; background: #fdfcf9; }
.score { display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 110px 1fr 22px; gap: 10px; align-items: center; font-size: .85rem; }
.score-row .bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.score-row .bar i { display: block; height: 100%; background: var(--navy); }
.score-ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.flag-item { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--warn); background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; margin-bottom: 6px; }
.decide { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .88rem; align-items: flex-start; }
.log li:first-child { border-top: 0; }
.log time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-family: var(--head); font-weight: 500; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:hover td { background: #fdfcf8; }
.t-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }

/* ---------- academy ---------- */
.track { display: grid; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.track-side { background: var(--navy); color: #fff; padding: 28px; position: relative; overflow: hidden; }
.track-side::after { content: ""; position: absolute; right: -50px; bottom: -80px; width: 220px; height: 260px; border: 2px solid rgba(212,178,90,.3); border-radius: 120px 120px 0 0; }
.track-side h2 { color: #fff; font-size: 1.45rem; margin: 12px 0 8px; }
.track-side p { color: rgba(255,255,255,.75); font-size: .92rem; }
.track-side .ic { width: 50px; height: 50px; border-radius: 14px; background: rgba(212,178,90,.18); color: var(--gold-2); display: grid; place-items: center; }
.track-side .ic svg { width: 26px; height: 26px; }
.track-prog { margin-top: 18px; position: relative; z-index: 1; }
.track-prog .progress { background: rgba(255,255,255,.14); }
.track-prog .progress-label { color: rgba(255,255,255,.7); }
.modlist { list-style: none; margin: 0; padding: 8px 0; }
.modlist a { display: flex; align-items: center; gap: 16px; padding: 14px 24px; color: var(--ink); border-top: 1px solid var(--line-2); }
.modlist li:first-child a { border-top: 0; }
.modlist a:hover { background: var(--cream); color: var(--ink); }
.modlist a:hover h4 { color: var(--gold); }
.modlist .num { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--muted); flex: none; }
.modlist .num.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.modlist .num.done svg { width: 15px; height: 15px; stroke-width: 3; }
.modlist h4 { margin: 0; font-size: .98rem; font-weight: 500; }
.modlist p { margin: 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.modlist .dur { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.lesson { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 36px 0 80px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: .88rem; }
.toc h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0 0 22px; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 12px; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover { color: var(--navy); }
.toc li a.cur { color: var(--navy); border-left-color: var(--gold); font-weight: 600; }
.toc li a.cur-mod { color: var(--navy); font-weight: 600; border-left-color: var(--gold); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose p, .prose li { font-size: 1.04rem; line-height: 1.75; color: #2a2b45; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.verse { border-left: 3px solid var(--gold); background: #fff; padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 0 0 28px; font-family: var(--heb); font-size: 1.12rem; color: var(--navy); line-height: 1.6; }
.verse cite { display: block; font-family: var(--head); font-style: normal; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-top: 8px; }
.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin: 30px 0; }
.callout h3 { color: var(--gold-2); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.callout ul { margin: 0; padding-left: 1.1em; }
.callout li { color: rgba(255,255,255,.9); font-size: .98rem; }
.todo { list-style: none; padding: 0; margin: 0; }
.todo label { display: flex; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-size: .97rem; align-items: flex-start; }
.todo input { margin-top: 5px; accent-color: var(--ok); width: 17px; height: 17px; flex: none; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.worksheet { background: #fff; border: 2px dashed #dccb9a; border-radius: var(--radius); padding: 22px; margin: 30px 0; }
.worksheet h3 { display: flex; gap: 8px; align-items: center; }
.worksheet label.f { margin-bottom: 12px; }
.mod-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.mod-nav a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; color: var(--ink); }
.mod-nav a:hover { border-color: var(--gold); color: var(--ink); }
.mod-nav a span { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-family: var(--head); }
.mod-nav a b { font-family: var(--head); font-weight: 500; color: var(--navy); font-size: .95rem; }
.mod-nav a.next { text-align: right; }
.complete-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--gold-soft); border: 1px solid #e6d6a8; border-radius: var(--radius); padding: 16px 20px; margin-top: 34px; flex-wrap: wrap; }
.academy-hero-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- search page ---------- */
.sgroup { margin-bottom: 34px; }
.sgroup h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.srow { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; color: var(--ink); }
.srow:hover { border-color: var(--gold); color: var(--ink); }
.srow b { font-family: var(--head); font-weight: 500; color: var(--navy); display: block; }
.srow span { font-size: .85rem; color: var(--muted); }
.srow .mini-ic { width: 44px; height: 44px; border-radius: 10px; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }

/* ---------- footer, toast, modal ---------- */
footer.site { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 30px; font-size: .9rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,.7); display: block; padding: 3px 0; }
footer a:hover { color: var(--gold-2); }
.partner-logo { background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-top: 14px; }
.partner-logo img { height: 34px; width: auto; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; opacity: 0; transition: all .25s; z-index: 100; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--gold-2); }
.modal-bg { position: fixed; inset: 0; background: rgba(15,15,51,.55); display: grid; place-items: center; z-index: 90; padding: 16px; backdrop-filter: blur(3px); }
.modal { background: #fff; border-radius: 18px; padding: 28px; width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow: auto; }
.modal h3 { font-size: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .navlinks a { padding: 8px 9px; font-size: .86rem; }
  .hsearch input { width: 160px; } .hsearch input:focus { width: 200px; }
  .g4 { grid-template-columns: repeat(3, 1fr); }
  .countries { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  .menu-btn { display: block; }
  .navlinks { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 10px 16px 18px; margin: 0; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 12px; font-size: 1rem; }
  .hsearch, .lang { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .g3, .g4, .steps { grid-template-columns: repeat(2, 1fr); }
  .dir, .detail, .lesson { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .side { position: static; }
  .toc { position: static; display: none; }
  .track { grid-template-columns: 1fr; }
  .review-body { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  section.block { padding: 52px 0; }
  .g3, .g4, .g2, .steps, .countries, .form-grid, .join-aside { grid-template-columns: 1fr; }
  .countries { grid-template-columns: 1fr 1fr; }
  .impact { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .impact b { font-size: 1.15rem; }
  .stepper div { font-size: 0; }
  .need { flex-wrap: wrap; }
  .need .btn { margin-left: 52px; }
  .review-top { flex-wrap: wrap; }
  .review-top .right { margin-left: 0; flex-direction: row; align-items: center; }
  .modlist .dur { display: none; }
  .modlist a { padding: 14px 16px; }
  .pbanner { height: 300px; }
  footer .cols { grid-template-columns: 1fr; }
  .mod-nav { flex-direction: column; }
  .brand-name small { display: none; }
}
@media print {
  header.site, footer.site, .ribbon, .toc, .mod-nav, .complete-bar, .admin-bar { display: none !important; }
  .lesson { display: block; }
  body { background: #fff; }
}
.avatar.sm .vf, .avatar.xs .vf { display: none; }
@media (max-width: 600px) { .phead::after { display: none; } }
