:root {
  --ink: #10243f;
  --muted: #60728b;
  --paper: #f7f4ec;
  --panel: #fffdf7;
  --line: rgba(16, 36, 63, 0.13);
  --brand: #0a5dbb;
  --brand-deep: #073b82;
  --brand-soft: #dcecff;
  --forest: #143f35;
  --mint: #d7eee5;
  --gold: #d4a21f;
  --sun: #efd84b;
  --teal: #1aa79a;
  --coral: #df5a4d;
  --violet: #7054a1;
  --sky: #b9d7e8;
  --clay: #b86646;
  --blue: #0a5dbb;
  --shadow: 0 24px 80px rgba(16, 36, 63, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 7%, rgba(10, 93, 187, 0.22), transparent 31%),
    radial-gradient(circle at 86% 4%, rgba(239, 216, 75, 0.24), transparent 28%),
    radial-gradient(circle at 78% 36%, rgba(223, 90, 77, 0.12), transparent 24%),
    linear-gradient(180deg, #f4f9ff 0%, #f7f4ec 54%, #eef6ff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.locked {
  min-height: 100vh;
}

body.locked > :not(.access-gate) {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 18px;
  background: #16221f;
  color: #f7f4ec;
  font-size: 13px;
}

.access-gate {
  min-height: 100vh;
  display: none;
  place-items: center;
  padding: clamp(22px, 5vw, 76px);
  background:
    radial-gradient(circle at 14% 12%, rgba(10, 93, 187, 0.32), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(239, 216, 75, 0.34), transparent 28%),
    radial-gradient(circle at 72% 84%, rgba(223, 90, 77, 0.2), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #eaf3ff 58%, #fff8df 100%);
}

body.locked .access-gate {
  display: grid;
}

.gate-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.gate-copy,
.gate-card {
  min-width: 0;
}

.gate-copy h1 {
  max-width: 760px;
  margin-bottom: 24px;
}

.gate-copy p {
  max-width: 680px;
  color: #41504b;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.gate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.gate-tags span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(255, 253, 247, 0.74);
  font-size: 13px;
  font-weight: 900;
}

.gate-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(21, 32, 30, 0.12);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: var(--shadow);
}

.gate-logo {
  width: 150px;
  max-width: 60%;
  height: auto;
  filter: saturate(0.92) blur(0.35px);
}

.gate-card h2 {
  margin: 6px 0 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 30px;
  line-height: 1.15;
}

.gate-card p {
  color: var(--muted);
  line-height: 1.5;
}

.gate-language {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(10, 93, 187, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.gate-language > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.language-buttons.compact {
  flex-wrap: wrap;
}

.language-buttons.compact button {
  padding: 8px 10px;
  font-size: 12px;
}

.gate-card a {
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}

.gate-error {
  min-height: 18px;
  margin: 0;
  color: #a34234;
  font-size: 13px;
  font-weight: 800;
}

.notice span {
  color: rgba(247, 244, 236, 0.78);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 64px);
  background: rgba(247, 244, 236, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header > *,
nav,
.hero-actions,
.hero-proof {
  min-width: 0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 70px;
  height: 56px;
  object-fit: contain;
  filter: saturate(0.94) blur(0.2px);
}

.brand strong,
footer strong {
  display: block;
  font-size: 17px;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 12px;
}

nav {
  justify-self: center;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
}

nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  background: var(--mint);
}

.header-cta,
.primary,
.secondary,
.filter,
.language-strip button,
.header-logout,
.dialog-close {
  border: 0;
  cursor: pointer;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.header-cta,
.primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 12px 26px rgba(10, 93, 187, 0.2);
}

.header-logout {
  color: var(--brand-deep);
  background: rgba(255, 253, 247, 0.76);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 900;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 253, 247, 0.72);
}

.secondary.light {
  color: #f7f4ec;
  background: transparent;
  border-color: rgba(247, 244, 236, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 98px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 84px) 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Open Sans", Inter, system-ui, sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(46px, 6.4vw, 86px);
  font-weight: 800;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-lead {
  max-width: 720px;
  color: #41504b;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin-top: 34px;
}

.hero-proof {
  margin-top: 34px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 253, 247, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel,
.dashboard-card,
.enrol-card,
.course-card,
.timeline article {
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid rgba(21, 32, 30, 0.1);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.7;
}

.hero-panel > * {
  position: relative;
}

.panel-top,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.panel-top strong,
.dashboard-header strong {
  color: var(--brand-deep);
}

.journey-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.journey-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.journey-list li > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--forest);
  font-weight: 900;
}

.journey-list p,
.timeline p,
.course-card p,
.section-heading p,
.intro-grid p,
.enrol-copy p,
.parent-dashboard p,
footer p {
  color: var(--muted);
  line-height: 1.55;
}

.language-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 14px clamp(20px, 5vw, 84px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.58);
}

.language-strip span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-buttons {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.language-strip button,
.filter {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.language-strip button,
.language-buttons.compact button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.language-native {
  white-space: nowrap;
}

.language-code {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(16, 36, 63, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.language-strip button.active .language-code,
.language-buttons.compact button.active .language-code {
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.86);
}

[dir="rtl"] .site-header,
[dir="rtl"] .hero,
[dir="rtl"] .intro-grid,
[dir="rtl"] .finder-layout,
[dir="rtl"] .enrol-section,
[dir="rtl"] .parent-dashboard,
[dir="rtl"] footer {
  direction: rtl;
}

[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
}

[dir="rtl"] .check-list li {
  border-left: 0;
  border-right: 4px solid var(--gold);
}

.language-strip button.active,
.filter.active {
  background: linear-gradient(135deg, var(--brand), var(--teal));
  color: white;
  border-color: var(--brand);
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(20px, 5vw, 84px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.finder-section {
  background:
    linear-gradient(90deg, rgba(10, 93, 187, 0.16), rgba(239, 216, 75, 0.23)),
    rgba(255, 253, 247, 0.42);
}

.finder-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.finder-card,
.recommendation-card,
.live-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow);
}

.finder-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.recommendation-card {
  min-height: 270px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.recommendation-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun), var(--coral));
  opacity: 0.55;
}

.recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.recommendation-actions button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--forest);
  font-weight: 800;
  cursor: pointer;
}

