/*
 * Prototype styles for Medobcinsko drustvo invalidov Kranj.
 * Builds on the included Start Bootstrap Small Business stylesheet.
 */

:root {
  --mdi-green: #2f6f56;
  --mdi-green-dark: #214f41;
  --mdi-blue: #214a6b;
  --mdi-gold: #d8a83a;
  --mdi-red: #b34d4d;
  --mdi-ink: #1f2d2b;
  --mdi-muted: #65736f;
  --mdi-paper: #f7f9f7;
  --mdi-line: #dbe5df;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--mdi-ink);
  background: #fff;
}

a {
  color: var(--mdi-green-dark);
}

a:hover {
  color: var(--mdi-blue);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: var(--mdi-green-dark);
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.top-strip {
  padding: 0.45rem 0;
  color: #fff;
  background: var(--mdi-green-dark);
  font-size: 0.92rem;
}

.top-strip a {
  color: #fff;
  text-decoration: none;
}

.site-nav {
  border-bottom: 1px solid var(--mdi-line);
  background: rgba(255, 255, 255, 0.98);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  color: var(--mdi-ink);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--mdi-ink);
}

.brand-lockup img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.brand-title {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: flex-end;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 0.35rem;
  color: var(--mdi-ink);
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--mdi-green);
}

.hero-section {
  padding: 4rem 0 2.5rem;
  background:
    linear-gradient(90deg, rgba(247, 249, 247, 0.94), rgba(247, 249, 247, 0.74)),
    url("../../teme/startbootstrap-stylish-portfolio-gh-pages/assets/img/bg-masthead.jpg") center/cover;
  border-bottom: 1px solid var(--mdi-line);
}

.page-hero {
  padding: 3rem 0;
  background: var(--mdi-paper);
  border-bottom: 1px solid var(--mdi-line);
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--mdi-green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  max-width: 760px;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.hero-copy,
.page-copy {
  max-width: 680px;
  color: #43504d;
  font-size: 1.15rem;
}

.hero-logo-panel {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2.5rem rgba(31, 45, 43, 0.12);
}

.hero-logo-panel img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin: 0 auto 1rem;
}

.section-band {
  padding: 4rem 0;
}

.section-band-muted {
  background: var(--mdi-paper);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-weight: 800;
}

.section-heading p {
  color: var(--mdi-muted);
}

.membership-summary strong {
  color: var(--mdi-green);
  font-size: 1.08em;
  white-space: nowrap;
}

.membership-affiliation {
  max-width: 780px;
  margin-top: 0.8rem;
}

.membership-eligibility {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.membership-eligibility h2,
.membership-facts h2 {
  font-weight: 800;
}

.membership-eligibility p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--mdi-muted);
}

.membership-details {
  overflow: hidden;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.6rem rgba(31, 45, 43, 0.06);
}

.membership-details summary {
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  color: var(--mdi-ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.membership-details summary::-webkit-details-marker {
  display: none;
}

.membership-details summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--mdi-green);
  content: "+";
  font-size: 1.6rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.membership-details[open] summary {
  border-bottom: 1px solid var(--mdi-line);
}

.membership-details[open] summary::after {
  content: "−";
}

.membership-details-content {
  padding: 0.4rem 1.25rem 0.65rem;
}

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

.membership-eligibility-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mdi-line);
  color: var(--mdi-muted);
}

.membership-eligibility-list li:last-child {
  border-bottom: 0;
}

.membership-facts h2 {
  margin-bottom: 1rem;
}

.membership-facts .membership-summary {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.info-card,
.news-card,
.gallery-card,
.contact-panel,
.membership-panel {
  height: 100%;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.6rem rgba(31, 45, 43, 0.08);
}

.info-card,
.contact-panel,
.membership-panel {
  padding: 1.35rem;
}

.info-card h3,
.news-card h2,
.gallery-card h2,
.contact-panel h2,
.membership-panel h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.info-card p,
.news-card p,
.gallery-card p,
.contact-panel p,
.membership-panel p {
  color: var(--mdi-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--mdi-green-dark);
  font-weight: 800;
  text-decoration: none;
}

.card-link::after {
  content: ">";
  font-weight: 800;
}

.btn-mdi {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--mdi-green);
  --bs-btn-border-color: var(--mdi-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mdi-green-dark);
  --bs-btn-hover-border-color: var(--mdi-green-dark);
  --bs-btn-focus-shadow-rgb: 47, 111, 86;
  border-radius: 0.35rem;
  font-weight: 800;
}

