#main {
  --home-blue: var(--main-light);
  --home-blue-soft: var(--surface);
  --home-yellow: var(--accent);
  --home-action: var(--main-lighter);
  --home-action-shadow: var(--main-dark);
  --home-surface: var(--bg-light);
  --home-line: var(--border);
  --home-ink: var(--main);
  --home-muted: var(--muted);
  --home-channel: #1a9d4e;
  color: var(--home-ink);
}
#main a {
  color: inherit;
}

.home__hero {
  position: relative;
  padding-block: 1rem 1.5rem;
  background: linear-gradient(90deg, rgba(7, 86, 117, 0.84) 0 34%, rgba(7, 86, 117, 0.12) 34% 100%);
  overflow: hidden;
}
.home__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 86, 117, 0.78) 0 34%, transparent 34% 100%);
  z-index: 1;
}

.home__hero-media {
  position: absolute;
  inset: 0;
}
.home__hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.home__hero-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.home__hero-stage {
  min-height: 18rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.home__hero-copy {
  max-width: 25rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--home-blue);
  color: var(--bg);
  box-shadow: 0 1rem 2.5rem rgba(9, 56, 74, 0.22);
  border-top: 0.25rem solid var(--home-yellow);
  margin-left: 0;
}
.home__hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.875rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02ch;
}
.home__hero-copy p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

@media (min-width: 70rem) {
  .home__hero-copy {
    margin-left: clamp(2rem, 4vw, 4rem);
  }
}
@media (min-width: 100rem) {
  .home__hero {
    padding-block: 1.25rem 3.75rem;
  }
  .home__hero-stage {
    min-height: 29rem;
  }
}
@media (max-width: 100rem) {
  .home__hero {
    padding-block: 1rem 1.5rem;
  }
  .home__hero-stage {
    min-height: 16rem;
    align-items: flex-end;
  }
  .home__hero-copy {
    padding: 1.5rem 1.5rem 1.25rem;
    max-width: 30rem;
  }
  .home__hero-copy h1 {
    font-size: clamp(2.25rem, 1.25rem + 1.25vw, 2.375rem);
  }
  .home__hero-copy p {
    font-size: 0.875rem;
  }
  .home__hero-actions {
    margin-top: 0.6rem;
  }
  .home__news {
    padding-top: 2rem;
  }
}
@media ((min-width: 45rem) and (max-width: calc(86rem - 1px))) {
  .home__hero-copy {
    max-width: 34rem;
    margin-block: 2rem;
  }
}
@media (max-width: calc(45rem - 1px)) {
  .home__hero {
    background: transparent;
  }
  .home__hero::before {
    display: none;
  }
}
.home__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.home__search {
  margin-top: 1rem;
}

.home__search-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bg);
}

.home__search > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
  width: 100%;
}
.home__search > div input,
.home__search > div button {
  min-height: 2.5rem;
  border: 0;
  font: inherit;
}
.home__search > div input {
  padding-inline: 1rem;
  color: var(--home-ink);
  background: var(--bg);
  width: 100%;
}
.home__search > div input:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: -0.125rem;
}
.home__search > div button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  font-weight: 600;
  background: var(--home-yellow);
  color: var(--home-ink);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.home__search > div button:hover, .home__search > div button:focus-visible {
  filter: brightness(110%);
}
.home__search > div button:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: 0.125rem;
}

.home__hero-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.home__hero-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  min-height: 2.5rem;
  color: var(--bg);
  background: var(--home-action);
  box-shadow: 0 0.25rem 0 var(--home-action-shadow);
  font-size: 0.875rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.home__hero-actions a:hover, .home__hero-actions a:focus-visible {
  filter: brightness(110%);
}
.home__hero-actions a:active {
  filter: brightness(90%);
}
.home__hero-actions a:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.125rem;
}
@media (max-width: calc(45rem - 1px)) {
  .home__hero-actions {
    grid-template-columns: 1fr;
  }
}

.home__hero-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 1.5rem;
}
@media (max-width: calc(45rem - 1px)) {
  .home__hero-action-icon {
    height: 1.25rem;
  }
}
.home__hero-action-icon svg {
  width: auto;
  height: auto;
}

.home__news,
.home__about,
.home__stats {
  padding-block: 4rem;
}

.home__section-head h2,
.home__about h2,
.home__stats h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 600;
  color: var(--home-ink);
}

.home__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-s) var(--spacing-m);
  margin-bottom: 2rem;
}
.home__section-head h2 {
  margin-bottom: 0;
}

.home__channel {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-2xs) var(--spacing-s);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  color: var(--home-ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.home__channel:hover, .home__channel:focus-visible {
  transform: translateY(-0.2rem);
  box-shadow: var(--shadow-card-hover);
}
.home__channel:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: 0.125rem;
}