.recommendation-context {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  position: relative;
  z-index: 1;
}

.recommendation-context div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(10, 93, 187, 0.14);
  padding-bottom: 7px;
}

.recommendation-context dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.recommendation-context dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-align: end;
}

.muted-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 680px;
}

.filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}

.course-visual {
  min-height: 116px;
  padding: 18px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(21, 32, 30, 0.12), transparent),
    var(--accent);
}

.course-visual span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 800;
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.course-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(10, 93, 187, 0.08);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 800;
}

.signature-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: -2px 0 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(239, 216, 75, 0.3);
  font-size: 11px;
  font-weight: 900;
}

.signature-badge.light {
  color: white;
  background: rgba(255, 255, 255, 0.24);
}

.course-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: auto;
}

.course-body button {
  margin-top: auto;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-deep);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.course-actions button + button {
  background: var(--gold);
  color: var(--ink);
}

.calendar-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.82), rgba(220, 236, 255, 0.54)),
    rgba(255, 253, 247, 0.62);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.32fr);
  gap: 22px;
  align-items: start;
}

.calendar-card,
.calendar-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.calendar-card {
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 0%, rgba(239, 216, 75, 0.42), transparent 34%),
    rgba(255, 255, 255, 0.56);
}

.calendar-toolbar span,
.calendar-summary li,
.schedule-item span {
  color: var(--muted);
}

.calendar-toolbar strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 22px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  overflow-x: auto;
}

.schedule-day {
  min-width: 180px;
  border-right: 1px solid var(--line);
}

.schedule-day:last-child {
  border-right: 0;
}

.schedule-day h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 16px;
}

.schedule-day-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.schedule-item {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgba(16, 36, 63, 0.11);
  border-radius: 8px;
  background: white;
}

.schedule-item.language {
  border-top: 4px solid var(--brand);
}

.schedule-item.academic {
  border-top: 4px solid var(--forest);
}

.schedule-item.creative {
  border-top: 4px solid var(--coral);
}

.schedule-item.camp {
  border-top: 4px solid var(--gold);
}

.schedule-item.private {
  border-top: 4px solid var(--violet);
}

.schedule-item-main {
  display: grid;
  gap: 5px;
}

