:root {
  --nav-blue: #0b3d6e;
  --nav-blue-hover: #0e4d8a;
  --accent: #2d8cf0;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --text: #222;
  --muted: #666;
  --line: #e5e8ef;
  --max: 1180px;
  --font: "Noto Sans TC", "Noto Sans SC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

a {
  color: var(--nav-blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

/* Top bar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: inherit;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--nav-blue);
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.topbar-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: #fff;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--muted);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--nav-blue);
  color: #fff;
}

/* Main nav */
.mainnav {
  background: var(--nav-blue);
  position: sticky;
  top: 0;
  z-index: 50;
}

.mainnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a,
.nav-list > li > button {
  display: block;
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  padding: 0.9rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li:focus-within > a,
.nav-list > li:focus-within > button {
  background: var(--nav-blue-hover);
  text-decoration: none;
  color: #fff;
}

.nav-list > li > a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 60;
}

.nav-list > li:hover > .dropdown,
.nav-list > li:focus-within > .dropdown,
.nav-list > li.is-open > .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-size: 0.92rem;
}

.dropdown a:hover {
  background: #f3f7fb;
  text-decoration: none;
  color: var(--nav-blue);
}

/* Page shell */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-home {
  max-width: none;
  padding: 0 0 3rem;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--nav-blue);
  margin: 0 0 0.35rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0.55rem auto 1.25rem;
}

.page-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  color: var(--nav-blue);
}

.page-header p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem 1.75rem;
  box-shadow: 0 1px 0 rgba(11, 61, 110, 0.04);
}

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

.prose h2 {
  color: var(--nav-blue);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.prose ul {
  padding-left: 1.25rem;
}

/* Hero carousel */
.hero {
  position: relative;
  background: #1a2a3a;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 21 / 8;
  background: #123;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-weight: 600;
}

.hero-slide a.caption {
  color: #fff;
  text-decoration: none;
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
}

.hero-btn.prev {
  left: 0.75rem;
}

.hero-btn.next {
  right: 0.75rem;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  cursor: pointer;
}

.hero-dots button[aria-current="true"] {
  background: #fff;
}

/* Quick tiles — modern image cards */
.section-quick {
  padding-top: 1.25rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
  position: relative;
  z-index: 3;
}

.quick-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--nav-blue);
  box-shadow: 0 1px 2px rgba(11, 61, 110, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 61, 110, 0.12);
  border-color: rgba(11, 61, 110, 0.22);
  color: var(--nav-blue);
  text-decoration: none !important;
}

.quick-tile-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #e8eef5 0%, #d5e0ec 100%);
  overflow: hidden;
}

.quick-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.quick-tile:hover .quick-tile-media img {
  transform: scale(1.04);
}

.quick-tile-label {
  display: block;
  padding: 0.85rem 0.7rem 0.95rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--nav-blue);
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Cards / grids */
.card-grid,
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.home-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-tile.stack img {
  aspect-ratio: 16 / 10;
}

.home-tile.stack img + img {
  border-top: 1px solid var(--line);
}

.home-tile .meta {
  padding: 0 0.9rem 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.card img,
.home-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card .body,
.home-tile .caption,
.home-tile a.caption {
  padding: 0.65rem 0.9rem;
  font-weight: 600;
  color: var(--nav-blue);
  line-height: 1.4;
}

.home-tile a.caption + a.caption {
  padding-top: 0;
}

.card-list {
  display: grid;
  gap: 0.65rem;
}

.card-list a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: inherit;
}

.card-list a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.card-title {
  font-weight: 700;
  color: var(--nav-blue);
}

.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.zoom-band {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1rem;
  margin: 1.25rem 0;
  align-items: center;
}

.zoom-band img {
  width: 100%;
}

.calendar-tz {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56%;
  background: #fff;
  border: 1px solid var(--line);
  margin: 1rem 0;
}

.embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.about-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.about-top .seal {
  width: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
}

.map-embed {
  position: relative;
  padding-top: 70%;
  border: 1px solid var(--line);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  background: #fff8e8;
  border: 1px solid #f0dfb0;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  background: var(--nav-blue);
  color: #fff !important;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  text-decoration: none !important;
  font-weight: 600;
}

.btn:hover {
  background: var(--nav-blue-hover);
  color: #fff !important;
}

.btn-outline {
  background: transparent !important;
  color: var(--nav-blue) !important;
  border: 1px solid var(--nav-blue);
}

.btn-outline:hover {
  background: rgba(11, 61, 110, 0.08) !important;
  color: var(--nav-blue) !important;
}

.btn-hero {
  display: inline-block;
  font-size: 1.1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(11, 61, 110, 0.22);
  letter-spacing: 0.02em;
}

.cta-banner {
  background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--nav-blue);
  padding: 1.35rem 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}

.cta-actions {
  margin: 1.25rem 0 0.5rem;
}

.cta-note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-list a {
  display: block;
  padding: 0.7rem 0.15rem;
}

/* Footer */
.site-footer {
  background: #16365a;
  color: #dce7f3;
  margin-top: 2rem;
}

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

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.footer-copy {
  text-align: center;
  padding: 0.75rem 1.25rem 1.25rem;
  font-size: 0.85rem;
  color: #a9bdd2;
}

