/* NZ Wushu — Karate NZ / Sporty 参考：黑顶栏、白字、红强调、Oswald 大写标题 */
:root {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #111111;
  --black: #000000;
  --white: #ffffff;
  --text-muted: #a8adb4;
  --border: #2a2a2a;
  --red: #ed1c24;
  --coral: #ed1c24;
  --blue: #ed1c24;
  --navy: #000000;
  --social-bar: #0a0a0a;
  --link: #ffffff;
  --header-h: 92px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --nz-fern: url("../images/nz-silver-fern.svg");
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 5rem;
}

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

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

a:hover {
  opacity: 0.85;
}

/* 顶栏 Logo 链接不要用整块透明度，避免出现灰边/发虚 */
.brand:hover {
  opacity: 1;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 2px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.site-header .site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-right: 1.15rem;
  margin-right: 0.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

/* 仅显示圆形会徽：去掉灰描边，裁掉方图露角 */
.brand-logo-wrap {
  display: block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.brand-logo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
}

/* 银蕨装饰（新西兰意象，非官方蕨标） */
.nz-fern {
  flex-shrink: 0;
  pointer-events: none;
}

.nz-fern--brand {
  width: 30px;
  height: auto;
  align-self: center;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
}

.brand:hover .nz-fern--brand {
  opacity: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  color: var(--white);
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.35rem;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--white);
  border-bottom-color: var(--red);
  opacity: 1;
}

.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* Membership 下拉（参考 Karate NZ） */
.site-nav__item--dropdown {
  position: relative;
}

.site-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.35rem 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.site-nav__trigger:hover {
  color: var(--white);
  border-bottom-color: var(--red);
  opacity: 1;
}

.site-nav__trigger.is-active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.site-nav__chev {
  display: inline-block;
  width: 0;
  height: 0;
  margin-bottom: -1px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.75);
}

.site-nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--black);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.site-nav__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.site-nav__item--dropdown:hover .site-nav__submenu,
.site-nav__item--dropdown:focus-within .site-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav__submenu a {
  display: block;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: none;
}

.site-nav__submenu a:hover {
  background: rgba(237, 28, 36, 0.12);
  border-bottom-color: transparent;
}

.site-nav__submenu a.is-active {
  color: var(--white);
  border-bottom: none;
  background: rgba(237, 28, 36, 0.22);
}

