/* Nabras homepage (education). Layout only: every colour, size and radius is a design-system token. */
main{display:block}
a{color:var(--action)}
.overline{color:var(--action);margin:0}

/* Hero */
.hero-sec{padding-block:var(--space-7) var(--space-8)}
.hero{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-6);align-items:start}
/* KAN-1841 (design audit B3, B4): two columns only from 1100 (960 to 1099 squeezed the H1 to 4 lines, wrapped the
   buttons and left the card at 313 to 378px); below that the card stacks under the copy, capped at 640px. The columns
   align to the top, so answering the quiz (the card grows) never moves the headline or the buttons. */
@media (min-width:1100px){.hero{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--space-7)}}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4);min-width:0}
.hero-h{margin:0;text-wrap:balance;max-width:600px}
.hero-lead{margin:0;color:var(--ink-secondary);max-width:540px}
.hero-start{display:flex;flex-direction:column;gap:var(--space-3);margin-top:var(--space-3);width:100%}
.hero-start-l{color:var(--ink-muted)}
.hero-start-b{display:flex;flex-wrap:wrap;gap:var(--space-3)}
.hero-start-b .nb-btn{min-width:140px}
@media (max-width:480px){.hero-start-b .nb-btn{flex:1 1 100%}}
.hero{position:relative}
/* KAN-1841 (Samer 2026-11-12, option A): a desk lamp clipped onto the quiz card's top edge, its shade above the card,
   and a flat pool of light (the لمّاح highlight token, low opacity, no blur) on the question only: it starts below the
   card's header row, sits behind the text (z-index:-1 inside the card), and goes out once the visitor answers, so it
   never meets the right/wrong colours or the explanation's highlight. Lamp and light: two-column hero only. */
.hero-stage{position:relative;min-width:0;width:100%;max-width:640px;justify-self:start}
.hero-lamp{display:none}
.hero-stage .nb-quiz{position:relative;z-index:1}
/* Bulk 4 (CLS): the quiz is drawn by script into an empty card, so its first-render height is reserved at every width
   (stacked 600 to 1099 measured 442px, 360 to 599 426px), not only in the two-column hero: CLS 0.108 at 768 came from here. */
.hero-stage .nb-quiz{min-height:426px}
@media (min-width:600px){.hero-stage .nb-quiz{min-height:442px}}
@media (min-width:1100px){
  .hero-copy{padding-top:var(--space-9)}
  .hero-stage{max-width:none;padding-top:var(--space-9)}
  .hero-lamp{display:block;position:absolute;top:0;inset-inline-start:calc(40% - 119px);width:150px;z-index:2;pointer-events:none}
  .hero-lamp svg{display:block;width:100%;height:auto}
  .hero-lamp .i-arm{stroke-width:8}
  .hero-stage .nb-quiz-body{position:relative}
  .hero-stage .nb-quiz-body::before{content:"";position:absolute;inset-block:calc(-1 * var(--space-3));inset-inline-start:calc(-1 * var(--space-4));inset-inline-end:20%;z-index:-1;pointer-events:none;background:var(--lm-highlight);opacity:.32;border-radius:50%;transition:opacity .4s}
  .hero-stage .nb-quiz:has(.nb-quiz-after:not([hidden])) .nb-quiz-body::before,.hero-stage .nb-quiz:has(.nb-quiz-res) .nb-quiz-body::before{opacity:0}
}
@media (prefers-reduced-motion:reduce){.hero-stage .nb-quiz-body::before{transition:none}}


/* Planner */
.plan{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-6);align-items:center}
@media (min-width:960px){.plan{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--space-8)}}
.plan-art{width:160px;margin-bottom:var(--space-4)}

/* How */
.how{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-6);align-items:center}
@media (min-width:960px){.how{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--space-8)}.how-art{order:2}}
.how-art{max-width:480px;width:100%;justify-self:center}
.how-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--space-5)}
.how-list li{display:flex;gap:var(--space-4);align-items:flex-start}
.how-list .ill-icon{width:64px;flex:none}
.how-list .title-3{margin:0 0 var(--space-1)}
.how-list p{margin:0;color:var(--ink-secondary)}

.nb-sh{margin-bottom:var(--space-6)}