.schedule-item time {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.schedule-item strong {
  line-height: 1.25;
}

.schedule-item button {
  width: 100%;
  align-self: end;
  border: 0;
  border-radius: 8px;
  padding: 8px 9px;
  color: white;
  background: var(--brand-deep);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.schedule-item em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-summary {
  position: sticky;
  top: 116px;
  padding: 22px;
}

.calendar-summary ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 6px;
  list-style: none;
}

.calendar-summary li {
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.5;
}

[dir="rtl"] .calendar-summary li {
  padding-left: 0;
  padding-right: 14px;
  border-left: 0;
  border-right: 4px solid var(--gold);
}

.pathway {
  background: linear-gradient(135deg, var(--brand-deep), #0b527f);
  color: #f7f4ec;
}

.pathway .eyebrow,
.pathway p {
  color: rgba(247, 244, 236, 0.74);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.timeline article {
  border-color: rgba(247, 244, 236, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border-radius: 8px;
  padding: 22px;
}

.timeline span {
  color: var(--gold);
  font-weight: 900;
}

.parent-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.enrol-section {
  display: grid;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.78), rgba(255, 253, 247, 0.9)),
    rgba(255, 253, 247, 0.78);
}

.enrol-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.enrol-copy .eyebrow,
.enrol-copy h2 {
  grid-column: 1;
}

.enrol-copy > p {
  grid-column: 2;
  margin-top: 34px;
  font-size: 17px;
}

.enrol-copy .check-list {
  grid-column: 1 / -1;
}

.enrolment-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.45fr);
  gap: 22px;
  align-items: start;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 253, 247, 0.76);
  font-weight: 700;
}

.enrol-card {
  display: grid;
  gap: 14px;
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 18px 48px rgba(16, 36, 63, 0.12);
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: rgba(10, 93, 187, 0.08);
}

.step-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 10px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.step-tabs button.active {
  color: var(--ink);
  background: var(--sun);
}

.form-step {
  display: none;
  gap: 14px;
}

.form-step.active {
  display: grid;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

fieldset input {
  width: auto;
}

.next-step {
  width: fit-content;
}

.live-summary {
  position: sticky;
  top: 116px;
  align-self: start;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 8%, rgba(239, 216, 75, 0.4), transparent 34%),
    rgba(255, 253, 247, 0.94);
  box-shadow: 0 18px 48px rgba(16, 36, 63, 0.1);
}

.live-summary h3 {
  margin-bottom: 18px;
}

.live-summary dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.live-summary div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.live-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-summary dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.live-summary a,
.system-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.consent-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(10, 93, 187, 0.16);
  border-radius: 8px;
  background: rgba(220, 236, 255, 0.45);
}

.consent-panel h3 {
  margin: 0;
}

.consent-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.84);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.checkbox-line.required {
  border-color: rgba(10, 93, 187, 0.34);
}

.wide {
  width: 100%;
  border-radius: 8px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-note.error {
  color: #9b1c1c;
  font-weight: 900;
}

.dashboard-card {
  border-radius: 8px;
  padding: 24px;
}

.status-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.status-list span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.status-list .done {
  color: var(--forest);
  background: var(--brand-soft);
}

.system-link {
  margin-top: 18px;
}

.system-link.dark {
  color: var(--sun);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 84px);
  background: var(--ink);
  color: #f7f4ec;
}

.footer-logo {
  width: 86px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: saturate(0.94) blur(0.2px);
}

footer p {
  margin: 6px 0 0;
  color: rgba(247, 244, 236, 0.72);
}

dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

dialog::backdrop {
  background: rgba(12, 18, 16, 0.52);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(21, 32, 30, 0.08);
  color: var(--ink);
  font-size: 24px;
}

.dialog-course {
  display: grid;
  gap: 22px;
  padding: 34px;
}

.course-intro-block p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.course-snapshot,
.course-next-step {
  display: grid;
  gap: 12px;
}

.course-snapshot {
  grid-template-columns: repeat(3, 1fr);
}

.course-next-step {
  grid-template-columns: 1fr 1fr;
}

.course-snapshot div,
.course-next-step div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 253, 247, 0.72);
}

.course-snapshot span,
.course-next-step span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-snapshot strong {
  display: block;
  line-height: 1.25;
}

.course-next-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dialog-hero {
  min-height: 210px;
  padding: 24px;
  color: white;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.26), transparent 34%),
    var(--accent);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dialog-grid ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  line-height: 1.7;
}

.success {
  padding: 46px;
}

@media (max-width: 1080px) {
  .course-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .hero,
  .gate-shell,
  .enrol-copy,
  .parent-dashboard,
  .calendar-layout,
  .finder-layout,
  .enrolment-shell {
    grid-template-columns: 1fr;
  }

.hero {
    min-height: auto;
  }
}

.hero-copy,
.hero-panel,
.intro-grid > *,
.finder-layout > *,
.enrol-section > *,
.parent-dashboard > *,
.course-card,
.timeline article {
  min-width: 0;
}

