/* =============================================================================
   GeoSchool Rinjani — design system & components
   Mobile-first. Tokens first, then shell, then components, then pages.
   ========================================================================== */

:root {
  /* brand */
  --forest: #174c3b;
  --forest-deep: #0e3327;
  --nature: #70ad75;
  --nature-dark: #4e8f5e;
  --nature-ink: #39724a;
  --gold: #f7bf65;
  --gold-deep: #e9a542;
  --warm: #fffdf6;
  --sky: #83cada;
  --sky-deep: #5aafc4;

  /* derived surfaces */
  --ink: #12332a;
  --ink-soft: #2a4a3e;
  --muted: #5c7268;
  --muted-2: #7d917f;
  --card: #ffffff;
  --sand: #f6f1e3;
  --tint: #eef5ec;
  --tint-2: #e6f1e8;
  --tint-gold: #fdf1da;
  --tint-sky: #e8f5f8;
  --line: rgba(23, 76, 59, 0.12);
  --line-strong: rgba(23, 76, 59, 0.22);

  /* shape */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* elevation */
  --sh-xs: 0 1px 2px rgba(18, 51, 42, 0.06);
  --sh-sm: 0 2px 8px rgba(18, 51, 42, 0.07);
  --sh-md: 0 10px 26px -12px rgba(18, 51, 42, 0.24), 0 2px 6px rgba(18, 51, 42, 0.05);
  --sh-lg: 0 24px 50px -22px rgba(18, 51, 42, 0.34), 0 6px 14px rgba(18, 51, 42, 0.06);
  --sh-gold: 0 14px 30px -14px rgba(233, 165, 66, 0.55);

  --wrap: 1180px;
  --gutter: 18px;
  --bnav-h: 66px;
  --hdr-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-display: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--warm);
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 10px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 8% -6%, rgba(112, 173, 117, 0.16), transparent 65%),
    radial-gradient(38rem 26rem at 96% 2%, rgba(131, 202, 218, 0.18), transparent 62%),
    radial-gradient(34rem 24rem at 50% 108%, rgba(247, 191, 101, 0.16), transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -0.012em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.6vw, 1.35rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--nature-dark); }
img, svg { max-width: 100%; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: 0.35em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.main { display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--forest); color: var(--warm); padding: 10px 16px;
  border-radius: var(--r-pill); font-weight: 600; transition: top 0.2s var(--ease);
}
.skip:focus { top: 10px; color: var(--warm); }

.ic { flex: 0 0 auto; vertical-align: middle; }

/* ------------------------------- brand mark ------------------------------- */
.logo { display: block; flex: 0 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.08rem;
  line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--nature-dark); }
.brand__sub { font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* -------------------------------- buttons -------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--warm);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 0.94rem; line-height: 1.2;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  box-shadow: var(--sh-sm);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary { --btn-bg: linear-gradient(135deg, var(--forest), var(--forest-deep)); --btn-fg: var(--warm); }
.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold), var(--gold-deep)); --btn-fg: #4a3313; box-shadow: var(--sh-gold); }
.btn--nature { --btn-bg: linear-gradient(135deg, var(--nature), var(--nature-dark)); --btn-fg: #fff; }
.btn--soft { --btn-bg: var(--tint-2); --btn-fg: var(--forest); box-shadow: none; border-color: var(--line); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--forest); border-color: var(--line-strong); box-shadow: none; }
.btn--glass { --btn-bg: rgba(255, 253, 246, 0.16); --btn-fg: #fff; border-color: rgba(255, 253, 246, 0.42); box-shadow: none; backdrop-filter: blur(8px); }
.btn--sm { min-height: 38px; padding: 8px 15px; font-size: 0.85rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
@media (max-width: 559px) {
  .btn--lg { min-height: 46px; padding: 11px 14px; font-size: 0.88rem; }
  .hero__inner { padding: 18px 0 22px; }
  .hero .btn-row { gap: 8px; margin-top: 14px; }
  .hero__lead { font-size: 0.9rem; line-height: 1.5; }
  /* Phones keep a compact, app-like hero: the three fact chips and the event
     card's detail block live in the Featured Workshop section just below. */
  .hero__meta { display: none; }
  .hero__card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
  .hero__cardMeta { display: none; }
  .hero__cardTitle { font-size: 0.8rem; }
  .hero__cardLink { font-size: 0.7rem; }
}
@media (min-width: 480px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--forest);
  cursor: pointer; transition: background 0.16s var(--ease);
}
.iconbtn:hover { background: var(--tint); }

/* --------------------------------- header -------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 253, 246, 0.88);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.hdr.is-scrolled { box-shadow: 0 8px 24px -18px rgba(18, 51, 42, 0.5); }
.hdr__inner {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--hdr-h);
  min-width: 0;
}
.nav { display: none; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: var(--r-pill);
  font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
}
.nav__link:hover { background: var(--tint); color: var(--forest); }
.nav__link.is-active { background: var(--forest); color: var(--warm); }
.nav__more { position: relative; }
.nav__panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: 290px; padding: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  display: grid; gap: 2px;
}
.nav__panel[hidden] { display: none; }
.nav__panelitem { display: grid; gap: 1px; padding: 10px 12px; border-radius: var(--r-md); min-width: 0; }
.nav__panelitem strong { font-size: 0.9rem; color: var(--ink); }
.nav__panelitem span { font-size: 0.76rem; color: var(--muted); }
.nav__panelitem:hover { background: var(--tint); }
.hdr__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav + .hdr__actions { margin-left: 0; }
.hdr__event {
  display: none; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; color: var(--forest);
  background: var(--tint-gold); border: 1px solid rgba(233, 165, 66, 0.35);
  padding: 7px 12px; border-radius: var(--r-pill); white-space: nowrap;
}
.hdr__actions .btn { display: none; }
.hdr__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--forest); cursor: pointer;
}

/* --------------------------------- drawer -------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 120; background: rgba(14, 51, 39, 0.42); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; }
.drawer[hidden] { display: none; }
.drawer__panel {
  width: min(340px, 88vw); height: 100%; overflow-y: auto;
  background: var(--warm); padding: 16px 18px 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--sh-lg); animation: slidein 0.24s var(--ease);
}
@keyframes slidein { from { transform: translateX(18px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 12px; border-radius: var(--r-md);
  font-weight: 600; color: var(--ink); min-height: 48px; justify-content: center;
}
.drawer__nav a small { font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.drawer__nav a:hover { background: var(--tint); }

/* ------------------------------- bottom nav ------------------------------ */
.bnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 253, 246, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px -22px rgba(18, 51, 42, 0.7);
}
.bnav__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; color: var(--muted); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.01em; padding: 6px 2px; position: relative;
}
.bnav__item:hover { color: var(--forest); }
.bnav__ico {
  display: grid; place-items: center; width: 44px; height: 30px; border-radius: var(--r-pill);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}