.btn-outline-mdi {
  --bs-btn-color: var(--mdi-green-dark);
  --bs-btn-border-color: var(--mdi-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--mdi-green);
  --bs-btn-hover-border-color: var(--mdi-green);
  --bs-btn-focus-shadow-rgb: 47, 111, 86;
  border-radius: 0.35rem;
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--mdi-line);
  border-radius: 999px;
  color: var(--mdi-blue);
  background: #eef5f1;
  font-size: 0.84rem;
  font-weight: 800;
}

.date-block {
  width: 74px;
  min-width: 74px;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  background: var(--mdi-blue);
  text-align: center;
}

.date-block strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.date-block span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}

.home-events-status {
  width: 100%;
  margin: 0;
  color: var(--mdi-muted);
}

.posted-news-card {
  display: block;
}

.posted-news-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 800;
}

.event-list {
  min-height: 1px;
}

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.event-card-note {
  margin-top: 0.75rem;
  color: var(--mdi-muted);
  font-size: 0.95rem;
}

.schedule-open-button {
  width: 100%;
  margin-top: 0.75rem;
}

.schedule-modal-open {
  overflow: hidden;
}

.schedule-dialog {
  width: min(1240px, calc(100% - 1rem));
  max-width: none;
  max-height: calc(100dvh - 1rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.75rem;
  color: var(--mdi-ink);
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgba(15, 42, 33, 0.35);
}

.schedule-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: schedule-dialog-in 220ms ease-out;
}

.schedule-dialog::backdrop {
  background: rgba(13, 38, 30, 0.66);
  backdrop-filter: blur(6px);
  animation: schedule-backdrop-in 220ms ease-out;
}

.schedule-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--mdi-line);
  background: var(--mdi-paper);
}

.schedule-dialog-header h2 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.schedule-dialog-header .eyebrow {
  margin: 0;
}

.schedule-close-button {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--mdi-line);
  border-radius: 50%;
  color: var(--mdi-ink);
  background: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.schedule-close-button:hover {
  color: #fff;
  border-color: var(--mdi-green-dark);
  background: var(--mdi-green-dark);
}

.schedule-table-wrap {
  overflow: visible;
}

.schedule-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: clamp(0.58rem, 1.5vh, 0.76rem);
  line-height: 1.12;
}

.schedule-table th,
.schedule-table td {
  padding: clamp(0.16rem, 0.45vh, 0.3rem) clamp(0.25rem, 0.55vw, 0.5rem);
  border-right: 1px solid var(--mdi-line);
  border-bottom: 1px solid var(--mdi-line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.schedule-table thead {
  color: #fff;
  background: var(--mdi-green-dark);
}

.schedule-col-month { width: 10%; }
.schedule-col-date { width: 20%; }
.schedule-col-activity { width: 34%; }
.schedule-col-deadline { width: 18%; }

.schedule-table thead th {
  text-align: center;
}

.schedule-table tbody th {
  color: var(--mdi-green-dark);
  background: #eef5f1;
}

.schedule-table tbody tr:nth-child(even) td {
  background: var(--mdi-paper);
}

@keyframes schedule-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes schedule-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.event-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.event-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--mdi-line);
  border-radius: 0.35rem;
  color: var(--mdi-ink);
  font-weight: 800;
  text-decoration: none;
}

.event-pagination a[aria-current="page"],
.event-pagination a:hover {
  color: #fff;
  background: var(--mdi-green);
  border-color: var(--mdi-green);
}

.calendar-panel {
  padding: 1.35rem;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.6rem rgba(31, 45, 43, 0.08);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.calendar-controls {
  display: flex;
  gap: 0.4rem;
}

.calendar-nav-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--mdi-ink);
  background: transparent;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}