@media (max-width: 760px) {
  .notice {
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .header-actions {
    justify-self: end;
  }

  nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
  }

  .header-cta {
    padding: 10px 12px;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: 46px;
    line-height: 0.98;
  }

  h2 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    flex: 1 1 150px;
  }

  .hero-proof span {
    max-width: 100%;
  }

  .course-grid,
  .timeline,
  .check-list,
  .form-row,
  .dialog-grid,
  .course-snapshot,
  .course-next-step,
  fieldset {
    grid-template-columns: 1fr;
  }

  .course-card {
    min-height: 0;
  }

  .enrol-copy > p {
    grid-column: auto;
    margin-top: 0;
  }

  .calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-toolbar .secondary {
    width: 100%;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .schedule-day {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-day:last-child {
    border-bottom: 0;
  }

  .calendar-summary {
    position: static;
  }

  .panel-top,
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .journey-list li {
    grid-template-columns: 42px 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .notice > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-cta,
  .header-logout {
    flex: 1 1 0;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1 0 auto;
    text-align: center;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    width: 100%;
  }

  .section,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand strong {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .access-gate {
    align-items: start;
    padding: 16px;
  }

  .gate-shell {
    gap: 18px;
  }

  .gate-copy h1,
  h1 {
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.02;
  }

  .gate-copy p,
  .hero-lead {
    font-size: 16px;
    line-height: 1.45;
  }

  .gate-tags,
  .hero-proof {
    gap: 7px;
    margin-top: 18px;
  }

  .gate-tags span,
  .hero-proof span {
    padding: 6px 9px;
    font-size: 11px;
  }

  .gate-card,
  .finder-card,
  .recommendation-card,
  .calendar-summary,
  .dashboard-card,
  .enrol-card,
  .dialog-course,
  .success {
    padding: 18px;
  }

  .gate-card {
    gap: 12px;
  }

  .gate-logo {
    width: 108px;
  }

  .gate-card h2 {
    font-size: 24px;
  }

  .site-header {
    gap: 10px;
    padding: 12px 14px;
  }

  .brand-logo {
    width: 54px;
    height: 44px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 11px;
  }

  nav {
    gap: 4px;
    padding: 4px;
  }

  nav a,
  .header-cta,
  .header-logout,
  .primary,
  .secondary,
  .filter,
  .language-strip button,
  .recommendation-actions button,
  .course-body button,
  .schedule-item button,
  .step-tabs button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.15;
  }

  .header-cta {
    width: auto;
    justify-self: start;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 42px;
  }

  h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  h3 {
    font-size: 17px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-actions .primary,
  .hero-actions .secondary {
    width: auto;
  }

  .hero-panel {
    padding: 18px;
  }

  .journey-list {
    gap: 12px;
    margin-top: 16px;
  }

  .journey-list li {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .journey-list li > span {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .language-strip {
    padding: 10px 14px;
  }

  .language-buttons {
    gap: 6px;
  }

  .section {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .course-grid {
    gap: 12px;
  }

  .course-visual {
    min-height: 76px;
    padding: 14px;
  }

  .course-body {
    padding: 16px;
  }

  .course-meta {
    gap: 6px;
    margin-bottom: 10px;
  }

  .course-meta span,
  .course-visual span {
    padding: 5px 7px;
    font-size: 11px;
  }

  .course-actions {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-toolbar {
    gap: 10px;
    padding: 14px;
  }

  .calendar-toolbar strong {
    font-size: 18px;
  }

  .schedule-day h3,
  .schedule-day-list,
  .schedule-item {
    padding: 10px;
  }

  .schedule-item {
    min-height: 118px;
  }

  .enrolment-shell {
    gap: 12px;
  }

  .step-tabs {
    gap: 5px;
    padding: 5px;
  }

  input,
  select,
  textarea {
    padding: 10px 11px;
  }

  .checkbox-line {
    padding: 9px 10px;
  }

  dialog {
    width: min(100vw - 18px, 860px);
    max-height: calc(100vh - 18px);
  }
}

@media (max-width: 380px) {
  .gate-copy h1,
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 25px;
  }

  .course-actions {
    grid-template-columns: 1fr;
  }

  nav a,
  .header-cta,
  .header-logout,
  .primary,
  .secondary,
  .filter,
  .language-strip button,
  .recommendation-actions button,
  .course-body button,
  .schedule-item button,
  .step-tabs button {
    min-height: 36px;
    padding: 7px 9px;
  }
}
