/* Lupine Lane — site styles
   Layout: illustrated hillside header over a green field; white content card + sidebar card; footer cards, lime "Areas" band, dark-green copyright. */
:root {
  --green: #34a450;        /* page field, links */
  --green-btn: #3aa857;
  --green-dark: #206448;   /* copyright band */
  --lime: #bbea20;         /* Areas We Serve band */
  --blue: #0873ba;         /* headings */
  --teal: #006991;         /* calendar date badges */
  --text: #555d66;
  --ink: #222;
  --white: #fff;
  --orange: #f69422;
  --pink: #ec078e;
  --purple: #673191;
  --grad: linear-gradient(90deg, #ff9e3e 0%, #f0775e 45%, #d226a1 100%);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.35 var(--sans);
  color: var(--text);
  background: var(--green) url(../img/body-bg.jpg) center top / max(100%, 1100px) auto no-repeat;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  position: relative;
  min-height: 330px;
}
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.logo { grid-column: 2; grid-row: 1; justify-self: center; margin-top: -14px; }
.logo img { width: 316px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: var(--white);
  border: 5px solid var(--white); border-radius: 999px;
  padding: 3px 18px; font-size: 18px; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.pill:hover { text-decoration: none; filter: brightness(1.06); }
.pill img { width: 20px; height: 20px; }
.pill-phone { grid-column: 1; grid-row: 1; justify-self: start; margin-left: 10px; }
.pill-apply { grid-column: 3; grid-row: 1; justify-self: end; font-weight: 700; padding: 3px 44px 3px 8px; margin-right: 10px; }
.pill-apply img { background: var(--green); border: 2px solid var(--white); border-radius: 50%; padding: 2px; width: 22px; height: 22px; margin-right: 12px; }
.menu-toggle, .mobile-phone, .mobile-social { display: none; }

.site-nav { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.quick { display: flex; gap: 20px; }
.quick a {
  display: block; color: var(--white); font-size: 17px; line-height: 1;
  padding: 4px 19px 5px; border-radius: 999px; border: 2px solid var(--white);
}
.quick a:hover { text-decoration: none; filter: brightness(1.1); }
.q-about { background: var(--orange); }
.q-blog { background: var(--pink); }
.q-cal { background: var(--purple); }
.q-contact { background: var(--blue); }

.main-menu {
  display: flex; align-items: center;
  background: var(--grad);
  border: 3px solid var(--white); border-radius: 999px;
  padding: 0 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.main-menu > li { position: relative; display: flex; align-items: center; }
.main-menu > li > a {
  display: block; color: var(--white); font-weight: 700; font-size: 20px;
  padding: 7px 20px 8px;
}
.main-menu > li.has-sub > a { padding-right: 4px; }
.main-menu a:hover { text-decoration: none; }
.sub-toggle {
  width: 26px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; margin-right: 10px;
  color: var(--white);
}
.sub-toggle::before {
  content: ""; display: block; width: 8px; height: 8px; margin: 0 auto 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.sub {
  position: absolute; top: 100%; left: 10px; z-index: 20;
  min-width: 250px; background: var(--white); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; color: var(--blue); font-size: 16px; }
.sub a:hover { background: #eef7f0; text-decoration: none; }

/* ---------- Page body ---------- */
.page {
  max-width: 1200px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start;
}
.card { background: var(--white); border-radius: var(--radius); }
.main-col { padding: 15px; min-width: 0; }
.sidebar { padding: 15px 15px 30px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Slider */
.slider { position: relative; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 15px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; aspect-ratio: 972 / 612; object-fit: cover; }
.slide-text { text-align: center; color: var(--ink); padding: 0 6px; }
.slide-text h2 { margin: 0 0 18px; font-weight: 700; font-size: 34px; line-height: 1.2; text-wrap: balance; }
.slide-text h2 a { color: var(--blue); }
.slide-text p { margin: 0 0 22px; font-size: 17px; line-height: 1.3; }
.btn-enroll {
  display: inline-block; background: var(--green-btn); color: var(--white);
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 18px; border-radius: 999px; border: 4px solid var(--white);
  box-shadow: 0 0 0 1px #e8e8e8, 0 3px 8px rgba(0,0,0,.12);
}
.btn-enroll:hover { text-decoration: none; filter: brightness(1.08); }
.slide-more { display: block; margin-top: 22px; font-size: 14px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.dots button { width: 13px; height: 13px; border-radius: 50%; border: 0; padding: 0; background: var(--green); cursor: pointer; }
.dots button[aria-selected="true"] { background: #555; }

/* Welcome */
.welcome { margin-top: 44px; }
.welcome h1 { color: var(--blue); text-align: center; font-size: 30px; line-height: 1.2; margin: 0 0 4px; text-wrap: balance; }
.welcome p { margin: 0 0 1.3em; }
.welcome p.center { margin-top: 1.5em; }

/* Three link columns */
.link-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.link-columns img { width: 100%; }
.link-columns ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink); line-height: 1.35; }

.connect { text-align: center; padding: 24px 0 26px; }
.connect h2 { color: var(--blue); font-size: 26px; margin: 0 0 26px; }
.social { display: flex; justify-content: center; gap: 22px; }
.social img { width: 40px; height: 40px; }

/* Sidebar */
.sign-tall { width: 100%; margin-top: 2px; }
.sign { width: 100%; }
.news-item { display: flex; flex-direction: column; gap: 14px; text-align: center; color: var(--green); }
.news-item img { width: 100%; aspect-ratio: 295 / 133; object-fit: cover; }
.entrance { width: 100%; margin-top: 20px; aspect-ratio: 300 / 112; object-fit: cover; }
.fb-link { display: block; margin-top: 18px; padding-left: 14px; border-left: 4px solid #ddd; font-style: italic; }
.events { list-style: none; margin: 20px 0 0; padding: 0 8px; display: flex; flex-direction: column; gap: 18px; }
.event { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 8px; align-items: center; }
.badge {
  background: var(--teal); color: var(--white); border-radius: 12px; text-align: center;
  padding: 7px 0 5px; box-shadow: 2px 3px 0 #123f4f; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.badge .m { display: block; font-size: 14px; letter-spacing: .03em; }
.badge .d { display: block; font-size: 28px; margin-top: 3px; }
.event-title { color: var(--teal); font-size: 19px; line-height: 1.05; white-space: pre-line; }
.event-meta { display: block; font-size: 14px; color: var(--text); margin-top: 4px; }
.events-loading, .events-empty { color: var(--text); font-size: 15px; text-align: center; }
.sidebar .center { margin: 30px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 70px; }
.foot-cards {
  max-width: 1200px; margin: 0 auto;
  padding: 0 max(26px, env(safe-area-inset-right, 0px)) 0 max(26px, env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.foot-card { display: flex; align-items: center; gap: 24px; padding: 24px 30px; min-height: 200px; }
.foot-card img { width: auto; height: 150px; flex: none; }
.foot-contact { display: flex; flex-direction: column; gap: 4px; }
.pill-enroll {
  align-self: flex-start; background: var(--green); color: var(--white);
  font-size: 24px; padding: 2px 24px; border-radius: 999px; margin-bottom: 26px; white-space: nowrap;
}
.pill-enroll:hover { text-decoration: none; filter: brightness(1.08); }
.foot-art {
  width: min(1423px, 100%);
  aspect-ratio: 1423 / 372;
  margin: 36px auto 0;
  background: url(../img/footer-bg.png) center bottom / 100% auto no-repeat;
}
.areas { background: var(--lime); color: var(--ink); text-align: center; }
.areas .inner, .copyright .inner {
  max-width: 1200px; margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
}
.areas h2 { margin: 0 0 8px; font-size: 24px; }
.areas p { margin: 0; }
.copyright { background: var(--green-dark); color: var(--white); text-align: center; }
.copyright .inner { padding-block: 48px 50px; }
.copyright p { margin: 0 0 6px; }
.copyright a { color: var(--white); text-decoration: underline; }
.copyright .small { font-size: 15px; line-height: 1.55; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 1000px) {
  .main-menu > li > a { font-size: 17px; padding: 7px 12px 8px; }
  .quick { gap: 10px; }
}

/* ---------- Phone ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; background-size: 1100px auto; }
  .site-header { min-height: 0; padding-top: 4px; padding-bottom: 32px; }
  .hdr { grid-template-columns: 88px 1fr 88px; align-items: center; }
  .pill-phone, .pill-apply { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    grid-column: 1; grid-row: 1; width: 44px; height: 44px; padding: 10px 9px;
    background: transparent; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 3px; background: var(--white); border-radius: 2px; }
  .logo { margin-top: 0; }
  .logo img { width: 190px; }
  .mobile-phone { display: flex; grid-column: 3; grid-row: 1; justify-self: end; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .mobile-phone img { filter: brightness(0) invert(1); width: 24px; height: 24px; }
  .mobile-social { display: flex; justify-content: center; gap: 10px; grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
  .mobile-social img { width: 30px; height: 30px; }

  .site-nav { margin-top: 10px; gap: 10px; }
  .quick { flex-wrap: wrap; justify-content: center; gap: 6px; }
  .quick a { font-size: 15px; padding: 4px 12px 5px; }
  .main-menu { flex-wrap: wrap; justify-content: center; border-radius: 26px; padding: 2px 8px; max-width: 100%; }
  .main-menu > li > a { font-size: 16px; padding: 6px 8px 7px; }
  .main-menu > li.has-sub > a { padding-right: 0; }
  .sub-toggle { width: 24px; height: 32px; margin-right: 2px; }
  .sub { display: none; left: 50%; transform: translateX(-50%); min-width: 230px; max-width: calc(100vw - 32px); transition: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; transform: translateX(-50%); }
  .main-menu > li:first-child .sub { left: 0; transform: none; }
  .main-menu > li:last-child .sub { left: auto; right: 0; transform: none; }

  .page { gap: 24px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .main-col { padding: 10px 10px 16px; }
  .slide { grid-template-columns: 1fr; gap: 14px; align-content: start; }
  .slide img { order: -1; }
  .slide-text h2 { font-size: 24px; margin-bottom: 14px; }
  .slide-text p { font-size: 13px; }
  .slide-more { font-size: 11px; margin-top: 18px; }
  .welcome { margin-top: 28px; }
  .welcome h1 { font-size: 26px; }
  .link-columns { grid-template-columns: 1fr; gap: 20px; max-width: 360px; margin-inline: auto; }
  .sidebar { display: flex; }
  .foot-cards { grid-template-columns: 1fr; gap: 20px; padding-left: max(10px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); }
  .foot-card { min-height: 0; padding: 18px 20px; }
  .foot-card img { height: 110px; }
  .pill-enroll { font-size: 17px; padding: 4px 16px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .sub { transition: none; }
}

/* ---------- Header search button ---------- */
.search-link { grid-column: 3; grid-row: 1; justify-self: end; margin-right: 222px; margin-top: 6px; color: var(--white); display: flex; }
.search-link:hover { filter: drop-shadow(0 0 4px rgba(0,0,0,.25)); }
@media (max-width: 820px) {
  .search-link { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; width: 44px; height: 44px; align-items: center; justify-content: center; }
  .search-link svg { width: 24px; height: 24px; }
}

/* ---------- Inner pages ---------- */
.entry { padding: 18px 26px 34px; }
.entry-title { color: var(--blue); text-align: center; font-size: 36px; line-height: 1.15; margin: 4px 0 18px; text-wrap: balance; }
.featured { margin: 0 auto 24px; display: flex; justify-content: center; }
.featured img { max-height: 340px; width: auto; }
.post-meta { text-align: center; font-size: 15px; color: #6b737b; margin: -8px 0 22px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--blue); line-height: 1.2; margin: 1.4em 0 .5em; text-wrap: balance; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 19px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .3em; }
.entry-content img { height: auto; }
.entry-content figure { margin: 0 0 1.2em; }
.entry-content figcaption { font-size: 14px; text-align: center; color: #6b737b; margin-top: 6px; }
.entry-content blockquote { margin: 1em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--green); font-style: italic; }
.entry-content hr, .wp-block-separator { border: 0; border-top: 2px solid #e4e8e4; margin: 2em 0; }
.entry-content iframe { max-width: 100%; border: 0; }
.entry-content table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; font-size: 16px; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid #d9dfd9; padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content tr:first-child td { background: #eef7f0; }
.entry-content .aligncenter, .entry-content .has-text-align-center { text-align: center; margin-left: auto; margin-right: auto; }
.entry-content img.aligncenter, .entry-content .aligncenter > img { display: block; margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 4px 20px 12px 0; }
.entry-content .alignright { float: right; margin: 4px 0 12px 20px; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-image.aligncenter, .wp-block-image .aligncenter { display: table; margin-inline: auto; }
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 1.4em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-columns.are-vertically-aligned-top { align-items: flex-start; }
.wp-block-group__inner-container > * { max-width: 100%; }
.wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wp-block-gallery figure { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.wp-block-embed { margin: 0 0 1.4em; }
.wp-block-embed__wrapper { position: relative; }
.wp-block-spacer { height: 24px; }
/* Staff photos that swap on hover */
.ghub-image-swap-container { position: relative; display: grid; justify-items: center; }
.ghub-image-swap-container > figure { grid-area: 1 / 1; margin: 0; transition: opacity .5s; }
.ghub-image-swap-container > figure + figure { opacity: 0; }
.ghub-image-swap-container:hover > figure + figure { opacity: 1; }
.ghub-image-swap-container img { height: var(--ghub-image-height, 150px); width: auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 820px) {
  .entry { padding: 14px 14px 26px; }
  .entry-title { font-size: 28px; }
  .wp-block-columns { flex-direction: column; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 auto 12px; display: block; }
}

/* Contact notice where the old site had a form */
.form-note { background: #eef7f0; border-radius: 12px; padding: 16px 20px; margin: 1em 0; }
.form-note p:last-child { margin-bottom: 0; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 2px solid #e4e8e4; font-size: 15px; }
.post-nav a { max-width: 48%; }
.post-nav .newer { text-align: right; margin-left: auto; }

/* Blog lists */
.cat-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 26px; }
.cat-links a { background: #eef7f0; border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.post-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid #e4e8e4; }
.post-card-img { display: block; aspect-ratio: 4 / 3; background: #eef7f0 url(../img/favicon.png) center / 32px no-repeat; border-radius: 10px; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card h2 { font-size: 21px; line-height: 1.2; margin: 0 0 4px; }
.post-card h2 a { color: var(--blue); }
.post-card .post-meta { text-align: left; margin: 0 0 8px; font-size: 14px; }
.post-card p { margin: 0; font-size: 16px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e4e8e4; font-size: 16px; }
.pager span { color: #6b737b; }
@media (max-width: 600px) {
  .post-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .post-card h2 { font-size: 18px; }
  .post-card p:not(.post-meta) { display: none; }
}

/* ---------- School Calendar ---------- */
.cal-page { --lunch: #f69422; --act: #0873ba; --camp: #673191; --closed: #d0234e; }
.cal-bar { display: flex; align-items: center; justify-content: center; gap: 18px; }
.cal-bar h2 { margin: 0; min-width: 9em; text-align: center; color: var(--green-dark); font-size: 26px; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; padding-bottom: 4px; }
.cal-nav:hover, .cal-today:hover { filter: brightness(1.08); }
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 14px; }
.cal-today { border: 2px solid var(--green); background: var(--white); color: var(--green); border-radius: 999px; padding: 5px 16px; font: inherit; font-size: 15px; cursor: pointer; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 15px; }
.cal-filters label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cal-filters label::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.f-lunch { --c: var(--lunch); } .f-act { --c: var(--act); } .f-camp { --c: var(--camp); } .f-closed { --c: var(--closed); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #dfe5df; border-left: 1px solid #dfe5df; }
.cal-grid .dow { background: var(--green-dark); color: var(--white); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 0; border-right: 1px solid #2d7558; }
.cal-grid .day { min-height: 104px; border-right: 1px solid #dfe5df; border-bottom: 1px solid #dfe5df; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-grid .day.blank { background: #f7f9f7; }
.cal-grid .day.closed { background: #fdf0f3; }
.cal-grid .num { font-size: 13px; font-weight: 700; color: #6b737b; font-variant-numeric: tabular-nums; }
.cal-grid .today .num { background: var(--green); color: var(--white); border-radius: 999px; padding: 1px 7px; align-self: flex-start; }
.ev { border-left: 3px solid var(--c, var(--act)); background: color-mix(in srgb, var(--c, var(--act)) 10%, white); border-radius: 4px; padding: 2px 5px; font-size: 12px; line-height: 1.25; white-space: pre-line; overflow-wrap: anywhere; }
.ev-time { display: block; font-weight: 700; font-size: 11px; color: var(--c); }
.c-lunch { --c: var(--lunch); } .c-act { --c: var(--act); } .c-camp { --c: var(--camp); } .c-closed { --c: var(--closed); }
.cal-list { display: none; list-style: none; padding: 0; margin: 0; }
.cal-list li { padding: 12px 0; border-bottom: 1px solid #e4e8e4; display: flex; flex-direction: column; gap: 6px; }
.cal-list li.today h3::after { content: "Today"; margin-left: 8px; background: var(--green); color: var(--white); font-size: 12px; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.cal-list h3 { margin: 0; font-size: 17px; color: var(--green-dark); }
.cal-list .ev { font-size: 15px; padding: 5px 9px; }
.cal-list .ev-time { font-size: 13px; }
.cal-status { text-align: center; color: #6b737b; font-size: 15px; margin: 14px 0 0; }
.cal-pdf { font-size: 15px; color: #6b737b; text-align: center; margin: 18px 0 0; }
@media (max-width: 820px) {
  .cal-grid { display: none; }
  .cal-list { display: block; }
  .cal-bar h2 { font-size: 22px; min-width: 0; }
}

/* ---------- Search ---------- */
.search-form { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 10px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 14px; border: 2px solid #cfd8cf; border-radius: 999px; }
.search-form input:focus { outline: none; border-color: var(--green); }
.search-form button { font: inherit; font-weight: 700; background: var(--green); color: var(--white); border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.search-count { text-align: center; color: #6b737b; font-size: 15px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { padding: 14px 0; border-top: 1px solid #e4e8e4; }
.search-results a { font-size: 19px; font-weight: 700; color: var(--blue); }
.search-results .post-meta { font-size: 14px; }
.search-results p { margin: 4px 0 0; font-size: 15px; }

/* Photos placed inside text flow side by side (old galleries), unless the page centers them */
.entry-content p img, .entry-content a > img { display: inline-block; vertical-align: top; margin: 0 6px 8px 0; }
.entry-content p img.aligncenter, .entry-content a > img.aligncenter { display: block; margin: 0 auto 12px; }

/* ---------- Tour Today! button ---------- */
.pill-tour { font-weight: 700; font-size: 20px; padding: 3px 26px; }
@media (max-width: 820px) {
  .mobile-tour { width: auto; height: auto; background: var(--green); color: var(--white); border: 3px solid var(--white); border-radius: 999px;
    font-size: 12px; font-weight: 700; line-height: 1.1; padding: 5px 7px; text-align: center; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
  .mobile-tour:hover { text-decoration: none; }
}

/* ---------- Menu bar: one line at every width ---------- */
@media (max-width: 820px) {
  .main-menu { flex-wrap: nowrap; border-radius: 999px; padding: 1px 4px; border-width: 2px; }
  .main-menu > li > a { font-size: clamp(11px, 3.25vw, 17px); padding: 6px clamp(3px, 1.2vw, 10px) 7px; white-space: nowrap; letter-spacing: -.01em; }
  .main-menu > li.has-sub > a { padding-right: 0; }
  .sub-toggle { width: clamp(14px, 4vw, 24px); margin-right: clamp(0px, .6vw, 4px); }
  .sub-toggle::before { width: 6px; height: 6px; }
}
@media (max-width: 820px) {
  .hdr { grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); }
  .logo img { width: min(190px, 46vw); }
  .mobile-social { grid-column: 1 / -1; }
}
@media (max-width: 350px) {
  .main-menu > li > a { font-size: 10px; padding: 5px 2px 6px; letter-spacing: -.02em; }
  .sub-toggle { width: 12px; margin-right: 1px; }
  .sub-toggle::before { width: 5px; height: 5px; }
}
@media (max-width: 400px) {
  .foot-card { gap: 14px; padding: 16px 14px; }
  .foot-card img { height: 90px; }
  .foot-contact { min-width: 0; }
  .foot-contact a { overflow-wrap: anywhere; }
  .pill-enroll { font-size: 15px; padding: 4px 12px; }
}

/* Menu bar text: regular weight */
.main-menu > li > a { font-weight: 400; }

/* ---------- Areas We Serve band: pale sky, evenly centered ---------- */
.areas { background: #dff2fb; color: #2f4656; }
.areas .inner { padding-block: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.areas h2 { color: var(--blue); margin: 0; }
.areas p { margin: 0; max-width: 62em; text-wrap: balance; }

/* ---------- Fixed hillside scene behind the whole page (like the old site) ----------
   A fixed layer instead of background-attachment:fixed, which iPhones ignore. */
body { background: var(--green); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--green) url(../img/body-bg.jpg) center top / cover no-repeat;
}
.foot-art { margin-top: 24px; }
