/* NorthStar Digital Academy public website */
:root {
  --navy: #12365b;
  --navy-deep: #0a2949;
  --blue: #1f6fb2;
  --blue-bright: #2d8bd1;
  --sky: #eaf5ff;
  --sky-strong: #d9edff;
  --ice: #f6fbff;
  --white: #ffffff;
  --ink: #1a2a3a;
  --muted: #5c6d7e;
  --line: #d8e5f0;
  --success: #247a56;
  --warning: #8c6518;
  --shadow: 0 18px 50px rgba(18, 54, 91, 0.10);
  --shadow-soft: 0 8px 24px rgba(18, 54, 91, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 14px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(216,229,240,0.95);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-deep);
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-bright), var(--navy));
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(31,111,178,.22);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-copy { min-width: 0; line-height: 1.05; }
.brand-copy strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.brand-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--sky); }
.site-nav .portal-link {
  margin-left: 8px;
  padding: 0 16px;
  color: var(--white);
  background: var(--navy);
}
.site-nav .portal-link:hover { color: var(--white); background: var(--navy-deep); }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: var(--white);
}
.menu-button span, .menu-button::before, .menu-button::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.announcement {
  color: var(--white);
  background: linear-gradient(90deg, var(--navy-deep), var(--blue));
}
.announcement-inner {
  width: min(var(--max), calc(100% - 36px));
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
}
.announcement strong { color: #cfeeff; }
.announcement a { color: var(--white); font-weight: 800; text-underline-offset: 3px; }

main { overflow: clip; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }
.section { padding: 82px 0; }
.section-sm { padding: 58px 0; }
.section-blue { background: var(--ice); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { color: var(--white); background: linear-gradient(145deg, var(--navy-deep), var(--navy)); }
.section-navy .muted, .section-navy p { color: #d9e9f7; }
.section-navy a:not(.button) { color: #d8efff; }

.hero {
  position: relative;
  padding: 86px 0 76px;
  background:
    radial-gradient(circle at 90% 10%, rgba(45,139,209,.20), transparent 28rem),
    radial-gradient(circle at 8% 92%, rgba(31,111,178,.12), transparent 25rem),
    linear-gradient(180deg, #fafdff, #f3f9ff);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -170px auto;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(31,111,178,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(31,111,178,.035), 0 0 0 140px rgba(31,111,178,.02);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 11px;
  color: var(--blue);
  background: var(--sky);
  border: 1px solid #cfe6f8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-bright); }
.hero h1, .page-hero h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: .99;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--blue); }
.hero .lead { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 25px rgba(31,111,178,.22); }
.button-primary:hover { color: var(--white); background: var(--navy); }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); box-shadow: var(--shadow-soft); }
.button-secondary:hover { color: var(--navy-deep); border-color: #b9d4e8; }
.button-light { color: var(--navy-deep); background: var(--white); }
.button-light:hover { color: var(--navy-deep); background: #eef7ff; }

.hero-panel {
  position: relative;
  padding: 28px;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto auto;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(45,139,209,.14), rgba(18,54,91,.04));
  transform: rotate(12deg);
}
.panel-date { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.date-tile { width: 70px; flex: 0 0 70px; overflow: hidden; text-align: center; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.date-tile span { display: block; padding: 6px 4px; color: var(--white); background: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.date-tile strong { display: block; padding: 7px 4px 9px; color: var(--navy-deep); font-size: 28px; }
.panel-date h2 { margin: 0 0 5px; color: var(--navy-deep); font-size: 20px; }
.panel-date p { margin: 0; color: var(--muted); font-size: 14px; }
.timeline-mini { display: grid; gap: 13px; margin-top: 20px; }
.timeline-row { display: grid; grid-template-columns: 74px 1fr; gap: 13px; align-items: start; }
.timeline-row time { color: var(--blue); font-size: 12px; font-weight: 900; }
.timeline-row div { padding-bottom: 13px; border-bottom: 1px solid #edf2f6; }
.timeline-row:last-child div { padding-bottom: 0; border-bottom: 0; }
.timeline-row strong { display: block; color: var(--navy-deep); font-size: 14px; }
.timeline-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.stat-strip { position: relative; z-index: 2; margin-top: -30px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy); font-size: 27px; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker { display: block; margin-bottom: 9px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { margin: 0; color: var(--navy-deep); font-size: clamp(31px, 4vw, 49px); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-navy .section-kicker { color: #9bd4ff; }
.section-navy .section-head h2 { color: var(--white); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}
.card h3 { margin: 18px 0 8px; color: var(--navy-deep); font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card .text-link { display: inline-flex; margin-top: 17px; font-weight: 850; text-decoration: none; }
.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: var(--sky);
  border: 1px solid #d2e8f8;
  border-radius: 14px;
}
.icon-box svg { width: 25px; height: 25px; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card { display: flex; flex-direction: column; min-height: 100%; padding: 0; overflow: hidden; }
.program-top { min-height: 148px; padding: 26px; color: var(--white); background: linear-gradient(145deg, var(--blue), var(--navy)); }
.program-top.alt { background: linear-gradient(145deg, #317db9, #17466f); }
.program-top.light { color: var(--navy-deep); background: linear-gradient(145deg, #d7efff, #f5fbff); }
.program-label { display: inline-block; margin-bottom: 22px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.program-top.light .program-label { border-color: #b7d8ee; }
.program-top h3 { margin: 0; color: inherit; font-size: 27px; letter-spacing: -.03em; }
.program-body { display: flex; flex-direction: column; flex: 1; padding: 25px; }
.program-body p { color: var(--muted); line-height: 1.65; }
.check-list { margin: 17px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 10px 0; padding-left: 27px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 950; }
.program-body .text-link { margin-top: auto; padding-top: 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.content h2 { margin: 0 0 18px; color: var(--navy-deep); font-size: clamp(31px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.08; }
.content h3 { margin: 26px 0 9px; color: var(--navy-deep); font-size: 21px; }
.content p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.content ul { color: var(--muted); line-height: 1.7; }
.visual-panel { padding: 28px; background: linear-gradient(145deg, #edf7ff, #ffffff); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.flow-list { display: grid; gap: 13px; }
.flow-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.flow-number { width: 46px; height: 46px; display: grid; place-items: center; color: var(--white); background: var(--blue); border-radius: 13px; font-size: 14px; font-weight: 950; }
.flow-item h3 { margin: 1px 0 5px; color: var(--navy-deep); font-size: 16px; }
.flow-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.quote-panel { padding: 34px; color: var(--white); background: linear-gradient(145deg, var(--navy-deep), var(--blue)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.quote-panel blockquote { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.28; letter-spacing: -.025em; font-weight: 800; }
.quote-panel p { margin: 19px 0 0; color: #d7e9f7; }

.cta { padding: 60px 0; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; color: var(--white); background: linear-gradient(135deg, var(--navy-deep), var(--blue)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.cta-box h2 { margin: 0; font-size: clamp(29px, 4vw, 45px); letter-spacing: -.04em; }
.cta-box p { margin: 10px 0 0; color: #dcecf8; line-height: 1.6; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.page-hero { padding: 68px 0 58px; background: linear-gradient(180deg, #f7fbff, #eef7ff); border-bottom: 1px solid var(--line); }
.page-hero .breadcrumbs { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.page-hero .breadcrumbs a { color: var(--blue); text-decoration: none; font-weight: 750; }
.page-hero h1 { max-width: 900px; font-size: clamp(40px, 6vw, 66px); }
.page-hero p { max-width: 800px; margin: 20px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }

.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.value-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.value-card strong { display: block; color: var(--navy-deep); font-size: 18px; }
.value-card p { margin: 8px 0 0; font-size: 14px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.team-card { padding: 24px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.team-symbol { width: 52px; height: 52px; display: grid; place-items: center; color: var(--white); background: linear-gradient(145deg, var(--blue-bright), var(--navy)); border-radius: 16px; font-weight: 950; }
.team-card h3 { margin: 17px 0 7px; color: var(--navy-deep); font-size: 18px; }
.team-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.schedule-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.schedule-nav { position: sticky; top: 105px; padding: 20px; background: var(--ice); border: 1px solid var(--line); border-radius: var(--radius-md); }
.schedule-nav strong { display: block; margin-bottom: 10px; color: var(--navy-deep); }
.schedule-nav a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 750; }
.schedule-nav a:hover { background: var(--sky); }
.schedule-content { display: grid; gap: 34px; }
.schedule-block { scroll-margin-top: 110px; }
.schedule-block h2 { margin: 0 0 15px; color: var(--navy-deep); font-size: 31px; letter-spacing: -.03em; }
.schedule-block > p { color: var(--muted); line-height: 1.65; }
.schedule-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.schedule-table { width: 100%; min-width: 700px; border-collapse: collapse; background: var(--white); }
.schedule-table th, .schedule-table td { padding: 15px 17px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table th { color: var(--navy-deep); background: var(--sky); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child { width: 145px; color: var(--blue); font-weight: 900; white-space: nowrap; }
.schedule-table td strong { display: block; color: var(--navy-deep); }
.schedule-table td span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.note-box { padding: 18px 20px; color: var(--ink); background: #fffaf0; border: 1px solid #ead9af; border-radius: 14px; }
.note-box strong { color: var(--warning); }

.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.calendar-title { margin: 0; color: var(--navy-deep); font-size: 26px; }
.calendar-controls { display: flex; gap: 8px; }
.calendar-controls button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; color: var(--navy); background: var(--white); }
.calendar-controls button:hover { background: var(--sky); }
.calendar-shell { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays div { padding: 8px 5px 12px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.calendar-day { position: relative; min-height: 108px; padding: 9px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--white); }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #f9fbfd; color: #a5b0bb; }
.calendar-day.today { background: #f0f8ff; }
.calendar-day.has-event { background: #fbfdff; }
.day-number { display: inline-grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--navy-deep); font-size: 13px; font-weight: 850; }
.calendar-day.today .day-number { color: var(--white); background: var(--blue); }
.calendar-event { display: block; margin-top: 4px; padding: 5px 6px; overflow: hidden; color: var(--navy-deep); background: var(--sky); border-left: 3px solid var(--blue); border-radius: 6px; font-size: 10px; font-weight: 800; line-height: 1.25; }
.calendar-event.closed { color: #684913; background: #fff7e7; border-left-color: #c49237; }
.calendar-event.review { color: #225c45; background: #eaf8f1; border-left-color: #3a936d; }
.calendar-event.major { color: var(--white); background: var(--blue); border-left-color: var(--navy-deep); }
.calendar-list { display: grid; gap: 12px; margin-top: 26px; }
.event-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; align-items: center; padding: 17px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.event-row time { color: var(--blue); font-weight: 900; }
.event-row strong { display: block; color: var(--navy-deep); }
.event-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.event-tag { padding: 5px 8px; color: var(--navy); background: var(--sky); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.calendar-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.key-item { display: inline-flex; align-items: center; gap: 7px; }
.key-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.key-dot.closed { background: #c49237; }
.key-dot.review { background: #3a936d; }

.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.subject-card { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.subject-card h3 { margin: 0 0 7px; color: var(--navy-deep); }
.subject-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq-list summary { position: relative; padding: 19px 34px 19px 0; color: var(--navy-deep); font-weight: 850; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 15px; color: var(--blue); font-size: 25px; font-weight: 500; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: -3px 0 19px; color: var(--muted); line-height: 1.65; }

.site-footer { color: #d8e6f2; background: var(--navy-deep); }
.footer-main { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; padding: 52px 0 38px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 44px; }
.footer-brand .brand { color: var(--white); }
.footer-brand .brand-copy span { color: #9fb8cc; }
.footer-brand p { max-width: 450px; margin: 18px 0 0; color: #bcd0df; line-height: 1.65; }
.footer-col h2 { margin: 0 0 13px; color: var(--white); font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: 9px 0; color: #cbdce9; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); }
.footer-bottom-inner { width: min(var(--max), calc(100% - 36px)); min-height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #a9c0d2; font-size: 12px; }

@media (max-width: 1000px) {
  .site-nav a { padding: 0 8px; font-size: 13px; }
  .hero-grid { gap: 30px; }
  .card-grid, .program-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .schedule-layout { grid-template-columns: 1fr; }
  .schedule-nav { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .schedule-nav strong { width: 100%; }
}

@media (max-width: 820px) {
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 35px rgba(18,54,91,.15);
  }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 48px; padding: 0 14px; font-size: 15px; }
  .site-nav .portal-link { margin: 8px 0 0; }
  .hero { padding-top: 62px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-box { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .header-inner, .container, .announcement-inner, .footer-main, .footer-bottom-inner { width: min(100% - 24px, var(--max)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; max-height: calc(100vh - 70px); }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy span { font-size: 9px; }
  .announcement-inner { min-height: 50px; line-height: 1.4; }
  .hero { padding: 50px 0 54px; }
  .hero h1, .page-hero h1 { font-size: clamp(39px, 12vw, 54px); }
  .hero .lead, .page-hero p { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero-panel { padding: 20px; }
  .section { padding: 60px 0; }
  .section-sm { padding: 44px 0; }
  .card-grid, .program-grid, .value-grid, .team-grid, .subject-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom-inner { padding: 18px 0; align-items: flex-start; flex-direction: column; }
  .calendar-shell { padding: 11px; }
  .calendar-weekdays div { font-size: 9px; }
  .calendar-day { min-height: 76px; padding: 4px; }
  .day-number { width: 24px; height: 24px; font-size: 11px; }
  .calendar-event { padding: 3px; font-size: 8px; border-left-width: 2px; }
  .event-row { grid-template-columns: 1fr; gap: 6px; }
  .event-tag { width: fit-content; }
  .cta-box { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .announcement, .site-footer, .hero-actions, .calendar-controls, .schedule-nav, .cta { display: none !important; }
  body { color: #000; background: #fff; }
  .page-hero, .section-blue, .hero { background: #fff; }
  .section, .page-hero { padding: 24px 0; }
  .calendar-shell, .schedule-table-wrap, .card { box-shadow: none; }
}