.calendar-nav-button:hover:not(:disabled) {
  color: var(--mdi-ink);
  background: transparent;
  opacity: 0.65;
  transform: translateY(-1px);
}

.calendar-nav-button:focus-visible {
  color: var(--mdi-ink);
  background: transparent;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.calendar-nav-button:active:not(:disabled) {
  transform: scale(0.82);
}

.calendar-nav-button:disabled {
  color: #9ca8a3;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.35;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.calendar-weekday,
.calendar-day {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 0.35rem;
  font-weight: 800;
}

.calendar-weekday {
  color: var(--mdi-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.calendar-day {
  border: 1px solid var(--mdi-line);
  color: var(--mdi-muted);
  background: #f8fbf9;
}

.calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  border-radius: 0.35rem;
  color: #fff;
  background: var(--mdi-green);
  text-decoration: none;
}

.calendar-day a:hover {
  background: var(--mdi-green-dark);
}

.gallery-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  background: #eef5f1;
  border-bottom: 1px solid var(--mdi-line);
  border-radius: 0.5rem 0.5rem 0 0;
  overflow: hidden;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.is-collage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
}

.gallery-thumb.is-collage img {
  min-width: 0;
  min-height: 0;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.gallery-card:hover {
  box-shadow: 0 1rem 2.2rem rgba(31, 45, 43, 0.14);
  transform: translateY(-2px);
}

.gallery-card-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-card-trigger:focus-visible {
  outline: 3px solid var(--mdi-green);
  outline-offset: -3px;
}

.gallery-card-body {
  padding: 1.25rem;
}

.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 22, 18, 0.92);
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-dialog {
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.gallery-dialog-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--mdi-line);
}

.gallery-dialog-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.gallery-dialog-header [data-gallery-back][hidden] {
  display: inline-grid !important;
  visibility: hidden;
}

.gallery-icon-button,
.gallery-viewer-nav {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--mdi-line);
  border-radius: 50%;
  color: var(--mdi-ink);
  background: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-icon-button:hover,
.gallery-viewer-nav:hover {
  color: #fff;
  border-color: var(--mdi-green);
  background: var(--mdi-green);
}

.gallery-icon-button:focus-visible,
.gallery-viewer-nav:focus-visible,
.gallery-dialog-image:focus-visible {
  outline: 3px solid #8bc9a9;
  outline-offset: 2px;
}

.gallery-dialog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-auto-rows: 160px;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
  overflow-y: auto;
}

.gallery-year-list {
  display: grid;
  gap: 1rem;
}

.gallery-year {
  border: 1px solid var(--mdi-line);
  background: #fff;
}

.gallery-year summary {
  position: relative;
  padding: 1.15rem 3.5rem 1.15rem 1.25rem;
  color: var(--mdi-ink);
  font-size: 1.35rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.gallery-year summary::-webkit-details-marker {
  display: none;
}

.gallery-year summary::after {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--mdi-green);
  content: "+";
  font-size: 1.75rem;
  transform: translateY(-50%);
}

.gallery-year[open] summary {
  border-bottom: 1px solid var(--mdi-line);
}

.gallery-year[open] summary::after {
  content: "−";
}

.gallery-year-content {
  padding: 1.25rem;
}

.gallery-year-empty {
  margin: 0;
  color: var(--mdi-muted);
}

.gallery-dialog-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e8efeb;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 160ms ease;
}

.gallery-viewer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem;
  background: #eef3f0;
}

.gallery-viewer[hidden] {
  display: none;
}

.gallery-viewer-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: min(72vh, 760px);
  margin: 0;
}

.gallery-viewer-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.gallery-viewer-figure figcaption {
  min-height: 28px;
  padding-top: 0.45rem;
  color: var(--mdi-muted);
  font-weight: 700;
  text-align: center;
}

@media (hover: hover) {
  .gallery-dialog-image:hover img {
    transform: scale(1.05);
  }
}

.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.list-check li::before {
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--mdi-green);
  content: "✓";
  font-weight: 900;
}

.contact-list {
  margin: 0;
}

.contact-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-overview .contact-panel,
.contact-stack .contact-panel {
  height: auto;
}

