/* Stage 1 comparison: carry the study prototype's hierarchy and palette across the site. */
:root {
  --ink: #193d43;
  --muted: #40575b;
  --green: #28595c;
  --sage: #dce9e4;
  --paper: #f7f6f1;
  --line: #d2dfda;
  --corporate-navy: #193d43;
  --corporate-blue: #28595c;
  --corporate-light: #eef3ef;
}
body { color: #253f43; background: #fff; }
a:focus-visible, button:focus-visible { outline-color: #a36f38; }
.button:not(.button-white) { background: #28595c; border-color: #28595c; color: #fff; }
.button:not(.button-white):hover { background: #193d43; border-color: #193d43; }
.text-link { border-bottom-color: #9d7550; color: #24535a; }

/* Header-only layout and navigation treatment. */
.site-header { border-bottom-color: #c9d9d2; }
.site-header .header-inner { grid-template-columns: clamp(390px, 29vw, 440px) minmax(0, 1fr); }
.site-header .header-inner > .brand { justify-content: flex-start; gap: 14px; padding-inline: 20px; }
.site-header .header-legal-name {
  display: flex;
  flex-direction: column;
  color: #193d43;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
}
.site-header .header-phone-strip { background: #193d43; }
.site-header .header-phone-strip .header-foundation-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 12px 5px 7px;
  border: 1px solid #d3e1dc;
  border-radius: 4px;
  background: #fff;
  color: #193d43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.site-header .header-foundation-mark {
  position: relative;
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 33px;
  overflow: hidden;
}
.site-header .header-foundation-mark img {
  position: absolute;
  left: -12%;
  top: -30%;
  width: 122%;
  max-width: none;
  height: auto;
  mix-blend-mode: multiply;
}
.site-header .header-foundation-arrow { font-size: 18px; line-height: 1; }
.site-header .header-phone-strip .header-foundation-link:is(:hover, :focus-visible, [aria-current="page"]) {
  border-color: #a8c8bd;
  box-shadow: inset 0 -3px #2b756e;
}
.brand-logo-frame,
.home-partner-logo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.site-header .header-inner .brand-logo-frame { width: 140px; height: 105px; flex: none; }
.brand-footer .brand-logo-frame { width: 200px; height: 150px; }
.home-page .home-partner-logo { width: clamp(130px, 15vw, 200px); height: auto; max-width: 100%; }
.site-header .header-inner .brand-logo-frame img.brand-logo,
.brand-footer .brand-logo-frame img.brand-logo,
.home-page .home-partner-logo img {
  position: absolute;
  left: -12%;
  top: -30%;
  width: 122%;
  max-width: none;
  height: auto;
  clip-path: none;
  mix-blend-mode: multiply;
}
@media (max-width: 1350px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-header .header-inner > .brand { padding-inline: 18px; gap: 10px; }
  .site-header .header-legal-name { font-size: 12px; }
  .site-header .header-inner .brand-logo-frame { width: 77px; height: 58px; }
}
@media (max-width: 360px) {
  .site-header .header-inner > .brand { padding-inline: 12px; gap: 8px; }
  .site-header .header-legal-name { font-size: 11px; }
  .site-header .header-inner .brand-logo-frame { width: 62px; height: 47px; }
}
@media (max-width: 600px) {
  .site-header .header-phone-strip .header-foundation-link { min-height: 44px; font-size: 13px; }
}
.site-header #navigation,
.site-header #navigation.is-open { justify-content: center; gap: 0; padding-inline: 16px; }
.site-header #navigation > a.nav-item:not(.nav-contact) {
  padding-inline: clamp(12px, 1vw, 18px);
  border-right: 1px solid #d3e1dc;
}
.site-header #navigation > a.nav-item:not(.nav-contact)[aria-current]::after {
  inset-inline: 12px;
  background: #2b756e;
}
.site-header #navigation > a.nav-item.nav-contact { margin-left: 14px; }
@media (max-width: 1350px) {
  .site-header #navigation,
  .site-header #navigation.is-open { justify-content: flex-start; padding-inline: 20px; }
  .site-header #navigation > a.nav-item:not(.nav-contact) {
    border-right: 0;
    border-bottom: 1px solid #dbe7e3;
  }
  .site-header #navigation > a.nav-item:not(.nav-contact)[aria-current] {
    background: #eaf3f0;
    color: #193d43;
  }
  .site-header #navigation > a.nav-item:not(.nav-contact)[aria-current]::after {
    inset: 9px auto 9px 0;
    width: 3px;
    height: auto;
  }
  .site-header #navigation > a.nav-item.nav-contact { margin: 12px 0 0; }
}
.site-header #navigation > a.nav-item { color: #193d43; }
.site-header #navigation > a.nav-item:not(.nav-contact):is(:hover,:focus-visible) { background: #eef3ef; color: #193d43; }
.site-header #navigation > a.nav-item.nav-contact,
.site-header #navigation > a.nav-item.nav-contact[aria-current] { background: #28595c; color: #fff; }

/* Page name is the label; the service message carries the first view. */
.subpage-hero,
.foundation-page .foundation-hero.subpage-hero {
  min-height: 355px;
  background: linear-gradient(116deg, #193d43 0%, #28595c 58%, #3c7773 100%);
}
.subpage-hero h1,
.foundation-page .foundation-hero h1 {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 19px;
  padding: 0 0 8px;
  border-bottom: 2px solid #edc681;
  color: #f7f2e6;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 750;
  line-height: 1.5;
}
.recruitment-page .subpage-hero h1 { color: #f7f2e6; }
.subpage-hero .subpage-hero-description,
.foundation-page .foundation-hero .subpage-hero-description {
  max-width: 940px;
  color: #fff;
  font-size: clamp(27px, 3.1vw, 44px);
  font-weight: 750;
  line-height: 1.55;
  letter-spacing: .025em;
  text-wrap: pretty;
}
.subpage-hero .button { margin-top: 28px; background: #edc681; border-color: #edc681; color: #193d43; font-weight: 750; }
.subpage-hero .button:hover { background: #f6d99f; color: #193d43; }

/* Smaller utility pages keep their existing text, with the same reading order. */
main > .page-heading {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(60px, 7vw, 96px) max(20px, calc((100% - 1200px)/2));
  border-radius: 0;
  background: linear-gradient(116deg, #193d43 0%, #28595c 58%, #3c7773 100%);
  color: #fff;
}
main > .page-heading .eyebrow { margin-bottom: 18px; color: #edc681; }
main > .page-heading h1 { max-width: 980px; margin-bottom: 18px; color: #fff; font-family: var(--sans); font-size: clamp(35px, 4.2vw, 56px); font-weight: 800; line-height: 1.42; }
main > .page-heading .lead { max-width: 850px; color: #f6f8f4; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.8; }
.about-page main > .about-page-heading { background: linear-gradient(116deg, #193d43, #28595c 58%, #3c7773); }
.about-page .about-page-heading h1 { color: #fff; }
.about-page .about-hero-prose p { color: #fff; }

/* Distinct chapters and subheads, without changing their content. */
main > .section + .section:not(.about-tint) { border-top: 1px solid #cbdad4; }
main > .section:nth-of-type(even),
.section-tint, .section-paper,
.recruitment-page .recruitment-professional,
.seminar-themes { background: #f7f6f1; }
.section-top .eyebrow { margin-bottom: 12px; color: #9b6a3e; font: italic 400 15px/1.4 Georgia,serif; letter-spacing: .02em; }
.section-top h2 { max-width: 900px; color: #193d43; font-size: clamp(30px, 3.2vw, 43px); font-weight: 800; line-height: 1.42; }
.section-top { margin-bottom: clamp(30px, 4vw, 52px); }
.section :is(h3,h4) { color: #193d43; font-weight: 750; }
.section :is(.route-card,.detail-columns article,.connection article,.notice,.audience-bar) { border-color: #c8d8d1; }
.route-card h3, .detail-columns article h3, .guide-list h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 750; }
.route-number, .step-num { color: #a06f3d; }
.connection-center span { color: #a06f3d; }
.recruitment-page .recruitment-section-heading h2,
.recruitment-page .recruitment-consultation-heading h2 { color: #193d43; font-size: clamp(31px, 3.2vw, 43px); font-weight: 800; line-height: 1.42; }
.recruitment-page .recruitment-section-number { color: #a06f3d; }
.recruitment-page .recruitment-professional { border-block: 1px solid #cbdad4; }
.recruitment-page .recruitment-price { border-color: #c9a987; }
.recruitment-page .recruitment-price-main { background: #fff8ef; }
.recruitment-page .recruitment-flow { margin-top: 18px; }
.seminar-section + .seminar-section { border-top: 1px solid #cbdad4; }

/* Consultation is a clear destination and the action remains prominent. */
.contact-band,
.home-page .contact-band,
.study-page-content .study-contact {
  background: linear-gradient(116deg, #193d43 0%, #28595c 65%, #356d69 100%);
  color: #fff;
}
.contact-band .eyebrow, .home-page .contact-band .eyebrow { color: #edc681; }
.contact-band h2 { color: #fff; font-family: var(--sans); font-size: clamp(34px, 3.5vw, 48px); font-weight: 800; line-height: 1.38; }
.contact-band p:not(.eyebrow) { color: #f4f7f4; font-size: 15px; }
.contact-band .button-white { min-height: 54px; background: #edc681; border-color: #edc681; color: #193d43; font-weight: 800; }
.contact-band .button-white:hover { background: #f6d99f; color: #193d43; }

/* HOME keeps its own hero composition while joining the visual family. */
.home-page main { background: #f7f6f1; }
.home-page .home-group { border-color: #cbdad4; }
.home-page .home-hero.home-group { border-color: #28595c; }
.home-page .home-hero-copy, .home-page .home-life { background: linear-gradient(140deg, #fff 30%, #eef3ef); }
.home-page .home-hero-copy h1, .home-page .home-life-title { color: #193d43; }
.home-journey { background: linear-gradient(145deg, #193d43, #356d69); }
.home-orbit { stroke: #a6d2c9; }
.home-page .home-partner-opportunities { background: #eef3ef; border-color: #cbdad4; }
.home-page .home-next-step-fee { background: #eef3ef; border-color: #28595c; color: #193d43; }
.home-page .step-num { color: #a06f3d; }

.study-page .study-prototype .study-heading h2 .study-proto-heading-line { display: block; white-space: nowrap; }

.recruitment-page .recruitment-copy-subhead,
.foundation-page #recruitment-education .foundation-recruitment-subhead {
  margin: 24px 0 9px;
  padding-left: 13px;
  border-left: 3px solid #4e8982;
  color: #21545b;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  line-height: 1.45;
}
.recruitment-page .recruitment-professional-grid h3 + .recruitment-copy-subhead { margin-top: 23px; }
.recruitment-page .recruitment-professional-grid p { margin-bottom: 14px; }
.recruitment-page .recruitment-professional-grid p:last-child { margin-bottom: 0; }
.recruitment-page .recruitment-professional-grid strong,
.recruitment-page .recruitment-scope strong { color: #193d43; font-weight: 800; }
.recruitment-page .recruitment-scope { margin: 30px 0 26px; padding: 23px 25px; border-left: 3px solid #4e8982; background: #eef3ef; }
.recruitment-page .recruitment-scope .recruitment-copy-subhead { margin: 0 0 14px; padding: 0; border: 0; }
.recruitment-page .recruitment-scope p { margin: 0 0 12px; }
.recruitment-page .recruitment-scope p:last-child { margin-bottom: 0; }
.recruitment-page .recruitment-role-note strong { color: #193d43; }
.foundation-page #recruitment-education .foundation-recruitment-subhead { margin-top: 22px; }
.foundation-page #recruitment-education .foundation-recruitment-card h3 + .foundation-recruitment-subhead { margin-top: 24px; }
.foundation-page #recruitment-education .foundation-recruitment-subhead + p { margin-bottom: 20px; }
.foundation-page #recruitment-education .foundation-all-arrivals { margin: 12px 0 22px; padding: 14px 17px; border-left: 3px solid #4e8982; background: #e8f1ee; color: #1d4147; font-weight: 700; }

/* Foundation procedure cards: equal height in columns, natural height in a stack. */
.foundation-page { --foundation-brown:#193d43; --foundation-brown-deep:#193d43; --foundation-honey:#f5e8cb; --foundation-honey-ink:#9b6a3e; --foundation-warm-white:#fff; --foundation-border:#cbdad4; }
.foundation-page main { background: #f7f6f1; color: #253f43; }
.foundation-page .foundation-hero.subpage-hero { border-color: #28595c; }
.foundation-page .foundation-hero .foundation-hero-copy { color: #fff; }
.foundation-page .foundation-hero-copy .eyebrow { color: #edc681; }
.foundation-page .foundation-index a { border-color: #b8cfc5; color: #193d43; }
.foundation-page .foundation-index a span,
.foundation-page .foundation-index a::after,
.foundation-page .foundation-index .foundation-index-app-icon { color: #a06f3d; }
.foundation-page .foundation-section { border-color: #cbdad4; background: #fff; }
.foundation-page .foundation-section-heading { background: #e9f0ea; border-color: #cbdad4; }
.foundation-page .foundation-section-heading span { color: #9b6a3e; border-color: #c9aa78; }
.foundation-page .foundation-section-heading h2 { color: #193d43; }
.foundation-page .foundation-school-group { background: #f6f5ef; border-color: #d4dcd1; border-left-color: #a06f3d; }
.foundation-page .foundation-school-group > h3 { color: #193d43; border-left-color: #a06f3d; }
.foundation-page .foundation-school-card,
.foundation-page .foundation-school-classes .foundation-school-card,
.foundation-page .foundation-teachers article { border-color: #cbdad4; background: #fff; }
.foundation-page .foundation-school-methods h4 { border-bottom-color: #a06f3d; }
.foundation-page .foundation-teacher-icon { color: #9b6a3e; }
.foundation-page .foundation-detail-card { border-color: #cbdad4; background: #fff; }
.foundation-page .foundation-detail-card h3 { color: #193d43; }
.foundation-page .foundation-detail-card p { color: #40575b; }
.foundation-page .foundation-detail-card h3::after { background: #a06f3d; }
.foundation-page #entry-procedures .foundation-detail-grid { align-items: stretch; }
.foundation-page #entry-procedures .foundation-detail-card { min-width: 0; }
.foundation-page #entry-procedures .foundation-detail-card:last-child { display: flex; flex-direction: column; }
.foundation-page #entry-procedures .foundation-detail-card:last-child h3 span { display: block; }
.foundation-page #entry-procedures .foundation-detail-card:last-child h3 span:last-child { white-space: nowrap; }
.foundation-page #entry-procedures .foundation-procedure-icon { display: block; width: min(100%, 230px); height: auto; margin: auto auto 0; padding-top: 22px; }
.foundation-page #entry-procedures .foundation-departure-title { color: #193d43; border-top-color: #cbdad4; }
.foundation-page #entry-procedures .foundation-departure-list li { color: #253f43; border-bottom-color: #d8e3de; }
.foundation-page #entry-procedures .foundation-departure-list li::before { color: #a06f3d; }

footer { background: #f0f2eb; border-top: 3px solid #28595c; }
.footer-links { background: #fff; border-color: #cbdad4; border-inline-start: 3px solid #a06f3d; color: #193d43; }
.footer-links .footer-external { border-top-color: #cbdad4; }
.footer-links .footer-external span { color: #a06f3d; }
.footer-bottom-band { background: #193d43; border-top-color: #41666a; }

/* The study prototype itself remains the baseline; only requested refinements apply. */
.study-page .study-prototype .study-why > .wrap { grid-template-columns: minmax(320px,.5fr) minmax(0,.9fr); gap: clamp(32px,4vw,58px); }

@media (max-width: 900px) {
  .foundation-page #entry-procedures .foundation-detail-grid { grid-template-columns: 1fr; }
  .foundation-page #entry-procedures .foundation-detail-card:last-child { display: block; }
  .foundation-page #entry-procedures .foundation-procedure-icon { width: min(75%, 190px); margin: 18px auto 0; }
}
@media (max-width: 800px) {
  .study-page .study-prototype .study-why > .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .recruitment-page .recruitment-scope { padding: 20px; }
  main > .page-heading { padding: 52px 20px 58px; }
  .subpage-hero, .foundation-page .foundation-hero.subpage-hero { min-height: 0; padding: 54px 0 60px; }
  .subpage-hero h1, .foundation-page .foundation-hero h1 { font-size: 17px; }
  .subpage-hero .subpage-hero-description, .foundation-page .foundation-hero .subpage-hero-description { font-size: clamp(26px, 7.6vw, 33px); line-height: 1.5; overflow-wrap: anywhere; }
  .section-top h2, .recruitment-page .recruitment-section-heading h2 { font-size: clamp(28px, 8vw, 35px); }
  .contact-band h2 { font-size: 35px; }
  .foundation-page #entry-procedures .foundation-detail-card:last-child h3 { font-size: clamp(17px, 5.5vw, 23px); }
  .foundation-page #entry-procedures .foundation-detail-card:last-child h3 span:last-child { white-space: nowrap; }
  .footer-links { border-inline-start: 1px solid #cbdad4; border-block-start: 3px solid #a06f3d; }
}
