/* v272.90: shared public geometry and function buttons. The stored radius governs
   cards/frames; v272.93 restores independent curved controls below. */
html:root body.public-body .public-shell [class], html:root body.public-body .public-shell button,
html:root body.public-body .public-shell input, html:root body.public-body .public-shell select,
html:root body.public-body [role="dialog"] [class], html:root body.public-body [role="dialog"] button,
html:root body.public-body [role="dialog"] input, html:root body.public-body .public-header .public-menu-panel-v2709,
html:root body.public-body .public-header a, html:root body.public-body .public-header button,
html:root body.public-body .site-header.public-header .public-menu-button-v2709,
html:root body.public-body #classFilterList .public-ks-group, html:root body.public-body #classFilterList .filter-button {
  border-radius: var(--public-corner-radius, 16px) !important;
}
body.public-body .public-function-v27290 {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box; min-height: 48px; padding: .6rem 1rem !important; line-height: 1.2 !important;
  font-family: inherit !important; font-size: 1rem !important; font-weight: 700 !important; text-decoration: none !important;
  background: var(--public-button-bg, #1765a8) !important; color: var(--public-button-text, #fff) !important;
  border: 1px solid var(--public-button-border, #0c3f78) !important;
}
body.public-body .public-stay-v27265 { margin: .5rem auto .15rem; }
body.public-body .public-stay-v27265 .public-stay-button-v27265 { flex: 0 1 20rem; width: 20rem !important; max-width: 100%; }
/* v273.11: the explicit track/thumb pattern used by the admin sliding switches.
   Keep internal circles independent of the school's square/curved card branding. */
body.public-body #weatherToggleButton {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box; min-height: 48px; max-width: 100%; gap: .75rem; padding: .4rem 1rem !important;
  cursor: pointer; touch-action: manipulation;
}
html:root body.public-body.public-index #weatherToggleButton .weather-switch-label-v27311 { white-space: nowrap; }
html:root body.public-body.public-index #weatherToggleButton [data-weather-state-v27311] { display: inline-block; min-width: 1.6em; text-align: left; }
html:root body.public-body.public-index #weatherToggleButton .weather-switch-track-v27311 {
  display: inline-block; position: relative; flex: 0 0 44px; width: 44px; height: 26px;
  border-radius: 999px !important; background: #64748b; box-shadow: inset 0 0 0 1px rgba(15,23,42,.15);
  pointer-events: none; transition: background 160ms ease;
}
html:root body.public-body.public-index #weatherToggleButton .weather-switch-thumb-v27311 {
  display: block; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50% !important; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.35);
  transition: transform 160ms ease;
}
html:root body.public-body.public-index #weatherToggleButton[aria-checked="true"] .weather-switch-track-v27311 { background: #15803d; }
html:root body.public-body.public-index #weatherToggleButton[aria-checked="true"] .weather-switch-thumb-v27311 { transform: translateX(18px); }
#weatherToggleButton:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
html:root body.public-body.public-index .public-week-title-row { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center !important; justify-content: space-between !important; }
html:root body.public-body.public-index .public-week-title-row .public-week-heading { order: 0 !important; margin: .3rem .75rem .3rem 0 !important; }
html:root body.public-body.public-index .public-week-title-row .public-week-actions-v27290 { order: 1 !important; }
body.public-body .public-week-actions-v27290 { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin: -.25rem; }
body.public-body .public-week-actions-v27290 > * { margin: .25rem !important; min-height: 48px !important; font-size: 1rem !important; line-height: 1.2 !important; padding: .6rem 1rem !important; }
body.public-body .meal-day-v27290 { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; grid-gap: .6rem; width: 100%; padding: 0 !important; align-items: start !important; text-align: left !important; }
body.public-body .meal-content-v27290 { min-width: 0; }
body.public-body .meal-day-v27290 .meal-line { display: block !important; margin: 0 0 .6rem !important; padding: 0 !important; }
body.public-body .meal-day-v27290 .meal-line:last-child { margin-bottom: 0 !important; }
body.public-body .meal-day-v27290 .meal-pay-v27290 { grid-column: 2; grid-row: 1; align-self: start; margin: 0 !important; min-width: 3.5rem !important; }
body.public-body .meal-day-v27290 .meal-line-title,
html:root body.public-body.public-index .public-table .weather-string-label {
  display: block !important; font-family: inherit !important; font-size: .9rem !important; line-height: 1.25 !important;
  font-weight: 700 !important; color: var(--public-subtitle-text, #0c3f78) !important; margin: 0 0 .25rem !important;
}
body.public-body .meal-day-v27290 .meal-line-value { display: block !important; font-size: .95rem !important; line-height: 1.4 !important; }
body.public-body.public-index .public-today-row .day-public-col { box-shadow: none !important; }
body.public-body .public-day-badge.public-day-badge-today { font-size: .95rem !important; }
/* Five forecast cells; fallback is three across, then two across. */
html:root body.public-body.public-index .public-table .weather-string-list {
  display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-gap: .55rem .35rem !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
}
html:root body.public-body.public-index .public-table .weather-string-slot {
  display: flex !important; flex-direction: column !important; grid-column: span 2;
  align-items: center !important; justify-content: flex-start !important; min-width: 0 !important;
  padding: .4rem .1rem !important; white-space: normal !important; text-align: center !important;
  border-bottom: 0 !important; /* v273.01: no underlines in the forecast grid. */
}
html:root body.public-body.public-index .public-table .weather-string-slot:nth-child(n+4) { grid-column: span 3; }
html:root body.public-body.public-index .public-table .weather-string-list.weather-five-v27290 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
html:root body.public-body.public-index .public-table .weather-five-v27290 .weather-string-slot { grid-column: span 1; }
html:root body.public-body.public-index .public-table .weather-emoji { flex: none !important; width: auto !important; height: 2rem; margin: 0 0 .25rem !important; text-align: center !important; font-size: 1.6rem !important; }
html:root body.public-body.public-index .public-table .weather-string-copy { display: block !important; width: 100%; min-width: 0 !important; }
html:root body.public-body.public-index .public-table .weather-string-label { text-align: center !important; }
html:root body.public-body.public-index .public-table .weather-string-line, html:root body.public-body.public-index .public-table .weather-detail { display: block !important; text-align: center !important; white-space: normal !important; font-size: .9rem !important; }
.weather-temperature-v27290, .weather-rain-v27290 { display: block; line-height: 1.45; }
@media (min-width: 1000px) {
  html:root body.public-body.public-index .public-table.weather-enabled th.weather-public-col,
  html:root body.public-body.public-index .public-table.weather-enabled td.weather-public-col { width: 44% !important; min-width: 0 !important; max-width: none !important; }
  html:root body.public-body.public-index .public-table.weather-enabled th:first-child { width: 9% !important; }
  html:root body.public-body.public-index .public-table.weather-enabled th:nth-child(2) { width: 22% !important; }
  html:root body.public-body.public-index .public-table.weather-enabled th:last-child:not(.weather-public-col) { width: 25% !important; }
}
/* The summaries are continuous text, with natural wrapping at any viewport. */
body.public-body .week-settings-open-v27289 { min-height: 48px; padding: .4rem .3rem !important; flex-wrap: nowrap !important; }
body.public-body .week-settings-copy-v27289 { display: block; flex: 1 1 auto; min-width: 0; line-height: 1.6; }
body.public-body .week-settings-title-v27289 { display: inline; margin: 0; font-size: 1rem; }
body.public-body .week-settings-details-v27289 { display: inline; margin: 0; font-size: .95rem; }
body.public-body .week-settings-details-v27289 > span { display: inline; margin: 0; overflow-wrap: break-word; }
.week-settings-details-v27289 > span::before { content: " \00b7 "; padding: 0 .35rem; color: #64748b; }
body.public-body .week-settings-action-v27289 { margin: .2rem 0 0 1rem; }
body.public-body #yearEventsClassesCard { margin-bottom: 1.25rem !important; }
.year-events-body .week-settings-body-v27289 > .section-heading > div { width: 100%; }
@media (max-width: 560px) {
  html:root body.public-body .site-header.public-header .public-menu-button-v2709 { width: 48px !important; height: 48px !important; min-height: 48px !important; }
  html:root body.public-body.year-events-body .year-events-actions-v2703 .ye-action-v2704 { height: 48px !important; min-height: 48px !important; display: inline-flex; align-items: center; justify-content: center; }

  body.public-body.public-index button, body.public-body.year-events-body button,
  body.public-body .public-page-nav-v2707 a, body.public-body .public-function-v27290,
  body.public-body .public-header-actions a, body.public-body .filter-button {
    box-sizing: border-box !important; height: 48px !important; min-height: 48px !important;
    padding-top: .5rem !important; padding-bottom: .5rem !important; font-size: .95rem !important; line-height: 1.2 !important;
  }
  body.public-body .public-stay-v27265 .public-stay-button-v27265 { flex-basis: 100%; width: 100% !important; margin: .25rem 0 !important; }
  html:root body.public-body.public-index .public-week-title-row { flex-direction: column !important; align-items: stretch !important; }
  body.public-body .public-week-heading { order: 0 !important; }
  body.public-body .public-week-actions-v27290 { order: 1 !important; }
  body.public-body .public-week-actions-v27290 { justify-content: center; width: 100%; }
  body.public-body .public-week-actions-v27290 > * { flex: 1 1 auto; }
  body.public-body.public-index button.week-settings-open-v27289, body.public-body.year-events-body button.week-settings-open-v27289 { height: auto !important; align-items: flex-start; }
  body.public-body .week-settings-copy-v27289 { flex-basis: auto; }
  body.public-body .week-settings-action-v27289 { margin: .25rem 0 0 .6rem; }
  .week-settings-action-v27289 > span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { #weatherToggleButton .weather-switch-track-v27311, #weatherToggleButton .weather-switch-thumb-v27311 { transition: none !important; } }

/* v272.93: curved controls are independent of the card/frame radius. */
html:root body.public-body .public-shell button,
html:root body.public-body .public-shell button[class],
html:root body.public-body .public-shell a[class],
html:root body.public-body .public-shell .public-page-nav-item-v2707,
html:root body.public-body .public-shell .ye-action-v2704,
html:root body.public-body [role="dialog"] button,
html:root body.public-body .public-header a,
html:root body.public-body .public-header button,
html:root body.public-body .site-header.public-header .public-menu-button-v2709,
html:root body.public-body #classFilterList .filter-button { border-radius: 12px !important; }
/* v272.94: fixed Weekly View, Monthly View, Calendar, Download positions. */
html:root body.public-body .public-view-heading-v27293,
html:root body.public-body.public-index .public-week-title-row.public-view-heading-v27293 {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  justify-content: flex-start !important; margin: 0 0 1rem !important; gap: .65rem !important;
}
html:root body.public-body .public-view-heading-v27293 .public-view-title-v27293,
html:root body.public-body.public-index .public-view-heading-v27293 .public-week-heading {
  order: 1 !important; flex: none !important; width: 100%; margin: 0 !important; text-align: center !important;
}
html:root body.public-body .public-view-actions-v27293,
html:root body.public-body.public-index .public-week-title-row .public-view-actions-v27293 {
  order: 0 !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: .6rem; width: 100%; max-width: none; margin: 0 !important; align-self: stretch;
}
html:root body.public-body .public-view-actions-v27293 > * {
  display: flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box !important; width: 100% !important; min-width: 0 !important; min-height: 48px !important;
  margin: 0 !important; padding: .55rem .65rem !important; font: inherit !important;
  font-weight: 700 !important; font-size: 1rem !important; line-height: 1.2 !important;
  text-align: center !important; text-decoration: none !important; white-space: normal !important;
}
@media (max-width: 560px) {
  html:root body.public-body .public-view-actions-v27293 { grid-gap: .4rem; }
  html:root body.public-body .public-view-actions-v27293 > * { height: 48px !important; font-size: .9rem !important; padding: .4rem !important; }
}

/* Match the gap below settings to the existing page-side gutters. */
body.public-body .public-shell { --public-page-gap-v27294: clamp(.65rem, 1.35vw, 1.5rem); }
@media (max-width: 760px) { body.public-body .public-shell { --public-page-gap-v27294: .45rem; } }
html:root body.public-body .public-shell > .week-settings-v27289,
html:root body.public-body #yearEventsClassesCard { margin-bottom: var(--public-page-gap-v27294) !important; }
html:root body.public-body .public-shell > .week-settings-v27289 ~ .card { margin-top: 0 !important; }
/* Current view uses the selected button palette, plus an inset mark. */
html:root body.public-body .public-view-actions-v27293 [aria-current="page"] {
  background: var(--public-download-button-bg, #f5c542) !important; color: var(--public-download-button-text, #111827) !important;
  border: 1px solid var(--public-download-button-border, #d09a00) !important; box-shadow: none !important;
  cursor: default; border-radius: 12px !important;
}
html:root body.public-body.public-index .public-table,
html:root body.public-body.public-index .public-table tr,
html:root body.public-body.public-index .public-table th,
html:root body.public-body.public-index .public-table td { border-width: 1px !important; }
html:root body.public-body.year-events-body #yearEventsGrid { margin-top: 1rem !important; }

@media (max-width: 560px) {
  html:root body.public-body .public-view-actions-v27293 > * { font-size: clamp(.75rem, 3.2vw, .9rem) !important; padding: .35rem .2rem !important; }
}

html:root body.public-body.public-index #urgentInfoOutput:empty { display: none !important; }

/* v272.95: one calendar navigation row, including on wide screens. */
html:root body.public-calendar-views-v27295 .public-page-nav-v2707 { display: none !important; }
html:root body.public-calendar-views-v27295 .public-view-actions-v27293 > * {
  background: var(--public-button-bg, #1765a8) !important; color: var(--public-button-text, #fff) !important;
  border: 1px solid var(--public-button-border, #0c3f78) !important;
}
/* v273.00: the selected view uses Public Branding's Download / selected palette. */
html:root body.public-calendar-views-v27295 .public-view-actions-v27293 [aria-current="page"],
html:root body.public-calendar-views-v27295 .public-view-actions-v27293 [aria-expanded="true"] {
  background: var(--public-download-button-bg, #f5c542) !important;
  color: var(--public-download-button-text, #111827) !important;
  border: 1px solid var(--public-download-button-border, #d09a00) !important;
  box-shadow: none !important;
}
@media (max-width: 560px) {
  html:root body.public-calendar-views-v27295 .public-view-actions-v27293 > * { overflow-wrap: anywhere; }
}
/* Useful Links and sign-in remain available through the header menu at every width. */
html:root body.public-calendar-views-v27295 .public-header .public-menu-v2709 { display: block !important; position: relative; }
html:root body.public-calendar-views-v27295 .public-menu-button-v2709 {
  display: inline-flex !important; align-items: center; justify-content: center; width: 48px; height: 48px;
  padding: 0 !important; border: 1px solid var(--public-button-border, #0c3f78) !important;
  background: var(--public-button-bg, #1765a8) !important; color: var(--public-button-text, #fff) !important;
}
body.public-calendar-views-v27295 .public-menu-bars-v2709 { display: grid; grid-gap: 4px; width: 20px; }
body.public-calendar-views-v27295 .public-menu-bars-v2709 span { display: block; height: 2.5px; background: currentColor; }
html:root body.public-calendar-views-v27295 .public-menu-panel-v2709 {
  position: fixed; left: auto; right: 8px; z-index: 3000; width: 20rem; max-width: calc(100vw - 16px);
  padding: .75rem; background: #fff; border: 1px solid rgba(20,79,140,.2); box-shadow: 0 8px 24px rgba(12,35,64,.2);
}
html:root body.public-calendar-views-v27295 .public-menu-panel-v2709[hidden] { display: none !important; }
body.public-calendar-views-v27295 .public-menu-pages-v2709,
body.public-calendar-views-v27295 .public-menu-logins-v2709 { display: grid; grid-gap: .4rem; }
body.public-calendar-views-v27295 .public-menu-item-v2709 { display: block; padding: .65rem; color: var(--public-button-text,#fff); background: var(--public-button-bg,#1765a8); text-align: center; text-decoration: none; }
body.public-calendar-views-v27295 .public-menu-heading-v2709 { margin: .6rem 0 .3rem; font-weight: 700; }
/* A single faint edge, matching a routine block; remove border-like table shadows. */
html:root body.public-body.public-index .public-table { border: 0 !important; box-shadow: none !important; outline: 0 !important; }
html:root body.public-body.public-index .public-table tr { border: 0 !important; box-shadow: none !important; outline: 0 !important; }
html:root body.public-body.public-index .public-table th,
html:root body.public-body.public-index .public-table td { border: 1px solid rgba(20,79,140,.12) !important; box-shadow: none !important; }
@media (max-width: 820px) {
  html:root body.public-body.public-index .public-table tr { border: 1px solid rgba(20,79,140,.12) !important; }
  html:root body.public-body.public-index .public-table td { border: 0 !important; }
  html:root body.public-body.public-index .public-table td + td { border-top: 1px solid rgba(20,79,140,.12) !important; }
}
html:root body.public-body .meal-day-v27290 .meal-line + .meal-line { border-top: 1px solid rgba(20,79,140,.12) !important; padding-top: .6rem !important; }
html:root body.public-body.public-index .weather-string-slot + .weather-string-slot { border-left: 1px solid rgba(20,79,140,.12) !important; }
html:root body.public-body.public-index .weather-string-slot:nth-child(4) { border-left: 0 !important; }
html:root body.public-body.public-index .weather-five-v27290 .weather-string-slot:nth-child(4) { border-left: 1px solid rgba(20,79,140,.12) !important; }
/* The small share window uses the same Primary button branding as Pay. */
.public-share-overlay-v27295 { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15,23,42,.4); }
.public-share-box-v27295 { width: 100%; max-width: 28rem; max-height: calc(100vh - 32px); overflow: auto; padding: 1.2rem; background: #fff; color: #172b47; border: 1px solid #dbe4ef; box-shadow: 0 12px 36px rgba(15,23,42,.24); }
.public-share-head-v27295 { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.public-share-head-v27295 h2 { margin: 0; font-size: 1.25rem; }
.public-share-actions-v27295 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-gap: .6rem; margin: .75rem 0; }
html:root body.public-body .public-share-box-v27295 .public-function-v27290,
html:root body.public-body .public-share-box-v27295 button.public-function-v27290 { min-height: 48px; height: auto !important; border-radius: 12px !important; }
.public-share-box-v27295 label { display: block; font-weight: 700; }
.public-share-box-v27295 select,.public-share-box-v27295 input { width: 100%; box-sizing: border-box; padding: .6rem; margin-top: .35rem; font: inherit; border: 1px solid #b8c9dc; }
.public-share-box-v27295 p { margin: .6rem 0; font-size: .95rem; }
body.public-share-open-v27295 { overflow: hidden; }

/* v273.02: class choices use the same control dimensions as public actions. */
html:root body.public-body #classFilterList .filter-button {
  box-sizing: border-box !important; height: 48px !important; min-height: 48px !important;
  padding: .6rem 1rem !important; font: inherit !important; font-size: 1rem !important;
  font-weight: 700 !important; line-height: 1.2 !important; box-shadow: none !important;
}
html:root body.public-body .public-view-actions-v27293 > * { height: 48px !important; box-shadow: none !important; }
.public-class-names-button-v27302 { display: flex !important; margin: .6rem auto !important; max-width: 100%; height: auto; white-space: normal; }
html:root body.public-body .public-class-names-button-v27302[hidden] { display: none !important; }
.public-alias-field-v27302 { display: grid; gap: .25rem; margin: 1rem 0; }
.public-alias-field-v27302 input { width: 100%; min-height: 48px; padding: .6rem; font: inherit; }
.public-calendar-options-v27302 label { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0; line-height: 1.4; }
.public-calendar-options-v27302 input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin-top: .1rem; }

.public-calendar-options-v27302 label small { display: block; font-size: .85rem; margin-top: .2rem; }

/* v273.03: public teacher labels sit outside the class action. */
html:root body.public-body #classFilterList .public-class-choice-v27303 {
  display: flex; flex-direction: column; align-items: stretch; flex: 0 1 auto;
  min-width: 5.5rem; max-width: 100%; margin: .2rem;
}
html:root body.public-body #classFilterList .public-class-choice-v27303 > .filter-button { margin: 0 !important; width: 100% !important; }
html:root body.public-body #classFilterList .public-class-teacher-v27303 {
  display: block; max-width: 12rem; align-self: center; margin: .3rem .2rem .1rem;
  font: inherit; font-size: .8rem; line-height: 1.3; font-weight: 400;
  text-align: center; overflow-wrap: anywhere; color: var(--public-subtitle-text, #0c3f78);
}
html:root body.public-body #classFilterList .public-class-buttons { align-items: flex-start !important; }
/* v273.14 (Sean): the pop-up boxes rounded like the Weekly View's day boxes (Public Branding: wide and mobile
   corners). Each class is doubled to outrank the shared [role="dialog"] rule above; no :is() (Chrome 81 tablets). */
html:root body.public-body .public-share-box-v27295.public-share-box-v27295,
html:root body.public-body .sub-box-v27265.sub-box-v27265,
html:root body.public-body .class-pin-panel.class-pin-panel,
html:root body.public-body .public-modal-card.public-modal-card,
html:root body.public-body .public-resource-panel.public-resource-panel:not(.fallback-fullscreen) {
  border-radius: var(--public-table-wide-radius, var(--public-corner-radius, 16px)) !important;
}
@media (max-width: 820px) {
  html:root body.public-body .public-share-box-v27295.public-share-box-v27295,
  html:root body.public-body .sub-box-v27265.sub-box-v27265,
  html:root body.public-body .class-pin-panel.class-pin-panel,
  html:root body.public-body .public-modal-card.public-modal-card,
  html:root body.public-body .public-resource-panel.public-resource-panel:not(.fallback-fullscreen) {
    border-radius: var(--public-table-mobile-radius, var(--public-corner-radius, 16px)) !important;
  }
}
/* v273.14 (Sean): on screen the Monthly View's month boxes are rounded like the Weekly View's day boxes (Public
   Branding: wide and mobile corners). The A4 sheet keeps its own "Box corner roundness" for print. */
html:root body.public-body .public-shell .ye-stack .ye-tile.ye-tile { border-radius: var(--public-table-wide-radius, var(--public-corner-radius, 16px)) !important; }
@media (max-width: 820px) {
  html:root body.public-body .public-shell .ye-stack .ye-tile.ye-tile { border-radius: var(--public-table-mobile-radius, var(--public-corner-radius, 16px)) !important; }
}
