/* ─── Base ──────────────────────────────────────────────── */
html, body { margin: 0; padding: 0; background: #0A1322; }
body { font-family: 'Libre Franklin', sans-serif; color: #1B2430; -webkit-font-smoothing: antialiased; }
a { color: #2AA9E0; text-decoration: none; }
a:hover { color: #C8A26B; }

/* ─── Hover utilities ────────────────────────────────────── */
/* Used to replace style-hover="" attributes from the dc-runtime template.
   !important is required to override the co-located inline style="" values. */

/* nav CTA + primary CTA buttons: blue → gold background */
.hov-gold:hover { background: #C8A26B !important; }

/* dark navy buttons: navy → blue background + dark text */
.hov-blue-dark:hover { background: #2AA9E0!important; color: #08131F !important; }

/* outline buttons: transparent border/text → blue border + blue text */
.hov-outline:hover { border-color: #2AA9E0 !important; color: #2AA9E0 !important; }

/* service cards (Home): border → blue, add small shadow */
.hov-card:hover { border-color: #2AA9E0 !important; box-shadow: 0 6px 24px rgba(10,19,34,0.08) !important; }

/* program cards (Programs): border → blue, add larger shadow */
.hov-card-lg:hover { border-color: #2AA9E0 !important; box-shadow: 0 8px 28px rgba(10,19,34,0.09) !important; }

/* career email link: transparent → dark navy bg + white text */
.hov-dark:hover { background: #0E1930 !important; color: #FFFFFF !important; }

/* ─── Hamburger button (hidden on desktop) ───────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #DCE6F2;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Remove the hard minimum width on all pages ─────────── */
body > div { min-width: 0 !important; }

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  body > div { overflow-x: hidden !important; }

  /* top admissions bar */
  [style*="color:#C9D4E4;font-size:13px"] {
    flex-wrap: wrap !important;
    padding: 8px 16px !important;
    gap: 4px 8px !important;
  }

  /* header */
  header {
    padding: 0 20px !important;
    height: auto !important;
    min-height: 64px !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
  }
  .nav-toggle { display: flex !important; }

  /* mobile nav — hidden until toggled */
  nav.site-nav {
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 8px 0 20px !important;
    border-top: 1px solid rgba(42,169,224,0.2) !important;
    order: 3 !important;
  }
  nav.site-nav.is-open { display: flex !important; }
  nav.site-nav a {
    display: block !important;
    padding: 12px 0 !important;
    font-size: 16px !important;
    width: 100% !important;
    border-radius: 0 !important;
  }
  nav.site-nav a:last-child {
    display: inline-block !important;
    width: auto !important;
    margin-top: 10px !important;
    padding: 12px 20px !important;
  }

  /* inner section containers */
  [style*="max-width:1160px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* section vertical padding reductions */
  [style*="padding:128px 40px"] { padding-top: 60px !important; padding-bottom: 72px !important; }
  [style*="padding:96px 40px"]  { padding-top: 52px !important; }
  [style*="padding:88px 40px"]  { padding-top: 52px !important; padding-bottom: 52px !important; }
  [style*="padding:80px 40px"]  { padding-top: 48px !important; padding-bottom: 48px !important; }
  [style*="padding:76px 40px"]  { padding-top: 48px !important; padding-bottom: 48px !important; }
  [style*="padding:72px 40px"]  { padding-top: 44px !important; padding-bottom: 44px !important; }
  [style*="padding:68px 40px"]  { padding-top: 44px !important; padding-bottom: 44px !important; }
  [style*="padding:56px 40px"]  { padding-top: 36px !important; padding-bottom: 36px !important; }
  [style*="padding:64px"]       { padding: 32px 20px !important; }
  [style*="padding:36px 44px"]  {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 24px 20px !important;
  }

  /* headings */
  h1 { font-size: clamp(26px, 7.5vw, 38px) !important; line-height: 1.2 !important; }
  h2 { font-size: clamp(20px, 6vw, 28px) !important; }
  h3 { font-size: clamp(18px, 5vw, 24px) !important; }

  /* ALL CSS grids → single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 4-col grids (admission steps, schedule cards) → 2 col on mobile */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* flex rows — allow wrap */
  [style*="display:flex;gap:16px"],
  [style*="display:flex;gap:36px"] { flex-wrap: wrap !important; }

  /* heading + link side-by-side rows → stack */
  [style*="justify-content:space-between;align-items:flex-end"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  /* "what we treat" bar and similar → stack */
  [style*="align-items:center;justify-content:space-between;gap:40px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* images that are in the normal flow (not absolute hero images) */
  img[style*="object-fit:cover"]:not([style*="inset:0"]) {
    height: 200px !important;
    width: 100% !important;
  }

  /* hide decorative watermark logos that overflow on mobile */
  [style*="right:-60px"] { display: none !important; }

  /* logo band */
  [style*="width:380px;mix-blend-mode:screen"] { width: 200px !important; }

  /* treatment page 3-col cards: reduce padding */
  [style*="padding:36px 40px"] { padding: 24px 20px !important; }

  /* absolute caption on About campus image */
  [style*="left:40px;bottom:32px"] {
    left: 16px !important;
    bottom: 12px !important;
    max-width: calc(100% - 32px) !important;
  }

  /* "have ready when you call" info bar on Admissions page */
  [style*="padding:16px 28px"] {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
    padding: 16px 20px !important;
  }

  /* footer */
  footer [style*="display:flex;justify-content:space-between"] {
    flex-direction: column !important;
    gap: 28px !important;
  }
  footer [style*="display:flex;gap:70px"] {
    flex-wrap: wrap !important;
    gap: 20px !important;
  }
  footer [style*="max-width:320px"] { max-width: 100% !important; }
  footer [style*="padding:52px 40px"] { padding: 36px 20px 32px !important; }
  footer [style*="padding:18px 40px"] { padding: 16px 20px !important; }
}

/* ─── Articles catalog ───────────────────────────────────── */
.article-filter-chip {
  border: 1px solid #E5E0D5;
  background: #FFFFFF;
  border-radius: 100px;
  padding: 8px 14px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 13px;
  color: #3A4657;
  cursor: pointer;
}
.article-filter-chip.is-active {
  border-color: #2AA9E0;
  background: rgba(42, 169, 224, 0.1);
  color: #0E1930;
  font-weight: 600;
}
.article-card {
  background: #FFFFFF;
  border: 1px solid #E5E0D5;
  border-radius: 8px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1B2430;
  text-decoration: none;
}
.article-card:hover {
  border-color: #2AA9E0;
  box-shadow: 0 6px 24px rgba(10, 19, 34, 0.08);
}
.article-card[hidden] { display: none !important; }
.article-card-topic {
  color: #C8A26B;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.article-card-title {
  font-family: 'Libre Caslon Text', serif;
  font-size: 21px;
  line-height: 1.3;
  color: #1B2430;
}
.article-card-date {
  font-size: 13px;
  color: #9AA4B2;
}
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body h2, .article-body h3 { color: #1B2430; }

/* ─── Shared site shell (articles template) ─────────────── */
.site-page {
  background: #F7F5F0;
  min-height: 100vh;
}
.site-topbar {
  background: #0A1322;
  color: #C9D4E4;
  font-size: 13px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 24px;
  letter-spacing: 0.02em;
}
.site-topbar-highlight { color: #C8A26B; font-weight: 600; }
.site-topbar-sep { opacity: 0.5; }
.site-topbar-phone { color: #2AA9E0; font-weight: 600; }
.site-header {
  background: #0E1930;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(42, 169, 224, 0.18);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-logo-mark {
  height: 52px;
  width: 52px;
  mix-blend-mode: screen;
}
.site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo-title {
  font-family: 'Libre Caslon Text', serif;
  font-size: 19px;
  color: #FFFFFF;
  letter-spacing: 0.04em;
}
.site-logo-subtitle {
  font-size: 10.5px;
  color: #8FB8D4;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a { color: #DCE6F2; text-decoration: none; }
.site-nav a.is-active { color: #2AA9E0; }
.site-nav-cta {
  background: #2AA9E0;
  color: #08131F !important;
  padding: 11px 22px;
  border-radius: 4px;
  font-weight: 600;
}
.site-footer {
  background: #060C16;
  color: #8FA3BC;
}
.site-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 40px 40px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  font-size: 13.5px;
}
.site-footer-brand { max-width: 320px; }
.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-footer-logo img { height: 44px; mix-blend-mode: screen; }
.site-footer-logo span {
  font-family: 'Libre Caslon Text', serif;
  color: #FFFFFF;
  font-size: 16px;
  line-height: 1.3;
}
.site-footer-address {
  line-height: 1.7;
  margin: 16px 0 0;
}
.site-footer-address a { color: inherit; }
.site-footer-links { display: flex; gap: 70px; }
.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-col a { color: #8FA3BC; text-decoration: none; }
.site-footer-col-title {
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 4px;
}
.site-footer-legal {
  border-top: 1px solid rgba(143, 163, 188, 0.15);
  padding: 18px 40px;
  text-align: center;
  font-size: 12px;
  color: #5B6B84;
}

/* ─── Article page ──────────────────────────────────────── */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}
.article-breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5B6673;
}
.article-breadcrumb a { color: inherit; }
.article-byline {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #5B6673;
}
.article-disclosure {
  margin: 0 0 28px;
  font-size: 12.5px;
  color: #9AA4B2;
  font-style: italic;
}
.article-title {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin: 0 0 24px;
  color: #1B2430;
}
.article-prose {
  font-size: 16px;
  line-height: 1.75;
  color: #3A4657;
}
.article-prose > p { margin: 0 0 16px; }
.article-prose > p:first-child {
  font-size: 16.5px;
  margin-bottom: 20px;
}
.article-prose h2 {
  font-family: 'Libre Caslon Text', serif;
  font-weight: 400;
  font-size: 26px;
  margin: 36px 0 16px;
  color: #1B2430;
}
.article-prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}
.article-cta {
  margin-top: 40px;
  padding: 28px 32px;
  background: #0E1930;
  border-radius: 8px;
  color: #FFFFFF;
  text-align: center;
}
.article-cta-text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
}
.article-cta-button {
  display: inline-block;
  background: #2AA9E0;
  color: #08131F !important;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.article-cta-button:hover {
  color: #08131F !important;
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #5B6673;
}

@media (max-width: 767px) {
  .article-grid[style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
  .site-header { padding: 0 20px; }
  .site-footer-inner {
    flex-direction: column;
    gap: 28px;
    padding: 36px 20px 32px;
  }
  .site-footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .site-footer-brand { max-width: 100%; }
  .site-footer-legal { padding: 16px 20px; }
  .article-page { padding: 36px 20px 56px; }
  .article-cta { padding: 24px 20px; }
}