.bnav__item.is-active { color: var(--forest); }
.bnav__item.is-active .bnav__ico { background: var(--forest); color: var(--warm); transform: translateY(-1px); }
.bnav__label { line-height: 1; }

/* ---------------------------------- hero --------------------------------- */
.hero { position: relative; isolation: isolate; overflow: clip; color: #fff; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  /* Phones: the copy covers the full width, so the veil is vertical and firm
     enough for white text while the hills stay visible. */
  background:
    linear-gradient(180deg, rgba(14, 51, 39, 0.66) 0%, rgba(14, 51, 39, 0.6) 38%, rgba(14, 51, 39, 0.8) 76%, rgba(14, 51, 39, 0.93) 100%),
    radial-gradient(70% 60% at 78% 26%, rgba(247, 191, 101, 0.2), transparent 72%);
}
.hero__inner { position: relative; padding: 22px 0 26px; display: grid; gap: 16px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: rgba(255, 253, 246, 0.16); border: 1px solid rgba(255, 253, 246, 0.4);
  backdrop-filter: blur(8px);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; width: fit-content;
}
.hero__eyebrow .ic { color: var(--gold); }
.hero h1 { color: #fff; margin: 12px 0 8px; text-shadow: 0 2px 22px rgba(14, 51, 39, 0.35); }
.hero h1 span { display: block; color: var(--gold); font-size: 0.54em; letter-spacing: 0.02em; margin-top: 2px; }
.hero__slogan { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 3.4vw, 1.35rem); color: #fff; max-width: 30ch; }
.hero__lead { color: rgba(255, 253, 246, 0.9); max-width: 48ch; margin-top: 6px; font-size: 0.95rem; line-height: 1.55; }
.hero .btn-row { margin-top: 18px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 253, 246, 0.14); border: 1px solid rgba(255, 253, 246, 0.28);
  font-size: 0.75rem; font-weight: 600; color: #fff; backdrop-filter: blur(6px);
}
.hero__chip .ic { color: var(--gold); }

.hero__card {
  background: rgba(255, 253, 246, 0.94); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--r-lg);
  padding: 12px 14px; box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  max-width: 420px; min-width: 0;
  align-self: start;
}
/* Phones: a compact one-line event strip. The mascot belongs in the welcome
   section, not stacked above the fold. */
.hero__card .rinji { display: none; }
.hero__cardTitle { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; line-height: 1.25; }
.hero__cardMeta { font-size: 0.72rem; line-height: 1.45; color: var(--muted); }
.hero__cardLink { grid-column: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 800; color: var(--forest); white-space: nowrap; }
.hero__wave { display: block; position: relative; margin-top: -1px; color: var(--warm); width: 100%; height: 34px; }

/* -------------------------------- sections ------------------------------- */
.section { padding: 42px 0; }
.section--tight { padding: 30px 0; }
.section--tint { background: linear-gradient(180deg, rgba(238, 245, 236, 0.7), rgba(255, 253, 246, 0)); }
.shead { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; min-width: 0; }
.shead__copy { min-width: 0; }
.shead__title { margin: 4px 0 8px; }
.shead__lead { color: var(--muted); max-width: 62ch; font-size: 0.95rem; }
.shead .btn { align-self: flex-start; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--nature-ink); margin: 0;
}
.kicker::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--gold); }
.kicker--light { color: var(--gold); }

/* --------------------------------- cards --------------------------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden; min-width: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
a.card, .card--link { color: inherit; display: block; }
a.card:hover, .card--link:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card__body { padding: 18px; min-width: 0; }
.card__title { font-size: 1.08rem; margin-bottom: 6px; }
.card__text { color: var(--muted); font-size: 0.9rem; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 0.82rem; font-weight: 700; color: var(--forest); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--tint-2); color: var(--forest);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid rgba(23, 76, 59, 0.1);
}
.pill--gold { background: var(--tint-gold); color: #7a5216; border-color: rgba(233, 165, 66, 0.35); }
.pill--sky { background: var(--tint-sky); color: #2f6b7a; border-color: rgba(90, 175, 196, 0.3); }
.pill--demo { background: #fdf0e4; color: #8a4b1f; border: 1px dashed #d99a63; }
.pill--muted { background: #f0f0ea; color: var(--muted); border-color: var(--line); }
.pill--dark { background: rgba(255, 253, 246, 0.16); color: #fff; border-color: rgba(255, 253, 246, 0.3); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--tint); border: 1px solid var(--line); min-width: 0;
}
.notice__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: rgba(23, 76, 59, 0.1); color: var(--forest); }
.notice__title { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.notice__body { min-width: 0; font-size: 0.86rem; color: var(--ink-soft); }
.notice--warn { background: #fdf5e6; border-color: rgba(233, 165, 66, 0.4); }
.notice--warn .notice__ico { background: rgba(233, 165, 66, 0.22); color: #8a5a12; }
.notice--demo { background: #fdf3ea; border-color: #e8c39a; border-style: dashed; }
.notice--demo .notice__ico { background: rgba(217, 154, 99, 0.2); color: #8a4b1f; }
.notice--info { background: var(--tint-sky); border-color: rgba(90, 175, 196, 0.3); }
.notice--info .notice__ico { background: rgba(90, 175, 196, 0.18); color: #2f6b7a; }

/* ------------------------------ hero extras ------------------------------ */
.sunline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.8rem; }

/* ------------------------------ catalog grid ----------------------------- */
.catalog {
  display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px;
}
.acard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); color: inherit; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); min-width: 0; }
.acard:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--sh-md); }
.acard__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.acard__art .scene { width: 100%; height: 100%; display: block; transition: transform 0.5s var(--ease); }
.acard:hover .acard__art .scene { transform: scale(1.04); }
.acard__ico {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: var(--warm); color: var(--forest);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  margin: -34px 0 10px;
}
.acard__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.acard__kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--nature-ink); }
.acard__title { font-size: 1.15rem; }
.acard__text { color: var(--muted); font-size: 0.87rem; flex: 1; }
.acard__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.83rem; font-weight: 800; color: var(--forest); margin-top: 8px; }
.acard__go .ic { transition: transform 0.2s var(--ease); }
.acard:hover .acard__go .ic { transform: translateX(3px); }

/* mobile carousel for card collections */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 4px 2px 12px; margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: rgba(23, 76, 59, 0.2); border-radius: 3px; }
.railhint { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--muted); margin-top: -4px; }

