/*
Theme Name: Bonnie Cone Classical Academy
Theme URI: https://www.bonniecone.org/
Author: Connect Web Design Studio
Author URI: https://connectwebdesignstudio.com/
Description: Custom theme for Bonnie Cone Classical Academy. The design source is the HTML in the project folder; below this header the file is styles.css verbatim (generated by wp-build/build-wp.pl, do not edit here).
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
License: Proprietary
Text Domain: bcca
*/

/* ============================================================
   Bonnie Cone Classical Academy, homepage v1 (staging preview)
   Brand: navy #002d74, red #c4122f, sky #a4c8e1 (from the
   current site). Fonts: Aleo (headings), Lato (body).
   ============================================================ */

:root {
  --navy: #002d74;
  --navy-dark: #001f52;
  --navy-ink: #0b1b3a;
  --red: #c4122f;
  --red-dark: #9e0d25;
  --sky: #a4c8e1;
  --sky-light: #e3eef7;
  --mist: #dce0e9;
  --cloud: #f5f7fa;
  --gray: #58585b;
  --text: #1f2430;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 45, 116, 0.10);
  --shadow-sm: 0 2px 8px rgba(0, 45, 116, 0.08);
  --font-head: "Aleo", Georgia, serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 0.98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--sky-light); border-color: var(--sky-light); color: var(--navy); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

.eyebrow {
  font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); margin: 0 0 10px;
}
.eyebrow-red { color: var(--red); }
.eyebrow-sky { color: var(--sky); }

