@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f7f9fc;
  --ink: #111923;
  --muted: #59636a;
  --line: #d9e4ef;
  --brand: #2e679d;
  --brand-dark: #204f7b;
  --brand-soft: #e6eff8;
  --green: #087052;
  --green-soft: #ddf2ea;
  --violet: #6d3be6;
  --violet-dark: #2f126e;
  --violet-soft: #efe8ff;
  --blue: #2878d7;
  --blue-soft: #e4f1ff;
  --gold: #966000;
  --gold-soft: #fff1d4;
  --coral: #d95646;
  --coral-soft: #ffe9e5;
  --app-width: 34rem;
  --nav-height: 5.35rem;
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.35rem;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(100%, var(--app-width));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 1.25rem);
}

.brand-header {
  padding: max(1.15rem, env(safe-area-inset-top)) 1.35rem 1.15rem;
  background: #fff;
}

.brand {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.6rem;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 0.72rem;
  background: var(--brand);
  color: white;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-copy {
  display: grid;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.brand-copy strong {
  color: var(--brand-dark);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.network-status {
  margin: 0 1.35rem 1rem;
  padding: 0.7rem 0;
  border-block: 1px solid var(--gold);
  color: #7a4b00;
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
}

.home-main {
  --quote-panel: #f0e9f8;
  display: grid;
}

.quote-field {
  --quote-extension: 1.75rem;
  position: relative;
  min-height: calc(39rem + var(--quote-extension));
  padding: 3.6rem 1.7rem calc(13rem + var(--quote-extension));
  background-color: #eee7fa;
  background-image: linear-gradient(90deg, rgba(249, 246, 255, .25), rgba(249, 246, 255, 0)), var(--home-flower, url("assets/quote-flower.jpg"));
  background-position: 80% bottom;
  background-size: cover;
  color: #382457;
  font-family: "Source Sans 3", "Gill Sans", "Avenir Next", sans-serif;
}

.quote-week {
  margin: 0 0 1.35rem;
  color: #55436e;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
}

.weekly-quote {
  max-width: 100%;
  margin: 0 0 1.65rem;
  font-size: clamp(1.625rem, 6.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -.012em;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.quote-author {
  max-width: 25rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.45;
}

.quote-source {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.75rem;
  margin-top: .1rem;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25rem;
}

.quote-source svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 1.5;
}

.quote-source:focus-visible,
.install-control:focus-visible,
.nav-item:focus-visible,
.event-row:focus-visible,
.dialog-close:focus-visible,
.dialog-done:focus-visible,
.week-step:focus-visible,
.date-button:focus-visible,
.filter-chip:focus-visible,
.load-more:focus-visible,
.today-button:focus-visible,
.date-submit:focus-visible,
.next-match:focus-visible {
  outline: 3px solid rgba(46, 103, 157, 0.55);
  outline-offset: 3px;
}

.quote-explore {
  margin: 0;
  padding: 0;
  border-top: 4px solid #fff;
  border-radius: 0;
  background: var(--quote-panel);
  font-family: "Source Sans 3", "Gill Sans", "Avenir Next", sans-serif;
}

.quote-explore h2 {
  margin: 0;
  padding: 1.15rem 1.7rem;
  border-bottom: 4px solid #fff;
  background: #80629e;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.35;
}

.quote-explore-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  margin: 0;
  padding: 0.8rem 1.7rem;
  border-bottom: 4px solid #fff;
  color: #382457;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.quote-explore-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.quote-explore-link:hover {
  color: #68459a;
}

.quote-explore-link:focus-visible {
  outline: 2px solid #55436e;
  outline-offset: -4px;
}

.quote-explore-link:last-child {
  border-bottom: 0;
}

.install-area {
  margin: 1.55rem 1.35rem 0;
}

.install-control {
  display: grid;
  width: 100%;
  grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 0.9rem;
  min-height: 5.5rem;
  padding: 0.95rem 1rem;
  border: 1px dashed #84a5c5;
  border-radius: 1rem;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.install-control:hover {
  background: var(--brand-soft);
}

.install-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.install-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.install-copy {
  display: grid;
}

.install-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.chevron {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--brand);
  stroke-width: 2.4;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, var(--app-width));
  grid-template-columns: repeat(2, 1fr);
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  margin: 0 auto;
  padding: 0.45rem 1rem max(0.45rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 253, 0.96);
  backdrop-filter: blur(16px);
}

.nav-item {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.24rem;
  min-height: 4rem;
  color: #6c737a;
  font-size: 0.78rem;
  font-weight: 680;
}

.nav-item::before {
  position: absolute;
  top: -0.45rem;
  width: 4.7rem;
  height: 0.18rem;
  border-radius: 0 0 1rem 1rem;
  background: transparent;
  content: "";
}

.nav-item svg {
  width: 1.65rem;
  height: 1.65rem;
}

.nav-item.is-active {
  color: var(--brand);
}

.nav-item.is-active::before {
  background: var(--brand);
}

.calendar-main {
  padding: 1.15rem 1.35rem 2rem;
}

.calendar-main h1 {
  color: var(--brand-dark);
  max-width: 8em;
  margin: 0 0 1.8rem;
  font-size: clamp(2.6rem, 12vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.057em;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.calendar-controls {
  scroll-margin-top: 1rem;
  margin: 0 -1.35rem 2.1rem;
  padding: 0 1.35rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.period-heading {
  margin: 0 0 0.7rem;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.date-navigation {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr) 3.15rem;
  gap: 0.6rem;
}

.week-step,
.date-button {
  min-height: 3.25rem;
  border: 1px solid #c5d8ea;
  border-radius: 0.8rem;
  background: white;
  color: var(--brand-dark);
  cursor: pointer;
}

.week-step {
  display: grid;
  place-items: center;
}

.week-step svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.3;
}

.week-step:disabled {
  cursor: default;
  opacity: 0.32;
}

.date-button {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.date-button > svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--brand);
}

.date-button .date-chevron {
  width: 1rem;
  height: 1rem;
}

.filter-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-heading span:first-child {
  color: var(--ink);
  font-weight: 820;
}

.filter-scroll {
  display: flex;
  gap: 0.55rem;
  margin: 0.65rem -1.35rem 0;
  padding: 0.15rem 1.35rem 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1.35rem;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  --chip-accent: var(--brand);
  --chip-soft: var(--brand-soft);
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.8rem;
  padding: 0 calc(0.9rem - 1px);
  border: 3px solid var(--chip-accent);
  border-radius: 999px;
  background: white;
  color: #4f575e;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 760;
  scroll-snap-align: start;
  white-space: nowrap;
}

.filter-chip[data-accent="green"] {
  --chip-accent: var(--green);
  --chip-soft: var(--green-soft);
}

.filter-chip[data-accent="violet"] {
  --chip-accent: var(--violet);
  --chip-soft: var(--violet-soft);
}

.filter-chip[data-accent="blue"] {
  --chip-accent: var(--blue);
  --chip-soft: var(--blue-soft);
}

.filter-chip[data-accent="gold"] {
  --chip-accent: var(--gold);
  --chip-soft: var(--gold-soft);
}

.filter-chip[data-accent="coral"] {
  --chip-accent: var(--coral);
  --chip-soft: var(--coral-soft);
}

.filter-chip[data-category="all"] {
  --chip-accent: #146f8a;
  --chip-soft: #f0f7fa;
}

.filter-chip span {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
}

.filter-chip svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--chip-accent);
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--chip-accent);
  background: var(--chip-soft);
  color: var(--chip-accent);
}

