/*
 * FSV Brück – site shell styles.
 *
 * This is the only stylesheet of the site. The old format.css was dropped once
 * every content page had been rebuilt; it now sits in public-archive/.
 */

:root {
  --blue: #102a4d;
  --blue-light: #1b385a;
  --blue-button: #0d2a4c;
  --orange: #ff9f00;
  --text: #707070;
  --font: Verdana, Arial, Helvetica, sans-serif;
  --font-ui: Arial, Helvetica, sans-serif;
  /* The logo bitmap is 170x160; the header keeps that height so it fits. */
  --header-height: 160px;
  --sidebar-width: 170px;
  --social-width: 180px;
  --breakpoint: 800px;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--social-width);
  grid-template-rows: var(--header-height) minmax(0, 1fr) auto;
  grid-template-areas:
    "header header header"
    "sidebar content social"
    "footer footer footer";
  min-height: 100dvh;
  margin: 0;
  background-color: var(--blue);
  color: var(--text);
  font-family: var(--font);
}

/* ------------------------------------------------------------------ header */

.site-header {
  grid-area: header;
  display: flex;
  height: var(--header-height);
  font-family: var(--font-ui);
}

.site-header__logo {
  display: block;
  flex: 0 0 170px;
  background: url("../images/toplogo_neu.jpg") no-repeat left top / contain;
}

.site-header__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.site-header__title {
  display: flex;
  align-items: center;
  height: 35px;
  margin: 0;
  padding: 0 10px;
  background-color: var(--blue-light);
  font-family: var(--font);
  font-size: 11px;
  font-weight: normal;
  color: #ffffff;
}

.banner {
  display: flex;
  align-items: center;
  height: 60px;
  margin: 0;
  padding-left: clamp(16px, 30%, 280px);
  background: url("../images/topimg5.jpg") repeat-x left bottom / auto 100%;
  overflow: hidden;
}

.banner__text {
  font-family:
    "Arial Narrow", "Ubuntu Condensed", "Roboto Condensed", "Liberation Sans Narrow",
    Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 600;
  font-stretch: condensed;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  -webkit-text-stroke: 0.6px #1e2a1e;
  paint-order: stroke fill;
  text-shadow: 0 0 3px rgb(0 0 0 / 70%);
}

/* News ticker: CSS replacement for the old <marquee>. */
.ticker {
  display: flex;
  align-items: center;
  height: 25px;
  background-color: var(--blue-light);
  font-family: var(--font);
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
}

.ticker__track {
  width: min(750px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.ticker__text {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  white-space: nowrap;
  animation: ticker 18s linear infinite;
}

@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  grid-area: footer;
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  background-color: var(--blue);
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.service-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: #ffffff;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.service-nav__link::before {
  content: "»";
  font-weight: normal;
  color: var(--orange);
  transition: color 0.15s ease;
}

.service-nav__link:hover,
.service-nav__link:focus-visible {
  color: var(--orange);
  background-color: rgb(255 255 255 / 8%);
  outline: none;
}

.service-nav__link:hover::before,
.service-nav__link:focus-visible::before {
  color: #ffffff;
}

.service-nav__link[aria-current="page"] {
  color: var(--blue);
  background-color: var(--orange);
}

.service-nav__link[aria-current="page"]::before {
  color: var(--blue);
}

/* Last row of the header, only used for the menu button on narrow screens. */
.site-header__bar {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  padding: 4px 10px;
}

/* Burger button, only shown once the sidebar turns into a drawer. */
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 3px;
  background-color: transparent;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  outline: none;
}

.nav-toggle__icon {
  width: 16px;
  height: 2px;
  background-color: currentcolor;
  box-shadow:
    0 -5px currentcolor,
    0 5px currentcolor;
}

/* ----------------------------------------------------------------- sidebar */

.sidebar {
  grid-area: sidebar;
  background-color: var(--blue);
  border-right: 1px solid rgb(255 255 255 / 8%);
}

/* Scrolls on its own and stays put while the content column scrolls. */
.sidebar__inner {
  position: sticky;
  top: 0;
  max-height: 100dvh;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Title row of the drawer; the sidebar needs no heading on wide screens. */
.sidebar__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.sidebar__title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background-color: transparent;
  font-size: 26px;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
}

.sidebar__close:hover,
.sidebar__close:focus-visible {
  color: var(--orange);
  background-color: rgb(255 255 255 / 8%);
  outline: none;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background-color: rgb(0 0 0 / 55%);
}