/* ------------------------------- workshop -------------------------------- */
.wpanel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(140deg, var(--forest) 0%, var(--forest-deep) 62%, #123f31 100%);
  padding: 24px 20px; box-shadow: var(--sh-lg);
}
.wpanel::before {
  content: ''; position: absolute; z-index: -1; inset: -30% -10% auto auto;
  width: 60%; height: 130%;
  background: radial-gradient(closest-side, rgba(247, 191, 101, 0.3), transparent 72%);
}
.wpanel::after {
  content: ''; position: absolute; z-index: -1; left: -12%; bottom: -50%;
  width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(131, 202, 218, 0.22), transparent 70%);
}
.wpanel h2, .wpanel h3 { color: #fff; }
.wpanel__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.wpanel__title { margin-bottom: 8px; }
.wpanel__sub { color: rgba(255, 253, 246, 0.82); font-size: 0.92rem; max-width: 54ch; }
.wmeta { display: grid; gap: 10px; margin: 18px 0; }
.wmeta__item { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.wmeta__ico { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(255, 253, 246, 0.14); color: var(--gold); }
.wmeta__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 253, 246, 0.62); }
.wmeta__value { font-size: 0.9rem; font-weight: 600; color: #fff; }
.wnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.wnum { background: rgba(255, 253, 246, 0.1); border: 1px solid rgba(255, 253, 246, 0.18); border-radius: var(--r-md); padding: 10px; text-align: center; }
.wnum b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--gold); line-height: 1; }
.wnum span { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 253, 246, 0.72); }