.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p:not(.eyebrow) { font-size: 1.1rem; color: var(--gray); }
.section-head-left { text-align: left; margin-left: 0; }
.section-head-light h2 { color: #fff; }
.section-head-light p:not(.eyebrow) { color: var(--sky-light); }
.section-foot { text-align: center; margin: 36px 0 0; }
.section-foot-left { text-align: left; }

/* ---- Utility bar ------------------------------------------------- */
.utility { background: var(--navy-dark); color: #fff; font-size: 0.85rem; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; padding: 8px 0; }
.utility a:hover { color: var(--sky); text-decoration: underline; }
.utility-schools { display: flex; gap: 18px; align-items: center; }
.utility-label { color: var(--sky); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.72rem; }
.utility-schools a span { color: var(--sky); font-weight: 700; margin-left: 4px; }
.utility-schools a[aria-current] { font-weight: 700; border-bottom: 2px solid var(--red); }
.utility-links { display: flex; gap: 18px; align-items: center; }
.translate select {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px;
  padding: 4px 8px; font: inherit; cursor: pointer;
}
.translate select option { color: var(--text); }

/* ---- Header --------------------------------------------------------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand img { width: 236px; height: auto; }
.brand { flex: none; }
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav > a, .site-nav .has-sub > button {
  font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: var(--navy);
  text-decoration: none; padding: 10px 9px; border-radius: 6px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.site-nav > a:hover, .site-nav .has-sub > button:hover, .site-nav > a[aria-current] { background: var(--sky-light); color: var(--navy); }
.chev { width: 14px; height: 14px; }
.nav-item { position: relative; }
.sub {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff;
  border-radius: 8px; box-shadow: var(--shadow); padding: 8px; z-index: 50; border-top: 3px solid var(--red);
}
.sub a { display: block; padding: 9px 12px; text-decoration: none; border-radius: 6px; font-size: 0.93rem; }
.sub a:hover { background: var(--sky-light); color: var(--navy); }
.nav-item.open .sub, .nav-item:focus-within .sub { display: block; }
@media (hover: hover) { .nav-item:hover .sub { display: block; } }
.nav-ctas { display: flex; gap: 8px; margin-left: 8px; flex: none; }
.btn-nav { padding: 9px 14px; font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 1320px) { .nav-ctas .btn-outline { display: none; } }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- Alert bar -------------------------------------------------------- */
.alert { background: #fff4e5; border-bottom: 1px solid #f3d9b1; color: #5a3a00; }
.alert[hidden] { display: none; }
.alert-inner { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); }
.alert svg { width: 22px; height: 22px; flex: none; color: #b36b00; }
.alert p { margin: 0; font-size: 0.95rem; flex: 1; }
.alert a { color: #5a3a00; font-weight: 700; }
.alert-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #5a3a00; padding: 4px 8px; }

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 31, 82, 0.92) 0%, rgba(0, 45, 116, 0.78) 45%, rgba(0, 45, 116, 0.25) 100%);
}
.hero-inner { padding: 80px var(--gutter); max-width: var(--container); width: 100%; }
.hero h1 { color: #fff; max-width: 640px; }
.hero-lead { font-size: 1.15rem; max-width: 600px; color: #e9f0f8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-mascot { display: inline-flex; align-items: center; gap: 8px; margin: 36px 0 0; font-family: var(--font-head); font-weight: 700; color: var(--sky); font-size: 1.05rem; }
.hero-mascot img { width: 36px; height: auto; }

/* ---- Quick links ------------------------------------------------------- */
.quick { background: var(--navy); padding: 0 0 6px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: rgba(255,255,255,0.12); }
.quick-tile {
  background: var(--navy); color: #fff; text-decoration: none; text-align: center;
  padding: 22px 10px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.92rem; transition: background 0.15s;
}
.quick-tile svg { width: 30px; height: 30px; color: var(--sky); stroke-width: 1.8; }
.quick-tile:hover { background: var(--navy-dark); color: #fff; }
.quick-tile:hover svg { color: #fff; }

/* ---- Welcome ---------------------------------------------------------- */
.welcome { padding: 80px 0; }
.welcome-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.welcome-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.welcome-copy p { color: var(--gray); }
.welcome-points { list-style: none; padding: 0; margin: 18px 0 26px; }
.welcome-points li { padding: 8px 0 8px 30px; position: relative; color: var(--text); }
.welcome-points li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sky-light); border: 2px solid var(--sky);
}
.welcome-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* ---- Classical stages ---------------------------------------------- */
.classical { padding: 80px 0; background: var(--cloud); }
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stage { background: #fff; border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--red); position: relative; }
.stage-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 14px;
}
.stage > p { color: var(--gray); font-style: italic; }
.stage ul { padding-left: 1.1em; color: var(--text); }
.stage li { margin: 6px 0; }

/* ---- R.A.I.S.E. --------------------------------------------------------- */
.raise { background: var(--navy); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.raise::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164,200,225,0.25), transparent 70%);
}
.raise-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.raise-tile { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 26px 20px; }
.raise-letter { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; color: var(--sky); line-height: 1; display: block; margin-bottom: 12px; }
.raise-tile h3 { color: #fff; font-size: 1.15rem; }
.raise-tile p { color: #d5e3f0; font-size: 0.95rem; margin: 0; }

/* ---- News & events ------------------------------------------------------ */
.news { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: start; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--mist); display: flex; flex-direction: column; }
.news-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.news-body { padding: 18px 18px 20px; }
.news-body time { display: block; font-size: 0.8rem; font-weight: 700; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.news-body h3 { font-size: 1.08rem; }
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; }
.news-body p { margin: 0; color: var(--gray); font-size: 0.95rem; }
.event-list { list-style: none; padding: 0; margin: 0 0 20px; }
.event { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--mist); }
.event:last-child { border-bottom: 1px solid var(--mist); }
.event-date { flex: none; width: 62px; text-align: center; background: var(--sky-light); border-radius: 8px; padding: 8px 0; }
.event-month { display: block; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.event-day { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.event-body h3 { font-size: 1.02rem; margin-bottom: 2px; }
.event-body p { margin: 0; color: var(--gray); font-size: 0.93rem; }

/* ---- Enrollment CTA ----------------------------------------------------- */
.enroll { position: relative; color: #fff; padding: 90px 0; isolation: isolate; text-align: center; }
.enroll-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.enroll::before { content: ""; position: absolute; inset: 0; background: rgba(0, 31, 82, 0.82); z-index: -1; }
.enroll h2 { color: #fff; }
.enroll-inner { max-width: 700px; }
.enroll-inner p:not(.eyebrow) { color: #e3eef7; font-size: 1.08rem; }
.enroll .hero-actions { justify-content: center; }

/* ---- Notices ------------------------------------------------------------ */
.notices { padding: 80px 0; background: var(--cloud); }
.notice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.notice-card {
  background: #fff; border: 1px solid var(--mist); border-left: 4px solid var(--navy); border-radius: 8px;
  padding: 22px 22px 20px; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s;
}
.notice-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-left-color: var(--red); }
.notice-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.notice-card p { margin: 0; color: var(--gray); font-size: 0.93rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: #c9d4e3; padding: 64px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 240px; margin-bottom: 16px; }
.footer-tag { color: #aebcd0; }
.site-footer address { font-style: normal; margin: 14px 0; line-height: 1.7; }
.site-footer a { color: #e6edf6; text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.footer-col h4 { color: #fff; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; margin-bottom: 14px; }
.footer-col a { display: block; padding: 4px 0; }
.social { display: flex; gap: 10px; margin-top: 6px; }
.social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); align-items: center; justify-content: center; }
.social svg { width: 18px; height: 18px; }
.social a:hover { background: rgba(255,255,255,0.1); }
.footer-notice { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-notice p { font-size: 0.84rem; color: #9fb0c6; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 0.84rem; color: #9fb0c6; }
.footer-bottom p { margin: 0; }
.footer-credit { margin-top: 10px; font-size: 0.8rem; color: #7f91aa; }
.footer-credit p { margin: 0; }
.footer-credit a { color: #9fb0c6; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .brand img { width: 210px; }
  .site-nav > a, .site-nav .has-sub > button { padding: 10px 8px; font-size: 0.88rem; }
  .nav-ctas .btn-outline { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .news-cards { grid-template-columns: repeat(2, 1fr); }
  .raise-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .utility-links a:not(:last-child) { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 20px; box-shadow: var(--shadow);
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav > a, .site-nav .has-sub > button { width: 100%; justify-content: space-between; padding: 14px 10px; font-size: 1rem; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .sub { position: static; box-shadow: none; border-top: 0; padding: 0 0 8px 14px; min-width: 0; }
  .sub a { padding: 10px; }
  @media (hover: hover) { .nav-item:hover .sub { display: none; } }
  .nav-item.open .sub { display: block; }
  .nav-item:focus-within .sub { display: none; }
  .nav-item.open:focus-within .sub { display: block; }
  .nav-ctas { flex-direction: column; margin: 14px 0 0; }
  .nav-ctas .btn-outline { display: inline-flex; }
  .btn-nav { padding: 13px 16px; font-size: 1rem; }
  .hero { min-height: 0; }
  .hero-inner { padding: 64px var(--gutter); }
  .welcome, .classical, .raise, .news, .notices { padding: 60px 0; }
  .welcome-grid, .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .stage-grid, .notice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .utility-inner { justify-content: center; }
  .utility-schools { gap: 12px; }
  .utility-label { display: none; }
  .utility-links { display: none; }
  .brand img { width: 190px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-tile { padding: 18px 8px; font-size: 0.85rem; }
  .news-cards { grid-template-columns: 1fr; }
  .raise-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---- Inner pages (migrated content) -------------------------------------- */
.page-head { background: var(--navy, #002d74); color: #fff; padding: 2.25rem 0 2rem; }
.page-head h1 { margin: .35rem 0 0; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; color: #fff; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; opacity: .9; }
.breadcrumb li + li::before { content: "\203A"; margin-right: .35rem; opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-body { padding-top: 2.5rem; padding-bottom: 3.5rem; display: grid; gap: 2.5rem; }
.page-body.has-subnav { grid-template-columns: 260px minmax(0, 1fr); }
.subnav { align-self: start; position: sticky; top: 1rem; background: #f4f7fb; border-radius: 12px; padding: 1.1rem 1.2rem; }
.subnav-title { margin: 0 0 .5rem; font-family: var(--font-heading, "Aleo", serif); font-weight: 700; color: var(--navy, #002d74); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li { border-top: 1px solid #dfe6f0; }
.subnav a { display: block; padding: .55rem 0; color: #1d2a44; text-decoration: none; font-size: .95rem; }
.subnav a:hover { color: var(--red, #c4122f); }
.subnav .current > a { color: var(--red, #c4122f); font-weight: 700; }
.bc-content { max-width: 78ch; min-width: 0; }
.bc-content > * + * { margin-top: 1.1rem; }
.bc-content h2 { font-size: 1.55rem; margin-top: 2.2rem; color: var(--navy, #002d74); }
.bc-content h3 { font-size: 1.2rem; margin-top: 1.6rem; color: var(--navy, #002d74); }
.bc-content p, .bc-content li { line-height: 1.65; }
.bc-content ul, .bc-content ol { padding-left: 1.4rem; }
.bc-content li + li { margin-top: .35rem; }
.bc-content a:not(.btn) { color: var(--navy, #002d74); text-decoration: underline; text-underline-offset: 2px; }
.bc-content a:not(.btn):hover { color: var(--red, #c4122f); }
.bc-content a.btn { display: inline-block; margin: .25rem .5rem .25rem 0; background: var(--red, #c4122f); color: #fff; text-decoration: none; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; }
.bc-content a.btn:hover { background: var(--navy, #002d74); }
.bc-content img { max-width: 100%; height: auto; border-radius: 10px; }
.bc-content figure { margin: 0; }
.bc-content figcaption { font-size: .9rem; color: #52607a; margin-top: .4rem; }
.bc-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bc-content th, .bc-content td { border: 1px solid #dfe6f0; padding: .55rem .7rem; text-align: left; vertical-align: top; }
.bc-content th { background: #f4f7fb; }
.bc-callout + .bc-callout { margin-top: 1.5rem; }
.bc-cols { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.bc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-cols .bc-callout { background: #f4f7fb; border-radius: 12px; padding: 1.1rem 1.25rem; margin: 0; }
.bc-cols .bc-callout + .bc-callout { margin-top: 1rem; }
.bc-cols .bc-callout h2 { font-size: 1.2rem; margin-top: 0; }
.bc-panels { margin-top: 1.5rem; }
.bc-panel { border: 1px solid #dfe6f0; border-radius: 10px; margin-top: .6rem; background: #fff; }
.bc-panel > summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; color: var(--navy, #002d74); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.bc-panel > summary::-webkit-details-marker { display: none; }
.bc-panel > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--red, #c4122f); flex: none; }
.bc-panel[open] > summary::after { content: "\2212"; }
.bc-panel-body { padding: .25rem 1.1rem 1.1rem; }
.bc-panel-body > * + * { margin-top: .9rem; }
.bc-panel-body .bc-callout { margin: 0; }
.bc-panel-body .bc-callout + .bc-callout { margin-top: 1rem; }
/* Board page folder icons (Minutes, Agenda, Policies): small, centred, caption under the icon */
.bc-panel-body .bc-figure:has(img[alt="Folder Icon"], img[alt="Paperclip Icon"]) { text-align: center; margin: 0 0 1rem; }
.bc-panel-body .bc-figure img[alt="Folder Icon"], .bc-panel-body .bc-figure img[alt="Paperclip Icon"] { width: 72px; height: auto; display: block; margin: 0 auto .35rem; }
.bc-panel-body .bc-figure:has(img[alt="Folder Icon"], img[alt="Paperclip Icon"]) figcaption { font-weight: 700; }
.bc-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem 1rem; }
.bc-folders .bc-figure { margin: 0; }
.bc-doc-list { list-style: none; padding: 0; }
.bc-doc-list li { padding: .5rem 0 .5rem 1.7rem; border-top: 1px solid #e8edf4; position: relative; }
.bc-doc-list li::before { content: ""; position: absolute; left: 0; top: .7rem; width: 14px; height: 17px; border: 2px solid var(--red, #c4122f); border-radius: 2px; }
.bc-doc-list a { text-decoration: none; font-weight: 600; }
.bc-embed { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #f4f7fb; }
.bc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bc-calendar-placeholder { background: #fff7e6; border: 1px dashed #e0b25c; border-radius: 10px; padding: 1rem 1.2rem; }
.bc-news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1rem; }
.bc-news-card { background: #fff; border: 1px solid #e3e9f1; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.bc-news-thumb img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.bc-news-body { padding: 1rem 1.1rem 1.2rem; }
.bc-news-body time { font-size: .85rem; color: #52607a; }
.bc-news-body h3 { font-size: 1.1rem; margin: .3rem 0 .4rem; }
.bc-news-body h3 a { text-decoration: none; color: var(--navy, #002d74); }
.bc-news-body p { margin: 0; font-size: .95rem; line-height: 1.5; }
.bc-muted { color: #52607a; }
@media (max-width: 900px) {
  .page-body.has-subnav { grid-template-columns: 1fr; }
  .subnav { position: static; }
  .bc-cols-2, .bc-cols-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Bonnie Cone Leadership Academy (body.school-leadership)
   Brand: navy #002d62 and light blue from the BCLA crest and
   uniforms. Same type and layout as BCCA; blue accent, not red.
   ============================================================ */
body.school-leadership {
  --navy: #002d62;
  --navy-dark: #001b3f;
  --navy-ink: #07142d;
  --red: #1b6fbf;
  --red-dark: #14568f;
  --sky: #9fc9ea;
  --sky-light: #e6f1fa;
  --shadow: 0 10px 30px rgba(0, 45, 98, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 45, 98, 0.08);
}
.school-leadership .hero::before {
  background: linear-gradient(100deg, rgba(0, 27, 63, 0.82) 0%, rgba(0, 45, 98, 0.55) 45%, rgba(0, 45, 98, 0.12) 100%);
}
.school-leadership .hero-bg { object-position: center 40%; }

/* Brand lockup: crest image + wordmark text (BCLA) */
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-lockup img { width: 46px; height: auto; }
.brand-lockup .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup strong { font-family: var(--font-head); font-size: 1.95rem; font-weight: 700; letter-spacing: 0.02em; }
.brand-lockup small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray); margin-top: 5px; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }

.stage h3 small { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); margin-top: 4px; }

/* Footer social links with labels (BCLA has Lower and Upper School accounts) */
.social-labeled { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social-labeled a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.social-labeled a span { color: inherit; }

/* Lower School / Upper School cards */
.campus { padding: 80px 0; background: var(--cloud); }
.campus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.campus-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 200px 1fr; overflow: hidden; }
.campus-card > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.campus-body { padding: 26px 26px 22px; }
.campus-body .eyebrow { margin-bottom: 6px; }
.campus-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.campus-meta { font-size: 0.9rem; color: var(--gray); margin: 0 0 12px; }
.campus-body p:last-of-type { margin-bottom: 12px; }

/* Athletics band */
.athletics { position: relative; color: #fff; padding: 90px 0; isolation: isolate; overflow: hidden; }
.athletics-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.athletics::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 27, 63, 0.55) 0%, rgba(0, 27, 63, 0.35) 100%); z-index: -1; }
.athletics-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.athletics h2 { color: #fff; }
.athletics-copy p { color: #e9f0f8; max-width: 540px; }
.athletics-copy .hero-actions { margin-top: 22px; }
.season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 32px; }
.season h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin: 0 0 8px; }
.season ul { list-style: none; padding: 0; margin: 0; }
.season li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-weight: 700; }
.season a { color: #fff; text-decoration: none; }
.season a:hover { color: var(--sky); text-decoration: underline; }

/* Student services cards (same card style as the board notices, white background) */
.pathways { padding: 80px 0; }

@media (max-width: 960px) {
  .campus-grid, .athletics-grid { grid-template-columns: 1fr; }
  .athletics-grid { gap: 36px; }
  .campus-card { grid-template-columns: 160px 1fr; }
}
@media (max-width: 600px) {
  .campus-card { grid-template-columns: 1fr; }
  .campus-card > img { aspect-ratio: 4 / 3; max-height: 300px; object-position: center 20%; }
  .brand-lockup strong { font-size: 1.6rem; }
  .brand-lockup small { font-size: 0.62rem; }
}
.social-labeled a { width: auto; height: auto; border-radius: 999px; padding: 6px 12px 6px 9px; }
.school-leadership .footer-logo { width: 220px; }

/* ============================================================
   Events and calendars (events.php)
   ============================================================ */
.bc-cal { margin: 1rem 0 2rem; }
.bc-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bc-cal-title { margin: 0; font-size: 1.6rem; }
.bc-cal-nav .btn { padding: 8px 14px; font-size: 0.9rem; }
.bc-cal-legend { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; color: var(--gray); }
.bc-leg::before, .bc-ev::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--cal-color, var(--navy)); vertical-align: middle; }
.bc-ev::before { width: 7px; height: 7px; margin-right: 5px; }
.bc-leg--bonnie-cone-schools, .bc-ev--bonnie-cone-schools, .bc-ev-item--bonnie-cone-schools { --cal-color: #002d74; }
.bc-leg--bcca, .bc-ev--bcca, .bc-ev-item--bcca { --cal-color: #c4122f; }
.bc-leg--bcla, .bc-ev--bcla, .bc-ev-item--bcla { --cal-color: #1b6fbf; }
.bc-leg--board, .bc-ev--board, .bc-ev-item--board { --cal-color: #6b4fbb; }
.bc-leg--bcla-athletics, .bc-ev--bcla-athletics, .bc-ev-item--bcla-athletics { --cal-color: #1d9a6c; }
.bc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.bc-cal-dow { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); padding: 6px 4px; text-align: center; }
.bc-day { min-height: 104px; background: #fff; border: 1px solid var(--mist); border-radius: 8px; padding: 6px; font-size: 0.84rem; min-width: 0; }
.bc-day--blank { background: transparent; border-color: transparent; }
.bc-day--today { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.bc-day-num { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.bc-day-dow { display: none; }
.bc-ev { display: block; color: var(--text); text-decoration: none; padding: 3px 6px; border-radius: 5px; background: var(--sky-light); margin-top: 3px; line-height: 1.3; overflow-wrap: anywhere; }
a.bc-ev:hover { background: var(--mist); color: var(--navy); }
.bc-ev-time { font-weight: 700; color: var(--navy); }
.bc-cal-foot { font-size: 0.9rem; margin-top: 14px; }
.bc-cal-month { margin: 1.6rem 0 0.4rem; font-size: 1.2rem; }
.bc-cal-list .event-list { margin-bottom: 0; }
.bc-event-when { font-size: 1.1rem; }
.bc-event-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.bc-muted { color: var(--gray); }
@media (max-width: 760px) {
  .bc-cal-grid { display: block; }
  .bc-cal-dow, .bc-day--blank, .bc-day--empty { display: none; }
  .bc-day { min-height: 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px; margin-bottom: 6px; align-items: start; }
  .bc-day-num { font-size: 1.25rem; font-family: var(--font-head); margin: 0; }
  .bc-day-dow { display: block; font-size: 0.68rem; font-family: var(--font-body); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
  .bc-day-evs .bc-ev:first-child { margin-top: 0; }
}
.bc-content:has(.bc-cal), .bc-content:has(.bc-cal-list) { max-width: none; }
@media (max-width: 760px) {
  .bc-cal-grid .bc-day--empty, .bc-cal-grid .bc-day--blank { display: none !important; }
}
.bc-cal-nav .btn { white-space: nowrap; }

/* ============================================================
   News posts and archives (news.php)
   ============================================================ */
.post-meta { margin: 0.5rem 0 0; font-size: 0.95rem; opacity: 0.92; }
.post-meta time { font-weight: 700; }
.post-cat { display: inline-block; margin-left: 0.6rem; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
.post-hero img { width: 100%; height: auto; border-radius: var(--radius); }
.bc-post figure { margin: 1.4rem 0; }
.bc-post figure img { border-radius: var(--radius); }
.bc-post figcaption { font-size: 0.9rem; color: var(--gray); margin-top: 0.4rem; }
.post-back { margin-top: 2rem; }
.post-more { background: var(--cloud); padding: 60px 0; }
.post-more h2 { margin-bottom: 1rem; }
.bc-content.bc-archive { max-width: none; }
.news-img > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2rem; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--mist); border-radius: 8px; text-decoration: none; color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .page-numbers:hover { background: var(--sky-light); }
.bc-content:has(.bc-news-grid), .bc-content:has(.bc-children) { max-width: none; }

/* ============================================================
   Forms (forms.php)
   ============================================================ */
.bc-form-wrap { margin: 2rem 0 1rem; }
.bc-form-wrap > h2 { margin-top: 0; }
.bc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 1rem; }
.bc-field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; min-width: 0; border: 0; padding: 0; margin: 0; }
.bc-field--half { grid-column: span 1; }
.bc-field label, .bc-field legend { font-weight: 700; color: var(--navy); font-size: 0.95rem; padding: 0; }
.bc-field .req { color: var(--red); }
.bc-field input[type="text"], .bc-field input[type="email"], .bc-field input[type="tel"], .bc-field select, .bc-field textarea { font: inherit; padding: 10px 12px; border: 1px solid #b9c3d3; border-radius: 8px; background: #fff; width: 100%; color: var(--text); }
.bc-field textarea { min-height: 140px; resize: vertical; }
.bc-field input:focus, .bc-field select:focus, .bc-field textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--navy); }
.bc-field--error input, .bc-field--error select, .bc-field--error textarea { border-color: var(--red); }
.bc-field-error { margin: 0; color: var(--red-dark); font-size: 0.9rem; }
.bc-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.bc-radios label { font-weight: 400; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.bc-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bc-form-note { grid-column: 1 / -1; font-size: 0.88rem; color: var(--gray); margin: 0; }
.bc-form-alert { grid-column: 1 / -1; background: #fbebeb; border: 1px solid #f1c2c2; color: #7a1020; padding: 12px 14px; border-radius: 8px; margin: 0; }
.bc-form-success { background: #e5f4e4; border: 1px solid #bfe3bd; color: #1f5a1d; padding: 18px 20px; border-radius: 10px; }
.bc-form-success p { margin: 0 0 6px; }
.bc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
  .bc-form { grid-template-columns: 1fr; }
  .bc-field--half { grid-column: 1 / -1; }
}

/* ---- Compliance pages: tables, site map ---------------------------------- */
.bc-table th, .bc-table td { padding: 8px 10px; border: 1px solid var(--mist); text-align: left; }
.bc-table th { background: var(--sky-light); color: var(--navy); }
.bc-spg table { margin-top: 0.5rem; background: #fff; }
.bc-sitemap ul { list-style: none; padding: 0; margin: 0; }
.bc-sitemap ul ul { padding-left: 1rem; }
.bc-sitemap li { padding: 3px 0; }
.bc-sitemap li li { border-left: 2px solid var(--mist); padding-left: 0.6rem; }
.bc-sitemap h2 { font-size: 1.25rem; }
.bc-sitemap .bc-col > p { color: var(--gray); }
@media (max-width: 760px) { .bc-cols-3, .bc-cols-2 { grid-template-columns: minmax(0, 1fr); } }
.brand-lockup--text strong { font-size: 1.55rem; letter-spacing: 0.01em; }
.footer-wordmark { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 16px; }

/* ============================================================
   District landing page (Bonnie Cone Schools, the site root at launch)
   ============================================================ */
.school-district .brand img { width: 210px; }
.school-district .footer-logo { width: 230px; }
.schools { padding: 80px 0; background: var(--cloud); }
.school-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.school-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--red); }
.school-card--leadership { border-top-color: #1b6fbf; }
.school-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.school-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.school-body .eyebrow { margin-bottom: 6px; }
.school-body h3 { font-size: 1.5rem; margin-bottom: 4px; }
.school-meta { color: var(--gray); font-size: 0.93rem; margin: 0 0 14px; }
.school-body > p:not(.eyebrow):not(.school-meta) { color: var(--gray); }
.school-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 6px; }
.raise .section-foot a { color: #fff; }
.testimonials { padding: 80px 0; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; background: var(--sky-light); border-radius: var(--radius); padding: 30px 26px 24px; position: relative; display: flex; flex-direction: column; }
.quote::before { content: "\201C"; position: absolute; top: 6px; left: 18px; font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--red); opacity: 0.45; }
.quote p { margin: 18px 0 16px; color: var(--text); flex: 1; }
.quote cite { font-style: normal; font-size: 0.86rem; font-weight: 700; color: var(--gray); }
@media (max-width: 960px) {
  .school-grid, .quote-grid { grid-template-columns: 1fr; }
}
.site-footer address a[href^="tel:"] { white-space: nowrap; }
.utility a.utility-label { color: var(--sky); }
.utility a.utility-label:hover { color: #fff; text-decoration: none; }

/* Athletics icon tiles (Finalsite "resource" grids, see wp-build/patch-inner.php) */
.bc-col:has(> .bc-tile) { display: grid; gap: 16px; align-content: start; }
.bc-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px 22px; background: var(--cloud); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--navy); font-size: 1.05rem; text-align: center; transition: background 0.15s; }
.bc-tile img { width: 96px; height: 96px; object-fit: contain; }
.bc-tile:hover { background: var(--sky-light); color: var(--red); }
/* Campus maps on the contact pages */
.bc-maps iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.bc-maps h3 { margin-bottom: 10px; }
.bc-maps p { margin: 8px 0 0; font-size: 0.92rem; }
/* Self-hosted video in page content */
.bc-content video { width: 100%; height: auto; border-radius: var(--radius); background: #000; }
/* Four-column Finalsite layouts (athletics landing, BCLA enrollment links) */
.bc-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .bc-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bc-cols-4 { grid-template-columns: 1fr; } }

/* Section landing pages: card grid of child pages ([bc_children]) and family link lists */
.bc-lead { font-size: 1.12rem; color: var(--navy-ink); max-width: 62ch; }
.bc-children { display: grid; gap: 1.1rem; margin: 1.25rem 0 2rem; }
.bc-children-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bc-children-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bc-child { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mist); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.bc-child:hover, .bc-child:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--sky); }
.bc-child img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.bc-child-body { display: flex; flex-direction: column; gap: .3rem; padding: .95rem 1.05rem 1.05rem; }
.bc-child-body strong { color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.bc-child-body span { font-size: .9rem; color: var(--gray); line-height: 1.45; }
.bc-child-school { align-items: center; text-align: center; padding-top: 1.25rem; }
.bc-child-school img { width: auto; max-width: 70%; height: 64px; aspect-ratio: auto; object-fit: contain; }
.bc-link-list { list-style: none; padding: 0; columns: 2; column-gap: 2.5rem; margin: .75rem 0 1.5rem; }
.bc-link-list li { break-inside: avoid; padding: .45rem 0 .45rem 1.3rem; border-top: 1px solid #e8edf4; position: relative; }
.bc-link-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 8px; height: 8px; border-right: 2px solid var(--red); border-top: 2px solid var(--red); transform: rotate(45deg); }
.bc-link-list a { text-decoration: none; font-weight: 600; }
.bc-link-list a:hover { text-decoration: underline; }
@media (max-width: 960px) { .bc-children-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bc-children-3, .bc-children-2 { grid-template-columns: 1fr; } .bc-link-list { columns: 1; } }
/* cards and link lists sit inside .bc-content, whose links are underlined: override at the same specificity */
.bc-content a.bc-child { text-decoration: none; color: var(--text); }
.bc-content a.bc-child:hover { text-decoration: none; color: var(--text); }
.bc-content .bc-link-list a { text-decoration: none; }
.bc-content .bc-link-list a:hover { text-decoration: underline; }

/* Site search: utility bar (desktop), mobile menu panel, 404 page */
.site-search { display: flex; align-items: center; }
.site-search input { font: inherit; font-size: .9rem; border: 0; background: transparent; color: inherit; min-width: 0; }
.site-search input::placeholder { color: inherit; opacity: .7; }
.site-search button { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: inherit; cursor: pointer; padding: 4px; }
.utility-search { border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; padding: 0 2px 0 8px; color: #fff; }
.utility-search input { width: 96px; padding: 4px 0; transition: width .2s ease; }
.utility-search input:focus { width: 170px; outline: none; }
.utility-search:focus-within { border-color: #fff; }
.nav-search { display: none; }
.page-search { justify-content: center; gap: 8px; margin: 1rem 0 1.25rem; }
.page-search input { flex: 1 1 auto; max-width: 360px; border: 1px solid var(--mist); border-radius: 999px; padding: 12px 18px; font-size: 1rem; color: var(--text); background: #fff; }
.page-search input:focus { outline: 2px solid var(--sky); outline-offset: 2px; }
@media (max-width: 900px) {
  .utility-search { display: none; }
  .nav-search { display: flex; margin: 12px 0 4px; border: 1px solid var(--mist); border-radius: 999px; padding: 2px 6px 2px 16px; color: var(--navy); }
  .nav-search input { flex: 1 1 auto; padding: 10px 0; font-size: 1rem; color: var(--text); }
  .nav-search button { width: 40px; height: 40px; }
}

/* Phone-width safety net (from the 10/30 sweep): wide tables scroll sideways instead of pushing the page out,
   long links and emails wrap, and content images never exceed their column */
.bc-content img, .welcome-media img, .bc-child img { max-width: 100%; height: auto; }
.bc-content a, .bc-content p, .bc-content li { overflow-wrap: anywhere; }
.bc-content td, .bc-content th { overflow-wrap: break-word; }   /* cells keep whole words; a wide table scrolls instead */
@media (max-width: 760px) {
  .bc-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
}
.bc-col { min-width: 0; }   /* a wide table inside a column scrolls instead of widening the column */

/* Athletics schedules (11/10): a table on wider screens, one small card per game or meet on phones */
@media (max-width: 600px) {
  .bc-content table.bc-sched { display: block; overflow: visible; border: 0; }
  .bc-sched thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bc-sched tbody, .bc-sched tr, .bc-sched td { display: block; }
  .bc-sched tr { border: 1px solid var(--mist); border-radius: 10px; padding: .6rem .85rem; margin-bottom: .6rem; background: #fff; }
  .bc-content .bc-sched td { border: 0; padding: .1rem 0; }
  .bc-sched td:first-child { font-weight: 700; color: var(--navy); }
  /* Cells with data-label (BCCA club schedule, 11/11) show their column name on the card, e.g. "Days: Tuesdays" */
  .bc-sched td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--navy); }
}
