/* =========================================================
   Vespa Club Malaysia — main stylesheet
   Clean, editorial, photo-led layout (inspired by vespa.com)
   Brand colours taken from the VCM badge.
   ========================================================= */

:root {
  --ink: #111214;
  --ink-2: #3b3f45;
  --muted: #6b7078;
  --line: #e6e7ea;
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --navy: #14215c;
  --mint: #36d3a4;
  --mint-dark: #1fa880;
  --red: #d71920;
  --yellow: #f5b800;

  /* Apple devices use their built-in SF Pro (as on apple.com); other
     devices get Inter, which is drawn very close to SF Pro. */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint-dark); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.display { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; text-transform: uppercase; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--mint); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn--mint:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 2px solid currentColor; padding-bottom: 4px;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; }
.brand-text { font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1; font-size: 1rem; }
.brand-text small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .22em; color: var(--muted); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: .75rem; color: #fff; }
.nav .btn::after { display: none; }
.nav .btn:hover { color: var(--ink); }

/* Transparent header over hero */
.site-header.is-over { background: transparent; border-color: transparent; color: #fff; backdrop-filter: none; }
.site-header.is-over .brand-text small { color: rgba(255,255,255,.75); }
.site-header.is-over .nav .btn { background: #fff; border-color: #fff; color: var(--ink); }
.site-header.is-over .nav .btn:hover { background: transparent; color: #fff; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit;
  align-items: center; justify-content: center; margin-right: -10px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .3s var(--ease), background .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1120px) {
  /* backdrop-filter would turn the header into the containing block of the
     fixed menu panel and squash it to the header's height, so drop it here. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; color: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 16px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
  }
  .nav a { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 28px; width: 100%; min-height: 56px; font-size: .9rem; border-bottom: 2px solid var(--ink); }
  .menu-open .nav { transform: none; }
  .menu-open .site-header { background: #fff; color: var(--ink); border-color: var(--line); }
  .menu-open .site-header .brand-text small { color: var(--muted); }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.82) 100%);
}
@media (max-width: 700px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.9) 100%); }
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 9vh, 110px); width: 100%; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { margin: 18px 0 22px; max-width: 14ch; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 52ch; color: rgba(255,255,255,.88); margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 36px; writing-mode: vertical-rl;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 60px; background: rgba(255,255,255,.6); animation: scrollLine 2s infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 68svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.page-hero .hero__content { padding-bottom: clamp(40px, 7vh, 80px); }
.page-hero h1 { margin-top: 16px; }
.page-hero p { margin: 18px 0 0; }
.page-hero--plain { min-height: auto; background: var(--paper-2); color: var(--ink); }
.page-hero--plain .hero__content { padding-top: calc(var(--header-h) + 72px); padding-bottom: 72px; }
.page-hero--plain .eyebrow { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--grey { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark .eyebrow, .section--dark .muted { color: rgba(255,255,255,.65); }
.section--dark .lead { color: rgba(255,255,255,.8); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 14px; }

/* Stats bar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: .85rem; color: var(--muted); }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Split feature (image + text) */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.03); }
.split__media figcaption {
  position: absolute; left: 0; bottom: 0; background: #fff; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px;
}
.split__text h2 { margin: 16px 0 24px; }
.split__text p { color: var(--ink-2); }
.split__text .link-arrow { margin-top: 18px; }
.section--dark .split__text p { color: rgba(255,255,255,.8); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
}

/* Mission / Vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.mv__item { background: var(--ink); padding: clamp(32px, 5vw, 64px); }
.mv__item .num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--mint); font-weight: 700; }
.mv__item h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); text-transform: uppercase; font-weight: 800; margin: 16px 0 20px; }
.mv__item p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.05rem; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.countdown { display: flex; gap: clamp(14px, 3vw, 40px); margin: 26px 0 30px; }
.countdown div { min-width: 64px; }
.countdown strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
.section--dark .countdown span { color: rgba(255,255,255,.6); }

.featured-event { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.featured-event__poster { box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.featured-event__poster img { width: 100%; }
.featured-event h2 { margin: 16px 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 6px; padding: 0; list-style: none; }
.meta li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.meta svg { flex: none; color: var(--mint); }
@media (max-width: 820px) { .featured-event { grid-template-columns: 1fr; } .featured-event__poster { max-width: 420px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { display: flex; flex-direction: column; background: #fff; }
.card__media { overflow: hidden; background: var(--paper-2); position: relative; }
.card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute; top: 14px; left: 14px; background: var(--mint); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px;
}
.card__tag--past { background: #fff; }
.card__tag--postponed { background: var(--red); color: #fff; }
.card:has(.card__tag--postponed) .card__date { color: var(--red); }
.card:has(.card__tag--postponed) .card__media img { filter: grayscale(.6); }
.card__body { padding: 22px 0 0; }
.card__date { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-dark); }
.card__body h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.card__contact:hover { border-color: var(--ink); }
.card__contact svg { color: var(--mint-dark); }
.meta a { border-bottom: 1px solid currentColor; }

.calendar-embed { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 520px; border: 1px solid var(--line); background: #fff; }
.calendar-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
}
.g-a { grid-column: span 7; aspect-ratio: 4 / 3; }
.g-b { grid-column: span 5; }
.g-c { grid-column: span 4; aspect-ratio: 1; }
.g-d { grid-column: span 4; aspect-ratio: 1; }
.g-e { grid-column: span 4; aspect-ratio: 1; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-a { grid-column: span 2; }
  .g-b { grid-column: span 2; aspect-ratio: 4 / 3; }
  .g-c, .g-d { grid-column: span 1; }
  .g-e { grid-column: span 2; aspect-ratio: 4 / 3; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline .year { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Team ---------- */
.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.leader { display: grid; grid-template-columns: 160px 1fr; gap: 28px; align-items: start; padding: 32px; background: var(--paper-2); }
.leader__photo { width: 160px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--navy); }
.leader__initials {
  width: 160px; aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--navy); color: var(--mint);
  font-family: var(--font-display); font-weight: 800; font-size: 3rem;
}
.leader .role { font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-dark); }
.leader h3 { font-size: 1.5rem; margin: 8px 0 14px; }
.leader p { margin: 0; color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .leaders { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .leader { grid-template-columns: 1fr; padding: 24px; } .leader__photo, .leader__initials { width: 140px; } }

.committee { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.member { background: #fff; border: 1px solid var(--line); padding: 24px 22px; display: flex; gap: 16px; align-items: center; }
.member .avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  border: 2px solid var(--mint);
}
.member--tbc .avatar { border-style: dashed; border-color: #c9ccd1; color: var(--muted); }
.member strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.member div > span { display: block; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.member--tbc strong { color: var(--muted); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { margin-top: 16px; }
.cta-band .eyebrow { color: rgba(255,255,255,.8); }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 26px; font-size: 1.08rem; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Shop ---------- */
.coming {
  min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 60px) var(--gutter) 80px;
  background: radial-gradient(1200px 600px at 50% 120%, rgba(54,211,164,.22), transparent 60%), var(--paper-2);
}
.coming img { width: 140px; margin: 0 auto 30px; }
.coming h1 { margin: 18px 0 18px; }
.coming p { margin: 0 auto 34px; }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 48px auto 0; max-width: 760px; }
.product { aspect-ratio: 1; background: #fff; border: 1px dashed #cfd2d6; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .products { grid-template-columns: 1fr 1fr; } .product:last-child { display: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--navy); }
.contact-list small { display: block; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-list a:hover { border-color: var(--ink); }
.map { width: 100%; height: 100%; min-height: 420px; border: 0; background: var(--paper-2); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 80px 0 32px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { width: 72px; margin-bottom: 18px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-brand p { margin: 10px 0 0; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--mint); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; transition: background .25s, border-color .25s, color .25s; }
.socials a:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .82rem; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Member portal (ahli/)
   ========================================================= */
.portal { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(64px, 9vw, 120px); background: var(--paper-2); min-height: 100svh; }
.portal .wrap { max-width: 1040px; }
.portal-head { margin-bottom: 32px; }
.portal-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; margin-top: 14px; }
.portal-head p { margin: 12px 0 0; }
.panel { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 40px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: -.01em; }
.panel > p { color: var(--ink-2); margin: 0 0 20px; }
.panel--narrow { max-width: 520px; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.portal-grid > .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #cdd0d5; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--mint-dark); box-shadow: 0 0 0 3px rgba(54, 211, 164, .25); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.req { color: var(--red); }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .72rem; }
.text-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: .92rem; }
.text-btn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

.notice { padding: 14px 16px; border-radius: 10px; font-size: .95rem; border: 1px solid; }
.notice--info { background: #eef7ff; border-color: #cfe4fb; color: #18406b; }
.notice--success { background: #e9faf3; border-color: #b8ecd8; color: #0f5c42; }
.notice--warn { background: #fff7e0; border-color: #f6e0a3; color: #6b4e00; }
.notice--error { background: #fdecec; border-color: #f6c6c6; color: #8a1116; }

.member-card {
  position: relative; color: #fff; border-radius: 18px; padding: 26px 26px 22px; gap: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(54,211,164,.45), transparent 55%), linear-gradient(135deg, #14215c, #0b1238);
  box-shadow: 0 24px 48px -24px rgba(20,33,92,.6); min-height: 220px; max-width: 100%; display: flex; flex-direction: column; justify-content: space-between;
}
.member-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.member-card__top img { width: 54px; height: 54px; }
.member-card__logos { display: flex; gap: 8px; flex-shrink: 0; }
.member-card__logos { align-items: center; }
.member-card__logos img { width: 50px; height: 50px; object-fit: contain; }
.member-card__logos .member-card__vwc-logo { width: auto; height: 46px; }
@media (max-width: 380px) { .member-card__logos img { width: 42px; height: 42px; } .member-card__logos .member-card__vwc-logo { width: auto; height: 38px; } }
.member-card__club { font-family: var(--font-display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.member-card__club small { display: block; font-weight: 600; opacity: .7; letter-spacing: .18em; }
.member-card__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 3.4vw, 1.5rem); line-height: 1.2; overflow-wrap: anywhere; }
.member-card__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 8px; }
.member-card__meta small { display: block; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.member-card__meta strong { font-variant-numeric: tabular-nums; font-size: 1rem; white-space: nowrap; }
.member-card__vwc { margin-top: 10px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--active { background: #dcf7ec; color: #0c7a55; }
.pill--expired { background: #fde2e2; color: #b4141b; }
.pill--new, .pill--pending { background: #eceef1; color: #4a4f57; }
.member-card .pill--active { background: rgba(54,211,164,.22); color: #8ff0cf; }
.member-card .pill--expired { background: rgba(215,25,32,.25); color: #ffb3b6; }
.member-card .pill--new { background: rgba(255,255,255,.15); color: #e6e8ee; }

.renew-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.kv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kv li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .kv li { grid-template-columns: 1fr; gap: 2px; } }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.history li:last-child { border-bottom: 0; }
.history .muted { font-size: .82rem; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--mint-dark); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { text-align: center; }

/* Admin */
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.admin-stats div { background: #fff; border: 1px solid var(--line); padding: 18px; }
.admin-stats strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.admin-stats span { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); }
@media (max-width: 700px) { .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.toolbar .field { flex: 1 1 220px; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 980px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper-2); position: sticky; top: 0; }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
dialog.modal { border: 0; padding: 0; width: min(520px, calc(100vw - 32px)); border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); }
dialog.modal::backdrop { background: rgba(17,18,20,.5); }
dialog.modal .panel { border: 0; }

/* Fee options (new membership / renewal) */
.fee-options { display: grid; gap: 12px; margin-top: 8px; }
.fee-option { border: 2px solid var(--mint); border-radius: 14px; padding: 18px; display: grid; gap: 10px; background: #fff; }
.fee-option__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fee-option__head strong { font-family: var(--font-display); font-size: 1.05rem; }
.fee-option__price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1; }
.fee-option__note { margin: 0; font-size: .88rem; color: var(--ink-2); }
.fee-option .btn { justify-self: start; }
.fee-option.is-off { border: 1px dashed #cfd2d6; background: var(--paper-2); }
.fee-option.is-off .fee-option__head strong, .fee-option.is-off .fee-option__price { color: var(--muted); }
.fee-option.is-off .fee-option__note::before { content: "Not for you · "; font-weight: 600; }
.fee-option.is-off .btn, .fee-option .btn[disabled] { background: #dfe2e6; border-color: #dfe2e6; color: #7a8089; opacity: 1; }

/* Profile form sections */
.form-section { border: 0; border-top: 1px solid var(--line); margin: 6px 0 0; padding: 22px 0 0; display: grid; gap: 18px; min-width: 0; }
.form-section legend { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mint-dark); padding: 0 10px 0 0; }
.field textarea { resize: vertical; min-height: 80px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--paper-2); border-radius: 10px; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--mint-dark); }
.check[aria-invalid="true"] { outline: 2px solid var(--red); }
.claimed { margin-top: 4px; font-size: .75rem; font-weight: 600; color: #a05a00; white-space: nowrap; }

/* =========================================================
   AJK dashboard (ahli/dashboard.html)
   ========================================================= */
#adm-main { --c-renew: #2a78d6; --c-new: #eb6834; --c-past: #b9bcc2; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.dash-kpis > * { background: #fff; border: 1px solid var(--line); padding: 18px; color: var(--ink); text-decoration: none; }
.dash-kpis a:hover, .dash-kpis a:focus-visible { border-color: var(--ink); outline: none; }
.dash-kpis strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-kpis span { display: block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.dash-kpis small { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.dash-grid > .panel + .panel { margin-top: 0; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .8rem; color: var(--ink-2); margin: 0 0 14px; }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.dash-note { font-size: .8rem; margin: 12px 0 0; }
.cols { display: flex; align-items: stretch; gap: 4px; height: 190px; border-bottom: 1px solid #cdd0d5; }
.cols--grid { background: linear-gradient(to bottom, #eceef1 1px, transparent 1px) 0 0 / 100% 50%; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px;
  background: none; border: 0; padding: 0; font: inherit; color: inherit; border-radius: 4px 4px 0 0; }
button.col { cursor: pointer; }
.col:hover, .col:focus-visible { background: rgba(17, 18, 20, .05); outline: none; }
.col:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.seg { display: block; width: min(100%, 34px); min-height: 2px; flex: none; }
.seg--top { border-radius: 4px 4px 0 0; }
.col-val { font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.col-labels { display: flex; gap: 4px; margin-top: 6px; }
.col-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .72rem; color: var(--muted); overflow: hidden; }
.axis-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.axis { display: flex; flex-direction: column; justify-content: space-between; height: 190px; font-size: .7rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.axis span { line-height: 1; transform: translateY(-50%); }
.axis span:last-child { transform: translateY(0); }
.hbars { display: grid; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; font-size: .85rem; padding: 3px 4px; border-radius: 4px; }
.hbar:hover, .hbar:focus-visible { background: rgba(17, 18, 20, .05); outline: none; }
.hbar-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 12px; }
.hbar-fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; }
.hbar-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-table { margin-top: 14px; font-size: .85rem; }
.dash-table summary { cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dash-table table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.dash-table th, .dash-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.dash-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1.4;
  padding: 8px 10px; border-radius: 8px; max-width: 240px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .35); }
.table--compact { min-width: 720px; }
button.hbar { width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.field textarea { min-height: 0; resize: vertical; }
#rec-dialog .field { align-content: start; }
#rec-today { white-space: nowrap; flex: none; }
/* View-only AJK: hide change buttons (the database refuses changes anyway) */
.is-viewer [data-edit], .is-viewer [data-pay], .is-viewer #pre-add, .is-viewer [data-pre-edit],
.is-viewer [data-pre-del], .is-viewer [data-rec], .is-viewer #arch-add, .is-viewer #vwc-panel { display: none !important; }

/* =========================================================
   Event tickets (acara/)
   ========================================================= */
.event-hero { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: 28px; }
@media (max-width: 860px) { .event-hero { grid-template-columns: 1fr; } }
.event-poster { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.6); }
.event-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; text-transform: uppercase; line-height: 1.02; margin: 14px 0 12px; }
.event-meta { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 18px; }
.event-price { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.event-price span { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.event-price small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.event-points { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.event-org { font-size: .88rem; margin: 0 0 20px; }
.event-buy { max-width: 760px; margin: 0 auto 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.size-field { border: 0; padding: 0; margin: 0; }
.size-field legend { font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.size-chip { position: relative; }
.size-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.size-chip span { display: grid; place-items: center; min-width: 58px; min-height: 48px; padding: 6px 12px; border: 1px solid #cdd0d5; border-radius: 10px; font-weight: 700; background: #fff; line-height: 1.1; }
.size-chip span small { font-size: .62rem; font-weight: 600; color: var(--red); }
.size-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(54, 211, 164, .35); }
.size-chip.is-off span { color: var(--muted); background: var(--paper-2); text-decoration: line-through; }
.size-chip.is-off input { cursor: not-allowed; }
.event-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.event-total strong { font-family: var(--font-display); font-size: 1.6rem; }
.event-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.event-gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); padding: 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.event-gallery img { width: 100%; height: auto; display: block; }
.event-gallery figcaption { font-size: .85rem; color: var(--muted); padding: 8px 2px 2px; }

.ticket-wrap { max-width: 460px; margin: 0 auto; }
.ticket { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(0,0,0,.45); border: 1px solid var(--line); }
.ticket__head { background: linear-gradient(135deg, #14215c, #0b1238); color: #fff; padding: 24px 24px 20px; }
.ticket__head .eyebrow { color: var(--mint); }
.ticket__head h1 { font-size: 1.5rem; margin: 10px 0 6px; line-height: 1.15; }
.ticket__head p { margin: 0; opacity: .8; font-size: .9rem; }
.ticket.is-pending .ticket__head { background: linear-gradient(135deg, #4a4f57, #2b2e33); }
.ticket__qr { display: grid; place-items: center; padding: 22px 22px 6px; }
.ticket__qr svg { width: min(260px, 80%); height: auto; }
.ticket__hint { text-align: center; font-size: .88rem; margin: 6px 22px 16px; }
.ticket__rows { margin: 0; padding: 0 22px 8px; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.ticket__rows dt { color: var(--muted); }
.ticket__rows dd { margin: 0; font-weight: 600; text-align: right; }
.ticket__org { font-size: .8rem; padding: 6px 22px 20px; margin: 0; }

.ct-tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.ct-tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-weight: 600; }
.ct-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct-camera { position: relative; margin-bottom: 14px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 60vh; }
.ct-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-frame { position: absolute; inset: 18%; border: 3px solid var(--mint); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); }
.ct-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 4px 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.ct-card { max-width: 440px; }
.ct-badge { font-weight: 800; padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.ct-card.is-ok .ct-badge { background: #dcf7ec; color: #0c7a55; }
.ct-card.is-done .ct-badge { background: #e7eefc; color: #1d3f8f; }
.ct-card.is-bad .ct-badge { background: #fde2e2; color: #b4141b; }
.ct-no { font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; margin: 0; color: var(--muted); }
.ct-card h2 { margin: 4px 0 4px; }
.ct-size { font-size: 1.4rem; }
.ct-card .ticket__rows { padding: 8px 0 14px; }
.interest-list { display: grid; gap: 8px; margin-bottom: 6px; }
/* tick boxes inside a .field: plain text, box beside the words (not the uppercase field label style) */
.field .interest-list label.check { font-family: var(--font-body); font-weight: 500; font-size: .95rem; letter-spacing: normal; text-transform: none;
  color: var(--ink); align-items: center; padding: 14px 16px; }
.field .interest-list label.check input { margin: 0; min-height: 0; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; box-shadow: none; }

/* WhatsApp help box (member portal, event pages) */
.help-wa { display: flex; gap: 14px; align-items: flex-start; max-width: 760px; margin: 24px auto; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid #25d366; border-radius: 12px; }
.help-wa__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; }
.help-wa strong { display: block; }
.help-wa div > span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.help-wa a { display: inline-block; margin-top: 8px; font-weight: 700; color: #128c4a; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Featured: events in the same week, equal cards side by side */
.featured-pair__head { text-align: center; margin-bottom: 34px; }
.featured-pair__head .eyebrow { justify-content: center; }
.featured-pair__head h2 { margin: 14px 0 0; }
.featured-pair__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.featured-pair__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.featured-pair__poster { display: block; aspect-ratio: 3 / 4; background: #111214; }
.featured-pair__poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.featured-pair__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.featured-pair__body h3 { margin: 0 0 12px; }
.featured-pair__body .meta { margin-bottom: 16px; }
.featured-pair__summary { color: var(--ink-2); margin: 0 0 20px; flex: 1; }
.featured-pair__body .btn { align-self: flex-start; }
.featured-pair__all { text-align: center; margin: 30px 0 0; }
.countdown--small { gap: 10px; margin: 0 0 18px; }
.countdown--small strong { font-size: 1.6rem; }
.countdown--small span { font-size: .62rem; }

/* Event member price box (event pages) */
.member-box { display: grid; gap: 8px; justify-items: start; padding: 16px 18px; margin-bottom: 18px; border: 1px solid #b8ecd8; border-left: 4px solid var(--mint); border-radius: 12px; background: #f1fbf7; }
.member-box > span { color: var(--muted); font-size: .9rem; }
.member-box .muted { font-size: .88rem; }
.field .member-box label.check, .member-box label.check { margin: 0; padding: 0; background: none; font-family: var(--font-body); font-weight: 500; font-size: .98rem; letter-spacing: normal; text-transform: none; }
.member-box label.check input { width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#ev-name[readonly] { background: #f3f4f2; color: var(--ink-2); }

/* "20% OFF" member badge on event pages */
.event-price { flex-wrap: wrap; }
.save-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--mint); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); }
.save-badge b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .02em; color: #fff; }
.save-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--mint); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.member-box > .save-chip { justify-self: start; }

/* Vespa Day: pack poster and size chart side by side */
.vd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; margin: 28px auto 0; align-items: start; }
@media (max-width: 960px) { .vd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vd-gallery { grid-template-columns: 1fr; } }
/* Vespa Day itinerary (text version of the itinerary poster) */
.vd-itinerary { margin: 18px 0 6px; border: 1px solid var(--line); background: var(--paper); }
.vd-itinerary summary { cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.vd-itinerary summary span { font-weight: 500; color: var(--muted); font-size: .88rem; }
.vd-itinerary ol { list-style: none; margin: 0; padding: 4px 16px 14px; display: grid; gap: 6px; font-size: .92rem; }
.vd-itinerary li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; }
.vd-itinerary time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.vd-itinerary li.draw { color: #8a6400; font-weight: 600; }

/* counter: size change (super admin) */
.ct-size-changed { margin-top: 4px; font-size: .8rem; font-weight: 600; color: #8a5a00; }
.ct-resize { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e3e3e3); }
.ct-resize h3 { margin: 0 0 4px; font-size: 1rem; }
.ct-resize .form-actions { margin-top: 12px; }

/* event pages: no postage notice */
.no-post { margin: 14px 0 4px; font-size: .92rem; line-height: 1.5; }
.no-post strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.no-post span { opacity: .85; }

/* member portal: benefits before login */
.benefits { margin-top: 48px; }
.benefits h2 { margin: 10px 0 0; }
.benefits__sub { margin: 4px 0 20px; }
.benefits__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.benefits__grid li { background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.benefits__grid b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.benefits__grid span { display: block; margin-top: 6px; color: var(--muted); font-size: .84rem; }
.benefits__grid .benefits__soon { border-style: dashed; background: transparent; }
.benefits__fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.benefits__fees > div { background: var(--navy); color: #fff; padding: 18px 20px; }
.benefits__fees small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.benefits__fees strong { display: block; font-size: 1.8rem; font-weight: 800; margin: 4px 0 6px; }
.benefits__fees span { font-size: .88rem; opacity: .9; line-height: 1.5; }
.benefits__foot { margin-top: 16px; font-size: .88rem; }

/* about: constitution */
.constitution { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.constitution > * { min-width: 0; }
.doc-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-links a { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.doc-links a:hover, .doc-links a:focus-visible { border-color: var(--ink); transform: translateY(-2px); }
.doc-links__tag { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 56px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.doc-links b { display: block; font-size: 1.02rem; }
.doc-links small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
@media (max-width: 760px) { .constitution { grid-template-columns: 1fr; gap: 20px; } }
