/* CAAS public site — Design B "Navy Hero"
   Navy #1F4E79 (primary) · Gold #C9A227 (accent, decorative/large only) · Light #EEF3F8
   Headings: Lora · Body: Source Sans 3
   Contrast notes: gold is never used for small text on white. On navy, small accent text uses --gold-light (≥4.5:1). */

:root {
  --navy: #1F4E79;
  --navy-dark: #14304D;
  --navy-deep: #0F2740;
  --gold: #C9A227;
  --gold-light: #E6CB6E;
  --bg-light: #EEF3F8;
  --ink: #1B2733;
  --muted: #4A5868;
  --line: #D5DFEA;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(15, 39, 64, .06), 0 6px 20px rgba(15, 39, 64, .06);
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .15em; }
a:hover { color: var(--navy-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy-dark); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.prose-narrow { max-width: 780px; }
.container.prose-narrow { width: min(100% - 2.5rem, 780px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: var(--white); color: var(--navy-dark); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .95rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-deep); color: var(--white); position: relative; z-index: 10; border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; }
.wordmark:hover { color: var(--white); }
.wordmark-mark { font-family: var(--font-serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .08em; padding-right: .75rem; border-right: 2px solid var(--gold); line-height: 1; }
.wordmark-full { font-size: .82rem; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; color: #DCE6F0; }
.wordmark-logo { height: 48px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; }
.site-nav a { display: block; color: #E8EEF5; text-decoration: none; padding: .55rem .7rem; font-weight: 600; font-size: 1rem; border-radius: var(--radius); }
.site-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: transparent; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius); color: var(--white); cursor: pointer; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; content: ""; }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-deep); border-bottom: 3px solid var(--gold); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .8rem .5rem; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: .9rem; }
  .no-js .site-nav { display: block; position: static; }
}

/* ---------- Hero (navy landscape) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    url("../img/hero-landscape.svg") center bottom / 100% auto no-repeat,
    radial-gradient(ellipse at 75% 10%, #2F6699 0%, transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold-light); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin-bottom: .75rem; }
.hero .eyebrow a { color: var(--gold-light); }
.hero-text { font-size: 1.2rem; color: #E2EAF3; max-width: 720px; }
.hero-home { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(6rem, 13vw, 10rem); }
.hero-home h1 { max-width: 900px; font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.hero-home .hero-text { font-size: 1.3rem; }
.hero-inner { padding: 3.5rem 0 4.5rem; }
.hero-inner.has-photo { padding: 5rem 0 5.5rem; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(30%); }
.hero-inner.has-photo .container { position: relative; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1.05rem; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-tight { padding-top: 1.5rem; }
.section-tint { background: var(--bg-light); }
.section-title { position: relative; padding-bottom: .6rem; margin-bottom: 1.75rem; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.section-head a { font-weight: 700; }

/* ---------- Prose (editable content) ---------- */
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--gold); color: var(--muted); font-style: italic; }
.prose .lead, .lead { font-size: 1.28rem; line-height: 1.6; color: var(--navy-dark); }
.prose ul.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.prose ul.cards li { background: var(--bg-light); border-top: 3px solid var(--navy); padding: 1.1rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); margin: 0; }
.prose ul.cards li strong { display: block; font-family: var(--font-serif); color: var(--navy-dark); font-size: 1.15rem; margin-bottom: .25rem; }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: 1rem; min-height: 2.2rem; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 1.8rem; }
.prose ul.checklist li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .7rem; height: .4rem; border-left: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: rotate(-45deg); }

