body.fu-page {
  --fu-bg: #281638;
  --fu-surface: #362149;
  --fu-ink: #fff8ff;
  --fu-muted: #dfcce9;
  --fu-line: #725b84;
  --fu-heading: #ece4ee;
  --fu-selected: #f2dff9;
  --fu-selected-ink: #281638;
  --fu-warning: #f9d68a;
  --fu-warning-ink: #281638;
  --fu-warning-edge: #f9d68a;
  --fu-focus: #f9d68a;
  --fu-panel: #fff8ff08;
  --fu-press-tint: #a775db1c;
  --fu-ambient-light: #c39beb17;
  --fu-new: #ff7e90;
  --fu-new-label: #ffb0bd;
  color-scheme: dark;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  background: var(--fu-bg);
  color: var(--fu-ink);
  font-family: "TASA Orbiter", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

@media (prefers-color-scheme: light) {
  body.fu-page {
    --fu-bg: #faf6fc;
    --fu-surface: #f3eaf7;
    --fu-ink: #2d1b3c;
    --fu-muted: #594465;
    --fu-line: #927ba2;
    --fu-heading: #33213f;
    --fu-selected: #56336c;
    --fu-selected-ink: #fff8ff;
    --fu-warning: #f6dea0;
    --fu-warning-ink: #39250a;
    --fu-warning-edge: #956014;
    --fu-focus: #684184;
    --fu-panel: #69418c0b;
    --fu-press-tint: #aa7bd61a;
    --fu-ambient-light: #9f70c615;
    --fu-new: #a52a53;
    --fu-new-label: #8d2449;
    color-scheme: light;
  }
}

.fu-wrap { width: min(42rem, calc(100% - 2rem)); margin-inline: auto; }
.fu-page a { color: var(--fu-ink); text-underline-offset: .2em; }
.fu-page :is(a, summary):focus-visible { outline: 3px solid var(--fu-focus); outline-offset: 3px; border-radius: .2rem; }
.fu-header { border-bottom: 1px solid var(--fu-line); padding-block: .35rem; }
.fu-topline { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 0 1rem; }
.fu-topline > a, .fu-languages summary, .fu-languages a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.fu-topline > a { font-weight: 650; }
.fu-languages { position: relative; }
.fu-languages summary { display: list-item; padding-block: .65rem; cursor: pointer; }
.fu-languages nav { position: absolute; z-index: 2; inset-inline-end: 0; min-width: 9rem; padding: .35rem .85rem; background: var(--fu-surface); border: 1px solid var(--fu-line); border-radius: .5rem; }
.fu-languages .gtranslate_wrapper { display: grid; }
.fu-languages a.glink { margin: 0 !important; }
.fu-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  padding-block: 1rem;
}
.fu-filters a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  min-height: 64px;
  padding: .45rem .25rem;
  border: 1px solid var(--fu-line);
  border-radius: .65rem;
  background: var(--fu-surface);
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.fu-filters .fc-material-symbol { font-size: 1.15rem; }
.fu-filters a[aria-current="page"] { background: var(--fu-selected); color: var(--fu-selected-ink); font-weight: 750; }
.fu-stream { position: relative; isolation: isolate; overflow: clip; overflow-clip-margin: 1rem; }
.fu-stream::before {
  position: absolute;
  z-index: -1;
  inset: 0 -1rem auto;
  block-size: clamp(20rem, 62vh, 38rem);
  background: radial-gradient(ellipse 50% 50% at center, var(--fu-ambient-light), transparent);
  opacity: 0;
  transform: translateY(calc(var(--fu-spotlight-y, 0px) - 50%));
  pointer-events: none;
  content: "";
}
.fu-stream.fu-spotlight-active::before { opacity: 1; }
.fu-page:has(.fu-day-dialog[open]) .fu-stream::before { opacity: 0; }
.fu-multi-day { margin-block-end: 1rem; padding: .8rem .95rem; border-inline-start: 3px solid var(--fu-line); background: var(--fu-panel); }
.fu-multi-day h2 { margin: 0 0 .25rem; color: var(--fu-ink); font-size: 1rem; }
.fu-multi-day ul { margin: 0; padding: 0; list-style: none; }
.fu-multi-day li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .8rem; padding-block: .35rem; }
.fu-multi-day li + li { border-top: 1px solid var(--fu-line); }
.fu-multi-day li > span { color: var(--fu-muted); font-size: .9rem; }
.fu-multi-day a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .fu-stream::before { transition: transform 300ms ease-out, opacity 220ms ease-out; }
}
.fu-day { border-top: 1px solid var(--fu-line); }
.fu-day > summary {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .75rem;
  min-height: 44px;
  padding: 1rem .65rem;
  list-style: none;
  cursor: pointer;
}
.fu-day > summary::-webkit-details-marker { display: none; }
.fu-day > summary::after {
  width: .55rem;
  height: .55rem;
  margin: .55rem .2rem 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: "";
}
.fu-day[open] > summary::after { transform: translateY(.2rem) rotate(225deg); }
.fu-day-summary { display: grid; justify-items: start; gap: .4rem; overflow-wrap: anywhere; }
.fu-day-date-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.fu-no-school-label { padding: .15rem .5rem; border-radius: .3rem; background: var(--fu-warning); color: var(--fu-warning-ink); font-size: .9rem; }
.fu-event-count { padding: .1rem .45rem; border: 1px solid var(--fu-line); border-radius: .3rem; color: var(--fu-muted); font-size: .8rem; font-weight: 700; }
.fu-day-no-school > summary { border-inline-start: 3px solid var(--fu-warning-edge); }
.fu-day-summary time { padding: .12rem .35rem; border-radius: .3rem; font-size: 1.1rem; font-weight: 750; }
.fu-day-preview { display: grid; gap: .18rem; padding-inline: .35rem; color: var(--fu-muted); font-size: .9rem; }
.fu-day-preview strong { color: var(--fu-ink); }
.fu-day.fu-item-in-view > summary time { background: var(--fu-selected); color: var(--fu-selected-ink); }
.fu-day.fu-item-in-view .fu-day-preview { color: var(--fu-ink); }
.fu-day[open] .fu-day-preview { display: none; }
.fu-day-section { margin: 0 .65rem 1rem; padding: .8rem .85rem; border-radius: .45rem; background: var(--fu-panel); }
.fu-day-section h2 { margin: 0; color: var(--fu-ink); font-size: .95rem; font-weight: 750; }
.fu-day-lunch ul { margin: .45rem 0 0; padding-inline-start: 1.15rem; color: var(--fu-muted); }
.fu-day-lunch a { margin-inline-end: .75rem; display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.fu-day-close { display: none; }

body.fu-page:has(.fu-day-dialog[open]) { overflow: hidden; }
.fu-day-dialog {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 max(.35rem, env(safe-area-inset-right)) 0 max(.35rem, env(safe-area-inset-left));
  border: 0;
  background: var(--fu-bg);
  color: var(--fu-ink);
  overflow: hidden;
}
.fu-day-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.fu-day-dialog::backdrop { background: #170c23d9; }
.fu-day-reader {
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block-start: calc(4rem + env(safe-area-inset-top));
}
.fu-day-dialog .fu-day { border-top: 0; }
.fu-day-dialog .fu-day > summary {
  position: sticky;
  z-index: 1;
  top: 0;
  align-items: center;
  padding-block: max(.6rem, env(safe-area-inset-top)) .6rem;
  border-bottom: 1px solid var(--fu-line);
  background: var(--fu-bg);
}
.fu-day-dialog .fu-day > summary::after { display: none; }
.fu-day-dialog .fu-day-close {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid var(--fu-line);
  border-radius: .4rem;
  font-weight: 700;
}
.fu-day-dialog .fu-day-section { margin-block: .75rem; }
.fu-day-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  padding: .55rem .65rem max(.65rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--fu-line);
  background: var(--fu-bg);
}
.fu-day-nav button {
  display: grid;
  align-content: center;
  min-height: 48px;
  padding: .4rem .65rem;
  border: 1px solid var(--fu-line);
  border-radius: .45rem;
  background: var(--fu-surface);
  color: var(--fu-ink);
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.fu-day-nav button:last-child { text-align: end; }
.fu-day-nav button:only-child { grid-column: 1 / -1; }
.fu-day-nav button:disabled { opacity: .45; cursor: default; }
.fu-day-nav button:focus-visible { outline: 3px solid var(--fu-focus); outline-offset: 2px; }
.fu-day-nav-date { color: var(--fu-muted); font-size: .78rem; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .fu-day-dialog[open] { animation: fu-day-open 280ms cubic-bezier(.2, .75, .25, 1) both; }
  @keyframes fu-day-open {
    from { opacity: 0; transform: translateY(.65rem) scale(.965); }
    to { opacity: 1; transform: none; }
  }
  .fu-day-summary time { transition: background-color 180ms ease-out, color 180ms ease-out; }
  .fu-day-preview { transition: color 180ms ease-out; }
}
@media (forced-colors: active) {
  .fu-day.fu-item-in-view > summary time { outline: 2px solid Highlight; }
}
.fu-items { margin-top: .5rem; }
.fu-items { list-style: none; margin: 0; padding: 0; font-size: 1.125rem; }
.fu-items > li { border-top: 1px solid var(--fu-line); padding-block: 1.45rem; overflow-wrap: anywhere; }
.fu-items h3 { margin: .15rem 0 .35rem; color: var(--fu-ink); font-size: clamp(1.375rem, 4vw, 1.75rem); font-weight: 700; line-height: 1.3; }
.fu-items p { margin: .35rem 0 0; }
.fu-items :is(.fu-post-meta, .fh-event-date, .fh-event-location) { color: var(--fu-muted); font-size: 1rem; }
.fu-items .fu-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; margin: 0; }
.fu-items :is(.fh-event, .fu-news) { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem; }
.fu-items .fh-date-stamp { display: grid; place-content: center; align-self: start; width: 3.1rem; min-height: 3.4rem; border-radius: .45rem; background: var(--fu-surface); color: var(--fu-ink); text-align: center; line-height: 1.1; }
.fu-day-section .fu-items :is(.fh-event, .fu-news) { display: block; padding-block: .85rem; }
.fu-day-section .fu-items > li:first-child { border-top: 0; }
.fu-day-section .fu-items .fh-date-stamp { display: none; }
.fu-items .fh-date-stamp span { font-size: .76rem; }
.fu-items .fh-date-stamp strong { font-size: 1.3rem; }
.fu-items :is(.fh-event-details, .fu-news-details) > summary { width: fit-content; min-height: 44px; padding-block: .6rem; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.fu-items :is(.fh-event-details[open], .fu-news-details) > div { padding-inline-start: .75rem; border-inline-start: 2px solid var(--fu-line); }
.fu-items .fh-event-details a { overflow-wrap: anywhere; }
.fu-calendar-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .75rem .25rem; }
.fu-calendar-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .65rem; border: 1px solid var(--fu-line); border-radius: .4rem; background: var(--fu-surface); font-size: .9rem; font-weight: 700; }
.fu-news-preview { padding-block: .15rem; }
.fu-news-preview > :is(p, ul, ol) { margin-block: 0 .7rem; }
.fu-news-preview :is(ul, ol) { padding-inline-start: 1.25rem; }
.fu-news-preview :is(ul, ol):not(.fu-actions) > li + li { margin-block-start: .25rem; }
.fu-news-preview h4 { margin-block: .85rem .3rem; color: inherit; font-size: 1.125rem; font-weight: 700; }
.fu-news-preview .fu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin-block: 0 .85rem;
}
.fu-page .fu-action-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .7rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: var(--fu-warning);
  color: var(--fu-warning-ink);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}
