/* Guildford Arabic Gospel Chapel - site styles
   Layout: a Sunday-shaped site. Every page opens with a tinted masthead band, then full-width
   content bands on a 1180px column. The two calls to action (come on Sunday, watch the library)
   repeat in the header, the home hero and the footer. */
:root {
  color-scheme: light;
  --paper: #F3F6FB;
  --surface: #FFFFFF;
  --ink: #12203B;
  --muted: #55627A;
  --line: #D7DFEB;
  --blue: #1A4592;
  --blue-2: #2F6BC2;
  --blue-soft: #E4EBF8;
  --green: #2E8A3E;
  --green-soft: #E5F2E2;
  --lime: #8CCB3E;
  --on-accent: #FFFFFF;
  --alert: #A4262C;
  --alert-soft: #FBEAEA;
  --night: #0B1630;          /* hero ground, both themes */
  --night-ink: #EAF0FA;
  --display: "Readex Pro", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --body-ar: "IBM Plex Sans Arabic", "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  --radius: 16px;
  --col: 1180px;
  --shadow: 0 22px 48px -28px rgba(18, 32, 59, .45);
}
/* automatic dark mode removed: the site stays white on every device */
:root[data-theme="dark"] {
  --paper: #0C1323; --surface: #131C30; --ink: #E6EBF3; --muted: #9BA7BD; --line: #253049;
  --blue: #86A9F0; --blue-2: #A9C2F5; --blue-soft: #19263F; --green: #6CC27A; --green-soft: #14281B; --lime: #A6DA62;
  --on-accent: #0C1323; --alert: #F08A8F; --alert-soft: #2E1719; --night: #070E1F; --night-ink: #EAF0FA;
  --shadow: 0 22px 48px -28px rgba(0, 0, 0, .8); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[lang="ar"] body { font-family: var(--body-ar); font-size: 17px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
html[lang="en"] [lang="ar"]:not(.keep) { display: none; }
html[lang="ar"] [lang="en"]:not(.keep) { display: none; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.wrap { max-width: var(--col); margin: 0 auto; padding-inline: 20px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.18; text-wrap: balance; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.45rem); font-weight: 600; }
h3 { font-size: 1.14rem; font-weight: 600; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.prose { display: grid; gap: 14px; max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.prose ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 500 1rem var(--display); text-decoration: none; padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--blue); }
.btn-green { background: var(--green); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--green); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: rgba(255,255,255,.1); color: var(--night-ink); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.18); }
.btn-lg { padding: 16px 24px; font-size: 1.06rem; border-radius: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; transition: transform .5s cubic-bezier(.2,.9,.3,1.4); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand b { font-family: var(--display); font-weight: 600; font-size: .98rem; line-height: 1.15; display: block; }
.brand small { display: block; color: var(--muted); font-size: .78rem; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; color: var(--ink); font-size: .92rem; padding: 8px 11px; border-radius: 9px; }
.nav a:hover { background: var(--blue-soft); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--blue-soft); font-weight: 500; }
.bar-cta { display: flex; gap: 8px; align-items: center; }
.bar-cta .btn { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.lang { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 500 .9rem var(--display); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.lang:hover { border-color: var(--blue); }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 8px; cursor: pointer; }
@media (max-width: 1440px) {
  .bar-cta .btn-green { display: none; }
}
@media (max-width: 1280px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 68px 0 auto 0; max-height: calc(100vh - 68px); overflow-y: auto; flex-direction: column; gap: 4px; padding: 14px 20px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s ease; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 1.02rem; padding: 12px; }
  .bar-cta { margin-inline-start: auto; }
  .bar-cta .btn-primary { display: none; }
}

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 620px; height: 620px; background: radial-gradient(circle, #2F6BC2, transparent 65%); top: -220px; inset-inline-start: -160px; animation: drift 18s ease-in-out infinite alternate; }
.hero::after { width: 560px; height: 560px; background: radial-gradient(circle, #3E9C45, transparent 65%); bottom: -260px; inset-inline-end: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 40px) scale(1.12); } }
.hero .stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .08; transform: scale(.6); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; padding-block: clamp(48px, 7vw, 100px) clamp(44px, 6vw, 84px); }
.hero h1 { color: #fff; }
.hero h1 .sub { display: block; font-size: .5em; font-weight: 500; color: #A9C2F5; margin-top: .45em; }
.hero .lede { color: #C3CEE2; }
.hero .eyebrow { color: var(--lime); }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-art { position: relative; display: grid; place-items: center; min-width: 0; }
.hero-logo { width: min(100%, 420px); aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.hero-logo .piece { transform-box: fill-box; transform-origin: center; animation: assemble 1.1s cubic-bezier(.2,.9,.25,1.15) both; }
.hero-logo .p1 { --dx: -90px; --dy: -70px; --r: -14deg; animation-delay: .05s; }
.hero-logo .p2 { --dx: 90px; --dy: -80px; --r: 12deg; animation-delay: .17s; }
.hero-logo .p3 { --dx: -80px; --dy: 90px; --r: 10deg; animation-delay: .29s; }
.hero-logo .p4 { --dx: 90px; --dy: 90px; --r: -12deg; animation-delay: .41s; }
.hero-logo .star { transform-box: fill-box; transform-origin: center; animation: pop .6s cubic-bezier(.3,1.6,.5,1) both, glint 5s ease-in-out 2s infinite; }
@keyframes assemble { from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
@keyframes glint { 0%, 92%, 100% { transform: none; } 96% { transform: scale(1.35) rotate(25deg); } }
.hero-logo:hover .piece { animation: none; transition: transform .5s cubic-bezier(.2,.9,.3,1.3); }
.hero-logo:hover .p1 { transform: translate(-8px,-8px); } .hero-logo:hover .p2 { transform: translate(8px,-8px); }
.hero-logo:hover .p3 { transform: translate(-8px,8px); } .hero-logo:hover .p4 { transform: translate(8px,8px); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-logo { width: min(64vw, 280px); } }

/* countdown card */
.count { display: grid; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); max-width: 560px; }
.count-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; color: #C3CEE2; }
.count-head b { color: #fff; font-family: var(--display); font-weight: 500; }
.digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.digits div { text-align: center; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.07); }
.digits strong { display: block; font: 600 clamp(1.5rem, 1rem + 2vw, 2.2rem)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.digits span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9FB0CE; }
html[lang="ar"] .digits span { letter-spacing: 0; font-size: .82rem; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #C62828; color: #fff; font: 600 .82rem var(--display); text-decoration: none; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* ---------- inner page masthead ---------- */
.mast { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); border-bottom: 1px solid var(--line); }
.mast .wrap { padding-block: clamp(40px, 6vw, 76px) clamp(34px, 5vw, 60px); display: grid; gap: 14px; position: relative; }
.mast-mark { position: absolute; inset-inline-end: -60px; top: 50%; translate: 0 -50%; width: 340px; opacity: .1; pointer-events: none; animation: slowspin 60s linear infinite; }
@keyframes slowspin { to { rotate: 360deg; } }
.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }

/* ---------- bands & cards ---------- */
.band { padding-block: clamp(56px, 7vw, 100px); }
.band + .band { border-top: 1px solid var(--line); }
.band.tint { background: var(--surface); }
.sec-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 72ch; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 861px) { .wide-left { grid-template-columns: 1.5fr .9fr; } .wide-left > aside { position: sticky; top: 96px; } }
.date-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: 500 .95rem var(--display); font-variant-numeric: tabular-nums; }
.date-pill.next { background: var(--green); border-color: var(--green); color: var(--on-accent); }
.dates { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tint .card { background: var(--paper); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.card p { color: var(--muted); }
.card .go { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font: 500 .95rem var(--display); margin-top: 4px; }
.badge-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.badge-ico.green { background: var(--green-soft); color: var(--green); }
.badge-ico .ico { width: 26px; height: 26px; }
a.card:hover .badge-ico { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.06); } 60% { transform: rotate(6deg); } }

/* scroll-in, only where the browser supports scroll-driven animation; resting state is visible */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  @keyframes rise { from { opacity: .3; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}

/* the Sunday order */
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.order-head { background: linear-gradient(135deg, var(--blue), #23559F); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-head .eyebrow { color: #CFE3B5; }
.order-head strong { font: 600 1.12rem var(--display); }
.order ol { list-style: none; margin: 0; padding: 0; }
.order li { display: grid; grid-template-columns: 52px 74px 1fr; gap: 12px; align-items: start; padding: 16px 22px; border-top: 1px solid var(--line); }
.order li:first-child { border-top: 0; }
.order time { font: 600 1.05rem var(--display); color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 10px; }
.order li p { color: var(--muted); font-size: .93rem; }
.order li.lunch { background: var(--green-soft); }
.order li.lunch time { color: var(--green); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stats div { padding: 22px; border-inline-start: 1px solid var(--line); display: grid; gap: 2px; }
.stats div:first-child { border-inline-start: 0; }
.stats strong { font: 700 clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem)/1.1 var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-inline-start: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* video marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); padding-block: 6px; direction: ltr; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- video tiles ---------- */
.tile { display: grid; gap: 10px; align-content: start; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; color: var(--ink); font: inherit; min-width: 0; }
.marquee .tile { width: 280px; }
.thumb { position: relative; aspect-ratio: 16/9; max-width: 100%; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--green)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; color: #fff; font: 500 .95rem/1.35 var(--display); background:
  radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%), linear-gradient(135deg, #1A4592, #2E8A3E); }
.thumb .ph .ico { width: 34px; height: 34px; opacity: .9; margin-bottom: 6px; }
.thumb .dur { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(8, 14, 28, .82); color: #fff; font: 500 .76rem var(--body); padding: 2px 7px; border-radius: 6px; direction: ltr; font-variant-numeric: tabular-nums; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 14, 28, .0); transition: background .25s ease; }
.thumb .play span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--blue); transform: scale(.7); opacity: 0; transition: .25s ease; }
.tile:hover .thumb img { transform: scale(1.06); }
.tile:hover .play { background: rgba(8, 14, 28, .35); }
.tile:hover .play span, .tile:focus-visible .play span { transform: none; opacity: 1; }
.tile .meta { display: grid; gap: 3px; }
.tile b { font-weight: 500; font-size: .96rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile small { color: var(--muted); font-size: .8rem; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 500 .74rem var(--display); padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.tag.live { background: #FDE7E7; color: #B3261E; }
:root[data-theme="dark"] .tag.live { background: #3A1A1A; color: #F4A3A3; }

/* ---------- catalogue ---------- */
.cat-tools { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-block: 14px; }
.cat-tools .wrap { display: grid; gap: 12px; }
.searchrow { display: flex; gap: 10px; flex-wrap: wrap; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; min-width: 0; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; padding: 12px 0; outline: none; }
select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 13px; border-radius: 999px; font: 500 .9rem var(--display); cursor: pointer; transition: .15s ease; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.chip .n { font: 500 .76rem var(--body); opacity: .75; font-variant-numeric: tabular-nums; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 20px; }
.result-line { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.more { display: flex; justify-content: center; margin-top: 34px; }
.series { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.series .card { cursor: pointer; text-align: start; font: inherit; color: inherit; }
.empty-res { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* player modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5, 10, 22, .78); backdrop-filter: blur(6px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-box { width: min(100%, 980px); display: grid; gap: 14px; background: var(--surface); border-radius: 18px; padding: 14px; box-shadow: 0 40px 80px -30px #000; animation: zoom .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes zoom { from { transform: scale(.94); opacity: 0; } }
.modal .screen { position: relative; aspect-ratio: 16/9; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000; }
.modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-bar { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 4px 6px 6px; }
.modal-bar h3 { font-size: 1.05rem; }
.modal-bar p { color: var(--muted); font-size: .88rem; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--blue); }

/* ---------- lessons ---------- */
.lessons { display: grid; gap: 14px; }
.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lesson summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--green-soft); color: var(--green); font: 700 1.1rem var(--display); }
.lesson summary small { color: var(--muted); display: block; font-size: .86rem; }
.lesson .chev { transition: transform .25s ease; color: var(--muted); }
.lesson[open] .chev { transform: rotate(180deg); }
.lesson[open] summary { border-bottom: 1px solid var(--line); background: var(--paper); }
.lesson-body { padding: 22px 24px 26px; display: grid; gap: 18px; }
.lesson-body .ar { direction: rtl; font-family: var(--body-ar); font-size: 1.08rem; line-height: 1.95; text-align: right; }
.verse { border-radius: 14px; padding: 18px 20px; background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); display: grid; gap: 6px; }
.verse p { font: 500 1.2rem/1.9 var(--body-ar); color: var(--ink); }
.verse small { color: var(--muted); }
.lesson-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .lesson-cols { grid-template-columns: 1fr; } .lesson summary { grid-template-columns: 46px 1fr auto; } }
.lesson-cols > div { background: var(--paper); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; }
.lesson-cols ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 4px; }
.lesson h4 { font-size: .95rem; color: var(--green); display: flex; align-items: center; gap: 8px; }

/* ---------- misc blocks ---------- */
.facts { display: grid; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin: 0; }
.facts div { display: grid; grid-template-columns: 34px 160px 1fr; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--line); align-items: center; }
.facts div:first-child { border-top: 0; }
.facts .ico { color: var(--blue); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .facts div { grid-template-columns: 30px 1fr; } .facts dd { grid-column: 2; } }
.beliefs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.beliefs li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.beliefs li > div { display: grid; gap: 4px; }
.beliefs p { color: var(--muted); }
.ref { font-size: .86rem; color: var(--muted); font-style: italic; }
.people { display: flex; flex-wrap: wrap; gap: 10px; }
.person { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--blue-soft); font-weight: 500; }
html[dir="rtl"] .person { padding: 7px 7px 7px 14px; }
.person i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--on-accent); font: 600 .8rem var(--display); font-style: normal; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green-soft); color: var(--green); font: 600 1rem var(--display); }
.steps p { color: var(--muted); }
.urgent { border-radius: var(--radius); background: var(--alert-soft); border: 1px solid color-mix(in srgb, var(--alert) 35%, transparent); padding: 20px 22px; display: grid; gap: 10px; }
.urgent h3 { color: var(--alert); display: flex; gap: 8px; align-items: center; }
.num-big { font: 700 1.6rem var(--display); font-variant-numeric: tabular-nums; }
.copyline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copyline code { font: 500 1rem var(--body); background: var(--paper); border: 1px solid var(--line); padding: 5px 10px; border-radius: 8px; user-select: all; direction: ltr; unicode-bidi: isolate; }
.copy { font: 500 .8rem var(--display); border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--blue); }
.docs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.docs li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.docs li:first-child { border-top: 0; }
.docs li span { display: inline-flex; gap: 10px; align-items: center; }
.invite { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(28px, 5vw, 56px); background: var(--night); color: var(--night-ink); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; isolation: isolate; }
.invite::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, #2F6BC2, transparent 65%); filter: blur(60px); opacity: .6; top: -200px; inset-inline-end: -120px; animation: drift 16s ease-in-out infinite alternate; }
.invite h2 { color: #fff; }
.invite p { color: #C3CEE2; }
.invite .eyebrow { color: var(--lime); }
.invite-card { background: #fff; color: #12203B; border-radius: 18px; padding: 22px; display: grid; gap: 8px; transform: rotate(-2.5deg); box-shadow: 0 30px 60px -25px #000; }
html[dir="rtl"] .invite-card { transform: rotate(2.5deg); }
.invite-card img { width: 48px; height: 48px; }
.invite-card b { font: 600 1.1rem var(--display); }
.invite-card p { color: #55627A; font-size: .93rem; }
@media (max-width: 860px) { .invite { grid-template-columns: 1fr; } }
.note { font-size: .88rem; color: var(--muted); }
.preview-note { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--ink); font-size: .92rem; margin-bottom: 22px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 54px 40px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: .9rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.foot a:hover { color: var(--blue); text-decoration: underline; }
.foot p { color: var(--muted); font-size: .92rem; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand img { width: 60px; height: 60px; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee-track { animation: none; }
}

.interp { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 9px 16px; border-radius: 999px; background: rgba(140, 203, 62, .14); border: 1px solid rgba(140, 203, 62, .4); color: #E4F4CF; font: 500 .95rem var(--display); }
.interp .ico { color: var(--lime); width: 1.35em; height: 1.35em; }

/* two-week schedule */
.sched-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sched-top .sec-head { margin-bottom: 0; }
.sched { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sday { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; align-content: start; min-width: 0; }
.tint .sday { background: var(--paper); }
.sday.today { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sday-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sday-head b { font: 600 1.02rem var(--display); }
.sday-head span { font: 500 .78rem var(--display); color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .sday-head span { letter-spacing: 0; text-transform: none; font-size: .86rem; }
.sday ul { list-style: none; margin: 0; padding: 4px 0; }
.sev { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 16px; align-items: start; }
.sev + .sev { border-top: 1px dashed var(--line); }
.sev .badge-ico { width: 40px; height: 40px; border-radius: 12px; }
.sev .badge-ico .ico { width: 21px; height: 21px; }
.sev time { display: block; font: 600 .95rem var(--display); color: var(--blue); font-variant-numeric: tabular-nums; }
.sev h3 { font-size: .98rem; margin: 1px 0 6px; }
.sev .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag a { color: inherit; }
.sev.past { opacity: .5; }

/* story timeline */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.story::before { content: ""; position: absolute; top: 9px; inset-inline: 9px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 3px; }
html[dir="rtl"] .story::before { background: linear-gradient(-90deg, var(--blue), var(--green)); }
.story li { position: relative; display: grid; gap: 6px; padding: 34px 22px 0 0; }
html[dir="rtl"] .story li { padding: 34px 0 0 22px; }
.story .dot { position: absolute; top: 0; inset-inline-start: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); border: 4px solid var(--blue); }
.story li.now .dot { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 6px var(--green-soft); animation: pulse 2s ease-in-out infinite; }
.story b { font: 700 1.5rem var(--display); color: var(--blue); }
.story li.now b { color: var(--green); }
.story p { color: var(--muted); }
@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; gap: 26px; }
  .story::before { top: 9px; bottom: 9px; inset-inline-start: 9px; inset-inline-end: auto; width: 3px; height: auto; background: linear-gradient(180deg, var(--blue), var(--green)); }
  .story li, html[dir="rtl"] .story li { padding: 0; padding-inline-start: 40px; }
}

/* =====================================================================
   2026 REFRESH: white, calm, one accent. Overrides the earlier look.
   ===================================================================== */
:root {
  --paper: #FFFFFF; --surface: #FFFFFF; --soft: #F6F7F9;
  --ink: #0E1726; --muted: #5B6475; --line: #E6E8EE; --line-strong: #D5D9E2;
  --blue: #1A4592; --blue-2: #1A4592; --blue-soft: #EEF2FA;
  --green: #2E7D3A; --green-soft: #EDF6EE;
  --shadow: 0 1px 2px rgba(14, 23, 38, .04), 0 8px 24px -12px rgba(14, 23, 38, .12);
  --radius: 14px;
}
/* automatic dark mode removed: the site stays white on every device */
:root[data-theme="dark"] {
  --paper: #0B0F17; --surface: #0F1520; --soft: #121A27; --ink: #E8ECF3; --muted: #9AA3B5; --line: #1F2836; --line-strong: #2A3546;
  --blue: #8FB0F2; --blue-2: #8FB0F2; --blue-soft: #16213A; --green: #74C77F; --green-soft: #13261A; --on-accent: #0B0F17;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -14px rgba(0,0,0,.7);
}
body { background: var(--paper); }
h1 { letter-spacing: -0.025em; font-weight: 600; }
h2 { letter-spacing: -0.02em; font-weight: 600; }
.eyebrow { color: var(--blue); font-weight: 600; letter-spacing: .12em; }

.bar { background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { background: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

.btn { border-radius: 10px; font-weight: 500; }
.btn:hover { transform: none; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn-primary:hover { background: var(--blue); filter: none; }
.btn-green { background: var(--blue); color: #fff; box-shadow: none; }
:root[data-theme="dark"] .btn-green { color: var(--on-accent); }
.btn-green:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero::before, .hero::after, .hero .stars { display: none; }
.hero h1 { color: var(--ink); font-size: clamp(2.4rem, 1.2rem + 4.2vw, 4.6rem); }
.hero h1 .sub { color: var(--blue); font-weight: 500; }
.hero .lede { color: var(--muted); font-size: 1.18rem; }
.hero .eyebrow { color: var(--blue); }
.hero-logo { filter: drop-shadow(0 18px 30px rgba(14, 23, 38, .14)); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-strong); backdrop-filter: none; }
.btn-light:hover { border-color: var(--ink); background: var(--surface); }
.interp { background: var(--soft); border-color: var(--line); color: var(--ink); }
.interp .ico { color: var(--blue); }
.count { background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; box-shadow: var(--shadow); }
.count-head { color: var(--muted); }
.count-head b { color: var(--ink); }
.digits { gap: 0; }
.digits div { background: none; border-inline-start: 1px solid var(--line); border-radius: 0; padding: 4px; }
.digits div:first-child { border-inline-start: 0; }
.digits strong { color: var(--ink); font-weight: 600; }
.digits span { color: var(--muted); }

.mast { background: var(--paper); border-bottom: 1px solid var(--line); }
.mast-mark { opacity: .05; animation: none; }

.band.tint { background: var(--soft); }
.band + .band { border-top: 1px solid var(--line); }
.card, .tint .card, .tint .sday { background: var(--surface); }
.card { border-color: var(--line); box-shadow: none; }
a.card:hover, .card.lift:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line-strong); }
.badge-ico, .badge-ico.green { background: var(--blue-soft); color: var(--blue); border-radius: 12px; }
a.card:hover .badge-ico { animation: none; }
.stats strong { color: var(--ink); }

.order { box-shadow: var(--shadow); }
.order-head { background: var(--ink); }
:root[data-theme="dark"] .order-head { background: var(--soft); }
.order-head .eyebrow { color: #C9D6EE; }
.verse { background: var(--soft); border-inline-start: 3px solid var(--blue); border-radius: 10px; }
.invite { background: var(--blue); }
.invite::before { display: none; }
.invite p { color: #DCE5F6; }
.invite .eyebrow { color: #fff; opacity: .85; }
.invite .btn-green { background: #fff; color: var(--blue); }
.invite .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.invite .btn-light:hover { background: rgba(255,255,255,.1); }
.invite-card { transform: rotate(-2deg); }
:root[data-theme="dark"] .invite { background: #16213A; }
.story::before, html[dir="rtl"] .story::before { background: var(--line-strong); }
.story li.now .dot { animation: none; }
.date-pill.next, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sday.today { border-color: var(--blue); box-shadow: none; }
.sday-head span { color: var(--blue); }
.preview-note { background: var(--soft); border: 1px solid var(--line); }

/* ---------- video cards: one consistent frame ---------- */
.vgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.tile { display: flex; flex-direction: column; gap: 0; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.tile:hover, .tile:focus-visible { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile .thumb { border-radius: 0; flex: none; background: var(--soft); }
.tile .thumb .ph { background: var(--soft); color: var(--muted); }
.tile:hover .thumb img { transform: scale(1.03); }
.tile .meta { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.tile b { font: 500 .97rem/1.4 var(--display); min-height: 2.8em; color: var(--ink); }
.tile small { margin-top: auto; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; padding-top: 10px; border-top: 1px solid var(--line); }
.tile small .tag { font-size: .72rem; padding: 2px 8px; }
.tag { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.tag.green { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag.live { background: #FDECEC; color: #B3261E; border-color: transparent; }
.thumb .dur { background: rgba(14, 23, 38, .85); border-radius: 5px; }
.thumb .play span { width: 52px; height: 52px; background: #fff; color: var(--ink); }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { gap: 20px; align-items: stretch; }
.marquee .tile { width: 300px; }
.cat-tools { background: color-mix(in srgb, var(--paper) 95%, transparent); }

/* ---------- lessons & curriculum ---------- */
.lesson-meta { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font: 500 1rem var(--display); }
.lesson .verse { margin-bottom: 26px; display: grid; gap: 4px; padding: 22px 24px; }
.lesson .verse .ar { font: 500 1.45rem/2 "Amiri", var(--body-ar); text-align: right; }
.lesson .verse .en-verse { font: 500 1.08rem/1.7 var(--display); color: var(--ink); }
.age-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 15; background: var(--paper); padding-top: 8px; }
.age-tab { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: start; flex: 1 0 auto; min-width: 150px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; font: 500 .95rem var(--display); }
.age-tab .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); }
.age-tab small { color: var(--muted); font: 500 .78rem var(--body); }
.age-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.age-tab[aria-selected="true"] .ico, .age-tab[aria-selected="true"] small { color: var(--paper); }
.age-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.age-panel .lb, .age-panel .act { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 10px; min-width: 0; }
.age-panel .lb.big, .age-panel .act { grid-column: 1 / -1; }
.age-panel .lb.say { background: var(--blue-soft); border-color: transparent; }
.age-panel .lb.say p { font: 600 1.15rem/1.6 var(--display); color: var(--ink); }
.age-panel h4 { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--blue); }
.age-panel p, .age-panel li { color: var(--ink); }
.age-panel ol, .age-panel ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.age-panel .lb.big p { font-size: 1.08rem; line-height: 1.85; }
.print-head { display: none; }
@media (max-width: 760px) { .age-panel { grid-template-columns: 1fr; } }
.colour-img { width: 100%; max-width: 720px; margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.puz { display: grid; gap: 14px; justify-items: center; overflow-x: auto; }
.ws-grid, .cw-grid { border-collapse: collapse; font: 600 1.05rem var(--display); }
.ws-grid td { width: 2.1em; height: 2.1em; text-align: center; border: 1px solid var(--line); color: #111; background: #fff; }
.ws-words { list-style: none; display: flex !important; flex-wrap: wrap; gap: 8px 14px; justify-content: center; padding: 0 !important; }
.ws-words li { font: 600 .95rem var(--display); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.cw-grid td { width: 2.2em; height: 2.2em; border: 1.5px solid #111; background: #fff; position: relative; vertical-align: top; }
.cw-grid td.x { border: 0; background: transparent; }
.cw-grid td span { position: absolute; top: 1px; inset-inline-start: 3px; font: 600 .62rem var(--body); color: #111; }
.cw-clues { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: 100%; }
.cw-clues h5 { margin: 0 0 6px; font: 600 .95rem var(--display); }
.cw-clues ol { list-style: none; padding: 0 !important; }
.cw-clues small { color: var(--muted); }
@media (max-width: 640px) { .cw-clues { grid-template-columns: 1fr; } .ws-grid td, .cw-grid td { width: 1.7em; height: 1.7em; font-size: .9rem; } }
.answers summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.gf-verse { font: 500 1.15rem/2.2 var(--display); text-align: center; }
.gap { display: inline-block; border-bottom: 2px solid var(--ink); min-width: 5em; }
.gf-bank { color: var(--muted); font: 500 .95rem var(--display); }
.scr-box { display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center; }
.scr { border: 1.5px dashed var(--line-strong); border-radius: 10px; padding: 8px 12px; font: 500 1rem var(--display); background: #fff; color: #111; }
.quiz > li > p { font-weight: 600; }
.quiz ol { margin-top: 6px; }
.licence { margin-top: 26px; display: flex; gap: 10px; align-items: center; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.ico.back { transform: scaleX(-1); }
html[dir="rtl"] .ico.flip.back { transform: none; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.years { display: grid; gap: 14px; }
.year { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.year > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; }
.year > summary::-webkit-details-marker { display: none; }
.year .yno { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--ink); color: var(--paper); font: 700 1.3rem var(--display); }
.year > summary h2 { font-size: 1.3rem; }
.year > summary p { color: var(--muted); }
.year[open] .chev { transform: rotate(180deg); }
.term { padding: 6px 22px 22px; }
.term h3 { margin: 14px 0 12px; font-size: 1rem; color: var(--blue); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lcard { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); }
.lcard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.lcard .wk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font: 600 .9rem var(--display); }
.lcard b { display: block; font: 500 .95rem/1.35 var(--display); }
.lcard small { color: var(--muted); font-size: .8rem; }
.rel { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rel.cols { columns: 2; display: block; }
.rel.cols li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .rel.cols { columns: 1; } }
.video-hero { cursor: pointer; }

@media print {
  .bar, footer, .mast-mark, .crumbs, .age-tabs, .actions, .lesson-nav, .licence, .answers, .modal, .sr, .preview-note { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .mast { border: 0; } .mast .wrap { padding: 0 0 10pt; }
  .band { padding: 0 !important; border: 0 !important; }
  .age-panel { display: block !important; }
  .age-panel[hidden] { display: none !important; }
  .age-panel .lb, .age-panel .act { border: 1px solid #ccc; break-inside: avoid; margin-bottom: 10pt; }
  .act { break-before: page; }
  .print-head { display: block; font-size: 10pt; color: #555; margin-bottom: 8pt; }
  .colour-img { max-width: 100%; border: 0; }
}

/* small phones: keep the header on one line */
.brand > span { min-width: 0; }
.brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .brand small { display: none; } .brand b { font-size: .9rem; max-width: 46vw; } .lang { padding: 7px 10px; } .lang .ico { display: none; } }
.brand { flex: none; }
.nav { flex-wrap: nowrap; }
.foot a.btn { text-decoration: none; }
.foot a.btn-green, .foot a.btn-green:hover { color: #fff; }
.foot a.btn-ghost { color: var(--ink); }

.also-in { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 14px; }
.also-in a { font-weight: 500; }

/* analytics consent */
.consent { position: fixed; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; max-width: 620px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); font-size: .93rem; }
.consent p { flex: 1 1 280px; color: var(--ink); }
.consent .btn { padding: 9px 14px; font-size: .9rem; }
@media print { .consent { display: none !important; } }

/* dated notice strip (home, fellowship) */
.notice-strip { background: var(--green-soft); border-bottom: 2px solid var(--green); }
.notice-strip[hidden] { display: none; }
.notice-in { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; }
.notice-in strong { display: block; font: 600 1.08rem/1.35 var(--display); color: var(--ink); margin-bottom: 4px; }
.notice-in p { margin: 0; color: var(--ink); }
.notice-in .badge-ico { flex: none; }

/* home hero: white ground, photo frame instead of the large logo */
.hero { background: #FFFFFF; }
.hero-photo { position: relative; width: min(100%, 480px); aspect-ratio: 4 / 3; margin: 0; border-radius: 22px; overflow: hidden; background: var(--blue-soft); box-shadow: 0 24px 50px -26px rgba(14, 23, 38, .35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo.empty { display: grid; place-items: center; align-content: center; gap: 14px; padding: 28px; text-align: center; background: linear-gradient(135deg, var(--blue-soft), var(--green-soft)); border: 1px solid var(--line); box-shadow: none; }
.hero-photo.empty img { width: 92px; height: 92px; object-fit: contain; }
.hero-photo.empty figcaption { font: 500 1.05rem/1.4 var(--display); color: var(--ink); }
.hero-photo.empty figcaption small { display: block; font: 400 .92rem var(--body); color: var(--muted); margin-top: 4px; }
@media (max-width: 880px) { .hero-art { order: 2; } .hero-photo { width: 100%; } }

/* brand: English name with the Arabic name underneath, always */
.brand small.brand-ar { display: block; font-family: var(--body-ar); font-size: .86rem; line-height: 1.3; color: var(--blue); text-align: start; }
@media (max-width: 560px) { .brand small.brand-ar { display: block; font-size: .78rem; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* hero: church name in the right-hand column, English over Arabic, photo frame below */
.hero-art { align-content: center; justify-items: stretch; gap: 22px; }
@media (min-width: 881px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero .hero-name { margin: 0; text-align: center; font-size: clamp(1.9rem, .9rem + 2.3vw, 3.2rem); line-height: 1.1; text-wrap: balance; }
.hero-name span { display: block; }
.hero-name .sub { font-family: var(--body-ar); font-size: .62em; font-weight: 600; color: var(--blue); margin-top: .35em; line-height: 1.4; }
.hero-art .hero-photo { justify-self: center; }
@media (max-width: 880px) { .hero-art { order: -1; } .hero .hero-name { text-align: start; } .hero-photo.empty { display: none; } }

/* brand: let the church name wrap instead of being cut off */
.brand b { white-space: normal; overflow: visible; text-overflow: clip; }
.brand { flex: 1 1 auto; min-width: 0; }
@media (max-width: 560px) {
  .brand b { font-size: .88rem; max-width: none; line-height: 1.2; }
  .brand small.brand-ar { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; font-size: .76rem; }
}
