/* ════════════════════════════════════════════════════════════════════
   DAM — Dental Association of Malta  |  Global Stylesheet
   ════════════════════════════════════════════════════════════════════ */

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

:root {
  --cream:         #FAF7F2;
  --warm-white:    #FFFDFB;
  --sand:          #EDE7DC;
  --crimson:       #8B1A2E;
  --crimson-mid:   #A52035;
  --crimson-soft:  #F5E8EB;
  --forest:        #2D6A3F;
  --forest-soft:   #E8F2EC;
  --navy:          #1A2B3C;
  --navy-mid:      #2E4560;
  --gold:          #C49A5A;
  --gold-light:    #D9B87A;
  --text:          #2A2A2A;
  --text-muted:    #6B6B6B;
  --border:        rgba(139, 26, 46, 0.15);
  --radius:        4px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }

/* ════════════════
   NAV
   ════════════════ */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 74px;
  background: rgba(255,253,251,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav#main-nav.scrolled { box-shadow: 0 4px 24px rgba(26,43,60,0.08); }

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.nav-logo img { height: 48px; width: 48px; object-fit: contain; }
.nav-logo-text strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.3px; line-height: 1.2;
}
.nav-logo-text span {
  font-size: 10px; color: var(--text-muted);
  letter-spacing: 2px; text-transform: uppercase;
}

.nav-links {
  display: flex; align-items: center; gap: 34px;
  list-style: none;
}
.nav-links a,
.nav-links button { white-space: nowrap; }
.nav-links a {
  text-decoration: none;
  font-size: 13px; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.2px;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--crimson); }

.nav-cta {
  background: var(--crimson) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--crimson-mid) !important; }

/* ════════════════
   HERO
   ════════════════ */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 74px; overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 56px 80px 72px;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s 0.15s forwards;
}
.hero-eyebrow-line { width: 36px; height: 1px; background: var(--crimson); }
.hero-eyebrow span {
  font-size: 11px; font-weight: 500;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--crimson);
}
h1.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 500; line-height: 1.08;
  color: var(--navy); margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
}
h1.hero-title em { font-style: normal; color: var(--crimson); }
.hero-desc {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--text-muted); max-width: 430px; margin-bottom: 44px;
  opacity: 0; animation: fadeUp 0.7s 0.45s forwards;
}
.hero-actions {
  display: flex; align-items: center; gap: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.6s forwards;
}
.hero-stats {
  display: flex; gap: 44px;
  margin-top: 60px; padding-top: 36px;
  border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp 0.7s 0.75s forwards;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 600;
  color: var(--navy); line-height: 1;
}
.stat-number sup { font-size: 22px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.3px; line-height: 1.4; }

/* Hero right */
.hero-right {
  background: var(--sand);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-right-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 65% 35%, rgba(139,26,46,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 25% 75%, rgba(45,106,63,0.07) 0%, transparent 50%),
    linear-gradient(145deg, #EDE7DC 0%, #E5DDD0 60%, #D8CFBF 100%);
}
.hero-visual-wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.hero-logo-bg {
  position: absolute; width: 420px; height: 420px;
  opacity: 0.07; pointer-events: none;
}
.hero-logo-bg img { width: 100%; height: 100%; object-fit: contain; }
.hero-main-card {
  background: var(--warm-white);
  border-radius: 14px; padding: 36px 32px; width: 290px;
  box-shadow: 0 24px 64px rgba(26,43,60,0.13), 0 4px 16px rgba(26,43,60,0.06);
  position: relative; z-index: 3;
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--crimson-soft); color: var(--crimson);
  font-size: 10px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 5px 10px;
  border-radius: 20px; margin-bottom: 20px;
}
.card-badge-dot { display: none; }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-weight: 600; color: var(--navy);
  margin-bottom: 8px; line-height: 1.25;
}
.card-body { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.card-footer {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--sand);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--crimson);
}
.float-pill {
  position: absolute; z-index: 4;
  background: var(--warm-white);
  border-radius: 50px; padding: 12px 18px;
  box-shadow: 0 8px 28px rgba(26,43,60,0.1);
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  animation: floatCard 5s ease-in-out infinite;
}
.float-pill-1 { top: 14%; right: 7%; animation-delay: 0.8s; }
.float-pill-2 { bottom: 16%; left: 5%; animation-delay: 1.4s; }
.pill-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pill-icon.green { background: var(--forest-soft); }
.pill-icon.red   { background: var(--crimson-soft); }
.pill-label { font-weight: 500; color: var(--navy); font-size: 13px; }
.pill-sub   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* Home hero live panel */
.hero-panel {
  position: relative; z-index: 3;
  width: min(420px, calc(100% - 64px));
  display: flex; flex-direction: column; gap: 16px;
}
.hp-card {
  background: var(--warm-white);
  border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 16px 44px rgba(26,43,60,0.11), 0 3px 12px rgba(26,43,60,0.05);
  text-decoration: none; color: inherit; display: block;
  transition: transform .25s, box-shadow .25s;
}
.hp-card:hover { transform: translateY(-3px); box-shadow: 0 22px 54px rgba(26,43,60,0.15), 0 4px 14px rgba(26,43,60,0.06); }
.hp-label {
  font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 12px;
}
.hp-event { display: flex; gap: 18px; align-items: center; }
.hp-event-main { min-width: 0; }
.hp-event--public { display: block; }
.hp-date {
  flex: 0 0 62px; text-align: center; background: var(--crimson); color: #fff;
  border-radius: 10px; padding: 10px 0;
}
.hp-date .day { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; line-height: 1; }
.hp-date .mon { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; opacity: .85; }
.hp-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.hp-meta { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.hp-news-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.3; }
.hp-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hp-link {
  background: var(--warm-white); border-radius: 12px; padding: 16px 10px; text-align: center;
  text-decoration: none; font-size: 12px; font-weight: 500; color: var(--navy);
  box-shadow: 0 8px 24px rgba(26,43,60,0.08); transition: transform .25s, color .25s;
}
.hp-link:hover { transform: translateY(-3px); color: var(--crimson); }
.hp-link svg { display: block; margin: 0 auto 8px; }
.hp-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 11px; color: var(--text-muted); letter-spacing: .5px; }
@media (max-width: 1024px) { .hero-panel { padding: 40px 0; } }
@media (max-width: 640px) { .hero-panel { width: calc(100% - 40px); } }

/* ════════════════
   MARQUEE
   ════════════════ */
.marquee-strip { background: var(--navy); overflow: hidden; padding: 13px 0; }
.marquee-inner { display: flex; gap: 56px; width: max-content; animation: marquee 22s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════
   SHARED SECTIONS
   ════════════════ */
section { padding: 96px 72px; }
.section-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.ey-line  { width: 28px; height: 1px; background: var(--crimson); }
.ey-text  { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--crimson); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3vw, 46px); font-weight: 500; line-height: 1.13; color: var(--navy);
}
.section-title em { font-style: normal; color: var(--crimson); }