/* rundown timeline */
.rundown { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; position: relative; }
.rundown__item { display: grid; grid-template-columns: 54px 22px 1fr; gap: 10px; min-width: 0; }
.rundown__time { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--forest); padding-top: 13px; white-space: nowrap; }
.rundown__dot { position: relative; display: flex; justify-content: center; }
.rundown__dot::before {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--line-strong);
}
.rundown__item:first-child .rundown__dot::before { top: 18px; }
.rundown__item:last-child .rundown__dot::before { bottom: calc(100% - 18px); }
.rundown__dot i {
  position: relative; z-index: 1; display: block; width: 12px; height: 12px; margin-top: 15px;
  border-radius: 50%; background: var(--nature); border: 2px solid var(--warm); box-shadow: 0 0 0 1px var(--nature);
}
.rundown__item[data-kind='break'] .rundown__dot i { background: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep); }
.rundown__item[data-kind='workshop'] .rundown__dot i,
.rundown__item[data-kind='plenary'] .rundown__dot i { background: var(--sky-deep); box-shadow: 0 0 0 1px var(--sky-deep); }
.rundown__body { padding: 10px 0 14px; min-width: 0; }
.rundown__title { font-size: 0.96rem; line-height: 1.3; margin-bottom: 2px; }
.rundown__note { font-size: 0.82rem; color: var(--muted); }
.rundown__badge { margin-left: 6px; }
@media (min-width: 720px) {
  .rundown__item { grid-template-columns: 96px 24px 1fr; }
  .rundown__time { font-size: 0.9rem; }
  .rundown--dark .rundown__title { color: #fff; }
  .rundown--dark .rundown__note { color: rgba(255, 253, 246, 0.75); }
  .rundown--dark .rundown__time { color: var(--gold); }
  .rundown--dark .rundown__dot::before { background: rgba(255, 253, 246, 0.22); }
  .rundown--dark .rundown__dot i { border-color: var(--forest); }
}

/* ------------------------------- lab wizard ------------------------------ */
.lab-shell { display: grid; gap: 16px; align-items: start; }
.lab-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; min-width: 0; }
.lab-top { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.lab-progress { display: flex; gap: 5px; }
.lab-progress i {
  height: 6px; flex: 1; border-radius: 3px; background: var(--line);
  transition: background 0.3s var(--ease);
}
.lab-progress i.is-done { background: var(--nature); }
.lab-progress i.is-current { background: var(--gold-deep); }
.lab-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.lab-steps::-webkit-scrollbar { display: none; }
.lab-step {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 6px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--warm); color: var(--muted);
  font-size: 0.74rem; font-weight: 700; cursor: pointer; min-height: 40px;
}
.lab-step span.n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--line); color: var(--forest); font-size: 0.66rem; }
.lab-step.is-current { background: var(--forest); border-color: var(--forest); color: var(--warm); }
.lab-step.is-current span.n { background: var(--gold); color: #4a3313; }
.lab-step.is-done { border-color: var(--nature); color: var(--forest); }
.lab-step.is-done span.n { background: var(--nature); color: #fff; }
.lab-body { padding: 18px; }
.lab-stephead { margin-bottom: 16px; }
.lab-stephead h2 { font-size: 1.35rem; margin-bottom: 2px; }
.lab-stephead p { color: var(--muted); font-size: 0.87rem; }
.lab-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: 0.86rem; font-weight: 700; color: var(--ink); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.field__req { color: #b4472f; font-size: 0.8rem; }
.field__hint { font-size: 0.78rem; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  line-height: 1.5; transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa8a0; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--nature-dark); box-shadow: 0 0 0 4px rgba(112, 173, 117, 0.18); outline: none;
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #c0503a; box-shadow: 0 0 0 4px rgba(192, 80, 58, 0.12); }
.field__error { font-size: 0.78rem; color: #a4412d; font-weight: 600; display: none; }
.field.is-invalid .field__error { display: block; }
.field__count { font-size: 0.72rem; color: var(--muted-2); text-align: right; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); background: #fcfbf5; }
.lab-actions .spacer { flex: 1 1 auto; }
.lab-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--muted); }
.lab-status b { color: var(--forest); }

.lab-side { display: grid; gap: 14px; }
.lab-tip { background: linear-gradient(160deg, var(--tint-gold), #fff9ee); border: 1px solid rgba(233, 165, 66, 0.35); border-radius: var(--r-lg); padding: 14px; display: flex; gap: 10px; align-items: center; }
.lab-tip .rinji { width: 54px; flex: 0 0 auto; }
.lab-tip p { font-size: 0.82rem; color: #6b4a17; }
.lab-tip strong { display: block; font-size: 0.85rem; color: #56380f; }
.lab-save { display: grid; gap: 8px; }
.lab-save__meta { font-size: 0.78rem; color: var(--muted); }

/* preview / summary */
.preview { display: grid; gap: 14px; }
.preview__hero { background: linear-gradient(150deg, var(--forest), #164435); color: #fff; border-radius: var(--r-lg); padding: 18px; }
.preview__hero h3 { color: #fff; margin-bottom: 4px; }
.preview__hero p { color: rgba(255, 253, 246, 0.82); font-size: 0.88rem; }
.preview__grid { display: grid; gap: 12px; }
.preview__block { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: #fff; min-width: 0; }
.preview__block h4 { font-family: var(--font-body); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.preview__block p { font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview__empty { color: var(--muted-2); font-style: italic; }

/* --------------------------- results / demo ------------------------------ */
.result-grid { display: grid; gap: 16px; }
.rcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); min-width: 0; }
.rcard__top { padding: 14px 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.rcard__body { padding: 14px 18px 18px; display: grid; gap: 8px; }
.rcard__school { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.rcard__title { font-size: 1.08rem; }
.rcard__desc { font-size: 0.87rem; color: var(--muted); }
.rcard__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.rcard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.empty {
  border: 2px dashed var(--line-strong); border-radius: var(--r-xl);
  padding: 26px 20px; text-align: center; background: rgba(255, 253, 246, 0.7);
  display: grid; gap: 10px; justify-items: center;
}
.empty__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--nature-dark); }
.empty h3 { font-size: 1.2rem; }
.empty p { color: var(--muted); font-size: 0.88rem; max-width: 46ch; }

/* ------------------------------- library --------------------------------- */
.filters { display: grid; gap: 12px; margin-bottom: 20px; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-width: 0; padding: 12px 14px 12px 42px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #fff;
  font-size: 16px; font-family: var(--font-body); color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: 0.79rem; font-weight: 600; cursor: pointer; min-height: 38px;
}
.chip:hover { border-color: var(--nature); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--warm); }
.res-grid { display: grid; gap: 16px; }
.res {
  display: grid; grid-template-columns: 42px 1fr; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--sh-xs); min-width: 0;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.res:hover { box-shadow: var(--sh-sm); border-color: var(--line-strong); }
.res__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--forest); }
.res__body { min-width: 0; display: grid; gap: 4px; }
.res__title { font-size: 0.98rem; line-height: 1.3; }
.res__desc { font-size: 0.82rem; color: var(--muted); }
.res__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.res__pending { font-size: 0.76rem; color: var(--muted); font-style: italic; }
.res__type { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nature-ink); }
.res__link { font-size: 0.82rem; font-weight: 800; color: var(--forest); display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 0; }
.is-hidden { display: none !important; }

/* -------------------------------- missions ------------------------------- */
.mission { display: grid; gap: 16px; }
.mcard { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-width: 0; }
.mcard__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--forest); }
.mcard__body { min-width: 0; }
.mcard__title { font-size: 0.98rem; line-height: 1.25; }
.mcard__brief { font-size: 0.81rem; color: var(--muted); }
.mcard__state { font-size: 0.72rem; font-weight: 800; color: var(--nature-ink); white-space: nowrap; }
.mcard.is-done { border-color: var(--nature); background: linear-gradient(180deg, #f3faf1, #fff); }
.mcard.is-done .mcard__state { color: var(--forest); }
.progressbar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.progressbar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--nature), var(--forest)); transition: width 0.4s var(--ease); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badge { text-align: center; padding: 12px 8px; border-radius: var(--r-lg); border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, 0.6); opacity: 0.55; min-width: 0; }
.badge.is-earned { opacity: 1; border-style: solid; border-color: var(--nature); background: #fff; box-shadow: var(--sh-sm); }
.badge span { display: block; font-size: 0.76rem; font-weight: 700; margin-top: 4px; }
.badge small { font-size: 0.68rem; color: var(--muted); }

/* quiz */
.quiz { display: grid; gap: 14px; }
.quiz__q { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.quiz__q h3 { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.4; margin-bottom: 10px; }
.quiz__opts { display: grid; gap: 8px; }
.quiz__opt {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 0.87rem; cursor: pointer; min-height: 44px;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.quiz__opt:hover { border-color: var(--nature); background: var(--tint); }
.quiz__opt.is-picked { border-color: var(--forest); background: var(--tint-2); }
.quiz__opt.is-right { border-color: var(--nature-dark); background: #eaf6e7; }
.quiz__opt.is-wrong { border-color: #c0503a; background: #fdf0ec; }
.quiz__opt i { flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); font-style: normal; font-size: 0.7rem; font-weight: 800; color: var(--forest); }
.quiz__why { font-size: 0.8rem; color: var(--muted); margin-top: 8px; display: none; }
.quiz__q.is-checked .quiz__why { display: block; }
.quiz__score { font-family: var(--font-display); font-weight: 700; }

/* topic detail */
.topic { display: grid; gap: 18px; }
.topic__hero { border-radius: var(--r-xl); overflow: hidden; position: relative; background: var(--forest); color: #fff; padding: 22px; }
.topic__hero h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); margin: 8px 0; }
.topic__hero p { color: rgba(255, 253, 246, 0.85); max-width: 60ch; }
.topic__art { position: absolute; inset: 0; opacity: 0.28; z-index: 0; pointer-events: none; }
.topic__art .scene { width: 100%; height: 100%; }
.topic__hero > *:not(.topic__art) { position: relative; z-index: 1; }
.topic__body { display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-xs); min-width: 0; }
.panel h2 { font-size: 1.15rem; margin-bottom: 8px; }
.panel h3 { font-size: 1rem; margin-bottom: 6px; }
.panel ul { margin: 0; }
.panel li { font-size: 0.9rem; }
.list-check { list-style: none; padding: 0; display: grid; gap: 8px; }
.list-check li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; margin: 0; }
.list-check .ic { color: var(--nature-dark); margin-top: 3px; }

/* videos */
.video-grid { display: grid; gap: 16px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.vcard__stage {
  aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, #123f31, #1c5c46); color: rgba(255, 253, 246, 0.9);
  text-align: center; padding: 14px;
}
.vcard__stage::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(247, 191, 101, 0.18), transparent 70%);
}
.vcard__play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px dashed rgba(255, 253, 246, 0.55); color: rgba(255, 253, 246, 0.75); }
.vcard__stage small { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 6px; }
.vcard__stage p { font-size: 0.8rem; color: rgba(255, 253, 246, 0.75); }
.vcard__body { padding: 12px 14px; }
.vcard__title { font-size: 0.95rem; }
.vcard__meta { font-size: 0.74rem; color: var(--muted); }

/* -------------------------------- event screen --------------------------- */
.stagebar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--sh-sm); margin-bottom: 16px;
}
.stagebar__right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stagewrap { background: #0b2a20; border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-lg); }
.stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--r-md); color: #fff;
  background: radial-gradient(120% 120% at 20% 0%, #1d5b45 0%, #123f31 45%, #0b2a20 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(16px, 3.6vw, 52px);
}
.stage--full { position: fixed; inset: 0; z-index: 300; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; padding: clamp(24px, 5vw, 90px); }
.stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 46% at 88% 8%, rgba(247, 191, 101, 0.28), transparent 70%),
    radial-gradient(50% 60% at 4% 96%, rgba(131, 202, 218, 0.18), transparent 70%);
}
.stage__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(8px, 1.6vw, 20px); height: 100%; min-height: 0; justify-content: center; }
.stage__kicker { font-size: clamp(0.6rem, 1.1vw, 0.95rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.stage__title { font-size: clamp(1.35rem, 4.4vw, 3.9rem); line-height: 1.06; color: #fff; }
.stage__sub { font-size: clamp(0.7rem, 1.35vw, 1.15rem); color: rgba(255, 253, 246, 0.86); max-width: 70ch; }
.stage__meta { display: flex; flex-wrap: wrap; gap: clamp(6px, 1vw, 16px); margin-top: auto; }
.stage__meta span { font-size: clamp(0.6rem, 1vw, 0.9rem); font-weight: 600; color: rgba(255, 253, 246, 0.82); display: flex; align-items: center; gap: 6px; }
.stage__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 253, 246, 0.18); padding-top: clamp(6px, 1vw, 12px); font-size: clamp(0.55rem, 0.9vw, 0.8rem); color: rgba(255, 253, 246, 0.7); }
.stage__agenda { display: grid; gap: clamp(2px, 0.5vw, 8px); width: 100%; }
.stage__arow { display: grid; grid-template-columns: clamp(58px, 8vw, 120px) 1fr; gap: clamp(6px, 1.4vw, 20px); padding: clamp(2px, 0.5vw, 7px) 0; border-bottom: 1px solid rgba(255, 253, 246, 0.1); }
.stage__arow b { font-family: var(--font-display); color: var(--gold); font-size: clamp(0.6rem, 1.05vw, 1rem); }
.stage__arow span { font-size: clamp(0.6rem, 1.15vw, 1.02rem); color: #fff; }
.stage__arow.is-break { opacity: 0.62; }
.stage__boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, 1.4vw, 20px); margin: auto 0; }
.stage__box { border: 1px solid rgba(255, 253, 246, 0.22); border-radius: clamp(8px, 1vw, 18px); padding: clamp(8px, 1.6vw, 22px); background: rgba(255, 253, 246, 0.07); }
.stage__box h3 { color: var(--gold); font-size: clamp(0.72rem, 1.4vw, 1.2rem); margin-bottom: 4px; }
.stage__box p { color: rgba(255, 253, 246, 0.86); font-size: clamp(0.6rem, 1.05vw, 0.95rem); }
.stage__logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1.2vw, 16px); margin: auto 0; }
.stage__slot {
  border: 1px dashed rgba(255, 253, 246, 0.4); border-radius: 10px;
  padding: clamp(6px, 1.2vw, 16px); text-align: center;
  font-size: clamp(0.5rem, 0.9vw, 0.78rem); color: rgba(255, 253, 246, 0.7);
  display: grid; gap: 4px; place-items: center; min-height: clamp(40px, 7vw, 92px);
}
.stage__slots { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(8px, 2vw, 28px); align-items: center; margin: auto 0; }
.stage__sign { border-top: 1px solid rgba(255, 253, 246, 0.35); padding-top: 8px; text-align: center; }
.stage__sign b { display: block; font-size: clamp(0.6rem, 1vw, 0.9rem); }
.stage__sign span { font-size: clamp(0.55rem, 0.85vw, 0.75rem); color: rgba(255, 253, 246, 0.7); }
.stage__stamp { font-size: clamp(0.5rem, 0.85vw, 0.72rem); color: var(--gold); border: 1px solid rgba(247, 191, 101, 0.5); border-radius: 999px; padding: 2px 8px; }
.stage__close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.stage-hint { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* -------------------------------- about ---------------------------------- */
.about-grid { display: grid; gap: 16px; }
.partner-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.partner {
  display: flex; gap: 12px; align-items: center;
  padding: 14px; border-radius: var(--r-lg); background: #fff;
  border: 1px dashed var(--line-strong); min-width: 0;
}
.partner__mark {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; background: var(--tint); color: var(--forest);
  border: 1px solid var(--line);
}
.partner__initials { font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; }
.partner__body { min-width: 0; }
.partner__name { font-size: 0.88rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.partner__role { font-size: 0.74rem; color: var(--muted); }
.timeline { display: grid; gap: 16px; }
.tl { display: grid; grid-template-columns: 64px 1fr; gap: 12px; min-width: 0; }
.tl__year { font-family: var(--font-display); font-weight: 800; color: var(--gold-deep); font-size: 0.95rem; padding-top: 2px; }
.tl__body { border-left: 2px solid var(--line); padding: 0 0 12px 14px; }
.tl__body h3 { font-size: 1rem; margin-bottom: 2px; }
.tl__body p { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------- more page ------------------------------- */
.moregrid { display: grid; gap: 16px; }
.morelink {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 16px; border-radius: var(--r-lg); background: #fff;
  border: 1px solid var(--line); color: inherit; box-shadow: var(--sh-xs); min-width: 0;
}
.morelink:hover { color: inherit; border-color: var(--nature); box-shadow: var(--sh-sm); }
.morelink__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--forest); }
.morelink__title { font-size: 0.95rem; font-weight: 700; }
.morelink__sub { font-size: 0.79rem; color: var(--muted); }
.morelink .ic:last-child { color: var(--muted); }

/* -------------------------------- footer --------------------------------- */
.ftr { background: linear-gradient(180deg, #123f31, #0d2f24); color: rgba(255, 253, 246, 0.82); margin-top: 36px; padding: 32px 0 18px; }
.ftr__grid { display: grid; gap: 22px; }
.brand--ftr .brand__name { color: #fff; }
.brand--ftr .brand__name em { color: var(--gold); }
.ftr__slogan { color: var(--gold); font-family: var(--font-display); font-weight: 600; margin: 10px 0 6px; font-size: 0.95rem; }
.ftr__inst { font-size: 0.8rem; color: rgba(255, 253, 246, 0.68); }
.ftr__col { display: grid; gap: 4px; align-content: start; }
.ftr__col h3 { color: #fff; font-family: var(--font-body); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 6px; }
.ftr__col a { color: rgba(255, 253, 246, 0.82); font-size: 0.85rem; padding: 5px 0; min-height: 34px; display: flex; align-items: center; }
.ftr__col a:hover { color: var(--gold); }
.ftr__bottom { border-top: 1px solid rgba(255, 253, 246, 0.15); margin-top: 24px; padding-top: 14px; display: grid; gap: 8px; }
.ftr__note { font-size: 0.74rem; color: rgba(255, 253, 246, 0.6); max-width: 70ch; }
.ftr__legal { font-size: 0.74rem; color: rgba(255, 253, 246, 0.55); }

/* -------------------------------- toast ---------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateX(-50%); z-index: 150;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--forest); color: var(--warm); font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--sh-lg); text-align: center;
}
.toast[hidden] { display: none; }

/* ------------------------------ misc layout ------------------------------ */
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
.split { display: grid; gap: 18px; }
.statrow { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; min-width: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); line-height: 1.1; }
.stat span { font-size: 0.74rem; color: var(--muted); }
.pagehead { padding: 26px 0 8px; }
.pagehead h1 { font-size: clamp(1.8rem, 5.4vw, 2.9rem); }
.pagehead p { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); min-height: 24px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span { color: var(--ink); }
.detail-hero { border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(150deg, var(--forest), #123f31); color: #fff; padding: 22px; position: relative; }
.detail-hero h1 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.4rem); }
.detail-hero p { color: rgba(255, 253, 246, 0.85); }
.detail-hero__art { position: absolute; inset: 0; opacity: 0.25; z-index: 0; }
.detail-hero__art .scene { width: 100%; height: 100%; }
.detail-hero > *:not(.detail-hero__art) { position: relative; z-index: 1; }
.mascot-tip { display: flex; gap: 12px; align-items: center; background: linear-gradient(150deg, #fff7e8, #fffdf6); border: 1px solid rgba(233, 165, 66, 0.35); border-radius: var(--r-lg); padding: 14px; }
.mascot-tip .rinji { width: 62px; flex: 0 0 auto; }
.mascot-tip p { font-size: 0.86rem; color: #61430f; }
.mascot-tip strong { display: block; font-size: 0.88rem; color: #4a3313; }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ------------------------------- responsive ------------------------------ */
@media (min-width: 560px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }
  .rail { grid-auto-columns: 46%; }
  .rail--wide { grid-auto-columns: 60%; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .mission { grid-template-columns: repeat(2, 1fr); }
  .wnums { gap: 14px; }
  .hero__inner { padding: 40px 0 46px; }
}

@media (min-width: 760px) {
  .hdr__event { display: inline-flex; }
  .section { padding: 56px 0; }
  .shead { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; }
  .shead .btn { align-self: flex-end; flex: 0 0 auto; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .statrow { grid-template-columns: repeat(4, 1fr); }
  .rail { grid-auto-columns: 32%; }
  .rail--wide { grid-auto-columns: 42%; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .lab-shell { grid-template-columns: minmax(0, 1fr) 300px; }
  .lab-fields { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / -1; }
  .preview__grid { grid-template-columns: repeat(2, 1fr); }
  .preview__block--full { grid-column: 1 / -1; }
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
  .wpanel { padding: 30px; }
  .wmeta { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .moregrid { grid-template-columns: repeat(2, 1fr); }
  .hero__card { grid-template-columns: auto 1fr auto; padding: 14px 16px; border-radius: var(--r-xl); gap: 8px 14px; }
  .hero__card .rinji { display: block; grid-row: span 2; width: 78px; height: auto; }
  .hero__cardTitle { font-size: 0.98rem; }
  .hero__cardMeta { font-size: 0.78rem; }
  .hero__cardLink { grid-column: 2 / -1; font-size: 0.82rem; }
  .hero__cardLink { grid-column: 2 / -1; }
  .catalog { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, auto); }
  .catalog__item--wide { grid-column: span 2; }
  .catalog__item--tall { grid-row: span 2; }
  .acard__art { aspect-ratio: 16 / 10; }
  .catalog__item--tall .acard__art { aspect-ratio: 4 / 5; }
  .about-grid { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .ftr__bottom { grid-template-columns: 1fr auto; align-items: end; }
}

@media (min-width: 1000px) {
  :root { --gutter: 28px; --hdr-h: 72px; }
  body { font-size: 16.5px; }
  .nav { display: flex; }
  .hdr__actions .btn { display: inline-flex; }
  .hdr__burger { display: none; }
  .hdr__actions { margin-left: 12px; }
  .hdr__actions .btn { margin-left: 4px; }
  .nav__link { padding: 9px 13px; font-size: 0.9rem; }
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 40px; padding: 56px 0 60px; min-height: 520px; }
  .hero__veil {
    background:
      linear-gradient(100deg, rgba(14, 51, 39, 0.86) 0%, rgba(14, 51, 39, 0.66) 38%, rgba(14, 51, 39, 0.22) 68%, rgba(14, 51, 39, 0.06) 100%),
      linear-gradient(180deg, rgba(14, 51, 39, 0.18) 0%, rgba(14, 51, 39, 0.28) 58%, rgba(14, 51, 39, 0.86) 100%),
      radial-gradient(58% 68% at 82% 24%, rgba(247, 191, 101, 0.3), transparent 72%);
  }
  .hero__card { justify-self: end; width: 100%; }
  .section { padding: 68px 0; }
  .rail { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 18px; }
  .rail--learn { grid-template-columns: repeat(4, 1fr); }
  .rail--videos { grid-template-columns: repeat(4, 1fr); }
  .railhint { display: none; }
  .result-grid { grid-template-columns: repeat(3, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .lab-body { padding: 24px; }
  .pagehead { padding: 40px 0 12px; }
}

@media (min-width: 1200px) {
  .catalog { gap: 20px; }
  .hero__card .rinji { width: 92px; }
}

/* ------------------------------- print ----------------------------------- */
@media print {
  .hdr, .bnav, .ftr, .stagebar, .lab-actions, .lab-side, .toast, .skip, .drawer { display: none !important; }
  body { padding: 0; background: #fff; font-size: 11.5pt; }
  body::before { display: none; }
  .main { padding: 0; }
  .lab-card, .panel, .notice { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .lab-body { padding: 0; }
  .print-title { display: block !important; margin-bottom: 12px; }
  .preview__grid { grid-template-columns: repeat(2, 1fr); }
  a { color: #000; text-decoration: none; }
  .wrap { width: 100%; }
}

.print-title { display: none; }

/* --------------------------- reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* =============================================================================
   Component additions (Build 1)
   ========================================================================== */

[hidden] { display: none !important; }

/* --------------------- adventure catalog: mobile carousel ---------------- */
.catalog {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.catalog__item { scroll-snap-align: start; min-width: 0; }
.catalog::-webkit-scrollbar { height: 6px; }
.catalog::-webkit-scrollbar-thumb { background: rgba(23, 76, 59, 0.2); border-radius: 3px; }

@media (min-width: 760px) {
  .catalog {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }
}

/* ------------------------------ lab mock --------------------------------- */
.lab-mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-md); overflow: hidden;
}
.lab-mock__top {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #fbfaf3; border-bottom: 1px solid var(--line);
}
.lab-mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.lab-mock__dot:first-child { background: #e0a08a; }
.lab-mock__dot:nth-child(2) { background: var(--gold); }
.lab-mock__dot:nth-child(3) { background: var(--nature); }
.lab-mock__tag {
  margin-left: auto; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.lab-mock__body { padding: 18px; display: grid; gap: 10px; }
.lab-mock__kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nature-dark); }
.lab-mock__field { display: grid; gap: 5px; }
.lab-mock__field span { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.lab-mock__field i { display: block; height: 9px; border-radius: 5px; background: var(--tint-2); width: 92%; }
.lab-mock__bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.lab-mock__bar i { display: block; height: 100%; width: 42%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.lab-mock__note { font-size: 0.72rem; color: var(--muted-2); font-style: italic; }

/* --------------------------- presentation layout -------------------------- */
.stagepage { padding-bottom: 0; background: #0b2a20; }
.stagepage::before { display: none; }
.stagepage .hdr { display: none; }
.stagepage .main { padding: 10px; }
.stagebar--present { margin: 4px 4px 12px; }
.stagewrap--present { padding: 8px; }
.stagewrap--present .stage { border-radius: var(--r-md); }
.stage:fullscreen,
.stage:-webkit-full-screen {
  width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0;
  padding: clamp(24px, 5vw, 90px); display: flex;
}
.stage:fullscreen::backdrop { background: #0b2a20; }

/* ------------------------------- print ---------------------------------- */
@media print {
  .lab-card { display: none !important; }
  #labPreview { display: grid !important; gap: 10px; }
  #labPreview .btn-row,
  #labPreview .notice { display: none !important; }
  #labSubmit { display: none !important; }
  .lab-shell { display: block; }
  .pagehead { display: none; }
  .print-title { display: block !important; }
}

/* small refinements */
.mission { align-content: start; }
.mcard__state { min-width: 52px; text-align: right; }
.topiccard .card__text { min-height: 2.6em; }
.res-grid + .empty { text-align: center; }
.quiz__score { font-size: 1.1rem; color: var(--forest); }
.quiz__why .ic { vertical-align: -2px; }
.stage__agenda { overflow: hidden; }
@media (max-width: 559px) {
  .stage__boxes { grid-template-columns: 1fr; }
  .stage__boxes .stage__box { padding: 6px 8px; }
  .stage__logos { grid-template-columns: repeat(2, 1fr); }
  .stage__slots { grid-template-columns: 1fr; }
  .stage__stamp { justify-self: center; }
}

/* =============================================================================
   Build 2 components — events, projects, organisations, workspace states
   ========================================================================== */

.egrid, .pgrid, .ogrid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .egrid, .pgrid, .ogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .egrid, .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .egrid, .pgrid, .ogrid { gap: 20px; }
}

.ecard, .pcard {
  display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-sm); color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ecard:hover, .pcard:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--sh-md); }
.ecard__art, .pcard__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--forest); }
.pcard__art { aspect-ratio: 16 / 10; }
.ecard__art .scene, .pcard__art .scene { width: 100%; height: 100%; display: block; }
.ecard__art img, .pcard__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ecard__body, .pcard__body { padding: 16px; display: grid; gap: 6px; flex: 1; align-content: start; min-width: 0; }
.ecard__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ecard__title { font-size: 1.06rem; line-height: 1.25; overflow-wrap: anywhere; }
.ecard__sub { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.ecard__meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.ecard__meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ecard .acard__go, .pcard .acard__go { margin-top: 8px; }

.ocard {
  display: flex; gap: 12px; align-items: center; min-width: 0;
  padding: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); color: inherit; box-shadow: var(--sh-xs);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.ocard:hover { color: inherit; border-color: var(--nature); box-shadow: var(--sh-sm); }
.ocard__body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.ocard .partner__mark { overflow: hidden; }
.ocard .partner__mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ocard .ic:last-child { color: var(--muted); }

/* workspace status banner */
.statusbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--tint); border: 1px solid var(--line);
}
.statusbar--warn { background: #fdf5e6; border-color: rgba(233, 165, 66, 0.4); }
.statusbar--ok { background: #eaf6e7; border-color: rgba(78, 143, 94, 0.45); }

/* server save indicator */
.lab-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nature); display: inline-block; margin-right: 6px;
}

@media print {
  .lab-card { display: none !important; }
  #labPreview { display: grid !important; gap: 10px; }
  #labPreview .btn-row { display: none !important; }
  .lab-shell { display: block; }
  .pagehead { display: none; }
}

/* =============================================================================
   GeoSchool Smart Registration — public pages & GeoPass
   ========================================================================== */

.regwrap { display: grid; gap: 16px; max-width: 720px; margin-inline: auto; }

.regsum { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-md); }
.regsum__art { position: relative; aspect-ratio: 16 / 7; background: var(--forest); }
.regsum__art .scene { width: 100%; height: 100%; display: block; }
.regsum__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.regsum__body { padding: 16px; display: grid; gap: 6px; min-width: 0; }
.regsum__title { font-size: 1.15rem; line-height: 1.25; }
.regsum__sub { color: var(--muted); font-size: 0.86rem; }
.regsum__meta { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.regsum__meta li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.regsum__meta .ic { color: var(--nature-dark); margin-top: 2px; flex: 0 0 auto; }
@media (min-width: 560px) {
  .regsum { grid-template-columns: 200px 1fr; }
  .regsum__art { aspect-ratio: auto; height: 100%; min-height: 180px; }
}

.regform { display: grid; gap: 14px; }
.regform__head h2 { font-size: 1.1rem; margin-bottom: 4px; }
.field__opt { font-weight: 500; color: var(--muted-2); font-size: 0.76rem; }

.regconsent { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-md); background: var(--tint); border: 1px solid var(--line); }
.regcheck { display: flex; gap: 9px; align-items: flex-start; font-size: 0.86rem; }
.regcheck input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--forest); }
.regprivacy { font-size: 0.78rem; color: var(--muted); margin: 0; }

.regcta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.regcta__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-gold); color: #8a5a12; flex: 0 0 auto; }
.regcta__body { min-width: 0; flex: 1 1 220px; }
.regcta__body h3 { font-size: 1rem; margin-bottom: 2px; }
.regcta__qr { display: grid; gap: 4px; justify-items: center; flex: 0 0 auto; }
.regcta__qr img { border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.regcta__qr span { font-size: 0.7rem; color: var(--muted); }
.regcta--closed { background: #fbfbf6; }

.regclosed { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 28px 18px;
  border: 2px dashed var(--line-strong); border-radius: var(--r-xl); background: rgba(255, 253, 246, 0.75); }
.regclosed__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--nature-dark); }
.regclosed p { color: var(--muted); max-width: 44ch; }

.regsuccess { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px;
  background: linear-gradient(160deg, #eefaf0, #fffdf6); border: 1px solid rgba(78, 143, 94, 0.4); border-radius: var(--r-xl); }
.regsuccess__badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--nature); color: #fff; }
.regsuccess h2 { font-size: 1.2rem; }
.regsuccess__msg { color: var(--ink-soft); font-size: 0.9rem; max-width: 46ch; }
.regsuccess__ref { display: flex; gap: 8px; align-items: baseline; background: #fff; border: 1px dashed var(--line-strong); border-radius: 999px; padding: 6px 14px; }
.regsuccess__ref span { font-size: 0.72rem; color: var(--muted); }
.regsuccess__ref b { font-family: ui-monospace, monospace; letter-spacing: 0.1em; }
.regsuccess__note { font-size: 0.76rem; color: var(--muted); max-width: 46ch; }
.regsuccess--compact { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
.regsuccess--compact .regsuccess__badge { width: 38px; height: 38px; }
.geopass-mini { display: grid; justify-items: center; gap: 4px; }
.geopass-mini img { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }

/* -------------------------------- GeoPass -------------------------------- */

.passwrap { display: grid; gap: 16px; max-width: 620px; margin-inline: auto; }
.geopass {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  background: linear-gradient(150deg, #174C3B 0%, #0E3327 58%, #123f31 100%);
  box-shadow: var(--sh-lg); padding: 18px; display: grid; gap: 14px;
}
.geopass::after {
  content: ''; position: absolute; inset: -30% -20% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(247, 191, 101, 0.28), transparent 72%);
}
.geopass.is-checked { box-shadow: 0 0 0 3px rgba(112, 173, 117, 0.5), var(--sh-lg); }
.geopass__top { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.geopass__brand { display: grid; line-height: 1.15; min-width: 0; flex: 1; }
.geopass__brand strong { font-family: var(--font-display); font-size: 0.98rem; }
.geopass__brand em { font-style: normal; color: var(--gold); }
.geopass__brand span { font-size: 0.66rem; color: rgba(255, 253, 246, 0.65); }
.geopass__event { position: relative; z-index: 1; }
.geopass__label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 253, 246, 0.6); margin: 0 0 2px; }
.geopass__event h2 { color: #fff; font-size: 1.15rem; line-height: 1.25; }
.geopass__subtitle { font-size: 0.8rem; color: rgba(255, 253, 246, 0.75); margin-top: 4px; }
.geopass__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.geopass__field { min-width: 0; }
.geopass__field span { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 253, 246, 0.55); }
.geopass__field strong { font-size: 0.9rem; overflow-wrap: anywhere; }
.geopass__qr { position: relative; z-index: 1; display: grid; place-items: center; background: #fff; border-radius: var(--r-md); padding: 10px; justify-self: center; }
.geopass__qr img { display: block; width: 200px; height: 200px; }
.geopass__qrempty { display: grid; gap: 6px; justify-items: center; color: #6b6b5f; font-size: 0.78rem; text-align: center; padding: 18px; }
.geopass__foot { display: grid; gap: 8px; position: relative; z-index: 1; border-top: 1px solid rgba(255, 253, 246, 0.18); padding-top: 10px; }
.geopass__foot div span { display: block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 253, 246, 0.55); }
.geopass__foot div strong { font-size: 0.84rem; font-weight: 600; }
.geopass__checked { position: relative; z-index: 1; display: inline-flex; gap: 6px; align-items: center; align-self: start;
  background: rgba(112, 173, 117, 0.25); border: 1px solid rgba(112, 173, 117, 0.6); border-radius: 999px; padding: 5px 12px; font-size: 0.76rem; }
.passactions { display: flex; flex-wrap: wrap; gap: 8px; }
.passactions .btn { flex: 1 1 160px; }
@media (min-width: 560px) {
  .geopass { padding: 22px; }
  .geopass__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geopass__foot { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .geopass__qr img { width: 220px; height: 220px; }
}

@media print {
  .hdr, .bnav, .ftr, [data-print-hide], .pagehead .kicker { display: none !important; }
  .passhead { padding: 0 0 6px; }
  .passwrap { max-width: none; }
  .geopass { box-shadow: none; border: 1px solid #174C3B; page-break-inside: avoid; }
  body { background: #fff; }
}

/* =============================================================================
   GeoSchool worksheet (4 GEO Action Plan) — workspace
   ========================================================================== */

.wstabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: thin; }
.wstabs::-webkit-scrollbar { height: 4px; }
.wstab {
  flex: 0 0 auto; display: grid; gap: 1px; min-height: 48px; align-content: center;
  padding: 9px 15px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: #fff; color: var(--ink); box-shadow: var(--sh-xs);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.wstab:hover { color: var(--forest); border-color: var(--nature); }
.wstab__label { font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.wstab__note { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.wstab.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.wstab.is-active .wstab__note { color: rgba(255, 253, 246, 0.7); }

.lab-navrow { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 10px; }

.wsform { display: block; }
.wshead {
  display: flex; gap: 14px; justify-content: space-between; align-items: flex-start;
  padding: 16px 18px; background: linear-gradient(160deg, var(--tint-gold), #fffaf0);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.wshead h2 { font-size: 1.15rem; margin: 2px 0 4px; }
.wshead__meter { display: grid; gap: 4px; justify-items: end; min-width: 96px; }
.wshead__meter span { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--forest); line-height: 1; }
.wshead__meter i { display: block; width: 96px; height: 7px; border-radius: 4px; background: rgba(23, 76, 59, 0.14); overflow: hidden; }
.wshead__meter b { display: block; height: 100%; background: linear-gradient(90deg, var(--nature), var(--forest)); transition: width 0.35s var(--ease); }

.wssection { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.wssection:last-child { border-bottom: 0; padding-bottom: 4px; }
.wssection__title { font-size: 1.02rem; margin-bottom: 2px; }
.wssection__desc { font-size: 0.84rem; color: var(--muted); margin-bottom: 12px; }

.wsstage { display: grid; gap: 12px; }
.wsstage[hidden] { display: none !important; }
.wsstage__head { display: grid; gap: 1px; }
.wsstage__code { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.wsstage__head h2 { font-size: 1.12rem; }
.wsstage__sub { font-size: 0.82rem; color: var(--muted); }
.wsstage__q {
  margin: 0; padding: 12px 14px; border-left: 4px solid var(--gold);
  background: #fff9e9; border-radius: 9px; font-weight: 700; font-size: 0.9rem;
}

.wschecklist { display: grid; gap: 4px; }
.wscheck { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.83rem; }
.wscheck__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; }
.wscheck.is-done .wscheck__dot { background: var(--nature); border-color: var(--nature); }
.wscheck__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wscheck__pct { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.wscheck.is-done .wscheck__pct { color: var(--forest); font-weight: 700; }

@media (max-width: 620px) {
  .wshead__meter { min-width: 0; }
  .wshead__meter i { width: 72px; }
  .lab-actions [data-ws-save], .lab-actions [data-ws-preview] { flex: 1 1 auto; }
}

@media print {
  .wstabs, .lab-side, .lab-actions, .wshead__meter { display: none !important; }
  .wsstage[hidden] { display: grid !important; }
  .wsform { display: none !important; }
  #wsPreview { display: grid !important; gap: 10px; }
  #wsPreview .btn-row { display: none !important; }
}