@media (max-width: 900px) {
  .brand {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .nz-fern--brand {
    width: 22px;
  }

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

  .site-header .site-nav {
    flex: none;
    width: 100%;
    order: 3;
    justify-content: stretch;
  }

  .site-nav {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

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

  .site-nav.is-open {
    max-height: min(880px, 90vh);
  }

  .site-nav ul {
    flex-direction: column;
    padding: 0 0 1rem;
    align-items: flex-start;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.92);
  }

  /* 移动端：展开菜单时子链直接叠在 Membership 下方 */
  .site-nav .site-nav__item--dropdown .site-nav__submenu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    max-height: none;
    overflow: visible;
    margin: 0.35rem 0 0.15rem 0.25rem;
    padding: 0.15rem 0 0.35rem 0.65rem;
    border: none;
    border-left: 2px solid rgba(237, 28, 36, 0.55);
    border-top: none;
    box-shadow: none;
    background: transparent;
  }

  .site-nav__trigger {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ----- Hero: 全屏视频 + 左侧叠字 + 幽灵按钮（Karate NZ） ----- */
.hero-video {
  position: relative;
  background: var(--black);
  min-height: min(88vh, 900px);
  overflow: hidden;
}

/* YouTube 全宽背景嵌入（pointer-events:none 以免挡住叠字与按钮） */
.hero-video--youtube .hero-youtube {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video--youtube .hero-youtube-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
}

.hero-video--youtube .hero-video-el {
  display: none;
}

.hero-video--fallback .hero-youtube {
  display: none;
}

.hero-video--fallback {
  background-image: linear-gradient(
      105deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.55) 38%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    var(--hero-fallback, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-video--fallback .hero-video-el {
  display: none;
}

.hero-video-el {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

.hero-video-switch {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 3rem;
  height: 4.25rem;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.4);
  color: var(--white);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-video-switch:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-video-switch:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.hero-video-switch--prev {
  left: clamp(0.5rem, 2vw, 1rem);
}

.hero-video-switch--next {
  right: clamp(0.5rem, 2vw, 1rem);
}

.hero-video-switch[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .hero-video-switch {
    width: 2.5rem;
    height: 3.5rem;
    font-size: 1.75rem;
  }
}

.hero-video-inner {
  position: relative;
  z-index: 4;
  min-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: clamp(5rem, 14vh, 8rem) 0 clamp(3rem, 9vh, 5rem);
  pointer-events: none;
}

.hero-video-inner .hero-cta-ghost {
  pointer-events: auto;
}

.hero-video-inner > * {
  position: relative;
  z-index: 1;
}

/* Hero 右侧大号银蕨水印 */
.hero-video-inner::after {
  content: "";
  position: absolute;
  right: clamp(0.5rem, 4vw, 2.5rem);
  bottom: 6%;
  width: min(34vw, 240px);
  height: min(48vw, 320px);
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 720px) {
  .hero-video-inner::after {
    opacity: 0.07;
    width: min(48vw, 160px);
    height: min(66vw, 220px);
    right: 0.35rem;
    bottom: 2%;
  }
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font);
  font-size: clamp(0.85rem, 1.8vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.hero-title {
  margin: 0 0 1.35rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-cta-ghost {
  display: inline-block;
  padding: 0.65rem 1.85rem;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta-ghost:hover {
  opacity: 1;
  background: var(--white);
  color: var(--black);
}

/* ----- 三列 CTA：黑底 + 红短划 + Click here ----- */
.tri-cta {
  width: 100%;
  background: var(--bg);
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

.tri-cta-inner {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.tri-cta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.75rem 1.35rem 1.85rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.65rem;
}

.tri-cta-card::after {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 44px;
  height: 66px;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.tri-cta-card > * {
  position: relative;
  z-index: 1;
}

.tri-cta-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
}

.tri-cta-card p {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tri-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.tri-cta-link::before {
  content: "";
  width: 2.15rem;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.tri-cta-link:hover {
  opacity: 1;
  color: var(--red);
}

@media (max-width: 720px) {
  .tri-cta-inner {
    grid-template-columns: 1fr;
  }
}

/* ----- 宣言带 ----- */
.statement-band {
  position: relative;
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2.75rem 1.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--red);
}

.statement-band::before {
  content: "";
  display: block;
  width: 42px;
  height: 62px;
  margin: 0 auto 1.15rem;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.32;
}

.statement-band p {
  margin: 0 auto 1rem;
  max-width: 820px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.statement-band .sig {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ----- Section titles（Oswald 大写 + 银蕨点缀） ----- */
.section-title {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  gap: 0.65rem;
}

.section-title::before {
  content: "";
  width: 34px;
  height: 50px;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.4;
}

.home-events {
  padding-top: 2.5rem;
}

/* ----- Event cards ----- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.event-card .thumb {
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  object-fit: cover;
  width: 100%;
}

.event-card .body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.event-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}

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

.event-card .more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  width: fit-content;
}

.event-card .more::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--red);
  flex-shrink: 0;
}

.event-card .more:hover {
  opacity: 1;
  color: var(--red);
}

.event-card .pill {
  margin-top: auto;
  align-self: flex-start;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}

.event-card a.pill {
  display: inline-block;
  text-decoration: none;
  color: var(--white);
  text-align: center;
  box-sizing: border-box;
}

.event-card .pill:hover {
  filter: brightness(1.08);
  opacity: 1;
}

/* ----- 活动详情页（如 KungFu Kids） ----- */
.event-detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0d0d 0%, var(--black) 100%);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 3px solid var(--red);
}

.event-detail-hero::after {
  content: "";
  position: absolute;
  right: clamp(0.5rem, 3vw, 1.5rem);
  bottom: 0.75rem;
  width: min(18vw, 72px);
  height: min(25vw, 100px);
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.event-detail-hero .container {
  position: relative;
  z-index: 1;
}

.event-detail-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-detail-hero .sub {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.event-detail-hero-rsvp {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 0.55rem 1.85rem;
  border: 2px solid var(--white);
  border-radius: 0;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-detail-hero-rsvp:hover {
  opacity: 1;
  background: var(--white);
  color: var(--black);
}

.event-detail-hero-notice {
  margin: 0.5rem auto 0;
  max-width: 320px;
  background: var(--white);
  color: #222;
  padding: 1rem 1.25rem;
  border-radius: 2px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.15);
}

.event-detail-hero-notice-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.event-detail-hero-notice a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
}

.event-detail-hero-notice a:hover {
  text-decoration: underline;
}

.event-detail-photo img {
  width: 100%;
  display: block;
  max-height: min(56vh, 560px);
  object-fit: cover;
}

.event-detail-main {
  padding: 2rem 0 2.5rem;
  background: var(--bg);
}

.event-detail-main h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.event-detail-main h2:first-of-type {
  margin-top: 0;
}

.event-detail-main p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.event-detail-main a {
  color: var(--red);
  text-decoration: none;
}

.event-detail-main a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* 须高于 .event-detail-main a，否则字色被设为红底同色而“消失” */
.event-detail-main a.event-detail-rsvp-coral {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-detail-main a.event-detail-rsvp-coral:hover {
  filter: brightness(1.05);
  color: var(--white);
  text-decoration: none;
  opacity: 1;
}

@media (max-width: 900px) {
  .event-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- 活动详情弹窗 ----- */
body.event-modal-open {
  overflow: hidden;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.event-modal.is-open {
  display: flex;
}

.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.event-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(88vh, 640px);
  background: var(--white);
  border: 1px solid var(--black);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.event-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 0.25rem;
}

.event-modal__close:hover {
  opacity: 0.7;
}

.event-modal__dialog h2 {
  margin: 0 2rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.event-modal__lead {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.event-modal__loc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.event-modal__body {
  margin: 0;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #222;
  padding-right: 0.25rem;
}

.event-modal__body p {
  margin: 0 0 0.65rem;
}

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

.event-modal__footer {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
}

.event-modal__footer .pill {
  width: 100%;
  text-align: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}

.event-modal__footer .pill:hover {
  filter: brightness(1.08);
  opacity: 1;
}

/* ----- 单行活动列表 ----- */
.event-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.event-row .meta {
  color: rgba(255, 255, 255, 0.92);
}

.event-row .meta strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.event-row .meta small {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-register {
  border: none;
  border-radius: 0;
  padding: 0.55rem 1.5rem;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
}

.btn-register:hover {
  filter: brightness(1.08);
  opacity: 1;
}

.event-rows .event-row + .event-row {
  border-top: none;
}

.upcoming-list-section {
  padding-bottom: 2.5rem;
  padding-top: 0.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ----- Join Our Community（首页底部） ----- */
.join-community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(42vh, 400px);
}

.join-community-copy {
  position: relative;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
  gap: 1rem;
}

.join-community-copy::before {
  content: "";
  width: 40px;
  height: 60px;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.22;
}

.join-community-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.join-community-tagline {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  opacity: 0.98;
}

.join-community-cta {
  display: inline-block;
  margin-top: 0.35rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  font-family: inherit;
}

.join-community-cta:hover {
  filter: brightness(1.08);
  opacity: 1;
}

.join-community-media {
  min-height: min(42vh, 400px);
  background: #1a1a1a center / cover no-repeat;
  background-image: url("../images/community-join.png");
}

@media (max-width: 768px) {
  .join-community {
    grid-template-columns: 1fr;
  }

  .join-community-media {
    min-height: 240px;
  }
}

/* ----- Split hero (Contact) ----- */
.split-hero {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 320px;
}

.split-hero .panel {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  border-bottom: 3px solid var(--red);
  padding: clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.split-hero .panel::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 52px;
  height: 78px;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.split-hero .panel > * {
  position: relative;
  z-index: 1;
}

.split-hero .panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split-hero .cta-support {
  display: inline-block;
  width: fit-content;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  padding: 0.6rem 1.35rem;
  border: 2px solid var(--white);
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}

.split-hero .cta-support:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

.split-hero .photo {
  min-height: 280px;
  background: #ccc center / cover no-repeat;
}

@media (max-width: 768px) {
  .split-hero {
    grid-template-columns: 1fr;
  }

  .split-hero .photo {
    min-height: 220px;
  }
}

/* ----- Map + overlay ----- */
.map-section {
  position: relative;
  min-height: 560px;
}

.map-section--home {
  border-top: 1px solid var(--border);
}

#map,
[data-leaflet-map] {
  width: 100%;
  height: min(70vh, 640px);
  z-index: 0;
}

.map-overlays {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.map-overlays > * {
  pointer-events: auto;
}

.newsletter-box {
  background: rgba(10, 10, 10, 0.94);
  padding: 1.75rem 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border-radius: 0;
  border: 1px solid var(--border);
}

.newsletter-box h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.newsletter-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.newsletter-box input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #444;
  background: #111;
  color: var(--white);
  font: inherit;
  margin-bottom: 0.75rem;
}

.newsletter-box .check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.newsletter-box .check input {
  margin-top: 3px;
}

.newsletter-box button[type="submit"] {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.75rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
}

.newsletter-box button[type="submit"]:hover {
  filter: brightness(1.08);
  opacity: 1;
}

.newsletter-box .form-msg {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--coral);
}

.map-quicklinks {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.map-quicklinks-heading {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.map-section--home .map-overlays {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(1rem, 5vw, 3rem);
}

.map-quicklinks a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.map-quicklinks a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .map-quicklinks {
    display: none;
  }
}

/* ----- Site footer ----- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  padding: 1.25rem 0 1rem;
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  display: block;
  width: 26px;
  height: 38px;
  margin: 0 auto 0.5rem;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.3;
}

.site-footer .legal a {
  margin-inline: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer .legal a:hover {
  color: var(--white);
  text-decoration: underline;
  opacity: 1;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer .legal a:first-child {
  margin-left: 0;
}

/* ----- Thank you（表单提交成功页，居中对齐） ----- */
.thank-you-main {
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 4rem;
  background: linear-gradient(180deg, #050505 0%, #0d0d0d 45%, #080808 100%);
  border-bottom: 1px solid var(--border);
}

.thank-you-inner {
  width: min(34rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.thank-you-inner .thank-you-accent {
  width: 48px;
  height: 3px;
  margin: 0 auto 1.25rem;
  background: var(--red);
  border-radius: 1px;
}

.thank-you-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2.2vw, 1.08rem);
  line-height: 1.65;
}

.thank-you-inner .thank-you-note {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.62);
}

.thank-you-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.75rem;
  background: var(--red);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.thank-you-cta:hover {
  filter: brightness(1.08);
  opacity: 1;
}

.thank-you-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.thank-you-cta:active {
  transform: translateY(1px);
}

/* ----- Fixed social bar ----- */
.social-rail {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--social-bar);
  border: 1px solid var(--border);
  border-right: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem 0.5rem;
  border-radius: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35);
}

.social-rail::before {
  content: "";
  width: 18px;
  height: 28px;
  margin: 0 auto 0.15rem;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.55;
}

.social-rail a {
  color: var(--white);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 0;
}

.social-rail a:hover {
  background: var(--red);
  opacity: 1;
}

/* ----- Chat widget ----- */
.chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.chat-launcher:hover {
  background: var(--white);
  color: var(--black);
  opacity: 1;
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 72px;
  width: min(340px, calc(100% - 32px));
  max-height: min(420px, 55vh);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 119;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-panel.is-open {
  display: flex;
}

.chat-panel header {
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-bottom: 3px solid var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chat-panel header button {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.chat-panel .chat-body {
  padding: 1rem;
  font-size: 0.9rem;
  color: #ccc;
  background: #0a0a0a;
  overflow-y: auto;
}

.chat-panel textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #444;
  background: #111;
  color: var(--white);
  margin-top: 0.5rem;
}

.chat-panel .send-chat {
  margin-top: 0.5rem;
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 0.55rem;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

.chat-panel .send-chat:hover {
  filter: brightness(1.08);
  opacity: 1;
}

/* ----- Stub page ----- */
.stub {
  padding: 3rem 0 4rem;
  max-width: 640px;
}

.stub h1 {
  margin-top: 0;
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
}

.stub h1::before {
  content: "";
  width: 30px;
  height: 44px;
  background: var(--nz-fern) center / contain no-repeat;
  opacity: 0.38;
}

.stub p {
  color: var(--text-muted);
  line-height: 1.65;
}

.stub a {
  color: var(--red);
  text-decoration: none;
}

.stub a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ----- About Us（Wix 文案与版式） ----- */
.page-title-strip {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-title-strip h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title-strip .page-title-strip__sub {
  margin: 0.65rem 0 0;
  font-family: var(--font);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  max-width: 40rem;
}

.page-title-strip--left {
  text-align: left;
}

.page-title-strip--left .container {
  width: min(960px, 100% - 32px);
  margin-inline: auto;
}

/* ----- Leadership / Executive（Karate NZ 风格资讯 + 成员横排） ----- */
.leadership-doc {
  background: #ffffff;
  color: #161616;
  padding: clamp(2rem, 4vw, 3rem) 0 4rem;
}

.leadership-section {
  width: min(960px, 100% - 32px);
  margin: 0 auto;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.leadership-hub-lede {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.leadership-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: 2rem;
}

.leadership-hub-card {
  display: block;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.leadership-hub-card:hover,
.leadership-hub-card:focus-visible {
  border-color: var(--red);
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  outline: none;
}

.leadership-hub-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
}

.leadership-hub-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #333333;
}

@media (max-width: 640px) {
  .leadership-hub-grid {
    grid-template-columns: 1fr;
  }
}

.leadership-heading-accent {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--red);
  display: inline-block;
  min-width: min(100%, 320px);
}

.leadership-heading-accent--spaced {
  margin-top: 2.75rem;
}

.leadership-prose {
  margin: 0 0 1.5rem;
  line-height: 1.65;
  max-width: 46rem;
  font-size: 0.98rem;
}

.leadership-prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.leadership-profile {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.leadership-profile-photo {
  flex-shrink: 0;
  width: 200px;
  max-width: 42vw;
  aspect-ratio: 1;
  background: #eeeeee;
  overflow: hidden;
}

.leadership-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-profile-body {
  flex: 1;
  min-width: min(100%, 240px);
}

.leadership-profile-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--red);
}

.leadership-profile-role {
  margin: 0.15rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
}

.leadership-profile-email {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #222222;
}

.leadership-profile-email a {
  color: #222222;
  text-decoration: underline;
}

.leadership-profile-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.6;
  color: #222222;
  font-size: 0.95rem;
}

.leadership-profile-lines li + li {
  margin-top: 0.35rem;
}

.leadership-section--divider {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid #e0e0e0;
}

@media (max-width: 560px) {
  .leadership-profile {
    flex-direction: column;
  }

  .leadership-profile-photo {
    width: 100%;
    max-width: 220px;
  }
}

.about-intro {
  background: #f4f4f4;
  color: #161616;
  padding: clamp(2rem, 5vw, 3.25rem) 0 2rem;
}

.about-intro-inner {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
}

.about-intro-inner p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #222;
}

.about-intro-inner p:last-of-type {
  margin-bottom: 1.5rem;
}

/* 模仿 Wix「三张小图」横排：纯排版卡片，不放截图 */
.about-pillar-wrap {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.about-pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-pillar-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.35rem 1.15rem 1.5rem;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.about-pillar-accent {
  width: 2.5rem;
  height: 3px;
  background: var(--red);
  margin-bottom: 0.85rem;
}

.about-pillar-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
}

.about-pillar-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
}

@media (max-width: 720px) {
  .about-pillar-row {
    grid-template-columns: 1fr;
  }
}

.about-mission-footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-top: 1px solid var(--border);
}

.about-mission-footer p {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.65;
  font-weight: 600;
}

.about-tagline-strip {
  margin: 0;
  background: var(--black);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 1rem 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-weight: 600;
  font-style: italic;
  border-bottom: 1px solid var(--border);
}

.about-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(280px, auto) minmax(280px, auto);
}

.about-mv-cell {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
}

.about-mv-cell--light {
  background: #fafafa;
  color: #161616;
}

.about-mv-cell--light h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: 0.02em;
}

.about-mv-cell--light p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  color: #2a2a2a;
}

.about-mv-photo {
  min-height: 280px;
  background-color: #111;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .about-mv-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .about-mv-photo {
    min-height: 240px;
    order: 0;
  }
}

.about-split-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
}

.about-split-photo {
  min-height: 320px;
  background-color: #111;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-split-copy {
  background: #fafafa;
  color: #161616;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.about-split-copy p {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  text-align: right;
  color: #2a2a2a;
}

@media (max-width: 768px) {
  .about-split-row {
    grid-template-columns: 1fr;
  }

  .about-split-copy p {
    text-align: left;
  }
}

.about-support-strip {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  border-top: 1px solid var(--border);
}

.about-support-strip > p {
  margin: 0;
  max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.about-donate-btn {
  display: inline-block;
  padding: 0.55rem 2.5rem;
  background: var(--white);
  color: #1a4a9e;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 2px;
}

.about-donate-btn:hover {
  opacity: 1;
  filter: brightness(1.05);
}

/* ----- Membership 子页（Karate NZ 风格：黑标题带 + 白底分区） ----- */
.membership-process {
  background: #1a1a1b;
  color: #ffffff;
  padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 6vw, 4.25rem);
}

.membership-process-inner {
  width: min(840px, 100%);
  margin: 0 auto;
}

.membership-process h1 {
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.12;
}

.membership-process-sub {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.membership-process-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: 46rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
}

.membership-process-list li + li {
  margin-top: 0.85rem;
}

.membership-process-list a {
  color: #ffb3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.membership-process-list a:hover {
  opacity: 0.95;
}

.membership-form-zone {
  background: #e8e8ea;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.25rem 4rem;
  color: #1a1a1a;
}

.membership-form-bar {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  background: #2b2b2d;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.membership-form-jump-card {
  display: block;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.35rem 1.5rem;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-top: none;
  color: #555555;
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.membership-form-jump-card:hover {
  background: #f7f7f7;
  color: #222222;
  opacity: 1;
}

.membership-app-form {
  width: min(920px, 100%);
  margin: 2rem auto 0;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #c4c4c7;
  border-radius: 12px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.08);
}

.membership-app-form fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.membership-app-form legend {
  padding: 0;
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
}

.membership-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}

.membership-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333333;
}

.membership-form-grid label.full-row {
  grid-column: 1 / -1;
}

.membership-form-grid input,
.membership-form-grid select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0;
  font: inherit;
  font-size: 1rem;
  color: #1a1a1a;
  border: none;
  border-bottom: 1px solid #b0b0b0;
  border-radius: 0;
  background: transparent;
}

.membership-form-grid input:focus,
.membership-form-grid select:focus {
  outline: none;
  border-bottom-color: var(--red);
}

.membership-pricing-wrap {
  margin-top: 0.75rem;
  padding: 1.15rem 1.15rem 1.35rem;
  border: 1px solid #d0d0d4;
  border-radius: 8px;
  background: #f6f6f8;
  color: #1a1a1a;
}

.membership-pricing-wrap legend {
  color: #111111 !important;
}

.membership-pricing-head {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.75rem;
  align-items: end;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #cccccc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #444444;
}

.membership-price-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.35rem;
  font-size: 0.92rem;
  color: #1a1a1a;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.membership-price-row:hover {
  background: rgba(255, 255, 255, 0.65);
}

.membership-price-row > span:first-of-type {
  color: #1a1a1a;
  font-weight: 600;
}

.membership-price-row + .membership-price-row {
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #dcdce0;
}

.membership-price-row select {
  min-width: 4rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid #b8b8bd;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
  color: #1a1a1a;
  background: #ffffff;
}

.membership-price-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  color: #2a2a2e;
  font-weight: 600;
}

.membership-pricing-subtotal {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #c8c8cc;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111111;
}

.membership-add-person {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border: 2px dashed #b8b8bd;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: #333333;
  cursor: pointer;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f5 100%);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.membership-add-person:hover {
  background: #eeeef0;
  border-color: #999999;
  color: #111111;
}

.membership-payable-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid #c8c8cc;
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  color: #111111;
}

.membership-payable-bar output {
  font-variant-numeric: tabular-nums;
  color: #111111;
}

.membership-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.membership-form-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #666666;
  line-height: 1.5;
}

.membership-btn {
  padding: 0.65rem 1.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  border: none;
}

.membership-btn--ghost {
  background: #888888;
  color: #ffffff;
}

.membership-btn--ghost:hover {
  filter: brightness(1.08);
}

.membership-btn--ghost:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.membership-btn--primary {
  background: #000000;
  color: #ffffff;
}

.membership-btn--primary:hover {
  filter: brightness(1.12);
}

.membership-btn--primary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

  .membership-pricing-head {
    display: none;
  }

  .membership-price-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
  }

  .membership-price-row + .membership-price-row {
    margin-top: 0;
    padding-top: 1rem;
    border-top: none;
  }
}