/* ════════════════
   ABOUT BAND
   ════════════════ */
.about-band {
  background: var(--crimson);
  padding: 56px 72px;
  display: flex; align-items: center; gap: 80px;
}
.about-logo { width: 90px; height: 90px; flex-shrink: 0; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.2)); }
.about-logo img { width: 100%; height: 100%; object-fit: contain; }
.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.2vw, 30px); font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.92); line-height: 1.5; flex: 1;
}
.about-quote strong { font-style: normal; font-weight: 600; color: #fff; }
.btn-outline-white {
  display: inline-block; padding: 13px 28px;
  border: 1.5px solid rgba(255,255,255,0.5); border-radius: var(--radius);
  color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  transition: all 0.25s; white-space: nowrap; flex-shrink: 0;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ════════════════
   PILLARS
   ════════════════ */
.pillars { background: var(--cream); }
.pillars-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.pillars-desc { max-width: 320px; font-size: 14px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.pillar {
  background: var(--warm-white); padding: 48px 38px;
  position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.pillar::after { content: ''; position: absolute; bottom: 0; left: 0; height: 3px; width: 0; background: var(--crimson); transition: width 0.4s; }
.pillar:hover::after { width: 100%; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(26,43,60,0.09); }
.pillar-num { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-weight: 600; color: var(--crimson); letter-spacing: 1.5px; margin-bottom: 22px; }
.pillar-title { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 500; color: var(--navy); margin-bottom: 14px; line-height: 1.2; }
.pillar-body { font-size: 14px; color: var(--text-muted); line-height: 1.75; font-weight: 300; }

/* ════════════════
   EVENTS
   ════════════════ */
.events { background: var(--warm-white); }
.events-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 52px; }
.events > .events-header,
.events > .event-list { max-width: 1100px; margin-left: auto; margin-right: auto; }
.link-arrow {
  font-size: 13px; color: var(--navy); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--border); padding-bottom: 2px; transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--navy); }
.event-list { display: flex; flex-direction: column; gap: 0; }
.event-row {
  display: grid; grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid rgba(26,43,60,0.07); transition: background 0.2s;
}
.event-row--public,
.event-row--compact { grid-template-columns: minmax(0, 1fr) auto; }
.event-row--media { grid-template-columns: 140px minmax(0, 1fr) auto; }
.event-row--media > img { width: 140px; height: 90px; object-fit: cover; border-radius: 6px; }
.event-row:first-child { border-top: 1px solid rgba(26,43,60,0.07); }
.event-row:hover { background: var(--cream); margin: 0 -72px; padding: 28px 72px; }
.event-date { font-family: 'Cormorant Garamond', serif; text-align: center; }
.event-date .day   { font-size: 36px; font-weight: 600; color: var(--crimson); line-height: 1; }
.event-date .month { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }
.event-title  { font-size: 16px; font-weight: 500; color: var(--navy); margin-bottom: 5px; }
.event-meta   { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.btn-rsvp {
  background: var(--crimson-soft); color: var(--crimson);
  padding: 10px 22px; border-radius: var(--radius);
  font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase;
  text-decoration: none; border: 1px solid rgba(139,26,46,0.2);
  transition: all 0.2s; white-space: nowrap;
}
.btn-rsvp:hover { background: var(--crimson); color: #fff; }
.no-events { padding: 48px 0; text-align: center; color: var(--text-muted); font-size: 15px; }

/* ════════════════
   COMMITTEE
   ════════════════ */
.committee { background: var(--cream); }
.committee-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.committee-card {
  background: var(--warm-white); padding: 28px 28px;
  border-left: 3px solid transparent; transition: all 0.25s;
}
.committee-card:hover { border-left-color: var(--crimson); transform: translateX(4px); }
.member-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.member-role { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.member-role.president { color: var(--crimson); font-weight: 500; }

/* ════════════════
   MEMBERSHIP
   ════════════════ */
.membership {
  background: var(--navy);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  position: relative; overflow: hidden;
}
.membership::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,46,0.15) 0%, transparent 65%);
}
.membership-logo-watermark {
  position: absolute; bottom: -40px; left: 40px;
  width: 220px; height: 220px; opacity: 0.04; pointer-events: none;
}
.membership-logo-watermark img { width: 100%; height: 100%; object-fit: contain; filter: brightness(10); }
.mem-eyebrow .ey-line { background: rgba(255,255,255,0.3); }
.mem-eyebrow .ey-text { color: rgba(255,255,255,0.5); }
.mem-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 44px); font-weight: 500;
  color: #fff; line-height: 1.15; margin-top: 18px;
}
.mem-title em { font-style: normal; color: #E8A0B0; }
.mem-desc { font-size: 15px; color: rgba(255,255,255,0.55); line-height: 1.8; font-weight: 300; margin-bottom: 36px; }
.mem-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.mem-feat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.7); }
.feat-tick {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(139,26,46,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-white {
  display: inline-block; background: #fff; color: var(--crimson);
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; text-decoration: none; letter-spacing: 0.2px; transition: all 0.25s;
}
.btn-white:hover { background: var(--crimson-soft); }

/* ════════════════
   CONTACT
   ════════════════ */
.contact { background: var(--warm-white); }
.contact-grid { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-block-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--crimson); font-weight: 500; margin-bottom: 8px; }
.contact-block-value { font-size: 15px; color: var(--navy); line-height: 1.6; }
.contact-block-value a { color: var(--navy); text-decoration: none; }
.contact-block-value a:hover { color: var(--crimson); }
.contact-map { border-radius: 10px; overflow: hidden; height: 260px; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; border: none; }
.contact-map iframe[hidden] { display: none; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.btn-action {
  display: inline-block; font-size: 12px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  padding: 5px 12px; border-radius: 5px; text-decoration: none; cursor: pointer;
  border: 1.5px solid rgba(26,43,60,0.2); color: var(--navy); background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.btn-action:hover { border-color: var(--navy); background: #f5f7fa; }
.btn-action.danger { border-color: rgba(190,30,45,0.25); color: var(--crimson); }
.btn-action.danger:hover { border-color: var(--crimson); background: #fef0f0; }
.form-group label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--crimson); font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--cream); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a2b3c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--crimson);
  box-shadow: 0 0 0 3px var(--crimson-soft);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.password-field { position: relative; width: 100%; }
.password-field > input { width: 100%; padding-right: 48px; }
.password-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: color .15s, background .15s;
}
.password-toggle:hover { color: var(--navy); background: rgba(26,43,60,.06); }
.password-toggle:focus-visible { outline: 2px solid var(--crimson); outline-offset: 1px; }
.password-eye { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-eye--hide { display: none; }
.password-toggle.is-visible .password-eye--show { display: none; }
.password-toggle.is-visible .password-eye--hide { display: block; }
.text-danger { font-size: 11px; color: var(--crimson); margin-top: 3px; }

/* Custom checkboxes */
.check-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--cream);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.check-row:hover { border-color: var(--navy); }
.check-row { position: relative; }
.check-row input[type="checkbox"] { position: absolute; top: 50%; left: 14px; z-index: 1; opacity: 0; width: 18px; height: 18px; margin: -9px 0 0; cursor: pointer; }
.check-row input[type="checkbox"]:focus-visible ~ .check-box { box-shadow: 0 0 0 3px var(--crimson-soft); border-color: var(--crimson); }
.check-box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 4px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.check-row input[type="checkbox"]:checked ~ .check-box {
  background: var(--navy); border-color: var(--navy);
}
.check-box::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.check-row input[type="checkbox"]:checked ~ .check-box::after { opacity: 1; }
.check-label { font-size: 14px; color: var(--text); line-height: 1.3; }

/* ════════════════
   BUTTONS
   ════════════════ */
.btn-primary {
  background: var(--crimson); color: #fff;
  padding: 14px 30px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.2px;
  border: 1.5px solid var(--crimson);
  cursor: pointer; transition: all 0.25s; display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { background: transparent; color: var(--crimson); }
@media (hover: none) { .btn-primary:hover { background: var(--crimson); color: #fff; } }
.btn-ghost {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--navy); font-weight: 500;
  text-decoration: none; transition: gap 0.2s;
}
.btn-ghost:hover { gap: 14px; }
.btn-secondary {
  background: transparent; color: var(--navy);
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  text-decoration: none; letter-spacing: 0.2px;
  border: 1.5px solid rgba(26,43,60,0.25);
  cursor: pointer; transition: all 0.25s; display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--navy); }

/* ════════════════
   PAGE HERO (inner pages)
   ════════════════ */
.page-hero {
  background: var(--sand);
  padding: 140px 72px 80px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(139,26,46,0.07) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 500; line-height: 1.1; color: var(--navy);
  margin-top: 16px;
}
.page-hero h1 em { font-style: normal; color: var(--crimson); }
.page-hero p { font-size: 16px; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-top: 20px; max-width: 560px; }

/* ════════════════
   FOOTER
   ════════════════ */
footer { background: var(--navy); padding: 60px 72px 36px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-logo img { width: 44px; height: 44px; object-fit: contain; }
.footer-logo-text strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #fff; }
.footer-logo-text span { font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 1.5px; text-transform: uppercase; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.7; max-width: 250px; }
.footer-col h4 { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 11px; color: rgba(255,255,255,0.25);
}
.footer-address { margin-left: 18px; }
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a,
.footer-legal button { color: rgba(255,255,255,.5); font: inherit; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-legal a:hover,
.footer-legal button:hover { color: #fff; }

/* Legal pages */
.legal-content { max-width: 900px; margin: 0 auto; padding: 64px 24px 88px; line-height: 1.75; }
.legal-meta { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; }
.legal-content h2 { color: var(--navy); margin: 34px 0 10px; font-family: 'Cormorant Garamond', serif; font-size: 28px; }
.legal-content h3 { color: var(--navy); margin: 24px 0 8px; font-size: 16px; }
.legal-content p,
.legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 24px; margin: 10px 0; }
.legal-content a { color: var(--crimson); }
.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal-table th,
.legal-table td { padding: 13px; border: 1px solid var(--sand); text-align: left; vertical-align: top; }
.legal-table th { background: var(--cream); color: var(--navy); }

/* Cookie controls */
.cookie-banner { position: fixed; z-index: 1000; left: 22px; right: 22px; bottom: 22px; max-width: 1120px; margin: 0 auto; padding: 20px 22px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 5px; }
.cookie-banner p { margin: 0; max-width: 650px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.55; }
.cookie-banner-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button { border-radius: 4px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.35); cursor: pointer; font: inherit; font-size: 12px; }
.btn-cookie-primary { background: #fff; color: var(--navy); }
.btn-cookie-secondary { background: transparent; color: #fff; }
.cookie-banner-actions a { color: rgba(255,255,255,.7); font-size: 12px; }
.third-party-placeholder { padding: 34px; text-align: center; background: var(--cream); border: 1px solid var(--sand); }
.third-party-placeholder p { margin: 8px auto 18px; max-width: 440px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.third-party-placeholder[hidden] { display: none; }

@media (max-width: 760px) {
  .footer-bottom { align-items: flex-start; gap: 18px; }
  .footer-address { display: block; margin: 6px 0 0; }
  .footer-legal { justify-content: flex-start; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-banner-actions { justify-content: flex-start; }
  .legal-table { display: block; overflow-x: auto; }
}

/* ════════════════
   ABOUT PAGE
   ════════════════ */
.about-content { background: var(--warm-white); }
.about-sections { display: flex; flex-direction: column; gap: 0; }
.about-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  padding: 80px 72px; align-items: center;
}
.about-section.alt { background: var(--cream); }
.about-section.alt .about-section-text { order: 2; }
.about-section.alt .about-section-visual { order: 1; }
.about-section-text {}
.about-section-visual {
  background: var(--sand); border-radius: 12px;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-family: 'Cormorant Garamond', serif; font-size: 18px;
  border: 1px solid var(--border); overflow: hidden;
}
.about-logo-feature { background: var(--warm-white); padding: 48px; }
.about-logo-feature img { width: min(320px, 82%); height: auto; display: block; }
.about-photo-carousel { position: relative; min-height: 380px; }
.about-carousel-slides { position: absolute; inset: 0; }
.about-carousel-slide {
  position: absolute; inset: 0; overflow: hidden; background: var(--navy);
  opacity: 0; transition: opacity .6s ease;
}
.about-carousel-slide::before {
  content: ''; position: absolute; inset: -16px;
  background-position: center; background-size: cover;
  filter: blur(14px); opacity: .42; transform: scale(1.06);
}
.about-carousel-slide:nth-child(1)::before { background-image: url('../images/about/mission-01.jpg'); }
.about-carousel-slide:nth-child(2)::before { background-image: url('../images/about/mission-02.jpg'); }
.about-carousel-slide:nth-child(3)::before { background-image: url('../images/about/mission-03.jpg'); }
.about-carousel-slide:nth-child(4)::before { background-image: url('../images/about/mission-04.jpg'); }
.about-carousel-slide:nth-child(5)::before { background-image: url('../images/about/mission-05.jpg'); }
.about-carousel-slide:nth-child(6)::before { background-image: url('../images/about/mission-06.jpg'); }
.about-carousel-slide:nth-child(7)::before { background-image: url('../images/about/mission-07.jpg'); }
.about-carousel-slide img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
}
.about-carousel-slide--portrait img { object-fit: contain; }
.about-carousel-slide.is-active { opacity: 1; }
.about-carousel-button {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 52px; padding: 0; border: 0; background: transparent;
  color: transparent; cursor: pointer; font-size: 0;
  transition: transform .2s;
}
.about-carousel-button::before {
  content: ''; position: absolute; top: 50%; left: 50%; width: 13px; height: 13px;
  border-top: 2px solid #fff; border-right: 2px solid #fff;
  filter: drop-shadow(0 1px 3px rgba(26,43,60,.8));
}
.about-carousel-previous::before { transform: translate(-35%, -50%) rotate(-135deg); }
.about-carousel-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.about-carousel-button:hover { transform: translateY(-50%) scale(1.15); }
.about-carousel-button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.about-carousel-previous { left: 16px; }
.about-carousel-next { right: 16px; }
.about-carousel-dots {
  position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px 11px; border-radius: 20px; background: rgba(26,43,60,.58);
  backdrop-filter: blur(6px);
}
.about-carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.about-carousel-dot.is-active { background: #fff; }
.about-feature-photo { position: relative; min-height: 380px; }
.about-feature-photo { background: var(--navy); }
.about-feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.about-feature-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 9px 14px; border-radius: 4px;
  background: rgba(26,43,60,.78); color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.about-impact-gallery {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  min-height: 0; padding: 4px; background: var(--warm-white);
}
.about-impact-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.committee-group-photo {
  margin-top: 24px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
  background: var(--sand); aspect-ratio: 16 / 8; box-shadow: 0 18px 48px rgba(26,43,60,.08);
}
.committee-group-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.about-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 2.5vw, 38px); font-weight: 500; color: var(--navy);
  margin-bottom: 20px; line-height: 1.2;
}
.about-section h2 em { font-style: normal; color: var(--crimson); }
.about-section p { font-size: 15px; line-height: 1.85; color: var(--text-muted); font-weight: 300; margin-bottom: 16px; }
.affiliations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.affil-tag {
  background: var(--crimson-soft); color: var(--crimson);
  font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgba(139,26,46,0.2);
}

/* ════════════════
   MEMBERSHIP PAGE
   ════════════════ */
.membership-page { background: var(--warm-white); }
.membership-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; padding: 80px 72px; align-items: start;
}
.membership-benefits { display: flex; flex-direction: column; gap: 24px; }
.benefit-item { display: flex; gap: 18px; align-items: flex-start; }
.benefit-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--crimson-soft); color: var(--crimson);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600;
}
.benefit-title { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 5px; }
.benefit-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.membership-cta-box {
  background: var(--navy); border-radius: 14px; padding: 48px 40px;
  position: sticky; top: 100px;
}
.membership-cta-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 500; color: #fff; margin-bottom: 16px; line-height: 1.2;
}
.membership-cta-box p { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 28px; line-height: 1.7; }

