:root {
  --navy: #102a43;
  --navy-deep: #071b2f;
  --ink: #1b293b;
  --muted: #667487;
  --gold: #ad8740;
  --gold-soft: #e7d9bb;
  --ivory: #f6f3eb;
  --paper: #fdfcf9;
  --white: #ffffff;
  --line: #dcd9d0;
  --line-strong: #c9c1b2;
  --danger: #9a3d49;
  --success: #27634d;
  --header-height: 88px;
  --shadow: 0 22px 65px rgba(16, 42, 67, .09);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: calc(var(--header-height) + 20px); overscroll-behavior-x: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-controlled-scroll { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--navy); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(173, 135, 64, .4); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 252, 249, .92);
  border-bottom: 1px solid rgba(16, 42, 67, .12);
  box-shadow: 0 8px 30px rgba(16, 42, 67, .035);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}
.wordmark { display: inline-flex; align-items: center; gap: 13px; color: var(--navy-deep); flex: 0 0 auto; }
.brand-seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(173, 135, 64, .32);
  background: var(--navy);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .88rem;
  letter-spacing: .08em;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-navigation, .section-links, .account-links { display: flex; align-items: center; }
.site-navigation { gap: 24px; margin-left: auto; }
.section-links { gap: clamp(15px, 2vw, 28px); }
.account-links { gap: 15px; padding-left: 24px; border-left: 1px solid var(--line); }
.site-navigation a, .link-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
  border: 0;
  background: none;
  padding: 10px 0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .045em;
  cursor: pointer;
}
.section-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transition: right .25s ease;
}
.section-links a:hover::after, .section-links a:focus-visible::after { right: 0; }
.section-links a[aria-current="page"] { color: var(--gold); }
.section-links a[aria-current="page"]::after { right: 0; }
.site-navigation a:hover, .link-button:hover { color: var(--gold); }
.site-navigation .nav-cta {
  padding: 10px 15px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
}
.site-navigation .nav-cta:hover { border-color: var(--gold); background: var(--gold); color: #fff; }
.inline { display: inline; margin: 0; }
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 19px; height: 1px; background: var(--navy); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.academic-hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 38%, rgba(173, 135, 64, .11), transparent 22%),
    linear-gradient(115deg, #fbfaf6 0%, #f5f1e8 56%, #edf1f2 100%);
}
.academic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: linear-gradient(rgba(16, 42, 67, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 42, 67, .12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent 4%, #000 62%, transparent 100%);
}
.hero-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(310px, .82fr);
  align-items: center;
  gap: clamp(52px, 9vw, 140px);
  padding-block: clamp(72px, 10vw, 132px);
}
.institution-line, .eyebrow {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.institution-line { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.institution-line span { width: 42px; height: 1px; background: var(--gold); }
.hero-copy h1 {
  max-width: 820px;
  margin-bottom: 28px;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 7.2vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .91;
}
.hero-copy h1 em { color: var(--gold); font-weight: 400; }
.lead { max-width: 660px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.02rem, 1.45vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 750;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--navy); color: #fff; }
.primary:hover { background: var(--gold); }
.secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, .55); color: var(--navy); }
.secondary:hover { border-color: var(--gold); color: var(--gold); }
.hero-emblem { min-height: 410px; display: grid; place-items: center; position: relative; }
.emblem-orbit {
  position: absolute;
  width: min(29vw, 380px);
  aspect-ratio: 1;
  border: 1px solid rgba(173, 135, 64, .5);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .2), 0 0 0 29px rgba(16, 42, 67, .08);
}
.emblem-orbit::before, .emblem-orbit::after { content: ""; position: absolute; background: rgba(16, 42, 67, .18); }
.emblem-orbit::before { width: 140%; height: 1px; left: -20%; top: 50%; }
.emblem-orbit::after { width: 1px; height: 140%; left: 50%; top: -20%; }
.emblem-core {
  width: 172px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 8px var(--navy), inset 0 0 0 9px var(--gold-soft), var(--shadow);
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.emblem-core span { font-family: Georgia, "Times New Roman", serif; font-size: 3rem; line-height: 1; letter-spacing: .05em; }
.emblem-core small { margin-top: 12px; color: var(--gold-soft); font-size: .62rem; letter-spacing: .24em; }
.hero-emblem > p { position: absolute; bottom: 28px; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.hero-index { display: flex; justify-content: space-between; padding-block: 18px; border-top: 1px solid rgba(16, 42, 67, .14); color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.academic-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(76px, 9vw, 122px) 0 110px;
  background:
    linear-gradient(rgba(16, 42, 67, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, .035) 1px, transparent 1px),
    linear-gradient(125deg, var(--paper), var(--ivory));
  background-size: 72px 72px, 72px 72px, auto;
}
.contact-page { background-color: #edf1f1; }
.page-title-grid { display: grid; grid-template-columns: 180px 1fr; gap: clamp(38px, 8vw, 120px); align-items: end; }
.page-number { padding-top: 13px; border-top: 1px solid var(--gold); }
.page-number span { color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.page-number p { margin: 10px 0 0; color: var(--muted); font-size: .66rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.page-title-grid .institution-line { margin-bottom: 22px; }
.page-title-grid h1 {
  margin: 0;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 10vw, 9rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .86;
}
.editorial-canvas {
  min-height: 52vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(68px, 9vw, 120px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.editorial-canvas span + span { border-left: 1px solid var(--line); }

.materials-page {
  --forest: #17493a;
  --forest-deep: #0a3327;
  --sage: #dce8df;
  --sage-pale: #edf3ec;
  --sand: #f4efe3;
  --copper: #bd8e59;
  min-height: calc(100vh - var(--header-height));
  padding-bottom: 110px;
  background: var(--sand);
}
.materials-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 118px) 0 112px;
  background:
    radial-gradient(circle at 86% 12%, rgba(220, 232, 223, .2), transparent 28%),
    linear-gradient(125deg, var(--forest-deep), var(--forest));
  color: #fff;
}
.materials-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .2) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to left, #000, transparent 85%);
  pointer-events: none;
}
.materials-heading { display: grid; grid-template-columns: 180px 1fr; gap: clamp(38px, 8vw, 120px); position: relative; z-index: 1; align-items: end; }
.materials-heading .page-number { border-color: var(--copper); }
.materials-heading .page-number span { color: #d7b17f; }
.materials-heading .page-number p { color: rgba(255, 255, 255, .62); }
.materials-kicker { margin-bottom: 20px; color: #d7b17f; font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.materials-heading h1 {
  margin-bottom: 20px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 10vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .85;
}
.materials-heading > div:last-child > p:last-child { max-width: 580px; margin: 0; color: rgba(255, 255, 255, .7); font-size: 1rem; }
.grade-workspace { position: relative; z-index: 2; margin-top: -42px; }
.grade-menu {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  padding: 14px;
  border: 1px solid rgba(10, 51, 39, .16);
  background: rgba(253, 252, 247, .97);
  box-shadow: 0 22px 60px rgba(10, 51, 39, .14);
}
.grade-menu a {
  min-height: 76px;
  display: grid;
  place-content: center;
  position: relative;
  text-align: center;
  border-right: 1px solid #d9ded7;
  color: var(--forest);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.grade-menu a:last-child { border-right: 0; }
.grade-menu a span { font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1; }
.grade-menu a small { margin-top: 6px; color: #718178; font-size: .6rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.grade-nvo-tag {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 3px 6px;
  border: 1px solid rgba(189, 142, 89, .55);
  background: #fffaf0;
  color: #8b6032;
  font-size: .54rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(10, 51, 39, .08);
}
.grade-menu a:hover { background: var(--sage-pale); transform: translateY(-2px); }
.grade-menu a[aria-current="true"] { background: var(--forest); color: #fff; box-shadow: inset 0 -3px 0 var(--copper); }
.grade-menu a[aria-current="true"] small { color: rgba(255, 255, 255, .68); }
.grade-menu a[aria-current="true"] .grade-nvo-tag { border-color: rgba(255, 255, 255, .36); background: var(--copper); color: #fff; }
.grade-content {
  scroll-margin-top: calc(var(--header-height) + 18px);
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(230px, .32fr) minmax(0, 1fr);
  margin-top: 34px;
  border: 1px solid rgba(10, 51, 39, .14);
  background: #fbfaf5;
}
.grade-content:focus { outline: none; }
.grade-content-heading { padding: 44px 36px; background: var(--sage-pale); border-right: 1px solid rgba(10, 51, 39, .12); }
.grade-content-heading h2 { color: var(--forest-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 500; letter-spacing: -.05em; }
.nvo-note {
  max-width: 250px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 51, 39, .16);
}
.nvo-note span {
  display: inline-flex;
  padding: 5px 9px;
  border: 1px solid rgba(189, 142, 89, .5);
  background: #fffaf0;
  color: #8b6032;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1;
}
.nvo-note p { margin: 10px 0 0; color: #435a50; font-size: .82rem; line-height: 1.55; }
.grade-material {
  align-self: center;
  max-width: 760px;
  padding: clamp(32px, 5vw, 58px);
}
.material-label {
  margin-bottom: 12px;
  color: var(--copper);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.grade-material h3 {
  margin-bottom: 14px;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 500;
  line-height: 1.04;
}
.grade-material > p:not(.material-label) {
  max-width: 660px;
  color: #41514a;
  font-size: 1rem;
}
.material-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
  gap: 18px;
  margin-top: 28px;
}
.material-notes,
.material-task {
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid rgba(10, 51, 39, .13);
  background: rgba(255, 255, 250, .62);
}
.material-notes {
  border-top: 3px solid rgba(40, 92, 73, .72);
}
.grade-material ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.grade-material li {
  position: relative;
  padding-left: 22px;
  color: var(--forest);
  font-weight: 750;
}
.grade-material li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--copper);
}
.material-task {
  border-top: 3px solid var(--copper);
  background: rgba(231, 217, 187, .18);
}
.material-task span,
.material-notes span {
  display: block;
  margin-bottom: 6px;
  color: var(--forest-deep);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.material-task p { margin: 0; color: #33443d; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line-strong); background: var(--paper); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
.footer-grid p { margin: 0; font-size: .78rem; }
.copyright { white-space: nowrap; }

.auth-section {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 70px 24px;
  background: linear-gradient(140deg, var(--ivory), #eef2f2);
}
.panel {
  width: min(490px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.panel h1 { margin-bottom: 6px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; color: var(--navy); font-size: .9rem; font-weight: 750; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #c9d0d5;
  border-radius: 3px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(173, 135, 64, .16); border-color: var(--gold); }
.message { padding: 12px 14px; border-left: 3px solid currentColor; background: #f2f4f5; }
.message.error { color: var(--danger); background: #fff1f2; }
.message.success { color: var(--success); background: #eef8f3; }
.message.info { color: var(--navy); background: #edf3f7; }
.optional, .hint { color: var(--muted); font-size: .82rem; font-weight: 500; }

.content-section { min-height: calc(100vh - var(--header-height)); padding: clamp(58px, 8vw, 100px) 0; background: #f7f7f4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.section-heading h1, .content-section > .wrap > h1 {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: .96;
}
.narrow-content { max-width: 840px; }
.admin-homework-grid { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); gap: 38px; align-items: start; }
.admin-homework-form, .profile-form { width: 100%; }
.admin-homework-form h2 { margin-bottom: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 500; }
.homework-list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.homework-list-toolbar h2 { margin-bottom: 0; }
.homework-filter { width: min(290px, 100%); }
.homework-filter label { display: block; margin-bottom: 6px; color: var(--navy); font-size: .78rem; font-weight: 750; }
.homework-filter > div { display: flex; gap: 8px; }
.homework-filter select { min-width: 0; flex: 1; min-height: 44px; border: 1px solid #c9d0d5; border-radius: 3px; padding: 8px 11px; background: #fff; color: var(--ink); font: inherit; }
.homework-filter .button { min-height: 44px; padding: 8px 13px; }
.homework-list { display: grid; gap: 16px; }
.homework-card { padding: 25px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; background: #fff; box-shadow: 0 10px 32px rgba(16, 42, 67, .045); }
.homework-card.is-complete { border-left-color: var(--success); background: #f7faf8; }
.homework-card h2, .homework-card h3 { margin-bottom: 10px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.homework-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: .82rem; }
.homework-meta strong { color: var(--gold); }
.homework-description { color: #39485b; white-space: normal; }
.homework-dates { margin-bottom: 0; color: var(--muted); font-size: .82rem; }
.homework-status { display: inline-flex; margin-bottom: 10px; padding: 4px 9px; background: #eaf0f4; color: var(--navy); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.homework-card.is-complete .homework-status { background: #e7f4ec; color: var(--success); }
.homework-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.homework-actions form { margin: 0; }
.homework-actions .button { min-height: 38px; padding: 7px 12px; font-size: .8rem; }
.danger-button { border-color: #e4c4c8; background: #fff; color: var(--danger); }
.empty-state { padding: 26px; border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, .7); color: var(--muted); }
.profile-grid { max-width: 650px; }

.admin-advice-grid, .profile-advice-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 38px; align-items: start; }
.admin-advice-grid > *, .profile-advice-grid > * { min-width: 0; }
.advice-form { width: 100%; }
.advice-form h2, .profile-advice-grid h2, .admin-advice-grid h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.9rem; font-weight: 500; }
.advice-form textarea { min-height: 110px; }
.advice-list { display: grid; gap: 22px; }
.advice-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; background: var(--white); overflow-wrap: anywhere; }
.advice-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.advice-meta h3 { margin-bottom: 6px; }
.advice-meta time, .advice-date { color: var(--success); font-size: .9rem; }
.advice-detail + .advice-detail { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.advice-detail h4 { margin: 0 0 7px; color: var(--navy); font-size: .9rem; }
.advice-detail p { margin-bottom: 0; }
.advice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.advice-actions form { margin: 0; }
.tasks-showcase { background: linear-gradient(135deg, var(--paper), var(--ivory)); }
.public-task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 44px; }
.public-task-card { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-top: 3px solid var(--success); background: var(--white); }
.public-task-card h2 { color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.public-task-card details { border-top: 1px solid var(--line); }
.public-task-card summary { min-height: 44px; padding-block: 10px; color: var(--success); font-weight: 700; cursor: pointer; }
.public-task-card details p { padding-block: 8px; }
.tasks-next-step { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-strong); }

.admin-articles-grid { display: grid; grid-template-columns: minmax(310px, .82fr) minmax(0, 1.18fr); gap: 38px; align-items: start; }
.article-form textarea[name="content"] { min-height: 290px; }
.article-media-fields { display: grid; gap: 16px; margin: 0; padding: 20px; border: 1px solid var(--line); background: #faf9f5; }
.article-media-fields legend { padding: 0 8px; color: var(--navy); font-size: .9rem; font-weight: 800; }
.article-media-fields input[type="file"] { padding: 10px; background: #fff; }
.article-admin-preview { width: 100%; max-height: 260px; object-fit: cover; border: 1px solid var(--line); }
.article-admin-list-image { width: 100%; max-height: 190px; margin: 4px 0 16px; object-fit: cover; }
.form .check-label { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 10px; }
.form .check-label input { width: 18px; min-height: 18px; accent-color: var(--success); }
.article-admin-list { display: grid; gap: 18px; }
.article-admin-card { padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 4px; background: var(--white); }
.article-admin-card h3 { margin-bottom: 9px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.article-admin-card p { margin-bottom: 10px; }
.article-admin-meta, .article-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .78rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.article-status { padding: 4px 8px; border: 1px solid var(--line); background: #f6f4ed; color: var(--muted); font-size: .68rem; }
.article-status-published { border-color: rgba(34, 126, 74, .24); background: #eaf6ef; color: var(--success); }
.articles-page, .article-page { --forest: #17493a; --copper: #bd8e59; }
.article-shell { margin-top: clamp(42px, 6vw, 74px); }
.article-category-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.article-category-heading p { display: grid; gap: 2px; margin: 0; }
.article-category-heading strong { color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.24rem; font-weight: 600; }
.article-category-heading span { color: var(--muted); font-size: .78rem; }
.article-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-category-nav a { min-height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.78); color: var(--forest); font-size: .78rem; font-weight: 800; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.article-category-nav a small { min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; border-left: 1px solid rgba(10, 51, 39, .15); color: var(--muted); font-size: .68rem; line-height: 1; }
.article-category-nav a:not([aria-current="page"]):hover, .article-category-nav a:not([aria-current="page"]):focus-visible { border-color: var(--gold); background: #fbf8ee; color: var(--navy-deep); transform: translateY(-2px); }
.article-category-nav a[aria-current="page"] { border-color: var(--forest); background: var(--forest); color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.article-category-nav a[aria-current="page"] small { border-left-color: rgba(255,255,255,.28); color: rgba(255,255,255,.82); }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.article-card { overflow: hidden; border: 1px solid rgba(10, 51, 39, .15); border-top: 3px solid var(--copper); background: rgba(255, 255, 250, .86); box-shadow: 0 16px 40px rgba(16, 42, 67, .045); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.article-card:hover { border-color: rgba(10, 51, 39, .3); box-shadow: 0 22px 54px rgba(16, 42, 67, .09); transform: translateY(-3px); }
.article-card-media { aspect-ratio: 5 / 2.6; display: block; overflow: hidden; border-bottom: 1px solid rgba(10, 51, 39, .12); background: #e9e7dd; }
.article-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.article-card:hover .article-card-media img { transform: scale(1.025); }
.article-card-fallback { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 24px 26px; background: linear-gradient(135deg, #17362c, #2f5b49 62%, #d5c17c); color: #fff; position: relative; }
.article-card-fallback::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 36px 36px; }
.article-card-fallback span, .article-card-fallback small { z-index: 1; }
.article-card-fallback span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.2rem); line-height: 1; }
.article-card-fallback small { max-width: 155px; color: rgba(255,255,255,.78); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-align: right; text-transform: uppercase; }
.article-card-copy { padding: clamp(24px, 3vw, 34px); }
.article-card h2 { margin: 14px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.2vw, 2.1rem); font-weight: 500; line-height: 1.12; }
.article-card h2 a { color: var(--navy-deep); text-decoration-color: transparent; transition: color .2s ease, text-decoration-color .2s ease; }
.article-card h2 a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.article-card p:not(.article-meta) { color: #41514a; }
.article-read-link { display: inline-flex; align-items: center; gap: 7px; color: var(--forest); font-weight: 850; }
.article-read-link span { transition: transform .2s ease; }
.article-read-link:hover span { transform: translateX(3px); }
.article-detail-shell { max-width: 1200px; }
.article-detail-header { max-width: 920px; }
.article-detail-shell h1 { margin: 22px 0; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 500; letter-spacing: -.05em; line-height: .98; }
.article-hero-image { margin: 42px 0 0; }
.article-hero-image img { width: 100%; max-height: 620px; display: block; object-fit: cover; border: 1px solid var(--line); }
.article-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: clamp(46px, 7vw, 92px); align-items: start; margin-top: 42px; }
.article-main-column { min-width: 0; }
.article-body { margin: 0; padding-top: 28px; border-top: 1px solid var(--line-strong); color: #33443d; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.88; }
.article-body p { margin-bottom: 1.25em; }
.article-meta a { color: var(--forest); }
.article-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-source-note { margin-top: 38px; padding: 24px 26px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: #f8f6ef; }
.article-source-note span:first-child, .related-kicker { color: var(--gold); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.article-source-note p { margin: 7px 0 9px; color: #41514a; }
.article-source-note a { color: var(--forest); font-weight: 800; }
.article-back-link { margin-top: 32px; }
.related-articles { position: sticky; top: calc(var(--header-height) + 28px); padding-top: 25px; border-top: 3px solid var(--gold); }
.related-articles > h2 { margin: 4px 0 22px; color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 500; }
.related-kicker { margin-bottom: 0; }
.related-article-list { display: grid; }
.related-article-card { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.related-article-card-no-image { grid-template-columns: 1fr; }
.related-article-card:first-child { padding-top: 0; border-top: 0; }
.related-article-card img { width: 82px; height: 70px; object-fit: cover; }
.related-article-card p { margin: 0 0 4px; color: var(--gold); font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.related-article-card h3 { margin: 0 0 5px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.related-article-card h3 a { color: var(--navy-deep); }
.related-article-card h3 a:hover { color: var(--forest); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.related-article-card time { color: var(--muted); font-size: .69rem; }

/* The extra public link needs space before the mobile menu takes over. */
@media (min-width: 921px) and (max-width: 1200px) {
  .public-view .brand-copy small { display: none; }
  .public-view .nav-shell { gap: 18px; }
  .public-view .site-navigation { gap: 10px; }
  .public-view .section-links { gap: 12px; }
  .public-view .account-links { padding-left: 12px; }
}

@media (max-width: 920px) {
  :root { --header-height: 76px; }
  .wrap { width: min(100% - 32px, 1200px); }
  .nav-shell { min-height: var(--header-height); }
  .brand-copy small { display: none; }
  .menu-toggle { display: flex; }
  .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line-strong);
    background: rgba(253, 252, 249, .985);
    box-shadow: 0 20px 35px rgba(16, 42, 67, .1);
  }
  .site-navigation.is-open { display: flex; }
  .section-links, .account-links { align-items: stretch; flex-direction: column; gap: 0; }
  .account-links { margin-top: 10px; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .site-navigation a, .link-button { width: 100%; min-height: 44px; display: flex; align-items: center; padding: 10px 4px; text-align: left; }
  .inline { display: block; }
  .site-navigation .nav-cta { justify-content: center; margin-top: 6px; padding-inline: 15px; }
  .hero-layout { grid-template-columns: 1fr; gap: 54px; }
  .hero-emblem { min-height: 350px; }
  .emblem-orbit { width: 310px; }
  .page-title-grid, .materials-heading { grid-template-columns: 125px 1fr; gap: 40px; }
  .grade-menu { grid-template-columns: repeat(3, 1fr); }
  .grade-menu a { border-right: 1px solid #d9ded7; border-bottom: 1px solid #d9ded7; }
  .grade-menu a:nth-child(3n) { border-right: 0; }
  .grade-menu a:nth-last-child(-n + 3) { border-bottom: 0; }
  .admin-homework-grid { grid-template-columns: 1fr; }
  .admin-advice-grid, .profile-advice-grid, .admin-articles-grid, .article-grid, .article-reading-layout { grid-template-columns: 1fr; }
  .related-articles { position: static; margin-top: 18px; }
  .related-article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}

@media (max-width: 620px) {
  .public-task-grid { grid-template-columns: 1fr; }
  .advice-actions, .advice-actions form { width: 100%; }
  .wrap { width: min(100% - 24px, 1200px); }
  .brand-seal { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.1rem; }
  .academic-hero { min-height: auto; }
  .academic-hero::before { background-size: 48px 48px; }
  .hero-layout { padding-block: 66px 52px; }
  .hero-copy h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
  .actions { display: grid; }
  .button { width: 100%; }
  .hero-emblem { min-height: 310px; }
  .emblem-orbit { width: 250px; }
  .emblem-core { width: 142px; }
  .emblem-core span { font-size: 2.5rem; }
  .hero-emblem > p { bottom: 8px; font-size: .56rem; }
  .hero-index { display: none; }
  .academic-page { padding: 68px 0 76px; background-size: 48px 48px, 48px 48px, auto; }
  .page-title-grid, .materials-heading { grid-template-columns: 1fr; gap: 34px; }
  .page-number { width: 125px; }
  .page-title-grid h1, .materials-heading h1 { font-size: clamp(3.65rem, 17vw, 5.5rem); }
  .editorial-canvas { min-height: 55vh; margin-top: 62px; }
  .materials-hero { padding: 66px 0 88px; }
  .materials-heading .page-number { order: 2; }
  .materials-heading > div:last-child { order: 1; }
  .grade-workspace { margin-top: -30px; }
  .grade-menu { padding: 8px; }
  .grade-menu a { min-height: 70px; }
  .grade-menu a span { font-size: 1.5rem; }
  .grade-content { min-height: 470px; grid-template-columns: 1fr; }
  .grade-content-heading { padding: 30px 26px; border-right: 0; border-bottom: 1px solid rgba(10, 51, 39, .12); }
  .grade-content-heading h2 { margin-bottom: 0; }
  .grade-material { padding: 30px 26px 36px; }
  .material-study-grid { grid-template-columns: 1fr; gap: 14px; }
  .article-category-heading span { display: none; }
  .article-category-nav { flex-wrap: nowrap; margin-inline: -12px; padding-inline: 12px; overflow-x: auto; scrollbar-width: thin; }
  .article-category-nav a { flex: 0 0 auto; }
  .article-card-fallback { min-height: 150px; }
  .article-meta { display: grid; gap: 5px; justify-content: start; }
  .article-detail-shell h1 { font-size: clamp(2.65rem, 13vw, 4.5rem); }
  .article-reading-layout { margin-top: 30px; }
  .related-article-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 7px; }
  .panel { padding: 28px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .homework-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .homework-list-toolbar { align-items: stretch; flex-direction: column; }
  .homework-filter { width: 100%; }
  .homework-filter .button { width: auto; }
}

.public-view {
  --lemon: #f2db56;
  --lemon-light: #fff4a8;
  --leaf: #526f45;
  --leaf-dark: #2f4c38;
}
/* US tutoring benchmark homepage — personal, calm and academically precise. */
.ms-home {
  --ms-citron: #e7e94f;
  --ms-citron-soft: #f7f5b8;
  --ms-forest: #284c3c;
  --ms-forest-deep: #17362c;
  --ms-blue: #0b2944;
  --ms-cream: #f7f4e9;
  --ms-warm-white: #fffef9;
  --ms-rule: rgba(11, 41, 68, .16);
  overflow: hidden;
  background: var(--ms-warm-white);
}
.ms-home h1,
.ms-home h2,
.ms-home h3 {
  color: var(--ms-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}
.ms-home h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5.4vw, 5.5rem);
  letter-spacing: -.052em;
  line-height: .98;
}
.ms-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--ms-forest);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ms-kicker > span {
  width: 40px;
  height: 3px;
  background: var(--ms-citron);
  box-shadow: 12px 0 0 var(--ms-forest);
}
.ms-kicker-light { color: rgba(255, 255, 255, .72); }
.ms-kicker-light > span { box-shadow: 12px 0 0 rgba(255, 255, 255, .58); }
.ms-text-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  color: var(--ms-blue);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .025em;
}
.ms-text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .3s ease;
}
.ms-text-link:hover::after,
.ms-text-link:focus-visible::after { transform: scaleX(1); }
.ms-text-link span { color: var(--ms-forest); transition: transform .25s ease; }
.ms-text-link:hover span { transform: translateX(4px); }
.ms-text-link-light { color: #fff; }
.ms-text-link-light span { color: var(--ms-citron); }
.ms-button-primary {
  border-color: var(--ms-forest-deep);
  border-radius: 2px;
  background: var(--ms-forest-deep);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 54, 44, .12);
}
.ms-button-primary:hover {
  border-color: var(--ms-blue);
  background: var(--ms-blue);
  color: #fff;
  box-shadow: 0 16px 34px rgba(11, 41, 68, .18);
}
.ms-button-citron {
  border-color: var(--ms-citron);
  border-radius: 2px;
  background: var(--ms-citron);
  color: var(--ms-blue);
}
.ms-button-citron:hover { border-color: #fff; background: #fff; color: var(--ms-blue); }

.ms-home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(68px, 8vw, 112px) 0 0;
  background:
    linear-gradient(rgba(11, 41, 68, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 41, 68, .035) 1px, transparent 1px),
    radial-gradient(circle at 83% 14%, rgba(231, 233, 79, .29), transparent 26%),
    linear-gradient(128deg, #fffef9 0%, #f7f4e9 58%, #edf3e9 100%);
  background-size: 76px 76px, 76px 76px, auto, auto;
}
.ms-hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(40, 76, 60, .13);
  border-radius: 50%;
  pointer-events: none;
}
.ms-hero-orbit-one { top: 70px; right: -110px; width: 420px; aspect-ratio: 1; }
.ms-hero-orbit-two { right: 180px; bottom: 72px; width: 110px; aspect-ratio: 1; background: rgba(231, 233, 79, .3); }
.ms-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .75fr);
  gap: clamp(52px, 7.5vw, 118px);
  align-items: center;
}
.ms-hero-copy { padding-bottom: 46px; }
.ms-hero-copy h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 6vw, 6.35rem);
  letter-spacing: -.057em;
  line-height: .93;
}
.ms-hero-copy h1 em { color: var(--ms-forest); font-weight: 400; }
.ms-hero-lead {
  max-width: 660px;
  margin: 0;
  color: #536456;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.78;
}
.ms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: 36px;
}
.ms-thinking-sheet {
  width: min(450px, 100%);
  min-height: 500px;
  justify-self: end;
  position: relative;
  border: 1px solid rgba(11, 41, 68, .22);
  box-shadow: 18px 20px 0 rgba(231, 233, 79, .55), 0 38px 80px rgba(11, 41, 68, .11);
  background: rgba(255, 254, 249, .96);
  transform: rotate(-.7deg);
}
.ms-thinking-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 55px;
  width: 1px;
  background: rgba(179, 72, 64, .2);
}
.ms-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px 18px 74px;
  border-bottom: 1px solid var(--ms-rule);
  color: #718078;
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ms-sheet-body {
  min-height: 394px;
  padding: 34px 30px 28px 76px;
  background-image: repeating-linear-gradient(to bottom, transparent 0 37px, rgba(11, 41, 68, .075) 38px);
}
.ms-sheet-label {
  margin-bottom: 29px;
  color: var(--ms-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.25;
}
.ms-question-list { display: grid; gap: 21px; margin: 0; padding: 0; list-style: none; }
.ms-question-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.ms-question-list span { color: #8b9569; font-size: .61rem; font-weight: 850; letter-spacing: .12em; }
.ms-question-list strong { color: #233b4e; font-size: .94rem; }
.ms-equation-note { display: grid; grid-template-columns: max-content 1fr; gap: 10px; align-items: center; margin-top: 42px; transform: rotate(-1.7deg); }
.ms-equation-note > span { color: var(--ms-forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-style: italic; }
.ms-equation-note i { height: 1px; background: var(--ms-citron); }
.ms-equation-note small { grid-column: 1 / -1; color: #718078; font-size: .61rem; font-weight: 750; letter-spacing: .1em; }
.ms-sheet-foot {
  margin: 0;
  padding: 17px 24px 17px 74px;
  border-top: 1px solid var(--ms-rule);
  color: var(--ms-forest);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.ms-trust-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 7vw, 94px);
  border-top: 1px solid var(--ms-rule);
}
.ms-trust-line p { display: grid; gap: 5px; margin: 0; padding: 24px clamp(18px, 2.2vw, 34px) 27px 0; }
.ms-trust-line p + p { padding-left: clamp(18px, 2.2vw, 34px); border-left: 1px solid var(--ms-rule); }
.ms-trust-line strong { color: var(--ms-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; font-weight: 500; }
.ms-trust-line span { color: #68756d; font-size: .67rem; line-height: 1.5; }

.ms-personal-section { padding: clamp(98px, 11vw, 156px) 0; background: var(--ms-warm-white); }
.ms-editorial-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(46px, 8vw, 124px);
}
.ms-section-index {
  width: 100%;
  padding-top: 14px;
  border-top: 3px solid var(--ms-citron);
}
.ms-section-index span { display: block; color: var(--ms-forest); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.ms-section-index small { color: #7a847e; font-size: .63rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ms-editorial-intro h2 { max-width: 850px; }
.ms-section-lead { max-width: 760px; margin: 30px 0 0; color: #64716a; font-size: 1.08rem; line-height: 1.8; }
.ms-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--ms-rule);
  border-bottom: 1px solid var(--ms-rule);
}
.ms-principles article { min-height: 300px; padding: 30px clamp(24px, 3vw, 44px) 38px; transition: background .3s ease, transform .3s ease; }
.ms-principles article + article { border-left: 1px solid var(--ms-rule); }
.ms-principles article:hover { background: #f7f6e8; transform: translateY(-4px); }
.ms-principle-number { color: #7f8e5e; font-size: .63rem; font-weight: 850; letter-spacing: .14em; }
.ms-principles h3 { margin: 56px 0 15px; font-size: 1.58rem; line-height: 1.2; }
.ms-principles p { margin: 0; color: #66746d; font-size: .92rem; line-height: 1.72; }

.ms-teacher-section {
  position: relative;
  padding: clamp(94px, 10vw, 145px) 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--ms-forest-deep);
  background-size: 72px 72px;
}
.ms-teacher-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(64px, 10vw, 150px); align-items: center; }
.ms-teacher-statement h2 { color: #fff; }
.ms-teacher-statement > p:not(.ms-kicker) { max-width: 610px; margin: 28px 0 22px; color: rgba(255, 255, 255, .68); font-size: 1.03rem; line-height: 1.8; }
.ms-observation-board {
  border-top: 1px solid rgba(255,255,255,.3);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.ms-board-title { margin: 0; padding: 18px 0; color: var(--ms-citron); font-size: .67rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.ms-observation-board > div { display: grid; grid-template-columns: 125px 1fr; gap: 24px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.12); }
.ms-observation-board span { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.06rem; }
.ms-observation-board p { margin: 0; color: rgba(255,255,255,.62); font-size: .88rem; }

.ms-process-section { padding: clamp(98px, 11vw, 154px) 0; background: var(--ms-cream); }
.ms-process-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(50px, 10vw, 160px); align-items: end; }
.ms-process-heading > p { max-width: 440px; margin: 0 0 8px; color: #637168; line-height: 1.8; }
.ms-process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(60px, 7vw, 94px);
  padding: 0;
  border-top: 1px solid rgba(11,41,68,.28);
  list-style: none;
}
.ms-process-list li { position: relative; padding: 34px clamp(18px, 2.3vw, 34px) 0 0; }
.ms-process-list li + li { padding-left: clamp(18px, 2.3vw, 34px); border-left: 1px solid var(--ms-rule); }
.ms-process-list li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ms-citron); box-shadow: 0 0 0 5px var(--ms-cream); }
.ms-process-list li + li::before { left: clamp(18px, 2.3vw, 34px); }
.ms-process-list > li > span { color: #738168; font-size: .62rem; font-weight: 850; letter-spacing: .13em; }
.ms-process-list h3 { margin: 46px 0 13px; font-size: 1.38rem; line-height: 1.22; }
.ms-process-list p { margin: 0; color: #657169; font-size: .88rem; line-height: 1.68; }

.ms-portal-section { padding: clamp(98px, 10vw, 145px) 0; background: var(--ms-blue); }
.ms-portal-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(54px, 9vw, 136px); align-items: center; }
.ms-portal-copy h2 { color: #fff; }
.ms-portal-copy > p:not(.ms-kicker) { max-width: 520px; margin: 28px 0 34px; color: rgba(255,255,255,.67); font-size: 1rem; line-height: 1.8; }
.ms-portal-preview {
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 18px 20px 0 rgba(231,233,79,.18), 0 30px 70px rgba(0,0,0,.18);
  background: #f8f6ed;
}
.ms-portal-top { min-height: 72px; display: grid; grid-template-columns: 40px 1fr 8px; gap: 16px; align-items: center; padding: 14px 22px; border-bottom: 1px solid rgba(11,41,68,.14); }
.ms-portal-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ms-blue); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: .74rem; }
.ms-portal-top strong { color: var(--ms-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; }
.ms-portal-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--ms-citron); }
.ms-portal-content { padding: clamp(25px, 4vw, 42px); }
.ms-portal-next { padding: 25px 27px; border-left: 3px solid var(--ms-citron); background: #fff; box-shadow: 0 13px 34px rgba(11,41,68,.06); }
.ms-portal-next small,
.ms-portal-next span { display: block; color: #718078; font-size: .6rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ms-portal-next strong { display: block; margin: 12px 0 13px; color: var(--ms-blue); font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; font-weight: 500; line-height: 1.3; }
.ms-portal-next span { color: var(--ms-forest); }
.ms-portal-modules { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border-top: 1px solid var(--ms-rule); border-bottom: 1px solid var(--ms-rule); }
.ms-portal-modules p { display: grid; gap: 5px; margin: 0; padding: 20px 15px 20px 0; }
.ms-portal-modules p + p { padding-left: 15px; border-left: 1px solid var(--ms-rule); }
.ms-portal-modules p > span { color: var(--ms-forest); font-weight: 850; }
.ms-portal-modules strong { color: var(--ms-blue); font-family: Georgia, "Times New Roman", serif; font-size: .98rem; font-weight: 500; }
.ms-portal-modules small { color: #738078; font-size: .61rem; line-height: 1.45; }

.ms-tasks-section { padding: clamp(86px, 9vw, 128px) 0; background: var(--ms-warm-white); }
.ms-tasks-panel {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(52px, 9vw, 140px);
  align-items: end;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid rgba(40,76,60,.19);
  background:
    radial-gradient(circle at 88% 15%, rgba(231,233,79,.35), transparent 24%),
    linear-gradient(125deg, #f0f4e7, #fbf7df 70%, #fffef8);
}
.ms-tasks-panel h2 { max-width: 720px; font-size: clamp(2.6rem, 4.7vw, 4.65rem); }
.ms-tasks-panel > div:last-child > p { color: #5f6e64; line-height: 1.8; }

.ms-final-section { padding: clamp(80px, 9vw, 126px) 0; background: #eff0d7; }
.ms-final-grid { display: grid; grid-template-columns: .55fr 1.35fr auto; gap: clamp(42px, 7vw, 100px); align-items: center; }
.ms-final-note { margin: 0; color: #687368; font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ms-final-grid h2 { font-size: clamp(2.55rem, 4.2vw, 4.35rem); }
.ms-final-grid > div > p { max-width: 620px; margin: 22px 0 0; color: #5e6c63; }

.has-reveal .ms-home [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1);
}
.has-reveal .ms-home [data-reveal-delay="1"] { transition-delay: .1s; }
.has-reveal .ms-home [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .ms-hero-grid { grid-template-columns: 1fr; gap: 58px; }
  .ms-hero-copy { padding-bottom: 0; }
  .ms-thinking-sheet { width: min(600px, calc(100% - 18px)); justify-self: center; }
  .ms-trust-line { grid-template-columns: repeat(2, 1fr); }
  .ms-trust-line p:nth-child(3) { border-top: 1px solid var(--ms-rule); border-left: 0; }
  .ms-trust-line p:nth-child(4) { border-top: 1px solid var(--ms-rule); }
  .ms-teacher-grid,
  .ms-portal-grid { grid-template-columns: 1fr; }
  .ms-observation-board,
  .ms-portal-preview { width: min(700px, 100%); }
  .ms-process-list { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .ms-process-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ms-process-list li:nth-child(3)::before { left: 0; }
  .ms-final-grid { grid-template-columns: 1fr; }
  .ms-final-grid .button { width: fit-content; }
}

@media (max-width: 760px) {
  .ms-editorial-grid,
  .ms-process-heading,
  .ms-tasks-panel { grid-template-columns: 1fr; }
  .ms-section-index { width: 125px; }
  .ms-principles { grid-template-columns: 1fr; }
  .ms-principles article { min-height: auto; }
  .ms-principles article + article { border-top: 1px solid var(--ms-rule); border-left: 0; }
  .ms-principles h3 { margin-top: 28px; }
  .ms-process-heading > p { max-width: 640px; }
}

@media (max-width: 560px) {
  .ms-home h2 { font-size: clamp(2.65rem, 12.5vw, 4rem); }
  .ms-home-hero { padding-top: 56px; background-size: 48px 48px, 48px 48px, auto, auto; }
  .ms-hero-copy h1 { font-size: clamp(3.05rem, 14.4vw, 4.55rem); line-height: .95; }
  .ms-hero-lead { font-size: .98rem; line-height: 1.72; }
  .ms-hero-actions { display: grid; align-items: stretch; gap: 10px; }
  .ms-hero-actions .button { width: 100%; }
  .ms-hero-actions .ms-text-link { width: fit-content; }
  .ms-thinking-sheet { min-height: 430px; box-shadow: 10px 12px 0 rgba(231,233,79,.55), 0 25px 55px rgba(11,41,68,.1); }
  .ms-thinking-sheet::after { left: 36px; }
  .ms-sheet-head { padding: 16px 16px 15px 49px; font-size: .51rem; }
  .ms-sheet-body { min-height: 337px; padding: 28px 18px 22px 51px; }
  .ms-sheet-label { font-size: 1.27rem; }
  .ms-question-list { gap: 17px; }
  .ms-question-list li { grid-template-columns: 29px 1fr; }
  .ms-question-list strong { font-size: .84rem; }
  .ms-equation-note { margin-top: 32px; }
  .ms-equation-note > span { font-size: 1.08rem; }
  .ms-sheet-foot { padding: 14px 15px 14px 49px; font-size: .59rem; }
  .ms-trust-line { grid-template-columns: 1fr; }
  .ms-trust-line p,
  .ms-trust-line p + p { padding: 17px 0; border-top: 1px solid var(--ms-rule); border-left: 0; }
  .ms-trust-line p:first-child { border-top: 0; }
  .ms-editorial-grid { gap: 36px; }
  .ms-principles article { padding-inline: 18px; }
  .ms-observation-board > div { grid-template-columns: 1fr; gap: 7px; }
  .ms-process-list { grid-template-columns: 1fr; row-gap: 0; }
  .ms-process-list li,
  .ms-process-list li + li { padding: 28px 0 30px; border-top: 0; border-left: 0; }
  .ms-process-list li + li { border-top: 1px solid var(--ms-rule); }
  .ms-process-list li::before,
  .ms-process-list li + li::before { display: none; }
  .ms-process-list h3 { margin-top: 18px; }
  .ms-portal-content { padding: 20px; }
  .ms-portal-next { padding: 22px 20px; }
  .ms-portal-modules { grid-template-columns: 1fr; }
  .ms-portal-modules p,
  .ms-portal-modules p + p { padding: 15px 0; border-top: 1px solid var(--ms-rule); border-left: 0; }
  .ms-portal-modules p:first-child { border-top: 0; }
  .ms-tasks-panel { padding: 30px 22px; gap: 30px; }
  .ms-final-grid .button { width: 100%; }
}

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