.home__channel-icon {
  display: inline-flex;
  flex: none;
  color: var(--home-channel);
}
.home__channel-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.home__channel-copy {
  display: flex;
  flex-direction: column;
}

.home__channel-text {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.15em;
}

.home__channel-note {
  color: var(--home-muted);
  font-size: 0.875rem;
}

.home__news-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 45rem) {
  .home__news-grid {
    align-items: start;
  }
}
@media (min-width: 70rem) {
  .home__news-grid {
    grid-template-columns: minmax(0, calc((100% - 1rem - 2.25rem) / 3 * 2 + 1rem)) 2.25rem minmax(0, calc((100% - 1rem - 2.25rem) / 3));
    align-items: start;
  }
}

.home__news-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 45rem) {
  .home__news-cards {
    grid-column: 1/-1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 70rem) {
  .home__news-cards {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home__gallery-main,
.home__gallery-thumb {
  position: relative;
  overflow: hidden;
}

.home__events {
  padding: 1.5rem;
  background: var(--bg-lighter);
  border: 0;
}
.home__events h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}
@media (min-width: 45rem) {
  .home__events {
    grid-column: 1/-1;
    grid-row: auto;
  }
}
@media (min-width: 70rem) {
  .home__events {
    grid-column: 3;
    grid-row: 1/span 2;
  }
}

.home__event {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--home-line);
  box-shadow: 0 0.5rem 1rem rgba(4, 85, 115, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.home__event:hover, .home__event:focus-within {
  transform: translateY(-0.125rem);
  border-color: var(--border);
  box-shadow: var(--shadow-card-hover);
}
.home__event + .home__event {
  margin-top: 0.5rem;
}
.home__event h4,
.home__event p {
  margin: 0;
}
.home__event h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.home__event p {
  color: var(--slate);
  line-height: 1.4;
  font-size: 0.875rem;
  font-weight: 300;
}
.home__event .home__event-meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}
.home__event .home__event-group {
  display: grid;
  gap: 0.125rem;
}
.home__event .home__event-group + .home__event-group {
  margin-top: 0.5rem;
}
.home__event .home__event-meta--sub {
  padding-left: 1.5rem;
  margin-top: 0;
}
.home__event .home__event-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin-top: 0.125rem;
}
.home__event .home__event-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home__event-link {
  display: block;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.home__event-link:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: 0.125rem;
}

.home__button {
  display: inline-flex;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--home-yellow);
  color: var(--home-ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.home__button:hover, .home__button:focus-visible {
  filter: brightness(110%);
}
.home__button:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: 0.125rem;
}

.home__news-footer {
  margin-top: 0;
}
@media (min-width: 45rem) {
  .home__news-footer {
    grid-column: 1/-1;
  }
}
.home__news-footer .home__button {
  margin-top: 0;
}

.home__about {
  background: var(--bg);
}

.home__about-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 45rem) {
  .home__about-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.9fr);
    align-items: start;
  }
}

.home__about-copy p {
  margin: 0 0 1rem;
  line-height: 1.5;
  color: var(--home-muted);
}

.home__signature {
  color: var(--home-ink);
  font-weight: 600;
}

.home__gallery {
  display: grid;
  gap: 0.75rem;
}

.home__gallery-main {
  position: relative;
  aspect-ratio: 16/11;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 65, 88, 0.12);
  background: var(--bg-lighter);
  box-shadow: var(--shadow-card);
}
.home__gallery-main::before, .home__gallery-main::after {
  display: none;
}

.home__gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.home__gallery-open:focus-visible {
  outline: 0.125rem solid var(--main-light);
  outline-offset: 0.125rem;
}

.home__gallery-main-image {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.home__gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(4, 85, 115, 0.76);
  color: var(--bg);
  line-height: 1;
  box-shadow: 0 0.5rem 1rem rgba(4, 85, 115, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.home__gallery-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.home__gallery-nav:hover, .home__gallery-nav:focus-visible {
  background: var(--main-lighter);
  box-shadow: 0 0.75rem 1.25rem rgba(4, 85, 115, 0.2);
}
.home__gallery-nav:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.125rem;
}

.home__gallery-nav--prev {
  left: 0.75rem;
}

.home__gallery-nav--next {
  right: 0.75rem;
}

.home__gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.8rem;
  height: 0.8rem;
}
.home__gallery-arrow::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-right: 0.14rem solid currentColor;
  border-bottom: 0.14rem solid currentColor;
}

.home__gallery-arrow--prev::before {
  transform: rotate(135deg);
}

.home__gallery-arrow--next::before {
  transform: rotate(-45deg);
}

.home__gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0;
}