.fu-page .fu-action-link:hover { text-decoration: underline; }
.fu-article-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 700; }
.fu-empty { border-top: 1px solid var(--fu-line); padding-top: 1rem; }
.fu-pagination, .fu-footer { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.fu-pagination a, .fu-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.fu-footer { border-top: 1px solid var(--fu-line); margin-block: 1rem 0; padding-block: .65rem max(.65rem, env(safe-area-inset-bottom)); }

.fu-new-updates {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 .65rem;
  padding-bottom: .45rem;
}
.fu-new-updates[hidden] { display: none; }
.fu-next-new { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 700; }
.fu-new-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--fu-new); }
.fu-new-count { color: var(--fu-muted); font-size: .875rem; }
.fu-new-badge { display: none; }
.fu-is-new .fu-new-badge {
  display: inline-block;
  margin-inline-start: .2rem;
  color: var(--fu-new-label);
  font-size: .78rem;
  font-weight: 700;
  vertical-align: middle;
}
.fu-items > li { scroll-margin-block-start: 3rem; }
.fu-items h3:focus-visible { outline: 2px solid var(--fu-focus); outline-offset: .25rem; }

.fu-items h3 { color: var(--fu-heading); }
.fu-items h3 a { color: inherit; }
@media (forced-colors: active) {
  .fu-filters a[aria-current="page"] { border-color: Highlight; color: Highlight; }
}