.membership-shell {
  background: #ffffff;
  color: #161616;
}

.membership-shell-inner {
  width: min(960px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 0 3.5rem;
}

.membership-lede {
  margin: 0 0 1.75rem;
  max-width: 46rem;
  line-height: 1.65;
  color: #333333;
}

.membership-region {
  margin-bottom: 2.5rem;
}

.membership-region:last-of-type {
  margin-bottom: 0;
}

.membership-region h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111111;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--red);
}

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

.membership-club-grid a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--red);
  text-decoration: none;
}

.membership-club-grid a:hover {
  text-decoration: underline;
  opacity: 1;
}

.membership-steps {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
  color: #333333;
}

.membership-steps li + li {
  margin-top: 0.5rem;
}

.membership-cta {
  margin-top: 2rem;
}

.membership-cta a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
}

.membership-cta a:hover {
  opacity: 0.9;
}

/* ----- Terms & Privacy 法律页 ----- */
.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
}

.legal-doc-meta {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.legal-doc h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-doc-back {
  margin-top: 2rem;
}

.legal-doc-back a {
  color: var(--red);
  font-weight: 600;
  text-decoration: none;
}

.legal-doc-back a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* ----- NZ Wushu Team（Wix 参考：英雄六边形 + 年份侧栏 + Taolu/Sanda） ----- */
.team-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background-color: #0a1628;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url("../images/team-hero-wushu-heroes-junior.png");
  background-position: center 28%;
  background-size: cover;
  background-repeat: no-repeat;
}