.result-summary {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.agenda {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.9rem;
}

.agenda-group h2 {
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.agenda-day {
  padding-top: 1.35rem;
}

.agenda-day + .agenda-day {
  margin-top: 0.5rem;
}

.agenda-day h3 {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 0.2rem 4rem;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agenda-day h3 span {
  font-weight: 840;
}

.agenda-day h3 strong {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 680;
}

.event-list {
  display: grid;
}

.event-row {
  --accent: var(--violet);
  --accent-soft: var(--violet-soft);
  position: relative;
  display: grid;
  grid-template-columns: 0.25rem 2.75rem minmax(0, 1fr) 1.15rem;
  gap: 0.75rem;
  min-height: 5.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.event-row[data-accent="blue"] {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
}

.event-row[data-accent="gold"] {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
}

.event-row[data-accent="coral"] {
  --accent: var(--coral);
  --accent-soft: var(--coral-soft);
}

.event-row[data-accent="green"] {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
}

.event-row:hover .event-copy > strong {
  color: var(--brand);
}

.event-rail {
  align-self: stretch;
  border-radius: 1rem;
  background: var(--accent);
}

.event-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.event-icon svg {
  width: 1.42rem;
  height: 1.42rem;
  stroke-width: 1.65;
}

.event-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.event-time {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 820;
}

.event-category {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 720;
}

.event-copy > strong {
  margin-top: 0.25rem;
  font-size: 1.2rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.3;
  transition: color 160ms ease;
}

.event-theme,
.event-detail {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.event-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.42rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.event-location svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.event-attendance-note {
  max-width: 100%;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.event-chevron {
  align-self: center;
  width: 1.3rem;
  height: 1.3rem;
  color: var(--brand);
  stroke-width: 2.5;
}

.empty-agenda {
  display: grid;
  justify-items: start;
  padding: 1.2rem 0 2.5rem 4rem;
}

.empty-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.empty-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.empty-agenda h2 {
  margin: 0.9rem 0 0.25rem;
  font-size: 1.25rem;
}

.empty-agenda p {
  max-width: 20rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.next-match,
.load-more {
  min-height: 2.8rem;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--brand);
  border-radius: 0.7rem;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
}

.load-more {
  display: block;
  margin: 2.4rem auto 1rem;
  border-color: var(--line);
  color: var(--muted);
}

.today-button {
  position: fixed;
  z-index: 11;
  right: max(calc((100vw - var(--app-width)) / 2 + 1rem), 1rem);
  bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 0.9rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  min-height: 2.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand-dark);
  color: white;
  box-shadow: 0 0.65rem 1.8rem rgba(32, 79, 123, 0.27);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 820;
}

.today-button svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
}

.date-dialog {
  width: min(calc(100% - 2rem), 27rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem rgba(17, 25, 35, 0.24);
}

.date-dialog::backdrop {
  background: rgba(17, 25, 35, 0.55);
  backdrop-filter: blur(3px);
}

.date-dialog form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  padding: 2rem 1.4rem 1.4rem;
}

.date-dialog-icon {
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.date-dialog-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.date-dialog h2 {
  margin: 1rem 0 1.2rem;
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.date-dialog p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 1rem;
}

.date-dialog label {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 780;
}

.date-dialog input {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 3.2rem;
  padding: 0 0.85rem;
  border: 1px solid #c5d8ea;
  border-radius: 0.7rem;
  background: white;
  color: var(--ink);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.date-dialog input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
body[data-page="home"] .today-button { display: none; }

.date-submit {
  min-height: 3rem;
  margin-top: 0.9rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.install-dialog {
  width: min(calc(100% - 2rem), 27rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 1.5rem 5rem rgba(17, 25, 35, 0.24);
}

.install-dialog::backdrop {
  background: rgba(17, 25, 35, 0.55);
  backdrop-filter: blur(3px);
}

.install-dialog form {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 2rem 1.4rem 1.4rem;
}

.dialog-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dialog-close svg {
  width: 1.35rem;
  height: 1.35rem;
}

.dialog-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--brand);
  color: white;
  font-size: 1.4rem;
  font-weight: 850;
}

.install-dialog h2 {
  margin: 1.2rem 0 0.65rem;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  text-align: center;
}

#install-instructions {
  width: 100%;
  color: var(--muted);
}

#install-instructions ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.4rem;
}

#install-instructions li + li {
  margin-top: 0.6rem;
}

.dialog-done {
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

@media (min-width: 42rem) {
  body {
    background: #edf2f8;
  }

  .app-shell {
    background: var(--canvas);
    box-shadow: 0 0 0 1px rgba(17, 25, 35, 0.04), 0 1.5rem 5rem rgba(17, 25, 35, 0.08);
  }
}

@media (max-width: 23rem) {
  .event-row {
    grid-template-columns: 0.22rem 2.45rem minmax(0, 1fr) 1rem;
    gap: 0.65rem;
  }

  .event-icon {
    width: 2.45rem;
    height: 2.45rem;
  }

  .agenda-day h3,
  .empty-agenda {
    margin-left: 3.3rem;
    padding-left: 0;
  }
}

@media (max-width: 30rem) {
  .brand-copy strong {
  color: var(--brand-dark);
    font-size: 1.08rem;
  }

  .calendar-main h1 {
  color: var(--brand-dark);
    max-width: 7em;
    font-size: 2.4rem;
  }

  .date-navigation {
    grid-template-columns: 44.8px minmax(0, 1fr) 44.8px;
    gap: 9.6px;
    justify-content: space-between;
  }

  .date-button {
    grid-template-columns: 22.4px minmax(0, 1fr) 16px;
    gap: 5.6px;
    padding-inline: 10.4px;
  }

  .date-button > svg { width: 21.6px; height: 21.6px; }
  .date-button .date-chevron { width: 16px; height: 16px; }

  .event-meta {
    display: grid;
    gap: 0.08rem;
  }
}

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

.quote-unavailable { font-size: 1.65rem; }
.content-status { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin: 1.5rem 1.35rem 1rem; color: var(--muted); font-size: .75rem; }
.content-status > span { flex-basis: 100%; }
.content-status [role="status"] { font-size: 1rem; }
.content-status button, .website-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: transparent; color: var(--brand-dark); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.content-status button, .content-status .website-link { font-size: 1.1rem; }
.programme-coverage, .programme-end { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.programme-coverage { margin: -1rem 0 1.6rem; }
.programme-end { margin: 2rem 0 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
#main-content { position: relative; outline: none; }
#main-content:focus-visible::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 3px;
  background: var(--brand);
  pointer-events: none;
}
button:disabled { cursor: default; opacity: .55; }
.agenda-day h3 { flex-wrap: wrap; }
.event-location { overflow-wrap: anywhere; }
@media (max-width: 360px) { .brand-header { padding-inline: 1rem; } }

body[data-page="calendar"] .content-status,
body[data-page="calendar"] .network-status,
body[data-page="calendar"] .nav-item { font-size: .95rem; }

/* Home is a quiet reading surface; Calendar keeps its established hierarchy. */
body[data-page="home"] { --canvas: #fff; }
body[data-page="home"] .install-area { margin: 0; border-bottom: 3px solid #fff; }
body[data-page="home"] .install-control {
  grid-template-columns: 1.6rem minmax(0, 1fr) 1.2rem;
  gap: .7rem;
  min-height: 4.5rem;
  padding: 1rem 1.35rem;
  border: 0;
  border-radius: 0;
  background: var(--brand);
  color: #fff;
}
body[data-page="home"] .install-control:hover { background: var(--brand-dark); }
body[data-page="home"] .install-icon { width: 1.6rem; height: 1.6rem; background: transparent; color: inherit; }
body[data-page="home"] .install-control .chevron { width: 1.2rem; color: inherit; }
body[data-page="home"] .install-copy strong { font-size: 1.12rem; font-weight: 700; }
body[data-page="home"] .content-status { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .6rem; }
body[data-page="home"][data-standalone="true"] .content-status { border-top: 0; }
body[data-page="home"] .bottom-nav { background: rgba(255, 255, 255, .97); }
@media (max-width: 360px) {
  .quote-field { padding-inline: 1.4rem; padding-top: 2.8rem; }
  .quote-explore h2 { padding-inline: 1.4rem; }
  .quote-explore-link { padding-inline: 1.4rem; }
}
@media (prefers-contrast: more) {
  .quote-field { background-image: none; color: #2f126e; }
  .quote-explore { background: #fff; }
  .quote-explore h2 { background: #55436e; }
  .weekly-quote { font-weight: 400; }
}

/* Weekly Home colours also carry through the shared header; Calendar controls stay clear blue. */
body[data-page="home"][data-home-palette]:not([data-home-palette=""]),
body[data-home-palette]:not([data-home-palette=""]) .brand-header {
  --brand: var(--home-brand); --brand-dark: var(--home-dark); --brand-soft: var(--home-soft); --line: var(--home-line);
}
body[data-home-palette]:not([data-home-palette=""]) #main-content:focus-visible::before { background: var(--home-brand); }
body[data-home-palette]:not([data-home-palette=""]) .home-main { --quote-panel: var(--home-panel); }
body[data-home-palette]:not([data-home-palette=""]) .quote-field {
  background-color: var(--home-base);
  color: var(--home-ink);
  background-image: linear-gradient(90deg, rgba(var(--home-wash),.25), rgba(var(--home-wash),0)), var(--home-flower);
}
body[data-home-palette]:not([data-home-palette=""]) .quote-week { color: var(--home-secondary); }
body[data-home-palette]:not([data-home-palette=""]) .quote-explore h2 { background: var(--home-band); }
body[data-home-palette]:not([data-home-palette=""]) .quote-explore-link { color: var(--home-ink); }
body[data-home-palette]:not([data-home-palette=""]) .quote-explore-link:hover { color: var(--home-hover); }
body[data-home-palette]:not([data-home-palette=""]) .quote-explore-link:focus-visible { outline-color: var(--home-secondary); }
@media (prefers-contrast: more) {
  body[data-home-palette]:not([data-home-palette=""]) .quote-field { background-image: none; }
  body[data-home-palette]:not([data-home-palette=""]) .quote-explore h2 { background: var(--home-dark); }
}
