/* Quiet visual refinements. Load after style.css, map.css and consult.css.
   The logo, header and image framing remain owned by the main stylesheets. */
:root {
  --refine-line: #dce2eb;
  --refine-copy: #566278;
  --refine-gold: #a58b25;
  --refine-shadow: 0 8px 24px rgb(11 23 49 / 5%);
}

/* A consistent reading rhythm across the public content. */
main {
  letter-spacing: -.028em;
}

main .section {
  padding-top: clamp(64px, 6.8vw, 98px);
  padding-bottom: clamp(64px, 6.8vw, 98px);
}

main .eyebrow {
  font-weight: 700;
  line-height: 1.7;
}

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

.section-heading h2,
.admissions-copy h2,
.consultation-heading h2 {
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: 1.42;
  text-wrap: balance;
}

.section-heading > p:last-child,
.consultation-heading > div > p:last-child {
  color: var(--refine-copy);
  font-size: 15px;
  line-height: 1.95;
  max-width: 65ch;
}

.lead-copy h1 {
  letter-spacing: -.052em;
  text-wrap: balance;
}

.lead-intro {
  line-height: 1.95;
}

.lead-buttons {
  row-gap: 16px;
}

.lead-proof {
  border-top-color: #52617a80;
}

.lead-proof span {
  color: #c4cfe0;
}

/* School cards stay the strongest navigation after the opening video. */
.school-stories {
  gap: 28px;
}

.school-story {
  border-color: var(--refine-line);
  border-radius: 6px;
  box-shadow: 0 2px 5px rgb(11 23 49 / 2%);
}

.school-story > .story-image {
  border-radius: 5px 0 0 5px;
  overflow: hidden;
}

.story-copy {
  padding: 27px;
  min-width: 0;
}

.story-meta {
  color: #657186;
  font-size: 12px;
  line-height: 1.65;
}

.story-copy h3 {
  margin-top: 13px;
  margin-bottom: 11px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.story-copy h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 13px;
}

.story-copy p {
  color: var(--refine-copy);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 22px;
}