.team-hero-hex-outer {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.45));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: #ffffff;
}

.team-hero-hex-inner {
  padding: 2.65rem 2.25rem 2.85rem;
  text-align: center;
  color: #111111;
}

.team-hero-hex-inner h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
}

.team-hero-hex-inner p {
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #333333;
}

.team-hero-cta {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
  background: #8b2942;
  border-radius: 2px;
  text-decoration: none;
  opacity: 1;
}

.team-hero-cta:hover {
  opacity: 0.92;
  filter: brightness(1.06);
}

.team-split-wrap {
  background: #e8e8e8;
}

.team-split-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  width: min(1180px, 100%);
  margin: 0 auto;
  min-height: min(70vh, 720px);
}

.team-years-sidebar {
  background: #000000;
  color: #ffffff;
  padding: 2rem 1.25rem 2.5rem;
  border-right: 1px solid #2a2a2a;
}

.team-years-sidebar h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-years-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-years-sidebar li + li {
  margin-top: 0.15rem;
}

.team-years-sidebar button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 2px;
}

.team-years-sidebar button:hover {
  color: #ffb4b8;
}

.team-years-sidebar button[aria-current="true"] {
  color: var(--red);
}

.team-roster-main {
  padding: 2rem clamp(1rem, 3vw, 2.75rem) 3rem;
  color: #161616;
}

