/* [project]/src/styles/site.css [app-client] (css) */
:root {
  --color-brand: #005ea8;
  --color-focus: #005ea8;
  --focus-colour: #fd0;
  --focus-text-colour: #0b0c0c;
  --color-link-hover: #002f54;
  --color-button-hover: #004b86;
  --color-secondary-text: #505a5f;
  --color-rule: #b1b4b6;
  --color-surface: #fff;
  --color-text: #171717;
  --content-width: 68rem;
  --space-inline: clamp(1rem, 4vw, 2rem);
}

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

html {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  scroll-padding-block-start: 1rem;
  font-size: 100%;
}

body {
  background: var(--color-surface);
  color: var(--color-text);
  min-height: 100vh;
  margin: 0;
  font-family: arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

body > div, body > main {
  min-width: 0;
}

a {
  color: var(--color-brand);
  /* Match GOV.UK’s baseline offset without adding an extra descender offset. */
  text-underline-offset: .1578em;
  text-underline-position: auto;
  text-decoration: underline;
  text-decoration-thickness: max(1px, .0625rem);
}

a:hover {
  color: var(--color-link-hover);
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
  text-decoration-thickness: max(3px, .1875rem, .12em);
} .site-footer__inner, .page-shell {
  max-width: var(--content-width);
  padding-inline: var(--space-inline);
  margin-inline: auto;
} .action-list {
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.page-shell {
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.page-header {
  max-width: 52rem;
  margin-block-end: clamp(2rem, 5vw, 3rem);
}

.page-header > :last-child {
  margin-block-end: 0;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  margin-block: 1.6em .55em;
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  margin-block: 0 clamp(1.25rem, 3vw, 2rem);
  font-size: 2rem;
  line-height: 1.1;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.125rem;
}

h4, h5, h6 {
  font-size: 1rem;
}

p, li {
  max-width: 72ch;
}

.page-caption, .eyebrow {
  color: var(--color-secondary-text);
  margin-block: 0 .3125rem;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
}

.lead {
  max-width: 41rem;
  margin-block: 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

@media (min-width: 40.0625rem) {
  main {
    font-size: 1.1875rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4, h5, h6 {
    font-size: 1.1875rem;
  }

  .page-caption, .eyebrow {
    font-size: 1.5rem;
  }

  .lead {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

.action-list {
  margin-block-start: 1.5rem;
}

.content-section, .callout, .link-collection, .image-block, .table-scroll {
  margin-block: clamp(2rem, 6vw, 4rem);
}

.content-section .content-section, .content-section .callout, .content-section .link-collection, .content-section .image-block, .content-section .table-scroll {
  margin-block: 2rem;
}

.content-section--linked {
  border-block-start: 1px solid var(--color-rule);
  margin-block: 0;
  padding-block: 1.25rem .5rem;
}

.content-section--linked:last-child {
  border-block-end: 1px solid var(--color-rule);
}

.content-section--linked > h2 {
  margin-block: 0 .5rem;
  font-size: 1.25rem;
}

.content-section--linked .rich-text p {
  margin-block: 0 .5rem;
}

@media (min-width: 40.0625rem) {
  .content-section--linked > h2 {
    font-size: 1.5rem;
  }
}

.callout {
  border-inline-start: .4rem solid var(--color-brand);
  background: #f3f7fa;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
}

.callout--warning {
  background: #fff7e6;
}

.link-collection ul {
  gap: .65rem;
  padding-inline-start: 1.25rem;
  display: grid;
}

.link-collection a, .rich-text a {
  min-height: 1.5rem;
}

.image-block {
  max-width: 40rem;
  margin-inline: 0;
}

.image-block img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-block figcaption {
  max-width: 72ch;
  margin-block-start: .65rem;
  font-size: .95rem;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline-offset: .25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: min(100%, 38rem);
}

caption {
  text-align: start;
  padding-block-end: .65rem;
  font-size: 1.2rem;
  font-weight: 800;
}

th, td {
  text-align: start;
  vertical-align: top;
  border: 1px solid #6b7280;
  padding: .7rem;
}

th {
  background: #edf2f5;
}

.site-footer {
  background: #f3f7fa;
  border-block-start: 1px solid #8eb8dc;
  margin-block-start: 3rem;
}

.site-footer__inner {
  padding-block: clamp(2rem, 5vw, 3rem) 2.5rem;
}

.postal-address {
  white-space: pre-line;
}

.new-tab-label {
  font-size: .9em;
}

.system-home {
  max-width: 68rem;
  padding: clamp(2rem, 8vw, 6rem) var(--space-inline);
  margin-inline: auto;
}

.system-site-directory {
  border-block: 1px solid #c3c9cf;
  margin-block: clamp(2rem, 6vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.system-site-directory h2 {
  margin-block-start: 0;
}

.system-site-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: .75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.system-site-list--districts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}

.system-site-list > li {
  border: 1px solid #8a949e;
  padding: 1rem;
}

.system-site-links {
  gap: .45rem;
  display: grid;
}

.system-site-identity {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.system-site-identity a {
  font-size: 1.05rem;
  font-weight: 750;
}

.system-site-links > a {
  font-size: .9rem;
}

.system-school-sites {
  border-block-start: 1px solid #c3c9cf;
  margin-block-start: 1rem;
  padding-block-start: 1rem;
}

.system-school-sites h3 {
  margin-block: 0 .75rem;
  font-size: 1rem;
}

.system-school-sites ul {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.system-school-sites li {
  background: #f3f7fa;
  border: 1px solid #c3c9cf;
  padding: .75rem;
}

.system-ungrouped-sites {
  margin-block-start: 2rem;
}

.system-home__assurance-note {
  max-width: 72ch;
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) { .callout{
    border: 1px solid canvastext;
  }
}

@media print {

  a {
    color: inherit;
  }
}

.footer-navigation ul {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.1rem;
  display: flex;
}

.footer-navigation ul, .active-alerts ul, .collection-list, .search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-navigation {
  margin-block-end: 1.5rem;
}

.footer-navigation a {
  min-height: 2.75rem;
  padding-block: .5rem;
  display: inline-flex;
}

.active-alerts {
  color: #171717;
  background: #f3f7fa;
  border-block-end: 1px solid #8a949e;
}

.active-alerts__inner {
  max-width: var(--content-width);
  padding: 1.25rem var(--space-inline);
  margin-inline: auto;
}

.active-alerts h2 {
  margin-block: 0 .85rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.active-alerts ul {
  gap: .75rem;
  display: grid;
}

.site-alert {
  background: #fff;
  border: 2px solid #4b5563;
  border-inline-start-width: .55rem;
  padding: 1rem clamp(1rem, 3vw, 1.4rem);
}

.site-alert--information {
  border-inline-start-color: #005ea8;
}

.site-alert--closure {
  background: #fff7e6;
  border-inline-start-color: #8a5700;
}

.site-alert--urgent {
  background: #fdebec;
  border-inline-start-color: #b10e1e;
}

.site-alert h3 {
  margin-block: .25rem .5rem;
}

.site-alert p {
  margin-block: .5rem;
}

.alert-tone {
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-block: 0;
  font-size: .9rem;
  font-weight: 800;
}

.preserve-lines, .preserved-text p, .contact-address, .contact-panel {
  white-space: pre-line;
}

.structured-page__header {
  margin-block-end: clamp(2rem, 5vw, 3.5rem);
}

.collection-list, .search-results {
  gap: 1.25rem;
  max-width: 58rem;
  display: grid;
}

.collection-list--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.collection-card, .search-result {
  border: 1px solid #6b7280;
  height: 100%;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.collection-card h2, .search-result h2 {
  /* Leave room between wrapped link lines, including the thicker hover underline. */
  line-height: 1.4;
  margin-block: .3rem .65rem;
  font-size: clamp(1.3rem, 3vw, 1.65rem);
}

.collection-card > :first-child, .search-result > :first-child {
  margin-block-start: 0;
}

.collection-card > :last-child, .search-result > :last-child {
  margin-block-end: 0;
}

.item-meta {
  color: #4b5563;
  font-size: .95rem;
  font-weight: 650;
}

.staff-role {
  margin-block: .35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.alert-card {
  color: #171717;
  border-inline-start-width: .55rem;
}

.alert-card--information {
  background: #e8f3fb;
  border-inline-start-color: #005ea8;
}

.alert-card--closure {
  background: #fff7e6;
  border-inline-start-color: #8a5700;
}

.alert-card--urgent {
  background: #fdebec;
  border-inline-start-color: #b10e1e;
}

.structured-detail {
  max-width: 58rem;
}

.structured-detail > section, .structured-detail > .preserved-text, .structured-detail > .table-scroll {
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-address, .contact-panel, .compact-contact {
  font-style: normal;
}

.contact-panel {
  border-inline-start: .3rem solid var(--color-brand);
  padding-inline-start: 1rem;
}

.contact-panel p, .compact-contact p, .footer-hours p {
  margin-block: .4rem;
}

.content-action {
  margin-block-start: 1.5rem;
} .assistant-dialog__controls button {
  background: var(--color-brand);
  border: 2px solid var(--color-brand);
  color: #fff;
  font: inherit;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  font-weight: 750;
  display: inline-flex;
}

.document-links, .menu-items {
  padding-inline-start: 1.35rem;
}

.document-links li + li, .menu-items li + li {
  margin-block-start: .35rem;
}

.empty-state {
  color: #171717;
  background: #f3f7fa;
  border: 1px solid #8a949e;
  max-width: 52rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.empty-state p {
  margin: 0;
}

.site-search__controls {
  flex-wrap: wrap;
  gap: .65rem;
  display: flex;
} .assistant-dialog__controls input {
  color: #171717;
  font: inherit;
  background: #fff;
  border: 2px solid #4b5563;
  flex: 18rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: .5rem .7rem;
}

.search-status {
  margin-block: 1.25rem 2rem;
  font-weight: 700;
}

.site-search__hint {
  color: #4b5563;
  margin: .6rem 0 0;
  font-size: .95rem;
}

.staff-search + .search-status {
  margin-block-end: .5rem;
}

.staff-search__reset {
  margin-block: 0 2rem;
}

.staff-search__reset a {
  min-height: 2.75rem;
  font-weight: 700;
  display: inline-flex;
}

.search-result .item-meta {
  margin-block-end: .2rem;
}

.footer-hours, .postal-address {
  max-width: 72ch;
}

@media (max-width: 48rem) {
  .collection-list--grid{
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .active-alerts, .alert-card, .collection-card, .empty-state, .search-result, .site-alert, .system-site-list li {
    border: 1px solid canvastext;
  }
}

@media print {
  .footer-navigation{
    display: none;
  }

  .collection-card, .search-result, .site-alert {
    break-inside: avoid;
  }
}

.assistant-search {
  min-width: 0;
  display: flex;
}

.assistant-search__field {
  background: #fff;
  border: 2px solid #fff;
  border-radius: .5rem;
  flex: auto;
  align-items: center;
  min-width: 0;
  min-height: 2.75rem;
  display: flex;
}

.assistant-search__icon {
  color: var(--color-brand);
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-inline-start: .6rem;
}

.assistant-search input {
  color: #171717;
  width: 17rem;
  font: inherit;
  background: none;
  border: 0;
  flex: auto;
  min-width: 0;
  min-height: 2.5rem;
  padding: .4rem .6rem;
}

.assistant-search input::placeholder {
  color: #4b5563;
  opacity: 1;
}

.assistant-search button {
  background: var(--color-brand);
  color: #fff;
  font: inherit;
  border: 0;
  border-radius: .35rem;
  flex: none;
  align-items: center;
  min-height: 2.35rem;
  margin: .2rem;
  padding: .3rem .9rem;
  font-weight: 750;
  display: inline-flex;
}

.assistant-dialog {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid #4b5563;
  border-radius: .75rem;
  width: 100%;
  max-width: min(40rem, 100vw - 2rem);
  margin: auto;
  padding: 0;
}

.assistant-dialog::backdrop {
  background: #17171799;
}

.assistant-dialog a {
  color: var(--color-brand);
  min-height: 0;
  padding-inline: 0;
  display: inline;
}

.assistant-dialog ul {
  list-style: outside;
}

.assistant-dialog__header {
  border-block-end: 1px solid #c3c9cf;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  display: flex;
}

.assistant-dialog__header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
}

.assistant-dialog__close {
  color: inherit;
  font: inherit;
  background: none;
  border: 2px solid #4b5563;
  border-radius: .4rem;
  flex: none;
  align-items: center;
  gap: .4rem;
  min-height: 2.75rem;
  padding: .4rem .8rem;
  font-weight: 700;
  display: inline-flex;
}

.assistant-dialog__close svg {
  width: 1rem;
  height: 1rem;
}

.assistant-dialog__intro {
  color: #4b5563;
  max-width: none;
  margin: 0;
  padding: .9rem 1.25rem 0;
  font-size: .95rem;
}

.assistant-log {
  max-height: min(50vh, 28rem);
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.assistant-log:empty {
  padding-block: .5rem;
}

.assistant-log ol {
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.assistant-message {
  border: 1px solid #c3c9cf;
  border-radius: .6rem;
  max-width: none;
  padding: .75rem 1rem;
}

.assistant-message--user {
  background: #f3f7fa;
  margin-inline-start: 2rem;
}

.assistant-message--assistant {
  border-inline-start: .35rem solid var(--color-brand);
  margin-inline-end: 2rem;
}

.assistant-message__who {
  color: #4b5563;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .25rem;
  font-size: .85rem;
  font-weight: 800;
}

.assistant-message p {
  margin: .25rem 0;
}

.assistant-message ul {
  gap: .35rem;
  margin: .5rem 0 0;
  padding-inline-start: 1.25rem;
  display: grid;
}

.assistant-message a {
  min-height: 1.5rem;
  display: inline-flex;
}

.assistant-message li {
  max-width: none;
}

.assistant-pending {
  margin: 0;
  padding: 0 1.25rem .75rem;
  font-weight: 700;
}

.assistant-dialog__form {
  border-block-start: 1px solid #c3c9cf;
  padding: 1rem 1.25rem;
}

.assistant-dialog__form label {
  margin-block-end: .45rem;
  font-weight: 800;
  display: block;
}

.assistant-dialog__controls {
  flex-wrap: wrap;
  gap: .65rem;
  display: flex;
}

.assistant-dialog__footer {
  margin: 0;
  padding: 0 1.25rem 1rem;
  font-size: .95rem;
}

@media (max-width: 48rem) {
  .assistant-message--user {
    margin-inline-start: .75rem;
  }

  .assistant-message--assistant {
    margin-inline-end: .75rem;
  }
}

@media (forced-colors: active) {
  .assistant-search__field, .assistant-search button, .assistant-dialog, .assistant-dialog__close, .assistant-message {
    border: 1px solid canvastext;
  }
}

@media print {
  .assistant-search, .assistant-dialog {
    display: none;
  }
}

.home-page__header {
  margin-block-end: 1.5rem;
}

.home-quick-links {
  border-block-start: 1px solid #c3c9cf;
  margin-block-start: 1.25rem;
  padding-block-start: .4rem;
}

.home-badges {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.home-badge {
  display: inline-flex;
}

.home-badge img {
  object-fit: contain;
  width: auto;
  max-width: 100%;
  height: 4.5rem;
  display: block;
}

.home-quick-links ul, .home-task-grid, .home-card-grid, .home-event-list, .home-update-list, .home-gallery, .home-school-grid, .home-link-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-quick-links ul, .home-link-panel ul {
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  display: flex;
}

.home-quick-links a, .home-link-panel a {
  min-height: 2.75rem;
  padding-block: .5rem;
  font-weight: 700;
  display: inline-flex;
}

.home-module {
  border-block-start: 1px solid #c3c9cf;
  margin-block: clamp(2.25rem, 5vw, 3.5rem);
  padding-block-start: clamp(1.25rem, 3vw, 2rem);
}

.home-module__heading {
  margin-block-end: 1.25rem;
}

.home-module__heading h2, .home-link-panel h2 {
  margin-block: 0;
}

.home-module__heading--with-link {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 2rem;
  display: flex;
}

.home-module__heading--with-link > a {
  font-weight: 700;
}

.home-task-grid, .home-card-grid, .home-gallery, .home-school-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  display: grid;
}

.home-task-card, .home-card, .home-update, .home-school-grid li {
  border: 1px solid #8a949e;
  height: 100%;
  padding: clamp(1rem, 3vw, 1.4rem);
}

.home-task-card h3, .home-card h3, .home-update h3 {
  line-height: 1.4;
  margin-block: 0 .55rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
}

.home-task-card p, .home-card p, .home-update p {
  margin-block: .5rem;
}

.home-card__meta {
  color: #4b5563;
  font-size: .92rem;
  font-weight: 650;
}

.home-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-gallery__item {
  border: 1px solid #8a949e;
  height: 100%;
  margin: 0;
}

.home-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

.home-gallery__item figcaption {
  padding: .8rem 1rem 1rem;
}

.home-event-list, .home-update-list {
  gap: .85rem;
  max-width: 58rem;
  display: grid;
}

.home-event-card {
  border-inline-start: .35rem solid var(--color-brand);
}

.home-update {
  color: #171717;
  background: #f3f7fa;
}

.home-school-grid li {
  align-items: center;
  min-height: 4.5rem;
  display: flex;
}

.home-school-grid a {
  font-size: 1.05rem;
  font-weight: 750;
}

.home-detail-blocks > :first-child, .home-detail-blocks > :first-child > :first-child {
  margin-block-start: 0;
}

.home-link-panels {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  display: grid;
}

.home-link-panel {
  color: #171717;
  background: #f3f7fa;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.home-link-panel h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

@media (max-width: 64rem) {
  .home-task-grid, .home-card-grid, .home-school-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .home-task-grid, .home-card-grid, .home-gallery, .home-school-grid {
    grid-template-columns: 1fr;
  }

  .home-module__heading--with-link {
    flex-direction: column;
    align-items: start;
  }
}

@media (forced-colors: active) {
  .home-card, .home-event-card, .home-gallery__item, .home-link-panel, .home-school-grid li, .home-task-card, .home-quick-links, .home-update {
    border-color: canvastext;
  }
}

@media print {
  .home-quick-links, .home-link-panel {
    display: none;
  }

  .home-card, .home-gallery__item, .home-task-card, .home-update {
    break-inside: avoid;
  }
}

.home-empty-state {
  color: #171717;
  background: #f3f7fa;
  border: 1px solid #8a949e;
  max-width: 52rem;
  margin: 0;
  padding: 1rem 1.25rem;
}

@media (forced-colors: active) {
  .home-empty-state {
    border-color: canvastext;
  }
}

.visually-hidden {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.site-logo {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
}

.site-logo img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.site-mark {
  border-radius: .5rem;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
}

.site-mark svg {
  width: 100%;
  height: 100%;
}

.site-mark--on-surface {
  background: var(--site-mark-color, var(--color-brand));
  color: #fff;
}

.site-mark--on-brand {
  color: var(--site-mark-color, var(--color-brand));
  background: #fff;
}

.site-logo .site-mark {
  width: 100%;
  height: 100%;
}

.media-frame__placeholder {
  background: repeating-linear-gradient(135deg, #17171714, #17171714 6px, #17171705 6px 12px);
  border: 1px solid #8a949e;
  width: 100%;
  height: 100%;
  display: block;
}

.media-frame {
  background: #f3f7fa;
  margin-block-end: .85rem;
  overflow: hidden;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--square {
  aspect-ratio: 1;
  max-width: 8rem;
}

.media-frame img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.home-card--media .media-frame, .collection-card--media .media-frame {
  width: auto;
  margin-block-start: calc(-1 * clamp(1rem, 3vw, 1.4rem));
  margin-inline: calc(-1 * clamp(1rem, 3vw, 1.4rem));
}

.collection-card--media .media-frame {
  margin-block-start: calc(-1 * clamp(1rem, 3vw, 1.5rem));
  margin-inline: calc(-1 * clamp(1rem, 3vw, 1.5rem));
}

.home-school-card {
  align-items: center;
  gap: .85rem;
  min-height: 3.5rem;
  font-size: 1.05rem;
  font-weight: 750;
  display: flex;
}

.date-chip {
  background: var(--color-brand);
  color: #fff;
  border-radius: .25rem;
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  min-height: 3.5rem;
  padding: .35rem .5rem;
  line-height: 1.1;
  display: flex;
}

.date-chip__month {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 750;
}

.date-chip__day {
  font-size: 1.45rem;
  font-weight: 800;
}

.home-event-card, .collection-card--dated {
  gap: 1rem;
  display: flex;
}

.home-event-card__body, .collection-card__body {
  min-width: 0;
}

.home-event-card__body > :first-child, .collection-card__body > :first-child {
  margin-block-start: 0;
}

.home-event-card__body > :last-child, .collection-card__body > :last-child {
  margin-block-end: 0;
}

.calendar {
  margin-block-end: clamp(2rem, 5vw, 3rem);
}

.calendar__controls {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  display: flex;
}

.calendar__controls h2 {
  margin-block: 0;
}

.calendar__months {
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  max-width: none;
  margin: 0;
  display: flex;
}

.calendar__months a {
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
  display: inline-flex;
}

.calendar__scroll {
  max-width: 100%;
  margin-block-start: 1rem;
  position: relative;
  overflow-x: auto;
}

.calendar__grid {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 44rem;
}

.calendar__grid th {
  text-align: start;
  border: 1px solid #8a949e;
  padding: .5rem;
  font-size: .9rem;
}

.calendar__grid abbr {
  text-decoration: none;
}

.calendar__cell {
  vertical-align: top;
  border: 1px solid #8a949e;
  height: 6.5rem;
  padding: .4rem .5rem;
}

.calendar__cell--empty {
  background: #f7f9fb;
}

.calendar__cell--today {
  box-shadow: inset 0 0 0 3px var(--color-brand);
}

.calendar__date {
  align-items: center;
  gap: .4rem;
  margin: 0 0 .35rem;
  font-weight: 700;
  display: flex;
}

.calendar__today {
  background: var(--color-brand);
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: .2rem;
  padding: .1rem .35rem;
  font-size: .7rem;
  font-weight: 750;
}

.calendar__events {
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.calendar__events li {
  max-width: none;
  font-size: .92rem;
  display: grid;
}

.calendar__events a {
  font-weight: 650;
}

.calendar__event-time {
  color: #4b5563;
  font-size: .85rem;
}

.events-month h2 {
  margin-block-start: 0;
}

@media (max-width: 42rem) {
  .media-frame--square {
    max-width: 6rem;
  }
}

@media (forced-colors: active) {
  .calendar__cell, .calendar__grid th, .date-chip, .media-frame__placeholder, .site-mark {
    border: 1px solid canvastext;
  }

  .calendar__cell--today {
    box-shadow: inset 0 0 0 3px canvastext;
  }
}

@media print {
  .calendar__months, .media-frame__placeholder {
    display: none;
  }

  .calendar__cell, .collection-card {
    break-inside: avoid;
  }
}

.home-page {
  padding-block-start: 0;
}

.home-masthead {
  background: var(--color-brand);
  box-shadow: 0 0 0 100vmax var(--color-brand);
  clip-path: inset(0 -100vmax);
  color: #fff;
  grid-template-columns: minmax(0, 40rem) auto;
  justify-content: space-between;
  align-items: end;
  gap: 1.75rem 3rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.25rem, 5vw, 3.75rem);
  display: grid;
}

.home-masthead h1 {
  color: #fff;
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 3.25rem);
  line-height: 1.08;
}

.home-masthead__lead {
  max-width: 34rem;
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.home-search__controls {
  display: flex;
}

.home-search__icon {
  width: 1.4rem;
  height: 1.4rem;
}

.home-masthead a {
  color: #fff;
}

.home-masthead__links ul {
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.home-masthead .home-badges {
  margin: 0;
}

.home-masthead .home-badge {
  background: #fff;
  border-radius: .75rem;
  padding: .5rem;
}

.home-masthead .home-badge img {
  height: clamp(5rem, 10vw, 7rem);
}

.home-popular {
  border-block-end: 3px solid var(--color-brand);
  padding-block: clamp(2rem, 5vw, 3rem) clamp(1.75rem, 4vw, 2.75rem);
}

.home-popular h2 {
  margin-block: 0 1.5rem;
}

.home-popular__list, .link-topics {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.home-popular__list a {
  align-items: center;
  gap: .9rem;
  min-height: 2.75rem;
  font-size: 1.1875rem;
  font-weight: 700;
  display: inline-flex;
}

.home-popular__arrow {
  color: #0b0c0c;
  background: #d2e2f1;
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
}

.home-popular__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}

.home-topics {
  padding-block: clamp(2rem, 5vw, 3rem) 0;
}

.home-topics .link-collection {
  margin-block: 0;
}

.home-topics .link-collection h2 {
  margin-block: 0 1.5rem;
}

.link-collection ul.link-topics {
  gap: 1.75rem 2.25rem;
  padding-inline-start: 0;
}

.link-topics a {
  font-size: 1.1875rem;
  font-weight: 700;
}

.link-topics p {
  margin: .35rem 0 0;
  font-size: 1rem;
}

@media (max-width: 48rem) {
  .home-masthead {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 40rem) {
}

@media (max-width: 22.4rem) {
}

@media (forced-colors: active) {
}

@media print {
}

@media (min-width: 48rem) {
}

.site-footer__navigation {
  border-block-end: 1px solid #8eb8dc;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem 3rem;
  margin-block-end: 2rem;
  padding-block-end: 2rem;
  display: grid;
}

.site-footer__heading {
  border-block-end: 1px solid #8eb8dc;
  margin: 0 0 1rem;
  padding-block-end: 1rem;
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.site-footer__section ul {
  gap: .15rem 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.site-footer__section--wide ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__section a {
  align-items: center;
  min-height: 2.75rem;
  display: inline-flex;
}

.site-footer__meta {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem 3rem;
  display: flex;
}

.site-footer__contact {
  flex: 24rem;
}

.site-footer__contact p, .site-footer__contact address {
  margin-block: 0 .5rem;
}

.site-footer__inline-list {
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin: 0 0 .5rem;
  padding: 0;
  list-style: none;
  display: flex;
}

.site-footer__copyright {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  display: flex;
}

.site-footer__copyright .site-logo {
  width: 5.5rem;
  height: 5.5rem;
}

.site-footer__copyright p {
  margin: 0;
}

@media (max-width: 40rem) {
  .site-footer__navigation, .site-footer__section--wide ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__copyright {
    text-align: start;
    align-items: flex-start;
  }
}

:focus-visible {
  box-shadow: 0 0 0 4px var(--focus-colour),
    0 0 0 8px var(--focus-text-colour);
  outline: 3px solid #0000;
}

a:focus {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-color: var(--focus-colour);
  box-shadow: 0 -2px var(--focus-colour),
    0 4px var(--focus-text-colour);
  color: var(--focus-text-colour);
  outline: 3px solid #0000;
  text-decoration: none;
}

input:focus, select:focus, textarea:focus {
  box-shadow: inset 0 0 0 2px var(--focus-text-colour);
  outline: 3px solid var(--focus-colour);
  outline-offset: 0;
}

button:focus {
  background-color: var(--focus-colour);
  border-color: var(--focus-colour);
  box-shadow: 0 2px 0 var(--focus-text-colour);
  color: var(--focus-text-colour);
  outline: 3px solid #0000;
}

main[tabindex="-1"]:focus {
  box-shadow: none;
  outline: none;
}

.home-masthead .home-badge:focus {
  background-color: var(--focus-colour);
}

@supports selector(:has(*)) {
  .assistant-search__field:has(input:focus) {
    border-color: var(--focus-text-colour);
    outline: 3px solid var(--focus-colour);
    outline-offset: 0;
  }

  .assistant-search__field input:focus {
    box-shadow: none;
    outline: 3px solid #0000;
  }
}