.contact-list dt {
  color: var(--mdi-muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin-bottom: 1rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-list dd:last-child {
  margin-bottom: 0;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 0.5rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.partner-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.65rem 1.6rem rgba(31, 45, 43, 0.08);
}

.partner-panel h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.partner-logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: center;
}

.featured-logo-row {
  grid-template-columns: 1fr;
  flex: 1;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: 0.9rem;
  border: 1px solid var(--mdi-line);
  border-radius: 0.5rem;
  background: #f8fbf9;
}

.partner-logo-card img {
  width: 100%;
  max-width: 155px;
  max-height: 64px;
  object-fit: contain;
}

.partner-logo-card.logo-emblem img {
  max-width: 92px;
  max-height: 76px;
}

.partner-logo-card.logo-wordmark img {
  max-width: 180px;
}

.featured-logo-row .partner-logo-card {
  height: 174px;
}

.featured-logo-row .partner-logo-card img {
  max-width: 250px;
  max-height: 112px;
}

.footer-partners {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.footer-partner-label {
  color: #dfe9e4;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-partner-logo {
  width: 58px;
  max-height: 28px;
  object-fit: contain;
  padding: 0.2rem 0.3rem;
  border-radius: 0.25rem;
  background: #fff;
}

.footer-fiho-logo {
  width: 52px;
}

.site-footer {
  padding: 3rem 0 1.5rem;
  color: #dfe9e4;
  background: var(--mdi-green-dark);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.75fr;
  gap: 2rem;
}

.footer-grid section,
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-heading {
  margin-bottom: 0.35rem;
  color: #fff;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .membership-eligibility {
    grid-template-columns: 1fr;
  }

  .site-nav .container {
    gap: 1rem;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero-section {
    padding-top: 2.75rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .top-strip {
    font-size: 0.85rem;
  }

  .brand-lockup img {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.6rem;
    font-size: 0.94rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    flex-direction: column;
  }

  .gallery-modal {
    padding: 0.5rem;
  }

  .gallery-dialog {
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .gallery-dialog-header {
    gap: 0.4rem;
    min-height: 56px;
    padding: 0.45rem;
  }

  .gallery-dialog-header h2 {
    font-size: 1rem;
  }

  .gallery-dialog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 145px;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .gallery-viewer {
    position: relative;
    display: block;
    padding: 0.5rem;
  }

  .gallery-icon-button,
  .gallery-viewer-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-viewer-figure {
    height: calc(100dvh - 7.5rem);
  }

  .gallery-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    transform: translateY(-50%);
  }

  .gallery-viewer-nav[data-gallery-previous] {
    left: 0.5rem;
  }

  .gallery-viewer-nav[data-gallery-next] {
    right: 0.5rem;
  }

  .schedule-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .schedule-dialog-header { padding: 0.45rem 0.55rem; }
  .schedule-dialog-header h2 { font-size: 1rem; }
  .schedule-dialog-header .eyebrow { font-size: 0.58rem; }
  .schedule-close-button { flex-basis: 32px; width: 32px; height: 32px; font-size: 1.25rem; }
  .schedule-table { font-size: 0.39rem; line-height: 1.08; }
  .schedule-table th, .schedule-table td { padding: 0.1rem 0.12rem; }
}

.article-header {
  max-width: 920px;
}

.article-layout {
  display: grid;
  max-width: 920px;
  gap: 1.5rem;
}

.article-image {
  width: min(100%, 760px);
  max-height: 520px;
  border-radius: 0.75rem;
  object-fit: cover;
}

.article-body {
  color: var(--mdi-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-body a {
  color: var(--mdi-green);
  font-weight: 700;
}

.gallery-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-detail-link {
  overflow: hidden;
  border-radius: 0.65rem;
  background: var(--mdi-cream);
  aspect-ratio: 4 / 3;
}

.gallery-detail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-detail-link:hover img,
.gallery-detail-link:focus-visible img {
  transform: scale(1.025);
}

.gallery-detail-cta {
  display: inline-block;
  margin: 0 1.25rem 1.25rem;
}

.event-details:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .schedule-dialog[open],
  .schedule-dialog::backdrop {
    animation: none;
  }
}