.team-year-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.team-year-photo {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 2px;
  margin-bottom: 1.25rem;
  border: 1px solid #d0d0d0;
}

.team-disc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.team-disc-tabs [role="tab"] {
  padding: 0.55rem 1.35rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: #222222;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.team-disc-tabs [role="tab"].is-active,
.team-disc-tabs [role="tab"][aria-selected="true"] {
  background: #111111;
  box-shadow: inset 0 0 0 2px var(--red);
}

.team-disc-tabs [role="tab"]:hover {
  opacity: 0.92;
}

.team-disc-panel {
  margin-top: 1.35rem;
}

.team-disc-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
}

.team-disc-panel > p:first-of-type {
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: #333333;
}

.team-roster-block {
  margin-bottom: 1.5rem;
}

.team-roster-block h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.team-roster-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #2a2a2a;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .team-split-layout {
    grid-template-columns: 1fr;
  }

  .team-years-sidebar {
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
  }

  .team-years-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
  }

  .team-years-sidebar li + li {
    margin-top: 0;
  }

  .team-years-sidebar button {
    width: auto;
    padding: 0.35rem 0.15rem;
  }
}

/* ----- Donate（参考双栏捐赠布局，配色沿用站点黑 / 白 / 红） ----- */
.donate-frame-shell {
  background: linear-gradient(180deg, #dedede 0%, #e8e8e8 35%, #ececec 100%);
  color: #161616;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 12px);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.donate-frame {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55) inset,
    0 22px 56px rgba(0, 0, 0, 0.14),
    0 4px 14px rgba(0, 0, 0, 0.06);
  background: linear-gradient(165deg, #fdfdfd 0%, #f6f6f6 100%);
}

.donate-frame-heading {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #111111;
}

.donate-frame-lede {
  margin: 0 0 1.35rem;
  max-width: 44rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #444444;
}

.donate-split-wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.donate-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid #dcdcdc;
}

.donate-aside {
  background: linear-gradient(165deg, #0a0a0a 0%, #151515 55%, #0d0d0d 100%);
  color: #ffffff;
  border-left: 4px solid var(--red);
}

.donate-aside-inner {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-height: 100%;
}

.donate-aside-card {
  margin: 0;
}

.donate-aside-card + .donate-aside-card {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.donate-aside-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.donate-aside-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.donate-aside-card p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.donate-aside-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 2px solid rgba(237, 28, 36, 0.45);
  padding-bottom: 0.1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.donate-aside-link:hover,
.donate-aside-link:focus-visible {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
  opacity: 1;
  outline: none;
}

.donate-aside-card--accent p {
  margin-bottom: 0;
}

.donate-form-shell {
  background: #fafafa;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-left: 1px solid #e8e8e8;
}

.donate-form-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
}

.donate-form-lede {
  margin: 0 0 1.5rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #3a3a3a;
  max-width: 36rem;
}

.donate-fieldset {
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.donate-fieldset legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555555;
}

.donate-currency {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: #777777;
}

.donate-seg {
  display: flex;
  gap: 0.5rem;
}

.donate-seg-btn {
  flex: 1;
  padding: 0.65rem 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #222222;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.donate-seg-btn:hover {
  border-color: #999999;
}

.donate-seg-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.donate-seg-btn.is-selected {
  border-color: var(--red);
  background: rgba(237, 28, 36, 0.07);
  box-shadow: inset 0 0 0 1px rgba(237, 28, 36, 0.25);
}

.donate-amount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.donate-amt-btn {
  padding: 0.7rem 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: #222222;
  background: #ffffff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.donate-amt-btn:hover {
  border-color: #999999;
}

.donate-amt-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.donate-amt-btn.is-selected {
  border-color: var(--red);
  background: rgba(237, 28, 36, 0.07);
}

.donate-amt-btn--wide {
  grid-column: 1 / -1;
}

.donate-custom-wrap {
  margin-top: 0.75rem;
}

.donate-custom-wrap[hidden] {
  display: none !important;
}

.donate-custom-wrap label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #444444;
}

.donate-custom-wrap input {
  width: 100%;
  max-width: 12rem;
  padding: 0.55rem 0.65rem;
  font-size: 1rem;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #ffffff;
}

.donate-custom-wrap input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.donate-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--red);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.donate-submit:hover {
  background: #d41920;
}

.donate-submit:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.donate-submit:active {
  transform: translateY(1px);
}

.donate-demo-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #666666;
}

@media (max-width: 820px) {
  .donate-frame-shell {
    padding-inline: 0;
  }

  .donate-frame {
    width: calc(100% - 24px);
    padding: 1rem;
    border-radius: 8px;
  }

  .donate-split {
    grid-template-columns: 1fr;
  }

  .donate-form-shell {
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }

  .donate-aside {
    border-left: none;
    border-top: 4px solid var(--red);
  }
}