.nav-backdrop[hidden] {
  display: none;
}

.main-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 0;
}

/* Text buttons that look like the former 150x20 image buttons. */
.main-nav__item {
  position: relative;
  display: block;
  flex: none;
  width: 150px;
  height: 20px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  background-color: var(--blue-button);
  transition: background-color 0.2s ease;
}

.main-nav__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgb(189 208 222 / 0%) 0%,
    rgb(189 208 222 / 25%) 15%,
    rgb(189 208 222 / 70%) 40%,
    rgb(189 208 222 / 100%) 50%,
    rgb(189 208 222 / 70%) 60%,
    rgb(189 208 222 / 25%) 85%,
    rgb(189 208 222 / 0%) 100%
  );
}

.main-nav__item:hover,
.main-nav__item:focus-visible,
.main-nav__item[aria-current="page"] {
  color: #ffffff;
  background-color: var(--blue-light);
  outline: none;
}

.birthdays {
  width: 150px;
  margin: 0 auto;
  padding-bottom: 20px;
  text-align: center;
}

.birthdays__title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
}

.birthdays__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 10px;
  line-height: 1.5;
  color: var(--text);
}

.birthdays__list li + li {
  margin-top: 6px;
}

.birthdays__list b {
  color: #8f8f8f;
}

.birthdays::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 20px;
  background: url("../images/navfontstrich.gif") no-repeat center / 150px 1px;
}

/* ----------------------------------------------------------------- content */

#content {
  grid-area: content;
  position: relative;
  min-width: 0;
  background: var(--blue) url("../images/back2.jpg");
  view-transition-name: content;
}

/* Thin orange progress line while htmx loads a page. */
#content::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--orange);
  opacity: 0;
  transition: opacity 0.2s ease 0.15s;
}

#content.htmx-request::before {
  opacity: 1;
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  to {
    width: 90%;
  }
}

/* ---------------------------------------------------------------- start page
 * A flex column that is exactly as tall as the content area. The photo takes
 * whatever height is left after caption, sponsor bar and call to action, so
 * the sponsors are always visible no matter how tall the photo is. Below
 * --photo-min-height the photo stops shrinking and the section scrolls.
 */
.page {
  --page-padding: 10px;
  --photo-min-height: 240px;
  --photo-max-width: 800px;

  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: var(--page-padding);
  background-color: var(--blue);
  overflow-y: auto;
  contain: size;
}

.photo {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-content: center;
  flex: 1 1 0;
  min-height: var(--photo-min-height);
  margin: 0;
}

.photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--photo-max-width));
  max-height: 100%;
}

.photo figcaption {
  margin-top: 10px;
  font-family: "Times New Roman", serif;
  font-size: 13px;
  color: #ffffff;
}

.cta {
  flex: none;
  margin: 0 0 var(--page-padding);
  font-size: clamp(18px, 4vw, 24px);
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

/* --------------------------------------------------------------- sponsors */

.sponsors {
  flex: none;
}

.sponsors__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: #cfcfcf;
}

.sponsors__title::before,
.sponsors__title::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  margin: 0 12px;
  vertical-align: middle;
  background: linear-gradient(to right, rgb(207 207 207 / 0%), var(--orange));
}

.sponsors__title::after {
  background: linear-gradient(to left, rgb(207 207 207 / 0%), var(--orange));
}

.sponsors__viewport {
  padding: 10px 0;
  background-color: var(--blue-light);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.sponsors__track {
  display: flex;
  width: max-content;
  animation: sponsors-scroll var(--sponsors-duration, 30s) linear infinite;
}

.sponsors__viewport:hover .sponsors__track,
.sponsors__viewport:focus-within .sponsors__track {
  animation-play-state: paused;
}

.sponsors__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-right: 16px;
  padding: 8px 14px;
  border-radius: 4px;
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 40%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sponsors__item:hover,
.sponsors__item:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--orange);
  outline: none;
}

.sponsors__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 56px;
}

@keyframes sponsors-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------------- social */

.social {
  grid-area: social;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100dvh;
  background: var(--blue) url("../images/back2.jpg");
  overflow-y: auto;
  scrollbar-width: thin;
}

.social__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 26px 0 20px;
  list-style: none;
}

.social__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font);
  font-size: 10px;
  text-decoration: none;
  color: #ffffff;
}

.social__link img {
  display: block;
}

