/* Campus Saint Marc: shared presentation, native components, no font dependency. */
:root {
  --ink: #22313b;
  --ink-soft: #52616b;
  --teal: #00697d;
  --teal-dark: #005567;
  --teal-pale: #edf6f7;
  --line: #dfe6e9;
  --line-strong: #bdcbd1;
  --paper: #ffffff;
  --soft: #f6f8f9;
  --radius: 16px;
  --radius-small: 9px;
  --shadow: 0 12px 36px rgb(34 49 59 / 7%);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 116px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { color: var(--ink); background: #cdecef; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-dark); }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0 0 20px; color: var(--ink); font-weight: 650; line-height: 1.16; overflow-wrap: anywhere; }
h1 { font-size: clamp(38px, 4.9vw, 62px); letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.035em; }
h3 { font-size: 22px; letter-spacing: -0.022em; }
h4 { font-size: 19px; }
p { margin: 0 0 20px; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 7px; }
hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
blockquote { margin: 24px 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.container > *, .hero-grid > *, .content-layout > *, .form-grid > *, .footer-grid > *, .split-section > * { min-width: 0; }
.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;
}
.skip-link { position: fixed; z-index: 99999; top: 12px; left: 12px; padding: 12px 18px; color: white; background: var(--teal); border-radius: 6px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Header: always navigable in the document; the mobile toggle is progressive. */
.site-header { position: sticky; z-index: 100; top: 0; background: rgb(255 255 255 / 98%); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 98px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex: 0 0 auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { flex: 0 0 auto; width: 64px; height: auto; }
.brand > span { display: flex; flex-direction: column; gap: 3px; }
.brand strong { font-size: 20px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 720; }
.brand small { color: var(--ink-soft); font-size: 12px; line-height: 1.4; letter-spacing: 0.045em; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: 10px 0; color: var(--ink); font-size: 14px; font-weight: 560; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"], .site-nav .current-menu-item > a { color: var(--teal); text-decoration: underline; text-underline-offset: 7px; }
.site-nav a.button, .site-nav a.button:hover { color: white; text-decoration: none; }
.header-contact { flex: 0 0 auto; margin-left: 2px; }
.header-contact .button, a.header-contact { min-height: 42px; padding: 10px 17px; font-size: 13px; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: white; font-size: 14px; font-weight: 650; }
.menu-toggle svg { width: 20px; height: 20px; }
.admin-bar .site-header { top: 32px; }

/* The opening composition and shared section rhythm. */
.section { padding-block: clamp(56px, 7vw, 94px); }
.section.soft, .section.alt, .section--soft { background: var(--soft); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: block; margin-bottom: 36px; }
.section-head h2 { max-width: 740px; margin-bottom: 0; }
.section-head > p, .section-head .lead { max-width: 760px; margin: 16px 0 0; }
.section-head > .eyebrow { max-width: none; margin: 0 0 16px; }
.section-head > div { min-width: 0; }
.eyebrow { display: block; margin: 0 0 16px; color: var(--teal); font-size: 12px; line-height: 1.4; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.lead { color: var(--ink-soft); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.65; }
.muted { color: var(--ink-soft); }
.hero { padding-block: clamp(42px, 6vw, 78px) clamp(44px, 5.5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr); align-items: center; gap: clamp(32px, 4.5vw, 68px); }
.hero-copy h1 { max-width: 20ch; margin-bottom: 25px; }
.hero-copy .lead { max-width: 48ch; margin-bottom: 27px; font-size: 18px; }
.hero .actions { margin-top: 26px; }
.hero-media { position: relative; align-self: center; }
.hero-media > img, .hero-media > picture > img { width: 100%; height: auto; border-radius: 20px; }
.hero-media figcaption, .hero-media .caption { margin-top: 12px; color: var(--ink-soft); font-size: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 23px; color: var(--ink-soft); font-size: 13px; }
.hero-meta span + span { border-left: 1px solid var(--line-strong); padding-left: 22px; }
.hero-meta strong { color: var(--ink); font-weight: 650; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--teal);
  border-radius: var(--radius-small);
  color: white;
  background: var(--teal);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { color: white; background: var(--teal-dark); border-color: var(--teal-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--line-strong); }
.button.secondary:hover { color: var(--teal-dark); background: var(--teal-pale); border-color: var(--teal); }
.button.small { min-height: 40px; padding: 9px 15px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: 0.65; }
.button svg { flex: 0 0 auto; width: 18px; height: 18px; }

/* School identities and navigable, quiet cards. */
.school-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 25px 35px; padding-block: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.school-strip > p { max-width: 150px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.school-strip a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 4px 0; color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.school-strip a img { width: auto; max-width: 134px; max-height: 51px; height: auto; object-fit: contain; }
.school-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.school-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 31px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
a.school-card { color: inherit; text-decoration: none; }
.school-card h3 { margin-bottom: 12px; }
.school-card p { margin-bottom: 22px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.school-card .button, .school-card > a:last-child { align-self: flex-start; margin-top: auto; }
div.school-mark { display: flex; align-items: center; min-height: 80px; margin-bottom: 23px; }
.school-mark img, img.school-mark { width: auto; max-width: 180px; max-height: 64px; height: auto; object-fit: contain; }
img.school-mark { margin-bottom: 24px; }
.tag, .badge { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 9px; border-radius: 5px; color: var(--ink-soft); background: var(--soft); font-size: 11px; line-height: 1.55; font-weight: 650; }
.badge { color: var(--teal-dark); background: var(--teal-pale); }
.card-grid, .related-grid, .content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.content-copy { max-width: 900px; }
.course-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
a.course-card { color: inherit; text-decoration: none; }
.card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 25px; }
.card-body h3 { margin-bottom: 12px; font-size: 21px; line-height: 1.3; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--teal); text-decoration: underline; }
.card-body p { margin-bottom: 23px; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 17px; color: var(--ink-soft); font-size: 12px; }
.card-meta a { text-decoration: none; }
.card-arrow { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--teal); font-size: 13px; font-weight: 700; text-decoration: none; }
.card-arrow svg { width: 20px; height: 20px; }
.course-card:hover, a.school-card:hover { border-color: var(--line-strong); }
.domain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.domain-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 126px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-small); color: var(--ink); background: white; text-decoration: none; }
.domain-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.domain-card p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.domain-card:hover { color: var(--teal); background: var(--teal-pale); border-color: var(--line-strong); }
.domain-card:hover h3 { color: var(--teal); }

.split-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5.8vw, 80px); }
.campus-image { overflow: hidden; border-radius: 20px; }
.campus-image img { width: 100%; height: auto; }
.check-list { display: grid; gap: 13px; margin: 25px 0; padding: 0; list-style: none; }
.check-list li { position: relative; margin: 0; padding-left: 29px; color: var(--ink-soft); font-size: 15px; }
.check-list li::before { position: absolute; top: 5px; left: 2px; width: 13px; height: 8px; border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); content: ""; transform: rotate(-45deg); }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; padding-block: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat strong { display: block; margin-bottom: 6px; color: var(--teal); font-size: clamp(28px, 3vw, 42px); font-weight: 650; line-height: 1.2; letter-spacing: -0.04em; }
.stat span, .stat p { display: block; margin: 0; color: var(--ink-soft); font-size: 13px; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.quote-card { display: flex; flex-direction: column; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.quote-card blockquote { margin: 0 0 26px; color: var(--ink); font-size: 17px; line-height: 1.75; }
.quote-card p { margin-bottom: 20px; }
.quote-card cite { font-style: normal; }
.quote-card .avatar { margin-top: auto; }
.avatar { display: flex; align-items: center; gap: 14px; }
.avatar img, img.avatar { flex: 0 0 auto; width: 70px; height: 70px; object-fit: cover; border-radius: 50%; }
.avatar strong { display: block; font-size: 14px; }
.avatar small { display: block; color: var(--ink-soft); font-size: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card { min-width: 0; }
.news-card > img, .news-card > a > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.news-card h3 { margin-block: 12px; font-size: 21px; line-height: 1.35; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.news-card p { color: var(--ink-soft); font-size: 14px; }
.news-card time, .news-card .card-meta { display: block; margin-top: 20px; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: clamp(30px, 4.5vw, 54px); border: 1px solid #d1e3e7; border-radius: 20px; background: var(--teal-pale); }
.cta-panel h2 { max-width: 660px; margin-bottom: 13px; font-size: clamp(27px, 3vw, 37px); }
.cta-panel p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 16px; }
.cta-panel .actions { flex: 0 0 auto; }

/* Inner pages: visible hierarchy, readable content, real links. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding-block: 24px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { margin-right: 10px; color: var(--line-strong); content: "/"; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }
.page-intro { padding-block: 30px 48px; }
.page-intro h1 { max-width: 22ch; margin-bottom: 23px; font-size: clamp(35px, 4.5vw, 56px); }
.page-intro .lead { max-width: 850px; margin-bottom: 0; }
.page-intro .actions { margin-top: 26px; }
.page-intro .card-meta { margin-top: 23px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: start; gap: 62px; padding-bottom: 76px; }
.prose { max-width: 790px; min-width: 0; }
.prose h2 { margin-top: 46px; margin-bottom: 20px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.25; }
.prose > h2:first-child, .prose > section:first-child > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; margin-bottom: 15px; font-size: 23px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { width: auto; max-width: 100%; height: auto; border-radius: 12px; }
.prose figure { margin-block: 30px; }
.prose figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.prose .actions { margin-block: 24px; }
.prose a { overflow-wrap: anywhere; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--soft); font-size: 13px; }
.course-aside { position: sticky; top: 125px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.course-aside h2, .course-aside h3 { margin-bottom: 21px; font-size: 21px; }
.course-aside p { font-size: 14px; }
.course-aside .button { width: 100%; margin-top: 10px; }
.facts-list { margin: 0 0 24px; }
.facts-list dt { margin-top: 18px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; }
.facts-list dt:first-child { margin-top: 0; }
.facts-list dd { margin: 5px 0 0; color: var(--ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.facts-list dd + dt { padding-top: 17px; border-top: 1px solid var(--line); }
.toc { margin: 0 0 31px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-small); background: white; }
.toc h2, .toc h3 { margin: 0 0 13px; font-size: 17px; }
.toc ul, .toc ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.toc li { margin: 0; color: var(--ink-soft); font-size: 14px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.related-grid .course-card .card-body { padding: 23px; }
.content-grid > section, .content-grid > article, .content-grid > .card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); }
.notice { margin: 24px 0; padding: 20px 23px; border-left: 3px solid var(--teal); border-radius: 0 var(--radius-small) var(--radius-small) 0; background: var(--teal-pale); color: var(--ink-soft); font-size: 14px; }
.notice p:last-child { margin-bottom: 0; }

/* Catalogue controls remain native, usable and understandable. */
.filters { margin: 10px 0 34px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 17px; }
.filters label { display: flex; flex: 1 1 150px; flex-direction: column; min-width: 0; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); background: white; font-size: 14px; line-height: 1.5; }
.filters .button { min-height: 46px; }
.filters a:not(.button) { align-self: center; font-size: 13px; }
.results-count { margin: 0 0 25px; color: var(--ink-soft); font-size: 14px; }
.results-count strong { color: var(--ink); }
.empty-state { padding: 45px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-align: center; }
.empty-state h2 { font-size: 27px; }
.empty-state p { max-width: 600px; margin-inline: auto; color: var(--ink-soft); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 42px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 13px; text-decoration: none; }
.pagination a:hover { background: var(--teal-pale); }
.pagination .current, .pagination [aria-current="page"] { color: white; background: var(--teal); border-color: var(--teal); }
.pagination .dots { border: 0; }
.search-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 680px; }
.search-form label { flex: 1 1 200px; min-width: 0; }
.search-form input { width: 100%; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 8px; }

/* Forms and feedback: the template owns validation and submission. */
.csm-form { width: 100%; max-width: 850px; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.csm-contact-form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.form-grid fieldset { margin: 0; padding: 0; border: 0; }
.form-grid legend { margin-bottom: 10px; color: var(--ink); font-size: 13px; line-height: 1.6; font-weight: 650; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; line-height: 1.6; font-weight: 650; }
.field label small, .field .hint { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink);
  background: white;
  font-size: 15px;
  line-height: 1.55;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #78858d; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; margin: 4px 8px 0 0; accent-color: var(--teal); vertical-align: top; }
.field label:has(input[type="checkbox"]), .field label:has(input[type="radio"]) { font-weight: 400; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a73636; }
.field-errors { margin: 8px 0 0; color: #962b2b; font-size: 12px; }
.field-errors li { margin: 0; }
.csm-form .actions { margin-top: 26px; }
.csm-form > p:last-child { margin-bottom: 0; }
.form-notice { margin: 0 0 24px; padding: 19px 22px; border: 1px solid #cce0e5; border-radius: 9px; color: var(--ink); background: var(--teal-pale); font-size: 14px; }
.form-notice.error, .form-notice.is-error { color: #852929; border-color: #ead0d0; background: #fff6f6; }
.form-notice.success, .form-notice.is-success { border-color: #cce0d7; background: #f0f8f4; }
.form-notice p:last-child, .form-notice ul:last-child { margin-bottom: 0; }

/* Genuine photos, partner marks, comparison and FAQ. */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.gallery-item { min-width: 0; margin: 0; }
.gallery-item img { width: 100%; height: auto; border-radius: 12px; }
.gallery-item figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 17px; }
.partner-card { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 124px; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.partner-card img { width: auto; max-width: 100%; max-height: 66px; height: auto; object-fit: contain; }
.table-wrap { max-width: 100%; margin-block: 26px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.comparison-table { width: 100%; border-collapse: collapse; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.table-wrap .comparison-table { min-width: 620px; }
.comparison-table th, .comparison-table td { padding: 17px 20px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.comparison-table thead th { color: var(--ink); background: var(--soft); font-weight: 650; }
.comparison-table tbody th { color: var(--ink); font-weight: 550; }
.comparison-table tr:last-child td, .comparison-table tr:last-child th { border-bottom: 0; }
details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-small); background: white; }
summary { position: relative; padding: 20px 49px 20px 22px; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 23px; right: 23px; width: 9px; height: 9px; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); content: ""; transform: rotate(45deg); }
details[open] > summary::after { top: 27px; transform: rotate(225deg); }
details > p, details > div, details > ul { margin: 0 22px 22px; color: var(--ink-soft); font-size: 15px; }
details > div > p:last-child { margin-bottom: 0; }

.site-footer { padding-block: 55px 24px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 45px; padding-bottom: 40px; }
.footer-grid .brand { margin-bottom: 20px; }
.footer-grid p { max-width: 310px; margin-bottom: 15px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.footer-grid h2, .footer-grid h3 { margin-bottom: 19px; font-size: 14px; letter-spacing: 0; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.footer-grid a:not(.brand) { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:not(.brand):hover { color: var(--teal); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); text-decoration: underline; }

@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .brand { gap: 11px; }
  .brand strong { font-size: 18px; }
  .brand img { width: 56px; }
  .site-nav ul { gap: 19px; }
  .site-nav a { font-size: 13px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 290px); gap: 38px; }
  .school-card { padding: 25px; }
  .domain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { gap: 30px; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 106px; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; min-height: 85px; gap: 0 18px; padding-block: 14px; }
  .brand { max-width: calc(100% - 86px); }
  .header-contact { display: none; }
  body.has-js .menu-toggle { display: inline-flex; }
  .site-nav { display: block; flex: 1 0 100%; width: 100%; margin: 15px 0 0; padding-top: 13px; border-top: 1px solid var(--line); }
  .site-nav > a { display: block; }
  .site-nav ul { flex-wrap: wrap; gap: 5px 25px; }
  .site-nav a { padding-block: 10px; font-size: 14px; }
  body.has-js .site-header:not(.is-open) .site-nav { display: none; }
  body.has-js .site-header.is-open .site-nav { display: block; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 30px; }
  .hero-copy h1 { font-size: clamp(38px, 5.1vw, 50px); }
  .hero-copy .lead { font-size: 16px; }
  .hero .actions { gap: 10px; }
  .hero .button { padding-inline: 16px; font-size: 13px; }
  .school-grid, .card-grid, .related-grid, .content-grid, .quote-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-strip { justify-content: center; gap: 22px 30px; }
  .school-strip > p { flex: 0 0 100%; max-width: none; text-align: center; }
  .school-strip a { flex: 0 0 calc(20% - 26px); }
  .school-strip a img { max-width: 110px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 28px; }
  .course-aside { padding: 23px; top: 106px; }
  .section-head { align-items: flex-start; }
  .section-head > p { max-width: 760px; }
  .cta-panel { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px 40px; }
}

@media (max-width: 767px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; }
  h1 { font-size: clamp(38px, 8vw, 51px); }
  h2 { font-size: clamp(28px, 6vw, 36px); }
  .brand img { width: 48px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 10px; }
  .hero { padding-block: 38px 42px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .hero-copy h1 { max-width: 20ch; font-size: clamp(38px, 8.5vw, 52px); line-height: 1.08; }
  .hero-copy .lead { max-width: 52ch; margin-bottom: 21px; font-size: 17px; }
  .hero-media { width: 100%; }
  .hero-media > img, .hero-media > picture > img { border-radius: 14px; }
  .hero-meta { gap: 10px 14px; font-size: 12px; }
  .hero-meta span + span { padding-left: 14px; }
  .school-strip { padding-block: 25px; gap: 20px 28px; }
  .school-strip a { flex: 0 0 calc(33.333% - 20px); }
  .school-strip a img { max-width: 108px; max-height: 44px; }
  .section { padding-block: 51px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 17px; margin-bottom: 28px; }
  .section-head > p, .section-head .lead { max-width: 100%; margin-top: 0; font-size: 17px; }
  .school-grid, .card-grid, .related-grid, .content-grid, .quote-grid, .news-grid { gap: 19px; }
  .school-card { padding: 25px; }
  .card-body { padding: 22px; }
  .card-body h3 { font-size: 20px; }
  .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .domain-card { min-height: 116px; padding: 20px; }
  .domain-card h3 { font-size: 17px; }
  .split-section { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .campus-image { border-radius: 14px; }
  .stats-row { gap: 17px; padding-block: 25px; }
  .stat span, .stat p { font-size: 12px; }
  .cta-panel { padding: 29px; border-radius: 14px; }
  .breadcrumbs { padding-block: 19px; }
  .page-intro { padding-block: 19px 34px; }
  .page-intro h1 { font-size: clamp(34px, 7vw, 46px); }
  .page-intro .lead { font-size: 17px; }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-bottom: 48px; }
  .course-aside { position: static; max-width: 100%; }
  .prose h2 { margin-top: 34px; font-size: 27px; }
  .prose h3 { font-size: 22px; }
  .filters { padding: 22px; }
  .filter-row { gap: 16px; }
  .filters label { flex-basis: calc(50% - 8px); }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .partner-card { min-height: 100px; padding: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .footer-grid { gap: 31px; }
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .header-inner { min-height: 79px; padding-block: 13px; }
  .brand { gap: 9px; }
  .brand img { width: 44px; }
  .brand strong { font-size: 16px; }
  .brand small { max-width: 170px; font-size: 9px; letter-spacing: 0.025em; }
  .menu-toggle { min-height: 42px; padding: 8px 11px; font-size: 12px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { display: block; padding-block: 12px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy .lead { font-size: 16px; }
  .hero .actions { align-items: stretch; }
  .hero .actions .button { flex: 1 1 155px; }
  .hero-meta span + span { padding-left: 0; border-left: 0; }
  .school-grid, .card-grid, .related-grid, .content-grid, .quote-grid, .news-grid { grid-template-columns: minmax(0, 1fr); }
  .school-strip a { flex-basis: calc(33.333% - 20px); }
  .school-strip a img { max-width: 90px; }
  .school-card, .quote-card { padding: 26px; }
  .domain-card { padding: 18px; }
  .domain-card h3 { font-size: 16px; }
  .stats-row { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat strong { flex: 0 0 auto; margin-bottom: 0; font-size: 34px; }
  .stat span, .stat p { max-width: 230px; }
  .cta-panel { padding: 26px; }
  .cta-panel .actions { width: 100%; }
  .cta-panel .button { flex: 1 1 auto; }
  .page-intro h1 { font-size: 35px; }
  .filters { padding: 19px; }
  .filters label { flex: 1 1 100%; }
  .filters .button { flex: 1 1 100%; }
  .filters a:not(.button) { padding-block: 5px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .csm-form { padding: 23px; }
  .csm-form .actions .button { width: 100%; }
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .comparison-table th, .comparison-table td { padding: 14px 16px; }
  summary { padding-left: 19px; font-size: 15px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-grid .brand { max-width: 100%; }
  .footer-grid p { max-width: 100%; }
  .footer-grid h2, .footer-grid h3 { margin-bottom: 13px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .menu-toggle, .filters, .pagination, .csm-form, .skip-link { display: none; }
  body { font-size: 11pt; color: black; }
  .container { width: 100%; max-width: none; }
  .hero, .section, .page-intro { padding-block: 18px; }
  .content-layout { display: block; }
  .course-aside { position: static; margin-top: 25px; }
  h1, h2, h3 { break-after: avoid; }
  .course-card, .school-card, .quote-card, figure { break-inside: avoid; }
  .table-wrap { overflow: visible; border: 0; }
  .table-wrap .comparison-table { min-width: 0; }
  .button { color: black; background: white; border-color: #888; }
}
