﻿/* ==========================================================
   THE STRIVING MUSLIM ACADEMY  |  Shared stylesheet

   TO CHANGE THE WHOLE COLOUR SCHEME:
   Replace the six colour lines in :root below with one of the
   alternate palettes at the bottom of this file. Nothing else
   needs to change. The whole site follows these six values.
   ========================================================== */

:root{
  /* ---- ACTIVE PALETTE : W  Navy blue and ivory ---- */
  --deep:#0E1E3C;
  --mid:#1B3869;
  --light:#2E5796;
  --accent:#E6D3A6;
  --accent-soft:#F7EEDA;
  --mark:#1B3869;
  --paper:#FCF8F1;
  --paper-deep:#F3ECDF;

  /* ---- the warm supporting colours. Each one stands for one part of the
     school, so a colour on a page always means something:
     sage = Islamic Education, sky = Academic Education,
     sand = Homeschool, rose = the Striving Cup and activities ---- */
  --gold-deep:#A27A1E;
  --rose:#A4475B;     --rose-soft:#F8E9E6;
  --sage:#47705A;     --sage-soft:#EAF2EA;
  --sky:#2C6383;      --sky-soft:#E6F0F5;
  --sand:#8A6420;     --sand-soft:#F7EEDB;
  --field:#FFFDF9;    /* the soft colour field behind .band sections */
  --shadow-soft:0 1px 2px rgba(14,30,60,.05),0 12px 30px -16px rgba(14,30,60,.22);

  /* ---- structural, leave alone ---- */
  --ink:#1A2230;
  --muted:#5A6374;
  --line:#E8E0D2;
  --card:#FFFFFF;
  --radius:12px;
  --serif:'Lora',Georgia,'Times New Roman',serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--paper);
  line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:var(--mid)}
.wrap{max-width:1050px;margin:0 auto;padding:0 20px}

/* ---------- NAV ---------- */
.nav{background:var(--deep);position:sticky;top:0;z-index:100}
.nav-inner{max-width:1050px;margin:0 auto;padding:0 20px;display:flex;align-items:center;
  justify-content:space-between;min-height:92px;gap:16px}
.logo{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff;flex-shrink:0}
/* The mark is now artwork, not a one colour drawing, so it is sized by height
   and keeps its own proportions. It is taller than it is wide. */
.logo .markimg{height:72px;width:auto;display:block;flex-shrink:0;margin:-6px 0}
.logo svg{width:42px;height:42px;color:var(--accent);flex-shrink:0}
.logo-text{display:flex;flex-direction:column;line-height:1}
.logo-text .l1{font-family:var(--serif);font-size:10px;font-weight:500;
  letter-spacing:.24em;color:var(--accent)}
