/* ============================================================================
   PROJECT DHULFIQAR — portal styles
   Frosted glass over mountain landscapes (drawn by scenery.js).
   Design tokens live at the top; edit those to retune the whole portal.
   ============================================================================ */

:root {
  --bg: #0d1119;

  /* glass */
  --glass:        rgba(18, 24, 36, 0.46);
  --glass-strong: rgba(14, 19, 29, 0.66);
  --glass-light:  rgba(255, 255, 255, 0.07);
  --glass-edge:   rgba(255, 255, 255, 0.13);
  --glass-shine:  rgba(255, 255, 255, 0.09);
  --blur: 22px;

  /* ink */
  --ink:      #f2eee6;
  --ink-soft: rgba(242, 238, 230, 0.8);
  --ink-mute: rgba(242, 238, 230, 0.56);
  --hair:     rgba(255, 255, 255, 0.1);

  /* one warm accent, used sparingly */
  --accent:      #e9b46f;
  --accent-soft: rgba(233, 180, 111, 0.16);
  --paper:       #f4eee3;

  --ok:   #8fd1a8;
  --warn: #f1c27d;
  --bad:  #f19a8a;

  --font-head:   "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui:     "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-arabic: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  --max: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: #1b1f27; padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- the landscape behind everything --------------------------------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.scene__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.scene__layer.is-on { opacity: 1; }
.scene svg { width: 100%; height: 100%; display: block; }
/* a soft shade so text stays readable over bright skies */
.scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 18, .28) 0%, rgba(8, 11, 18, .12) 40%, rgba(8, 11, 18, .45) 100%);
}

/* ---- type ------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 3vw + 1rem, 2.9rem); text-shadow: 0 1px 24px rgba(0, 0, 0, .35); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 .8rem; }
.arabic { font-family: var(--font-arabic); font-weight: 700; letter-spacing: 0; }
.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }
.small { font-size: .875rem; }
.sub   { color: var(--ink-soft); margin: .25rem 0 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.label { font-size: .85rem; color: var(--ink-mute); margin: 0 0 .35rem; font-weight: 500; }

/* ---- glass ----------------------------------------------------------- */
.card, .topbar__inner {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 60px -30px rgba(0, 0, 0, .65);
}
.card { border-radius: var(--radius); padding: 1.3rem 1.4rem; min-width: 0; position: relative; }
.card--strong { background: var(--glass-strong); }
.card--accent { border-color: rgba(233, 180, 111, .35); }
.card--link { display: block; color: inherit; text-decoration: none; transition: transform .25s var(--ease), border-color .25s; }
.card--link:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .24); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card__meta { font-size: .85rem; color: var(--ink-mute); display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .4rem; }

/* a landscape set into the top of a card */
.card--art { padding-top: 0; overflow: hidden; }
.card--art .art { margin: 0 -1.4rem 1.1rem; height: 150px; border-bottom: 1px solid var(--hair); }
.card--art .art svg { width: 100%; height: 100%; display: block; }

/* ---- top bar --------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: .7rem var(--pad) 0; }
.topbar__inner {
  max-width: var(--max); margin: 0 auto; padding: .45rem .5rem .45rem 1.1rem;
  display: flex; align-items: center; gap: 1rem; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand__logo { width: 44px; height: 44px; object-fit: contain; margin: -.35rem 0 -.35rem -.5rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.brand__word { font-family: var(--font-head); font-size: 1.05rem; }
.brand__word .arabic { font-size: 1.35rem; margin-left: .3rem; }

.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a {
  display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: var(--glass-light); }
.nav a[aria-current="page"] { color: #1b1f27; background: var(--paper); }
.nav svg { width: 17px; height: 17px; }
.who { display: flex; align-items: center; gap: .3rem; margin-left: .3rem; }
.who__name { font-size: .85rem; color: var(--ink-mute); max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.demo-banner {
  text-align: center; font-size: .82rem; padding: .4rem var(--pad);
  background: rgba(10, 13, 20, .55); color: var(--ink-soft); border-bottom: 1px solid var(--hair);
}
.demo-banner button { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 .2rem; }

/* Phones: the nav becomes a glass tab bar at the bottom */
@media (max-width: 820px) {
  .nav {
    position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 30; margin: 0;
    justify-content: space-around; gap: 0; padding: .3rem; border-radius: 22px;
    background: rgba(16, 21, 32, .72);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); backdrop-filter: blur(var(--blur)) saturate(140%);
    border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-shine), 0 18px 40px -16px rgba(0, 0, 0, .8);
  }
  /* a blurred parent would trap the fixed bar inside the header */
  .topbar__inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 21, 32, .72); }
  .nav a { flex-direction: column; gap: .1rem; font-size: .68rem; padding: .4rem .2rem; border-radius: 16px; flex: 1; min-width: 0; }
  .nav a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav svg { width: 20px; height: 20px; }
  .who { margin-left: auto; }
  .who__name { display: none; }
  body.has-nav main { padding-bottom: 6.5rem; }
}