/* CPD overview and listing wrappers */
.cpd-info-band { background: var(--navy); padding: 60px 72px; }
.cpd-info-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.cpd-events-section { padding: 60px 72px; }
.cpd-past-section { padding-top: 0; }

/* ════════════════
   ALERT / TOAST
   ════════════════ */
.alert {
  padding: 14px 22px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--forest-soft); color: var(--forest); border: 1px solid rgba(45,106,63,0.2); }
.alert-danger  { background: var(--crimson-soft); color: var(--crimson); border: 1px solid rgba(139,26,46,0.2); }
.alert-info    { background: #eef3f8; color: var(--navy); border: 1px solid rgba(26,43,60,0.15); }

/* ════════════════
   ADMIN
   ════════════════ */
.admin-sidebar-overlay { display: none; position: fixed; inset: 74px 0 0 0; background: rgba(26,43,60,0.45); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.28s; }
.admin-sidebar-overlay.open { opacity: 1; pointer-events: auto; }
.admin-wrap { display: flex; min-height: 100vh; padding-top: 74px; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--navy); padding: 32px 0;
  position: fixed; top: 74px; left: 0; bottom: 0;
  overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.admin-sidebar nav { padding: 20px 0; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px; font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.5); text-decoration: none;
  transition: all 0.2s; border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff; background: rgba(255,255,255,0.05); border-left-color: var(--crimson);
}
.admin-main { margin-left: 240px; flex: 1; padding: 40px; min-width: 0; overflow-x: hidden; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.admin-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 500; color: var(--navy); }
.admin-header p  { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.admin-card { background: var(--warm-white); border-radius: 10px; padding: 28px; border: 1px solid var(--border); }
.admin-edit-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
/* Catering add-item row (description + extra charge) */
.ci-add-grid { display: grid; grid-template-columns: 1fr 140px; gap: 10px; margin-bottom: 10px; }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--warm-white); border-radius: 10px; padding: 24px;
  border: 1px solid var(--border); border-top: 3px solid var(--crimson);
  display: block;
}
a.stat-card { transition: box-shadow 0.15s, transform 0.15s; color: inherit; }
a.stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-2px); }
.stat-card .number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 600; color: var(--navy); line-height: 1;
}
.stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th {
  text-align: left; padding: 10px 16px;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid var(--border);
}
table.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(26,43,60,0.05); vertical-align: middle; }
table.admin-table tr:hover td { background: var(--cream); }
/* Columns to hide on mobile — applied per-view */
.col-mob-hide { }
/* Secondary info shown below primary cell on mobile */
.mob-sub { display: none; }
/* Action dots menu — desktop shows buttons, mobile shows dots */
.act-cell { position: relative; white-space: nowrap; }
.act-btns { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.act-dots { display: none; position: relative; }
.act-dots-btn { background: none; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 10px; color: var(--navy); letter-spacing: 2px; }
.act-dots-btn:hover { background: var(--cream); }
.act-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(26,43,60,.13); z-index: 500; min-width: 150px; overflow: hidden; }
.act-menu.open { display: block; }
.act-menu--up { top: auto; bottom: calc(100% + 4px); }
.act-menu a, .act-menu button { display: block; width: 100%; padding: 11px 16px; font-size: 13px; font-family: inherit; text-decoration: none; color: var(--navy); background: none; border: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.act-menu a:hover, .act-menu button:hover { background: var(--cream); }
.act-menu .act-menu-danger { color: var(--crimson); }
.act-menu-sep { height: 1px; background: var(--border); margin: 4px 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-success { background: var(--forest-soft); color: var(--forest); }
.badge-muted   { background: var(--sand); color: var(--text-muted); }
.badge-danger  { background: var(--crimson-soft); color: var(--crimson); }

/* ════════════════
   ADMIN LAYOUT UTILITIES
   ════════════════ */
/* Two equal columns — stacks at 640px */
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* Main content + narrow aside (e.g. invoice sidebar) — stacks at 768px */
.admin-main-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
/* Wide content + narrow sidebar (e.g. emails) — stacks at 768px */
.admin-wide-aside {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
/* Three equal columns — stacks at 640px */
.admin-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
/* Add invoice line-item row — collapses on mobile */
.inv-add-grid {
  display: grid;
  grid-template-columns: 1fr 80px 110px auto;
  gap: 8px;
  align-items: end;
}
/* Back navigation link — tap-friendly */
.admin-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--crimson);
  text-decoration: none;
  padding: 4px 0;
  min-height: 36px;
}
/* Tab bar that scrolls horizontally on very small screens */
.admin-tab-bar {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  flex-shrink: 1;
}

/* ════════════════
   ADMIN MOBILE APP SHELL
   ════════════════ */
:root { --admin-tabbar-h: 62px; --admin-nav-h: 74px; }

/* Bottom tab bar — mobile only */
.admin-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(255,253,251,0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 16px rgba(26,43,60,.06);
}
.admin-tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); height: var(--admin-tabbar-h); }
.admin-tabbar a, .admin-tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 10.5px; font-weight: 500; letter-spacing: .2px; color: var(--text-muted);
  position: relative; -webkit-tap-highlight-color: transparent; padding: 0 2px;
}
.admin-tabbar a.active { color: var(--crimson); }
.admin-tabbar a.active::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 2px; background: var(--crimson); border-radius: 0 0 2px 2px; }
.admin-tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-tabbar-badge {
  position: absolute; top: 8px; left: calc(50% + 6px);
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: var(--crimson); color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.admin-sidebar-badge { background: var(--crimson); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 11px; margin-left: 6px; }

/* Drawer footer (public site / log out) — sidebar on desktop, drawer on mobile */
.admin-sidebar-footer { padding: 16px 0 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-footer a, .admin-sidebar-footer button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 24px; font-size: 13px; font-family: inherit; color: rgba(255,255,255,0.5);
  text-decoration: none; background: none; border: none; border-left: 3px solid transparent; cursor: pointer;
}
.admin-sidebar-footer a:hover, .admin-sidebar-footer button:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* Mobile top bar title (shown instead of the logo text) */
.admin-nav-title { display: none; font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--navy); flex: 1; text-align: center; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sticky action bar for long forms — inline on desktop, fixed to the bottom on mobile */
.admin-sticky-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.admin-sticky-bar .btn-primary { flex: 0 0 auto; }

/* Horizontally scrollable chip/filter rows */
.admin-chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; line-height: 1.3;
  cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--text);
  font-family: inherit; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.admin-chip:hover { border-color: var(--navy); }