.social-links {
  margin: 0.85rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 0.35rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.social-link.inline {
  vertical-align: middle;
  margin-left: 0.15rem;
}

.social-facebook svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.page-header {
  margin-bottom: 1rem;
}

.page-header h1 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--nav-blue);
  letter-spacing: 0.02em;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem 1.75rem;
  box-shadow: 0 1px 0 rgba(11, 61, 110, 0.04);
}

.prose .lead {
  font-size: 1.05rem;
  color: #334;
  line-height: 1.85;
}

.prose h2 {
  margin-top: 1.75rem;
}

.teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.teach-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-left: 3px solid var(--nav-blue);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.teach-card:hover {
  background: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.teach-card .card-title {
  font-weight: 700;
  color: var(--nav-blue);
  font-size: 1.02rem;
  line-height: 1.45;
}

.teach-card .card-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.teach-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.5rem;
}

.teach-video {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1c2e;
}

.video-frame iframe,
.video-frame-article iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-frame-article {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.25rem;
  background: #0b1c2e;
}

.teach-video-captions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem 1rem;
  text-align: center;
  text-decoration: none !important;
}

.teach-video-captions .card-title {
  font-size: 0.95rem;
  line-height: 1.45;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.15rem;
}

.album-card {
  position: relative;
  display: block;
  min-height: 240px;
  border-radius: 12px;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(11, 61, 110, 0.14);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-card.is-featured {
  grid-column: 1 / -1;
  min-height: 320px;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(11, 61, 110, 0.2);
}

.album-media {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(145deg, #1a3a5c, #0b3d6e);
}

.album-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.album-card:hover .album-media img {
  transform: scale(1.05);
}

.album-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 28, 48, 0.05) 20%,
    rgba(8, 28, 48, 0.55) 62%,
    rgba(8, 28, 48, 0.88) 100%
  );
  z-index: 1;
}

.album-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.album-meta {
  align-self: flex-start;
  margin-bottom: 0.15rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.album-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.album-cta {
  margin-top: 0.25rem;
  font-size: 0.84rem;
  opacity: 0.88;
  letter-spacing: 0.04em;
}

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

.chant-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 2px 10px rgba(11, 61, 110, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.chant-card:hover {
  transform: translateY(-3px);
  border-color: rgba(11, 61, 110, 0.28);
  box-shadow: 0 12px 28px rgba(11, 61, 110, 0.12);
  text-decoration: none !important;
}

.chant-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #e8eef5, #d2deec);
  overflow: hidden;
}

.chant-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.chant-card:hover .chant-card-media img {
  transform: scale(1.04);
}

.chant-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.95rem 0.75rem 1.1rem;
  text-align: center;
  border-top: 3px solid var(--nav-blue);
  background: linear-gradient(180deg, #f7fafc 0%, #fff 55%);
}

.chant-pinyin {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.chant-zh {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--nav-blue);
  line-height: 1.35;
}

.chant-vi {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d5a78;
  letter-spacing: 0.04em;
}

.chant-en {
  font-size: 0.86rem;
  color: #445;
  line-height: 1.35;
}

.ceremony-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.ceremony-links li a {
  display: block;
  padding: 0.8rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--nav-blue);
  border-radius: 6px;
  font-weight: 600;
  color: var(--nav-blue);
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ceremony-links li a:hover {
  background: #f4f8fc;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .album-grid,
  .chant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .album-card.is-featured {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .teach-video-grid,
  .album-grid,
  .chant-grid {
    grid-template-columns: 1fr;
  }

  .album-card.is-featured {
    grid-column: auto;
  }
}

.teaching-article {
  max-width: 46rem;
  line-height: 1.9;
}

.teaching-article p {
  margin: 0 0 1rem;
}

.back-link {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.donate-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.donate-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.dev-details {
  margin-top: 1.5rem;
  background: #fafbfc;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
}

.dev-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--nav-blue);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

/* Dual-language bodies: only one language visible at a time */
.lang-zh,
.lang-en {
  display: none !important;
}

html[data-lang="zh-Hant"] .lang-zh,
html[data-lang="zh-Hans"] .lang-zh,
html:not([data-lang]) .lang-zh {
  display: block !important;
}

html[data-lang="en"] .lang-en {
  display: block !important;
}

.lang-en-only {
  display: none !important;
}

html[data-lang="en"] .lang-en-only {
  display: block !important;
}

html[data-lang="en"] .lang-zh-only {
  display: none !important;
}

@media (max-width: 960px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0.5rem;
  }

  .about-split,
  .zoom-band,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--nav-blue);
  }

  .nav-list.is-open {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
  }

  .dropdown a {
    color: #fff;
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .quick-tile-label {
    font-size: 0.88rem;
    padding: 0.7rem 0.5rem 0.8rem;
  }

  .mainnav-inner {
    flex-wrap: wrap;
  }
}

.calendar-more {
  margin: 0.85rem 0 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0.75rem 0 1.5rem;
}

.festival-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 52rem;
}

.festival-table th,
.festival-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.festival-table th {
  color: var(--nav-blue);
  font-weight: 700;
  background: #f7fafc;
  white-space: nowrap;
}

.festival-note {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}