/* --------------------------------------------------------- view transitions */

::view-transition-old(content),
::view-transition-new(content) {
  animation-duration: 0.18s;
}

/* ---------------------------------------------------------- narrow screens */

@media (max-width: 799px) {
  body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(320px, 1fr) auto auto;
    grid-template-areas:
      "header"
      "content"
      "social"
      "footer";
  }

  .site-header {
    height: auto;
  }

  .site-header__logo {
    flex-basis: 96px;
    min-height: 90px;
  }

  /* The line wraps next to logo and menu button. */
  .site-header__title {
    height: auto;
    min-height: 35px;
    padding: 6px 10px;
    line-height: 1.4;
  }

  .banner {
    display: none;
  }

  .site-header__bar {
    display: flex;
  }

  .service-nav {
    gap: 6px 14px;
  }

  /* The sidebar slides in over the page instead of sharing a column with it. */
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(270px, 82vw);
    border-right: none;
    box-shadow: 6px 0 26px rgb(0 0 0 / 50%);
    visibility: hidden;
    transform: translateX(-100%);
    /* Stay visible while sliding out, so the links leave the tab order only
       once the drawer is gone. */
    transition:
      transform 0.25s ease,
      visibility 0s linear 0.25s;
  }

  .sidebar__inner {
    max-height: 100dvh;
    height: 100%;
    padding-bottom: 10px;
  }

  .sidebar__head {
    display: flex;
  }

  body:has(.nav-toggle[aria-expanded="true"]) .sidebar {
    visibility: visible;
    transform: none;
    transition:
      transform 0.25s ease,
      visibility 0s;
  }

  /* Do not scroll the page behind the open drawer. */
  body:has(.nav-toggle[aria-expanded="true"]) {
    overflow: hidden;
  }

  .main-nav {
    padding: 14px 0;
    gap: 6px;
  }

  .main-nav__item {
    width: 210px;
    height: 30px;
    line-height: 30px;
  }

  .birthdays {
    padding-top: 6px;
  }

  .page {
    --photo-min-height: 200px;

    gap: 10px;
  }

  .social {
    position: static;
    max-height: none;
  }

  .social__list {
    flex-direction: row;
    justify-content: space-evenly;
    gap: 12px;
    padding: 10px 8px;
  }

  .social__link span {
    display: none;
  }

  .social__link .social__wide {
    width: 110px;
    height: auto;
  }

  .social__link .social__seal {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 799px) and (min-width: 600px) {
  .banner {
    display: flex;
    height: 40px;
    padding-left: 16px;
  }

  .banner__text {
    font-size: 18px;
  }
}

/* ============================================================ content pages
 * Every content page is an <article class="doc">. The building blocks below
 * are shared by all of them; the page itself only carries content.
 */

.doc {
  --doc-text: #c9d2dd;
  --doc-muted: #97a3b1;
  --doc-strong: #ffffff;
  --doc-link: #ffb84d;
  --doc-radius: 4px;

  max-width: 940px;
  margin: 0 auto;
  padding: 22px clamp(12px, 3vw, 32px) 40px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--doc-text);
}