.logo-text .l2{font-family:var(--serif);font-size:19px;font-weight:700;
  letter-spacing:.015em;color:#fff;margin-top:4px}
.logo-text .l3{font-family:var(--serif);font-size:9.5px;color:var(--accent);
  margin-top:7px;padding-top:6px;position:relative;white-space:nowrap}
.logo-text .l3::before{content:"";position:absolute;top:0;left:0;width:58px;height:1px;
  background:var(--accent);opacity:.85}
@media(max-width:520px){
  .logo svg{width:34px;height:34px}
  .logo .markimg{height:54px}
  .logo-text .l2{font-size:16px}
  .logo-text .l3{display:none}
}

.menu{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0}
.menu > li{position:relative}
.menu > li > a,.menu > li > button{display:flex;align-items:center;gap:5px;
  color:rgba(255,255,255,.9);text-decoration:none;font-size:13.5px;font-weight:500;
  padding:10px 11px;border-radius:7px;background:none;border:none;font-family:inherit;cursor:pointer;
  white-space:nowrap}
.menu > li > a:hover,.menu > li > button:hover{background:rgba(255,255,255,.1);color:#fff}
.menu > li > a.active{background:rgba(255,255,255,.14);color:#fff}
.nav-cta{background:var(--accent)!important;color:var(--deep)!important;font-weight:700!important;
  padding:10px 20px!important;border-radius:999px!important}
.nav-cta:hover{background:#FFFDF8!important}

.dropdown{position:absolute;top:calc(100% + 6px);left:0;background:#fff;border:1px solid var(--line);
  border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.16);min-width:262px;padding:7px;
  opacity:0;visibility:hidden;transform:translateY(-6px);transition:.16s;list-style:none;margin:0}
.menu li:hover .dropdown,.dropdown:hover,.dropdown.open{opacity:1;visibility:visible;transform:translateY(0)}
.dropdown a{display:block;padding:9px 12px;text-decoration:none;color:var(--ink);
  border-radius:7px;font-size:14px}
.dropdown a:hover{background:var(--paper-deep)}
.dropdown a small{display:block;color:var(--muted);font-size:12px;margin-top:1px}
.dropdown .free{color:var(--mid);font-weight:700}
.dd-head{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
  padding:9px 12px 4px;font-weight:700}
.dd-line{height:1px;background:var(--line);margin:6px 8px}

/* ---- second level: Islamic Education and Academic Education ----
   Opens to the right on a desktop, and folds out underneath on a phone,
   where there is nowhere to the right to open into. */
.dropdown li.has-sub{position:relative}
.subbtn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;
  padding:9px 12px;border:none;background:none;font-family:inherit;font-size:14px;
  color:var(--ink);text-align:left;border-radius:7px;cursor:pointer}
.subbtn > span{display:block;flex:1;min-width:0}
.subbtn small{display:block;color:var(--muted);font-size:12px;margin-top:1px;font-weight:400}
.subbtn > i{font-size:10px;color:var(--muted);flex-shrink:0}
.dropdown li.has-sub:hover > .subbtn,.subbtn[aria-expanded="true"]{background:var(--paper-deep)}
.subdrop{position:absolute;top:-7px;left:calc(100% + 5px);background:#fff;
  border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.16);
  min-width:272px;padding:7px;list-style:none;margin:0;
  opacity:0;visibility:hidden;transform:translateX(-6px);transition:.16s}
.dropdown li.has-sub:hover > .subdrop,.subdrop:hover,.subdrop.open{
  opacity:1;visibility:visible;transform:translateX(0)}
/* A 5px gap between the menu item and its submenu is enough to lose the
   hover while the mouse crosses it, which closes both. This invisible strip
   bridges the gap so the pointer never leaves. */
.subdrop::before{content:"";position:absolute;top:0;left:-9px;width:9px;height:100%}
.subdrop.flip::before{left:auto;right:-9px}
/* if the menu is near the right edge of the window, open to the left instead */
.subdrop.flip{left:auto;right:calc(100% + 5px);transform:translateX(6px)}
.dropdown li.has-sub:hover > .subdrop.flip,.subdrop.flip.open{transform:translateX(0)}

/* 1080, not 900. The nav collapses to the burger at 1080 (see below), so the
   submenus have to switch to their stacked form at the same width. When these
   two disagreed, every window between 901 and 1080 put the nav in mobile mode
   while the submenus still tried to fly out to the right of a vertical list,
   and they opened in the wrong place or not at all. */
@media(max-width:1080px){
  .subbtn{color:rgba(255,255,255,.9)}
  .subbtn small{color:rgba(255,255,255,.55)}
  .subbtn > i{color:rgba(255,255,255,.55);transition:transform .16s}
  .subbtn[aria-expanded="true"] > i{transform:rotate(90deg)}
  .subbtn[aria-expanded="true"]{background:rgba(255,255,255,.1)}
  .subdrop{position:static;opacity:1;visibility:hidden;transform:none;display:none;
    box-shadow:none;background:rgba(255,255,255,.06);border:none;margin:2px 0 6px;min-width:0}

  /* A tap on a phone leaves the element :hover for as long as it stays
     tapped, so a hover rule is live on touch. This used to read
     ".dropdown li.has-sub:hover > .subdrop{display:none}", which outranks
     ".subdrop.open{display:block}" four classes to two. The button opened,
     the arrow turned, and the panel was pushed straight back to display:none.
     The open rule now carries the heavier selector, so nothing can outrank
     it, and the hover rule is gone rather than fought with. */
  .dropdown li.has-sub > .subdrop.open{display:block;visibility:visible}

  .subdrop a{color:rgba(255,255,255,.9)}
  .subdrop a small,.subdrop .dd-head{color:rgba(255,255,255,.55)}
  .subdrop .dd-line{background:rgba(255,255,255,.15)}
  /* the second level is indented so it reads as belonging to the row above */
  .subdrop{border-left:2px solid rgba(255,255,255,.18);border-radius:0 8px 8px 0;padding-left:6px}
  .subdrop a{padding-left:14px}
}

/* Open on hover only where hovering is real. A phone reports hover:none, and
   without this the fly-out rules above still applied to it, which is how a
   tapped menu could open and shut in the same gesture. */
@media(hover:none){
  .menu li:hover .dropdown{opacity:0;visibility:hidden}
  .menu li .dropdown.open{opacity:1;visibility:visible}
  .dropdown li.has-sub:hover > .subdrop{opacity:0;visibility:hidden}
  .dropdown li.has-sub > .subdrop.open{opacity:1;visibility:visible}
  .dropdown li.has-sub:hover > .subbtn{background:none}
  .subbtn[aria-expanded="true"]{background:rgba(255,255,255,.1)}
}

.burger{display:none;background:none;border:none;color:#fff;font-size:21px;cursor:pointer;padding:8px}
@media(max-width:1080px){
  .burger{display:block}
  .menu{position:absolute;top:78px;left:0;right:0;background:var(--deep);flex-direction:column;
    align-items:stretch;gap:0;padding:10px;display:none;max-height:78vh;overflow-y:auto}
  .menu.open{display:flex}
  .menu > li > a,.menu > li > button{width:100%;justify-content:space-between;padding:13px}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;display:none;
    box-shadow:none;background:rgba(255,255,255,.07);border:none;margin:0 0 6px}
  .dropdown.open{display:block}
  .dropdown a{color:rgba(255,255,255,.9)}
  .dropdown a:hover{background:rgba(255,255,255,.1)}
  .dropdown a small,.dd-head{color:rgba(255,255,255,.55)}
  .dd-line{background:rgba(255,255,255,.15)}
  .nav-cta{text-align:center;margin-top:6px}
}

/* ---------- HERO ---------- */
/* home page only: big headline over a photo, one line, one button */
.hero.bighero{background:#0F1B33 url(photos/hero-books.jpg) center/cover no-repeat;
  min-height:clamp(400px,50vw,540px);display:flex;align-items:center;justify-content:center;padding:48px 0}
.hero.bighero::before{content:"";position:absolute;inset:0;background:rgba(10,18,38,.68);z-index:0}
.hero.bighero h1{font-family:var(--sans);font-weight:700;font-size:clamp(44px,9vw,96px);line-height:1.04;
  letter-spacing:-.01em;margin:0 0 18px;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.hero.bighero p{font-size:clamp(18px,2.5vw,26px);line-height:1.35;max-width:880px;opacity:1;margin:0 auto 26px;
  text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero.bighero .btn{border-radius:6px;text-transform:uppercase;letter-spacing:.04em;font-weight:700}
.hero{background:linear-gradient(152deg,var(--deep),var(--light));color:#fff;
  padding:64px 0 68px;text-align:center;position:relative;overflow:hidden}
.hero.small{padding:44px 0 46px}
.cup-trophy{display:block;height:200px;width:auto;margin:0 auto 18px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}
.hero > *{position:relative;z-index:1}
.eyebrow{display:inline-block;border:1.5px solid rgba(255,255,255,.3);border-radius:999px;
  padding:6px 17px;font-size:11px;letter-spacing:.16em;text-transform:uppercase;margin-bottom:20px}
h1{font-family:var(--serif);font-size:clamp(27px,5vw,43px);line-height:1.22;margin:0 0 15px;font-weight:600}
.hero p{font-size:clamp(15px,2.2vw,17.5px);opacity:.93;max-width:650px;margin:0 auto 10px}
.ayah{font-size:13.5px;opacity:.72;font-style:italic;margin:22px auto 0;max-width:600px}

.btn{display:inline-block;padding:14px 30px;border-radius:999px;font-weight:600;font-size:15.5px;
  text-decoration:none;border:2px solid transparent;cursor:pointer;transition:.18s;font-family:inherit}
.btn-accent{background:var(--accent);color:var(--deep);border-color:var(--mid)}
.btn-accent:hover{background:#FFFDF8;border-color:var(--deep)}
/* DARK BACKGROUNDS ONLY: the hero, and any band-deep section. It is white
   text on nothing, so on a white card it is an invisible button that still
   works, which is worse than one that is plainly broken. On a light
   background use .btn-ghost instead. */
.btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.45)}
.btn-outline:hover{background:rgba(255,255,255,.12)}
.btn-solid{background:var(--mid);color:#fff;border-color:var(--mid)}
.btn-solid:hover{background:var(--deep)}
.btn-ghost{background:#fff;color:var(--mid);border-color:var(--line)}
.cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}

/* ---------- SECTIONS ---------- */
section{padding:56px 0}
.band{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band-deep{background:var(--deep);color:#fff}
.band-deep h2,.band-deep h3{color:var(--accent-soft)}
.band-deep .lead,.band-deep p{color:rgba(255,255,255,.82)}
h2{font-family:var(--serif);font-size:clamp(21px,3.3vw,29px);color:var(--mid);margin:0 0 8px;font-weight:600}
h3{font-family:var(--serif);color:var(--mid);font-weight:600}
.lead{color:var(--muted);margin:0 0 28px;max-width:680px;font-size:16px}
.center{text-align:center}
.center .lead{margin-left:auto;margin-right:auto}

.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
@media(max-width:860px){.grid-4{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;position:relative}
.card.feature{border:2px solid var(--mark)}
.card h3{margin:0 0 6px;font-size:18px}
.card .meta{font-size:12.5px;color:var(--muted);font-weight:700;margin:0 0 13px;
  text-transform:uppercase;letter-spacing:.07em}
.card ul{margin:0;padding-left:19px}
.card li{margin-bottom:6px;font-size:14.5px}
.card p{font-size:14.5px}
.tag{position:absolute;top:-11px;right:16px;background:var(--mid);color:var(--accent);
  font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  padding:4px 12px;border-radius:999px;white-space:nowrap}
.tag.gold{background:var(--mark);color:#fff}

/* ---------- RECORDINGS OF PAST EVENTS ----------
   A still with a play button, swapped for a real player only when clicked.
   The 16:9 box is fixed before the picture arrives, so the page does not
   jump about as thumbnails load. */
.vidgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px}
.vid{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column}
.vidplay,.vid iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:var(--deep)}
.vidplay{position:relative;padding:0;cursor:pointer}
.vidplay img{width:100%;height:100%;object-fit:cover;display:block}
.vidicon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.vidicon i{width:58px;height:58px;border-radius:50%;background:rgba(14,30,60,.82);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:19px;padding-left:4px;
  transition:.18s}
.vidplay:hover .vidicon i{background:var(--mark);transform:scale(1.08)}
.vidplay:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.vidmeta{padding:15px 17px 18px}
.vidmeta h3{margin:0 0 4px;font-size:17px}
.vidwhen{margin:0;color:var(--muted);font-size:13.5px}
.vidblurb{margin:8px 0 0;color:var(--muted);font-size:14px;line-height:1.55}

/* ---------- RESTORED DRAFT NOTICE ----------
   Shown at the top of a form whose answers have been brought back from this
   browser. It carries the Clear button, which matters on a shared computer:
   without it there would be no way to get rid of what the last person typed. */
.draftbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;
  background:var(--accent-soft);border:1px solid var(--accent);border-radius:10px;
  padding:11px 14px;margin:0 0 18px;font-size:14px;color:var(--ink);line-height:1.5}
.draftbar i{color:var(--mid);margin-right:6px}
.draftbar button{background:none;border:1.5px solid var(--mid);color:var(--mid);
  border-radius:999px;padding:6px 15px;font-family:inherit;font-size:13px;font-weight:600;
  cursor:pointer;white-space:nowrap}
.draftbar button:hover{background:var(--mid);color:#fff}
@media(max-width:560px){ .draftbar button{width:100%} }

/* An inline badge for use inside a sentence or a list item. .tag cannot do
   this job: it is absolutely positioned, so it would fly to the corner of
   the nearest positioned ancestor rather than sit beside the words. */
.itag{display:inline-block;margin-left:9px;padding:3px 10px;border-radius:999px;
  background:var(--paper-deep);color:var(--mid);font-size:10.5px;font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;vertical-align:1px}
.itag.hot{background:var(--mid);color:var(--accent)}
.itag.free{background:var(--accent-soft);color:var(--mid);box-shadow:inset 0 0 0 1px var(--accent)}

/* A list where each line is a thing in its own right rather than a run of
   prose: subjects, levels, anything with a badge or a second line under it.
   The default list spacing crushes these together, and on a phone a wrapped
   item then reads as part of the one above it. */
.spaced{margin:0;padding-left:20px}
.spaced > li{margin-bottom:11px;line-height:1.55}
.spaced > li:last-child{margin-bottom:0}
.spaced .sub{display:block;margin-top:2px;color:var(--muted);font-size:14px;line-height:1.5}
@media(max-width:560px){
  .spaced > li{margin-bottom:14px}
  .itag{margin-left:0;margin-top:5px;display:inline-block}
  .spaced > li > .itag{display:block;width:max-content}
}

.ico{width:44px;height:44px;border-radius:10px;background:var(--paper-deep);color:var(--mid);
  display:flex;align-items:center;justify-content:center;font-size:18px;margin-bottom:13px}
.ico.filled{background:var(--mid);color:var(--accent)}

.pills{display:flex;flex-wrap:wrap;gap:10px}
.pill{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 18px;
  font-size:14.5px;display:inline-flex;align-items:center;gap:8px}
.pill i{color:var(--mid)}

.step-row{display:flex;gap:18px;align-items:flex-start;margin-bottom:22px}
.step-num{flex-shrink:0;width:38px;height:38px;border-radius:50%;background:var(--mid);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px}
.step-row h4{margin:4px 0 3px;font-size:16.5px;font-family:var(--serif);color:var(--mid)}
.step-row p{margin:0;color:var(--muted);font-size:15px}

.photo{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.photo img{width:100%;height:100%;object-fit:cover}
/* A photo that matches the height of the text beside it, whatever that turns
   out to be. The image is taken out of the flow so it cannot set the row
   height itself, which is what made it run on past the writing. */
.photo.fill{position:relative;height:100%;min-height:260px}
.photo.fill img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo-slot{background:var(--paper-deep);border:2px dashed var(--line);border-radius:var(--radius);
  min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:var(--muted);padding:24px;font-size:13.5px}
.photo-slot i{font-size:26px;margin-bottom:10px;opacity:.5}
.photo-slot b{display:block;color:var(--ink);margin-bottom:5px;font-size:14.5px}

details{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 19px;margin-bottom:10px}
summary{font-weight:600;cursor:pointer;font-size:15.5px;color:var(--mid)}
details p{margin:11px 0 0;color:var(--muted);font-size:15px}

blockquote{border-left:3px solid var(--mark);margin:0;padding:6px 0 6px 20px;
  font-family:var(--serif);font-size:18px;color:var(--mid);font-style:italic}
.band-deep blockquote{color:var(--accent-soft)}

/* ---------- DONATE ---------- */
.project{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;display:flex;gap:18px;align-items:flex-start;margin-bottom:16px}
.project .ico{flex-shrink:0;margin:0}
.project h3{margin:0 0 5px;font-size:17.5px}
.project p{margin:0;color:var(--muted);font-size:14.5px}
.give-box{background:var(--mid);color:#fff;border-radius:var(--radius);padding:28px}
.give-box h3{color:var(--accent-soft);margin-top:0}
.give-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;
  border-bottom:1px solid rgba(255,255,255,.14);font-size:15px}
.give-row:last-child{border-bottom:none}
.give-row span:first-child{opacity:.72}
.give-row span:last-child{font-weight:600;text-align:right}

/* ---------- FORM ---------- */
form{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px;max-width:650px}
.field{margin-bottom:19px}
label{display:block;font-weight:600;font-size:14.5px;margin-bottom:6px}
.req{color:var(--mark)}
.hint{font-weight:400;color:var(--muted);font-size:13px}
input[type=text],input[type=tel],input[type=email],select,textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:9px;
  font-size:15.5px;font-family:inherit;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--light);outline-offset:1px;
  border-color:var(--light)}
textarea{min-height:92px;resize:vertical}
.checks{display:flex;flex-direction:column;gap:9px}
.check{display:flex;align-items:flex-start;gap:11px;background:var(--paper);border:1px solid var(--line);
  border-radius:9px;padding:12px 15px;cursor:pointer}
.check input{margin-top:3px;width:17px;height:17px;accent-color:var(--mid)}
.check span{font-size:14.5px}
.check b{color:var(--mid)}
button[type=submit]{width:100%;background:var(--mid);color:#fff;border:none;padding:16px;
  border-radius:999px;font-size:16.5px;font-weight:700;cursor:pointer;font-family:inherit}
button[type=submit]:hover{background:var(--deep)}
button[type=submit]:disabled{opacity:.6;cursor:not-allowed}
.formnote{font-size:13px;color:var(--muted);margin-top:15px;text-align:center}
/* a heading that breaks a long form into parts, so it feels shorter */
.formstep{font-family:var(--serif);font-size:19px;color:var(--deep);margin:34px 0 4px;
  padding-top:22px;border-top:1px solid var(--line)}
.formlead{color:var(--muted);font-size:14.5px;margin:0 0 18px}
input[type=file]{width:100%;padding:11px 13px;border:1px dashed var(--light);border-radius:9px;
  font-size:14.5px;font-family:inherit;background:var(--paper);color:var(--ink);cursor:pointer}
input[type=file]::file-selector-button{background:var(--mid);color:#fff;border:none;
  padding:8px 15px;border-radius:999px;font-family:inherit;font-size:13.5px;font-weight:600;
  cursor:pointer;margin-right:12px}
.cvnote{font-size:13px;color:var(--muted);margin:7px 0 0;min-height:1em}
/* a box the CV filled in for you, marked so you know to check it */
input.wasread{background:var(--accent-soft);border-color:var(--accent)}
.cvraw{margin-bottom:19px;border:1px solid var(--line);border-radius:9px;padding:0 14px}
.cvraw summary{cursor:pointer;font-weight:600;font-size:14.5px;padding:13px 0;color:var(--mid)}
.cvraw textarea{margin:0 0 14px;font-size:13.5px}
.cvnote.good{color:#1B7A4B;font-weight:600}
.cvnote.bad{color:#A8332B;font-weight:600}
#success{display:none;background:var(--card);border:2px solid var(--mark);border-radius:var(--radius);
  padding:36px;max-width:650px;text-align:center}
#success h3{margin:0 0 10px;font-size:23px}
#success p{color:var(--muted);margin:0 0 20px}
.wa{display:inline-block;background:#25D366;color:#fff;padding:14px 28px;border-radius:999px;
  font-weight:700;text-decoration:none;font-size:15.5px}

/* ---------- FLOATING CHAT ---------- */
#chatLauncher{position:fixed;right:20px;bottom:20px;z-index:200;width:58px;height:58px;
  border-radius:50%;background:var(--mark);color:#fff;border:none;cursor:pointer;
  font-size:23px;box-shadow:0 6px 22px rgba(0,0,0,.26);display:flex;align-items:center;
  justify-content:center;transition:.18s}
#chatLauncher:hover{transform:scale(1.06)}
#chatLauncher .dot{position:absolute;top:2px;right:2px;width:13px;height:13px;border-radius:50%;
  background:#25D366;border:2.5px solid var(--paper)}

#chatPanel{position:fixed;right:20px;bottom:88px;z-index:200;width:340px;max-width:calc(100vw - 40px);
  background:#fff;border-radius:16px;box-shadow:0 14px 48px rgba(0,0,0,.26);overflow:hidden;
  display:none;flex-direction:column;max-height:min(560px,calc(100vh - 120px))}
#chatPanel.open{display:flex}
.chat-head{background:var(--deep);color:#fff;padding:16px 18px;display:flex;align-items:center;gap:11px}
.chat-head svg{width:28px;height:28px;color:var(--accent);flex-shrink:0}
.chat-head .markimg{height:30px;width:auto;flex-shrink:0}
.chat-head b{display:block;font-size:14.5px;font-family:var(--serif)}
.chat-head small{opacity:.68;font-size:11.5px}
.chat-head button{margin-left:auto;background:none;border:none;color:#fff;font-size:17px;cursor:pointer;opacity:.75}
.chat-body{padding:16px;overflow-y:auto;flex:1;background:var(--paper);font-size:14.5px;position:relative}
.bubble{background:#fff;border:1px solid var(--line);border-radius:12px 12px 12px 4px;
  padding:11px 14px;margin-bottom:11px;max-width:92%}
.bubble.me{background:var(--mid);color:#fff;border:none;border-radius:12px 12px 4px 12px;margin-left:auto}
.bubble p{margin:0 0 7px}.bubble p:last-child{margin:0}
.bubble .ar{font-size:17px;line-height:1.9;color:var(--deep);font-weight:600}
.bubble em{color:var(--muted);font-style:normal;font-size:13.5px}
/* three dots while an answer is coming, so nothing appears all at once */
.typing{display:inline-flex;gap:5px;padding:2px 0}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--light);display:block;
  animation:chatdot 1.1s infinite ease-in-out}
.typing i:nth-child(2){animation-delay:.18s}
.typing i:nth-child(3){animation-delay:.36s}
@keyframes chatdot{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.chat-opts{display:flex;flex-direction:column;gap:7px;margin-top:4px}
.chat-opts button{text-align:left;background:#fff;border:1px solid var(--light);color:var(--mid);
  border-radius:9px;padding:9px 13px;font-size:13.5px;cursor:pointer;font-family:inherit;font-weight:500}
.chat-opts button:hover{background:var(--paper-deep)}
.chat-foot{padding:12px 14px;border-top:1px solid var(--line);background:#fff}
.chat-foot a{display:flex;align-items:center;justify-content:center;gap:9px;background:#25D366;
  color:#fff;padding:12px;border-radius:999px;text-decoration:none;font-weight:700;font-size:14.5px}

/* The brand panel on the About page. Rendered at 1500px and shown at about a
   third of that, so it stays sharp on a phone instead of going soft. */
.brandpanel img{display:block;width:100%;height:auto;border-radius:var(--radius);
  box-shadow:0 10px 34px rgba(14,30,60,.22)}
/* On a navy band the panel is navy on navy and all but disappears, so it gets
   a gold hairline and a little light behind it to read as a framed plaque. */
.band-deep .brandpanel img{border:1px solid rgba(230,211,166,.45);
  box-shadow:0 0 0 7px rgba(255,255,255,.04), 0 14px 40px rgba(0,0,0,.3)}

/* ---------- THE DONOR DASHBOARD ---------- */
.proj{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px 26px;margin:0 0 16px}
.projhead{display:flex;justify-content:space-between;align-items:baseline;gap:14px;
  flex-wrap:wrap;margin:0 0 6px}
.projhead h3{margin:0;font-size:20px}
.projhead .upd{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.proj .blurb{color:var(--muted);margin:0 0 16px;font-size:15.5px}
.barlabel{display:flex;justify-content:space-between;align-items:baseline;
  font-size:13.5px;color:var(--muted);margin:0 0 5px}
.barlabel b{color:var(--deep);font-size:14.5px}
.bar{position:relative;height:17px;background:var(--paper-deep);border-radius:999px;
  overflow:hidden;margin:0 0 16px}
.bar .fill{position:absolute;inset:0 auto 0 0;border-radius:999px;min-width:3px}
/* two bars, two colours, and each one is labelled above it so the colour is
   never carrying the meaning on its own */
.bar .fill.money{background:var(--mid)}
.bar .fill.work{background:#A8801F}
.bar i{position:absolute;right:9px;top:0;line-height:17px;font-style:normal;
  font-size:11px;font-weight:700;color:var(--deep);letter-spacing:.04em}
.dashnote{background:var(--paper-deep);border:1px dashed var(--line);border-radius:var(--radius);
  padding:18px 22px;color:var(--muted);margin:0;font-size:15.5px}
table.spend td{vertical-align:top}
table.spend a{color:var(--mid);font-weight:600}

/* a drawn banner across the head of a class card.
   The icon tile is hidden where a banner is present, or the card says the
   same thing twice. */
.cardbanner + .ico, .cardbanner + .tag + .ico{display:none}
/* Inset, not bled to the card edge. Bleeding it would need overflow:hidden on
   the card, which would clip the Free tag that sits above the top edge. */
.cardbanner{display:block;width:100%;height:auto;margin:0 0 18px;border-radius:5px}

/* ---------- PLAIN LISTS, TABLES AND PANELS ON POLICY PAGES ---------- */
table.plain{width:100%;border-collapse:collapse;font-size:15.5px;background:var(--card);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
table.plain th{background:var(--deep);color:var(--accent);text-align:left;padding:13px 18px;
  font-size:13px;letter-spacing:.08em;text-transform:uppercase;font-weight:600}
table.plain td{border-top:1px solid var(--line);padding:14px 18px;vertical-align:top;
  line-height:1.55;color:var(--muted)}
table.plain td strong{color:var(--ink)}
@media(max-width:620px){table.plain,table.plain tbody,table.plain tr,table.plain td{display:block}
  table.plain th{display:none}
  table.plain td{border-top:none;padding:6px 16px}
  table.plain tr{border-top:1px solid var(--line);padding:8px 0}}

/* ---- the newsletter popup ----
   Deliberately quiet: no full black backdrop, no animation that jumps, and a
   close button big enough to hit on a phone without zooming. */
.newsmodal{position:fixed;inset:0;z-index:120;display:flex;align-items:center;
  justify-content:center;padding:20px;background:rgba(14,30,60,.55);
  opacity:0;transition:opacity .22s ease}
.newsmodal.open{opacity:1}
.newsbox{background:var(--card);border-radius:var(--radius);max-width:430px;width:100%;
  padding:30px 28px 24px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.28);
  transform:translateY(14px);transition:transform .22s ease;max-height:92vh;overflow:auto}
.newsmodal.open .newsbox{transform:translateY(0)}
.newsx{position:absolute;top:10px;right:10px;width:38px;height:38px;border:none;
  background:transparent;color:var(--muted);font-size:17px;cursor:pointer;border-radius:50%}
.newsx:hover{background:var(--paper-deep);color:var(--ink)}
.newseyebrow{display:block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mark);font-weight:700;margin-bottom:9px}
.newsbox h3{margin:0 0 10px;font-size:21px;font-family:var(--serif);line-height:1.3}
.newsbox p{color:var(--muted);font-size:14.5px;line-height:1.6;margin:0 0 16px}
/* the site's forms are panels in their own right; inside the popup the box
   is the popup, so the panel styling is taken back off */
.newsbox form{padding:0;margin:0;background:none;border:none;box-shadow:none;border-radius:0}
.newsbox input{width:100%;padding:12px 14px;border:1px solid var(--line);
  border-radius:9px;font:inherit;font-size:15px;margin-bottom:10px;background:#fff}
.newsbox input:focus{outline:none;border-color:var(--mark);box-shadow:0 0 0 3px rgba(168,128,31,.15)}
.newsbox button[type=submit]{width:100%;padding:13px;border:none;border-radius:9px;
  background:var(--mid);color:#fff;font:inherit;font-weight:600;font-size:15px;cursor:pointer}
.newsbox button[type=submit]:hover{background:var(--deep)}
.newsbox button[type=submit]:disabled{opacity:.6;cursor:default}
.newsnote{font-size:12.5px;margin:12px 0 0 !important}
#newsDone{display:none;text-align:center;padding:8px 0}
#newsDone h4{font-family:var(--serif);font-size:19px;color:var(--mid);margin:0 0 8px}
#newsDone p{margin:0}
@media(max-width:480px){.newsbox{padding:26px 20px 20px}.newsbox h3{font-size:19px}}

/* The giving column on Support Us. One centred column rather than a tall left
   side next to an empty right side, which is what it was before. */
.givecol{max-width:780px;margin:0 auto}
@media(max-width:760px){ .givecol .grid-2{grid-template-columns:1fr} }
/* Account details in a narrow column: label above value, not beside it.
   Side by side, "Account name" and a three part name both wrap and the box
   ends up looking like a broken table. */
.give-box.stack .give-row{display:block;padding:10px 0}
.give-box.stack .give-row span:first-child{display:block;font-size:11.5px;letter-spacing:.11em;
  text-transform:uppercase;opacity:.66;margin-bottom:4px}
.give-box.stack .give-row span:last-child{display:block;text-align:left;font-size:15.5px;
  font-weight:600;line-height:1.4}

ul.ticks{list-style:none;padding:0;margin:0}
ul.ticks li{position:relative;padding:0 0 13px 30px;font-size:16px;line-height:1.6}
ul.ticks li::before{content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;
  position:absolute;left:0;top:1px;color:var(--mid);font-size:14px}
.box-light{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);
  border-radius:var(--radius);padding:24px 26px}
.box-light h4{margin:0 0 12px;font-family:var(--serif);font-size:18px;color:var(--accent)}
.box-light ol{margin:0;padding-left:19px}
.box-light li{margin-bottom:9px;font-size:15px;line-height:1.6}
.box-light li::marker{color:var(--accent);font-weight:700}

/* ---------- FOOTER ---------- */
footer{background:var(--deep);color:rgba(255,255,255,.84);padding:48px 0 30px;font-size:14.5px}
/* Four columns, so the Academic classes get a line each the way the Islamic
   ones do, instead of being summed up in one link. */
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.1fr;gap:28px;margin-bottom:30px}
@media(max-width:1000px){.foot-grid{grid-template-columns:1fr 1fr;gap:26px}}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr;gap:22px}}
/* the small "free" tag beside the Islamic Education heading */
.footfree{display:inline-block;margin-left:7px;padding:2px 8px;border-radius:999px;
  background:var(--mark);color:#fff;font-family:var(--sans);font-size:10px;
  letter-spacing:.1em;text-transform:uppercase;font-weight:700;vertical-align:2px}
footer h5{font-family:var(--serif);color:var(--accent-soft);font-size:15px;margin:0 0 10px;font-weight:600}
footer a{color:rgba(255,255,255,.84);text-decoration:none;display:block;padding:3px 0}
footer a:hover{color:var(--accent-soft)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.14);padding-top:20px;text-align:center;
  font-size:13px;opacity:.68;font-style:italic;font-family:var(--serif)}
/* The copyright notice. Upright and plain, because .foot-bottom above it
   is italic serif and a legal line in that face reads as sentiment. */
.foot-copy{text-align:center;margin-top:16px;font-size:12.5px;font-style:normal;
  font-family:var(--sans,inherit);color:rgba(255,255,255,.55)}
.credit{text-align:center;margin-top:14px;font-size:11.5px;letter-spacing:.04em;
  color:rgba(255,255,255,.42)}
.credit-name{color:rgba(255,255,255,.62);text-decoration:none;display:inline;padding:0;
  border-bottom:1px solid rgba(255,255,255,.22)}
.credit-name:hover{color:var(--accent);border-bottom-color:var(--accent)}



/* ==========================================================
   THE SIX PALETTES
   See assets/palette-options.png for a picture of all six.
   To switch, copy ONE block below over the nine colour lines
   at the very top of this file. Nothing else changes.

   See assets/palette-brights.png for a picture of these four.

   ---- S : DEEP BLUE AND TURQUOISE  (currently active) ----
   --deep:#0D1F4C; --mid:#163A86; --light:#2A5DBF;
   --accent:#19D3C5; --accent-soft:#C5F5F0; --mark:#11AFA3;
   --paper:#F6FAFE; --paper-deep:#E6F0FA;

   ---- T : DEEP BLUE AND CORAL ----
   --deep:#0D1F4C; --mid:#163A86; --light:#2A5DBF;
   --accent:#FF6B5A; --accent-soft:#FFD9D3; --mark:#E8533F;
   --paper:#F8F9FE; --paper-deep:#E9EDF9;

   ---- U : DEEP BLUE AND AMBER ----
   --deep:#0D1F4C; --mid:#163A86; --light:#2A5DBF;
   --accent:#FFA81E; --accent-soft:#FFE6B8; --mark:#E08C00;
   --paper:#F8F9FE; --paper-deep:#E9EDF9;

   ---- V : DEEP BLUE AND PINK ----
   --deep:#0D1F4C; --mid:#163A86; --light:#2A5DBF;
   --accent:#FF4D8D; --accent-soft:#FFD3E3; --mark:#E62E74;
   --paper:#FBF8FC; --paper-deep:#F2E9F2;

   ---- O : DEEP BLUE AND CRIMSON ----
   --deep:#111F45; --mid:#1A3270; --light:#2A4B9B;
   --accent:#D1343F; --accent-soft:#FBD5D8; --mark:#BC2733;
   --paper:#F8F9FD; --paper-deep:#E9EDF7;

   See assets/palette-options-2.png for a picture of these six.

   ---- I : INDIGO AND APRICOT  (currently active) ----
   --deep:#262457; --mid:#35337A; --light:#504DA8;
   --accent:#F0944F; --accent-soft:#FBE0CA; --mark:#E07E33;
   --paper:#F9F8FD; --paper-deep:#EDEBF8;

   ---- J : TEAL AND CORAL ----
   --deep:#0E4B57; --mid:#15687A; --light:#1F8DA3;
   --accent:#FF7F6B; --accent-soft:#FFD8D1; --mark:#E8604A;
   --paper:#F5FBFC; --paper-deep:#E2F1F4;

   ---- K : PLUM AND SKY ----
   --deep:#3A2250; --mid:#55336F; --light:#754A94;
   --accent:#4BB8E8; --accent-soft:#CFEBF9; --mark:#2E9CCC;
   --paper:#FAF8FC; --paper-deep:#F0E9F5;

   ---- L : SLATE AND TANGERINE ----
   --deep:#243445; --mid:#35506B; --light:#4C7098;
   --accent:#F08A3C; --accent-soft:#FBDFC6; --mark:#DE7524;
   --paper:#F7FAFC; --paper-deep:#E8EFF5;

   ---- M : AUBERGINE AND JADE ----
   --deep:#35213F; --mid:#4C3059; --light:#6B457D;
   --accent:#2BBFA6; --accent-soft:#C9F0E8; --mark:#1E9E88;
   --paper:#FAF7FB; --paper-deep:#F0E9F3;

   ---- N : PETROL AND SAND ----
   --deep:#123C4C; --mid:#1B5468; --light:#27748F;
   --accent:#E9A03B; --accent-soft:#FAE6C2; --mark:#D08A24;
   --paper:#F7FBFC; --paper-deep:#E5F0F3;

   See assets/palette-options.png for a picture of the eight below.

   ---- G : BRIGHT BLUE AND CORAL ----
   --deep:#14315C; --mid:#1E4A8A; --light:#3B74C4;
   --accent:#E8614A; --accent-soft:#FFD9CF; --mark:#E8614A;
   --paper:#F7FAFE; --paper-deep:#E8F0FA;

   ---- H : BRIGHT BLUE AND TURQUOISE ----
   --deep:#14315C; --mid:#1E4A8A; --light:#3B74C4;
   --accent:#19A8B8; --accent-soft:#CDEFF3; --mark:#19A8B8;
   --paper:#F7FAFE; --paper-deep:#E8F0FA;

   ---- A : NAVY AND IVORY  (no metallic at all) ----
   --deep:#12243D; --mid:#1B3A5C; --light:#2C5583;
   --accent:#E8DFCC; --accent-soft:#F5F0E4; --mark:#1B3A5C;
   --paper:#F8F7F4; --paper-deep:#EDEAE3;

   ---- B : NAVY AND CLAY  (currently active) ----
   --deep:#12243D; --mid:#1B3A5C; --light:#2C5583;
   --accent:#C25E4E; --accent-soft:#F0D3CC; --mark:#C25E4E;
   --paper:#F8F6F3; --paper-deep:#EDE7E2;

   ---- C : CHARCOAL AND STONE  (quiet, neutral) ----
   --deep:#1F2124; --mid:#33363B; --light:#4A4E55;
   --accent:#C9BFAE; --accent-soft:#EAE3D7; --mark:#33363B;
   --paper:#F7F6F3; --paper-deep:#EBE8E2;

   ---- D : PLUM AND DUSTY ROSE  (softer, warmer) ----
   --deep:#241B2E; --mid:#3B2D4A; --light:#574268;
   --accent:#C98B96; --accent-soft:#EED8DC; --mark:#A5616F;
   --paper:#F8F5F6; --paper-deep:#EDE6E8;

   ---- E : INK AND COPPER  (strong contrast) ----
   --deep:#15181C; --mid:#262B32; --light:#3A4149;
   --accent:#B0724A; --accent-soft:#E6CDB9; --mark:#B0724A;
   --paper:#F7F6F4; --paper-deep:#EAE7E2;

   ---- F : DEEP BROWN AND SAND  (old manuscript) ----
   --deep:#2A211A; --mid:#43362B; --light:#5E4C3D;
   --accent:#C2A98A; --accent-soft:#EFE4D0; --mark:#5E4C3D;
   --paper:#F8F5EF; --paper-deep:#EDE6DA;
   ========================================================== */


/* ---------- FOUNDER AVATAR ---------- */
.avatar{width:78px;height:78px;border-radius:50%;background:var(--paper-deep);
  display:flex;align-items:center;justify-content:center;margin-bottom:15px;
  border:1px solid var(--line)}
.avatar img{max-width:46px;max-height:56px;width:auto;height:auto;object-fit:contain;display:block}

/* ---------- FEE BANDS ---------- */
.fees{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:860px;
  margin:0 auto 16px;text-align:left}
@media(max-width:760px){.fees{grid-template-columns:1fr}}
.fee{background:#fff;border:1px solid var(--line);border-radius:11px;padding:16px 18px}
.fee b{display:block;font-family:var(--serif);color:var(--mid);font-size:16px;margin-bottom:5px}
.fee span{display:block;color:var(--muted);font-size:14px;line-height:1.55}
.feenote{max-width:640px;margin:0 auto;color:var(--muted);font-size:14.5px;line-height:1.6}
/* The ayah under the fee note. Plain text, not a verse card, because it sits
   beside the fee paragraph rather than standing on its own. */
p.feeayah{font-family:var(--serif);font-size:clamp(18px,2.6vw,21px);line-height:2;
  color:var(--deep);margin:14px 0 0}
p.feeayah-en{font-family:var(--serif);font-style:italic;color:var(--mid);
  font-size:15.5px;line-height:1.6;margin:8px 0 0}
p.feeayah-en cite{display:block;font-family:var(--sans);font-style:normal;font-size:12px;
  letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-top:6px}
/* The age bands, sorted: the ones that pay nothing grouped together, and the
   one band that does pay set apart so nobody has to read all four to find it. */
/* A picture per course, in a tile the same size every time. The artwork is a
   mix of line drawings, calligraphy and photographs, so each one is contained
   inside the tile rather than cropped to fill it, which keeps the row even
   however different the pictures are. */
/* the type-in box that appears under a dropdown when Other is chosen */
.otherbox{margin-top:8px}

/* A notice a reader must not skim past. Red carries the weight here, and the
   stars repeat it either side so it still reads as urgent in black and white
   or to anyone who cannot tell the colour. */
h3.urgent{color:#B3261E}
h3.urgent .stars{color:#B3261E;letter-spacing:.12em;font-size:.72em;vertical-align:2px}

/* ---------- THE SWAP, AS A PICTURE ----------
   One parent buried under six grey subjects, next to four people carrying one
   coloured subject each, all of it flowing down to the children. The point is
   meant to land before anybody reads a word, so the weight is carried by the
   count of chips and by colour, not by the labels. */
.swapviz{display:grid;grid-template-columns:1fr auto 1.35fr;gap:18px;align-items:center;
  margin-top:26px}
.sv-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 22px 20px;position:relative}
.sv-together{border:2px solid var(--mid)}
.sv-tag{position:absolute;top:-11px;left:20px;background:var(--muted);color:#fff;
  font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;
  padding:4px 11px;border-radius:999px}
.sv-together .sv-tag{background:var(--mid)}

.sv-one{display:flex;align-items:center;gap:16px}
.sv-face{width:46px;height:46px;border-radius:50%;background:var(--paper-deep);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-size:18px;flex-shrink:0}
.sv-load{display:flex;flex-wrap:wrap;gap:5px}
.sv-load span{background:var(--paper-deep);border:1px solid var(--line);color:var(--muted);
  font-size:11.5px;padding:3px 8px;border-radius:6px}

.sv-people{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center}
.sv-p b{display:block;font-size:12.5px;color:var(--ink);margin:7px 0 4px;font-weight:600}
.sv-p .sv-face{margin:0 auto}
.sv-chip{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;
  color:#fff;letter-spacing:.02em}
.sv-face.c1,.sv-chip.c1{background:#2F7F7C;border-color:#2F7F7C;color:#fff}
.sv-face.c2,.sv-chip.c2{background:#BC5F39;border-color:#BC5F39;color:#fff}
.sv-face.c3,.sv-chip.c3{background:#5E8A4C;border-color:#5E8A4C;color:#fff}
.sv-face.c4,.sv-chip.c4{background:#A8801F;border-color:#A8801F;color:#fff}

/* four short lines dropping from the four people into the children's bar */
.sv-flow{display:grid;grid-template-columns:repeat(4,1fr);margin:12px 0 0;height:22px}
.sv-flow span{width:2px;height:100%;background:var(--line);margin:0 auto;position:relative}
.sv-flow span::after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid var(--line)}
.sv-kids{background:var(--mid);color:#fff;border-radius:9px;padding:11px 14px;text-align:center;
  font-weight:600;font-size:14px}
.sv-kids i{margin-right:7px;color:var(--accent)}

.sv-line{margin:14px 0 0;color:var(--muted);font-size:13.5px;line-height:1.5}
.sv-line strong{color:var(--ink)}
.sv-vs{color:var(--mark);font-size:22px;text-align:center}

@media(max-width:860px){
  .swapviz{grid-template-columns:1fr;gap:14px}
  .sv-vs{transform:rotate(90deg);font-size:19px;padding:4px 0}
}
/* On a phone four people across is too tight for the names, so they go two by
   two and the flow lines follow. */
@media(max-width:560px){
  .sv-people{grid-template-columns:repeat(2,1fr);gap:16px}
  .sv-flow{grid-template-columns:repeat(2,1fr);height:18px}
  .sv-flow span:nth-child(n+3){display:none}
  .sv-load span{font-size:11px;padding:3px 7px}
}

/* The banner across the top of a class card. A soft band so the artwork is
   what you see, rather than a dark block with something small on it. */
.classbanner{display:flex;align-items:center;justify-content:center;height:118px;
  background:var(--paper-deep);border-bottom:1px solid var(--line);
  margin:-24px -24px 18px;border-radius:var(--radius) var(--radius) 0 0;padding:14px}
.classbanner img{max-height:100%;max-width:62%;width:auto;height:auto;object-fit:contain;display:block}
@media(max-width:620px){.classbanner{height:100px}}
/* A photograph fills the band instead of sitting inside it. Drawings and
   calligraphy need the room around them; a photograph does not. */
.classbanner.photo{padding:0;background:var(--mid)}
.classbanner.photo img{max-width:100%;width:100%;height:100%;object-fit:cover}
.coursepic.photo{padding:0}
.coursepic.photo img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:cover}

.coursepic{width:96px;height:96px;border-radius:14px;background:var(--paper-deep);
  border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;overflow:hidden;padding:10px}
.coursepic img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
.card.feature:hover .coursepic{background:#fff}

.feegroup{margin-bottom:16px}
.feegroup .fee{margin-bottom:8px}
.feegroup .fee:last-child{margin-bottom:0}
.feelabel{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  font-weight:700;color:var(--muted);margin-bottom:9px}
.feegroup.paid .feelabel{color:var(--mark)}
.feegroup.paid .fee{border:1.5px solid var(--mark);background:var(--paper-deep)}

/* ---------- VERSE AND HADITH BLOCK ---------- */
.verse{background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:30px 30px 26px;text-align:center;max-width:700px;margin:0 auto}
.verse img{width:230px;max-width:70%;margin:0 auto 18px;display:block}
.verse p{font-family:var(--serif);font-size:clamp(16px,2.3vw,19.5px);line-height:1.6;
  color:var(--mid);margin:0 0 12px;font-style:italic}
.verse cite{display:block;font-family:var(--sans);font-style:normal;font-size:13px;
  letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
/* the hadith in Arabic, above its translation */
.verse p.ar{font-style:normal;font-size:clamp(19px,3vw,25px);line-height:2;color:var(--deep);
  margin:0 0 14px;letter-spacing:0}
.versebreak{border:none;border-top:1px solid var(--line);width:60px;margin:26px auto}
/* the short hadith under a hero heading */
.herohadith{font-family:var(--serif);font-style:italic;color:var(--accent-soft);
  max-width:620px;margin:18px auto 0;font-size:clamp(15px,2vw,17.5px);line-height:1.6}
.herohadith span{display:block;font-family:var(--sans);font-style:normal;font-size:11.5px;
  letter-spacing:.09em;text-transform:uppercase;opacity:.66;margin-top:7px}
.verse p.versenote{font-family:var(--sans);font-style:normal;font-size:14.5px;line-height:1.65;
  color:var(--muted);margin:22px 0 0;text-align:center}

/* The Cup and the two medals, stood in a row with first place in the middle.
   They are different heights, so the pictures sit on a shared floor rather
   than a shared top, the way three things would stand on a table. */
.prizerow{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  max-width:660px;margin:0 auto}
.prizerow figure{margin:0;text-align:center;display:flex;flex-direction:column;
  justify-content:flex-end}
.prizerow .pic{display:flex;align-items:flex-end;justify-content:center;height:212px}
.prizerow img{display:block;width:auto;height:auto;max-width:100%;max-height:212px}
.prizerow figcaption{margin-top:16px}
.prizerow figcaption b{display:block;font-size:14.5px;color:var(--deep)}
.prizerow figcaption span{display:block;font-size:13px;color:var(--muted);margin-top:4px}
@media(max-width:560px){
  .prizerow{gap:10px}
  .prizerow .pic{height:140px}
  .prizerow img{max-height:140px}
  .prizerow figcaption b{font-size:13px}
  .prizerow figcaption span{font-size:12px}
}

/* ---------- REGISTRATION WIZARD ---------- */
.wiz{max-width:680px}
.progress{display:flex;gap:6px;margin-bottom:26px}
.progress div{flex:1;height:5px;border-radius:99px;background:var(--paper-deep);transition:.25s}
.progress div.done{background:var(--mark)}
.progress div.now{background:var(--mid)}
.steplabel{font-size:12.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  color:var(--mark);margin-bottom:6px}
.step{display:none}
.step.on{display:block;animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.step h3{margin:0 0 6px;font-size:22px}
.step .sublead{color:var(--muted);margin:0 0 22px;font-size:15px}

.choice{display:block;border:2px solid var(--line);border-radius:12px;padding:18px 20px;
  margin-bottom:12px;cursor:pointer;background:#fff;transition:.15s}
.choice:hover{border-color:var(--light)}
.choice.sel{border-color:var(--mark);background:var(--paper)}
.choice input{display:none}
.choice b{display:block;font-size:16.5px;color:var(--mid);margin-bottom:3px}
.choice span{font-size:14.5px;color:var(--muted)}

.learner{border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:14px;
  background:#fff;position:relative}
.learner .num{position:absolute;top:-11px;left:18px;background:var(--mid);color:#fff;
  font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  padding:3px 12px;border-radius:999px}
.learner .drop{position:absolute;top:14px;right:14px;background:none;border:none;
  color:var(--muted);cursor:pointer;font-size:15px}
.learner .drop:hover{color:var(--mark)}
.addmore{width:100%;background:#fff;border:2px dashed var(--line);color:var(--mid);
  border-radius:12px;padding:15px;font-size:15px;font-weight:600;cursor:pointer;
  font-family:inherit;margin-bottom:8px}
.addmore:hover{border-color:var(--mark);color:var(--mark)}

.classpick{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media(max-width:560px){.classpick{grid-template-columns:1fr}}
.classpick label{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);
  border-radius:9px;padding:11px 12px;cursor:pointer;background:var(--paper);margin:0;font-weight:400}
.classpick label.sel{border-color:var(--mark);background:#fff}
.classpick input{margin-top:2px;width:16px;height:16px;accent-color:var(--mid);flex-shrink:0}
.classpick b{display:block;font-size:14px;color:var(--ink);font-weight:600}
.classpick em{font-style:normal;font-size:11.5px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--mid)}
.classpick em.paid{color:var(--mark)}

.navbtns{display:flex;gap:10px;margin-top:26px}
.navbtns button{flex:1;border-radius:999px;padding:15px;font-size:16px;font-weight:700;
  cursor:pointer;font-family:inherit;border:2px solid transparent}
.navbtns .back{flex:0 0 110px;background:#fff;border-color:var(--line);color:var(--muted)}
.navbtns .next{background:var(--mid);color:#fff}
.navbtns .next:hover{background:var(--deep)}
.navbtns .next:disabled{opacity:.55;cursor:not-allowed}

.review{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:20px;
  margin-bottom:14px}
.review h4{margin:0 0 10px;font-size:15px;color:var(--mid);font-family:var(--serif)}
.review dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:5px 16px;font-size:14.5px}
.review dt{color:var(--muted)}
.review dd{margin:0;font-weight:500}
.draftnote{font-size:13px;color:var(--muted);text-align:center;margin-top:14px}

/* ---------- NEWSLETTER AND UPDATES ---------- */
.post{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;margin-bottom:22px}
.post-media{background:#000;aspect-ratio:16/9;width:100%}
.post-media iframe,.post-media video,.post-media img{width:100%;height:100%;border:0;display:block}
.post-body{padding:24px 26px}
.post-date{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;
  letter-spacing:.07em;text-transform:uppercase;color:var(--mark);margin-bottom:8px}
.post h3{margin:0 0 10px;font-size:20px}
.post p{color:var(--muted);margin:0 0 10px}
.post .kind{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;background:var(--paper-deep);color:var(--mid);
  padding:3px 10px;border-radius:999px;margin-left:8px;vertical-align:middle}
.post-figures{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 4px}
@media(max-width:620px){.post-figures{grid-template-columns:1fr}}
.figure{background:var(--paper);border:1px solid var(--line);border-radius:9px;
  padding:14px;text-align:center}
.figure b{display:block;font-family:var(--serif);font-size:24px;color:var(--mid)}
.figure span{font-size:12.5px;color:var(--muted)}

















/* ==========================================================================
   UPCOMING EVENTS
   Cards built by news.html from the Events tab, each with a live countdown
   and a button that opens the RSVP form.
   ========================================================================== */
.evwrap{display:grid;gap:18px;margin-top:26px}
.evnote{color:var(--muted);font-size:15.5px;background:var(--paper);border:1px solid var(--line);
  border-radius:12px;padding:20px 22px;margin:0;line-height:1.65}
.evnote i{color:var(--mid);margin-right:7px}

.evcard{display:flex;gap:0;background:#fff;border:1px solid var(--line);border-radius:14px;
  overflow:hidden;box-shadow:0 1px 2px rgba(14,30,60,.04)}
.evcard.now{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}

/* the date tab down the left */
.evdate{flex:0 0 78px;background:var(--deep);color:#fff;display:flex;flex-direction:column;
  align-items:center;justify-content:center;padding:18px 6px;text-align:center}
.evdate b{font-family:var(--serif);font-size:30px;line-height:1;font-weight:700}
.evdate i{font-style:normal;font-size:12px;letter-spacing:.11em;text-transform:uppercase;
  opacity:.72;margin-top:5px}

.evbody{flex:1 1 auto;padding:20px 24px;min-width:0}
.evbody h3{margin:0 0 7px;font-size:19.5px;color:var(--deep)}
.evblurb{margin:0 0 13px;color:var(--muted);font-size:15px;line-height:1.6}

.evmeta{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:8px 20px}
.evmeta li{font-size:14px;color:var(--muted);display:flex;align-items:center;gap:7px}
.evmeta i{color:var(--mid);font-size:13px;width:14px;text-align:center}
.evzone{font-size:12.5px;opacity:.72}

.evfoot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;
  border-top:1px solid var(--line);padding-top:15px}

/* the countdown itself */
.cd{display:flex;gap:9px;flex:1 1 auto}
.cdcell{background:var(--paper);border:1px solid var(--line);border-radius:8px;
  padding:7px 11px;min-width:52px;text-align:center;line-height:1.15}
.cdcell b{display:block;font-family:var(--serif);font-size:20px;color:var(--deep);
  font-weight:700;font-variant-numeric:tabular-nums}
.cdcell i{font-style:normal;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted)}
.evlive{display:inline-flex;align-items:center;gap:9px;font-weight:700;color:#1F7A4D;
  font-size:15px}
.evlive i{font-size:8px;animation:evpulse 1.6s ease-in-out infinite}
@keyframes evpulse{0%,100%{opacity:1}50%{opacity:.25}}

.evrsvp{flex:0 0 auto;white-space:nowrap}
.evseats{margin:12px 0 0;font-size:13.5px}
.evleft{color:var(--mid);font-weight:600}
.evfull{color:#A4452B;font-weight:600}

@media(max-width:620px){
  .evcard{flex-direction:column}
  .evdate{flex:0 0 auto;flex-direction:row;gap:9px;padding:11px;justify-content:flex-start}
  .evdate b{font-size:21px}
  .evdate i{margin-top:0}
  .evbody{padding:17px 18px}
  .evfoot{flex-direction:column;align-items:stretch}
  .evrsvp{width:100%;text-align:center}
}

/* ---------- the RSVP form ---------- */
.evmodal{position:fixed;inset:0;z-index:1200;background:rgba(14,30,60,.55);
  display:none;align-items:flex-start;justify-content:center;padding:28px 16px;
  overflow-y:auto;opacity:0;transition:opacity .22s ease}
.evmodal.open{display:flex;opacity:1}
.evbox{background:#fff;border-radius:16px;max-width:520px;width:100%;padding:30px 32px 26px;
  position:relative;box-shadow:0 20px 60px rgba(14,30,60,.3)}
.evx{position:absolute;top:13px;right:13px;background:none;border:none;cursor:pointer;
  font-size:18px;color:var(--muted);padding:7px;line-height:1}
.evx:hover{color:var(--deep)}
.eveyebrow{display:inline-block;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--mid);font-weight:700;margin-bottom:9px}
.evbox h3{margin:0 0 6px;font-size:21px;color:var(--deep);padding-right:28px}
.evwhen{margin:0 0 20px;color:var(--muted);font-size:14.5px;line-height:1.55}

.evbox label{display:block;font-size:13.5px;font-weight:600;color:var(--deep);
  margin:15px 0 5px}
.evopt{font-weight:400;color:var(--muted);font-size:12.5px}
.evbox input,.evbox select,.evbox textarea{width:100%;box-sizing:border-box;
  padding:11px 13px;border:1px solid var(--line);border-radius:9px;font:inherit;
  font-size:15px;color:var(--ink);background:#fff}
.evbox input:focus,.evbox select:focus,.evbox textarea:focus{outline:none;
  border-color:var(--mid);box-shadow:0 0 0 3px var(--accent-soft)}
.evbox textarea{resize:vertical;min-height:72px}
.evhint{display:block;font-size:12.5px;color:var(--muted);margin-top:5px}
#evGo{width:100%;margin-top:22px;padding:14px;border:none;border-radius:999px;
  background:var(--deep);color:#fff;font:inherit;font-size:15.5px;font-weight:700;
  cursor:pointer}
#evGo:hover{background:var(--mid)}
#evGo:disabled{opacity:.6;cursor:default}
.evsmall{font-size:12.5px;color:var(--muted);margin:13px 0 0;line-height:1.55;text-align:center}
#evDone{display:none;text-align:center;padding:14px 0 8px}
#evDone h4{margin:0 0 9px;font-size:19px;color:var(--deep)}
#evDone p{margin:0;color:var(--muted);font-size:15px;line-height:1.65}

/* the event time converted into whatever zone the reader is actually in */
.evyours{margin:-6px 0 15px;font-size:14px;color:var(--mid);background:var(--accent-soft);
  border-radius:8px;padding:9px 13px;display:flex;align-items:center;gap:9px;line-height:1.5}
.evyours i{font-size:13px;opacity:.8;flex:0 0 auto}
.evyours b{color:var(--deep)}
.evyours .evzone{opacity:.75}

/* The Arabic name of a class and how it is said, under the heading.
   Right-to-left is set on the Arabic span only, so the transliteration
   beside it is not dragged along with it. */
.card .arname{margin:-4px 0 8px;font-size:14px;color:var(--mid);line-height:1.5}
.card .arname span{font-size:17px;color:var(--deep);margin-right:9px}
.card .arname i{font-style:italic;color:var(--muted);font-size:13.5px}

/* Preview sits beside Download, quieter than it, because most people want
   to look first and only some want the file straight away. */
.freebie .btn-prev{margin-right:8px}
@media(max-width:420px){
  .freebie .btn-prev{margin:0 0 8px;display:block;text-align:center}
  .freebie .btn-free{display:block;text-align:center}
}

/* The curriculum practice packs: forty seven rows, so a row and not a
   card. Forty seven cards would be eleven screens of scrolling and a
   parent looking for one topic would never find it. */
.stageblock{margin:30px 0 0;padding:20px 0 0;border-top:1px solid var(--line)}
.stagehead{margin:0 0 4px;font-size:21px;letter-spacing:.2px}
.stagehead span{font-weight:400;font-size:15px;color:var(--mid)}
.stageblurb{margin:0 0 14px;font-size:15px;color:var(--mid);max-width:66ch}
ul.packlist{list-style:none;margin:0;padding:0}
.packrow{
  display:grid;align-items:center;gap:12px;
  grid-template-columns:22px minmax(0,1fr) auto auto auto;
  padding:9px 0;border-bottom:1px solid var(--line)
}
.packrow:last-child{border-bottom:none}
.packrow > i{color:var(--accent);font-size:15px;text-align:center}
.packname{font-weight:600;font-size:16px}
.packmeta{font-size:13.5px;color:var(--mid);white-space:nowrap}
.packrow .btn{padding:6px 12px;font-size:13.5px;white-space:nowrap}
.stagebundle{
  margin:14px 0 0;padding:13px 16px;font-size:15px;
  background:var(--accent-soft);border-radius:8px
}
.stagebundle .btn{margin-left:8px}
/* On a phone the row flows and wraps instead of holding five columns.
   Written with named grid areas first, which needed a 96px left margin
   to stop the two buttons landing on top of each other: a measurement
   that is right at one font size and wrong at the next. Flex wrap needs
   no such number. */
@media(max-width:700px){
  .packrow{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
  .packname{flex:1 1 0;min-width:calc(100% - 30px);order:1}
  .packrow > i{order:0;flex:0 0 18px}
  .packmeta{order:2;flex:1 1 auto;white-space:normal}
  .packrow .btn{order:3}
  .stagebundle .btn{display:block;margin:10px 0 0}
}
/* The stage and subject buttons above the packs (assets/packfilter.js).
   One stage shows at a time, so the list is a screen or two, not thirty. */
.packrow[hidden],.stageblock[hidden]{display:none}
.packpicker{margin:26px 0 0}
.pickhint{margin:0 0 10px;font-size:15px;color:var(--mid)}
.pickrow{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.pickrow .btn{padding:7px 14px;font-size:14px}
.pickrow.subjects .btn{padding:5px 12px;font-size:13.5px}
.pickcount{margin:4px 0 0;font-size:14px;color:var(--mid)}
.packpicker + .stageblock{margin-top:14px}
/* The subject, beside the topic. With maths and English in one list a
   row reading only "Spelling" or only "Measurement" does not say which
   subject it belongs to. */
.packsub{font-weight:400;font-size:13px;color:var(--mid);margin-left:7px}
/* On a phone the subject sits under the name only when all subjects show;
   once one subject is picked (packfilter.js) it says nothing new. */
@media(max-width:700px){.packsub{display:block;margin:2px 0 0}
  .picked .packsub{display:none}}

/* A free-lesson link under a class card (islamiyyah.html). */
.tryfree{margin:12px 0 0;font-size:14.5px;font-weight:600}

/* Write-ups are justified (her standing rule). Centred taglines and the
   small one-line labels keep their own alignment. */
section p, .item .in p, .card p, .stageblurb, .lede p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.center > p, p.lead, .center p.lead, .cta-row, .kind, .cost, .meta, .packmeta, .pickhint, .pickcount,
.post-date, .feelabel, .tryfree, .arname{text-align:inherit}
/* one-line labels inside cards are never stretched by the justify rule above */
.card p.meta, .card p.kind, .card p.cost, .card p.tryfree, .card p.arname, .item .in p.kind, .item .in p.cost{text-align:left}


/* Lines that must stand out: the key hadith on Home, the request on About */
section p.keyquote{font-family:var(--serif);font-weight:500;font-style:italic;color:var(--accent);
  background:var(--deep);border-left:3px solid var(--light);padding:24px 30px;
  font-size:clamp(19px,2.4vw,23px);line-height:1.5;max-width:780px;margin:28px auto 26px;text-align:center}
.keyquote cite{display:block;margin-top:12px;font-family:var(--sans,'Inter',sans-serif);font-style:normal;font-weight:400;
  font-size:14px;color:rgba(255,255,255,.7)}
section p.askline{font-family:var(--serif);font-weight:600;font-size:clamp(20px,2.7vw,25px);
  line-height:1.4;margin-top:24px;text-align:left}
.askline strong{display:block;font-weight:700;color:var(--mark)}
.band-deep p.askline{color:#fff}
.band-deep .askline strong{color:var(--accent-soft)}

/* Page headers with a photo behind the title, darkened so the white text reads */
.hero.phero{background-color:#0F1B33;background-size:cover;background-position:center;background-repeat:no-repeat}
.hero.phero::before{content:"";position:absolute;inset:0;background:rgba(10,18,38,.6);z-index:0}
.hero.phero h1,.hero.phero p{text-shadow:0 1px 10px rgba(0,0,0,.45)}
@media(max-width:700px){.hero.phero.payhero{background-position:88% center}}
@media(max-width:700px){.hero h1 br{display:none}}
@media(max-width:700px){.hero.phero.payhero.edge{background-position:100% center}}
@media(max-width:700px){.hero.phero.payhero,.hero.phero.payhero.edge{background-color:#12264E;background-size:auto 360px;background-position:right top}}

/* The one path for a new family, above every footer */
.joinpath{padding:42px 0 36px;border-top:1px solid var(--line);background:var(--paper)}
.joinpath h2{margin:0 0 16px;font-size:clamp(20px,3vw,26px)}
.steps3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0 26px}
.steps3 li{border-top:3px solid var(--mid)}
.steps3 a{display:block;padding:12px 0 6px;text-decoration:none;color:var(--ink)}
.steps3 a:hover b{color:var(--mid);text-decoration:underline}
.steps3 b{display:block;font-size:16.5px}
.steps3 small{display:block;color:var(--muted);font-size:14px;margin-top:3px}
.joinnote{margin:14px 0 0;color:var(--muted);font-size:13.5px}
@media(max-width:700px){.steps3{grid-template-columns:1fr;gap:10px}}

/* At a glance, then Read more */
.glance{display:grid;grid-template-columns:repeat(3,1fr);gap:0 28px;margin:6px 0 4px}
.glance div{border-top:1px solid var(--line);padding:12px 0}
.glance b{display:block;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
@media(max-width:700px){.glance{grid-template-columns:1fr}}
.more[hidden]{display:none}
.readmore-btn{display:inline-block;margin:6px 0 0;padding:10px 22px;border-radius:999px;border:1px solid var(--mid);background:#fff;color:var(--mid);font:inherit;font-weight:600;cursor:pointer}
.readmore-btn:hover{background:var(--mid);color:#fff}


/* ==========================================================================
   THE WARM LOOK  (November 2026)
   One layer over everything above. Cream paper, soft colour fields that
   stand for each part of the school, a quiet eight-point star pattern,
   and gentle motion. No faces, no figures, no boxes for the sake of boxes:
   cards are open, with a round picture and a line that grows on hover.
   Every movement here switches off for anyone who asks for less motion.
   ========================================================================== */

/* which part of the school a page belongs to (site.js sets data-page) */
body[data-page="islamiyyah.html"],body[data-page="games.html"],body[data-page="workshops.html"],
body[data-page="resources.html"]{--field:var(--sage-soft);--tone:var(--sage)}
body[data-page="western.html"],body[data-page="academic.html"],body[data-page="booking.html"],
body[data-page="academic-games.html"],body[data-page="workshops-academic.html"]{--field:var(--sky-soft);--tone:var(--sky)}
body[data-page="homeschool.html"]{--field:var(--sand-soft);--tone:var(--sand)}
body[data-page="activities.html"],body[data-page="cup-entry.html"],body[data-page="achievements.html"]{--field:var(--rose-soft);--tone:var(--rose)}
body[data-page="index.html"],body[data-page="about.html"],body[data-page="news.html"]{--field:#F8EFE4}

body{background:var(--paper);font-size:16px}
::selection{background:var(--accent);color:var(--deep)}
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--gold-deep);outline-offset:3px;border-radius:6px}

/* ---------- NAV ---------- */
.nav{box-shadow:0 1px 0 rgba(230,211,166,.28);transition:box-shadow .25s}
.nav.scrolled{box-shadow:0 8px 24px -10px rgba(10,18,38,.45)}
@media(min-width:1081px){
  .menu > li > a:not(.nav-cta),.menu > li > button{position:relative}
  .menu > li > a:not(.nav-cta)::after,.menu > li > button::after{content:"";position:absolute;
    left:11px;right:11px;bottom:4px;height:2px;border-radius:2px;background:var(--accent);
    transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
  .menu > li > a:not(.nav-cta):hover::after,.menu > li > button:hover::after,
  .menu > li > button[aria-expanded="true"]::after,.menu > li > a.active::after{transform:scaleX(1)}
  .menu > li > a:hover,.menu > li > button:hover,.menu > li > a.active{background:none}
}
.nav-cta{transition:transform .2s,box-shadow .3s,background .2s}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 18px -6px rgba(230,211,166,.8)}
.dropdown,.subdrop{border:none;border-radius:14px;box-shadow:0 18px 44px -12px rgba(10,18,38,.35),0 2px 6px rgba(10,18,38,.08)}
.dropdown a,.subbtn{border-radius:9px;transition:background .15s,padding .15s}
@media(min-width:1081px){.dropdown a:hover{padding-left:16px;background:var(--paper)}}

/* ---------- HERO ---------- */
.hero{background:radial-gradient(120% 90% at 85% 0%,rgba(230,211,166,.22),transparent 55%),
  radial-gradient(90% 80% at 0% 100%,rgba(164,71,91,.22),transparent 60%),
  linear-gradient(152deg,var(--deep),var(--mid) 60%,var(--light));
  clip-path:ellipse(160% 100% at 50% 0%);padding-bottom:84px}
.hero.small{padding:52px 0 70px}
.hero.phero{background-color:#0F1B33}
.hero.bighero{padding:56px 0 84px}
.hero.bighero::before{background:linear-gradient(180deg,rgba(10,18,38,.62),rgba(14,30,60,.74) 70%,rgba(14,30,60,.86))}
.hero.phero::before{background:linear-gradient(180deg,rgba(10,18,38,.55),rgba(14,30,60,.72))}
/* the slow star pattern drifting behind every page title */
.hero::after{content:"";position:absolute;inset:-72px;z-index:0;pointer-events:none;opacity:.13;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E6D3A6' stroke-width='1.1'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3Cpath d='M0 0l12 12M72 0L60 12M0 72l12-12M72 72L60 60'/%3E%3C/g%3E%3C/svg%3E");
  animation:smaDrift 80s linear infinite}
.hero.phero::after,.hero.bighero::after{opacity:.1}
@keyframes smaDrift{to{transform:translate(72px,72px)}}
.hero .wrap > *{animation:smaRise .8s cubic-bezier(.2,.7,.2,1) both}
.hero .wrap > :nth-child(2){animation-delay:.08s}
.hero .wrap > :nth-child(3){animation-delay:.16s}
.hero .wrap > :nth-child(4){animation-delay:.24s}
.hero .wrap > :nth-child(n+5){animation-delay:.32s}
@keyframes smaRise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
.eyebrow{background:rgba(255,255,255,.08);border-color:rgba(230,211,166,.5);color:var(--accent-soft)}
.hero h1{letter-spacing:-.005em}

/* ---------- BUTTONS ---------- */
.btn{transition:transform .2s ease,box-shadow .25s ease,background .2s,color .2s,border-color .2s}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn-accent{background:linear-gradient(135deg,#F3E5C2,#E6D3A6);border-color:transparent;
  box-shadow:0 8px 22px -10px rgba(230,211,166,.9)}
.btn-accent:hover{background:#FFFDF8;border-color:transparent;box-shadow:0 12px 28px -10px rgba(230,211,166,1)}
.btn-solid{box-shadow:0 8px 20px -12px rgba(27,56,105,.8)}
.btn-solid:hover{box-shadow:0 12px 26px -12px rgba(27,56,105,.9)}
.btn-ghost{background:transparent;border-color:var(--mid)}
.btn-ghost:hover{background:var(--mid);color:#fff}
button[type=submit]{transition:background .2s,transform .2s,box-shadow .25s;
  box-shadow:0 10px 22px -14px rgba(27,56,105,.9)}
button[type=submit]:hover:not(:disabled){transform:translateY(-1px)}

/* ---------- SECTIONS AND HEADINGS ---------- */
section{padding:68px 0}
.band{background:var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.2' opacity='.2'%3E%3Crect x='70' y='70' width='180' height='180'/%3E%3Crect x='70' y='70' width='180' height='180' transform='rotate(45 160 160)'/%3E%3Crect x='105' y='105' width='110' height='110'/%3E%3Crect x='105' y='105' width='110' height='110' transform='rotate(45 160 160)'/%3E%3Ccircle cx='160' cy='160' r='38'/%3E%3Ccircle cx='160' cy='160' r='140'/%3E%3C/g%3E%3C/svg%3E") no-repeat right -110px top -110px/340px;
  border:none}
.band-deep{background:radial-gradient(80% 120% at 100% 0%,rgba(230,211,166,.14),transparent 60%),var(--deep)}
h2{font-size:clamp(23px,3.4vw,32px);letter-spacing:-.005em;line-height:1.25}
.lead{font-size:16.5px;line-height:1.7}
/* a small star between two lines under every centred section heading */
.center > h2::after,.joinpath h2::after,.verse::before{content:"";display:block;width:132px;height:16px;margin:14px auto 4px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='16' viewBox='0 0 132 16'%3E%3Cg fill='none' stroke='%23B8912F' stroke-width='1.2'%3E%3Cpath d='M4 8h46M82 8h46'/%3E%3Crect x='60' y='2' width='12' height='12'/%3E%3Crect x='60' y='2' width='12' height='12' transform='rotate(45 66 8)'/%3E%3C/g%3E%3Ccircle cx='66' cy='8' r='1.8' fill='%23B8912F'/%3E%3C/svg%3E") center/contain no-repeat}
.band-deep .center > h2::after,.band-deep.center > .wrap > h2::after{filter:brightness(1.6)}
.center > h2{margin-bottom:10px}

/* ---------- CARDS: open, not boxed ----------
   The card is the words and a round picture. A line above it, in the
   colour of that part of the school, grows across on hover. */
.grid-3{gap:40px 34px}
.grid-2{gap:28px 34px}
.grid-4{gap:30px 26px}
.card{background:transparent;border:none;border-radius:0;padding:22px 2px 6px;
  transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.card::before{content:"";position:absolute;left:0;top:0;height:2px;width:56px;border-radius:2px;
  background:var(--tone,var(--gold-deep));transition:width .45s cubic-bezier(.2,.7,.2,1)}
.card.feature{border:none}
a.card:hover,.card:hover{transform:translateY(-4px)}
.card:hover::before{width:100%}
.card h3{font-size:19px;line-height:1.35}
a.card h3{display:inline;background:linear-gradient(var(--accent),var(--accent)) left 100%/0 2px no-repeat;
  transition:background-size .35s ease}
a.card:hover h3,a.card:focus-visible h3{background-size:100% 2px}
a.card h3 + p{margin-top:8px!important}
.card .tag{top:-12px;right:0}
.tag{box-shadow:0 4px 12px -6px rgba(14,30,60,.6)}
.coursepic{width:92px;height:92px;border-radius:50%;border:none;padding:0;
  box-shadow:0 0 0 4px var(--paper),0 0 0 5px var(--accent),0 10px 22px -10px rgba(14,30,60,.5);
  transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.band .coursepic{box-shadow:0 0 0 4px var(--field),0 0 0 5px var(--accent),0 10px 22px -10px rgba(14,30,60,.5)}
.coursepic:not(.photo){background:#fff;padding:12px}
a.card:hover .coursepic,.card.feature:hover .coursepic{transform:scale(1.06) rotate(-2deg)}
.card .classbanner{margin:0 0 18px;border:none;border-radius:16px}
.ico{border-radius:50%;background:var(--accent-soft);color:var(--mid);transition:transform .3s}
.card:hover .ico{transform:rotate(-8deg) scale(1.06)}

/* ---------- PHOTOS ---------- */
.photo:not(.coursepic):not(.classbanner){border:none;border-radius:22px;box-shadow:var(--shadow-soft)}
.photo img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.photo:hover img{transform:scale(1.035)}

/* ---------- QUESTIONS (details): lines that open, not boxes ---------- */
details{background:transparent;border:none;border-bottom:1px solid var(--line);border-radius:0;
  padding:4px 0;margin:0}
details:first-of-type{border-top:1px solid var(--line)}
summary{list-style:none;display:flex;align-items:center;gap:14px;padding:15px 2px;
  font-family:var(--serif);font-size:17px;transition:color .2s}
summary::-webkit-details-marker{display:none}
summary::after{content:"";flex:0 0 26px;height:26px;margin-left:auto;border-radius:50%;
  background:var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231B3869' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition:transform .3s ease,background-color .2s}
details[open] > summary::after{transform:rotate(45deg);background-color:var(--accent)}
summary:hover{color:var(--deep)}
details[open] > summary ~ *{animation:smaOpen .35s ease both}
@keyframes smaOpen{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
details p{margin:0 0 16px;padding-right:40px}
.cvraw{border:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:0}
.cvraw summary{font-family:var(--sans);font-size:14.5px}

/* ---------- STEPS, VERSES, PILLS, LISTS ---------- */
.step-num{background:linear-gradient(145deg,var(--mid),var(--deep));color:var(--accent);
  box-shadow:0 0 0 4px var(--accent-soft);font-family:var(--serif)}
.step-row{transition:transform .25s}
.step-row:hover{transform:translateX(4px)}
.verse{background:transparent;border:none;padding:10px 10px 16px}
.verse::before{margin:0 auto 18px}
.pill{background:transparent;border-color:#DCD3C3;transition:background .2s,border-color .2s,transform .2s}
.pill:hover{background:#fff;border-color:var(--accent);transform:translateY(-2px)}
.pill i{color:var(--gold-deep)}
section p.keyquote{border-left:none;border-radius:4px;
  background:radial-gradient(90% 140% at 100% 0%,rgba(230,211,166,.18),transparent 60%),var(--deep)}
blockquote{border-left-color:var(--accent)}
.project{background:transparent;border:none;border-bottom:1px solid var(--line);border-radius:0;padding:20px 0;margin:0}
.fee{background:transparent;border:none;border-top:2px solid var(--accent);border-radius:0;padding:14px 2px}
.feegroup.paid .fee{border:none;border-top:2px solid var(--mark);background:transparent}
.post{border:none;box-shadow:var(--shadow-soft);border-radius:18px}
.figure{background:transparent;border:none;border-top:2px solid var(--accent);border-radius:0}

/* ---------- FORMS: the one place a panel is right ---------- */
form{border:none;border-radius:20px;box-shadow:var(--shadow-soft)}
input[type=text],input[type=tel],input[type=email],input[type=number],input[type=date],select,textarea{
  border-radius:11px;border-color:#DCD3C3;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--mid);
  box-shadow:0 0 0 4px rgba(230,211,166,.6)}
.check{border-color:transparent;transition:border-color .2s}
.check:hover{border-color:var(--accent)}
.choice{border-width:1.5px;border-radius:16px;transition:border-color .2s,transform .2s,box-shadow .2s}
.choice:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft)}
.choice.sel{background:#fff;box-shadow:0 0 0 3px var(--accent-soft)}
.progress div{height:6px}
.progress div.done{background:var(--accent)}
.progress div.now{background:linear-gradient(90deg,var(--mid),var(--light))}
#success{border:none;box-shadow:var(--shadow-soft);border-radius:20px}

/* ---------- JOINING SMA, IN THREE STEPS ----------
   A track over the three steps that fills from left to right when the
   section comes into view, then each step lifts and points on hover. */
.joinpath{padding:60px 0 50px;border-top:none;background:var(--field)}
.joinpath h2{text-align:center;margin-bottom:26px}
.joinpath .joinnote{text-align:center}
.steps3{gap:0 30px}
.steps3 li{border-top:none;position:relative;padding-top:8px}
.steps3 li::before,.steps3 li::after{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:4px}
.steps3 li::before{background:var(--line)}
.steps3 li::after{background:linear-gradient(90deg,var(--accent),var(--gold-deep));
  transform:scaleX(0);transform-origin:left;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.steps3 li:nth-child(2)::after{transition-delay:.45s}
.steps3 li:nth-child(3)::after{transition-delay:.9s}
.joinpath.in .steps3 li::after,.no-rv .steps3 li::after{transform:scaleX(1)}
.steps3 a{position:relative;padding:16px 34px 10px 0;transition:transform .25s}
.steps3 a::after{content:"\f061";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;
  right:6px;top:19px;font-size:14px;color:var(--gold-deep);opacity:.55;transition:transform .25s,opacity .25s}
.steps3 a:hover,.steps3 a:focus-visible{transform:translateY(-3px)}
.steps3 a:hover::after,.steps3 a:focus-visible::after{transform:translateX(5px);opacity:1}
.steps3 a:hover b{text-decoration:none}
.steps3 b{font-family:var(--serif);font-size:18px;color:var(--deep)}
@media(max-width:700px){.steps3{gap:18px}}

/* ---------- FOOTER ---------- */
footer{position:relative;background:radial-gradient(70% 90% at 100% 0%,rgba(230,211,166,.1),transparent 60%),var(--deep)}
footer::before{content:"";position:absolute;left:0;right:0;top:0;height:22px;opacity:.28;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cg fill='none' stroke='%23E6D3A6' stroke-width='1'%3E%3Crect x='15' y='4' width='14' height='14'/%3E%3Crect x='15' y='4' width='14' height='14' transform='rotate(45 22 11)'/%3E%3Cpath d='M0 11h8M36 11h8'/%3E%3C/g%3E%3C/svg%3E") repeat-x center}
footer h5{font-size:16px;letter-spacing:.01em}
footer a{transition:color .2s,transform .2s}
footer a:hover{transform:translateX(3px)}
.foot-bottom{opacity:.85;color:var(--accent-soft)}

/* ---------- CHAT AND BACK TO TOP ---------- */
#chatLauncher{background:linear-gradient(145deg,var(--mid),var(--deep));box-shadow:0 10px 26px -8px rgba(14,30,60,.6)}
#chatPanel{border-radius:20px}
#toTop{position:fixed;left:20px;bottom:20px;z-index:150;width:48px;height:48px;border-radius:50%;
  border:none;cursor:pointer;background:#fff;color:var(--mid);
  box-shadow:0 8px 24px -8px rgba(14,30,60,.45),0 0 0 1.5px var(--accent);
  opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .3s,visibility .3s,background .2s}
#toTop.show{opacity:1;visibility:visible;transform:none}
#toTop:hover{background:var(--accent);color:var(--deep)}
#toTop svg{width:20px;height:20px;display:block;margin:auto}

/* ---------- SCROLL REVEAL (site.js marks only what starts below the fold) ---------- */
.rv{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.rv.in{opacity:1;transform:none}

/* ---------- PHONES ---------- */
@media(max-width:560px){
  section{padding:52px 0}
  .wrap,.nav-inner{padding:0 16px}
  .grid-3,.grid-2,.grid-4{gap:30px}
  .hero.small{padding:42px 0 60px}
  .hero.bighero{padding:44px 0 70px}
  summary{font-size:16px}
  details p{padding-right:0}
  #toTop{left:14px;bottom:16px;width:44px;height:44px}
}

/* ---------- LESS MOTION, AND PRINT ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
  .hero::after{animation:none}
  .rv{opacity:1;transform:none}
  .steps3 li::after{transform:scaleX(1)}
}
@media print{.rv{opacity:1;transform:none}.hero{clip-path:none}#toTop,#chatLauncher{display:none}}


/* ==========================================================================
   THE WARM LOOK, PART TWO  (November 2026)
   Brings every inner page up to the home page: headings with a small gold
   rule, softer tables, notes that are lines rather than boxes, shop items
   that lift, articles set for easy reading, and nothing wider than a phone.
   ========================================================================== */

/* nothing pushes a phone sideways: grid columns may shrink, long words wrap */
.grid-2 > *,.grid-3 > *,.grid-4 > *,.foot-grid > *{min-width:0}
section p,section li,td,dd{overflow-wrap:break-word}
@media(max-width:560px){
  .itag{white-space:normal;max-width:100%;line-height:1.45}
  .hero.phero.payhero::before{background:linear-gradient(180deg,rgba(10,18,38,.72),rgba(14,30,60,.86))}
}

/* a short gold rule under every left-aligned section heading, the quiet
   partner of the star under the centred ones */
section:not(.joinpath):not(.center) .wrap:not(.center):not([style*="center"]) > h2:not([style*="center"]),
section .grid-2 > div > h2{position:relative;padding-bottom:12px}
section:not(.joinpath):not(.center) .wrap:not(.center):not([style*="center"]) > h2:not([style*="center"])::after,
section .grid-2 > div > h2::after{content:"";position:absolute;left:0;bottom:0;width:46px;height:3px;
  border-radius:3px;background:linear-gradient(90deg,var(--gold-deep),var(--accent))}
.band-deep .wrap:not(.center) > h2::after,.band-deep .grid-2 > div > h2::after{background:var(--accent)}
.article > h2::after{display:none}

/* a heading that breaks a long form into parts */
.formstep{display:flex;align-items:center;gap:10px}
.formstep::before{content:"";flex:none;width:9px;height:9px;transform:rotate(45deg);
  background:var(--tone,var(--gold-deep));border-radius:1px}

/* ---------- ARTICLES: set for reading ---------- */
.article{font-size:17px;line-height:1.8}
.article > p,.article > ul > li{color:#2B3342}
.article > h2{font-size:clamp(22px,2.8vw,26px);margin-top:46px!important;margin-bottom:10px;color:var(--deep)}
.article > h2:first-of-type{margin-top:6px!important}
.article > figure + h2 + p::first-letter{float:left;font-family:var(--serif);font-size:3.3em;line-height:.9;
  margin:6px 10px 0 0;color:var(--gold-deep);font-weight:600}
.article ul{padding-left:22px}
.article li{margin-bottom:10px}
.article li::marker{color:var(--gold-deep)}
.article figure .photo{border-radius:22px}
.article a{text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:3px;transition:color .2s}
.article a:hover{color:var(--deep);text-decoration-color:var(--gold-deep)}

/* ---------- TABLES: lines, not a navy block ---------- */
table.plain{border:none;border-radius:0;background:transparent;font-size:15px}
table.plain th{background:transparent;color:#7E5E14;border-bottom:2px solid var(--accent);
  padding:12px 16px;font-size:12px}
table.plain td{border-top:1px solid var(--line);padding:14px 16px}
table.plain tbody tr{transition:background .2s}
table.plain tbody tr:hover{background:rgba(255,255,255,.7)}
table.plain td:first-child strong{color:var(--deep)}
@media(max-width:620px){table.plain td{padding:4px 2px}table.plain td:first-child{padding-top:12px}
  table.plain tr{padding:6px 0}}

/* ---------- NOTES: a rule at the edge, never a tinted box ---------- */
.box-light{background:transparent;border:none;border-left:3px solid var(--accent);border-radius:0;padding:4px 0 4px 22px}
.evnote,.dashnote{background:transparent;border:none;border-left:3px solid var(--accent);border-radius:0;
  padding:6px 0 6px 18px}
.draftbar{background:transparent;border:none;border-left:3px solid var(--accent);border-radius:0;padding:8px 0 8px 16px}
.stagebundle{background:transparent;border-radius:0;border-top:2px solid var(--accent);padding:14px 2px 0}
.review{background:transparent;border:none;border-top:2px solid var(--accent);border-radius:0;padding:16px 2px 6px}
.evyours{background:transparent;border-radius:0;border-left:3px solid var(--accent);padding:4px 0 4px 12px}
.proj{background:transparent;border:none;border-top:2px solid var(--accent);border-radius:0;padding:20px 2px 4px}
.learner{border-color:#E4DACA;border-radius:16px;box-shadow:var(--shadow-soft)}
.addmore{border-radius:16px;transition:border-color .2s,color .2s,transform .2s}
.addmore:hover{transform:translateY(-2px)}

/* ---------- SHOP ITEMS, EVENTS, VIDEOS: they lift when you reach for them ---------- */
body .item{border:none;border-radius:18px;box-shadow:var(--shadow-soft);
  transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
body .item:hover{transform:translateY(-4px);box-shadow:0 2px 4px rgba(14,30,60,.05),0 22px 40px -18px rgba(14,30,60,.35)}
body .item.freebie{border:none;box-shadow:0 0 0 2px var(--mid),var(--shadow-soft)}
body .item .top{background:var(--field)}
.evcard{border:none;border-radius:18px;box-shadow:var(--shadow-soft);transition:transform .3s,box-shadow .3s}
.evcard:hover{transform:translateY(-3px);box-shadow:0 22px 40px -18px rgba(14,30,60,.35)}
.evdate{background:linear-gradient(160deg,var(--mid),var(--deep))}
.evdate b{color:var(--accent)}
.cdcell{background:transparent;border:none;border-bottom:2px solid var(--accent);border-radius:0}
.vid{border:none;border-radius:18px;box-shadow:var(--shadow-soft);transition:transform .3s}
.vid:hover{transform:translateY(-3px)}
.packrow{transition:background .2s,padding .2s}
@media(hover:hover){.packrow:hover{background:rgba(255,255,255,.75);padding-left:8px;padding-right:8px}}
.pickrow .btn{border-radius:999px}

/* ---------- SMALL THINGS ---------- */
section ul:not([class]) li::marker,.card li::marker{color:var(--gold-deep)}
.ico{box-shadow:0 0 0 4px rgba(230,211,166,.25)}
.tryfree a,.card a:not(.btn){text-underline-offset:3px}
.give-box{border-radius:20px;box-shadow:0 18px 40px -20px rgba(14,30,60,.6);
  background:radial-gradient(80% 100% at 100% 0%,rgba(230,211,166,.16),transparent 60%),var(--mid)}
.sv-card{border:none;border-radius:18px;box-shadow:var(--shadow-soft)}
.sv-together{box-shadow:0 0 0 2px var(--mid),var(--shadow-soft)}
.wa{transition:transform .2s,box-shadow .25s}
.wa:hover{transform:translateY(-2px);box-shadow:0 10px 22px -10px rgba(37,211,102,.8)}
.readmore-btn{transition:background .2s,color .2s,transform .2s}
.readmore-btn:hover{transform:translateY(-2px)}
.glance div{border-top:2px solid var(--accent)}
.photo-slot{border-radius:22px}

/* number, date and time boxes match the text boxes (the placement test's
   Age box was a tiny browser default) */
input[type=number],input[type=date],input[type=time],input[type=url],input[type=search]{
  width:100%;padding:12px 14px;border:1px solid #DCD3C3;border-radius:11px;font-size:15.5px;
  font-family:inherit;background:#fff;color:var(--ink);min-width:0}
.evbox input[type=number],.newsbox input[type=search]{padding:11px 13px}

.menu .dropdown,.menu .subdrop{z-index:60}

/* Prices in your own currency (assets/prices.js) */
.cur-pick{margin:0 0 14px;font-size:14.5px;color:var(--ink)}
.cur-pick label{font-weight:600;color:var(--mid);margin-right:6px}
.cur-pick select{font:inherit;font-size:14.5px;padding:7px 10px;border:1.5px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);max-width:100%;cursor:pointer}
.cur-pick select:focus-visible{outline:2px solid var(--mid);outline-offset:2px}
.cur-pick .cur-note{display:block;margin-top:5px;font-size:13px;color:var(--muted);line-height:1.5}
.center .cur-pick,.cur-pick.center{text-align:center}

/* register.html: the optional preferences, folded into the last step */
.prefs{margin:18px 0 6px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}
.prefs summary{cursor:pointer;font-weight:600;color:var(--mid);list-style-position:outside}
.prefs summary .hint{font-weight:400;color:var(--muted)}
.prefs[open] summary{margin-bottom:4px}

/* policies.html: four tabs on one page. Plain text tabs with an underline, no boxes. */
.poltabs-wrap{border-bottom:1px solid var(--line);background:var(--paper)}
.poltabs{display:flex;gap:4px 26px;overflow-x:auto;padding-top:18px;scrollbar-width:thin}
.poltabs a{flex:0 0 auto;padding:10px 0 12px;font-weight:600;font-size:16px;color:var(--muted);text-decoration:none;border-bottom:3px solid transparent;white-space:nowrap}
.poltabs a:hover{color:var(--mid)}
.poltabs a[aria-selected="true"]{color:var(--deep);border-bottom-color:var(--mid)}
.poltabs a:focus-visible{outline:2px solid var(--mid);outline-offset:3px}
.polalso{font-size:14px;color:var(--muted);margin:10px 0 14px}
.poltitle{margin-top:0}
.polpanel:focus{outline:none}
.polpanel ul ul{margin:8px 0 4px 18px;list-style:disc}
.polpanel ul ul li{padding-left:0;margin:4px 0}
.polpanel ul ul li::before{content:none}
@media print{.poltabs-wrap{display:none}.polpanel[hidden]{display:block!important}}
