:root {
  --navy: #071b4a;
  --blue: #1a3580;
  --gold: #d4a017;
  --gold-light: #ffd95a;
  --red: #aa1515;
  --white: #ffffff;
  --off: #f4f6fb;
  --text: #1a1f2e;
  --muted: #5a6280;
  --line: #d0d8e8;
  --radius: 10px;
}

/* 2026 public site rebuild */
.public-site {
  --ink: #081738;
  --navy: #071b4a;
  --blue: #123b93;
  --royal: #1d4fb8;
  --gold: #f6bf2f;
  --gold-soft: #ffd86b;
  --paper: #f4f7fc;
  --white: #fff;
  --muted: #66728c;
  --line: rgba(8, 23, 56, 0.14);
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

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

.public-site h1,
.public-site h2,
.public-site h3,
.brand-lockup strong,
.package-price { font-family: "Barlow Condensed", Impact, sans-serif; letter-spacing: 0; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 9px clamp(22px, 5vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 27, 74, 0.96);
  backdrop-filter: blur(18px);
}

.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 250px; color: white; text-decoration: none; }
.brand-lockup img { width: 76px; height: 60px; object-fit: contain; }
.brand-lockup span { display: grid; line-height: 1; }
.brand-lockup strong { font-size: 1.35rem; font-weight: 800; }
.brand-lockup small { margin-top: 6px; color: var(--gold); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.public-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 2.5vw, 34px); }
.public-nav > a { color: rgba(255,255,255,.78); font-size: .88rem; font-weight: 700; text-decoration: none; }
.public-nav > a:hover { color: white; }
.menu-button { display: none; color: white; font-size: 1.5rem; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy) !important; box-shadow: 0 10px 26px rgba(246,191,47,.18); }
.button-gold:hover { background: var(--gold-soft); }
.button-navy { background: var(--navy); color: white; }
.button-outline { border-color: rgba(255,255,255,.45); color: white; }
.button-outline:hover { border-color: white; background: rgba(255,255,255,.08); }
.nav-action { min-height: 42px; padding-inline: 18px; }
.full-width { width: 100%; }

.announcement { padding: 13px 5vw; background: var(--gold); color: var(--navy); text-align: center; }
.announcement strong { margin-right: 10px; }

