/* -----------------
   Minimal CSS Reset (blended with theme where sensible)
--------------------*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html:has(.admin-bar),
html:has(.admin-bar) .site-header {
  margin-top: 32px !important;
}

body {
  margin: 0;  
  line-height: var(--lh-160);
  background: linear-gradient(rgba(243, 238, 235, 0.7), rgba(243, 238, 235, 0.7)), url("../images/school-bg.webp");
  background-size: contain;
  background-repeat: repeat;
    font-family: var(--font-body);
  font-style: normal;
  font-weight: var(--font-body-weight);
  font-optical-sizing: auto;
  font-variation-settings:
    "slnt" 0,
    "wdth" var(--font-body-wdth),
    "GRAD" var(--font-body-grad),
    "ROND" var(--font-body-rond);
  color: var(--color-text);
}

/* Optional utility for forcing variable font on specific elements */
.google-sans-flex {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "ROND" 0;
}

ul,
ol {
  margin: 0;
  padding: 0 0 0 30px;
}

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  background-color: transparent;
  font-weight: 500;
  text-decoration: none !important;
  text-underline-offset: 0.15em;
}

.textColumn a:not(.btn) {
    color: var(--color-blue);
}

.textColumn a:not(.btn):hover {
    color: var(--color-blue-dark);
}

button,
input,
select,
textarea,
optgroup {
  font: inherit;
  line-height: inherit;
  margin: 0;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.tableInnerSectionHeader {
  background: #f2f2f2 !important;
  font-weight: bold !important;
}

[hidden] {
  display: none !important;
}

/* ===============
   Base Typography
==================*/

body h1,
body h2,
body h3,
body h4,
body h5 {
  font-weight: 700;
}

body h1,
body h2,
body h3,
body h4,
body h5 {
  margin: 20px 0;
}

body hr {
    margin: clamp(30px, 3vw, 40px) 0 !important;
    border: none !important;
    border-top: 6px dotted var(--color-blue-04) !important;
}

.gform_wrapper h1,
.gform_wrapper h2,
.gform_wrapper h3,
.gform_wrapper h4,
.gform_wrapper h5,
.gform_wrapper hr {
  margin: 15px 0;
}

body p {
  margin: 15px 0;
}

body li:not(.menu-item):not(:first-of-type) {
  margin-top: 15px;
}

/* Default element sizes */
body p,
body li,
body a,
body button,
body div,
body input,
body select,
body textarea {
  font-size: var(--body-font);
  line-height: var(--lh-140);
}

/*=====================
Headings default sizing
=======================*/
body h1, body h2 {
  line-height: 105%;
}

body h1 {
  font-size: var(--fs-h1);
}

body h2 {
  font-size: var(--fs-h2);
}

body h3 {
  font-size: var(--fs-h3);
}

body h4 {
  font-size: var(--fs-h4);
}

body h3, body h4 {
    line-height: 125%;
}

body h5 {
  font-size: var(--fs-h5);
  line-height: 133%;
}

/*=======================
Headings Class Overwrites
=========================*/

.fs-hero {
    line-height: 95%;
}

.fs-h1, .fs-h2 {
  line-height: 105% !important;
}

.fs-hero {
    font-size: var(--fs-hero);
}

.fs-h1 {
  font-size: var(--fs-h1) !important;
}

.fs-h2 {
  font-size: var(--fs-h2) !important;
}

.fs-h3 {
  font-size: var(--fs-h3) !important;
}

.fs-h4 {
  font-size: var(--fs-h4) !important;
}

.fs-h3, .fs-h4 {
    line-height: 115% !important;
}

.fs-h5 {
  font-size: var(--fs-h5) !important;
  line-height: 133% !important;
}

.gform_wrapper h1 {
  font-size: var(--fs-h3);
}
.gform_wrapper h2 {
  font-size: var(--fs-h4);
}
.gform_wrapper h3 {
  font-size: var(--fs-h5);
}
.gform_wrapper h4 {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
}
.gform_wrapper h5 {
  font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Eyebrow / pre-heading */
.preHeading,
.eyebrow {
  font-size: var(--pre-heading-font);
  line-height: var(--lh-140);
}

/* ================
   Select Utilities
===================*/
select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Pro v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2025 Fonticons, Inc.--><path d="M331.3 475.3C325.1 481.5 314.9 481.5 308.7 475.3L100.7 267.3C94.5 261.1 94.5 250.9 100.7 244.7C106.9 238.5 117.1 238.5 123.3 244.7L320 441.4L516.7 244.7C522.9 238.5 533.1 238.5 539.3 244.7C545.5 250.9 545.5 261.1 539.3 267.3L331.3 475.3z"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) 50%;
  background-size: 15px;
  padding: 10px 40px 10px 20px;
  box-shadow: inset 1px 2px 3px rgba(0, 0, 0, 0.1);
}

main > section.relatedPages:last-of-type {
  margin-bottom: -70px;
  padding-bottom: calc(var(--spacing-y-axis) + 70px);
}

.wp-block-group:has(.section) .section {
  width: 100%;
  max-width: 100%;
}



/* =================
   Table Styles
====================*/
table {
  width: max-content;
  min-width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  font-family: inherit;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: #333;
  border-radius: 5px;
  background-color: var(--color-white);
  display: table;
}

.tableResponsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

