/* נטו אתיקה — design system */
:root{
  --navy: #1c2a44;
  --navy-2: #263a5c;
  --navy-soft: #eef1f6;
  --gold: #b8944f;
  --gold-light: #e4cf9f;
  --cream: #faf6ec;
  --cream-2: #f1e9d6;
  --ink: #22262c;
  --muted: #6b7280;
  --line: #e6ddc8;
  --white: #ffffff;
  --ok: #1f9d55;
  --ok-bg: #e7f7ee;
  --bad: #d64545;
  --bad-bg: #fdecec;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(28,42,68,.08);
  --shadow-lg: 0 18px 44px rgba(28,42,68,.14);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Heebo',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.65;
}
img{max-width:100%; display:block}
a{color:inherit}
h1,h2,h3,h4{font-family:'Heebo',sans-serif; line-height:1.3; margin:0 0 .5em}
p{margin:0 0 1em}
ul{margin:0 0 1em; padding-inline-start:1.3em}
.container{max-width:1100px; margin:0 auto; padding:0 20px}

/* ===== header / nav ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,236,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  max-width:1100px; margin:0 auto; padding:0 20px;
  min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0}
.brand-mark{
  width:46px; height:46px; border-radius:50%; overflow:hidden;
  border:2px solid var(--gold); flex-shrink:0; background:var(--cream-2);
}
.brand-mark img{width:100%; height:100%; object-fit:cover; transform:scale(1.5) translateY(4%)}
.brand-text{display:flex; flex-direction:column; line-height:1.15}
.brand-text b{font-size:1.15rem; color:var(--navy); font-weight:800; letter-spacing:.2px}
.brand-text span{font-size:.68rem; color:var(--muted)}
.main-nav{display:flex; align-items:center; gap:4px; flex-wrap:wrap}
.main-nav a, .main-nav .nav-install-btn{
  padding:9px 14px; border-radius:10px; text-decoration:none;
  color:var(--navy); font-weight:600; font-size:.94rem; transition:background .15s, color .15s;
  white-space:nowrap;
}
.main-nav a:hover, .main-nav .nav-install-btn:hover{background:var(--navy-soft)}
.main-nav a.active{background:var(--navy); color:#fff}
.nav-install-btn{background:transparent; border:none; font-family:inherit; cursor:pointer}
.nav-ai{display:flex; align-items:center; gap:6px}
.nav-ai-logo{width:20px; height:20px; border-radius:50%; flex-shrink:0}
.nav-toggle{display:none}

/* ===== buttons ===== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:12px; font-weight:700; font-size:.98rem;
  font-family:inherit; line-height:1.3;
  border:2px solid transparent; cursor:pointer; text-decoration:none; transition:transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--navy); color:#fff; box-shadow:var(--shadow)}
.btn-primary:hover{background:var(--navy-2); box-shadow:var(--shadow-lg)}
.btn-gold{background:var(--gold); color:#fff; box-shadow:var(--shadow)}
.btn-gold:hover{background:#a5813f; box-shadow:var(--shadow-lg)}
.btn-outline{background:transparent; border-color:var(--navy); color:var(--navy)}
.btn-outline:hover{background:var(--navy); color:#fff}
.btn-ghost{background:var(--white); border-color:var(--line); color:var(--navy)}
.btn-ghost:hover{border-color:var(--gold)}
.btn-sm{padding:8px 14px; font-size:.85rem; border-radius:9px}
.btn-block{width:100%}
.btn[disabled]{opacity:.45; cursor:not-allowed}

/* ===== hero ===== */
.hero{
  padding:56px 0 40px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(184,148,79,.14), transparent 60%),
    radial-gradient(50rem 30rem at 10% 0%, rgba(28,42,68,.08), transparent 60%);
}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:40px; align-items:center}
.hero h1{font-size:2.5rem; font-weight:900; color:var(--navy)}
.hero h1 em{font-style:normal; color:var(--gold)}
.hero p.lead{font-size:1.12rem; color:var(--muted); max-width:52ch}
.hero-actions{display:flex; gap:12px; margin-top:22px; flex-wrap:wrap}
.hero-art{
  display:flex; justify-content:center; align-items:center;
}
.hero-art img{
  width:100%; max-width:510px; border-radius:28px; border:1px solid var(--line);
  box-shadow:var(--shadow-lg); background:var(--white);
}
.hero-stats{display:flex; gap:26px; margin-top:30px; flex-wrap:wrap}
.hero-stats .stat b{display:block; font-size:1.6rem; color:var(--navy); font-weight:900}
.hero-stats .stat span{font-size:.82rem; color:var(--muted)}