.admin-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.admin-chip-count { background: rgba(0,0,0,.08); border-radius: 99px; padding: 0 7px; font-size: 11px; }
.admin-chip.active .admin-chip-count { background: rgba(255,255,255,.22); }

/* Generic modal overlay / bottom sheet */
.admin-modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(26,43,60,0.55); align-items: center; justify-content: center; padding: 24px; }
.admin-modal.open { display: flex; }
.admin-modal-box { background: #fff; width: min(520px, calc(100vw - 32px)); border-radius: 12px; padding: clamp(20px, 4vw, 32px); position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.2); }
.admin-modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.admin-modal-handle { display: none; }

/* Mobile-only / desktop-only helpers (mobile rules live in the 768px media query) */
@media (min-width: 769px) { .mob-only { display: none !important; } }

/* Clickable list row (card-list mode) chevron */
table.admin-table tr.row-link { cursor: pointer; }

/* Key/value definition list used on detail pages */
.admin-kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.admin-kv dt { color: var(--text-muted); }
.admin-kv dd { margin: 0; overflow-wrap: anywhere; }

/* Dashboard quick actions */
.admin-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-quick-actions .btn-primary, .admin-quick-actions .btn-secondary { padding: 11px 20px; font-size: 13px; }

/* Row of form/page actions — stacks to full-width buttons on mobile */
.admin-actions-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Collapsible card */
.admin-collapse > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.admin-collapse > summary > * { flex: 1; min-width: 0; }
.admin-collapse > summary::-webkit-details-marker { display: none; }
.admin-collapse > summary::after { content: ''; width: 9px; height: 9px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s; flex: 0 0 auto; margin-right: 4px; }
.admin-collapse[open] > summary::after { transform: rotate(-135deg); }

/* Card section headings + vertical card stack */
.admin-card-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.admin-card-sub { font-size: 12.5px; color: var(--text-muted); margin: 0 0 16px; line-height: 1.5; }
.admin-card-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Ticket type / catering list items (event workspace) */
.tt-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; background: var(--cream); }
.tt-drag { cursor: grab; color: var(--text-muted); font-size: 16px; line-height: 1; flex-shrink: 0; }
.tt-item-body { flex: 1; font-size: 13px; line-height: 1.5; min-width: 0; }
.tt-item-name { font-weight: 600; color: var(--navy); }
.tt-item-desc { color: var(--text-muted); }
.tt-item-price { color: var(--crimson); font-weight: 500; margin-left: 8px; }
.tt-item-cap { font-size: 11px; color: var(--text-muted); margin-left: 6px; }
.tt-remove { flex-shrink: 0; background: none; border: 1px solid var(--crimson); border-radius: 4px; color: var(--crimson); font-size: 11px; padding: 3px 9px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.tt-remove:hover { background: var(--crimson); color: #fff; }
.admin-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.admin-help a { color: var(--crimson); }
.admin-help-list { font-size: 13px; color: var(--text-muted); line-height: 1.7; padding-left: 18px; margin: 0; }
.admin-help-list a { color: var(--navy); font-weight: 500; }

/* Mode selector cards (radio) */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--cream); cursor: pointer; transition: border-color .15s, background .15s; }
.mode-card input[type="radio"] { margin-top: 3px; accent-color: var(--crimson); flex-shrink: 0; width: 18px; height: 18px; }
.mode-card:has(input:checked) { border-color: var(--crimson); background: #fff; box-shadow: 0 0 0 3px var(--crimson-soft); }
.mode-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mode-card-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.mode-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.mode-cards--stack { grid-template-columns: 1fr; gap: 8px; }
.mode-cards--stack .mode-card { padding: 12px 14px; }
@media (max-width: 640px) { .mode-cards { grid-template-columns: 1fr; } }

/* Event workspace: header + tabs shared by Details / Tickets / Attendees / CPD & Media */
.event-header { margin-bottom: 16px; }
.event-header-title { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1.15; overflow-wrap: anywhere; }
.event-header-meta { font-size: 13px; color: var(--text-muted); margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.event-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.event-header-actions .act-dots { display: inline-block !important; }
.event-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.event-tabs::-webkit-scrollbar { display: none; }
.event-tab { padding: 12px 20px; margin-bottom: -2px; font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.event-tab:hover { color: var(--navy); }
.event-tab.active { color: var(--navy); border-bottom-color: var(--crimson); font-weight: 600; }
.event-tab .tab-count { background: var(--sand); color: var(--navy); border-radius: 99px; padding: 1px 8px; font-size: 11px; }

/* Underline tabs (Events upcoming/past etc.) */
.admin-underline-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.admin-underline-tabs::-webkit-scrollbar { display: none; }
.admin-underline-tabs button {
  padding: 10px 22px; font-size: 13px; font-weight: 600; background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); margin-bottom: -2px; cursor: pointer; font-family: inherit; white-space: nowrap; min-height: 44px;
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-underline-tabs button.active { border-bottom-color: var(--navy); color: var(--navy); }
.admin-underline-tabs .tab-count { background: var(--text-muted); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 11px; }
.admin-underline-tabs button.active .tab-count { background: var(--navy); }

/* ════════════════
   LOGIN
   ════════════════ */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--sand);
  padding: 80px 24px;
}
.login-box {
  background: var(--warm-white); border-radius: 14px; padding: 52px 44px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(26,43,60,0.12);
}
.login-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.login-logo img { width: 48px; height: 48px; object-fit: contain; }
.login-logo-text strong { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy); }
.login-logo-text span   { font-size: 10px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.login-box h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.login-box p  { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 74px; right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - 74px);
  background: #fff;
  z-index: 200;
  overflow-y: auto;
  padding: 24px 0;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(26,43,60,0.12);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer ul li { border-bottom: 1px solid var(--border); }
.nav-drawer ul li a, .nav-drawer ul li button {
  display: block;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}
.nav-drawer ul li a:hover { background: var(--light); color: var(--crimson); }
.nav-drawer ul li button:hover { background: var(--light); color: var(--crimson); }
.nav-drawer ul li.drawer-logout { }
.nav-drawer ul li.drawer-logout button { color: var(--crimson); }
.nav-drawer ul li.drawer-logout button:hover { background: var(--light); color: var(--crimson); }

/* Semi-transparent overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 74px 0 0 0;
  background: rgba(26,43,60,0.35);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ════════════════
   PROFILE PAGE
   ════════════════ */
.outstanding-card { background: var(--navy); border: none; color: #fff; }
.outstanding-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.outstanding-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); }
.outstanding-total { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: #fff; margin: 5px 0; }
.outstanding-sub { font-size: 13px; color: rgba(255,255,255,.65); max-width: 520px; line-height: 1.5; }
.outstanding-pay { white-space: nowrap; min-height: 48px; }
.outstanding-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.15); }
.outstanding-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.outstanding-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.outstanding-item-title { font-size: 14px; font-weight: 500; color: #fff; }
.outstanding-item-meta { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.6; }
.outstanding-item-amount { font-weight: 600; white-space: nowrap; color: #fff; font-size: 15px; }
.outstanding-link { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.outstanding-overdue { color: #ffd3d3; font-weight: 600; }
.outstanding-foot { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 14px; line-height: 1.5; }
@media (max-width: 640px) {
  .outstanding-head { flex-direction: column; align-items: stretch; }
  .outstanding-pay { width: 100%; }
  .outstanding-list li { flex-direction: column; gap: 6px; }
}
.profile-section {
  padding: 60px 72px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
}
.profile-h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--navy); margin: 12px 0; }
/* Member account tabs: Overview · Events · Invoices · CPD */
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin: 0 0 32px; max-width: 900px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tab {
  padding: 12px 22px; margin-bottom: -2px; font-size: 14px; font-weight: 500; color: var(--text-muted); background: none; border: none;
  border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; min-height: 48px; cursor: pointer; font-family: inherit;
}
.profile-tab:hover { color: var(--navy); }
.profile-tab.active { color: var(--navy); border-bottom-color: var(--crimson); font-weight: 600; }
.profile-tab .tab-count { background: var(--sand); color: var(--navy); border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.profile-tab .tab-count--alert { background: var(--crimson); color: #fff; }
.profile-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .profile-tabs { position: sticky; top: 74px; z-index: 20; background: #fff; margin: 0 -16px 24px; padding: 0 16px; }
  .profile-tab { flex: 1 1 auto; justify-content: center; padding: 12px 10px; font-size: 13px; }
  .profile-h2 { font-size: 24px; }
}

/* ════════════════
   ANIMATIONS
   ════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s, transform 0.65s; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ════════════════
   RESPONSIVE
   ════════════════ */
@media (max-width: 1360px) {
  nav#main-nav { padding: 0 28px; }
  .nav-links { gap: 18px; }
  .nav-cta { padding: 9px 16px; }
  .nav-logo-text span { display: none; }
}
@media (max-width: 1024px) {
  nav#main-nav { padding: 0 28px; }
  .nav-links { gap: 14px; }
  .nav-logo-text { display: none; }
  section { padding: 72px 40px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 380px; }
  .hero-left  { padding: 80px 40px 60px; }
  .about-band { flex-direction: column; gap: 30px; padding: 44px 40px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .committee-grid { grid-template-columns: 1fr 1fr; }
  .membership { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-section.alt .about-section-text { order: 1; }
  .about-section.alt .about-section-visual { order: 2; }
  .membership-split { grid-template-columns: 1fr; }
  .cpd-info-grid { grid-template-columns: 1fr; gap: 30px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  .nav-overlay { display: block; }
  .profile-section { padding: 40px 24px; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  /* ── Admin app shell ───────────────────────────────────────── */
  body.admin-body { padding-bottom: calc(var(--admin-tabbar-h) + env(safe-area-inset-bottom, 0)); }
  body.admin-body.has-sticky-bar { padding-bottom: 0; }
  .admin-main { margin-left: 0; padding: 20px 16px 32px; }
  .admin-sidebar { width: min(300px, 86vw); position: fixed; top: var(--admin-nav-h); right: 0; left: auto; height: calc(100dvh - var(--admin-nav-h)); z-index: 999; transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); box-shadow: none; padding: 16px 0 calc(24px + env(safe-area-inset-bottom, 0)); display: flex; flex-direction: column; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: -4px 0 24px rgba(0,0,0,.35); }
  .admin-sidebar nav { flex: 1; padding: 8px 0; overflow-y: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
  .admin-sidebar-logo { display: none; }
  .admin-sidebar nav a, .admin-sidebar-footer a, .admin-sidebar-footer button { padding: 12px 24px; font-size: 15px; min-height: 46px; }
  .admin-sidebar nav a[style*="padding-left"] { font-size: 14px !important; }
  .admin-sidebar-footer { flex-shrink: 0; padding-top: 8px; }
  .admin-sidebar-overlay { display: block; }
  .admin-tabbar { display: block; }
  body.has-sticky-bar .admin-tabbar { display: none; }
  .admin-nav-title { display: block; }
  nav#main-nav .nav-logo img { height: 40px; width: 40px; }
  /* Admin header: stack title + actions vertically */
  .admin-header { display: flex !important; flex-direction: column !important; gap: 12px !important; align-items: stretch !important; justify-content: flex-start !important; margin-bottom: 20px; }
  .admin-header h1 { font-size: 26px; }
  .admin-header h1.admin-h1--dup { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .admin-header p { font-size: 13px; }
  /* Header action buttons become full-width stacked buttons */
  .admin-header > .btn-primary, .admin-header > .btn-secondary, .admin-header > .btn-action,
  .admin-header > form > .btn-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; text-align: center; }
  .admin-header > div[style*="flex"] { flex-wrap: wrap; gap: 8px !important; }
  .admin-header > div[style*="flex"] > .btn-primary, .admin-header > div[style*="flex"] > .btn-secondary, .admin-header > div[style*="flex"] > .btn-action { flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .admin-back-link { min-height: 44px; font-size: 14px; }
  /* Tables retain every admin action and can be panned when a view has many columns. */
  .admin-card { overflow-x: auto; padding: 20px; -webkit-overflow-scrolling: touch; }
  .admin-card > table.admin-table { width: max-content; min-width: 100%; }
  .col-mob-hide { display: none; }
  .mob-sub { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 400; line-height: 1.45; }
  .act-btns { display: none; }
  .act-cell--btns .act-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .act-cell--btns { white-space: normal; }
  .act-dots { display: inline-block; }
  .act-dots-btn { min-width: 44px; min-height: 44px; }
  .act-menu a, .act-menu button { padding: 14px 18px; font-size: 14px; min-height: 48px; display: flex; align-items: center; }
  table.admin-table th, table.admin-table td { padding: 10px 10px; }
  /* Edit Event two-column grid → single column */
  .admin-edit-grid { grid-template-columns: 1fr !important; }
  .admin-card-stack { gap: 14px; }
  .admin-collapse > summary { min-height: 44px; }
  .event-header-title { font-size: 24px; padding-right: 56px; }
  .event-header { position: relative; }
  .event-header-actions { position: absolute; top: 0; right: 0; width: auto; }
  .event-header-actions .act-dots-btn { min-width: 44px; min-height: 44px; }
  .event-tabs { margin-left: -16px; margin-right: -16px; padding: 0 8px; margin-bottom: 18px; }
  .event-tab { flex: 1 0 auto; justify-content: center; padding: 12px 14px; font-size: 13px; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .stat-card { padding: 18px; }
  .stat-card .number { font-size: 34px; }
  /* Layout utilities: stack wide layouts */
  .admin-main-aside { grid-template-columns: 1fr; }
  .admin-main-aside--actions-first > :last-child { order: -1; }
  .admin-wide-aside { grid-template-columns: 1fr; }
  /* Tap targets */
  table.admin-table td a,
  table.admin-table td button {
    min-height: 44px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-action { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; padding: 6px 14px; }
  .admin-chip { min-height: 40px; padding: 8px 16px; font-size: 14px; }
  .admin-chip-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0; }
  .admin-main > .admin-chip-row { margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .admin-chip-row::-webkit-scrollbar { display: none; }
  input[type="checkbox"]:not(.check-row input), input[type="radio"] { width: 22px; height: 22px; accent-color: var(--crimson); flex-shrink: 0; }
  .form-group label { font-size: 12px; }
  .form-group input, .form-group select, .form-group textarea { min-height: 48px; }
  .form-group input[type="file"] { padding: 10px 12px; }
  /* Sticky action bar */
  .admin-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(255,253,251,0.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); box-shadow: 0 -2px 16px rgba(26,43,60,.10);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0)); gap: 10px; flex-wrap: nowrap;
  }
  .admin-sticky-bar .btn-primary { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 600; padding: 12px 16px; }
  .admin-sticky-bar .btn-secondary, .admin-sticky-bar .btn-action { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 16px; }
  .admin-sticky-bar .act-dots { display: inline-block; }
  body.has-sticky-bar .admin-main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0)); }
  /* Bottom-sheet modals */
  .admin-modal { align-items: flex-end; padding: 0; }
  .admin-modal-box { width: 100%; max-width: none; border-radius: 18px 18px 0 0; max-height: 92dvh; padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0)); animation: sheetUp .28s cubic-bezier(0.4,0,0.2,1); }
  .admin-modal-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: rgba(26,43,60,.18); margin: 0 auto 18px; }
  .admin-modal-actions { flex-direction: column-reverse; }
  .admin-modal-actions > *, .admin-modal-actions form { width: 100%; }
  .admin-modal-actions .btn-primary, .admin-modal-actions .btn-secondary, .admin-modal-actions .btn-action, .admin-modal-actions form button { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .desk-only { display: none !important; }
  .admin-kv { grid-template-columns: 1fr; gap: 2px; }
  .admin-actions-row { flex-direction: column; align-items: stretch; }
  .admin-actions-row > *, .admin-actions-row form { width: 100%; }
  .admin-actions-row .btn-primary, .admin-actions-row .btn-secondary, .admin-actions-row .btn-action, .admin-actions-row form > button { width: 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .admin-main ul li > button:not(.btn-action):not(.btn-primary):not(.btn-secondary) { min-height: 40px; min-width: 44px; padding: 0 10px; }
  .admin-kv dt { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; }
  .admin-kv dt:first-child { margin-top: 0; }
  .admin-tab-bar { border-radius: 4px; }
  .alert { font-size: 13px; padding: 12px 14px; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  nav#main-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }
  .nav-overlay { display: block; }
  section { padding: 56px 24px; }
  .profile-section { padding: 32px 16px; }
  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
  section.hero { padding: 74px 0 0; }
  .hero-left  { min-width: 0; padding: 48px 20px; }
  .hero-eyebrow { gap: 8px; margin-bottom: 22px; }
  .hero-eyebrow-line { width: 24px; flex: 0 0 24px; }
  .hero-eyebrow span { font-size: 10px; letter-spacing: 1.5px; }
  h1.hero-title { font-size: clamp(38px, 13vw, 48px); }
  .hero-desc { font-size: 15px; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions a { min-height: 44px; justify-content: center; text-align: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 40px; padding-top: 24px; text-align: center; }
  .stat-number { font-size: 32px; }
  .stat-number sup { font-size: 18px; }
  .stat-label { font-size: 10px; overflow-wrap: anywhere; }
  .hero-right { min-height: 340px; }
  .hero-main-card { width: min(270px, calc(100% - 40px)); padding: 28px 24px; }
  .hp-card--event { padding: 20px; }
  .hp-card--event .hp-label { margin-bottom: 9px; }
  .hp-card--event .hp-title { font-size: 19px; line-height: 1.22; }
  .hero-logo-bg { width: 310px; height: 310px; }
  .float-pill { padding: 9px 12px; gap: 7px; }
  .float-pill-1 { right: 2%; }
  .float-pill-2 { left: 2%; bottom: 8%; }
  .pill-icon { width: 28px; height: 28px; }
  .pill-label { font-size: 11px; }
  .pill-sub { font-size: 9px; }
  .about-band { padding: 36px 24px; }
  .events-header { align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  .events-header .link-arrow { flex-shrink: 0; margin-top: 8px; }
  .event-row {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px 16px;
    padding: 20px 0;
  }
  .event-row:hover { margin: 0; padding: 20px 0; }
  .event-row .btn-rsvp,
  .event-row > .event-status { grid-column: 2; justify-self: start; }
  .event-row--public,
  .event-row--compact { grid-template-columns: minmax(0, 1fr); }
  .event-row--public .btn-rsvp,
  .event-row--compact .btn-rsvp,
  .event-row--public > .event-status,
  .event-row--compact > .event-status { grid-column: 1; }
  .event-row--media { grid-template-columns: 72px minmax(0, 1fr); }
  .event-row--media > img { width: 72px; height: 72px; }
  .event-row--media .btn-rsvp { grid-column: 2; }
  .about-section { padding: 56px 24px; gap: 32px; }
  .about-photo-carousel, .about-feature-photo { min-height: 300px; }
  .about-carousel-button { width: 44px; height: 48px; }
  .about-impact-gallery { gap: 3px; padding: 3px; }
  .committee-group-photo { aspect-ratio: 4 / 3; }
  .page-hero  { padding: 120px 24px 60px; }
  .admin-main { padding: 16px 14px 32px; }
  .admin-card { padding: 16px; border-radius: 12px; }
  .admin-header h1 { font-size: 24px; }
  .admin-main > .admin-chip-row { margin-left: -14px; margin-right: -14px; padding: 2px 14px; }
  .admin-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-quick-actions .btn-primary, .admin-quick-actions .btn-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; }
  /* ── Card-list mode: tables become stacked, tappable rows ── */
  .admin-card > table.admin-table, table.admin-table { width: 100%; min-width: 0; }
  table.admin-table, table.admin-table tbody, table.admin-table tr, table.admin-table td { display: block; }
  table.admin-table tfoot { display: block; }
  table.admin-table tfoot tr { display: flex; justify-content: flex-end; gap: 12px; align-items: baseline; border-bottom: none; }
  table.admin-table tfoot td { display: block; padding: 0; }
  table.admin-table tfoot td:empty { display: none; }
  table.admin-table thead { display: none; }
  table.admin-table td.col-mob-hide, table.admin-table tr.col-mob-hide { display: none; }
  table.admin-table tr { position: relative; padding: 14px 0; border-bottom: 1px solid var(--border); }
  table.admin-table tbody:last-child tr:last-child { border-bottom: none; }
  table.admin-table tr:first-child { padding-top: 4px; }
  table.admin-table tr:hover td { background: transparent; }
  table.admin-table td { padding: 2px 0; border: none; font-size: 14px; white-space: normal; }
  table.admin-table td:empty { display: none; }
  table.admin-table td[data-label] { display: inline-block; width: calc(50% - 6px); vertical-align: top; text-align: left !important; }
  table.admin-table td[data-label]::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; margin-bottom: 1px; font-weight: 500; }
  table.admin-table tr.row-link { padding-right: 22px; }
  table.admin-table tr.row-link::after { content: ''; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 1.5px solid var(--text-muted); border-top: 1.5px solid var(--text-muted); transform: rotate(45deg); opacity: .6; }
  table.admin-table tr.row-link:first-child::after { top: 12px; }
  table.admin-table td.sel-cell { position: absolute; left: 0; top: 14px; padding: 0; }
  table.admin-table tr.has-sel { padding-left: 36px; }
  table.admin-table tr.row-link, table.admin-table tr.has-sel { -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
  table.admin-table td.act-cell { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  table.admin-table td.act-cell .act-btns { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; justify-content: flex-start; }
  table.admin-table td.act-cell .act-btns > a, table.admin-table td.act-cell .act-btns > button, table.admin-table td.act-cell .act-btns > form { flex: 1 1 calc(50% - 4px); }
  table.admin-table td.act-cell .act-btns > :only-child { flex: 0 1 calc(50% - 4px); }
  table.admin-table td.act-cell .act-btns > form > button { width: 100%; }
  table.admin-table td.act-cell .act-btns > a, table.admin-table td.act-cell .act-btns > button { min-height: 44px; }
  table.admin-table td.act-cell .act-dots { display: none; }
  table.admin-table td.act-cell.act-cell--menu .act-btns { display: none; }
  table.admin-table td.act-cell.act-cell--menu .act-dots { display: block; width: 100%; }
  table.admin-table td.act-cell.act-cell--menu .act-dots-btn { width: 100%; min-height: 44px; font-size: 14px; letter-spacing: 0; }
  table.admin-table td.act-cell.act-cell--menu .act-dots-btn::before { content: 'Actions  '; }
  table.admin-table td.act-cell.act-cell--menu .act-menu { left: 0; right: 0; }
  table.admin-table td a:not(.btn-action):not(.btn-primary):not(.btn-secondary) { padding: 0; min-height: 0; display: inline; }
  table.admin-table td.act-cell a:not(.btn-action):not(.btn-primary):not(.btn-secondary) { display: inline-flex; min-height: 44px; padding: 6px 14px; border: 1.5px solid rgba(26,43,60,0.2); border-radius: 5px; text-decoration: none; }
  table.admin-table td.act-cell button { min-height: 44px; }
  table.admin-table td .badge { font-size: 11px; }
  table.admin-table tr td[colspan] { padding: 12px 0; }
  .committee-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .cpd-cat { display: none; }
  /* Layout utilities: stack all grids at small phone */
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-three-col { grid-template-columns: 1fr; }
  /* Catering add-item grid: stack on small screens */
  .ci-add-grid { grid-template-columns: 1fr; }
  /* Add invoice line-item form: 2-col then submit button full-width */
  .inv-add-grid { grid-template-columns: 1fr 1fr; }
  .inv-add-grid > button[type="submit"] { grid-column: 1 / -1; }
  .membership-split { padding: 0; gap: 36px; }
  .membership-cta-box { position: static; padding: 34px 24px; }
  .cpd-info-band, .cpd-events-section { padding: 48px 24px; }
  .cpd-past-section { padding-top: 0; }
  .invoice-summary-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .invoice-summary-meta { text-align: left !important; }

  /* Prevent iOS from zooming forms and keep primary controls comfortably tappable. */
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px !important; }
  .nav-hamburger, .btn-primary, .btn-secondary, .btn-ghost, .btn-rsvp,
  .btn-action, .btn-white, .btn-outline-white, .cookie-banner-actions button {
    min-height: 44px;
  }
  .nav-hamburger { width: 44px; height: 44px; }
  .act-dots-btn { min-width: 44px; }
}