thead,
thead th {
  background-color: var(--color-green-muted);
}

th {
  color: var(--color-white);
  text-align: left;
  font-weight: 700;
  font-size: var(--body-font);
  text-wrap: wrap !important;
  min-width: 20ch;
}

th,
td {
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

td {
  line-height: 1.5;
  font-size: var(--body-font-sm);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background-color: color-mix(in srgb, var(--color-blue) 8%, var(--color-white));
}

tbody tr:hover {
  background-color: color-mix(in srgb, var(--color-blue) 14%, var(--color-white));
}

tbody tr td[colspan] {
  background: #f3f4f6;
  font-weight: 700;
  border-left: none;
  border-right: none;
}

.schoolCalendarArchiveHeading {
  align-items: end;
  column-gap: var(--g-02);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: var(--g-01);
}

.schoolCalendarArchiveIntro {
  max-width: 60ch;
}

.schoolCalendarArchiveIntro h2,
.schoolCalendarArchiveIntro p {
  margin-block: 0;
}

.schoolCalendarArchiveIntro p {
  color: var(--color-text-light);
  margin-top: 15px !important;
}

.schoolCalendarArchiveControls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.schoolCalendarControlField {
  min-width: min(100%, 280px);
}

.schoolCalendarControlField label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.schoolCalendarControlField select {
  min-width: min(100%, 280px);
  width: 100%;
}

.schoolCalendarViewToggle {
  align-self: end;
}

.schoolCalendarEmptyMonth,
.schoolCalendarNoEvents {
  color: var(--color-text-light);
  margin: 0;
}

.schoolCalendarMonthGrid {
  display: grid;
  gap: var(--g-01);
}

.schoolCalendarGridWrap {
  overflow-x: auto;
}

.schoolCalendarWeekdays {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  margin-bottom: 1px;
  min-width: 840px;
}

.schoolCalendarWeekdays span {
  background: var(--color-blue);
  color: var(--color-white);
  font-size: var(--body-font-sm);
  font-weight: 700;
  padding: 12px 14px;
  text-align: center;
}

.schoolCalendarGrid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  min-width: 840px;
}

.schoolCalendarDay {
  background: color-mix(in srgb, var(--color-blue) 6%, var(--color-white));
  border: 1px solid color-mix(in srgb, var(--color-blue) 15%, var(--color-white));
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  padding: 14px;
}

.schoolCalendarDay.is-outside-month {
  background: #f5f6f8;
  color: var(--color-text-light);
}

.schoolCalendarDay.has-events {
  background: color-mix(in srgb, var(--color-cream) 55%, var(--color-white));
}

.schoolCalendarDay.is-today {
  background: color-mix(in srgb, var(--color-red) 12%, var(--color-white));
  border-color: var(--color-red);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-red) 30%, var(--color-white));
}

.schoolCalendarDay.is-today .schoolCalendarDayNumber {
  align-items: center;
  background: var(--color-red);
  border-radius: 999px;
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.15rem;
}

.schoolCalendarDayHeader {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.schoolCalendarDayWeekday {
  font-size: var(--body-font-sm);
  font-weight: 700;
  text-transform: uppercase;
}

.schoolCalendarDayNumber {
  font-size: var(--fs-h5);
  font-weight: 700;
  line-height: 1;
}

.schoolCalendarDayEvents {
  display: grid;
  gap: 10px;
}

.schoolCalendarDayEvent {
  background: var(--color-white);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
}

.schoolCalendarDayEvent h4,
.schoolCalendarDayEvent p {
  margin: 0;
}

.schoolCalendarDayEvent h4 {
  font-size: 0.95rem;
}

.schoolCalendarDayEvent p {
  color: var(--color-text-light);
  font-size: var(--body-font-sm);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .schoolCalendarArchiveControls,
  .schoolCalendarControlField,
  .schoolCalendarControlField select,
  .schoolCalendarViewToggle {
    width: 100%;
  }

  .schoolCalendarGridWrap {
    overflow-x: visible;
  }

  .schoolCalendarWeekdays {
    display: none;
  }

  .schoolCalendarGrid {
    gap: 12px;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .schoolCalendarDay {
    gap: 10px;
    min-height: 0;
    padding: 12px;
  }

  .schoolCalendarDay.is-outside-month {
    display: none;
  }

  .schoolCalendarDayHeader {
    justify-content: flex-start;
  }

  .schoolCalendarDayNumber {
    min-width: 1.5em;
  }

  .schoolCalendarWeekdays span {
    font-size: 0.75rem;
    padding: 10px 6px;
  }

  .schoolCalendarDayEvent {
    box-shadow: none;
  }
}

.newsletterArchiveControls {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.newsletterArchiveControls label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletterArchiveControls input[type="search"],
.newsletterArchiveControls select {
  width: 100%;
}

.newsletterArchivePaginationWrap {
  margin-top: 20px;
}

.newsletterArchivePagination .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.newsletterArchivePagination .page-numbers {
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-green-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: var(--body-font-sm);
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 14px;
}

.newsletterArchivePagination .page-numbers.current {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.newsletterArchivePagination .page-numbers[disabled] {
  cursor: default;
}

.newsletterArchivePagination .dots {
  color: var(--color-text-light);
  cursor: default;
}


/* =============
   Quote Section
================*/
.quoteSection {
  width: 100%;
}
