:root {
  --ivy: #073b2c;
  --ivy-2: #0a4a37;
  --ivy-3: #0d5a43;
  --ink: #12241e;
  --muted: #536158;
  --paper: #f5efdf;
  --paper-2: #fbf7ec;
  --paper-3: #e9dec5;
  --gold: #b08a3c;
  --gold-dark: #795b20;
  --rule: rgba(7, 59, 44, .24);
  --rule-strong: rgba(7, 59, 44, .45);
  --shadow: 0 24px 70px rgba(33, 36, 28, .14);
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(176, 138, 60, .16), transparent 34rem),
    radial-gradient(circle at top right, rgba(7, 59, 44, .12), transparent 36rem),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(18,36,30,.045) 1px, transparent 1px),
    linear-gradient(rgba(18,36,30,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 70%);
}

.binary-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .72;
  mix-blend-mode: multiply;
}
.skip-link, .site-header, main, .site-footer {
  position: relative;
  z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
  .binary-canvas { opacity: .42; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ivy); letter-spacing: -.02em; }
h1 { font-size: clamp(3.15rem, 7.7vw, 6.8rem); line-height: .9; margin-bottom: 1.35rem; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: .96; margin-bottom: 1rem; }
h3 { font-size: 1.42rem; line-height: 1.15; margin-bottom: .55rem; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(176, 138, 60, .9); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 100;
  background: var(--ivy);
  color: white;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.crest-rule {
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--ivy) 0 70px, var(--gold) 70px 82px, var(--ivy-2) 82px 152px);
  border-bottom: 1px solid rgba(0,0,0,.15);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 236, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease, background .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(17, 26, 21, .08); background: rgba(251, 247, 236, .97); }
.nav {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 198px; height: auto; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  padding: .64rem .78rem;
  color: var(--ivy);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--gold); color: var(--gold-dark); }
.nav-links .nav-cta {
  margin-left: .35rem;
  border: 1px solid var(--ivy);
  background: var(--ivy);
  color: #fff;
  border-radius: 999px;
  padding-inline: 1rem;
}
.nav-links .nav-cta:hover { background: var(--ivy-2); color: white; border-color: var(--ivy-2); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  border-radius: 6px;
  padding: 0;
}
.nav-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; background: var(--ivy); margin: 4px auto; border-radius: 99px; }

.section-shell { width: min(var(--max-width), calc(100% - 2rem)); margin: 0 auto; position: relative; }
.eyebrow {
  margin: 0 0 .9rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 900;
  font-size: .78rem;
}
.hero {
  min-height: calc(100vh - 94px);
  display: grid;
  grid-template-columns: .36fr minmax(0, 1fr);
  align-items: center;
  gap: 2.4rem;
  padding: 5rem 0 4.75rem;
}
.hero::before, .hero::after, .subpage-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule-strong), transparent);
}
.hero::before { top: 2.1rem; }
.hero::after { bottom: 2rem; }
.hero-emblem {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--rule);
  padding-right: 2.5rem;
}
.hero-emblem img { width: min(275px, 100%); filter: drop-shadow(0 20px 40px rgba(7, 59, 44, .13)); }
.hero-copy { max-width: 720px; }
.hero-lede {
  color: #35453e;
  font-size: clamp(1.08rem, 1.65vw, 1.32rem);
  max-width: 66ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .82rem 1.12rem;
  border-radius: 2px;
  border: 1px solid var(--ivy);
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
  font-size: .84rem;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--ivy); box-shadow: 0 16px 35px rgba(7, 59, 44, .18); }
.button-primary:hover { background: var(--ivy-2); border-color: var(--ivy-2); }
.button-secondary { color: var(--ivy); background: transparent; }
.button-secondary:hover { background: rgba(7, 59, 44, .08); }
.button-light { color: var(--ivy); background: white; border-color: white; }