/* ===== sections ===== */
section{padding:44px 0}
.section-head{text-align:center; max-width:640px; margin:0 auto 34px}
.section-head .eyebrow{
  display:inline-block; font-size:.78rem; font-weight:800; letter-spacing:.06em;
  color:var(--gold); text-transform:uppercase; margin-bottom:8px;
}
.section-head h2{font-size:1.9rem; color:var(--navy); font-weight:900}
.section-head p{color:var(--muted); margin-top:8px}

/* ===== cards ===== */
.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow); transition:transform .18s, box-shadow .18s;
  height:100%; box-sizing:border-box;
}
.card-link{text-decoration:none; color:inherit; display:block; height:100%}
.card-link:hover .card, .card:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg)}
.grid{display:grid; gap:20px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.icon-badge{
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--navy),var(--navy-2)); color:var(--gold-light); font-size:1.5rem; margin-bottom:14px;
}
.card h3{color:var(--navy); font-size:1.18rem}
.card p{color:var(--muted); font-size:.94rem; margin-bottom:0}
.tag{
  display:inline-block; font-size:.72rem; font-weight:700; padding:3px 10px; border-radius:999px;
  background:var(--cream-2); color:var(--navy); margin:2px 4px 2px 0;
}
.tag.gold{background:var(--gold-light); color:#5c4520}

/* ===== footer ===== */
.site-footer{background:var(--navy); color:#cdd6e6; padding:36px 0 22px; margin-top:60px}
.site-footer .container{display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px}
.site-footer b{color:#fff}
.footer-note{font-size:.8rem; color:#93a1bd; margin-top:18px; text-align:center}
.footer-legal-links{font-size:.8rem; color:#93a1bd; margin-top:10px; text-align:center}
.footer-legal-links a{color:#a9b4cc; text-decoration:underline}
.footer-legal-links a:hover{color:#fff}

/* ===== terms acceptance modal (first visit to lomda/practice/exams) ===== */
.terms-modal-overlay{
  position:fixed; inset:0; background:rgba(28,42,68,.78); z-index:999;
  display:flex; align-items:center; justify-content:center; padding:20px;
}
.terms-modal{
  background:var(--white); border-radius:var(--radius); padding:32px; max-width:520px; width:100%;
  box-shadow:var(--shadow-lg); text-align:center;
}
.terms-modal h2{color:var(--navy); font-size:1.3rem; margin-bottom:14px}
.terms-modal p{font-size:.9rem; color:#3a3f47; line-height:1.8; margin-bottom:22px; text-align:right}
.terms-modal a{color:var(--navy); text-decoration:underline; font-weight:700}
.footer-cols{display:flex; gap:60px; flex-wrap:wrap}
.footer-cols h4{color:#fff; font-size:.9rem; margin-bottom:10px}
.footer-cols a{display:block; color:#a9b4cc; text-decoration:none; font-size:.88rem; margin-bottom:6px}
.footer-cols a:hover{color:#fff}

/* ===== breadcrumb / page header ===== */
.page-head{background:var(--navy); color:#fff; padding:38px 0 30px}
.page-head h1{font-size:1.9rem; font-weight:900}
.page-head p{color:#b9c3da; margin:0; max-width:60ch}
.crumbs{font-size:.82rem; color:var(--gold-light); margin-bottom:10px}
.crumbs a{color:var(--gold-light); text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* ===== lomda (topics) ===== */
.topic-nav{
  display:flex; gap:8px; overflow-x:auto; padding:18px 0; margin-bottom:10px;
  border-bottom:1px solid var(--line); position:sticky; top:72px; background:var(--cream); z-index:20;
}
.topic-nav a{
  flex-shrink:0; padding:9px 16px; border-radius:999px; background:var(--white); border:1px solid var(--line);
  text-decoration:none; color:var(--navy); font-size:.88rem; font-weight:700; transition:all .15s;
}
.topic-nav a:hover, .topic-nav a.active{background:var(--navy); color:#fff; border-color:var(--navy)}
.law-group{padding-top:8px; scroll-margin-top:150px}
.topic-body h3, .topic-body h4{scroll-margin-top:150px}
.law-cta{
  background:linear-gradient(135deg, var(--cream-2) 0%, var(--white) 100%); border:2px dashed var(--gold);
  border-radius:var(--radius); padding:34px; text-align:center; margin:40px 0 10px;
}
.law-cta h3{color:var(--navy); font-size:1.3rem; margin-bottom:8px}
.law-cta p{color:var(--muted); max-width:60ch; margin:0 auto 18px}
.law-group + .law-group{border-top:3px solid var(--navy); margin-top:8px}
.law-group-head{
  display:flex; align-items:flex-start; gap:16px; padding:30px 0 6px;
}
.law-group-head .law-index{
  flex-shrink:0; width:44px; height:44px; border-radius:50%; background:var(--navy); color:var(--gold-light);
  font-weight:900; font-size:1.05rem; display:flex; align-items:center; justify-content:center;
}
.law-group-head h2{color:var(--navy); font-size:1.35rem; font-weight:900; margin-bottom:4px}
.law-group-head p{color:var(--muted); font-size:.92rem; margin-bottom:6px; max-width:70ch}
.law-links{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px}
.law-links a{
  display:inline-flex; align-items:center; gap:5px; font-size:.78rem; font-weight:700; color:var(--navy);
  background:var(--cream-2); border:1px solid var(--line); border-radius:999px; padding:5px 12px;
  text-decoration:none; transition:background .15s, border-color .15s;
}
.law-links a:hover{background:var(--gold-light); border-color:var(--gold)}
.topic-block{padding:30px 0 36px; border-bottom:1px dashed var(--line)}
.topic-block:last-child{border-bottom:none}

/* ===== חלון לומדה לפי חוק בודד (lomda.html?law=) — ניווט בין תתי-נושאים ===== */
.law-window{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:26px; margin-top:10px}
.law-window-progress{display:flex; align-items:center; gap:12px; margin-bottom:20px}
.law-window-progress .muted{color:var(--muted); font-size:.9rem; white-space:nowrap}
.law-window-progress b{color:var(--navy)}
.law-window-inner{display:flex; gap:28px; align-items:flex-start}
.law-window-sidebar{
  flex:0 0 230px; display:flex; flex-direction:column; gap:6px; position:sticky; top:150px;
  max-height:calc(100vh - 180px); overflow-y:auto; padding-left:4px;
}
.lw-toc-item{
  display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; border:1.5px solid transparent;
  background:transparent; cursor:pointer; text-align:right; font-size:.85rem; color:var(--muted); transition:background .15s, color .15s;
}
.lw-toc-item:hover{background:var(--cream-2); color:var(--navy)}
.lw-toc-item.active{background:var(--navy-soft); border-color:var(--navy); color:var(--navy); font-weight:700}
.lw-toc-num{
  flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--cream-2); color:var(--navy);
  font-weight:800; font-size:.72rem; display:flex; align-items:center; justify-content:center;
}
.lw-toc-item.active .lw-toc-num{background:var(--navy); color:#fff}
.lw-group{display:flex; flex-direction:column}
.lw-toc-item.lw-main{font-weight:800; font-size:.87rem}
.lw-substeps{
  display:none; flex-direction:column; gap:1px; margin:2px 8px 10px 4px; padding-right:12px;
  border-right:2px solid var(--line);
}
.lw-group.active .lw-substeps{display:flex}
.lw-step-item{
  background:transparent; border:none; text-align:right; padding:6px 10px; border-radius:7px; cursor:pointer;
  font-size:.78rem; line-height:1.35; color:var(--muted); transition:background .15s, color .15s;
}
.lw-step-item:hover{background:var(--cream-2); color:var(--navy)}
.lw-step-item.active{color:var(--navy); font-weight:700; background:var(--navy-soft)}
.law-window-content{flex:1; min-width:0}
.law-window-content .topic-block{padding:0; border-bottom:none}
.law-window-content .topic-body h3{scroll-margin-top:150px; border-radius:8px; transition:outline .2s}
.law-window-content .topic-body h3.lw-step-highlight{outline:3px solid var(--gold); outline-offset:4px}
.law-window-actions{display:flex; justify-content:flex-start; gap:12px; margin-top:22px; padding-top:20px; border-top:1px solid var(--line)}
.lw-back-hub{align-self:flex-start; margin-bottom:10px; white-space:nowrap}
.topic-nav-group{display:flex; align-items:center; gap:6px; flex-shrink:0}
.topic-nav-group .law-label{font-size:.72rem; font-weight:800; color:var(--muted); padding:0 4px; white-space:nowrap}
.topic-nav-sep{flex-shrink:0; width:1px; align-self:stretch; background:var(--line); margin:6px 4px}
.topic-block h2{color:var(--navy); font-size:1.55rem; display:flex; align-items:center; gap:12px}
.topic-block h2 .num{
  width:38px; height:38px; border-radius:11px; background:var(--gold); color:#fff; font-size:1rem;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.topic-body{max-width:850px}
.topic-body h3{color:var(--navy-2); font-size:1.1rem; margin-top:1.4em; display:flex; align-items:center; gap:10px}
.topic-body h3 .step-num{
  min-width:28px; height:28px; padding:0 8px; border-radius:8px; background:var(--navy); color:#fff; font-size:.8rem; font-weight:800;
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; white-space:nowrap;
}
.topic-body h4{color:var(--navy); font-size:.98rem; margin-top:1.1em}
.topic-body .basics{
  background:var(--white); border:1.5px dashed var(--gold); border-radius:10px;
  padding:14px 18px; margin:12px 0 18px; font-size:.92rem;
}
.topic-body .basics b{color:var(--navy)}
.topic-body .basics .basics-label{display:block; font-weight:800; color:#8a6d1f; font-size:.78rem; letter-spacing:.02em; margin-bottom:6px}
.law-ref{
  background:var(--cream-2); border-right:4px solid var(--gold); border-radius:8px;
  padding:12px 16px; font-size:.88rem; color:#5a4a2a; margin:14px 0;
}
.callout{
  background:var(--navy-soft); border-right:4px solid var(--navy); border-radius:8px;
  padding:14px 16px; margin:14px 0; font-size:.94rem;
}
.callout.warn{background:var(--bad-bg); border-color:var(--bad)}
.promo-banner{
  background:var(--gold); color:#fff; text-align:center;
  font-size:.92rem; font-weight:600; padding:10px 16px;
}
.promo-banner b{color:var(--navy)}
.install-banner{
  display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px;
  background:var(--navy); color:#fff; text-align:center;
  font-size:.92rem; font-weight:600; padding:10px 16px;
}
.install-banner-close{
  background:transparent; border:none; color:#fff; font-size:1.4rem; line-height:1;
  cursor:pointer; padding:0 4px; opacity:.75;
}
.install-banner-close:hover{opacity:1}
.mini-quiz-link{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:20px;
  background:var(--white); border:1px solid var(--line); border-radius:12px; padding:14px 18px;
}
.mini-quiz-link span{font-weight:700; color:var(--navy)}

/* ===== quiz engine ===== */
.quiz-shell{max-width:800px; margin:0 auto}
.quiz-meta{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; flex-wrap:wrap}
.quiz-meta .muted{color:var(--muted); font-size:.9rem}
.progress-bar{height:8px; background:var(--cream-2); border-radius:999px; overflow:hidden; flex:1; min-width:120px}
.progress-bar > i{display:block; height:100%; background:linear-gradient(90deg,var(--gold),var(--navy)); transition:width .3s}
.timer{
  font-variant-numeric:tabular-nums; font-weight:800; color:var(--navy); background:var(--white);
  border:1px solid var(--line); border-radius:10px; padding:6px 12px; font-size:.92rem;
}
.timer.timer-warn{color:#fff; background:var(--bad); border-color:var(--bad); animation:timer-pulse 1s infinite}
@keyframes timer-pulse{50%{opacity:.7}}
.q-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow)}
.q-scenario{
  background:var(--cream-2); border-radius:10px; padding:14px 16px; margin-bottom:16px; font-size:.94rem; color:#463c26;
  white-space:pre-line;
}
.q-text{font-size:1.08rem; font-weight:700; color:var(--navy); margin-bottom:18px; white-space:pre-line}
.q-options{display:flex; flex-direction:column; gap:10px}
.q-option{
  display:flex; align-items:flex-start; gap:12px; padding:13px 16px; border-radius:12px;
  border:2px solid var(--line); cursor:pointer; transition:border-color .15s, background .15s;
  background:var(--white); text-align:right;
}
.q-option:hover{border-color:var(--gold)}
.q-option .letter{
  flex-shrink:0; width:28px; height:28px; border-radius:50%; background:var(--cream-2); color:var(--navy);
  font-weight:800; font-size:.85rem; display:flex; align-items:center; justify-content:center;
}
.q-option .opt-text{white-space:pre-line}
.q-option.selected{border-color:var(--navy); background:var(--navy-soft)}
.q-option.selected .letter{background:var(--navy); color:#fff}
.q-option.correct{border-color:var(--ok); background:var(--ok-bg)}
.q-option.correct .letter{background:var(--ok); color:#fff}
.q-option.incorrect{border-color:var(--bad); background:var(--bad-bg)}
.q-option.incorrect .letter{background:var(--bad); color:#fff}
.q-option.disabled{cursor:default}
.q-option.tried:not(.disabled){cursor:not-allowed; opacity:.75}
.q-explain{
  margin-top:18px; padding:14px 16px; border-radius:10px; background:var(--navy-soft); font-size:.92rem;
  display:none; white-space:pre-line;
}
.q-explain.show{display:block}
.q-explain.retry{background:var(--bad-bg)}
.q-explain.voided-note{background:var(--gold-light); color:#5c4520}
.q-explain.voided-note b{color:#5c4520}
.q-explain b{color:var(--navy)}
.q-explain.retry b{color:var(--bad)}
.q-actions{display:flex; justify-content:space-between; margin-top:22px; gap:10px; flex-wrap:wrap}

.result-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:40px; text-align:center; box-shadow:var(--shadow-lg)}
.result-score{font-size:3.2rem; font-weight:900; color:var(--navy)}
.result-score span{font-size:1.4rem; color:var(--muted); font-weight:700}
.result-ring{width:150px; height:150px; margin:0 auto 18px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:conic-gradient(var(--gold) calc(var(--pct,0)*1%), var(--cream-2) 0)}
.result-ring i{width:120px; height:120px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; flex-direction:column}
.review-list{display:flex; flex-direction:column; gap:14px; margin-top:26px; text-align:right}
.review-item{border:1px solid var(--line); border-radius:12px; padding:14px 18px; background:var(--white)}
.review-item.wrong{border-color:var(--bad)}
.review-item.voided{border-color:var(--gold)}
.review-item .rq{font-weight:700; color:var(--navy); margin-bottom:10px}
.review-options{display:flex; flex-direction:column; gap:8px; margin-bottom:10px}
.review-option{
  display:flex; align-items:flex-start; gap:12px; padding:10px 14px; border-radius:10px;
  border:2px solid var(--line); background:var(--white); text-align:right; font-size:.9rem;
}
.review-option .letter{
  flex-shrink:0; width:24px; height:24px; border-radius:50%; background:var(--cream-2); color:var(--navy);
  font-weight:800; font-size:.8rem; display:flex; align-items:center; justify-content:center;
}
.review-option .opt-text{white-space:pre-line}
.review-option.correct{border-color:var(--ok); background:var(--ok-bg)}
.review-option.correct .letter{background:var(--ok); color:#fff}
.review-option.given-wrong{border-color:var(--bad); background:var(--bad-bg)}
.review-option.given-wrong .letter{background:var(--bad); color:#fff}
.review-item .ra{font-size:.88rem; color:var(--muted)}
.review-item .ra b.ok{color:var(--ok)}
.review-item .ra b.bad{color:var(--bad)}
.review-item.highlight{outline:3px solid var(--gold); outline-offset:2px}
.review-summary{
  display:flex; flex-wrap:wrap; justify-content:center; gap:8px;
  margin-top:24px; padding-top:20px; border-top:1px solid var(--line); text-align:center;
}
.review-summary p{width:100%}
.review-num{
  width:36px; height:36px; border-radius:50%; border:none; cursor:pointer;
  font-weight:700; font-size:.88rem; color:#fff; transition:transform .1s;
}
.review-num:hover{transform:scale(1.1)}
.review-num.ok{background:var(--ok)}
.review-num.voided{background:var(--gold)}
.review-num.bad{background:var(--bad)}

.q-nav{display:flex; flex-wrap:wrap; gap:6px; margin-top:16px}
.q-nav-btn{
  width:30px; height:30px; border-radius:50%; border:1px solid var(--line); cursor:pointer;
  font-weight:700; font-size:.78rem; color:var(--muted); background:var(--white); transition:transform .1s;
}
.q-nav-btn:hover{transform:scale(1.1)}
.q-nav-btn.answered{background:var(--cream-2); color:var(--navy); border-color:var(--navy)}
.q-nav-btn.ok{background:var(--ok); color:#fff; border-color:var(--ok)}
.q-nav-btn.bad{background:var(--bad); color:#fff; border-color:var(--bad)}
.q-nav-btn.current{outline:3px solid var(--navy); outline-offset:1px}

/* ===== exam list ===== */
.exam-card{display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap}
.exam-card .info b{display:block; color:var(--navy); font-size:1.1rem}
.exam-card .info span{color:var(--muted); font-size:.86rem}
.exam-card .meta{display:flex; gap:18px; margin-top:8px; font-size:.82rem; color:var(--muted)}

/* ===== setup screen (topic/count pickers) ===== */
.picker{display:flex; flex-wrap:wrap; gap:10px}
.picker label{
  display:flex; align-items:center; gap:8px; padding:10px 16px; border-radius:12px; border:2px solid var(--line);
  cursor:pointer; font-size:.92rem; font-weight:600; background:var(--white);
}
.picker input{accent-color:var(--navy)}
.picker label:has(input:checked){border-color:var(--navy); background:var(--navy-soft)}
.picker-group{margin-bottom:22px}
.picker-group h4{color:var(--navy); font-size:.92rem; font-weight:800; margin-bottom:10px; padding-bottom:6px; border-bottom:1px solid var(--line)}

/* ===== law-grouped preview cards (home page) ===== */
.law-preview-group{margin-bottom:36px}
.law-preview-group h3{color:var(--navy); font-size:1.08rem; font-weight:800; margin-bottom:4px}
.law-preview-group .law-blurb{color:var(--muted); font-size:.86rem; margin-bottom:14px; max-width:75ch}

.law-names-list{display:flex; flex-direction:column; gap:14px; align-items:flex-start}
.law-name-chip{color:var(--navy); font-weight:800; font-size:1.1rem; text-decoration:none; border-bottom:2px solid var(--gold); padding-bottom:2px}
.law-name-chip:hover{color:var(--gold)}
.law-names-suffix{color:var(--muted); font-size:.95rem; margin-top:4px}

/* ===== ISA relevant links (home page) ===== */
.isa-links-list{display:flex; flex-direction:column; gap:12px; margin-bottom:8px}
.isa-links-list li{list-style:none}
.isa-links-list a{
  display:flex; align-items:center; gap:10px; background:var(--white); border:1px solid var(--line); border-radius:12px;
  padding:14px 18px; color:var(--navy); font-weight:700; font-size:.95rem; text-decoration:none; box-shadow:var(--shadow);
  transition:border-color .15s, transform .15s;
}
.isa-links-list a:hover{border-color:var(--gold); transform:translateX(-2px)}

/* ===== official exam syllabus (home page) ===== */
.official-preamble{
  border-right:4px solid var(--gold); background:var(--cream); border-radius:0 10px 10px 0;
  padding:18px 22px; margin-bottom:32px;
}
.official-preamble p{color:#3a3f47; font-size:.92rem; font-style:italic; line-height:1.8; margin:0}
.syllabus{display:grid; grid-template-columns:1fr 1fr; gap:40px}
.syllabus-part h3{color:var(--navy); font-size:1.2rem; font-weight:900; border-bottom:3px solid var(--gold); padding-bottom:10px; margin-bottom:20px}
.syllabus-section{margin-bottom:22px}
.syllabus-section h4{color:var(--navy); font-size:.95rem; font-weight:800; margin-bottom:8px}
.syllabus-section ol{margin:0; padding-inline-start:1.4em; color:#3a3f47; font-size:.9rem; line-height:1.7}
.syllabus-section li{margin-bottom:6px}
.syllabus-section .sub-list{margin-top:6px; font-size:.88rem; color:var(--muted)}
@media (max-width: 900px){ .syllabus{grid-template-columns:1fr; gap:8px} }

/* ===== exam info section (home page) ===== */
.info-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:10px}
@media (max-width: 700px){ .info-grid{grid-template-columns:1fr} }
.info-card{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow)}
.info-card h3{
  color:var(--navy); font-size:1.05rem; display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0; cursor:pointer; user-select:none;
}
.info-card-toggle-icon{color:var(--gold); font-size:.85rem; flex-shrink:0; transition:transform .2s}
.info-card.open .info-card-toggle-icon{transform:rotate(180deg)}
.info-card-body{display:none; margin-top:14px}
.info-card.open .info-card-body{display:block}
.info-card ul{margin-bottom:0; font-size:.9rem; color:#3a3f47}
.info-card li{margin-bottom:6px}
.pass-scale{display:flex; align-items:center; gap:0; border-radius:10px; overflow:hidden; height:38px; margin:14px 0 8px; font-size:.78rem; font-weight:700; color:#fff}
.pass-scale span{display:flex; align-items:center; justify-content:center; height:100%}
.pass-scale .fail{background:var(--bad); flex:60}
.pass-scale .pass{background:var(--ok); flex:40}
.source-note{font-size:.78rem; color:var(--muted); margin-top:14px; border-top:1px dashed var(--line); padding-top:10px}
.source-note a{color:var(--navy); text-decoration:underline}

/* ===== utility ===== */
.center{text-align:center}
.muted{color:var(--muted)}
.mt-0{margin-top:0}
.mt-lg{margin-top:32px}
.hidden{display:none !important}
.badge-count{background:var(--gold); color:#fff; border-radius:999px; padding:2px 9px; font-size:.72rem; font-weight:800}

/* ===== ask page (local search) ===== */
.ask-box{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); display:flex; gap:10px}
.ask-box input[type="text"]{
  flex:1; border:2px solid var(--line); border-radius:12px; padding:13px 16px; font-size:1rem; font-family:inherit;
  color:var(--navy); background:var(--cream); transition:border-color .15s;
}
.ask-box input[type="text"]:focus{outline:none; border-color:var(--gold)}
.ask-examples{display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0}
.ask-examples button{
  border:1px solid var(--line); background:var(--white); color:var(--muted); border-radius:999px;
  padding:6px 14px; font-size:.8rem; cursor:pointer; font-family:inherit;
}
.ask-examples button:hover{border-color:var(--gold); color:var(--navy)}
.ask-section{margin-top:32px}
.ask-section h3{color:var(--navy); font-size:1.05rem; margin-bottom:14px; display:flex; align-items:center; gap:8px}
.glossary-card{background:var(--white); border:1.5px dashed var(--gold); border-radius:12px; padding:16px 20px; margin-bottom:12px}
.glossary-card b{color:var(--navy); display:block; margin-bottom:4px; font-size:.98rem}
.glossary-card p{margin:0 0 8px; font-size:.9rem; color:#3a3f47}
.glossary-card a{font-size:.82rem; color:var(--navy); font-weight:700; text-decoration:none}
.glossary-card a:hover{text-decoration:underline}
.source-tag{display:inline-block; background:var(--navy-soft); color:var(--navy); font-size:.74rem; font-weight:700; border-radius:999px; padding:2px 10px; margin-bottom:8px}
.ask-empty{text-align:center; padding:40px 20px; color:var(--muted)}
.ai-settings{background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; margin-top:14px; box-shadow:var(--shadow)}
.ai-settings a{color:var(--navy); text-decoration:underline}
.ai-answer-card{
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color:#fff;
  border-radius:var(--radius); padding:22px 26px; margin-bottom:24px; box-shadow:var(--shadow-lg);
}
.ai-answer-card .source-tag{background:rgba(255,255,255,.15); color:#fff}
.ai-answer-text{font-size:1rem; line-height:1.75; margin-top:8px}
.ai-answer-card .muted{color:#c3cbdb}
.ai-loading{font-size:.95rem; color:#c3cbdb; margin-top:8px; display:flex; align-items:center; gap:10px}
.ai-loading::before{
  content:''; width:16px; height:16px; border-radius:50%; border:2.5px solid rgba(255,255,255,.3); border-top-color:#fff;
  animation:ai-spin .8s linear infinite; flex-shrink:0;
}
@keyframes ai-spin{to{transform:rotate(360deg)}}

/* ===== lomda hub (5 law banners) ===== */
.law-banners{display:flex; flex-direction:column; gap:20px}
.law-banner{
  display:flex; align-items:center; gap:24px; background:var(--white); border:2px solid var(--line); border-radius:var(--radius);
  padding:30px 34px; text-decoration:none; box-shadow:var(--shadow); transition:transform .15s, box-shadow .15s, border-color .15s;
}
.law-banner:hover{transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--gold)}
.law-banner-num{
  flex-shrink:0; width:50px; height:50px; border-radius:50%; background:var(--navy); color:var(--gold-light); font-weight:900; font-size:1.3rem;
  display:flex; align-items:center; justify-content:center;
}
.law-banner-icon{flex-shrink:0; font-size:2.6rem; line-height:1}
.law-banner-text{flex:1; min-width:0}
.law-banner-text h2{color:var(--navy); font-size:1.3rem; margin-bottom:6px}
.law-banner-text p{color:var(--muted); font-size:.92rem; margin:0; max-width:85ch}
.law-banner-arrow{flex-shrink:0; font-size:1.7rem; color:var(--gold); font-weight:900}
@media (max-width: 700px){
  .law-banner{flex-wrap:wrap; padding:22px}
  .law-banner-text{order:3; width:100%}
  .law-banner-arrow{display:none}
}

@media (max-width: 880px){
  .hero-grid{grid-template-columns:1fr}
  .hero-art{order:-1}
  .grid-3{grid-template-columns:1fr 1fr}
  .footer-cols{gap:32px}
}
@media (max-width: 640px){
  .nav-wrap{height:64px}
  .main-nav{position:fixed; inset-inline:0; top:64px; background:var(--white); flex-direction:column; align-items:stretch;
    padding:10px; border-bottom:1px solid var(--line); box-shadow:var(--shadow); display:none;}
  .main-nav.open{display:flex}
  .main-nav a{padding:12px 14px}
  .nav-toggle{display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:var(--white); cursor:pointer; font-size:1.2rem}
  .hero h1{font-size:1.9rem}
  .grid-3, .grid-2{grid-template-columns:1fr}
  .site-footer .container{flex-direction:column}
  .topic-nav{top:64px}
  .q-card{padding:18px}
  .law-window{padding:16px}
  .law-window-inner{flex-direction:column; gap:16px}
  .law-window-sidebar{
    position:static; flex-direction:row; flex-wrap:wrap; max-height:none; width:100%;
  }
  .lw-group{flex:0 0 auto}
  .lw-toc-item{flex:0 0 auto}
  .lw-toc-name{display:none}
  .lw-substeps{display:none !important}
}
