/* Hackathon portal — colours from the executive guide and the ministry identity; Expo Arabic (hackathon font). */
@font-face { font-family: "Expo Arabic"; src: url("../fonts/ExpoArabic-Medium.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Expo Arabic"; src: url("../fonts/ExpoArabic-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #17333c;
  --deep: #0e2f35;
  --teal: #1b4b51;
  --green: #266a57;
  --green-d: #1d5546;
  --mint: #35996b;
  --green-50: #eaf3ef;
  --gold: #b48a4a;
  --gold-d: #946c32;
  --gold-l: #e7cd9a;
  --gold-50: #f8f1e6;
  --bg: #f7faf7;
  --surface: #ffffff;
  --tint: #f0f6f3;
  --line: #dae3de;
  --text: #17333c;
  --muted: #5a6c66;
  --ok: #266a57; --ok-bg: #e6f2ec;
  --warn: #8a6224; --warn-bg: #fbf3e4;
  --bad: #a03a3a; --bad-bg: #fbecec;
  --info: #2c5b70; --info-bg: #e9f2f6;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(23, 51, 60, .05), 0 8px 24px rgba(23, 51, 60, .06);
  --shadow-lg: 0 20px 50px rgba(14, 47, 53, .18);
  --font: "Expo Arabic", "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-d); }
h1, h2, h3, h4, h5 { line-height: 1.45; margin: 0 0 .5em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 1rem + 1.1vw, 1.7rem); }
h3, .h3 { font-size: 1.12rem; }
.h4 { font-size: 1.02rem; margin-top: 1.2em; }
.h5 { font-size: .95rem; color: var(--green); margin-bottom: .2em; }
p { margin: 0 0 1em; }
code { font-size: .85em; background: var(--tint); padding: 1px 6px; border-radius: 6px; font-family: Consolas, monospace; }
.muted { color: var(--muted); }
.small, small { font-size: .86rem; }
.danger { color: var(--bad); }
.center { text-align: center; }
.req { color: var(--bad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.ico.flip { transform: scaleX(-1); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 780px; }
.container.wide { max-width: 1320px; }
.page-pad { padding-block: 36px 64px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s, box-shadow .3s; }
.is-home .site-header { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.is-home .site-header.scrolled { background: rgba(14, 47, 53, .88); backdrop-filter: blur(14px); border-color: rgba(255, 255, 255, .08); box-shadow: 0 6px 24px rgba(0, 0, 0, .15); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand img { width: 30px; }
.brand-text { display: grid; line-height: 1.25; }
.brand-text strong { font-size: 1.12rem; }
.brand-text small { font-size: .78rem; color: var(--gold-d); }
.is-home .brand { color: #fff; }
.is-home .brand img { filter: brightness(0) invert(1); }
.is-home .brand-text small { color: var(--gold-l); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a, .nav-link { color: var(--ink); text-decoration: none; font-size: .95rem; position: relative; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav > a:not(.btn):hover::after { transform: scaleX(1); }
.is-home .main-nav a:not(.btn), .is-home .nav-link { color: rgba(255, 255, 255, .9); }
.main-nav .btn { color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); }
.is-home .nav-sep { background: rgba(255, 255, 255, .2); }
.who { color: var(--muted); font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: auto; transition: transform .25s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; }
.nav-toggle .bars::before { top: -7px; } .nav-toggle .bars::after { top: 7px; }
.is-home .nav-toggle .bars, .is-home .nav-toggle .bars::before, .is-home .nav-toggle .bars::after { background: #fff; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent !important; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.sub-nav { border-top: 1px solid var(--line); background: var(--surface); }
.sub-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.sub-nav a { padding: 11px 12px; white-space: nowrap; color: var(--muted); text-decoration: none; font-size: .92rem; border-bottom: 2px solid transparent; }
.sub-nav a:hover { color: var(--ink); }
.sub-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; inset-inline: 12px; top: 72px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px; }
  .main-nav.open { display: flex; animation: drop .25s var(--ease); }
  .main-nav > a, .main-nav > form, .main-nav > .who { padding: 12px 0; border-bottom: 1px solid var(--tint); }
  .main-nav > a::after { display: none; }
  .is-home .main-nav a:not(.btn), .is-home .nav-link { color: var(--ink); }
  .nav-sep { display: none; }
  .main-nav .btn { margin-top: 12px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--green); color: #fff; border: 1.5px solid var(--green);
  padding: 10px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-sm { padding: 6px 16px; font-size: .88rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green-50); color: var(--green-d); }
.btn-gold { background: linear-gradient(135deg, #c79c58, var(--gold)); border-color: var(--gold); color: #fff; box-shadow: 0 8px 22px rgba(180, 138, 74, .32); }
.btn-gold:hover { background: linear-gradient(135deg, #b88d4b, var(--gold-d)); border-color: var(--gold-d); box-shadow: 0 10px 26px rgba(180, 138, 74, .42); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-ghost-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #862f2f; border-color: #862f2f; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--bad); }
.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 140px 0 120px; min-height: 92vh; display: flex; align-items: center;
  background: radial-gradient(1000px 520px at 80% 0%, rgba(53, 153, 107, .35), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, rgba(180, 138, 74, .2), transparent 60%),
              linear-gradient(160deg, var(--deep) 0%, var(--ink) 45%, #1d4f4d 100%); }
.hero-pattern { position: absolute; pointer-events: none; opacity: .07; }
.hero-pattern.p1 { width: 720px; inset-inline-start: -220px; top: -180px; animation: spin 120s linear infinite; }
.hero-pattern.p2 { width: 460px; inset-inline-end: -140px; bottom: -120px; opacity: .05; animation: spin 90s linear infinite reverse; }
.hero-glow { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .03) 50%, transparent); pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin: 20px 0 8px; line-height: 1.15; }
.h1-top { display: block; font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); letter-spacing: 0; }
.h1-sub { display: block; font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem); color: rgba(255, 255, 255, .92); font-weight: 600; margin-top: 4px; }
.hero .tagline { color: var(--gold-l); font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); font-weight: 700; margin-bottom: 14px; }
.hero .lead { color: rgba(255, 255, 255, .8); max-width: 58ch; font-size: 1.04rem; }
.hero .actions { margin-top: 28px; }
.countdown { margin-top: 30px; display: inline-grid; gap: 10px; }
.cd-label { color: rgba(255, 255, 255, .75); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.cd-boxes { display: flex; gap: 10px; }
.cd-boxes span { min-width: 72px; padding: 10px 8px; text-align: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; backdrop-filter: blur(6px); }
.cd-boxes b { display: block; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-boxes small { color: rgba(255, 255, 255, .65); font-size: .78rem; }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); }
.arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .12); background-clip: padding-box; isolation: isolate; }
.arch::after { content: ""; position: absolute; inset: 10px; border-radius: 999px 999px 18px 18px; border: 1.5px solid rgba(255, 255, 255, .45); pointer-events: none; }
.arch-fill { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #ffffff, #e9f2ee 70%); }
.arch-fill.green { background: linear-gradient(160deg, var(--mint), #23704f); }
.arch-pattern { position: absolute; width: 140%; max-width: none; top: 50%; left: 50%; translate: -50% -50%; opacity: .08; filter: brightness(0); animation: spin 140s linear infinite; }
.arch-fill.green .arch-pattern { filter: none; opacity: .16; }
.arch-logo { position: relative; width: 52%; filter: drop-shadow(0 10px 20px rgba(23, 51, 60, .15)); }
.arch-logo.ministry { width: 44%; filter: none; }
.arch-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(14, 47, 53, .35), transparent 45%); }
.float-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: var(--shadow-lg); font-size: .9rem; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float-chip .ico { color: var(--green); width: 1.4em; height: 1.4em; }
.float-chip b { color: var(--green); }
.float-chip.c1 { top: 12%; inset-inline-end: -14%; }
.float-chip.c2 { top: 48%; inset-inline-start: -18%; animation-delay: -2s; }
.float-chip.c3 { bottom: 8%; inset-inline-end: -8%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero-curve { position: absolute; bottom: -1px; inset-inline: 0; width: 100%; height: 70px; fill: var(--surface); }
@media (max-width: 900px) {
  .hero { padding: 110px 0 90px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .actions, .cd-boxes { justify-content: center; }
  .countdown { justify-items: center; }
  .cd-label { justify-content: center; }
  .hero-visual { width: min(270px, 70vw); }
  .float-chip { font-size: .8rem; padding: 8px 12px; }
  .float-chip.c1 { inset-inline-end: -22%; } .float-chip.c2 { inset-inline-start: -26%; } .float-chip.c3 { inset-inline-end: -16%; }
}
@media (max-width: 520px) { .float-chip { display: none; } .cd-boxes span { min-width: 60px; } .cd-boxes b { font-size: 1.35rem; } }

.reg-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 16px; border-radius: 999px; font-size: .9rem; background: var(--tint); color: var(--ink); border: 1px solid var(--line); }
.reg-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.reg-ok .dot { background: #34c685; box-shadow: 0 0 0 4px rgba(52, 198, 133, .2); animation: pulse 2s infinite; }
.reg-info .dot { background: var(--gold); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 198, 133, 0); } }
.hero .reg-pill { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }

/* ---------- partners ---------- */
.partners-strip { background: var(--surface); padding: 10px 0 34px; }
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 64px; }
.partners-row img { width: auto; opacity: .92; transition: opacity .2s; }
.partners-row img:hover { opacity: 1; }
.p-ministry { height: 56px; } .p-rajhi { height: 62px; } .p-vision { height: 50px; }

/* ---------- sections ---------- */
.section { position: relative; padding: 88px 0; overflow: hidden; }
.section.tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.35; }
.section-title.light { color: #fff; }
.hl { color: var(--green); background: linear-gradient(transparent 62%, rgba(180, 138, 74, .25) 0); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-d); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow.light { color: var(--gold-l); }
.prose-lg { font-size: 1.05rem; color: #334d4f; }
.section-pattern { position: absolute; width: 520px; opacity: .06; inset-inline-start: -160px; top: -140px; pointer-events: none; }
.section-pattern.right { inset-inline-start: auto; inset-inline-end: -170px; top: auto; bottom: -170px; opacity: .06; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 820px) { .two-col, .cards-2 { grid-template-columns: 1fr; } .section { padding: 60px 0; } }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-visual { position: relative; max-width: 380px; justify-self: center; width: 100%; }
.arch-sm { border-color: var(--green-50); }
.about-badge { position: absolute; bottom: 28px; inset-inline-start: -30px; display: flex; gap: 10px; align-items: center; background: var(--surface); padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .92rem; line-height: 1.5; }
.about-badge .ico { color: var(--gold); width: 2em; height: 2em; }
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.outcome { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.outcome:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.outcome .ic, .note .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.outcome .ic .ico, .note .ic .ico { width: 24px; height: 24px; }
.outcome h3 { font-size: 1rem; margin-bottom: 2px; }
.outcome p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-visual { max-width: 300px; } .about-badge { inset-inline-start: -10px; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } }

.tracks-section { background: linear-gradient(180deg, var(--tint), var(--bg)); }
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.track { position: relative; background: var(--surface); border-radius: 24px; padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.track::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--green), var(--mint), var(--gold)); }
.track::after { content: ""; position: absolute; width: 220px; height: 220px; inset-inline-end: -70px; bottom: -90px; border-radius: 50%; background: radial-gradient(var(--green-50), transparent 70%); }
.track:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.track-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.track-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--mint)); color: #fff; box-shadow: 0 10px 22px rgba(38, 106, 87, .3); }
.track-ic .ico { width: 30px; height: 30px; }
.track-num { color: var(--gold-d); font-weight: 700; font-size: .9rem; border: 1.5px solid var(--gold-l); padding: 2px 14px; border-radius: 999px; }
.track h3 { font-size: 1.3rem; position: relative; z-index: 1; }
.track p { position: relative; z-index: 1; color: var(--muted); }
.chips-label { font-size: .85rem; color: var(--green) !important; font-weight: 700; margin: 16px 0 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.chips li { background: var(--tint); border: 1px solid var(--line); padding: 4px 14px; border-radius: 999px; font-size: .88rem; }
.track .ticks { position: relative; z-index: 1; }

.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.aud { text-align: center; padding: 30px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.aud:hover { transform: translateY(-4px); border-color: var(--gold-l); box-shadow: var(--shadow); }
.aud-ic { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: var(--green-50); position: relative; }
.aud-ic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px dashed var(--gold-l); }
.aud-ic .ico { width: 32px; height: 32px; }
.aud p { margin: 0; font-weight: 600; line-height: 1.7; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 32px; }
.note { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--green); border-radius: var(--radius); padding: 20px; }
.note.gold { border-inline-start-color: var(--gold); background: var(--gold-50); }
.note.gold .ic { background: #fff; color: var(--gold-d); }
.note h3 { font-size: 1rem; margin-bottom: 4px; }
.note p { margin: 0; color: var(--muted); font-size: .95rem; }

.journey-section { background: linear-gradient(160deg, var(--deep), var(--ink) 60%, #1f5650); color: #fff; }
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; position: relative; }
.journey::before { content: ""; position: absolute; top: 34px; inset-inline: 7%; height: 2px; background: linear-gradient(90deg, rgba(231, 205, 154, .1), rgba(231, 205, 154, .6), rgba(231, 205, 154, .1)); }
.journey li { position: relative; text-align: center; padding: 0 4px; }
.journey .step { position: relative; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); border: 2px solid rgba(231, 205, 154, .5); color: var(--gold-l); transition: transform .3s var(--ease), background .3s; }
.journey li:hover .step { transform: scale(1.08); background: var(--green); }
.journey .step .ico { width: 28px; height: 28px; }
.journey .step i { position: absolute; top: -4px; inset-inline-end: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-style: normal; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.journey li.current .step { background: var(--gold); color: #fff; border-color: #fff; box-shadow: 0 0 0 8px rgba(180, 138, 74, .25); }
.journey h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.journey p { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .68); line-height: 1.6; }
.journey .when { color: var(--gold-l); font-weight: 700; margin-top: 8px; font-size: .82rem; }
@media (max-width: 1000px) {
  .journey { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .journey::before { top: 0; bottom: 0; inset-inline: auto; inset-inline-start: 33px; width: 2px; height: auto; background: linear-gradient(180deg, rgba(231, 205, 154, .1), rgba(231, 205, 154, .55), rgba(231, 205, 154, .1)); }
  .journey li { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: start; padding: 0 0 22px; align-items: start; }
  .journey .step { grid-row: span 3; margin: 0; }
}

.criteria-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.crit-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.crit-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.crit-list b { margin-inline-start: auto; font-size: 1.2rem; color: var(--green); font-variant-numeric: tabular-nums; }
.sw { width: 14px; height: 14px; border-radius: 4px; }
.sw0 { background: #266a57; } .sw1 { background: #35996b; } .sw2 { background: #b48a4a; } .sw3 { background: #1b4b51; } .sw4 { background: #e7cd9a; }
.donut-wrap { display: grid; place-items: center; }
.donut { width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  background: conic-gradient(#266a57 0 25%, #35996b 0 50%, #b48a4a 0 70%, #1b4b51 0 90%, #e7cd9a 0 100%); animation: grow 1.2s var(--ease) both; }
.donut-hole { width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); display: grid; place-content: center; text-align: center; box-shadow: inset 0 4px 16px rgba(0, 0, 0, .06); }
.donut-hole b { font-size: 3rem; line-height: 1; color: var(--ink); }
.donut-hole small { color: var(--muted); }
@keyframes grow { from { transform: scale(.85) rotate(-40deg); opacity: 0; } }
@media (max-width: 900px) { .criteria-grid { grid-template-columns: 1fr; gap: 36px; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: var(--gold-l); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 22px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--gold); color: #fff; }
.faq-a { padding: 0 22px 16px; color: var(--muted); }

.cta { position: relative; overflow: hidden; color: #fff; padding: 130px 0; background: linear-gradient(135deg, var(--green-d), var(--ink)); }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Dark on the text side (right in RTL), lighter where the people are */
.cta-photo { z-index: 0; }
.cta-pattern { z-index: 2; }
.cta-inner { z-index: 3; }
.cta:has(.cta-photo)::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(14, 47, 53, .94) 0%, rgba(14, 47, 53, .78) 45%, rgba(14, 47, 53, .35) 100%); }
@media (max-width: 760px) { .cta { padding: 80px 0; } .cta:has(.cta-photo)::before { background: rgba(14, 47, 53, .82); } }
.cta-pattern { position: absolute; width: 560px; inset-inline-end: -120px; top: 50%; translate: 0 -50%; opacity: .08; pointer-events: none; animation: spin 150s linear infinite; }
.cta-inner { position: relative; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner > div { flex: 1; min-width: 240px; }
.cta-logo { width: 74px; opacity: .95; }
.cta h2 { color: #fff; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .8); margin: 0; }

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--deep); color: rgba(255, 255, 255, .75); }
.footer-pattern { position: absolute; width: 420px; inset-inline-start: -120px; bottom: -160px; opacity: .05; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.footer-logo { width: 200px; margin-bottom: 14px; }
.footer-brand p { color: var(--gold-l); margin: 0; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links h2 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.site-footer .partners { position: relative; background: #fff; padding: 22px 0; }
.footer-bar { position: relative; padding: 16px 0; font-size: .86rem; color: rgba(255, 255, 255, .6); text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- inner pages ---------- */
.is-inner main { min-height: 60vh; background: radial-gradient(900px 420px at 100% 0, rgba(38, 106, 87, .06), transparent 60%), var(--bg); }
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 48px 0 110px; background: linear-gradient(160deg, var(--deep), var(--ink) 55%, #1f5650); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 6px; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 62ch; }
.page-hero .hero-pattern.p1 { width: 480px; inset-inline-start: auto; inset-inline-end: -140px; top: -160px; }
.auth-wrap { width: 100%; max-width: 980px; margin-inline: auto; padding: 48px 20px 72px; }
.auth-card { max-width: 520px; margin-inline: auto; padding: 36px; }
.auth-icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.auth-icon .ico { width: 34px; height: 34px; }
.auth-card h1 { text-align: center; }
.auth-split { display: grid; grid-template-columns: .9fr 1.1fr; padding: 0; overflow: hidden; }
.auth-art { position: relative; overflow: hidden; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px; text-align: center; color: var(--gold-l); font-weight: 700;
  background: linear-gradient(160deg, var(--deep), var(--ink) 60%, var(--green)); }
.auth-art p { margin: 0; position: relative; }
.auth-pattern { position: absolute; width: 150%; max-width: none; top: 50%; left: 50%; translate: -50% -50%; opacity: .07; animation: spin 140s linear infinite; }
.auth-logo { width: 120px; position: relative; }
.auth-body { padding: 40px; }
@media (max-width: 760px) { .auth-split { grid-template-columns: 1fr; } .auth-art { padding: 28px; } .auth-logo { width: 70px; } .auth-body, .auth-card { padding: 26px 22px; } }
.code-input { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.next-steps { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; text-align: start; }
.next-steps li { display: flex; gap: 12px; align-items: center; background: var(--tint); padding: 12px 16px; border-radius: 12px; }
.next-steps .ico { color: var(--green); width: 1.4em; height: 1.4em; }

/* ---------- registration wizard ---------- */
.reg-container { margin-top: -72px; padding-bottom: 64px; position: relative; }
.reg-closed { max-width: 640px; margin-inline: auto; padding: 40px; }
.wizard { padding: 34px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; color: var(--muted); position: relative; }
.steps li::after { content: ""; position: absolute; bottom: 0; inset-inline: 10px; height: 3px; border-radius: 3px; background: var(--line); }
.steps .dot { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); border: 1.5px solid var(--line); transition: all .3s var(--ease); }
.steps .lbl { display: grid; line-height: 1.35; font-weight: 700; font-size: .95rem; }
.steps .lbl small { font-weight: 400; font-size: .75rem; }
.steps li.active { color: var(--ink); }
.steps li.active .dot { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 0 0 5px rgba(38, 106, 87, .15); }
.steps li.active::after, .steps li.done::after { background: linear-gradient(90deg, var(--green), var(--mint)); }
.steps li.done .dot { background: var(--green-50); color: var(--green); border-color: var(--green); }
.steps li.has-error .dot { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.no-js-steps .steps { display: none; }
@media (max-width: 640px) { .steps .lbl { display: none; } .steps li { justify-content: center; } .wizard { padding: 22px 18px; } }
.wizard fieldset { border: 0; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.js .wizard fieldset { margin: 0; }
.wizard legend { font-size: 1.25rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 18px; }
.wizard legend .ico { color: var(--gold); width: 1.3em; height: 1.3em; }
.js .wizard fieldset[data-step] { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateX(-12px); } }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 4px 0 6px; }
.choice-card { position: relative; display: grid; gap: 4px; padding: 22px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); font-weight: 400 !important; }
.choice-card:hover { border-color: var(--mint); transform: translateY(-2px); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 4px rgba(38, 106, 87, .12); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.cc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--green); margin-bottom: 6px; }
.cc-ic .ico { width: 26px; height: 26px; }
.choice-card strong { font-size: 1.15rem; color: var(--ink); }
.choice-card span:last-child { color: var(--muted); font-size: .92rem; }
.kind-box { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--tint); }
.members-head h3 { margin: 6px 0 0; font-size: 1.02rem; }
.members { display: grid; gap: 10px; }
.member-row { display: grid; grid-template-columns: 34px 1.4fr 1fr; gap: 10px; align-items: center; }
.mr-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--green); font-weight: 700; border: 1px solid var(--line); }
@media (max-width: 600px) { .member-row { grid-template-columns: 34px 1fr; } .member-row input[name="member_role[]"] { grid-column: 2; } }
.review-box { display: grid; gap: 12px; }
.review-sec { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.review-sec h3 { font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-sec dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: .92rem; }
.review-sec dt { color: var(--muted); }
.review-sec dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (max-width: 600px) { .review-sec dl { grid-template-columns: 1fr; } .review-sec dt { margin-top: 6px; } }
.consent { padding: 14px 16px; border-radius: 14px; background: var(--tint); }
/* Two-option segmented control (الجنس) */
.gender-field { border: 0; padding: 0; margin: 0 !important; display: grid; gap: 6px; min-width: 0; }
.wizard .field-legend, .form .field-legend { display: block; font-size: .95rem; font-weight: 600; margin: 0; padding: 0; border: 0; color: var(--text); width: auto; }
.seg { display: flex; gap: 10px; }
.seg label { flex: 1; display: block !important; position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: grid; place-items: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid #cfdcd5; border-radius: 12px; background: #fff; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.seg label:hover span { border-color: var(--mint); }
.seg input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.was-checked .seg input:invalid + span { border-color: var(--bad); }
.wizard-nav { display: flex; gap: 12px; align-items: center; padding-top: 22px; margin-top: 10px; border-top: 1px solid var(--line); }
.wizard-nav .spacer { flex: 1; }

/* ---------- alerts, badges ---------- */
.flashes { padding-top: 18px; }
.is-home .flashes { position: fixed; top: 84px; inset-inline: 0; z-index: 25; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 14px; border: 1px solid transparent; }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; }
.alert-ok { background: var(--ok-bg); border-color: #c6e0d3; color: #1b4d3f; }
.alert-info { background: var(--info-bg); border-color: #cde0e9; color: #20475a; }
.alert-warn { background: var(--warn-bg); border-color: #efdcb8; color: #6c4c19; }
.alert-bad { background: var(--bad-bg); border-color: #f0cccc; color: #7d2a2a; }
.alert a { color: inherit; font-weight: 700; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #c6e0d3; }
.badge-info { background: var(--info-bg); color: var(--info); border-color: #cde0e9; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #efdcb8; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: #f0cccc; }
.badge-muted { background: var(--tint); color: var(--muted); border-color: var(--line); }
.tag { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: .78rem; background: var(--green-50); color: var(--green); font-weight: 700; vertical-align: middle; }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }

/* ---------- cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.soft { background: var(--green-50); border-color: #cfe2d8; box-shadow: none; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.warn-card { border-inline-start: 4px solid var(--gold); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-inline-start: 22px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .75em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 1px; }
.form { display: grid; gap: 16px; }
/* Label text, «*» and «(اختياري)» share the first line; the field, hint and counter each take a full line. */
.form label, .filters label, .wizard label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; row-gap: 6px; font-weight: 600; font-size: .95rem; }
.form label > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .hint, .counter),
.filters label > :is(input, select, textarea),
.wizard label > :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .hint, .counter) { flex: 0 0 100%; }
.wizard label.choice-card { display: grid; }
.form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.form legend { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding: 0 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; width: 100%; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1.5px solid #cfdcd5; border-radius: 12px; padding: 11px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(38, 106, 87, .14); }
.was-checked :invalid { border-color: var(--bad); }
input:disabled { background: var(--tint); color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 19px; height: 19px; accent-color: var(--green); flex: none; margin-top: 4px; }
.form label.check, label.check, .wizard label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-col { display: grid; gap: 8px; margin-bottom: 10px; }
.hint { color: var(--muted); font-weight: 400; font-size: .85rem; }
.counter { color: var(--muted); font-weight: 400; font-size: .8rem; text-align: end; margin-top: -2px; }
.counter.over { color: var(--bad); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-invite { grid-template-columns: 1.3fr 1fr auto; align-items: end; }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-invite { grid-template-columns: 1fr; } }
.form-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; font-size: .92rem; }
.form-links.center { justify-content: center; }
.inline-form { margin-top: 12px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 4px; border-top: 1px solid var(--line); }
.narrow-form { max-width: 760px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px; }
.filters label { min-width: 160px; flex: 1; font-size: .85rem; }
.filters .btn { min-height: 48px; }

/* ---------- account & admin ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.tabs a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }
.choice { display: grid; gap: 6px; text-align: start; background: var(--tint); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; font: inherit; color: var(--text); cursor: pointer; }
.choice:hover { border-color: var(--green); background: var(--green-50); }
.choice strong { color: var(--green); font-size: 1.1rem; }
.choice span { color: var(--muted); font-size: .92rem; }
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.app-card-head h2, .app-card-head p { margin: 0; }
.invite-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-inline-start: 4px solid var(--gold); }
.invite-row p { margin: 0; }
.invite-box { text-align: center; background: var(--tint); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.invite-box p { margin: 0; }
.invite-box .team-name { font-size: 1.4rem; font-weight: 700; color: var(--green); margin: 4px 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; }
.checklist li.ok .mark { background: var(--ok-bg); color: var(--ok); }
.checklist li.no .mark { background: var(--warn-bg); color: var(--warn); border: 1px solid #efdcb8; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.people li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--tint); }
.people li:last-child { border-bottom: 0; }
.danger-zone { margin-top: 10px; background: var(--surface); border: 1px dashed #e3c0c0; border-radius: var(--radius); padding: 12px 18px; }
.danger-zone summary { cursor: pointer; color: var(--bad); font-weight: 700; }
.danger-zone form { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; font-weight: 700; }
.field-block { padding: 12px 0; border-bottom: 1px solid var(--tint); }
.field-block:last-child { border-bottom: 0; }
.field-block p { margin-bottom: .4em; }
.prose p { max-width: 75ch; }

.admin { background: #f3f7f5; }
.admin .site-header { position: sticky; }
.admin-main { padding-top: 26px; padding-bottom: 56px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } }
.status-stack { display: grid; justify-items: end; gap: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.stat::after { content: ""; position: absolute; inset-inline-end: -26px; top: -26px; width: 80px; height: 80px; border-radius: 50%; background: var(--green-50); }
.stat span { color: var(--muted); font-size: .88rem; position: relative; }
.stat strong { font-size: 2rem; color: var(--ink); line-height: 1.2; font-variant-numeric: tabular-nums; position: relative; }
.stat small { color: var(--muted); position: relative; }
.stat-bad strong { color: var(--bad); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 11px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.table tbody tr:nth-child(even) { background: #fafcfb; }
.table tbody tr:hover { background: var(--green-50); }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.table td input { min-height: 38px; padding: 6px 10px; }
.clip { max-width: 260px; overflow-wrap: anywhere; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 20px; }
.pager a { min-width: 36px; text-align: center; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--green); color: #fff; border-color: var(--green); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { border-inline-start: 2px solid var(--line); padding-inline-start: 12px; }
.timeline p { margin: 4px 0 0; font-size: .9rem; }
.note-int { color: var(--muted); }
.note-ext { color: var(--green-d); }
.policy-edit { border-bottom: 1px solid var(--line); padding: 10px 0; }
.policy-edit:last-child { border-bottom: 0; }
.policy-edit summary { cursor: pointer; display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.policy-edit form { margin-top: 12px; }
.faq-edit { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tint); }
@media (max-width: 680px) { .faq-edit { grid-template-columns: 1fr; } }
.mail-body { white-space: pre-wrap; font-family: inherit; background: var(--tint); padding: 10px; border-radius: 8px; margin: 8px 0 0; direction: rtl; unicode-bidi: plaintext; }
.page-plain { padding: 32px 0; }

/* =====================================================================
   Identity aligned with the main announcement poster:
   deep teal gradients, emerald accent, translucent teal cards, no gold.
   ===================================================================== */
:root {
  --deep: #002424;
  --ink: #0f3a3d;
  --teal: #0d585b;
  --teal-3: #1a6a69;
  --bar: #087e82;
  --green: #0b7a78;
  --green-d: #08605f;
  --mint: #0ca682;
  --mint-l: #81e4d0;
  --green-50: #e3f4f1;
  --tint: #eef6f4;
  --gold: #0ca682;
  --gold-d: #08916f;
  --gold-l: #81e4d0;
  --gold-50: #e3f6f1;
  --text: #12393c;
}
.btn-accent, .btn-gold { background: linear-gradient(135deg, #12b88f, var(--mint)); border-color: var(--mint); color: #fff; box-shadow: 0 8px 22px rgba(12, 166, 130, .32); }
.btn-accent:hover, .btn-gold:hover { background: linear-gradient(135deg, #0fa680, #08916f); border-color: #08916f; color: #fff; box-shadow: 0 10px 26px rgba(12, 166, 130, .42); }

/* Header: solid white so both partner logos stay legible on every page */
.site-header, .is-home .site-header, .is-home .site-header.scrolled { position: sticky; top: 0; inset-inline: auto; background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: none; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 36, 36, .08); }
.brand-logos { display: flex; align-items: center; gap: 14px; margin-inline-end: auto; text-decoration: none; }
.brand-logos img { width: auto; display: block; }
.hl-ministry { height: 52px; }
.hl-rajhi { height: 50px; }
.logo-sep { width: 1px; height: 38px; background: var(--line); }
.is-home .main-nav a:not(.btn), .is-home .nav-link { color: var(--ink); }
.is-home .nav-toggle .bars, .is-home .nav-toggle .bars::before, .is-home .nav-toggle .bars::after { background: var(--ink); }
.main-nav > a:not(.btn)::after { background: var(--mint); }
.is-home .flashes { position: static; }
@media (max-width: 900px) { .hl-ministry { height: 40px; } .hl-rajhi { height: 38px; } .logo-sep { height: 30px; } }

/* Hero: blurred mosque arches in teal, like the poster background */
.hero { min-height: 0; padding: 90px 0 110px; background: linear-gradient(170deg, #1a6a69 0%, #0d585b 45%, #002424 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(700px 420px at 12% 0%, rgba(255, 255, 255, .22), transparent 60%),
  linear-gradient(180deg, rgba(0, 36, 36, .15), rgba(0, 36, 36, .65)); pointer-events: none; }
.hero-grid { z-index: 1; }
.hero-logo { margin: 0 0 18px; line-height: 0; }
.hero-logo img { width: min(430px, 82vw); height: auto; }
.hero .tagline { color: #fff; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.6; max-width: 32ch; }
.hero .lead { color: rgba(255, 255, 255, .85); }
.deadline { margin-top: 28px; display: inline-flex; align-items: center; gap: 16px; padding: 12px 18px 12px 22px; border-radius: 20px; background: rgba(8, 126, 130, .55); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.deadline .days { display: grid; place-items: center; min-width: 74px; padding: 6px 10px; border-radius: 14px; background: var(--mint); color: #fff; line-height: 1.1; }
.deadline .days b { font-size: 2rem; }
.deadline .days small { font-size: .8rem; }
.deadline-text { display: grid; gap: 2px; }
.deadline-text span { color: rgba(255, 255, 255, .8); font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.deadline-text strong { color: #fff; font-size: 1.05rem; }
.float-chip { background: rgba(255, 255, 255, .96); }
.float-chip .ico, .float-chip b { color: var(--bar); }
@media (max-width: 900px) {
  .hero { padding: 56px 0 80px; }
  .hero-logo img { margin-inline: auto; display: block; }
  .hero .tagline { margin-inline: auto; }
  .deadline { flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* Dark teal sections (poster style) */
.section.dark { color: rgba(255, 255, 255, .86); background: linear-gradient(180deg, #0b4f52 0%, #073f43 100%); }
.section.dark.tracks-dark, .section.dark.audience-dark { background: linear-gradient(180deg, #073f43 0%, #062f33 100%); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: rgba(255, 255, 255, .8); }
.section.dark .section-pattern { filter: none; opacity: .05; }
.prose-lg.light, .prose-lg.light p { color: rgba(255, 255, 255, .85); }
.pill-label { display: inline-block; padding: 6px 20px; border-radius: 999px; background: var(--bar); color: #fff !important; font-weight: 700; font-size: .92rem; margin-bottom: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.journey-section .pill-label { background: var(--mint); }
.sub-title { margin: 28px 0 14px; font-size: 1.1rem; }
.about-dark .arch { border-color: rgba(255, 255, 255, .14); }
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.goal { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.goal .ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 166, 130, .18); color: var(--mint-l); }
.goal .ic .ico { width: 22px; height: 22px; }
.goal p { margin: 0; font-size: .95rem; line-height: 1.7; }
@media (max-width: 560px) { .goals { grid-template-columns: 1fr; } }

.tracks-dark .track { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.tracks-dark .track::before { background: linear-gradient(90deg, var(--mint), var(--bar)); }
.tracks-dark .track::after { background: radial-gradient(rgba(12, 166, 130, .16), transparent 70%); }
.tracks-dark .track:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .25); }
.tracks-dark .track-ic { background: rgba(12, 166, 130, .2); color: var(--mint-l); box-shadow: none; border-radius: 50%; }
.tracks-dark .track-num { color: var(--mint-l); border-color: rgba(129, 228, 208, .4); }
.tracks-dark .track p { color: rgba(255, 255, 255, .78); }
.tracks-dark .chips-label { color: var(--mint-l) !important; }
.tracks-dark .chips li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #fff; }
.tracks-dark .ticks li::before { background: var(--mint); }

.prize-total { margin: 4px 0 0; color: #fff !important; }
.prize-total b { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); line-height: 1; color: var(--mint-l); font-variant-numeric: tabular-nums; }
.prize-total span { font-size: 1.3rem; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; max-width: 900px; margin: 30px auto 0; }
.prize { text-align: center; padding: 26px 18px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.prize .medal { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.prize .medal .ico { width: 32px; height: 32px; }
.prize h3 { margin-bottom: 6px; }
.prize .amount { margin: 0; color: #fff !important; }
.prize .amount b { font-size: 1.8rem; color: var(--mint-l); }
.prize.first { order: 2; padding-block: 40px; background: linear-gradient(160deg, rgba(12, 166, 130, .35), rgba(8, 126, 130, .25)); border-color: rgba(129, 228, 208, .45); }
.prize.first .medal { background: var(--mint); }
.prize.second { order: 1; }
.prize.third { order: 3; }
@media (max-width: 680px) { .podium { grid-template-columns: 1fr; } .prize.first, .prize.second, .prize.third { order: 0; } }

.audience-dark .aud { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.audience-dark .aud:hover { border-color: rgba(129, 228, 208, .45); box-shadow: none; }
.audience-dark .aud-ic { background: rgba(12, 166, 130, .18); color: var(--mint-l); }
.audience-dark .aud-ic::after { border-color: rgba(129, 228, 208, .35); }
.audience-dark .aud p { color: #fff; }
.audience-dark .note, .audience-dark .note.gold { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); border-inline-start-color: var(--mint); }
.audience-dark .note .ic { background: rgba(12, 166, 130, .18); color: var(--mint-l); }
.audience-dark .note p { color: rgba(255, 255, 255, .78); }

.journey-section { background: linear-gradient(170deg, #087e82, #0d585b 55%, #002424); }
.journey .step { background: rgba(0, 36, 36, .35); border-color: rgba(129, 228, 208, .5); color: var(--mint-l); }
.journey .step i { background: var(--mint); }
.journey li.current .step { background: var(--mint); border-color: #fff; box-shadow: 0 0 0 8px rgba(12, 166, 130, .25); color: #fff; }
.journey .when { color: var(--mint-l); }
.journey::before { background: linear-gradient(90deg, rgba(129, 228, 208, .1), rgba(129, 228, 208, .6), rgba(129, 228, 208, .1)); }

.faq-dark .faq details { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.faq-dark .faq summary { color: #fff; }
.faq-dark .faq details[open] { border-color: rgba(129, 228, 208, .45); }
.faq-dark .faq-a, .faq-dark .faq-a p { color: rgba(255, 255, 255, .78); }

.cta { background: linear-gradient(135deg, #087e82, #002424); }
.cta:has(.cta-photo)::before { background: linear-gradient(270deg, rgba(0, 36, 36, .95) 0%, rgba(0, 36, 36, .8) 45%, rgba(0, 36, 36, .35) 100%); }
.site-footer { background: var(--deep); }
.footer-brand p { color: var(--mint-l); }
.footer-mail { display: inline-flex; align-items: center; gap: 6px; }
.page-hero { background: linear-gradient(170deg, #1a6a69, #0d585b 50%, #002424); }
.eyebrow.light { color: var(--mint-l); }

/* Simplified registration */
.js .idea-form fieldset + fieldset, .idea-form fieldset + fieldset { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.idea-form .wizard-nav { flex-wrap: wrap; }
.idea-form .wizard-nav p { margin: 0; }