.hero-register {
  border: 1px solid var(--rule-strong);
  background: rgba(251,247,236,.68);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.register-label {
  font-family: var(--serif);
  color: var(--ivy);
  font-size: 1.2rem;
  line-height: 1.1;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .85rem;
  margin-bottom: 1rem;
}
.hero-register ol { list-style: none; margin: 0; padding: 0; }
.hero-register li {
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  gap: .75rem;
  color: #405148;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(7,59,44,.14);
}
.hero-register li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-register span { color: var(--gold-dark); font-family: var(--serif); font-weight: 700; }

.college-ribbon {
  background: var(--ivy);
  color: #fff;
  border-top: 4px double rgba(255,255,255,.48);
  border-bottom: 4px double rgba(255,255,255,.48);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: .75rem 1rem;
}
.college-ribbon span {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem 1.15rem;
  border-right: 1px solid rgba(255,255,255,.28);
}
.college-ribbon span:last-child { border-right: 0; }

.split-section {
  padding: 6.2rem 0;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 4rem;
  border-bottom: 1px solid var(--rule);
}
.section-title-block { border-left: 5px solid var(--ivy); padding-left: 1.3rem; }
.body-copy { color: var(--muted); font-size: 1.07rem; }
.manuscript {
  background: rgba(255,255,255,.38);
  border: 1px solid var(--rule);
  padding: 1.45rem;
}
.manuscript p:last-child { margin-bottom: 0; }

.initiatives-section, .member-preview, .join-section, .school-directory, .bylaws-layout { padding: 6rem 0; }
.section-heading { max-width: 780px; margin-bottom: 2rem; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.initiative-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.initiative-card, .school-card, .directory-card {
  position: relative;
  background: rgba(255,255,255,.52);
  border: 1px solid var(--rule);
  padding: 1.3rem;
  box-shadow: 0 12px 30px rgba(34,38,30,.07);
}
.initiative-card::before, .school-card::before, .directory-card::before, .bylaws-summary::before {
  content: "";
  position: absolute;
  inset: .5rem;
  border: 1px solid rgba(7,59,44,.12);
  pointer-events: none;
}
.initiative-card { min-height: 310px; padding-top: 1.5rem; }
.initiative-card p, .school-card p, .directory-card p { color: var(--muted); }
.card-number {
  display: block;
  color: var(--gold-dark);
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.member-preview { border-top: 1px solid var(--rule); }
.school-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.school-school {
  margin: 0 0 .75rem;
  color: var(--gold-dark) !important;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.school-card a, .text-link {
  color: var(--ivy);
  font-weight: 900;
  border-bottom: 1px solid rgba(7,59,44,.42);
}
.school-card a:hover, .text-link:hover { color: var(--gold-dark); border-bottom-color: var(--gold-dark); }
.directory-link { text-align: center; margin: 2rem 0 0; }

.charter-panel {
  display: grid;
  grid-template-columns: minmax(360px, .72fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--ivy);
  color: rgba(255,255,255,.84);
  border: 1px solid var(--ivy);
  padding: 2.3rem;
  box-shadow: var(--shadow);
}
.charter-panel .eyebrow { color: #d8bf7a; }
.charter-panel h2 {
  color: white;
  margin-bottom: 0;
  font-size: clamp(3rem, 4.2vw, 5rem);
  line-height: 1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.charter-panel p:last-child { margin-bottom: 0; font-size: 1.08rem; }

.join-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.join-steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  border-top: 4px solid var(--ivy);
  background: rgba(255,255,255,.5);
  padding: 1.35rem;
  box-shadow: 0 10px 24px rgba(33,36,28,.07);
}
.join-steps span {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  font-family: var(--serif);
  color: var(--ivy);
  font-weight: 700;
  background: var(--paper-2);
}
.join-steps p { color: var(--muted); margin-bottom: 0; }

.contact-section { padding: 0 0 6rem; }
.contact-card {
  background:
    linear-gradient(rgba(7, 59, 44, .94), rgba(7, 59, 44, .94)),
    radial-gradient(circle at top right, rgba(176,138,60,.35), transparent 26rem);
  color: rgba(255,255,255,.84);
  padding: clamp(1.6rem, 5vw, 3rem);
  border: 6px double rgba(255,255,255,.28);
  box-shadow: var(--shadow);
}
.contact-card img { width: 250px; margin-bottom: 1.5rem; }
.contact-card h2 { color: white; }
.contact-card p { max-width: 720px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.email-text { font-weight: 800; color: white; }
.copy-feedback { min-height: 1.5rem; margin: 1rem 0 0; color: #f2d789; }

.subpage-hero {
  text-align: center;
  padding: 5.2rem 0 4.2rem;
  max-width: 980px;
}
.subpage-hero::before { bottom: 1.6rem; }
.subpage-hero h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.subpage-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; max-width: 780px; margin-left: auto; margin-right: auto; }
.subpage-emblem { width: 108px; margin: 0 auto 1.2rem; }
.school-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.directory-card { padding: 1.55rem; }
.directory-card h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
.directory-card.feature-member { background: rgba(255,255,255,.62); }
.prospect-card { border-style: dashed; }
.course-box {
  margin-top: 1.2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.course-box h3 { font-size: 1.15rem; }
.course-box ul { margin: .35rem 0 0; padding-left: 1.2rem; color: var(--muted); }

.bylaws-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.bylaws-summary {
  position: sticky;
  top: 122px;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--rule);
  padding: 1.35rem;
  box-shadow: 0 14px 35px rgba(33,36,28,.08);
}
.bylaws-summary h2 { font-size: 2rem; }
.bylaws-summary p { color: var(--muted); }
.bylaws-content { display: grid; gap: .75rem; }
details {
  background: rgba(255,255,255,.57);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 22px rgba(33,36,28,.06);
}
summary {
  cursor: pointer;
  color: var(--ivy);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1.1rem 1.25rem;
}
.details-body { border-top: 1px solid var(--rule); padding: 1.1rem 1.25rem; color: var(--muted); }
.details-body p:last-child { margin-bottom: 0; }
.details-body strong { color: var(--ink); }

.site-footer {
  background: #041d16;
  color: rgba(255,255,255,.78);
  padding: 2rem max(1rem, calc((100vw - var(--max-width)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  border-top: 8px solid var(--ivy);
}
.site-footer img { width: 210px; margin-bottom: .8rem; }
.site-footer p { margin-bottom: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.footer-links a { color: white; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.footer-links a:hover { color: #f2d789; }

@media (max-width: 1050px) {
  .nav { min-height: 78px; }
  .brand img { width: 170px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + .5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper-2);
    border: 1px solid var(--rule-strong);
    padding: .8rem;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { border-bottom: 0; padding: .9rem; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; }
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-top: 3.6rem; }
  .hero-emblem { border-right: 0; padding-right: 0; }
  .hero-emblem img { width: 190px; margin: 0 auto; }
  .hero-copy { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-register { max-width: 640px; margin: 0 auto; text-align: left; }
  .split-section, .charter-panel, .bylaws-layout { grid-template-columns: 1fr; }
  .initiative-grid, .school-grid, .join-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bylaws-summary { position: relative; top: auto; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(2.7rem, 17vw, 4.2rem); }
  .section-shell { width: min(100% - 1.25rem, var(--max-width)); }
  .hero, .split-section, .initiatives-section, .member-preview, .join-section, .school-directory, .bylaws-layout { padding-top: 4rem; padding-bottom: 4rem; }
  .college-ribbon { justify-content: center; text-align: center; }
  .college-ribbon span { border: 0; padding: .2rem .7rem; text-align: center; }
  .initiative-grid, .school-grid, .join-steps, .school-directory { grid-template-columns: 1fr; }
  .join-steps li { grid-template-columns: 1fr; }
  .charter-panel { padding: 1.4rem; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
}


/* Mobile scale correction: prevent oversized collegiate headings from overflowing narrow screens. */
html, body { max-width: 100%; overflow-x: hidden; }
.hero-copy, .section-heading, .section-title-block, .manuscript, .school-card, .directory-card, .charter-panel, .contact-card, .bylaws-summary, details, summary, .details-body {
  min-width: 0;
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  .nav { width: min(100% - 1rem, var(--max-width)); gap: .75rem; }
  .brand img { width: 150px; }
  .nav-toggle { flex: 0 0 44px; }
  .section-shell { width: min(100% - 1.5rem, var(--max-width)); }
  .hero {
    text-align: left;
    gap: 1.65rem;
    padding-top: 2.9rem;
    padding-bottom: 3.5rem;
  }
  .hero-emblem img { width: min(210px, 68vw); }
  .hero-copy { width: 100%; max-width: 100%; margin: 0; }
  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
    line-height: .97;
    letter-spacing: -.025em;
    max-width: 100%;
  }
  .hero-lede { font-size: 1rem; line-height: 1.62; max-width: 100%; }
  .hero-actions { justify-content: flex-start; }
  .button { width: 100%; min-height: 46px; text-align: center; }
  .eyebrow { font-size: .7rem; letter-spacing: .11em; line-height: 1.55; }
  h2 { font-size: clamp(1.9rem, 10vw, 2.7rem); line-height: 1.02; }
  h3 { font-size: 1.28rem; }
  .subpage-hero h1 { font-size: clamp(2.25rem, 11vw, 3.05rem); line-height: 1; }
  .subpage-hero { text-align: left; }
  .subpage-emblem { margin-left: 0; margin-right: 0; }
  .school-directory, .initiative-grid, .school-grid, .join-steps { gap: .85rem; }
  .directory-card, .school-card, .initiative-card { padding: 1.15rem; }
  summary { font-size: 1.15rem; line-height: 1.25; }
  .contact-card img, .site-footer img { width: min(210px, 80vw); }
}

@media (max-width: 390px) {
  .hero h1 { font-size: clamp(2.05rem, 10.5vw, 2.55rem); }
  .brand img { width: 136px; }
  .section-shell { width: min(100% - 1.25rem, var(--max-width)); }
}

/* Final mobile containment pass: keep the collegiate typography without horizontal overflow. */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

p, a, li, summary {
  overflow-wrap: break-word;
}

h1, h2, h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-copy,
.section-heading,
.section-title-block,
.manuscript,
.school-card,
.directory-card,
.charter-panel,
.contact-card,
.bylaws-summary,
details,
summary,
.details-body {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .nav,
  .section-shell {
    width: calc(100% - 1.25rem);
    max-width: var(--max-width);
  }

  .nav {
    min-height: 72px;
    gap: .75rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand img {
    width: min(145px, 44vw);
  }

  .nav-toggle {
    flex: 0 0 44px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) !important;
    text-align: left !important;
    gap: 1.35rem;
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
  }

  .hero::before { top: 1.35rem; }
  .hero::after { bottom: 1.35rem; }

  .hero-emblem {
    border-right: 0;
    padding-right: 0;
    justify-items: start;
  }

  .hero-emblem img {
    width: min(190px, 58vw);
    margin: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.72rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.025em;
    max-width: 100%;
    text-wrap: balance;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
    min-height: 46px;
    text-align: center;
  }

  .eyebrow {
    font-size: .66rem;
    letter-spacing: .075em;
    line-height: 1.5;
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem) !important;
    line-height: 1.04 !important;
  }

  h3 {
    font-size: 1.25rem;
  }

  .subpage-hero {
    text-align: left;
  }

  .subpage-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem) !important;
    line-height: 1.04 !important;
  }

  .subpage-emblem {
    margin-left: 0;
    margin-right: 0;
  }

  .school-directory,
  .initiative-grid,
  .school-grid,
  .join-steps {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .85rem;
  }

  .directory-card,
  .school-card,
  .initiative-card {
    padding: 1.1rem;
  }

  .college-ribbon {
    justify-content: flex-start;
  }

  .college-ribbon span {
    border-right: 0;
    padding: .18rem .58rem;
    font-size: .95rem;
  }

  summary {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .contact-card img,
  .site-footer img {
    width: min(205px, 80vw);
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: clamp(1.9rem, 9.5vw, 2.28rem) !important;
  }

  .hero-emblem img {
    width: min(165px, 55vw);
  }

  .brand img {
    width: min(132px, 42vw);
  }

  .section-shell,
  .nav {
    width: calc(100% - 1rem);
  }
}

/* Mobile centering polish: keep images centered while preserving overflow-safe headings. */
@media (max-width: 720px) {
  .hero {
    text-align: center !important;
    justify-items: center;
  }

  .hero-emblem {
    width: 100%;
    display: flex;
    justify-content: center !important;
    align-items: center;
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .hero-emblem img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center !important;
  }

  .subpage-hero {
    text-align: center !important;
  }

  .subpage-emblem,
  .contact-card img,
  .site-footer img {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-footer {
    align-items: center !important;
    text-align: center;
  }

  .footer-links {
    justify-content: center !important;
  }
}


/* Final mobile layout correction: center hero/media assets and prevent any mobile drift. */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .hero.section-shell {
    width: min(100% - 1.25rem, var(--max-width)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .hero-emblem {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    justify-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-right: 0 !important;
  }

  .hero-emblem img {
    width: clamp(168px, 55vw, 225px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-copy {
    width: 100% !important;
    max-width: 34rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero h1,
  .hero-lede,
  .hero .eyebrow {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-actions {
    width: 100% !important;
    max-width: 28rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }

  .subpage-emblem,
  .contact-card img,
  .site-footer img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Desktop typography correction: never split large collegiate headings inside words. */
h1,
h2,
h3 {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

p,
a,
li,
summary {
  overflow-wrap: break-word;
  word-break: normal;
}

.charter-panel {
  grid-template-columns: minmax(24rem, .9fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.charter-panel h2 {
  font-size: clamp(2.8rem, 4.2vw, 4.1rem);
  line-height: 1.02;
  max-width: 12ch;
  text-wrap: balance;
}

.charter-panel p {
  min-width: 0;
}

@media (max-width: 1120px) {
  .charter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .charter-panel h2 {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  h1,
  h2,
  h3 {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .charter-panel h2 {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.05 !important;
  }
}


/* Desktop/heading polish: headings should wrap at words, not inside words. */
h1, h2, h3,
.charter-panel h2,
.hero h1,
.subpage-hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 720px) {
  h1, h2, h3,
  .hero h1,
  .subpage-hero h1,
  .charter-panel h2 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .charter-panel h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem) !important;
  }
}

/* Final desktop charter fix: do not constrain the charter title to 12ch. */
.charter-panel h2 {
  max-width: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

@media (max-width: 720px) {
  h1,
  h2,
  h3,
  .hero h1,
  .subpage-hero h1,
  .charter-panel h2 {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 720px) {
  .binary-canvas { opacity: .48; }
}

/* Mobile Ivy campus ribbon centering */
@media (max-width: 720px) {
  .college-ribbon {
    justify-content: center;
    text-align: center;
  }
  .college-ribbon span {
    text-align: center;
  }
}
