/* ============================================================
   مدرسة الفجر الباسم الخاصة
   Palette sampled from the school logo · one typeface throughout
   ============================================================ */
:root{
  --violet:#72369A;
  --violet-dark:#4A2168;
  --violet-deep:#2C1240;
  --tint:#F4EDFA;
  --gold:#FFDE7A;        /* soft gold — large fills, easy on the eyes */
  --gold-strong:#EFC01A; /* deeper gold — small marks on light surfaces */
  --gold-soft:#FFEBB0;
  --white:#FFFFFF;
  --soft:#F8F6FB;
  --ink:#1F1A26;
  --muted:#6E6780;
  --line:#E9E4EF;

  --maxw:1140px;
  --r:16px; --r-lg:24px;
  --font:"IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:116px}
body{
  margin:0; background:var(--white); color:var(--ink);
  font-family:var(--font); font-size:17px; font-weight:400; line-height:1.85;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
button{font:inherit; cursor:pointer}
h1,h2,h3,h4{margin:0; font-weight:700; line-height:1.4; letter-spacing:-.01em}
h1{font-size:clamp(31px,4.2vw,50px); line-height:1.32}
h2{font-size:clamp(25px,3vw,37px)}
h3{font-size:20px; font-weight:600}
p{margin:0}
:focus-visible{outline:3px solid var(--violet); outline-offset:3px; border-radius:6px}

.wrap{width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:24px}
.skip{position:absolute; inset-inline-start:-9999px; top:0; z-index:300; background:var(--gold); color:var(--violet-deep); padding:12px 18px; font-weight:600}
.skip:focus{inset-inline-start:12px; top:12px}

/* ---------- utility bar ---------- */
.util{background:var(--violet-deep); color:#CFC2E0; font-size:14px}
.util .wrap{display:flex; align-items:center; gap:24px; min-height:46px; flex-wrap:wrap}
.util a:hover{color:var(--gold-soft)}
.util-item{display:inline-flex; align-items:center; gap:8px}
.util svg{width:16px; height:16px; flex:none; opacity:.8}
.util .spacer{margin-inline-start:auto}
.util .portal{border:1px solid rgba(207,194,224,.35); padding:4px 15px; border-radius:99px}
.util .portal:hover{border-color:var(--gold); color:var(--gold-soft)}

/* ---------- header ---------- */
.site-header{position:sticky; top:0; z-index:120; background:rgba(255,255,255,.96); backdrop-filter:blur(10px); border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex; align-items:center; gap:20px; min-height:80px}
.brand{display:flex; align-items:center; gap:13px; flex:none}
.brand img{height:48px; width:auto}
.brand b{display:block; font-size:19px; font-weight:700; color:var(--violet-dark); line-height:1.3}
.brand span{display:block; font-size:10.5px; font-weight:500; color:var(--muted); letter-spacing:.06em}

.nav{margin-inline-start:auto; display:flex; align-items:center; gap:2px; list-style:none; margin-block:0; padding:0}
.nav > li{position:relative}
.nav-top{display:inline-flex; align-items:center; gap:7px; padding:10px 14px; border-radius:10px;
  font-size:16px; font-weight:500; color:var(--ink); background:none; border:0}
.nav-top:hover{background:var(--tint); color:var(--violet-dark)}
.chev{width:8px; height:8px; border-inline-end:1.8px solid currentColor; border-bottom:1.8px solid currentColor; transform:rotate(45deg); margin-top:-2px; transition:transform .2s}
.nav > li[data-open="true"] .nav-top{background:var(--tint); color:var(--violet-dark)}
.nav > li[data-open="true"] .chev{transform:rotate(-45deg); margin-top:2px}
.drop{position:absolute; inset-inline-start:0; top:calc(100% + 8px); min-width:225px; background:var(--white);
  border:1px solid var(--line); border-radius:var(--r); box-shadow:0 16px 40px -26px rgba(44,18,64,.5); padding:8px;
  opacity:0; visibility:hidden; transform:translateY(-6px); transition:.16s ease; margin:0; list-style:none}
.nav > li[data-open="true"] .drop{opacity:1; visibility:visible; transform:none}
.drop a{display:block; padding:9px 13px; border-radius:10px; font-size:15.5px; color:var(--ink)}
.drop a:hover{background:var(--tint); color:var(--violet-dark)}

.cta-sm{flex:none; background:var(--violet); color:#fff; padding:12px 22px; border-radius:99px; font-size:15.5px; font-weight:600; transition:.16s}
.cta-sm:hover{background:var(--violet-dark)}
.burger{display:none; flex:none; width:46px; height:46px; border:1px solid var(--line); border-radius:12px; background:#fff; align-items:center; justify-content:center}
.burger span{display:block; width:20px; height:2px; background:var(--ink); position:relative; border-radius:2px}
.burger span::before,.burger span::after{content:""; position:absolute; inset-inline-start:0; width:20px; height:2px; background:var(--ink); border-radius:2px}
.burger span::before{top:-6px} .burger span::after{top:6px}

/* ---------- drawer ---------- */
.drawer{position:fixed; inset:0; z-index:200; background:rgba(44,18,64,.5); opacity:0; visibility:hidden; transition:.2s}
.drawer[data-open="true"]{opacity:1; visibility:visible}
.drawer-panel{position:absolute; inset-block:0; inset-inline-end:0; width:min(330px,88vw); background:#fff; padding:22px; overflow-y:auto; transform:translateX(100%); transition:transform .25s}
.drawer[data-open="true"] .drawer-panel{transform:none}
.drawer-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:14px}
.close-x{width:42px; height:42px; border:1px solid var(--line); border-radius:12px; background:#fff; font-size:19px; color:var(--muted); line-height:1}
.acc{border-bottom:1px solid var(--line)}
.acc > button,.acc > .acc-link{width:100%; display:flex; justify-content:space-between; align-items:center; padding:15px 4px;
  background:none; border:0; font-size:16.5px; font-weight:500; color:var(--ink); text-align:start}
.acc-body{display:none; padding-bottom:10px}
.acc[data-open="true"] .acc-body{display:block}
.acc-body a{display:block; padding:9px 15px; font-size:15px; color:var(--muted); border-inline-start:2px solid var(--line)}
.acc-body a:hover{color:var(--violet-dark); border-color:var(--gold)}
.drawer .cta-sm{display:block; text-align:center; margin-top:22px}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:15px 30px; border-radius:99px;
  font-weight:600; font-size:16.5px; border:1.5px solid transparent; transition:.16s}
.btn-gold{background:var(--gold); color:var(--violet-deep)}
.btn-gold:hover{background:#FFD455}
.btn-violet{background:var(--violet); color:#fff}
.btn-violet:hover{background:var(--violet-dark)}
.btn-ghost{border-color:rgba(255,255,255,.45); color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12); border-color:#fff}
.btn-row{display:flex; gap:14px; flex-wrap:wrap}

/* ---------- section shell ---------- */
.section{padding-block:96px}
.section-soft{background:var(--soft)}
.sec-head{max-width:640px; margin-bottom:52px}
.sec-head.center{margin-inline:auto; text-align:center}
.kicker{display:inline-flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--violet); margin-bottom:14px}
.kicker::before{content:""; width:26px; height:12px; flex:none; background:url("../img/smile-deep.64e70fe708e4.svg") center/contain no-repeat}
.sec-head h2{color:var(--violet-deep); margin-bottom:14px}
.sec-head p{color:var(--muted)}
.sec-head p:empty{display:none}
.head-row{display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:46px; flex-wrap:wrap}
.head-row .sec-head{margin-bottom:0}
.link-arrow{display:inline-flex; align-items:center; gap:8px; font-weight:600; color:var(--violet); font-size:16px}
.link-arrow:hover{color:var(--violet-dark)}

/* ---------- hero: full-bleed photo behind the headline ---------- */
.hero{
  position:relative; isolation:isolate; background:var(--violet-dark); color:#fff;
  min-height:clamp(500px, 76vh, 720px); display:grid; align-items:center; overflow:hidden;
}
.hero-bg{position:absolute; inset:0; z-index:-2}
.hero-bg img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .9s ease}
.hero-bg img.on{opacity:1}
/* RTL: the copy sits on the right, so the veil is heaviest there and clears the photo
   on the left. An LTR mirror would flip `to left` to `to right`. */
.hero-veil{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to left, rgba(44,18,64,.94) 0%, rgba(44,18,64,.82) 34%, rgba(44,18,64,.42) 68%, rgba(44,18,64,.18) 100%),
    linear-gradient(to top, rgba(44,18,64,.55) 0%, rgba(44,18,64,0) 45%);
}
.hero-inner{position:relative; padding-block:72px; max-width:min(var(--maxw), 100%)}
.hero-inner > *{max-width:620px}
.ebs,.rotator{display:grid}
.ebs > span,.rotator > span{grid-area:1/1; opacity:0; transition:opacity .55s ease}
.ebs > span.on,.rotator > span.on{opacity:1}
.ebs{margin-bottom:16px}
.ebs > span{display:inline-flex; align-items:center; gap:10px; font-size:15px; font-weight:600; color:var(--gold); justify-self:start}
.ebs > span::before{content:""; width:28px; height:13px; flex:none; background:url("../img/smile-soft.23516ce57e40.svg") center/contain no-repeat}
.rotator{margin-bottom:22px}
.rotator > span{align-self:start; text-shadow:0 2px 24px rgba(28,10,44,.45)}
.hero .lead{color:#E4DAEF; max-width:46ch; margin-bottom:32px; text-shadow:0 1px 16px rgba(28,10,44,.4)}
.dots{display:flex; gap:8px; margin-top:38px}
.dots button{width:9px; height:9px; padding:0; border:0; border-radius:99px; background:rgba(255,255,255,.55); transition:.2s}
.dots button:hover{background:rgba(255,255,255,.85)}
.dots button[aria-current="true"]{background:var(--gold); width:28px}

/* ---------- facts ---------- */
.facts{background:var(--violet-deep); color:#fff}
.facts ul{display:grid; grid-template-columns:repeat(4,1fr); list-style:none; margin:0; padding:0}
.facts li{padding:30px 24px; border-inline-start:1px solid rgba(255,255,255,.13)}
.facts li:first-child{border-inline-start:0}
.facts b{display:block; font-size:21px; font-weight:600; color:var(--gold); margin-bottom:2px; line-height:1.4}
.facts span{font-size:14.5px; color:#BFB0D2; line-height:1.7}

/* ---------- about ---------- */
.about{display:grid; grid-template-columns:.85fr 1.15fr; gap:60px; align-items:center}
.about-media{position:relative}
.about-media img{border-radius:var(--r-lg); aspect-ratio:3/4; object-fit:cover; width:100%}
.badge{position:absolute; inset-block-end:-16px; inset-inline-start:-16px; background:var(--gold); color:var(--violet-deep);
  padding:16px 24px; border-radius:var(--r); text-align:center; box-shadow:0 14px 34px -20px rgba(44,18,64,.7)}
.badge b{display:block; font-size:30px; font-weight:700; line-height:1.1}
.badge span{font-size:13.5px; font-weight:600}
.vm{display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-block:30px}
.vm div{background:var(--tint); border-radius:var(--r); padding:22px 24px}
.vm h3{color:var(--violet-dark); margin-bottom:4px}
.vm p{font-size:15.5px; color:var(--muted); line-height:1.7}

/* ---------- stages ---------- */
.stages{display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:20px}
.stage{background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:30px 26px; transition:.18s}
.stage:hover{border-color:var(--violet); transform:translateY(-3px)}
.stage .ico{width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:var(--tint); color:var(--violet); margin-bottom:18px}
.stage .ico svg{width:24px; height:24px}
.stage h3{color:var(--violet-deep); margin-bottom:8px}
.stage p{font-size:15.5px; color:var(--muted); line-height:1.75; margin-bottom:14px}
.stage .age{font-size:13px; font-weight:600; color:var(--violet); background:var(--tint); padding:4px 13px; border-radius:99px; display:inline-block}

/* ---------- facilities ---------- */
.facs{display:grid; grid-template-columns:repeat(3,1fr); gap:34px 44px}
.fac{display:flex; gap:15px; align-items:flex-start}
.fac .dot{flex:none; width:38px; height:38px; border-radius:12px; background:var(--violet); color:#fff; display:grid; place-items:center}
.fac .dot svg{width:19px; height:19px}
.fac b{display:block; font-size:17px; font-weight:600; line-height:1.5}
.fac span span:empty{display:none}
.fac span{display:block; font-size:15px; color:var(--muted); line-height:1.7}

/* ---------- principal ---------- */
.principal{background:var(--violet-deep); color:#fff}
.principal .sec-head h2{color:#fff}
.principal .sec-head p{color:#BFB0D2}
.principal .kicker{color:var(--gold)}
.letter{display:grid; grid-template-columns:260px 1fr; gap:46px; align-items:start}
.tabs{display:flex; flex-direction:column; gap:9px}
.tab{text-align:start; background:none; border:1px solid rgba(255,255,255,.18); color:#D6CAE6; padding:14px 18px;
  border-radius:var(--r); font-size:16px; font-weight:500; transition:.16s}
.tab:hover{border-color:rgba(255,255,255,.45); color:#fff}
.tab[aria-selected="true"]{background:var(--gold); border-color:var(--gold); color:var(--violet-deep); font-weight:600}
.panel{display:none; color:#E0D6EC}
.panel[data-on="true"]{display:block}
.panel p + p{margin-top:15px}
.sign{margin-top:28px; padding-top:20px; border-top:1px solid rgba(255,255,255,.16); font-size:15px; color:#AE9DC6}
.sign b{display:block; font-size:17px; font-weight:600; color:#fff}

/* ---------- quality ---------- */
.qs{display:grid; grid-template-columns:1fr 1fr; gap:8px 44px}
.q{display:flex; gap:15px; padding:16px 0; border-bottom:1px solid var(--line)}
.q .k{flex:none; width:26px; height:26px; margin-top:5px; border-radius:99px; background:var(--gold); color:var(--violet-deep);
  display:grid; place-items:center; font-size:13px; font-weight:700}
.q p{font-size:16px; line-height:1.75}

/* ---------- anniversary ---------- */
.anniv{display:grid; grid-template-columns:1fr .78fr; gap:56px; align-items:center}
.anniv-media img{border-radius:var(--r-lg); aspect-ratio:3/4; object-fit:cover; width:100%}
.anniv .num{font-size:64px; font-weight:700; color:var(--violet); line-height:1; margin-bottom:8px}

/* ---------- news ---------- */
.news{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.card{background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; display:flex; flex-direction:column; transition:.18s}
.card:hover{border-color:var(--violet); transform:translateY(-3px)}
.card .thumb{aspect-ratio:16/10; overflow:hidden; background:var(--tint)}
.card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.card:hover .thumb img{transform:scale(1.04)}
.card .body{padding:24px; display:flex; flex-direction:column; gap:10px; flex:1}
.date{font-size:13.5px; font-weight:600; color:var(--violet)}
.card h3{color:var(--violet-deep); line-height:1.55}
.card p{font-size:15.5px; color:var(--muted); line-height:1.75; flex:1}
.card .more{font-size:15px; font-weight:600; color:var(--violet)}

/* ---------- gallery ---------- */
.gal{display:grid; grid-template-columns:repeat(4,1fr); gap:18px}
.gal figure{margin:0; border-radius:var(--r); overflow:hidden; background:var(--tint)}
.gal img{aspect-ratio:4/5; width:100%; object-fit:cover; transition:transform .45s}
.gal figure:hover img{transform:scale(1.05)}

/* ---------- admission ---------- */
.adm{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start}
.form{background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg); padding:32px}
.section-soft .form{background:var(--white)}
.field{margin-bottom:18px}
.field label{display:block; font-size:15px; font-weight:600; margin-bottom:8px}
.field input,.field select,.field textarea{width:100%; padding:14px 16px; border:1px solid var(--line); border-radius:12px;
  font-family:var(--font); font-size:16px; background:var(--soft); color:var(--ink)}
.field input::placeholder,.field textarea::placeholder{color:#A79EB6}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--violet); background:#fff; outline:none; box-shadow:0 0 0 3px var(--tint)}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.form .btn{width:100%; margin-top:4px}
.form .note{font-size:14px; color:var(--muted); margin-top:14px; text-align:center; line-height:1.7}
.clist{list-style:none; padding:0; margin:30px 0 0; display:grid; gap:20px}
.clist li{display:flex; gap:15px; align-items:flex-start}
.clist .ci{flex:none; width:44px; height:44px; border-radius:13px; background:var(--tint); color:var(--violet); display:grid; place-items:center}
.clist svg{width:20px; height:20px}
.clist b{display:block; font-size:14.5px; color:var(--muted); font-weight:500; line-height:1.6}
.clist a,.clist p{font-size:17px; font-weight:600; line-height:1.6}
.clist a:hover{color:var(--violet)}
.map{margin-top:28px; border-radius:var(--r); overflow:hidden; border:1px solid var(--line); aspect-ratio:16/9; background:var(--tint)}
.map iframe{width:100%; height:100%; border:0; display:block}

/* ---------- band ---------- */
.band{background:var(--violet); color:#fff; text-align:center; padding-block:80px}
.band h2{margin-bottom:14px}
.band p{color:#E4D8F0; max-width:54ch; margin:0 auto 30px}
.band .btn-row{justify-content:center}

/* ---------- footer ---------- */
.foot{background:var(--violet-deep); color:#B3A3C9; padding-block:66px 0; font-size:15.5px}
.foot-grid{display:grid; grid-template-columns:1.7fr 1fr 1fr 1.3fr; gap:44px}
.foot h4{font-size:16px; font-weight:600; color:#fff; margin-bottom:20px; position:relative; padding-bottom:14px}
.foot h4::after{content:""; position:absolute; inset-block-end:0; inset-inline-start:0; width:26px; height:12px; background:url("../img/smile-soft.23516ce57e40.svg") center/contain no-repeat}
.foot ul{list-style:none; padding:0; margin:0; display:grid; gap:11px}
.foot a:hover{color:var(--gold-soft)}
.foot-brand{display:flex; align-items:center; gap:13px; margin-bottom:18px}
.foot-brand img{height:50px; width:auto}
.foot-brand b{font-size:19px; font-weight:700; color:#fff}
.socials{display:flex; gap:10px; margin-top:20px}
.socials a{width:42px; height:42px; border-radius:12px; border:1px solid rgba(255,255,255,.2); display:grid; place-items:center; transition:.16s}
.socials a:hover{background:var(--gold); border-color:var(--gold); color:var(--violet-deep)}
.socials svg{width:19px; height:19px}
.foot-bottom{margin-top:54px; border-top:1px solid rgba(255,255,255,.12); padding-block:24px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:14px}

/* ---------- reveal ---------- */
.rv{opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease}
.rv.in{opacity:1; transform:none}

/* ---------- responsive ---------- */
@media (max-width:1040px){
  .nav{display:none} .burger{display:flex}
  .hero{min-height:clamp(440px, 64vh, 560px)}
  .hero-veil{background:
    linear-gradient(to left, rgba(44,18,64,.92) 0%, rgba(44,18,64,.78) 45%, rgba(44,18,64,.5) 100%),
    linear-gradient(to top, rgba(44,18,64,.6) 0%, rgba(44,18,64,0) 50%)}
  .about,.adm,.letter,.anniv{grid-template-columns:1fr; gap:38px}
  .stages,.news{grid-template-columns:repeat(2,1fr)}
  .facs{grid-template-columns:repeat(2,1fr)}
  .gal{grid-template-columns:repeat(3,1fr)}
  .foot-grid{grid-template-columns:1fr 1fr}
  .tabs{flex-direction:row; flex-wrap:wrap}
  .tab{flex:1 1 auto}
}
@media (max-width:680px){
  body{font-size:16.5px}
  .section{padding-block:64px}
  .util .hide-sm{display:none}
  .util .wrap{gap:16px; font-size:13.5px}
  .hero{min-height:auto}
  .hero-inner{padding-block:56px}
  .hero-veil{background:
    linear-gradient(to top, rgba(44,18,64,.94) 0%, rgba(44,18,64,.86) 55%, rgba(44,18,64,.66) 100%)}
  .facts ul{grid-template-columns:1fr 1fr}
  .facts li{border-inline-start:0; border-top:1px solid rgba(255,255,255,.13); padding:22px 6px}
  .facts li:nth-child(-n+2){border-top:0}
  .stages,.news,.facs,.qs,.field-row,.foot-grid,.vm{grid-template-columns:1fr}
  .gal{grid-template-columns:1fr 1fr}
  .cta-sm{display:none}
  .badge{inset-inline-start:auto; inset-inline-end:14px}
  .foot-bottom{flex-direction:column}
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001s !important; transition-duration:.001s !important}
  html{scroll-behavior:auto}
  .rv{opacity:1; transform:none}
}

/* ============================================================
   Real-site components — inner pages, forms, listings
   Added when the prototype became a multi-page Django site.
   ============================================================ */

/* ---------- inner page banner ---------- */
.page-hero{background:var(--violet-dark); color:#fff; padding-block:56px 60px}
.page-hero .kicker{color:var(--gold)}
.page-hero .kicker::before{background-image:url("../img/smile-soft.23516ce57e40.svg")}
.page-hero h1{font-size:clamp(28px,3.6vw,44px); margin-bottom:14px}
.page-hero p{color:#D6CAE6; max-width:62ch}
.crumbs{display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:14px; color:#BFB0D2; margin-bottom:18px}
.crumbs a:hover{color:var(--gold-soft)}
.crumbs span[aria-current]{color:#fff}
.crumbs .sep{opacity:.5}

/* ---------- alerts ---------- */
.alerts{display:grid; gap:12px; margin-bottom:26px}
.alert{display:flex; gap:12px; align-items:flex-start; padding:16px 20px; border-radius:var(--r); font-size:16px; line-height:1.7; border:1px solid}
.alert-success{background:#EFF9F1; border-color:#BFE3C7; color:#1E5B2C}
.alert-error{background:#FDF0EE; border-color:#F3C6BE; color:#8E2B1B}
.alert-info{background:var(--tint); border-color:#DDCDEB; color:var(--violet-deep)}
.alert b{font-weight:700}

/* ---------- form validation ---------- */
.field-error{display:block; margin-top:7px; font-size:14.5px; font-weight:600; color:#C0392B}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#E0A79C; background:#FDF7F6}
.field.has-error input:focus,.field.has-error select:focus,.field.has-error textarea:focus{box-shadow:0 0 0 3px #FBE3DE; border-color:#C0392B}
.field .hint{display:block; margin-top:6px; font-size:14px; color:var(--muted); font-weight:400}
.field-hp{position:absolute; inset-inline-start:-9999px; width:1px; height:1px; overflow:hidden}
.form .btn[disabled]{opacity:.65; cursor:progress}
.req{color:#C0392B; font-weight:700}

/* ---------- prose (article / page body) ---------- */
.prose{max-width:72ch}
.prose p{margin-bottom:18px; color:#39323F}
.prose p:last-child{margin-bottom:0}
.prose h2,.prose h3{color:var(--violet-deep); margin-block:32px 12px}
.prose ul,.prose ol{color:#39323F; padding-inline-start:22px; margin-bottom:18px}
.prose li{margin-bottom:8px}
.article-cover{border-radius:var(--r-lg); overflow:hidden; margin-bottom:36px; background:var(--tint); aspect-ratio:16/9}
.article-cover img{width:100%; height:100%; object-fit:cover}
.article-meta{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; font-size:14.5px; color:var(--muted); margin-bottom:26px}
.article-meta .tag{background:var(--tint); color:var(--violet); font-weight:600; padding:4px 14px; border-radius:99px}
.layout-aside{display:grid; grid-template-columns:1fr 320px; gap:56px; align-items:start}
.aside-card{background:var(--soft); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px}
.aside-card h3{color:var(--violet-deep); margin-bottom:16px; font-size:18px}
.aside-card ul{list-style:none; padding:0; margin:0; display:grid; gap:14px}
.aside-card li{font-size:15.5px; line-height:1.7}
.aside-card a{color:var(--ink)}
.aside-card a:hover{color:var(--violet)}

/* ---------- chips / filters ---------- */
.chips{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:36px}
.chip{display:inline-flex; align-items:center; padding:9px 20px; border-radius:99px; border:1px solid var(--line);
  background:#fff; font-size:15px; font-weight:500; color:var(--ink); transition:.16s}
.chip:hover{border-color:var(--violet); color:var(--violet-dark)}
.chip[aria-current="true"]{background:var(--violet); border-color:var(--violet); color:#fff; font-weight:600}

/* ---------- pagination ---------- */
.pager{display:flex; justify-content:center; align-items:center; gap:10px; margin-top:52px; flex-wrap:wrap}
.pager a,.pager span{min-width:44px; height:44px; padding-inline:14px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:12px; font-size:15.5px; font-weight:600; background:#fff}
.pager a:hover{border-color:var(--violet); color:var(--violet)}
.pager .current{background:var(--violet); border-color:var(--violet); color:#fff}
.pager .disabled{opacity:.4}

/* ---------- empty states ---------- */
.empty{text-align:center; padding:64px 24px; border:1px dashed var(--line); border-radius:var(--r-lg); background:var(--soft)}
.empty b{display:block; font-size:19px; color:var(--violet-deep); margin-bottom:8px}
.empty p{color:var(--muted); max-width:46ch; margin-inline:auto}

/* ---------- staff ---------- */
.people{display:grid; grid-template-columns:repeat(4,1fr); gap:24px}
.person{background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; text-align:center; transition:.18s}
.person:hover{border-color:var(--violet); transform:translateY(-3px)}
.person .avatar{width:96px; height:96px; margin:0 auto 16px; border-radius:50%; overflow:hidden; background:var(--tint);
  display:grid; place-items:center; color:var(--violet); font-size:30px; font-weight:700}
.person .avatar img{width:100%; height:100%; object-fit:cover}
.person b{display:block; font-size:17.5px; color:var(--violet-deep); margin-bottom:4px}
.person .role{font-size:14.5px; color:var(--violet); font-weight:600}
.person .bio{font-size:14.5px; color:var(--muted); line-height:1.7; margin-top:10px}
.group-head{display:flex; align-items:center; gap:16px; margin-block:46px 24px}
.group-head h2{font-size:24px; color:var(--violet-deep); flex:none}
.group-head::after{content:""; flex:1; height:1px; background:var(--line)}

/* ---------- data tables (plans / homework) ---------- */
.table-wrap{border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; background:#fff}
table.data{width:100%; border-collapse:collapse; font-size:16px}
table.data th,table.data td{padding:16px 20px; text-align:start; border-bottom:1px solid var(--line); vertical-align:middle}
table.data th{background:var(--soft); font-size:14.5px; font-weight:600; color:var(--muted)}
table.data tr:last-child td{border-bottom:0}
table.data tr:hover td{background:#FCFAFE}
table.data .file-link{display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--violet)}
table.data .muted{color:var(--muted); font-size:14.5px}
.pill{display:inline-block; padding:3px 12px; border-radius:99px; background:var(--tint); color:var(--violet); font-size:13.5px; font-weight:600}

/* ---------- albums ---------- */
.albums{display:grid; grid-template-columns:repeat(3,1fr); gap:26px}
.album-card{display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; transition:.18s}
.album-card:hover{border-color:var(--violet); transform:translateY(-3px)}
.album-card .thumb{aspect-ratio:4/3; background:var(--tint); overflow:hidden}
.album-card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .4s}
.album-card:hover .thumb img{transform:scale(1.04)}
.album-card .body{padding:22px 24px; display:flex; flex-direction:column; gap:8px; flex:1}
.album-card h3{color:var(--violet-deep)}
.album-card .meta{font-size:14px; color:var(--muted)}
.gal button{padding:0; border:0; background:none; width:100%; display:block; cursor:zoom-in}

/* ---------- lightbox ---------- */
.lightbox{position:fixed; inset:0; z-index:300; background:rgba(22,8,33,.93); display:grid; place-items:center; padding:24px;
  opacity:0; visibility:hidden; transition:.2s}
.lightbox[data-open="true"]{opacity:1; visibility:visible}
.lightbox figure{margin:0; max-width:min(1000px,92vw); text-align:center}
.lightbox img{max-height:78vh; width:auto; margin-inline:auto; border-radius:var(--r); object-fit:contain}
.lightbox figcaption{color:#D6CAE6; font-size:15px; margin-top:16px; min-height:22px}
.lightbox button{position:absolute; width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.08); color:#fff; font-size:22px; line-height:1; display:grid; place-items:center; transition:.16s}
.lightbox button:hover{background:var(--gold); color:var(--violet-deep); border-color:var(--gold)}
.lb-close{top:22px; inset-inline-end:22px}
.lb-prev{inset-inline-end:22px; top:50%; transform:translateY(-50%)}
.lb-next{inset-inline-start:22px; top:50%; transform:translateY(-50%)}

/* ---------- jobs ---------- */
.jobs{display:grid; gap:18px}
.job{display:flex; justify-content:space-between; align-items:center; gap:24px; background:#fff; border:1px solid var(--line);
  border-radius:var(--r-lg); padding:26px 30px; transition:.18s}
.job:hover{border-color:var(--violet)}
.job h3{color:var(--violet-deep); margin-bottom:6px}
.job p{font-size:15.5px; color:var(--muted); line-height:1.7}
.job .tags{display:flex; flex-wrap:wrap; gap:8px; margin-top:12px}
.job.closed{opacity:.72; background:var(--soft)}

/* ---------- misc ---------- */
.stack-lg{display:grid; gap:56px}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start}
.value-cards{display:grid; grid-template-columns:1fr 1fr; gap:24px}
.value-card{background:var(--tint); border-radius:var(--r-lg); padding:32px}
.value-card h3{color:var(--violet-dark); margin-bottom:10px; font-size:22px}
.value-card p{color:#4B4356; line-height:1.8}
.map-full{border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); aspect-ratio:21/9; background:var(--tint)}
.map-full iframe{width:100%; height:100%; border:0; display:block}

@media (max-width:1040px){
  .people{grid-template-columns:repeat(3,1fr)}
  .albums{grid-template-columns:repeat(2,1fr)}
  .layout-aside,.two-col,.value-cards{grid-template-columns:1fr; gap:38px}
}
@media (max-width:680px){
  .people{grid-template-columns:repeat(2,1fr)}
  .albums{grid-template-columns:1fr}
  .job{flex-direction:column; align-items:flex-start; gap:18px}
  .page-hero{padding-block:40px 44px}
  table.data th,table.data td{padding:13px 14px; font-size:15px}
  .lightbox button{width:44px; height:44px}
  .lb-prev{inset-inline-end:12px} .lb-next{inset-inline-start:12px}
}