.doc a {
  color: var(--doc-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.doc a:hover,
.doc a:focus-visible {
  color: var(--doc-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

.doc img {
  max-width: 100%;
  height: auto;
}

.doc b,
.doc strong {
  color: var(--doc-strong);
}

/* Page title: looks like the old "[TERMINE]" title images. */
.doc__title {
  margin: 0 0 20px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: #e3e7ec;
}

.doc__title::before {
  content: "[";
}

.doc__title::after {
  content: "]";
}

.doc__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  color: var(--orange);
}

.doc__intro {
  max-width: 60ch;
  margin: -8px auto 20px;
  text-align: center;
}

.doc__footer {
  margin-top: 24px;
  font-size: 11px;
  text-align: center;
  color: var(--doc-muted);
}

/* ------------------------------------------------------------ containers */

/* Dark card, the successor of the bgcolor="#102A4D" table cells. */
.panel {
  padding: 16px 20px;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
}

.panel + .panel,
.panel + .paper,
.paper + .panel {
  margin-top: 12px;
}

.panel--center {
  text-align: center;
}

/* Light card for long reading texts (chronicle, legal pages). */
.paper {
  --doc-text: #4a4a4a;
  --doc-muted: #6f6f6f;
  --doc-strong: #222222;
  --doc-link: #0d2a4c;

  max-width: 780px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 32px);
  border-radius: var(--doc-radius);
  background-color: #dfdfdf;
  color: var(--doc-text);
}

.paper a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.paper a:hover,
.paper a:focus-visible {
  color: #ff8a00;
}

/* ------------------------------------------------------------------ prose */

.prose {
  hyphens: auto;
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 4px;
}

.prose h2 {
  clear: both;
  margin: 1.6em 0 0.6em;
  font-size: 15px;
  font-weight: bold;
  color: var(--orange);
}

.prose h3 {
  margin: 1.4em 0 0.5em;
  font-size: 13px;
  font-weight: bold;
  color: var(--doc-strong);
}

/* Orange on the light paper card is unreadable, so headings turn dark blue.
 * The card is usually the prose element itself (.paper.prose), not its parent. */
.paper.prose h2,
.paper .prose h2 {
  color: #123a66;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

/* ----------------------------------------------------------------- figures */

.figure {
  margin: 0 0 16px;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 255 255 / 15%);
}

.paper .figure img {
  border-color: rgb(0 0 0 / 15%);
}

.figure figcaption {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  color: var(--doc-muted);
}

.figure--left,
.figure--right {
  width: min(45%, 340px);
  margin-top: 4px;
  margin-bottom: 10px;
}

.figure--left {
  float: left;
  margin-right: 20px;
}

.figure--right {
  float: right;
  margin-left: 20px;
}

.figure--center {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

/* Stacked photos with captions (Sportstätte, team pages). */
.photos {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photos .figure {
  margin: 0;
  padding: 12px;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
}

.photos .figure img {
  max-width: 640px;
  margin: 0 auto;
}

/* ------------------------------------------------------------- sub menus */

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.subnav--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.subnav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 14px;
  border-radius: 2px;
  background-color: var(--blue-light);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #ffffff;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.doc .subnav__item:hover,
.doc .subnav__item:focus-visible {
  color: var(--orange);
  text-decoration: none;
  background-color: #23466e;
}

.doc .subnav__item[aria-current="page"] {
  color: var(--blue);
  background-color: var(--orange);
}

.subnav__badge {
  padding: 0 5px;
  border-radius: 8px;
  background-color: rgb(255 255 255 / 15%);
  font-size: 10px;
}

.subnav__item[aria-current="page"] .subnav__badge {
  background-color: rgb(16 42 77 / 20%);
}

/* Section header bar: a label plus a few links (team pages). */
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 8px 6px 14px;
  border-radius: var(--doc-radius);
  background-color: var(--blue-light);
}

.bar__label {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--orange);
}

.bar .subnav__item {
  background-color: var(--blue);
}

/* ------------------------------------------------------------------ cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: block;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.doc .card {
  color: #ffffff;
  text-decoration: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--orange);
}

/* Placeholder cards are plain spans, so they must not look interactive. */
.card--none:hover,
.card--none:focus-visible {
  transform: none;
  box-shadow: none;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: var(--blue-light);
}

/* Placeholder card for a team the club does not currently field. */
.card__placeholder {
  display: block;
  aspect-ratio: 4 / 3;
  background-color: var(--blue-light);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 10px,
    rgb(255 255 255 / 4%) 10px 20px
  );
}

.card--none .card__title {
  padding-bottom: 2px;
  color: var(--doc-muted);
}

.card__note {
  display: block;
  padding: 0 12px 10px;
  font-size: 11px;
  text-align: center;
  color: var(--doc-muted);
}

.card__title {
  display: block;
  padding: 9px 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- people */

/* One list per hierarchy level; each level is a centred row that wraps. */
.people {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.people + .people {
  margin-top: 22px;
}

.person {
  flex: 0 1 190px;
}

.person img {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 8px;
  border: 1px solid #8f8f8f;
  object-fit: cover;
  object-position: center;
}

.person__role {
  display: block;
  font-size: 11px;
  color: var(--doc-muted);
}

.person__name {
  display: block;
  font-weight: bold;
  color: var(--doc-strong);
}

/* --------------------------------------------------------------- schedule */

.schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule__item {
  padding: 14px 16px;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
}

.schedule__team {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: bold;
  color: var(--orange);
}

.schedule__times,
.schedule__staff {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule__times li {
  color: var(--doc-strong);
}

.schedule__staff {
  margin-top: 8px;
  font-size: 12px;
}

.schedule__place {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--doc-muted);
}

/* ---------------------------------------------------------------- details */

.details {
  display: grid;
  grid-template-columns: minmax(110px, max-content) 1fr;
  gap: 8px 18px;
  margin: 0;
}

.details dt {
  font-weight: bold;
  color: var(--doc-strong);
}

.details dd {
  margin: 0;
}

.address {
  margin: 0;
  font-style: normal;
}

/* ---------------------------------------------------------------- entries
 * Address-book style lists (sponsors). Entries can be linked by id: the
 * targeted entry scrolls into view and flashes.
 */

.entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  padding: 12px 12px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  border-radius: var(--doc-radius);
  scroll-margin-top: 20px;
  transition: background-color 0.15s ease;
}

.entry:last-child {
  border-bottom: 0;
}

.entry:hover {
  background-color: rgb(255 255 255 / 4%);
}

.entry:target {
  animation: entry-flash 2.4s ease-out;
}

.entry__name {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--doc-strong);
}

@keyframes entry-flash {
  0%,
  25% {
    background-color: rgb(255 159 0 / 28%);
    box-shadow: inset 3px 0 0 var(--orange);
  }

  100% {
    background-color: transparent;
    box-shadow: inset 3px 0 0 transparent;
  }
}

/* Multi-column flow for long link lists on wide screens. */
.columns {
  column-width: 280px;
  column-gap: 32px;
}

.columns > * {
  break-inside: avoid;
}

/* ---------------------------------------------------------------- events */

.events {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
}

.event__icon {
  width: 50px;
  height: 39px;
}

.event h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: bold;
  color: var(--doc-strong);
}