/* Teachers */
.teach{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--space-6);align-items:center}
@media (min-width:960px){.teach{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:var(--space-8)}}
.teach-art{max-width:440px;width:100%;justify-self:center}
@media (min-width:960px){.teach-art{order:2}}
.teach-copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3)}
.teach-h{margin:0;text-wrap:balance}
.teach-p{margin:0;color:var(--ink-secondary)}
.teach-list{margin:var(--space-2) 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--space-2)}
.teach-list li{display:flex;gap:var(--space-3)}
.teach-list li::before{content:"";flex:none;width:8px;height:8px;margin-top:9px;border-radius:var(--radius-full);background:var(--brand)}
.teach-cta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3);margin-top:var(--space-3)}

/* FAQ */
.faq .nb-sh,.faq-list,.faq-more{max-width:860px}
.faq-list{background:var(--canvas);border-radius:var(--radius-lg);padding-inline:var(--space-5)}
.faq-list .nb-disc:first-child{border-top:0}.faq-list .nb-disc:last-child{border-bottom:0}
.faq-more{margin-top:var(--space-5)}
.faq-more>summary{list-style:none;display:inline-flex}
.faq-more>summary::-webkit-details-marker{display:none}
.faq-more[open]>summary{margin-bottom:var(--space-4)}

/* Footer CTA */
.foot-cta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:var(--space-5);padding-block:var(--space-8) var(--space-6)}
.foot-h{margin:0;color:var(--on-deep)}
.foot-p{margin:var(--space-2) 0 0;color:var(--on-deep);opacity:.85}
.foot-act{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-3)}
.nb-foot .foot-tg{opacity:.9}
.nb-foot .nb-spec-line{display:block}


.course-ic{width:48px;flex:none}.course-ic .ill-icon{width:48px}
/* KAN-1747: the live «طالب أو طالبة؟» line (ref=stu2t_home) under the teacher section */
.teach-stu{margin:var(--space-2) 0 0;color:var(--ink-secondary);max-width:var(--reading-max)}
/* KAN-1747: the live safety line under the quiz explanation */
.nb-quiz-safe{margin:var(--space-2) 0 0;color:var(--ink-muted)}
/* Button audit 2026-11-12 (W1, signed-in header): the KAN-908 role menu the shared chip script opens (#nb-rmenu on <body>),
   the same rules as templates/nav.html, design system tokens only. */
#nb-rscrim{position:fixed;inset:0;background:var(--scrim);z-index:1000}
#nb-rmenu{position:fixed;z-index:1001;background:var(--surface);color:var(--ink);text-align:start;border:1px solid var(--hairline);border-radius:var(--radius-lg);box-shadow:var(--shadow-overlay);padding:6px;width:280px;max-width:calc(100vw - 32px);direction:rtl}
#nb-rmenu[hidden],#nb-rscrim[hidden]{display:none}
#nb-rmenu.nb-rsheet{left:0;right:0;bottom:0;top:auto;width:auto;max-width:560px;margin:0 auto;border:0;border-radius:var(--radius-xl) var(--radius-xl) 0 0;padding:var(--space-3) var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom,0px))}
#nb-rmenu .nb-rh{font-size:13px;line-height:20px;font-weight:600;color:var(--ink-muted);padding:6px 10px 4px;margin:0}
#nb-rmenu a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:52px;padding:6px 10px;border-radius:var(--radius-md);color:var(--ink);text-decoration:none;font-weight:500;font-size:15px;outline:none}
#nb-rmenu a:hover,#nb-rmenu a:focus-visible{background:var(--surface-sunken)}
#nb-rmenu a:focus-visible{box-shadow:0 0 0 2px var(--action) inset}
#nb-rmenu .nb-rt{display:flex;flex-direction:column;line-height:1.35;min-width:0}
#nb-rmenu .nb-rt small{font-size:13px;font-weight:400;color:var(--ink-muted)}
#nb-rmenu .nb-rcur{flex-shrink:0;font-size:13px;font-weight:600;color:var(--action);background:var(--brand-tint);border-radius:var(--radius-full);padding:2px 10px}
#nb-rmenu .nb-rsep{height:1px;background:var(--hairline);margin:4px 6px}