/* ---- layout ---------------------------------------------------------- */
main { max-width: var(--max); margin: 0 auto; padding: 2.2rem var(--pad) 3rem; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.page-head h1 { margin: 0; }
.section-title { margin: 2.2rem 0 .9rem; text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.row--between { justify-content: space-between; }

.stat__num { font-family: var(--font-head); font-size: 2.1rem; line-height: 1.1; }
.stat__label { font-size: .85rem; color: var(--ink-mute); }

.empty {
  text-align: center; color: var(--ink-soft); padding: 2rem 1rem; border-radius: var(--radius);
  background: rgba(18, 24, 36, .3); border: 1px dashed rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* ---- tags, badges ---------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem;
  padding: .18rem .6rem; border-radius: 999px; background: var(--glass-light); color: var(--ink-soft);
  border: 1px solid var(--hair);
}
.chip svg { width: 13px; height: 13px; opacity: .8; }
.badge { display: inline-block; font-size: .78rem; padding: .16rem .6rem; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.badge--ok   { background: rgba(143, 209, 168, .14); color: var(--ok); }
.badge--warn { background: rgba(241, 194, 125, .14); color: var(--warn); }
.badge--bad  { background: rgba(241, 154, 138, .15); color: var(--bad); }
.badge--mute { background: var(--glass-light); color: var(--ink-mute); }
.badge--accent { background: var(--accent-soft); color: var(--accent); vertical-align: .15em; }

.tabs {
  display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .25rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.tabs button { background: none; border: 0; padding: .38rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.tabs button[aria-pressed="true"] { background: var(--paper); color: #1b1f27; font-weight: 500; }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.15rem; border-radius: 12px; border: 1px solid var(--glass-edge);
  background: var(--glass-light); color: var(--ink); cursor: pointer; text-decoration: none;
  font-weight: 500; font-size: .93rem; transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--paper); color: #1b1f27; border-color: transparent; }
.btn--primary:hover { background: #fff; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn--ghost:hover { background: var(--glass-light); }
.btn--danger { background: transparent; color: var(--bad); border-color: rgba(241, 154, 138, .3); }
.btn--sm { padding: .4rem .75rem; font-size: .84rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---- forms ----------------------------------------------------------- */
.form { display: grid; gap: .95rem; }
.form fieldset { border: 1px solid var(--hair); border-radius: 16px; padding: 1rem; margin: 0; display: grid; gap: .95rem; min-width: 0; }
.form legend { font-family: var(--font-head); font-size: 1.05rem; padding: 0 .4rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field > span { font-size: .85rem; color: var(--ink-soft); }
.field > span .req { color: var(--accent); }
.field small { color: var(--ink-mute); font-size: .8rem; }
.cols-2 { display: grid; gap: .95rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="date"],
input[type="number"], input[type="month"], select, textarea {
  width: 100%; padding: .65rem .8rem; border-radius: 12px;
  background: rgba(6, 9, 15, .38); border: 1px solid var(--hair); color: var(--ink);
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(233, 180, 111, .6); background: rgba(6, 9, 15, .5); outline: none; }
select option { background: #151b27; }
textarea { min-height: 6.5rem; resize: vertical; line-height: 1.55; }
input[type="date"], input[type="month"] { color-scheme: dark; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: .28rem; accent-color: var(--accent); width: 1rem; height: 1rem; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.form-status { font-size: .9rem; min-height: 1.2em; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--bad); }
.form-status.is-ok { color: var(--ok); }

.stars { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: rgba(255, 255, 255, .22); font-size: 1.9rem; line-height: 1; transition: color .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--accent); }
.stars input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.stars-static { color: var(--accent); letter-spacing: .06em; }
.stars-static .off { color: rgba(255, 255, 255, .2); }

/* ---- tables ---------------------------------------------------------- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--glass-edge);
  background: var(--glass); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
th { font-weight: 500; color: var(--ink-mute); font-size: .82rem; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ---- recaps ---------------------------------------------------------- */
.recap__body { white-space: pre-line; color: var(--ink-soft); }
.takeaways { padding-left: 1.2rem; margin: .2rem 0 0; display: grid; gap: .3rem; color: var(--ink-soft); }
.takeaways li::marker { color: var(--accent); }
.divider { height: 1px; background: var(--hair); margin: 1rem 0; border: 0; }

details.disclose > summary { cursor: pointer; color: var(--accent); font-size: .92rem; list-style: none; }
details.disclose > summary::-webkit-details-marker { display: none; }
details.disclose > summary::before { content: "+ "; }
details.disclose[open] > summary::before { content: "− "; }
details.disclose > div { margin-top: .7rem; }

.quote { padding: .7rem .95rem; background: rgba(6, 9, 15, .3); border-radius: 12px; margin: .3rem 0; white-space: pre-line; border: 1px solid var(--hair); }
.quote--coach { border-color: rgba(233, 180, 111, .3); background: var(--accent-soft); }

/* ---- sign-in screen --------------------------------------------------- */
.login {
  min-height: calc(100vh - 7rem); display: grid; align-items: start; padding-top: clamp(1.5rem, 7vh, 4.5rem);
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem);
}
.login-brand { text-align: center; position: sticky; top: 4.5rem; padding-top: 1rem; }   /* stays in view beside a long form */
.login-brand h1 { margin: 0; line-height: 0; }
.login-brand__logo { width: min(250px, 100%); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 34px rgba(0, 0, 0, .5)); }
.kaizen {
  font-family: "Noto Serif JP", serif; font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.1;
  color: var(--accent); letter-spacing: .18em; margin: .4rem 0 0; padding-left: .18em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .5);
}
.kaizen__word { color: var(--ink-mute); font-size: .85rem; letter-spacing: .3em; text-transform: lowercase; margin: .2rem 0 0; padding-left: .3em; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; min-height: 0; gap: 1.2rem; padding-top: .5rem; }
  .login-brand { order: -1; position: static; padding-top: 0; }
  .login-brand__logo { width: min(140px, 40vw); }
  .kaizen { font-size: 2.2rem; }
}

.auth-card { width: 100%; }
/* the register page: logo strip on top, the form spread wide */
.login--wide { grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: 0 auto; gap: 1rem; padding-top: clamp(.5rem, 3vh, 1.5rem); min-height: 0; }
.login--wide .login-brand { order: -1; position: static; display: flex; align-items: center; justify-content: center; gap: 1.6rem; padding-top: 0; }
.login--wide .login-brand__logo { width: 118px; }
.login--wide .kaizen { font-size: 2.6rem; margin: 0; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.reg-boys, #boys { display: grid; gap: .95rem; justify-items: start; }
#boys { justify-items: stretch; width: 100%; }
.reg-account { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.6rem; }
.reg-account legend { grid-column: 1 / -1; }
.reg-account > .field { grid-row: span 2; }
@media (max-width: 860px) {
  .reg-grid, .reg-account { grid-template-columns: minmax(0, 1fr); }
  .reg-account > .field { grid-row: auto; }
  .login--wide .login-brand__logo { width: 90px; }
  .login--wide .kaizen { font-size: 2rem; }
}
.boy-block { position: relative; }
.boy-block .remove-boy { position: absolute; top: -1.15rem; right: .8rem; padding: .25rem .7rem; background: rgba(20, 24, 36, .92); border: 1px solid var(--hair); }

/* ---- footer, toast, misc --------------------------------------------- */
.foot { text-align: center; padding: 2rem var(--pad) 2.4rem; color: var(--ink-mute); font-size: .82rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
body.has-nav .foot { padding-bottom: 7rem; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translate(-50%, 1rem);
  background: rgba(16, 21, 32, .8); color: var(--ink); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  padding: .75rem 1.15rem; border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); max-width: calc(100% - 2rem);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(241, 154, 138, .5); }
@media (max-width: 820px) { .toast { bottom: 6.5rem; } }

.loading { text-align: center; color: var(--ink-soft); padding: 4rem 0; }
.loading::before {
  content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 1rem;
  border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--ink); border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.next-up__when { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.2; margin-bottom: .3rem; }
.next-up__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--ink-soft); }
.next-up__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.next-up__meta svg { width: 17px; height: 17px; opacity: .75; }

.pay-actions { display: grid; gap: .6rem; }
.pay-actions .row { flex-wrap: nowrap; }
.pay-actions select { flex: 1; min-width: 0; }
.pay-actions .row .btn { flex: none; }

/* ---- session plans, replies and register checks ------------------------ */
.theme { font-family: var(--font-head); font-size: 1.3rem; color: var(--accent); margin: .1rem 0 .4rem; line-height: 1.3; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; margin-top: 1.1rem; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; gap: 1rem; } }
.timetable { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.timetable li { display: grid; grid-template-columns: 5.2rem 1fr; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--hair); }
.timetable li:last-child { border-bottom: 0; }
.timetable__time { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-size: .92rem; }
.bring { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.bring .check { color: var(--ink); }


.stack--tight > * + * { margin-top: .6rem; }
.reply { padding: .75rem .9rem; border-radius: 14px; background: rgba(6, 9, 15, .26); border: 1px solid var(--hair); }
.reply .row { gap: .45rem; }
.inline-form { margin-top: .7rem; gap: .6rem; }
.btn.is-on { background: var(--paper); color: #1b1f27; border-color: transparent; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- booking confirmation --------------------------------------------- */
.confirmation { max-width: 720px; margin: 0 auto; }
.confirmation__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.confirmation__head h1 { margin: 0; font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem); text-shadow: none; }
.confirmation__head .label { margin: 0; }
.confirmation__head .badge { margin-left: auto; }
.confirmation__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; margin: 0 0 1.2rem; padding: 1.1rem 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.confirmation__grid dt { font-size: .82rem; color: var(--ink-mute); }
.confirmation__grid dd { margin: 0; }
@media (max-width: 520px) { .confirmation__grid { grid-template-columns: 1fr; } }
.confirmation__note { color: var(--ink-soft); }

@media print {
  .scene, #banner, .topbar, .foot, .toast, .no-print { display: none !important; }
  body { background: #fff; color: #111; }
  main { padding: 0; }
  .card { background: #fff !important; border: 1px solid #ccc; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .confirmation__grid dt, .label, .confirmation__note { color: #555; }
  .confirmation__grid { border-color: #ddd; }
  .badge { border: 1px solid currentColor; }
  a { color: #111; }
}

/* ---- attendance reply control ---------------------------------------- */
.rsvp-state { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; padding: .22rem .7rem; border-radius: 999px; }
.rsvp-state svg { width: 15px; height: 15px; }
.rsvp-state--yes { background: rgba(143, 209, 168, .18); color: var(--ok); }
.rsvp-state--no  { background: var(--glass-light); color: var(--ink-mute); }
.rsvp-options { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.rsvp-options.is-collapsed { display: none; }

.pay-focus { animation: pay-glow 2.4s var(--ease) 1; }
@keyframes pay-glow {
  0%, 100% { box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 60px -30px rgba(0,0,0,.65); }
  25% { box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px rgba(233,180,111,.5); }
}

/* ---- homework within a session --------------------------------------- */
.hw-item { padding: .8rem .9rem; border-radius: 14px; background: rgba(6, 9, 15, .22); border: 1px solid var(--hair); margin-top: .6rem; }
.hw-item + .hw-item { margin-top: .8rem; }
.hw-answer + .hw-answer { border-top: 1px solid var(--hair); margin-top: .6rem; padding-top: .2rem; }

/* ---- public marketing landing ---------------------------------------- */
.site-top { position: sticky; top: 0; z-index: 20; padding: .7rem var(--pad) 0; }
.site-top__inner {
  max-width: var(--max); margin: 0 auto; padding: .45rem .6rem .45rem 1.1rem;
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%); backdrop-filter: blur(var(--blur)) saturate(140%);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 24px 60px -30px rgba(0,0,0,.65);
}


/* ---- the landing page: statement beside the pinned wrestlers --------- */
.lp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.2rem; padding: 3rem 0 1rem; font-size: .85rem; color: var(--ink-soft); text-align: center; }
.lp-foot img { width: 64px; height: 64px; }
.lpA-track { height: 320vh; }
.lpA-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.lpA-brand { position: absolute; top: 1.4rem; right: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; }   /* kaizen, then the logo, top right */
.lpA-mark { width: clamp(120px, 11vw, 170px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.55)); }
.lpA-kaizen { text-align: center; }
.lpA-kaizen .kaizen { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0; }
.lpA-h1 { font-size: clamp(2.4rem, 4.3vw, 3.9rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 1.3rem; }
.lpA-h1 span { display: block; opacity: .22; transition: opacity .6s var(--ease); }
.lpA-h1 span.is-on { opacity: 1; }
.lpA-copy { text-align: center; }
.lpA-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 30rem; margin: 0 auto 1.6rem; }
.lpA-actions { justify-content: center; gap: .6rem; }
.lpA-soon { display: inline-flex; align-items: center; padding: .55rem .9rem; font-size: .9rem; color: var(--ink-soft); border: 1px dashed rgba(255, 255, 255, .22); border-radius: 999px; }
.soon-card { max-width: 540px; margin: 2rem auto; text-align: center; }
.soon-card img { width: 150px; height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .5)); }
.soon-card h1 { margin-bottom: .6rem; }
.soon-note { margin: 1.2rem 0 1.4rem; padding: .9rem 1rem; border-radius: 14px; background: var(--glass-light, rgba(255,255,255,.06)); }
.lpA-stage { height: 74vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.lpA-stage svg { width: 100%; flex: 1; min-height: 0; }
.lpA-stage canvas { width: 100%; flex: 1; min-height: 0; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); }
/* the wrestlers: one beat shows at a time, with a brief dissolve between */
.lpA-stage svg { filter: drop-shadow(0 6px 22px rgba(0,0,0,.45)); }
.wr-beat { opacity: 0; transition: opacity .14s linear; }
.wr-beat.is-on { opacity: 1; }
.lpA-sec { padding: clamp(3.5rem, 9vw, 7rem) 0; border-top: 1px solid var(--hair); }
.lpA-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lpA-quote { font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.2; max-width: 22em; margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.lpA-quote em { color: var(--accent); font-style: italic; }
.lpA-h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin: 0 0 2.2rem; }
.lpA-info { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.lpA-initiative { text-align: center; margin-bottom: clamp(2rem, 5vw, 3rem); }
.lpA-initiative .lpA-h2 { margin: 0; }
.lpA-purpose { max-width: 40rem; margin: 1.6rem auto 0; font-family: var(--font-head); font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--ink-soft); }
.lpA-purpose .lpA-kicker { display: block; margin-bottom: .5rem; font-family: var(--font-ui); }
.lpA-purpose em { color: var(--accent); }   /* same space above, between and below the two rows */
.lpA-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.5rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--hair); }
.lpA-fact { display: flex; gap: .9rem; align-items: flex-start; justify-content: center; }
.lpA-fact > svg { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: .1rem; }
.lpA-fact .lpA-kicker { margin: 0 0 .3rem; }
.lpA-fact p:last-child { font-family: var(--font-head); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.3; margin: 0; }
.lpA-evening { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: clamp(2.5rem, 6vw, 4rem) 0; border-bottom: 1px solid var(--hair); text-align: center; }
.lpA-part h3 { font-family: var(--font-head); font-size: 2rem; margin: 0 0 .4rem; }
.lpA-part .lpA-kicker { margin-bottom: .5rem; }
.lpA-part p:last-child { margin: 0 auto; max-width: 18rem; }
.lpA-growth { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: clamp(2.5rem, 6vw, 4rem); }
.lpA-grow { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; font-family: var(--font-head); font-size: 1.45rem; }
.lpA-grow__icon { flex: none; width: 54px; height: 54px; border: 1.5px solid var(--accent); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }
.lpA-grow__icon svg { width: 26px; height: 26px; }
.lpA-cta { text-align: center; }
.lpA-cta .lpA-h2 { margin-bottom: 2.6rem; }
.lpA-values { display: flex; flex-wrap: wrap; justify-content: center; gap: .1em .6em; }

@media (max-width: 820px) {
  .lpA-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 1.2rem; gap: 0; }
  .lpA-brand { top: .6rem; flex-direction: row-reverse; gap: .5rem; }   /* logo and kaizen side by side in the corner */
  .lpA-mark { width: 64px; }
  .lpA-copy { padding-top: 4.4rem; }
  .lpA-kaizen .kaizen { font-size: 1.6rem; }
  .lpA-kaizen .kaizen__word { font-size: .7rem; }
  .lpA-h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); margin-bottom: .8rem; }
  .lpA-lede { font-size: 1rem; margin-bottom: 1rem; }
  .lpA-stage { height: 100%; min-height: 0; }
  .lpA-facts { grid-template-columns: 1fr; gap: 1.2rem; }
  .lpA-fact { justify-content: flex-start; }
  .lpA-evening { grid-template-columns: 1fr; gap: 1.6rem; }
  .lpA-growth { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .lpA-grow { font-size: 1.15rem; gap: .5rem; }
  .lpA-grow__icon { width: 44px; height: 44px; }
}