.fu-items > li {
  position: relative;
  isolation: isolate;
}

.fu-items > li::before {
  position: absolute;
  z-index: -1;
  inset: 0 -.4rem;
  border-radius: .4rem;
  opacity: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(115deg, var(--fu-press-tint), transparent 75%);
}

.fu-items > li:active::before { opacity: 1; }

.fu-items :is(.fh-event-details, .fu-news-details):not([open]) > summary::after,
.fu-event-calendar::after {
  position: absolute;
  inset: 0;
  cursor: pointer;
  content: "";
}

.fu-event-calendar {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .fu-items > li::before { transition: opacity 190ms ease-out; }
  .fu-items > li:active::before { transition-duration: 75ms; }
  .fu-items > li:has(:is(.fh-event-details, .fu-news-details)[open])::before { animation: fu-press-fade 330ms ease-out; }
  @keyframes fu-press-fade {
    from { opacity: 1; }
    to { opacity: 0; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .fu-items :is(.fh-event-details, .fu-news-details) { interpolate-size: allow-keywords; }

    .fu-items :is(.fh-event-details, .fu-news-details)::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 190ms cubic-bezier(.2, 0, 0, 1), content-visibility 190ms allow-discrete;
    }

    .fu-items :is(.fh-event-details, .fu-news-details)[open]::details-content {
      block-size: auto;
      transition-duration: 260ms;
    }
  }
}

/* Material fade through for peer views, with the heading and filters anchored. */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .fu-header { view-transition-name: feed-header; }
  .fu-filters { view-transition-name: feed-filters; }
  .fu-stream { view-transition-name: feed-stream; }

  ::view-transition-group(*) { animation-duration: 250ms; }
  ::view-transition-old(root),
  ::view-transition-old(feed-header),
  ::view-transition-old(feed-filters) { animation: none; opacity: 0; }
  ::view-transition-new(root),
  ::view-transition-new(feed-header),
  ::view-transition-new(feed-filters) { animation: none; }

  ::view-transition-old(feed-stream) { animation: fu-stream-exit 85ms cubic-bezier(.3, 0, .8, .15) both; }
  ::view-transition-new(feed-stream) { animation: fu-stream-enter 165ms cubic-bezier(.05, .7, .1, 1) 85ms both; }

  .fu-languages[open] nav { animation: fu-fade-in 150ms ease-out both; }
  .fu-items .fh-event-details[open] > div { animation: fu-fade-in 180ms ease-out both; }
}

@keyframes fu-stream-exit { to { opacity: 0; } }
@keyframes fu-stream-enter {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes fu-fade-in { from { opacity: 0; } }