.badge { display: inline-block; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--bg-light); color: var(--navy-dark); border: 1px solid var(--line); }
.badge-planned { background: #FBF3D9; color: #5C4600; border-color: var(--gold); }
.notice { margin: 2rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--navy); background: var(--bg-light); border-radius: 0 var(--radius) var(--radius) 0; }
.notice-planned { border-left-color: var(--gold); background: #FDF8E8; }
.notice > *:last-child { margin-bottom: 0; }

/* Content placeholders: deliberately loud so reviewers notice them. */
.placeholder { border: 2px dashed var(--gold); background: #FFFBEB; color: #5C4600; padding: .9rem 1.1rem; border-radius: var(--radius); font-size: 1rem; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); padding: 1.6rem; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 4px solid var(--navy); transition: transform .15s ease; }
.feature:hover { transform: translateY(-2px); color: var(--ink); }
.feature h3 { margin-top: .5rem; }
.feature p { color: var(--muted); }
.feature-more { margin-top: auto; font-weight: 700; color: var(--navy); }
.feature .badge { margin-bottom: .2rem; }

/* ---------- Schools ---------- */
.school-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.school-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.school-card a:hover h3 { text-decoration: underline; }
.school-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.school-card-media > img:first-child:not(.school-card-logo) { width: 100%; height: 100%; object-fit: cover; }
.school-card-media.is-empty { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }
.school-card-logo { position: absolute; left: .75rem; bottom: .75rem; max-height: 52px; max-width: 70%; width: auto; background: var(--white); padding: .3rem .45rem; border-radius: 4px; }
.school-card-mark { position: absolute; left: .75rem; bottom: .75rem; font-family: var(--font-serif); font-weight: 700; color: var(--navy-dark); background: var(--white); padding: .2rem .6rem; border-radius: 4px; letter-spacing: .06em; border-bottom: 3px solid var(--gold); }
.school-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.school-card-body h3 { font-size: 1.15rem; }
.school-card-body p { color: var(--muted); margin-bottom: .75rem; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 1rem 0 0; margin: 0; font-size: .95rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: .4rem; color: var(--muted); }
.school-layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 900px) { .school-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--bg-light); border-radius: var(--radius); padding: 1.4rem; border-top: 4px solid var(--navy); }
.contact-logo { max-height: 80px; width: auto; background: var(--white); padding: .4rem; border-radius: 4px; margin-bottom: 1rem; }
.contact-title { font-size: 1.2rem; margin-bottom: .75rem; }
.contact-title a { text-decoration: none; }
.contact-lines { margin: 0; font-size: 1rem; }
.contact-lines dt { font-weight: 700; color: var(--navy-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .75rem; }
.contact-lines dd { margin: 0; overflow-wrap: anywhere; }
.contact-lines address { font-style: normal; }
.governance-note { font-size: .95rem; color: var(--muted); margin-top: 1rem; padding-left: .9rem; border-left: 3px solid var(--gold); }
.school-mark { display: inline-block; font-family: var(--font-serif); font-weight: 700; color: var(--white); background: var(--navy); padding: .2rem .6rem; border-radius: 4px; letter-spacing: .06em; }
.school-mark-lg { font-size: 1.6rem; margin-bottom: .75rem; }

.directory { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- News ---------- */
.news-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.news-card h3 { font-size: 1.15rem; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--muted); font-size: 1rem; }
.news-meta { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.tag { display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; background: var(--navy); color: var(--white); padding: .1rem .45rem; border-radius: 3px; margin-right: .35rem; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter a { padding: .45rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.filter a[aria-current="page"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pager { display: flex; gap: .4rem; margin-top: 2rem; }
.pager a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--navy); color: var(--white); }
.post-figure { margin: 0 0 2rem; }
.post-figure img { border-radius: var(--radius); width: 100%; }

/* ---------- Lilly band & footer ---------- */
.lilly-band { background: var(--bg-light); border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; }
.lilly-band p { margin: 0 auto; max-width: 820px; font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy-dark); }

.site-footer { background: var(--navy-deep); color: #D6E0EA; padding: 3rem 0 1.5rem; font-size: 1rem; border-top: 4px solid var(--gold); }
.site-footer a { color: var(--white); }
.footer-heading { color: var(--gold-light); font-family: var(--font-sans); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.school-marks { list-style: none; margin: 0 0 2.25rem; padding: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.school-marks a { display: flex; align-items: center; gap: .6rem; min-height: 64px; text-decoration: none; }
.school-marks img { max-height: 56px; width: auto; background: var(--white); padding: .35rem .5rem; border-radius: 4px; }
.school-marks .school-mark { background: var(--white); color: var(--navy-dark); }
.school-mark-name { font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-name { font-family: var(--font-serif); color: var(--white); font-size: 1.2rem; }
.footer-lilly strong { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-note { font-size: .95rem; }
.footer-legal { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; color: #B9C7D6; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-header, .site-footer, .hero-actions { display: none; } .hero { color: #000; background: none; } .hero h1 { color: #000; } }