.home__gallery-thumb {
  aspect-ratio: 16/11;
  padding: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid transparent;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(19, 65, 88, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.home__gallery-thumb:focus-visible {
  border-color: var(--main-light);
  box-shadow: 0 0 0 3px rgba(4, 85, 115, 0.18);
  outline: none;
}
.home__gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.62;
  transition: opacity 160ms ease, transform 220ms ease;
}
.home__gallery-thumb:hover img {
  opacity: 0.85;
  transform: scale(1.03);
}
.home__gallery-thumb.is-active {
  border-color: var(--main-light);
  box-shadow: 0 0 0 2px var(--main-light);
}
.home__gallery-thumb.is-active img {
  opacity: 1;
}

.home__gallery-dialog {
  width: min(100vw, 100%);
  max-width: none;
  height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.home__gallery-dialog::backdrop {
  background: rgba(4, 85, 115, 0.88);
}

.home__gallery-dialog-surface {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
}

.home__gallery-dialog-figure {
  display: grid;
  gap: 0.75rem;
  place-items: center;
  width: min(92vw, 80rem);
  margin: 0;
}

.home__gallery-dialog-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  -o-object-fit: contain;
     object-fit: contain;
  background: var(--bg-lighter);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
}

.home__gallery-dialog-caption {
  max-width: min(90vw, 48rem);
  color: var(--bg);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.home__gallery-dialog-close,
.home__gallery-dialog-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg);
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.home__gallery-dialog-close:hover, .home__gallery-dialog-close:focus-visible,
.home__gallery-dialog-nav:hover,
.home__gallery-dialog-nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.18);
}
.home__gallery-dialog-close:focus-visible,
.home__gallery-dialog-nav:focus-visible {
  outline: 0.125rem solid var(--accent);
  outline-offset: 0.125rem;
}

.home__gallery-dialog-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.85rem;
  line-height: 1;
}

.home__gallery-dialog-nav {
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.home__gallery-dialog-nav--prev {
  left: 1rem;
}

.home__gallery-dialog-nav--next {
  right: 1rem;
}

.home__stats {
  padding-top: 1rem;
}

.home__stats-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 45rem) {
  .home__stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home__stat {
  padding: 1rem;
  border-bottom: 0.25rem solid var(--home-yellow);
  background: var(--home-surface);
  text-align: center;
}
.home__stat strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  color: var(--home-blue);
}
.home__stat span {
  color: var(--home-muted);
}

@media (min-width: 90rem) {
  .home__hero-copy {
    margin-left: clamp(3rem, 6vw, 6rem);
  }
  .home__news-grid {
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(17.5rem, 18.75rem);
    grid-template-areas: "cards events" "footer .";
    align-items: stretch;
  }
  .home__news-cards {
    grid-area: cards;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
  }
  .home__news-footer {
    grid-area: footer;
  }
  .home__news-cards .comp--card,
  .home__events {
    padding: 1.25rem;
  }
  .home__news-cards .comp--card {
    height: 100%;
  }
  .home__news-cards .comp--card__title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.1;
  }
  .home__news-cards .comp--card__text {
    font-size: 0.875rem;
    line-height: 1.5;
  }
  .home__news-cards .comp--card__meta {
    display: grid;
    gap: 0.5rem;
    justify-items: start;
    margin-bottom: 0.75rem;
    align-items: start;
  }
  .home__news-cards .comp--card__meta time {
    margin-left: 0;
    width: auto;
    white-space: nowrap;
  }
  .home__news-cards .comp--badge {
    margin-bottom: 0;
    padding: 0.25rem 0.75rem;
  }
  .home__news-cards .comp--card__media {
    margin-bottom: 0.85rem;
  }
  .home__events {
    grid-area: events;
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1rem;
  }
  .home__events h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  .home__event {
    padding: 0.75rem;
  }
  .home__event h4 {
    font-size: 0.875rem;
  }
  .home__event p {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .home__event .home__event-meta {
    line-height: 1.4;
  }
  .home__event .home__event-meta--address {
    display: none;
  }
  .home__events > .home__button {
    margin-top: auto;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  .home__events > .home__event:last-of-type {
    margin-bottom: 1rem;
  }
}
@media (max-width: calc(45rem - 1px)) {
  .home__hero {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }
  .home__hero-stage {
    min-height: 14rem;
    align-items: flex-end;
  }
  .home__hero-copy {
    padding: 1rem 1rem 1rem;
  }
  .home__hero-copy h1 {
    font-size: clamp(2rem, 1.25rem + 0.75vw, 1.75rem);
  }
  .home__search {
    margin-top: 0.75rem;
  }
  .home__hero-actions {
    margin-top: 0.5rem;
  }
  .home__news {
    padding-top: 1.5rem;
  }
}