.event p {
  margin: 0 0 8px;
}

.event p:last-child {
  margin-bottom: 0;
}

.event ul,
.event ol {
  margin: 0 0 8px;
  padding-left: 20px;
}

.event li + li {
  margin-top: 3px;
}

.event figure {
  margin: 0 0 8px;
}

.event__link::before {
  content: "» ";
}

.muted {
  font-size: 11px;
  color: var(--doc-muted);
}

/* -------------------------------------------------------------- galleries */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background-color: var(--blue);
  overflow: hidden;
}

.gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Lightbox: a native <dialog>, filled by site.js. */
.lightbox {
  width: min(96vw, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
  color: #ffffff;
  font-family: var(--font);
  box-shadow: 0 8px 40px rgb(0 0 0 / 60%);
}

.lightbox::backdrop {
  background-color: rgb(0 0 0 / 80%);
}

.lightbox__figure {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 12px 10px;
}

.lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background-color: #000;
}

.lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 24px;
  font-size: 12px;
}

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

.lightbox__counter {
  flex: none;
  font-size: 11px;
  color: var(--doc-muted, #97a3b1);
}

.lightbox__button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(16 42 77 / 75%);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.15s ease;
}

.lightbox__button:hover,
.lightbox__button:focus-visible {
  background-color: var(--orange);
  color: var(--blue);
  outline: none;
}

.lightbox__button:disabled {
  opacity: 0.25;
  cursor: default;
}

.lightbox__button--prev {
  left: 20px;
}

.lightbox__button--next {
  right: 20px;
}

.lightbox__button--close {
  top: 32px;
  right: 20px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}

/* --------------------------------------------------------------- embeds */

.embed {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--doc-radius);
  background-color: var(--blue);
}

.embed + .embed {
  margin-top: 12px;
}

.embed--map {
  aspect-ratio: 10 / 7;
}

.embed--video {
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

/* ------------------------------------------------------------- narrow docs */

@media (max-width: 599px) {
  .figure--left,
  .figure--right {
    float: none;
    width: auto;
    max-width: 420px;
    margin: 0 auto 16px;
  }

  .event {
    grid-template-columns: minmax(0, 1fr);
  }

  .event__icon {
    display: none;
  }

  .details {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .details dd + dt {
    margin-top: 10px;
  }

  .lightbox__button--prev {
    left: 8px;
  }

  .lightbox__button--next,
  .lightbox__button--close {
    right: 8px;
  }
}

/* ---------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery__item img,
  .card,
  .sidebar {
    transition: none;
  }

  .ticker__text {
    padding-left: 0;
    animation: none;
  }

  .ticker__track {
    text-align: center;
  }

  .sponsors__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    padding-left: 16px;
    row-gap: 12px;
    animation: none;
  }

  #content.htmx-request::before {
    width: 90%;
    animation: none;
  }
}