/* ---- noticeboard & add to calendar ------------------------------------ */
.noticeboard { margin-bottom: 1rem; border-color: rgba(233, 180, 111, .35); }
.noticeboard > .label { display: flex; align-items: center; gap: .4rem; color: var(--accent); }
.noticeboard > .label svg { width: 16px; height: 16px; }
.notice + .notice { border-top: 1px solid var(--hair); margin-top: .9rem; padding-top: .9rem; }
.notice__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.notice__head h3 { margin: 0; font-size: 1.15rem; }
.notice__body { margin: .35rem 0 0; white-space: pre-line; color: var(--ink-soft); }
.notice__meta { margin: .35rem 0 0; font-size: .78rem; color: var(--ink-mute); }
.cal-row { gap: .4rem; margin: .7rem 0 .2rem; }
@media print { .cal-row { display: none; } }

/* steam from the sword (smoke.js) and the weather (weather.js): over the scenery, behind the page */
.smoke, .weather { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* a boy's flower bed (garden.js): faint, behind the foot of his card */
.boy-card { overflow: hidden; padding-bottom: 5rem; }
.boy-card > * { position: relative; z-index: 1; }
.boy-card > .garden { position: absolute; z-index: 0; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; pointer-events: none;
  opacity: .42; filter: saturate(.75);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }

/* a saying of Imam Ali (as) on the families' home page */
.saying { margin: 0 0 1rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); text-align: center;
  background: var(--glass); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); }
.saying__ar { font-family: var(--font-arabic); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.9; color: var(--accent); margin: 0 0 .4rem; }
.saying__en { font-family: var(--font-head); font-style: italic; font-size: 1.12rem; line-height: 1.5; color: var(--ink); margin: 0 auto .5rem; max-width: 42rem; }
.saying__ref { font-size: .78rem; letter-spacing: .06em; color: var(--ink-mute); }