.story-more,
.story-consult,
.admissions-links a,
.bridge-actions a {
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.story-more {
  display: inline-block;
  font-size: 13px;
  line-height: 1.8;
}

.story-consult {
  font-size: 12px;
  color: #59667c;
  line-height: 1.8;
}

.short-bridge {
  border: 1px solid #dfe5ee;
  border-radius: 6px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.bridge-copy h3 {
  font-weight: 800;
  letter-spacing: -.045em;
}

.bridge-copy p,
.admissions-copy > p,
.admissions-media > p {
  color: var(--refine-copy);
  line-height: 1.95;
}

.nearby-schools {
  border-color: var(--refine-line);
  border-radius: 6px;
  margin-top: 32px;
}

.nearby-schools p {
  font-size: 14px;
}

/* The admissions benefit reads as a short, distinct editorial callout. */
.admissions-section {
  background: #f7f5e9;
}

.admissions-value {
  margin: 27px 0 32px;
  padding: 25px 27px;
  background: #fffef9;
  border: 1px solid #e3dcc0;
  border-left: 3px solid #b79a2d;
  border-radius: 0 5px 5px 0;
}

.admissions-value strong {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 800;
  letter-spacing: -.04em;
}

.admissions-value p {
  color: #4d5b72;
  font-size: 14px;
  line-height: 1.95;
  margin: 14px 0;
}

.admissions-value span {
  color: #766222;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0;
}

.director {
  padding-left: 24px;
}

.director h3 {
  font-weight: 800;
  margin-top: 11px;
  margin-bottom: 15px;
}

.director p {
  font-size: 14px;
  line-height: 1.9;
}

.director-role {
  font-size: 15px;
  background: #ede1a0;
  padding: 8px 13px;
  border-radius: 3px;
}

.research-site {
  border-radius: 0 4px 4px 0;
  padding-top: 18px;
  padding-bottom: 18px;
}

.admissions-links {
  row-gap: 16px;
  font-size: 13px;
}

.admissions-media h3 {
  font-size: 25px;
  line-height: 1.6;
  letter-spacing: -.035em;
}

.bridge-copy small,
.admissions-media small {
  font-size: 11px;
  line-height: 1.85;
}

/* Information sections use restrained separators and readable captions. */
.system-grid article {
  padding-top: 22px;
  border-top: 1px solid #d2d9e4;
}

.system-grid .num {
  color: #806d23;
  font-weight: 700;
}

.system-grid h3 {
  font-size: 26px;
  letter-spacing: -.045em;
  line-height: 1.55;
  margin-top: 17px;
}

.system-grid p {
  color: var(--refine-copy);
  font-size: 15px;
  line-height: 1.9;
}

.feature {
  border-radius: 5px;
  overflow: hidden;
}

.feature h3 {
  font-weight: 800;
  letter-spacing: -.045em;
}

.faculty p {
  color: var(--refine-copy);
}

.table-wrap {
  border-radius: 5px;
  border: 1px solid var(--refine-line);
}

.table-wrap th {
  color: #dce4f1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.015em;
}

.table-wrap td {
  font-variant-numeric: tabular-nums;
  color: #39485f;
  font-size: 14px;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.class-request-note {
  background: #f8f5e8;
  border-left-color: #bca139;
  border-radius: 0 4px 4px 0;
}

.weekly-post {
  padding-top: 25px;
  padding-bottom: 25px;
}

.weekly-post h3 {
  font-weight: 600;
  line-height: 1.8;
}

.weekly-post time {
  font-variant-numeric: tabular-nums;
}

.faq details {
  padding: 25px 0;
}

.faq summary {
  font-size: 16px;
  line-height: 1.8;
}

.faq details p {
  color: var(--refine-copy);
  padding-top: 17px;
  font-size: 14px;
  line-height: 1.95;
}

/* A calm, structured consultation form with larger field text. */
.consultation-section {
  background: #f3f5f9;
}

.consultation-heading {
  margin-bottom: 38px;
  gap: 38px;
}

.consult-phone {
  padding: 26px 30px;
  border-left-color: #c5a936;
  border-radius: 0 5px 5px 0;
}

.consult-phone span {
  color: #647087;
  font-size: 12px;
}

.consult-phone small {
  font-size: 12px;
  color: #647087;
  line-height: 1.8;
}

.consult-phone a {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.consultation-form {
  padding: 36px 42px 40px;
  border-color: #dce2eb;
  border-radius: 7px;
  box-shadow: var(--refine-shadow);
}

.form-required {
  color: #627087;
  font-size: 12px;
  margin-bottom: 30px;
}

.consultation-form fieldset {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom-color: #e1e6ee;
}

.consultation-form legend {
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: -.035em;
  margin-bottom: 24px;
}

.consultation-form legend > span {
  display: inline-block;
  min-width: 19px;
  color: #806a20;
  font-size: 12px;
  letter-spacing: 0;
}

.type-options {
  gap: 14px;
}

.type-card {
  min-height: 110px;
  padding: 22px 20px;
  border-color: #d5dce7;
  border-radius: 5px;
  background: #fff;
}

.type-card:has(input:checked) {
  background: #faf7e9;
  border-color: #a78d28;
  box-shadow: inset 0 0 0 1px #a78d28;
}

.type-card b {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.035em;
}

.type-card small {
  color: #5d6a7f;
  font-size: 12px;
  line-height: 1.85;
  margin-top: 6px;
}

.type-card em {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #75601e;
  font-size: 10px;
  line-height: 1.6;
}

.form-grid {
  gap: 25px 28px;
}

.consultation-form label {
  font-size: 14px;
  line-height: 1.85;
}

.form-grid input,
.form-grid select,
.message-label textarea {
  border-color: #cfd7e4;
  border-radius: 4px;
  min-height: 52px;
  padding: 14px 16px;
  color: #14243d;
  font-size: 16px;
  line-height: 1.55;
}

.form-grid input::placeholder,
.message-label textarea::placeholder {
  color: #778397;
  opacity: 1;
}

.form-grid label > small,
.message-label > small {
  color: #66748a;
  font-size: 11px;
  line-height: 1.8;
}

.message-label textarea {
  min-height: 140px;
}

.consult-privacy details p {
  color: #617087;
  font-size: 12px;
  line-height: 1.95;
}

.consult-privacy summary {
  font-size: 14px;
  line-height: 1.8;
}

.privacy-check {
  padding: 17px 18px;
  border-radius: 4px;
  background: #f5f7fa;
  margin: 22px 0;
  color: #34445d;
}

.privacy-check input {
  margin-top: 4px;
}

.form-submit-row {
  margin-top: 28px;
}

.form-submit-row p {
  color: #617087;
  font-size: 12px;
  line-height: 1.9;
}

.form-submit-row button {
  min-height: 54px;
  min-width: 210px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: -.025em;
}

.consult-status {
  border-radius: 4px;
  font-size: 14px;
}

/* Motion only reinforces an interaction; there are no scroll reveals. */
main .button,
.story-more,
.story-consult,
.research-site,
.type-card,
.form-grid input,
.form-grid select,
.message-label textarea {
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, color 180ms ease;
}

main .button {
  line-height: 1.65;
  text-align: center;
}

main .yellow {
  background: #e0c331;
}

main :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #a18520;
  outline-offset: 4px;
}

.type-card:has(input:focus-visible) {
  outline: 3px solid #a18520;
  outline-offset: 4px;
}

.video-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

@media (hover: hover) and (pointer: fine) {
  .school-story:hover {
    transform: translateY(-2px);
    border-color: #c8b45d;
    box-shadow: var(--refine-shadow);
  }

  main .yellow:hover {
    background: #ecd25b;
  }

  .type-card:hover {
    border-color: #ab9a58;
  }

  .form-grid input:hover,
  .form-grid select:hover,
  .message-label textarea:hover {
    border-color: #a9b6c9;
  }
}

@media (min-width: 1151px) {
  .school-story {
    grid-template-columns: 41% minmax(0, 1fr);
  }
}

@media (max-width: 1150px) {
  .school-story > .story-image {
    border-radius: 5px 5px 0 0;
  }

  .story-copy {
    padding: 28px;
  }

  .type-card {
    align-items: flex-start;
    padding: 27px 16px 20px;
  }

  .type-card input {
    margin-top: 4px;
  }

  .type-card b {
    font-size: 15px;
  }
}

@media (max-width: 720px) {
  main .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

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

  .section-heading h2,
  .admissions-copy h2,
  .consultation-heading h2 {
    font-size: clamp(28px, 7vw, 34px);
    line-height: 1.48;
  }

  .section-heading > p:last-child,
  .consultation-heading > div > p:last-child {
    font-size: 14px;
    line-height: 1.9;
  }

  .school-stories {
    gap: 24px;
  }

  .story-copy {
    padding: 25px;
  }

  .story-copy h4 {
    font-size: 18px;
  }

  .story-copy p,
  .nearby-schools p {
    font-size: 14px;
    line-height: 1.9;
  }

  .short-bridge {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .admissions-value {
    padding: 22px;
    margin-top: 23px;
    margin-bottom: 28px;
  }

  .admissions-value strong {
    font-size: 18px;
    line-height: 1.7;
  }

  .admissions-value p {
    font-size: 14px;
  }

  .admissions-value span {
    font-size: 11px;
  }

  .director {
    padding-left: 20px;
  }

  .system-grid h3 {
    font-size: 23px;
    margin-top: 12px;
  }

  .system-grid p {
    font-size: 14px;
  }

  .weekly-post {
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .faq details {
    padding-top: 23px;
    padding-bottom: 23px;
  }

  .faq summary {
    font-size: 15px;
  }

  .consultation-heading {
    gap: 24px;
    margin-bottom: 28px;
  }

  .consult-phone {
    padding: 22px 24px;
  }

  .consultation-form {
    padding: 25px 20px 28px;
    border-radius: 6px;
  }

  .form-required {
    text-align: left;
    font-size: 11px;
    line-height: 1.8;
    margin-bottom: 25px;
  }

  .consultation-form legend {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 21px;
  }

  .consultation-form fieldset {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .type-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .type-card {
    align-items: center;
    min-height: 99px;
    padding: 22px 17px;
  }

  .type-card input {
    margin-top: 0;
  }

  .type-card b {
    font-size: 16px;
  }

  .type-card small {
    font-size: 12px;
    line-height: 1.75;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-grid input,
  .form-grid select,
  .message-label textarea {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 16px;
  }

  .privacy-check {
    padding: 16px 14px;
    line-height: 1.9;
  }

  .form-submit-row button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  main .button,
  main .school-story,
  main .story-more,
  main .story-consult,
  main .research-site,
  main .type-card,
  main .form-grid input,
  main .form-grid select,
  main .message-label textarea,
  main .play-disc,
  main .map-school,
  main .map-school::before,
  main .map-school-top .map-arrow,
  main .map-support-link,
  main .map-center {
    transition: none;
  }

  main .school-story:hover,
  main .map-school:hover,
  main .video-play:hover .play-disc {
    transform: none;
  }

  main .map-flow,
  main .map-node-dot,
  main .map-center::after {
    animation: none;
  }
}
