:root {
  --ink: #17211c;
  --muted: #5f6b65;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe5df;
  --jade: #0f6b58;
  --jade-dark: #0b4d42;
  --cinnabar: #ad392d;
  --gold: #c89b3c;
  --teal-soft: #e7f3ef;
  --red-soft: #f8e7e3;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Sans SC", "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img,
video {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(223, 229, 223, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(173, 57, 45, 0.28);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.site-nav > a,
.nav-group > button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-group > button:hover,
.nav-group > button:focus-visible {
  color: var(--jade-dark);
  background: var(--teal-soft);
  outline: none;
}

.admin-link {
  color: #fff !important;
  background: var(--ink) !important;
}

.nav-group {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: var(--mega-menu-top, 73px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px;
  width: min(760px, calc(100vw - 64px));
  max-height: calc(100vh - var(--mega-menu-top, 73px) - 20px);
  overflow: auto;
  padding: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.history-menu {
  width: min(880px, calc(100vw - 64px));
}

.compact-menu {
  grid-template-columns: minmax(220px, 1fr);
  width: min(340px, calc(100vw - 64px));
}

.nav-group:hover .mega-menu,
.nav-group:focus-within .mega-menu,
.nav-group.open .mega-menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.site-search {
  display: flex;
  align-items: center;
  width: 174px;
  min-height: 40px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-search input {
  min-height: 38px;
  padding: 7px 4px 7px 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.88rem;
}

.site-search input:focus {
  outline: none;
  border: 0;
}

.site-search button,
.language-toggle button,
.tool-link {
  display: inline-grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-search button {
  color: var(--jade-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 34px;
  min-height: 34px;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.language-toggle button.active {
  color: #fff;
  background: var(--jade);
}

.tool-link {
  padding: 0 11px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.whatsapp-link {
  color: #fff;
  background: var(--jade);
  border-color: var(--jade);
}

.mega-menu h3 {
  margin: 0 0 9px;
  color: var(--cinnabar);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.mega-menu a {
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.35;
}

.mega-menu a:hover,
.mega-menu a:focus-visible {
  color: var(--jade);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 99px;
  content: "";
}

.nav-toggle span:not(.sr-only)::before {
  transform: translateY(-6px);
}

.nav-toggle span:not(.sr-only)::after {
  transform: translateY(4px);
}

.hero {
  --hero-bg: url("show1.jpg");
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr);
  padding: 132px 32px 56px;
  color: #fff;
  background: #14231d;
}

.event-spotlight {
  width: 100%;
  max-width: none;
  padding: 54px max(24px, calc((100vw - 1180px) / 2)) 44px;
  background:
    linear-gradient(90deg, rgba(248, 231, 227, 0.9), rgba(231, 243, 239, 0.96)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.spotlight-copy {
  max-width: 760px;
}

.spotlight-copy h1 {
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.spotlight-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.spotlight-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 16px 0 14px;
}

.spotlight-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.spotlight-track {
  display: grid;
  grid-auto-columns: minmax(320px, 32%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2px 0 14px;
}

.spotlight-track::-webkit-scrollbar {
  height: 8px;
}

.spotlight-track::-webkit-scrollbar-thumb {
  background: rgba(15, 107, 88, 0.35);
  border-radius: 999px;
}

.spotlight-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 398px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 33, 28, 0.08);
  scroll-snap-align: start;
}

.spotlight-card:hover,
.spotlight-card:focus-within {
  border-color: rgba(15, 107, 88, 0.45);
}

.spotlight-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-soft);
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card-body {
  display: grid;
  padding: 18px 20px 20px;
}

.spotlight-card .event-meta {
  margin-bottom: 12px;
}

.spotlight-card h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.spotlight-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.spotlight-card button {
  align-self: end;
  justify-self: start;
  padding: 0;
  color: var(--jade-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 17, 14, 0.95) 0%, rgba(10, 17, 14, 0.78) 40%, rgba(10, 17, 14, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 17, 14, 0.42), rgba(10, 17, 14, 0.08));
  content: "";
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides::before {
  position: absolute;
  inset: -30px;
  background: var(--hero-bg) center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.78;
  transform: scale(1.04);
  content: "";
}

.hero-slides::after {
  position: absolute;
  inset: 0 0 0 auto;
  right: 0;
  z-index: 2;
  width: min(58%, 860px);
  background: url("show2.jpg") left center / auto 100% no-repeat;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 30%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.28) 12%, #000 30%, #000 100%);
}

.hero-slides img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 800ms ease;
}

.hero-slides img.active {
  opacity: 1;
}

.hero-slides img.hero-slide-building {
  transform: scaleX(-1);
}

.hero.hero-building-active .hero-slides::after {
  opacity: 1;
}

.hero-copy,
.hero-facts,
.section,
.today-strip,
.site-footer {
  width: min(1180px, calc(100vw - 48px));
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  margin-inline: auto;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: 4.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  margin-top: 10px;
  font-size: 2.25rem;
  font-weight: 600;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cinnabar);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd485;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-photo-toggle {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.hero-photo-toggle button {
  width: 38px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.36);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-photo-toggle button.active {
  background: #ffd485;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: #fff;
  background: var(--cinnabar);
  box-shadow: 0 8px 20px rgba(173, 57, 45, 0.28);
}

.button.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button.ghost {
  color: var(--jade-dark);
  background: var(--teal-soft);
  border-color: rgba(15, 107, 88, 0.18);
}

.hero-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 76px;
}

.hero-facts div {
  min-height: 104px;
  padding: 18px;
  border-left: 3px solid rgba(255, 212, 133, 0.72);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-facts strong {
  display: block;
  font-size: 1.55rem;
}

.hero-facts span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.today-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 34px 0 8px;
}

.today-strip article {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.today-strip span,
.card-kicker,
.story-list span {
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.today-strip p,
.feature-card p,
.archive-grid p,
.culture-grid p,
.group-row p,
.membership-grid p,
.story-list p,
.timeline p {
  margin: 9px 0 0;
  color: var(--muted);
}

.section {
  padding: 78px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro.narrow {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.section-intro.with-action {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-intro h2,
.split-section h2,
.contact-layout h2 {
  margin: 0;
  font-size: 2.45rem;
  line-height: 1.13;
  letter-spacing: 0;
}

.section-intro p:not(.eyebrow),
.prose p,
.contact-layout p,
.governance-section p,
.temple-section p,
.associations-section p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid,
.culture-grid,
.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.culture-grid article,
.membership-grid article,
.story-list article,
.group-row article,
.archive-grid article,
.event-card,
.login-panel,
.event-form,
.admin-list-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.culture-grid article,
.membership-grid article,
.story-list article,
.group-row article,
.archive-grid article {
  padding: 24px;
}

.feature-card h3,
.culture-grid h3,
.membership-grid h3,
.story-list h3,
.group-row h3,
.archive-grid h3,
.timeline h3 {
  margin: 7px 0 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prose {
  max-width: 780px;
}

.vision-band {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, #ffffff 0%, var(--teal-soft) 100%);
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 28px auto 0;
}

.value-list span,
.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid rgba(15, 107, 88, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  min-height: 190px;
  padding: 22px;
  background: var(--ink);
  border-radius: var(--radius);
  color: #fff;
}

.timeline time {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 999px;
  font-weight: 800;
}

.timeline h3 {
  margin-top: 18px;
}

.timeline p {
  color: rgba(255, 255, 255, 0.74);
}

.archive-band {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
}

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

.story-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.culture-section {
  border-top: 1px solid var(--line);
}

.culture-grid article {
  min-height: 246px;
  display: grid;
  align-content: start;
}

.culture-grid span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--jade);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}

.culture-grid article:nth-child(2) span {
  background: var(--cinnabar);
}

.culture-grid article:nth-child(3) span {
  background: var(--ink);
}

.culture-grid article:nth-child(4) span {
  background: var(--gold);
}

.group-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.events-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--teal-soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  cursor: pointer;
}

.filter-button.active {
  color: #fff;
  background: var(--jade);
}

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

.event-card {
  min-height: 100%;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 107, 88, 0.08);
}

.event-media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(173, 57, 45, 0.14), rgba(15, 107, 88, 0.18)),
    #f7f1e8;
}

.event-media img,
.event-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-media img.legacy-media {
  padding: 18px;
  object-fit: contain;
  background: #fff;
}

.event-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  color: var(--jade-dark);
  text-align: center;
  font-weight: 800;
}

.event-document,
.document-preview {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: var(--jade-dark);
  text-align: center;
}

.event-document span,
.document-preview span {
  padding: 4px 10px;
  color: #fff;
  background: var(--jade);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-document strong,
.document-preview strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.event-body {
  padding: 20px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.event-meta span {
  padding: 2px 8px;
  background: var(--red-soft);
  border-radius: 999px;
}

.event-body h3 {
  margin: 13px 0 0;
  font-size: 1.25rem;
  line-height: 1.24;
}

.event-body p {
  margin: 9px 0 0;
  color: var(--muted);
}

.event-body a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--jade-dark);
  font-weight: 800;
}

.event-source,
.event-attachment {
  display: inline-flex;
  margin-top: 12px;
  margin-right: 8px;
  padding: 4px 9px;
  color: var(--jade-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.event-search-status {
  min-height: 24px;
  margin: 0 0 16px;
  color: var(--jade-dark);
  font-weight: 800;
}

.event-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.event-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--jade-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.event-pagination button.active {
  color: #fff;
  background: var(--jade);
  border-color: var(--jade);
}

.admin-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #fff;
}

.admin-page .admin-section {
  min-height: calc(100vh - 72px);
  padding-top: 64px;
}

.admin-page .site-nav {
  flex: 0 1 auto;
}

.admin-section .eyebrow {
  color: #ffd485;
}

.admin-section .section-intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.admin-section .section-intro p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.admin-gate {
  max-width: 560px;
}

.login-panel,
.event-form,
.admin-list-panel {
  padding: 24px;
  color: var(--ink);
}

.login-panel label,
.event-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.inline-control {
  display: flex;
  gap: 10px;
}

.inline-control input {
  flex: 1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: var(--radius);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  outline: 3px solid rgba(15, 107, 88, 0.16);
}

.admin-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

.media-preview {
  display: grid;
  aspect-ratio: 16 / 7;
  place-items: center;
  margin-top: 16px;
  overflow: hidden;
  color: var(--muted);
  background: #f4f7f5;
  border: 1px dashed #b9c6bf;
  border-radius: var(--radius);
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--jade-dark);
  font-weight: 800;
}

.admin-note,
.remote-note {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.admin-list-panel {
  min-height: 360px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px auto;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  background: #f8faf8;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.admin-item:last-child {
  border-bottom: 0;
}

.admin-item strong {
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item button {
  justify-self: start;
  min-height: 34px;
  padding: 0 11px;
  color: #fff;
  background: var(--cinnabar);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.membership-section {
  background: var(--paper);
}

.demo-pill {
  display: inline-flex;
  margin-top: 16px;
  color: var(--jade-dark);
  font-weight: 800;
}

.resources-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
}

.resource-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-card {
  display: inline-grid;
  align-content: center;
  gap: 4px;
  min-height: 54px;
  max-width: 280px;
  padding: 12px 16px;
  color: var(--jade-dark);
  background: var(--teal-soft);
  border: 1px solid rgba(15, 107, 88, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
}

.resource-card span,
.resource-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.resource-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.resource-card em {
  font-style: normal;
}

.media-library {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.media-library article {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-library img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-library span {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background: var(--jade-dark);
  color: #fff;
}

.contact-section .eyebrow {
  color: #ffd485;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-layout p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-list dt {
  color: rgba(255, 212, 133, 0.95);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
}

.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 42px;
  color: var(--muted);
}

.site-footer div {
  display: grid;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  color: var(--jade-dark);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 1400px) {
  .site-header {
    padding-inline: 22px;
    gap: 12px;
  }

  .nav-toggle {
    display: grid;
    order: 4;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    max-height: calc(100vh - 92px);
    overflow: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .header-tools {
    order: 3;
    margin-left: auto;
  }

  .site-search {
    width: 142px;
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .site-nav > a,
  .nav-group > button {
    justify-content: flex-start;
    width: 100%;
    border-radius: var(--radius);
  }

  .nav-group {
    width: 100%;
  }

  .mega-menu {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-height: 0;
    margin: 0;
    padding: 0 14px;
    overflow: hidden;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    background: var(--paper);
  }

  .nav-group:hover .mega-menu,
  .nav-group:focus-within .mega-menu,
  .nav-group.open .mega-menu {
    max-height: 900px;
    padding: 14px;
    margin: 4px 0 10px;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .hero-copy h1 span {
    font-size: 1.75rem;
  }

  .timeline,
  .story-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav {
    inset: 118px 16px auto 16px;
    max-height: calc(100vh - 138px);
  }

  .header-tools {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    order: 5;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .header-tools::-webkit-scrollbar {
    display: none;
  }

  .brand {
    flex: 1 1 0;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .site-search {
    flex: 1 0 180px;
  }

  .event-spotlight {
    padding: 38px 24px 32px;
  }

  .spotlight-copy h1 {
    font-size: 2.35rem;
  }

  .spotlight-track {
    grid-auto-columns: minmax(272px, 84%);
  }

  .hero {
    min-height: 620px;
    padding: 104px 24px 38px;
  }

  .hero-copy,
  .hero-facts,
  .section,
  .today-strip,
  .site-footer {
    width: min(100% - 32px, 1180px);
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy h1 span {
    font-size: 1.18rem;
  }

  .hero-facts,
  .today-strip,
  .feature-grid,
  .culture-grid,
  .membership-grid,
  .group-row,
  .archive-grid,
  .event-grid,
  .contact-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .media-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts {
    margin-top: 42px;
  }

  .section {
    padding: 56px 0;
  }

  .section-intro.with-action {
    align-items: start;
    flex-direction: column;
  }

  .section-intro h2,
  .split-section h2,
  .contact-layout h2 {
    font-size: 1.9rem;
  }

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

  .admin-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    min-height: 0;
    padding: 10px 12px;
  }

  .admin-item strong,
  .admin-item span {
    white-space: normal;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .tool-link {
    padding: 0 10px;
  }

  .language-toggle button {
    min-width: 32px;
  }

  .event-spotlight {
    padding-inline: 16px;
  }

  .spotlight-copy h1 {
    font-size: 2.05rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 580px;
    padding-inline: 16px;
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .form-actions,
  .inline-control,
  .contact-actions,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer .footer-links {
    justify-content: flex-start;
  }

  .timeline,
  .story-list,
  .media-library {
    grid-template-columns: 1fr;
  }

  .timeline article {
    min-height: 160px;
  }
}