.public-site .hero {
  isolation: isolate;
  position: relative;
  min-height: min(760px, calc(100vh - 82px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 112px) clamp(86px, 10vw, 150px);
  background: radial-gradient(circle at 78% 42%, #204fa7 0, #102f76 29%, #071b4a 66%);
  overflow: hidden;
}
.public-site .hero::before { content: ""; position: absolute; z-index: -2; inset: auto -8% -42% 42%; height: 78%; border: 54px solid rgba(255,255,255,.06); border-radius: 50% 50% 0 0; transform: rotate(-12deg); }
.road-lines { position: absolute; z-index: -1; left: -10%; right: -10%; bottom: 0; height: 8px; background: var(--gold); transform: rotate(-2deg); transform-origin: left; }
.road-lines::after { content: ""; position: absolute; top: 22px; left: 8%; width: 62%; height: 5px; background: repeating-linear-gradient(90deg, white 0 80px, transparent 80px 145px); opacity: .25; }
.hero-copy { max-width: 700px; }
.kicker { margin-bottom: 15px; color: var(--gold); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.public-site .hero h1 { max-width: 680px; margin-bottom: 22px; color: white; font-size: clamp(3.4rem, 7vw, 6.5rem); font-weight: 800; line-height: .92; }
.hero-lead { max-width: 590px; margin-bottom: 34px; color: rgba(255,255,255,.75); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.approval { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: .86rem; font-weight: 700; }
.approval > span:first-child { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); }
.hero-mark { display: grid; justify-items: center; }
.hero-mark > img { width: min(100%, 560px); filter: drop-shadow(0 34px 32px rgba(0,0,0,.38)); }
.service-stamp { margin-top: -20px; min-width: min(390px, 90%); padding: 15px 22px; display: flex; justify-content: space-between; gap: 20px; border-left: 4px solid var(--gold); background: rgba(4,17,49,.72); color: white; backdrop-filter: blur(10px); }
.service-stamp strong { font-size: .84rem; }
.service-stamp span { color: rgba(255,255,255,.58); font-size: .72rem; }

.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 clamp(24px,7vw,112px); background: #0b245b; color: white; }
.trust-band div { min-height: 112px; padding: 26px clamp(18px,3vw,42px); display: grid; align-content: center; border-left: 1px solid rgba(255,255,255,.1); }
.trust-band div:last-child { border-right: 1px solid rgba(255,255,255,.1); }
.trust-band strong { color: var(--gold); font-size: .77rem; letter-spacing: .13em; text-transform: uppercase; }
.trust-band span { margin-top: 6px; font-size: .9rem; }

.public-site .section { padding: clamp(78px, 9vw, 130px) clamp(24px, 7vw, 112px); }
.section-heading { max-width: 1280px; margin: 0 auto 54px; display: grid; grid-template-columns: 1fr minmax(320px, .65fr); align-items: end; gap: 60px; }
.section-heading.compact { display: block; }
.section-heading h2,
.session h2,
.learning h2,
.contact h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 800; line-height: .98; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.75; }

.programs { background: #eef3fb; }
.package-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.package-card { position: relative; display: flex; flex-direction: column; min-height: 620px; padding: clamp(30px, 4vw, 52px); border: 1px solid rgba(7,27,74,.13); border-top: 7px solid var(--royal); border-radius: 6px; background: white; box-shadow: 0 24px 60px rgba(7,27,74,.07); }
.package-card.featured { border-top-color: var(--gold); background: var(--navy); color: white; }
.package-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.package-top span { padding: 6px 10px; border-radius: 3px; background: #e7eefb; color: var(--blue); font-size: .69rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.featured .package-top span { background: var(--gold); color: var(--navy); }
.package-top b { color: rgba(18,59,147,.17); font: 800 2rem/1 "Barlow Condensed", sans-serif; }
.featured .package-top b { color: rgba(255,255,255,.15); }
.package-card h3 { margin-bottom: 8px; color: var(--navy); font-size: clamp(2rem, 3vw, 3.1rem); line-height: 1; }
.package-card.featured h3 { color: white; }
.package-price { margin-bottom: 24px; color: var(--royal); font-size: 3rem; font-weight: 800; }
.featured .package-price { color: var(--gold); }
.package-description { max-width: 540px; color: var(--muted); line-height: 1.7; }
.featured .package-description { color: rgba(255,255,255,.66); }
.package-card ul { margin: 24px 0 34px; padding: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 24px; border-top: 1px solid var(--line); list-style: none; }
.featured ul { border-color: rgba(255,255,255,.13); }
.package-card li { position: relative; padding-left: 22px; font-size: .87rem; }
.package-card li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.package-card .button { align-self: flex-start; margin-top: auto; }

.session { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px,8vw,120px); align-items: center; background: var(--navy); color: white; }
.session h2 { color: white; }
.session-copy > p:not(.kicker) { max-width: 570px; margin: 22px 0 28px; color: rgba(255,255,255,.65); line-height: 1.75; }
.location-line { margin-bottom: 30px; padding-left: 18px; display: grid; border-left: 3px solid var(--gold); }
.location-line span { color: var(--gold); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.location-line strong { margin-top: 4px; font-size: .9rem; }
.date-panel { padding: clamp(28px,4vw,46px); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: #0c285f; }
.date-panel-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.13); }
.date-panel-head span { font-weight: 800; }
.date-panel-head small { color: rgba(255,255,255,.48); }
.session-dates { display: grid; margin: 8px 0; }
.session-dates article { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.session-dates span { font: 700 1.45rem/1 "Barlow Condensed", sans-serif; }
.session-dates small { color: var(--gold); }
.date-panel > p { margin: 18px 0 0; color: rgba(255,255,255,.48); font-size: .78rem; }

.journey { background: white; }
.journey-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.journey-grid article { min-height: 320px; padding: 45px clamp(24px,4vw,54px); border-right: 1px solid var(--line); }
.journey-grid article:first-child { border-left: 1px solid var(--line); }
.journey-grid b { color: var(--gold); font: 800 1.4rem/1 "Barlow Condensed", sans-serif; }
.journey-grid h3 { margin: 70px 0 12px; color: var(--navy); font-size: 1.65rem; }
.journey-grid p { color: var(--muted); line-height: 1.7; }

.learning { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px,8vw,120px); align-items: center; background: #e9eff9; }
.learning-intro > p:last-child { margin-top: 22px; color: var(--muted); line-height: 1.75; }
.skill-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.skill-list span { min-height: 64px; display: flex; align-items: center; padding: 0 18px 0 32px; border-bottom: 1px solid rgba(7,27,74,.13); color: var(--navy); font-weight: 700; }
.skill-list span::before { content: ""; width: 7px; height: 7px; margin-right: 14px; border-radius: 50%; background: var(--gold); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px,8vw,120px); background: #0a2051; color: white; }
.contact h2 { color: white; }
.contact-copy > p:not(.kicker) { margin: 24px 0 38px; color: rgba(255,255,255,.63); line-height: 1.75; }
.contact dl { margin: 0; display: grid; gap: 18px; }
.contact dl div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.contact dt { color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact dd { margin: 0; overflow-wrap: anywhere; }
.contact dd a { color: white; text-decoration: none; }
.enrollment-form { display: grid; gap: 17px; padding: clamp(28px,4vw,48px); border-radius: 6px; background: white; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.form-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 8px; }
.form-heading span { color: var(--navy); font: 800 1.7rem/1 "Barlow Condensed", sans-serif; }
.form-heading small { color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.enrollment-form label { display: grid; gap: 7px; color: var(--navy); font-size: .78rem; font-weight: 800; }
.enrollment-form input,
.enrollment-form select,
.enrollment-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd4e3; border-radius: 4px; background: #fbfcff; color: var(--ink); outline: none; }
.enrollment-form input:focus,
.enrollment-form select:focus,
.enrollment-form textarea:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29,79,184,.12); }
.date-selector { margin: 0; padding: 16px; border: 1px solid #dbe2ee; border-radius: 4px; }
.date-selector legend { padding: 0 6px; color: var(--navy); font-size: .76rem; font-weight: 800; }
.date-choice { grid-template-columns: auto 1fr !important; align-items: center; padding: 10px 0; }
.date-choice input { width: auto; }
.date-choice span { display: grid; }
.date-choice small { color: var(--muted); font-weight: 500; }
.form-status { min-height: 22px; margin: 0; color: var(--blue); font-size: .82rem; font-weight: 700; }

.public-footer { min-height: 170px; padding: 38px clamp(24px,7vw,112px); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; border-top: 1px solid rgba(255,255,255,.1); background: #041231; color: rgba(255,255,255,.55); font-size: .8rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; }
.footer-brand img { width: 70px; height: 58px; object-fit: contain; }
.footer-brand div { display: grid; }
.footer-brand strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.2rem; }
.footer-brand span { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.public-footer p { margin: 0; }

@media (max-width: 980px) {
  .public-header { min-height: 72px; }
  .brand-lockup img { width: 62px; height: 52px; }
  .menu-button { display: block; }
  .public-nav { position: absolute; inset: 72px 0 auto; display: none; align-items: stretch; padding: 24px; background: var(--navy); box-shadow: 0 20px 30px rgba(0,0,0,.25); }
  .public-nav.open { display: grid; }
  .public-nav a { min-height: 42px; display: flex; align-items: center; }
  .public-site .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; }
  .hero-mark { order: -1; }
  .hero-mark > img { width: min(70vw, 420px); }
  .public-site .hero h1 { font-size: clamp(3.2rem, 11vw, 5.3rem); }
  .session, .learning, .contact { grid-template-columns: 1fr; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .public-footer { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 680px) {
  .brand-lockup { min-width: 0; }
  .brand-lockup span { display: none; }
  .trust-band { grid-template-columns: 1fr; padding-inline: 24px; }
  .trust-band div, .trust-band div:last-child { min-height: 92px; border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .package-grid, .journey-grid, .field-row { grid-template-columns: 1fr; }
  .package-card { min-height: auto; }
  .package-card ul, .skill-list { grid-template-columns: 1fr; }
  .journey-grid article, .journey-grid article:first-child { min-height: auto; border-left: 0; border-right: 0; }
  .journey-grid h3 { margin-top: 34px; }
  .date-panel-head, .session-dates article, .form-heading { align-items: flex-start; flex-direction: column; }
  .contact dl div { grid-template-columns: 1fr; gap: 3px; }
  .service-stamp { min-width: 100%; flex-direction: column; gap: 4px; }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 5vw;
  background: rgba(7, 27, 74, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.nav-logo img {
  width: auto;
  height: 48px;
  display: block;
  flex-shrink: 0;
}

.nav-brand {
  display: block;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
}

.nav-brand small {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700 !important;
}

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.site-alert {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 5vw;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

.portal-shell {
  min-height: calc(100vh - 72px);
  padding: 40px 5vw 72px;
  background:
    linear-gradient(180deg, #0b2057 0, #0b2057 220px, var(--off) 220px, var(--off) 100%);
}

.admin-shell {
  background:
    linear-gradient(180deg, #0b2057 0, #0b2057 260px, var(--off) 260px, var(--off) 100%);
}

.login-card,
.dashboard {
  max-width: 1180px;
  margin: 0 auto;
}

.login-card {
  max-width: 460px;
  padding: 32px 28px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(7, 27, 74, 0.16);
}

.login-card h1,
.portal-heading h1,
.lesson-panel h2,
.admin-table-wrap h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: var(--navy);
}

.login-card p,
.portal-heading p {
  margin: 0 0 16px;
  color: var(--muted);
}

.login-card form,
.stack-form,
.manual-user-form,
.site-editor-form {
  display: grid;
  gap: 14px;
}

.login-card label,
.stack-form label,
.manual-user-form label,
.site-editor-form label,
.admin-inline-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
}

.login-card input,
.stack-form input,
.manual-user-form input,
.site-editor-form input,
.site-editor-form textarea,
.admin-inline-form input,
.admin-inline-form textarea,
.site-editor-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  outline: none;
}

.login-card input:focus,
.stack-form input:focus,
.manual-user-form input:focus,
.site-editor-form input:focus,
.site-editor-form textarea:focus,
.site-editor-form select:focus,
.admin-inline-form input:focus,
.admin-inline-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 53, 128, 0.12);
}

.portal-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.portal-heading h1 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.portal-heading .eyebrow {
  color: var(--gold-light);
}

.portal-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.portal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.portal-summary > div,
.lesson-panel,
.admin-table-wrap {
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 27, 74, 0.08);
}

.portal-summary > div {
  padding: 18px 20px;
}

.portal-summary small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.portal-summary strong {
  color: var(--navy);
  font-size: 1.4rem;
}

.admin-grid,
.form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lesson-panel,
.admin-table-wrap {
  padding: 24px;
  margin-bottom: 22px;
}

.lesson-panel h2,
.admin-table-wrap h2 {
  font-size: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--navy);
}

.button.secondary {
  background: var(--navy);
  color: var(--white);
}

.button.ghost {
  border-color: var(--line);
  color: var(--navy);
  background: transparent;
}

.button.full {
  width: 100%;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid #e6ebf4;
}

.admin-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.admin-row-copy strong,
.admin-row-copy span,
.admin-row-copy small {
  display: block;
}

.admin-row-copy strong {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 1rem;
}

.admin-row-copy span {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-row-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-inline-form .row-actions {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
  padding: 0;
  margin: 0;
}

.site-editor-form fieldset {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe3f1;
  border-radius: 12px;
}

.site-editor-form legend {
  padding: 0 8px;
  color: var(--navy);
  font-weight: 800;
}

.site-editor-form textarea {
  resize: vertical;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.course-card {
  padding: 22px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 27, 74, 0.08);
}

.course-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.course-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
}

.module-list.inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.module {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--off);
  color: var(--navy);
  font-weight: 700;
}

.module.active {
  background: var(--navy);
  color: var(--white);
}

.module.locked,
.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(88vh - 72px);
  padding: 80px 5vw;
  background: linear-gradient(135deg, var(--navy) 0%, #102060 60%, #1a3580 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 45%, rgba(212, 160, 23, 0.07) 45.5%, rgba(212, 160, 23, 0.07) 46.5%, transparent 47%),
    linear-gradient(160deg, transparent 50%, rgba(255, 255, 255, 0.04) 50.3%, rgba(255, 255, 255, 0.04) 51%, transparent 51.3%),
    linear-gradient(160deg, transparent 55%, rgba(212, 160, 23, 0.05) 55.3%, rgba(212, 160, 23, 0.05) 56%, transparent 56.3%);
  pointer-events: none;
}

.hero-inner,
.section-inner,
.services-bar-inner,
.poster-inner,
.footer-inner,
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow,
.eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  max-width: 440px;
  margin: 0 0 36px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.hero-tag {
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary,
.btn-ghost,
.btn-white,
.btn-outline-white,
.program-link,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-white:hover,
.btn-outline-white:hover,
.program-link:hover,
.form-submit:hover {
  transform: translateY(-1px);
}

.btn-primary {
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-ghost {
  padding: 13px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-wrap img {
  width: min(420px, 90%);
  display: block;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.services-bar {
  background: var(--red);
  padding: 0 5vw;
}

.services-bar-inner {
  display: flex;
  align-items: stretch;
}

.service-bar-item {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.service-bar-item:last-child {
  border-right: 0;
}

.service-bar-mark {
  color: var(--gold-light);
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.service-bar-item h2 {
  margin: 0 0 2px;
  font-size: 0.94rem;
  font-weight: 700;
}

.service-bar-item p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.78;
}

.section {
  padding: 90px 5vw;
}

.section-light {
  background: var(--off);
}

.section-title {
  margin: 0 0 16px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.section-title-light {
  color: var(--white);
}

.section-sub {
  max-width: 520px;
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 1rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 2px 20px rgba(7, 27, 74, 0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(7, 27, 74, 0.13);
}

.program-badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.program-card p {
  flex: 1;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.program-link {
  align-self: flex-start;
  gap: 6px;
  padding: 0;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}

.program-link::after {
  content: "→";
  transition: transform 0.2s;
}

.program-link:hover::after {
  transform: translateX(4px);
}

.poster-section {
  padding: 80px 5vw;
  background: var(--navy);
}

.poster-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.poster-text p {
  max-width: 400px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.65);
}

.poster-img-wrap {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(1.5deg);
  transition: transform 0.3s;
}

.poster-img-wrap:hover {
  transform: rotate(0) scale(1.02);
}

.poster-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.process-title,
.faq-title {
  margin-bottom: 56px;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: center;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.step h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.mid-cta {
  padding: 64px 5vw;
  background: linear-gradient(135deg, var(--red) 0%, #8a0e0e 100%);
  text-align: center;
}

.mid-cta h2 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
}

.mid-cta p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.7);
}

.mid-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  padding: 13px 28px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
}

.btn-outline-white {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-weight: 600;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.faq-item {
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 8px rgba(7, 27, 74, 0.05);
}

.faq-item h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin: 0 0 12px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
}

.contact-info > p {
  margin: 0 0 32px;
  color: var(--muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-detail-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.contact-detail-text a,
.contact-detail-text span {
  color: var(--navy);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-form {
  padding: 36px 32px;
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: var(--off);
}

.contact-form h3 {
  margin: 0 0 24px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

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

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 53, 128, 0.1);
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-submit:hover {
  background: var(--blue);
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.site-footer {
  padding: 48px 5vw 28px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
}

.footer-brand-name {
  margin-top: 8px;
  font-family: "Barlow Condensed", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand-name span {
  color: var(--gold);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 980px) {
  .portal-summary,
  .progress-grid,
  .admin-grid,
  .form-split,
  .admin-row,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .poster-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-wrap {
    order: -1;
  }

  .hero-logo-wrap img {
    width: 240px;
  }

  .programs-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .steps::before {
    display: none;
  }

  .services-bar-inner {
    flex-direction: column;
  }

  .service-bar-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .service-bar-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .nav-phone {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .steps,
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-brand {
    font-size: 1rem;
  }

  .nav-brand small {
    font-size: 0.64rem;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .contact-form {
    padding: 28px 22px;
  }
}

.login-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.login-options button, .auth-back { min-height: 42px; color: var(--blue); font-weight: 800; }
.auth-back { width: 100%; margin-top: 14px; }
.section-spacer { margin-top: 38px; }
.activity-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e3e9f2; }
.activity-row div { display: grid; gap: 3px; }
.activity-row strong { color: var(--navy); text-transform: capitalize; }
.activity-row span, .activity-row time { color: var(--muted); font-size: .76rem; }
@media (max-width: 560px) { .login-options { grid-template-columns: 1fr; } .activity-row { flex-direction: column; gap: 5px; } }

/* Admin workspace and mobile editing */
.admin-body { background: #edf2fa; }
.admin-body .site-header { position: sticky; top: 0; z-index: 40; }
.admin-body .portal-shell { width: min(1440px, 100%); padding: 38px clamp(18px, 4vw, 58px) 90px; }
.admin-body .portal-heading { align-items: flex-end; }
.admin-body .portal-heading h1 { margin-bottom: 7px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.admin-tabs { position: sticky; top: 72px; z-index: 30; display: flex; gap: 6px; margin: 24px 0; padding: 7px; overflow-x: auto; border: 1px solid #d7e0ee; border-radius: 8px; background: rgba(255,255,255,.96); box-shadow: 0 12px 30px rgba(7,27,74,.08); }
.admin-tabs button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 5px; color: #52617c; font-weight: 800; }
.admin-tabs button.active { background: var(--navy); color: white; }
.admin-panel { animation: admin-panel-in .18s ease; }
@keyframes admin-panel-in { from { opacity: 0; transform: translateY(5px); } }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.panel-heading h2 { margin: 0 0 5px; }
.panel-heading p { margin: 0; color: var(--muted); }
.admin-body .lesson-panel,
.admin-body .admin-table-wrap { border: 1px solid #dbe3f0; border-radius: 8px; background: white; box-shadow: 0 16px 45px rgba(7,27,74,.06); }
.admin-body .site-editor-form { display: grid; gap: 22px; }
.admin-body .site-editor-form fieldset { display: grid; gap: 14px; border-radius: 7px; background: #fbfcff; }
.admin-body .site-editor-form label,
.admin-body .stack-form label,
.admin-body .manual-user-form label,
.admin-body .admin-inline-form label { color: var(--navy); font-size: .78rem; font-weight: 800; }
.admin-body input,
.admin-body select,
.admin-body textarea { min-height: 46px; border-radius: 5px; }
.admin-body textarea { min-height: 96px; }
.editor-actions { position: sticky; z-index: 20; bottom: 12px; display: flex; justify-content: flex-end; padding: 12px; border: 1px solid #d6dfed; border-radius: 7px; background: rgba(255,255,255,.96); box-shadow: 0 -8px 28px rgba(7,27,74,.12); backdrop-filter: blur(12px); }
.editor-actions .button.primary { min-width: 260px; background: var(--gold); color: var(--navy); }
.editor-actions .button.primary:disabled { cursor: wait; opacity: .72; }
.site-tool-nav { display: flex; gap: 6px; padding: 6px; overflow-x: auto; border: 1px solid #d7e0ee; border-radius: 7px; background: #f2f5fa; }
.site-tool-nav button { flex: 0 0 auto; min-height: 42px; padding: 0 16px; border-radius: 5px; color: #52617c; font-weight: 800; }
.site-tool-nav button.active { background: var(--blue); color: white; box-shadow: 0 5px 14px rgba(16,56,139,.2); }
.site-tool-panel { display: grid; gap: 16px; min-width: 0; }
.publish-status { display: flex; align-items: center; gap: 12px; margin: -6px 0 0; padding: 13px 15px; border: 1px solid #d6dfed; border-radius: 6px; background: #f5f8fc; color: #47556e; }
.publish-status .status-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: #74829a; }
.publish-status div { display: grid; gap: 2px; }
.publish-status strong { color: var(--navy); font-size: .84rem; }
.publish-status small { font-size: .72rem; font-weight: 600; line-height: 1.4; }
.publish-status.is-saved { border-color: #b8dcc8; background: #f0faf4; }
.publish-status.is-saved .status-dot { background: #278251; }
.publish-status.is-dirty { border-color: #e8cb79; background: #fff9e8; }
.publish-status.is-dirty .status-dot { background: #ca8b00; }
.publish-status.is-saving { border-color: #b9caee; background: #f1f5ff; }
.publish-status.is-saving .status-dot { background: var(--blue); }
.publish-status.is-error { border-color: #e8b6b6; background: #fff2f2; }
.publish-status.is-error .status-dot { background: #bd2727; }
.tool-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.tool-intro h3, .tool-intro p { margin: 0; }
.tool-intro p { margin-top: 4px; color: var(--muted); font-size: .82rem; }
.compact-fields { align-items: end; }
.admin-body label small { display: block; margin-top: 6px; color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.45; }
.package-editor legend { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; }
.visibility-label { padding: 5px 8px; border-radius: 4px; background: #edf1f7; color: #67738a; font-size: .66rem; font-style: normal; letter-spacing: 0; text-transform: uppercase; }
.visibility-label.is-visible { background: #e8f7ef; color: #247248; }
.option-group { display: grid; gap: 9px; padding: 13px; border: 1px solid #dde5f0; border-radius: 6px; background: white; }
.advanced-options { padding: 12px 14px; border: 1px solid #dce4ef; border-radius: 6px; background: white; }
.advanced-options summary { cursor: pointer; color: var(--blue); font-size: .76rem; font-weight: 800; }
.advanced-options[open] { display: grid; gap: 14px; }
.advanced-options[open] summary { margin-bottom: 2px; }
.date-manager-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 4px; }
.date-manager-heading > div { display: grid; gap: 3px; }
.date-manager-heading strong { color: var(--navy); font-size: .83rem; }
.date-manager-heading small { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.class-date-editors { display: grid; gap: 10px; }
.class-date-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(240px, 1.3fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #dce4ef; border-radius: 6px; background: white; }
.icon-text-button { min-height: 46px; padding: 0 14px; border: 1px solid #e0bcbc; border-radius: 5px; color: #9a2323; font-weight: 800; }
.editor-empty { display: grid; gap: 4px; padding: 20px; border: 1px dashed #cbd6e6; border-radius: 6px; background: #f8faff; color: var(--muted); font-size: .78rem; }
.editor-empty strong { color: var(--navy); }
.compact-button { justify-self: start; }
.danger-zone { padding: 12px 14px; border: 1px solid #e1d2d2; border-radius: 6px; background: #fffafa; }
.danger-zone summary { cursor: pointer; color: #8b3434; font-size: .76rem; font-weight: 800; }
.danger-zone p { color: var(--muted); font-size: .76rem; }

@media (max-width: 760px) {
  .admin-body .site-header { justify-content: space-between; padding: 8px 16px; }
  .admin-body .site-header .nav-links { display: none; }
  .admin-body .nav-brand { font-size: .95rem; }
  .admin-body .nav-brand small { display: none; }
  .admin-body .header-call { min-height: 40px; }
  .admin-body .portal-shell { padding: 22px 14px 100px; }
  .admin-body .portal-heading { display: grid; align-items: start; }
  .admin-body .portal-heading .button { width: 100%; }
  .admin-body .portal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; }
  .admin-body .portal-summary > div { min-width: 0; padding: 16px 12px; }
  .admin-body .portal-summary strong { font-size: 1.15rem; overflow-wrap: anywhere; }
  .admin-tabs { top: 68px; margin-inline: -14px; padding-inline: 14px; border-right: 0; border-left: 0; border-radius: 0; }
  .admin-tabs button { min-height: 46px; padding-inline: 16px; }
  .admin-grid,
  .form-split,
  .admin-inline-form,
  .manual-user-form { grid-template-columns: 1fr; }
  .admin-body .lesson-panel,
  .admin-body .admin-table-wrap { padding: 20px 16px; }
  .panel-heading { display: grid; gap: 14px; }
  .panel-heading .button { width: 100%; }
  .admin-row { grid-template-columns: 1fr; gap: 14px; }
  .admin-row-copy span,
  .admin-row-copy small { overflow-wrap: anywhere; }
  .admin-inline-form .row-actions,
  .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .row-actions .button { width: 100%; min-height: 46px; padding-inline: 10px; }
  .editor-actions { bottom: 8px; grid-template-columns: 1fr 1fr; }
  .editor-actions .button.primary { width: 100%; min-width: 0; }
  .admin-body .site-editor-form fieldset { padding: 16px 12px; }
  .site-tool-nav { margin-inline: -4px; padding: 5px; }
  .site-tool-nav button { min-height: 46px; padding-inline: 14px; }
  .tool-intro { align-items: stretch; flex-direction: column; }
  .tool-intro .button { width: 100%; }
  .package-editor legend { align-items: flex-start; flex-direction: column; }
  .date-manager-heading { align-items: stretch; flex-direction: column; }
  .date-manager-heading .button { width: 100%; }
  .class-date-row { grid-template-columns: 1fr; }
  .icon-text-button { width: 100%; }
  .publish-status { align-items: flex-start; }
}

@media (max-width: 420px) {
  .admin-body .nav-logo img { height: 38px; }
  .admin-body .nav-brand { display: none; }
  .admin-body .portal-summary { grid-template-columns: 1fr 1fr; }
  .admin-inline-form .row-actions,
  .row-actions { grid-template-columns: 1fr; }
  .editor-actions { grid-template-columns: 1fr; }
  .editor-actions .button.primary { grid-column: auto; }
}

/* Student training portal */
.student-body { min-height: 100vh; background: linear-gradient(180deg, #071b4a 0 350px, #edf2fa 350px); }
.student-body .portal-shell { width: min(1320px, 100%); padding: 52px clamp(16px, 4vw, 56px) 90px; }
.login-card { border-radius: 8px; }
.login-logo { width: 150px; height: 115px; object-fit: contain; display: block; margin: -10px auto 20px; }
.student-heading { color: white; }
.student-heading h1 { color: white; font-size: clamp(2.8rem, 6vw, 5rem); }
.student-heading > div > p:last-child { color: rgba(255,255,255,.66); }
.student-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 24px; }
.student-metrics article { min-height: 155px; padding: 24px; border-radius: 8px; background: white; box-shadow: 0 18px 45px rgba(4,18,49,.13); }
.student-metrics small { display: block; margin-bottom: 14px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.student-metrics strong { display: block; color: var(--navy); font: 800 2rem/1 "Barlow Condensed", sans-serif; }
.student-metrics p { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.meter { height: 7px; margin-top: 22px; overflow: hidden; border-radius: 8px; background: #e5ebf5; }
.meter span { display: block; height: 100%; background: var(--gold); transition: width .3s ease; }
.student-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 22px; align-items: start; }
.student-layout .lesson-panel { border-radius: 8px; background: white; }
.learning-module-list { display: grid; }
.learning-module { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid #e4e9f2; }
.learning-module:last-child { border-bottom: 0; }
.learning-module > b { color: var(--gold); font: 800 1.35rem/1 "Barlow Condensed", sans-serif; }
.learning-module h3 { margin: 0 0 5px; color: var(--navy); font-size: 1rem; }
.learning-module p { margin: 0; color: var(--muted); font-size: .82rem; }
.module-state { padding: 6px 9px; border-radius: 4px; background: #edf1f7; color: #6a7488; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.module-state.done { background: #dff5e8; color: #17693a; }
.portal-slot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid #e4e9f2; }
.portal-slot div { display: grid; gap: 4px; }
.portal-slot strong { color: var(--navy); font-size: .9rem; }
.portal-slot span, .portal-slot small { color: var(--muted); font-size: .76rem; }
.portal-slot .button { min-height: 40px; }
.portal-slot .button:disabled { opacity: .45; cursor: not-allowed; }
.empty-state { padding: 22px 0; color: var(--muted); font-size: .86rem; }
.schedule-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 30px; padding: 18px; border-radius: 7px; background: #f4f7fb; }

@media (max-width: 900px) {
  .student-metrics, .student-layout { grid-template-columns: 1fr; }
  .schedule-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .student-body .portal-shell { padding-top: 28px; }
  .student-metrics { grid-template-columns: 1fr; }
  .student-metrics article { min-height: 130px; }
  .learning-module { grid-template-columns: 30px 1fr; }
  .module-state { grid-column: 2; justify-self: start; }
  .portal-slot { align-items: flex-start; flex-direction: column; }
  .portal-slot .button { width: 100%; }
  .schedule-form { grid-template-columns: 1fr; }
}
