:root {
  color-scheme: light;
  --navy: #071b3d;
  --navy-light: #223254;
  --blue: #174291;
  --blue-bright: #2659bd;
  --red: #cc1b29;
  --muted: #50607a;
  --pale: #f3f6fc;
  --line: #e2e8f2;
  --white: #fff;
  --shadow: 0 20px 60px #0b2d6510;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 5px; }
main:focus { outline: none; }
.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 8px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  padding: .7rem 1rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.arrow { line-height: 1; font-size: 1.12em; transition: transform .2s ease; }
a:hover > .arrow { transform: translateX(3px); }

/* Global navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.utility { background: var(--navy); color: #e5edfb; }
.utility-inner, .utility-inner nav { display: flex; align-items: center; gap: 14px; }
.utility-inner { justify-content: space-between; min-height: 32px; font-size: .72rem; font-weight: 500; }
.utility-inner > a i { color: #ff8790; margin-right: 6px; }
.utility-inner nav a { display: grid; place-items: center; min-width: 26px; min-height: 30px; }
.utility-inner a:hover { color: var(--white); }
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; font-size: .98rem; line-height: 1.18; letter-spacing: -.025em; font-weight: 800; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand small { display: block; font-size: .75rem; color: #bdcbe5; font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 1.85vw, 28px); font-size: .82rem; font-weight: 650; }
.main-nav > a:not(.portal-link) { position: relative; white-space: nowrap; padding-block: 12px; color: #35435b; }
.main-nav > a:not(.portal-link):hover, .main-nav > a[aria-current] { color: var(--blue); }
.main-nav > a[aria-current]::after { content: ""; position: absolute; bottom: 3px; inset-inline: 0; height: 2px; border-radius: 8px; background: var(--red); }
.portal-link { display: inline-flex; gap: 12px; align-items: center; white-space: nowrap; padding: 12px 17px; border-radius: 24px; background: var(--blue); color: var(--white); font-weight: 750; }
.portal-link:hover { background: #0e347b; }
.menu-toggle { display: none; }

/* Home introduction and campus photography */
.grid-bg {
  background-image:
    radial-gradient(ellipse at 98% 20%, #f9e9f199, transparent 53%),
    radial-gradient(ellipse at 2% 30%, #e6efff, transparent 51%),
    linear-gradient(120deg, #fcfdff, #f7f9fd 60%, #fff);
}
.hero { position: relative; overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 51%;
  height: 82%;
  opacity: .45;
  background-image: linear-gradient(#17429108 1px, transparent 1px), linear-gradient(90deg, #17429108 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 4.2vw, 64px);
  align-items: center;
  padding-block: 68px 90px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: .7rem;
  line-height: 1.4;
  letter-spacing: .12em;
  font-weight: 750;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 23px; height: 2px; background: var(--red); }
.hero h1 {
  margin: 20px 0 20px;
  font-size: clamp(3.25rem, 5.3vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.065em;
}
.gradient-text {
  color: var(--blue);
  background: linear-gradient(100deg, #174291 4%, #4b428a 51%, #c0213b 99%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { max-width: 34ch; font-size: clamp(.99rem, 1.4vw, 1.12rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 23px; margin-top: 30px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: .84rem; font-weight: 700; }
.button { min-height: 48px; border-radius: 26px; border: 1px solid transparent; padding: 11px 20px; background: var(--blue); color: var(--white); transition: background .2s, box-shadow .2s; }
.button:hover { background: #0e347b; box-shadow: 0 5px 15px #1742911a; }
.button-light { color: var(--blue); background: var(--white); border-color: #cfdaeb; }
.button-light:hover { background: #f2f6fd; box-shadow: none; }
.text-link { min-height: 44px; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero-visual { position: relative; min-width: 0; margin-right: -16px; }
.hero-image { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 58px #10265e22; background: #afbed7; }
.hero-image img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.photo-expand {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid #ffffff88;
  border-radius: 50%;
  background: #071b3d6e;
  color: var(--white);
  backdrop-filter: blur(10px);
}
.photo-expand:hover { background: #071b3dd0; }
.gallery-caption { display: flex; align-items: center; gap: 11px; font-size: .85rem; font-weight: 650; }
.gallery-caption > i { color: var(--red); font-size: 1rem; }
.gallery-caption small { display: block; color: var(--muted); font-size: .71rem; font-weight: 400; margin-top: 1px; }
.photo-dialog { width: min(1320px, calc(100% - 40px)); max-height: calc(100% - 40px); padding: 13px; border: 1px solid #ffffff44; border-radius: 20px; background: var(--navy); color: var(--white); overflow: auto; }
.photo-dialog::backdrop { background: #020b1ae8; backdrop-filter: blur(8px); }
.photo-dialog figure img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 11px; }
.photo-dialog figcaption { font-size: .85rem; padding: 12px 4px 1px; color: #dce6f7; }
.photo-close { position: absolute; right: 22px; top: 22px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: #fffffff0; border: 0; border-radius: 50%; }
body:has(.photo-dialog[open]) { overflow: hidden; }

/* Family shortcuts */
.quick-section { position: relative; z-index: 1; margin-top: -34px; }
.community-hub { display: grid; grid-template-columns: 1fr 2.8fr; gap: 17px; }
.portal-card { display: flex; align-items: center; gap: 15px; padding: 25px 24px; border-radius: 24px; background: linear-gradient(130deg, #174291, #0e2e67); color: var(--white); }
.portal-card > span:nth-child(2) { flex: 1; }
.portal-card strong { display: block; font-size: 1.08rem; font-weight: 750; letter-spacing: -.03em; }
.portal-card small { display: block; color: #d0def4; font-size: .73rem; margin-top: 4px; }
.portal-card:hover { background: #0e2e67; }
.portal-card-icon { display: grid; place-items: center; width: 34px; height: 34px; font-size: 1.1rem; }
.family-access { min-width: 0; background: var(--white); padding: 18px 17px 12px; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 40px #0d35670a; }
.family-access h2 { padding-left: 10px; margin-bottom: 8px; color: var(--muted); font-size: .7rem; line-height: 1.4; letter-spacing: .055em; font-weight: 650; text-transform: uppercase; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.quick-link { display: flex; align-items: center; gap: 13px; min-height: 57px; padding: 6px 12px; border-radius: 15px; transition: background .2s; }
.quick-link + .quick-link { border-left: 1px solid var(--line); border-radius: 0; }
.quick-link:hover { background: #f6f9ff; }
.quick-mark, .contact-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 13px; background: #eef3fc; color: var(--blue); }
.quick-label { min-width: 0; flex: 1; }
.quick-label strong, .quick-label small { display: block; }
.quick-label strong { font-size: .91rem; line-height: 1.2; font-weight: 750; }
.quick-label small { font-size: .71rem; color: var(--muted); margin-top: 5px; }
.quick-link > .arrow { color: #8392a9; }
.quick-link:nth-child(2) .quick-mark { color: #bd2334; background: #fff0f2; }

/* Editorial news */
.news-section { padding-block: 76px 80px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.section-heading h2, .identity-content h2 { font-size: clamp(2.3rem, 3.8vw, 3.7rem); font-weight: 800; letter-spacing: -.055em; }
.section-heading h2::before, .center-title::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 15px; background: var(--red); border-radius: 6px; }
.section-heading p { color: var(--muted); margin-top: 10px; }
.news-mosaic { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: repeat(2, 214px); gap: 20px 36px; }
.news-mosaic > :first-child { grid-row: span 2; }
.news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.news-card { min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.news-card-image { display: block; aspect-ratio: 1.7; overflow: hidden; background: #dce7f9; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card-image img[src="media/news-corrida.jpg"] { object-position: center 29%; }
.news-card:hover .news-card-image img { transform: scale(1.04); }
.news-card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 20px; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--muted); font-size: .71rem; font-weight: 500; }
.news-tag { border-radius: 20px; background: #e8effc; color: var(--blue); font-size: .67rem; font-weight: 750; padding: 4px 9px; }
.news-tag[data-category="Deportes"] { background: #fff0f2; color: #a41222; }
.news-tag[data-category="Cultura"] { background: #f0edfb; color: #57378e; }
.news-tag[data-category="Aprendizaje"] { background: #e9f2fd; color: #224988; }
.news-card h3 { font-size: clamp(1.19rem, 1.7vw, 1.6rem); font-weight: 750; margin: 10px 0 9px; letter-spacing: -.035em; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.news-card h3 a:hover { color: var(--blue); }
.news-card h3 a:focus-visible { outline: none; }
.news-card:focus-within { outline: 3px solid var(--blue-bright); outline-offset: 4px; }
.news-card p { color: var(--muted); font-size: .86rem; margin-bottom: 15px; }
.card-cta { margin-top: auto; font-size: .77rem; font-weight: 700; color: var(--blue); }
.news-card--featured { justify-content: flex-end; min-height: 446px; background: var(--navy); color: var(--white); border: 0; border-radius: 24px; isolation: isolate; }
.news-card--featured .news-card-image { position: absolute; inset: 0; aspect-ratio: auto; z-index: -2; }
.news-card--featured::after { content: ""; position: absolute; inset: 15% 0 0; background: linear-gradient(transparent, #071b3d9c 47%, #071b3df7 100%); z-index: -1; }
.news-card--featured .news-card-copy { flex: none; padding: 28px; }
.news-card--featured .news-meta { color: #ebf0f8; }
.news-card--featured .news-tag { background: #ffffffed; color: #354167; }
.news-card--featured h3 { font-size: clamp(1.65rem, 2.6vw, 2.55rem); max-width: 20ch; letter-spacing: -.045em; }
.news-card--featured h3 a:hover { color: var(--white); }
.news-card--featured p { color: #e0e7f3; max-width: 40ch; }
.news-card--featured .card-cta { color: var(--white); margin-top: 4px; }
.news-card--compact { display: grid; grid-template-columns: minmax(135px,.8fr) minmax(0,1fr); gap: 22px; border: 0; border-radius: 0; background: transparent; align-items: center; overflow: visible; padding-block: 0 20px; border-bottom: 1px solid var(--line); }
.news-card--compact:last-child { padding-block: 0; border-bottom: 0; }
.news-card--compact .news-card-image { height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 20px; }
.news-card--compact .news-card-copy { padding: 5px 0; }
.news-card--compact h3 { font-size: clamp(1.2rem, 1.8vw, 1.65rem); }
.news-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.preview-note { color: var(--muted); font-size: .75rem; }
.archive .preview-note { margin-top: 22px; }

/* School identity */
.identity { position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); color: var(--white); }
.identity-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(28px, 5vw, 70px); padding: clamp(28px, 4.2vw, 60px); align-items: center; }
.identity-content .eyebrow { color: #b5cbed; }
.identity-content .eyebrow::before { background: #f75e6a; }
.identity-content h2 { margin: 17px 0 18px; line-height: 1.08; }
.identity-content p { color: #c5d1e5; max-width: 43ch; font-size: .95rem; }
.identity-content .button { margin-top: 25px; }
.identity-content .button-light { border-color: transparent; }
.identity-photo { position: relative; overflow: hidden; border-radius: 24px; }
.identity-photo img { width: 100%; height: 430px; object-fit: cover; object-position: 48% 58%; }
.seal-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 12px; list-style: none; margin: 26px 0 0; padding: 0; }
.seal-list li { display: flex; gap: 10px; align-items: center; font-size: .76rem; font-weight: 550; color: #e2eaf7; }
.seal-list i { color: #91b8f2; width: 18px; font-size: 1rem; text-align: center; }

/* People and visits */
.family-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5.7vw, 86px); align-items: center; padding-block: 86px; }
.community-photo { border-radius: 24px; overflow: hidden; }
.community-photo img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: center bottom; }
.community-copy .section-heading { margin-bottom: 20px; }
.community-links { display: grid; }
.community-links a { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 0; font-size: .95rem; font-weight: 650; border-bottom: 1px solid var(--line); }
.community-links a:hover { color: var(--blue); }
.community-links .arrow { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.visit-band { background: #f3f6fc; border-top: 1px solid var(--line); }
.visit-inner { display: flex; align-items: center; gap: 24px; padding-block: 38px; }
.visit-inner > div:nth-child(2) { flex: 1; }
.visit-inner h2 { font-size: 1.7rem; font-weight: 750; }
.visit-inner p { color: var(--muted); margin-top: 7px; font-size: .88rem; }
.visit-icon { display: grid; place-items: center; width: 64px; height: 64px; background: #e7edf9; border-radius: 20px; color: var(--blue); font-size: 1.5rem; }

/* Interior pages */
.inner-hero { position: relative; border-bottom: 1px solid var(--line); padding: 23px 0 54px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 28px; color: var(--muted); font-size: .77rem; font-weight: 500; }
.breadcrumb a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.center-title { text-align: center; }
.center-title::before { width: 44px; margin: 0 auto 20px; }
.inner-hero h1 { font-size: clamp(2.55rem, 5.35vw, 4.6rem); font-weight: 800; letter-spacing: -.055em; max-width: 24ch; margin-inline: auto; }
.inner-hero p { margin: 17px auto 0; color: var(--muted); max-width: 64ch; font-size: clamp(.99rem, 1.3vw, 1.1rem); }
.inner-hero--article .center-title { text-align: left; }
.inner-hero--article .center-title::before { margin-inline: 0; }
.inner-hero--article h1, .inner-hero--article p { margin-inline: 0; }
.detail-content { padding-block: 48px 80px; }
.detail-content section + section { margin-top: 48px; }
.detail-content h2 { font-size: clamp(1.65rem, 2.7vw, 2.25rem); letter-spacing: -.04em; margin-bottom: 17px; font-weight: 750; }
.detail-content h3 { font-size: 1.15rem; margin-bottom: 9px; font-weight: 750; }
.detail-content p, .detail-content ul { color: var(--muted); }
.detail-content p { max-width: 68ch; }
.detail-content p + p { margin-top: 13px; }
.detail-content section > p { margin-bottom: 17px; }
.detail-content a:not(.button, .staff-shortcut) { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.detail-content a:hover { color: #a41222; }
.detail-content .button:hover { color: var(--white); }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 15px; }
.detail-card { min-width: 0; background: #f8faff; border: 1px solid var(--line); border-radius: 20px; padding: 25px; }
.detail-card ul { padding-left: 1.1em; margin: 10px 0 0; }
.sellos-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sellos-grid .quick-mark { margin-bottom: 20px; }
.resource-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.resource-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 15px; background: #f7f9fd; border: 1px solid var(--line); border-radius: 14px; padding: 16px 19px; }
.resource-row:hover { background: #edf3fc; }
.school-intro { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(25px, 4vw, 55px); margin-bottom: 45px; }
.school-intro img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 24px; }
.school-intro h2 { margin-top: 14px; }
.school-intro .text-link { margin-top: 13px; }
.history { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 0; margin: 24px 0 16px; }
.history li { position: relative; border-top: 1px solid #b8c9e3; padding: 22px 18px 10px 0; }
.history li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--red); border-radius: 50%; }
.history-year { display: inline-block; color: var(--blue); font-size: .78rem; font-weight: 750; margin-bottom: 15px; }
.staff-group { width: fit-content; max-width: 100%; margin: 0 auto 42px; border-radius: 24px; overflow: hidden; background: #f4f7fd; }
.staff-group img { width: auto; height: auto; max-height: 540px; }
.staff-shortcut { display: flex; min-height: 88px; align-items: center; color: var(--blue); gap: 15px; padding: 17px; font-weight: 700; background: #f4f7fc; border: 1px solid var(--line); border-radius: 20px; }
.staff-shortcut span:nth-child(2) { flex: 1; }
.staff-shortcut:hover { background: #eaf1fc; }
.staff-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.staff-list--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.person { min-width: 0; overflow: hidden; border-radius: 20px; background: var(--white); border: 1px solid var(--line); }
.person--photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; }
.person-copy { padding: 20px 17px; }
.person h3 { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.3; letter-spacing: -.025em; margin-bottom: 9px; }
.person-role { display: inline-block; font-size: .68rem; font-weight: 650; line-height: 1.4; background: #fff0f2; color: #a41222; padding: 4px 9px; border-radius: 18px; }
.documents-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 22px; }
.doc-card { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 20px; background: var(--white); padding: clamp(22px, 3vw, 36px); }
.doc-card .doc-actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 20px; }
.doc-card iframe { display: block; width: 100%; height: clamp(390px, 60vw, 690px); margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: #edf2fa; }
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; }
.contact-panel, .contact-map { min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--white); overflow: hidden; }
.contact-panel { padding: clamp(22px, 3vw, 32px); }
.contact-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border: 0; padding-bottom: 0; }
.contact-row h3 { font-size: .95rem; margin: 0 0 3px; }
.contact-row p, .contact-row a { font-size: .86rem; }
.contact-map { display: flex; flex-direction: column; }
.contact-map > iframe { display: block; width: 100%; flex: 1; min-height: 310px; border: 0; background: #edf4ff; }
.contact-map figcaption { padding: 17px 21px; }
.contact-map figcaption .text-link { min-height: 32px; }
.family-card { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: #f7faff; }
.family-card:hover { background: #edf3fc; }

/* Archive and articles */
.archive { padding-block: 38px 80px; }
.filters { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.filter-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button { background: var(--white); color: var(--blue); border: 1px solid var(--line); border-radius: 24px; padding: 9px 16px; min-height: 40px; font-size: .78rem; font-weight: 650; }
.filter-button:hover { border-color: #9cb7e4; }
.filter-button[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.search-field { width: min(255px, 100%); font-size: .79rem; font-weight: 650; }
.search-field input { display: block; min-height: 44px; width: 100%; border: 1px solid #b4c4dc; border-radius: 12px; padding: 8px 13px; margin-top: 5px; background: var(--white); color: var(--navy); }
.results-status { color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.empty-state { padding: 26px; grid-column: 1/-1; border: 1px dashed var(--line); border-radius: 20px; }
.article { max-width: 830px; margin: 0 auto; padding-block: 38px 80px; }
.article-figure { overflow: hidden; border-radius: 24px; background: #f2f6fc; border: 1px solid var(--line); }
.article-figure img { width: 100%; max-height: 580px; object-fit: contain; }
.article-copy { max-width: 67ch; margin: 30px auto 0; line-height: 1.8; }
.article-copy p + p { margin-top: 18px; }
.article-copy .text-link { margin-top: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,minmax(0,1fr)); gap: 30px; padding-block: 54px 45px; }
.footer-identity p { max-width: 25ch; margin-top: 20px; font-size: .83rem; color: #bac8e0; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-nav h2 { font-size: .87rem; letter-spacing: -.01em; margin-bottom: 4px; font-weight: 650; }
.footer-nav a, .footer-base a { font-size: .8rem; color: #c8d4e8; }
.footer-social { gap: 4px; }
.footer-social h2 { margin-bottom: 6px; }
.footer-social a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; }
.footer-social .fa-brands { width: 1.1em; text-align: center; font-size: 1rem; }
.footer-social-arrow { font-size: .78em; }
.footer-social a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 640px) {
  .footer-social { gap: 0; }
  .footer-social a { min-height: 44px; }
}
.footer-nav a:hover, .footer-base a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff20; padding-block: 18px; font-size: .74rem; color: #aebfdc; }
.no-script { padding-block: 40px; }

@media (max-width: 1140px) {
  .wrap { width: calc(100% - 72px); }
  .main-nav { font-size: .76rem; gap: 14px; }
  .header-inner { gap: 18px; }
  .quick-link { gap: 10px; padding-inline: 12px; }
  .community-hub { grid-template-columns: 1fr 3fr; gap: 13px; }
  .portal-card { gap: 10px; padding: 20px 17px; }
  .portal-card-icon { display: none; }
  .quick-mark { width: 36px; height: 36px; }
  .hero h1 { font-size: 5.6vw; }
  .news-mosaic { gap: 20px 24px; }
  .news-card--compact { gap: 17px; }
  .seal-list { grid-template-columns: 1fr; gap: 11px; }
}
@media (max-width: 970px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { min-height: 72px; }
  .brand img { width: 47px; height: 47px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 12px; background: #f4f8ff; color: var(--blue); border: 1px solid var(--line); border-radius: 12px; font-size: .85rem; font-weight: 700; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 14px 24px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 6px 20px; font-size: .86rem; }
  .main-nav .portal-link { justify-self: start; }
  .main-nav > a[aria-current]::after { right: auto; width: 28px; }
  .hero-inner { gap: 27px; padding-block: 48px 72px; grid-template-columns: .9fr 1.1fr; }
  .hero h1 { font-size: 6vw; letter-spacing: -.06em; }
  .hero-visual { margin-right: 0; }
  .hero-actions { gap: 10px 17px; }
  .gallery-caption small { display: none; }
  .gallery-caption { font-size: .75rem; }
  .quick-link > .arrow { display: none; }
  .family-access { padding-inline: 10px; }
  .portal-card { padding: 18px 14px; }
  .portal-card strong { font-size: 1rem; }
  .quick-label strong { font-size: .85rem; }
  .quick-label small { font-size: .68rem; }
  .quick-mark { width: 32px; height: 32px; }
  .news-section, .family-band { padding-block: 60px; }
  .news-card--featured { min-height: 420px; }
  .news-card--compact { grid-template-columns: minmax(95px,.75fr) minmax(0,1fr); }
  .news-card--compact .news-card-image { min-height: 0; }
  .news-card--compact h3 { font-size: 1.18rem; }
  .news-card--compact p { font-size: .8rem; }
  .news-card--compact .card-cta { display: none; }
  .identity-grid { gap: 24px; padding: 30px; }
  .identity-photo img { height: 430px; }
  .identity-content h2 { font-size: 2.45rem; }
  .family-band { gap: 28px; }
  .community-photo img { aspect-ratio: 1.25; }
  .staff-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .utility-inner { min-height: 28px; }
  .utility-inner nav a { min-height: 28px; }
  .header-inner { min-height: 67px; }
  .brand { font-size: .88rem; }
  .brand img { width: 44px; height: 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 27px; padding-block: 29px 54px; }
  .hero h1 { font-size: clamp(2.85rem, 11.7vw, 4.2rem); margin: 14px 0 17px; }
  .hero p { max-width: 39ch; font-size: .98rem; }
  .hero-actions { margin-top: 21px; }
  .hero-image { border-radius: 20px; }
  .hero::after { inset-inline-start: 10%; }
  .photo-expand { right: 10px; top: 10px; width: 32px; height: 32px; }
  .gallery-caption { font-size: .76rem; }
  .photo-dialog { width: calc(100% - 20px); padding: 8px; }
  .photo-close { right: 16px; top: 16px; }
  .quick-section { margin-top: -24px; }
  .community-hub { grid-template-columns: 1fr; gap: 10px; }
  .portal-card { min-height: 77px; padding: 15px 20px; border-radius: 20px; }
  .portal-card-icon { display: grid; }
  .portal-card strong { font-size: 1.02rem; }
  .portal-card small { margin-top: 1px; }
  .family-access { padding: 17px 10px 12px; border-radius: 20px; }
  .family-access h2 { padding-inline: 0; text-align: center; margin-bottom: 14px; }
  .quick-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quick-link { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-height: 66px; padding: 5px; border-radius: 0; }
  .quick-link + .quick-link { border-left: 1px solid var(--line); }
  .quick-mark { width: 34px; height: 34px; border-radius: 10px; }
  .quick-label strong { font-size: .77rem; }
  .quick-label small { display: none; }
  .news-section, .detail-content, .family-band, .archive { padding-block: 38px 46px; }
  .section-heading { display: block; margin-bottom: 21px; }
  .section-heading h2 { font-size: 2.3rem; }
  .section-heading p { font-size: .94rem; }
  .section-heading .button, .section-heading .text-link { margin-top: 17px; }
  .news-mosaic, .news-grid, .detail-grid, .contact-grid, .school-intro, .identity-grid, .history, .family-band { grid-template-columns: 1fr; gap: 20px; }
  .news-mosaic > :first-child { grid-row: auto; }
  .news-mosaic { grid-template-rows: none; }
  .news-card--featured { min-height: 405px; }
  .news-card--featured h3 { font-size: 1.9rem; }
  .news-card--featured .news-card-copy { padding: 24px; }
  .news-card--compact { grid-template-columns: minmax(100px,.72fr) minmax(0,1fr); gap: 16px; padding-bottom: 20px; }
  .news-card--compact .news-card-image { height: 180px; min-height: 0; border-radius: 16px; }
  .news-card--compact .news-card-copy { padding: 3px 0; }
  .news-card--compact h3 { font-size: 1.16rem; }
  .news-card--compact p { font-size: .81rem; }
  .news-foot { gap: 10px; margin-top: 20px; }
  .news-foot .text-link { min-height: 34px; }
  .identity { border-radius: 24px; }
  .identity-grid { padding: 27px 24px; gap: 30px; }
  .identity-content h2 { font-size: 2.5rem; }
  .identity-content p { font-size: .91rem; }
  .seal-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 13px; }
  .seal-list li { align-items: flex-start; line-height: 1.45; font-size: .72rem; }
  .seal-list i { margin-top: 3px; flex: none; }
  .identity-photo img { height: auto; aspect-ratio: 4/3; }
  .community-photo img { aspect-ratio: 1.65; }
  .community-copy .section-heading { margin: 10px 0; }
  .visit-inner { flex-wrap: wrap; gap: 14px; padding-block: 26px; }
  .visit-icon { width: 45px; height: 45px; font-size: 1.1rem; border-radius: 13px; }
  .visit-inner h2 { font-size: 1.35rem; }
  .visit-inner p { font-size: .81rem; }
  .visit-inner .button { margin-left: 59px; }
  .inner-hero { padding-bottom: 36px; }
  .inner-hero h1 { font-size: 2.65rem; }
  .breadcrumb { margin-bottom: 24px; font-size: .73rem; }
  .detail-content section + section { margin-top: 35px; }
  .detail-grid { gap: 14px; }
  .detail-card { padding: 22px; }
  .history { margin-top: 29px; }
  .history li { border-top: 0; border-left: 1px solid #b8c9e3; padding: 0 0 12px 22px; }
  .history li::before { top: 3px; left: -5px; }
  .history-year { margin-bottom: 9px; }
  .staff-list, .staff-list--three { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .person h3 { font-size: .91rem; }
  .person-copy { padding: 13px 11px; }
  .person-role { font-size: .65rem; }
  .staff-group { margin-bottom: 29px; border-radius: 20px; }
  .article { padding-block: 28px 47px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; padding-block: 35px; }
  .footer-identity { grid-column: 1/-1; }
}
@media (max-width: 355px) {
  .quick-mark { width: 28px; height: 28px; }
  .hero h1 { font-size: 2.8rem; }
  .gallery-caption { font-size: .7rem; }
  .seal-list { grid-template-columns: 1fr; gap: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes enter-hero {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-copy { animation: enter-hero .55s ease both; }
  .hero-visual { animation: enter-hero .65s .08s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

