/* =========================================================
   TSA NSW website styles
   Colours sampled from the original Canva site.
   ========================================================= */

:root {
  --navy: #00247e;        /* page heroes, headings, buttons */
  --navy-soft: #0e2d80;   /* hero circles */
  --indigo: #13147e;      /* homepage hero */
  --red: #b80606;         /* election banner */
  --cream: #fdfcf0;       /* page background */
  --cream-2: #f6f4e8;     /* panels */
  --white: #ffffff;
  --taupe: #a39a8e;       /* decorative taupe (original) */
  --taupe-strong: #7d7468; /* strips and silver tier: white text passes 4.5:1 */
  --taupe-text: #6b6358;  /* small grey text (darkened from #a39a8e for contrast) */
  --blue-text: #4a5d9e;   /* body copy on cream */
  --hero-text: #b9c2e0;   /* body copy on navy */
  --line: #e2ded0;
  --badge: #ecede9;
  --bronze-bg: #eceade;
  --gold: #bc9a35;
  --gold-dot: #f0d080;

  --font-ui: "Figtree", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-plex: "IBM Plex Sans", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-thai: "Noto Sans Thai Looped", "Noto Sans Thai", "IBM Plex Sans Thai", sans-serif;

  --radius: 14px;
  --wrap: 1040px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-ui);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
[lang="th"] { font-family: var(--font-thai); }

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

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid #f0b400; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-plex);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 44px; padding: 0 var(--gutter);
}
.nav-brand { display: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.nav-links a { color: #4b4f5c; text-decoration: none; padding: 10px 0; display: inline-block; }
.nav-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.nav-links a[aria-current="page"] { color: #151a33; font-weight: 700; }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-wrap { justify-content: flex-start; min-height: 56px; }
  .nav-toggle { margin-left: auto; margin-right: -10px; }
  .nav-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; color: var(--navy); text-decoration: none; font-size: 16px;
  }
  .nav-brand img { border-radius: 6px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
    border-radius: 8px;
  }
  .nav-toggle .bar { display: block; height: 2px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    box-shadow: 0 12px 24px rgba(0, 36, 126, .08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- Shared buttons ---------- */
.pill {
  display: inline-block; font-family: var(--font-plex); font-style: italic; font-size: clamp(18px, 2.2vw, 26px);
  color: var(--indigo); text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--indigo); border-radius: 999px; padding: 6px 20px 7px;
  transition: background .15s, color .15s;
}
.pill:hover { background: var(--indigo); color: var(--white); }
.pill-small { font-size: 16px; padding: 4px 16px; margin-top: 16px; }

.btn-light, .btn-outline {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border-radius: 10px; padding: 11px 20px;
}
.btn-light { background: #f4f3ee; color: #111; border: 1px solid #d9d7cf; }
.btn-light:hover { background: var(--white); }
.btn-light svg { width: 20px; height: 20px; stroke: var(--navy); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn-outline { background: transparent; color: #1b1b1b; border: 1.5px solid #cfccc1; font-weight: 600; }
.btn-outline:hover { background: var(--white); }
.btn-outline svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; }

/* =========================================================
   HOME
   ========================================================= */
.home-hero {
  background: var(--indigo); color: var(--cream);
  text-align: center; padding: clamp(48px, 7vw, 80px) 20px clamp(40px, 5vw, 56px);
  font-family: var(--font-plex);
}
.home-logo { width: clamp(120px, 14vw, 170px); margin: 0 auto 14px; }
.home-title { line-height: 1.15; }
.home-title-main { display: block; font-weight: 700; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; }
.home-title-sub { display: block; font-weight: 400; font-style: italic; font-size: clamp(24px, 3.1vw, 34px); }
.home-tagline { margin-top: clamp(36px, 5vw, 56px); font-size: 17px; line-height: 1.25; }
.home-tagline strong { font-style: italic; font-weight: 700; font-size: 20px; }
.brush {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: rgba(253, 252, 240, .9);
}
.home-arrow { display: inline-block; margin-top: 18px; padding: 6px; color: var(--cream); border-radius: 50%; }
.home-arrow svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.home-block { width: min(760px, 100% - 2 * var(--gutter)); margin: 0 auto; text-align: center; padding: 48px 0 44px; }
.home-block + .home-block { border-top: 1px solid #d6d3c6; }
.home-h2 { font-family: var(--font-plex); font-weight: 700; color: var(--indigo); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-bottom: 18px; }
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.events { display: grid; gap: 40px; padding-top: 16px; }
.event h3 { font-family: var(--font-plex); font-size: clamp(28px, 3vw, 34px); color: var(--indigo); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.event-meta { display: inline-grid; gap: 10px; text-align: left; font-family: var(--font-plex); color: var(--taupe-text); font-size: 20px; line-height: 1.1; }
.event-meta > div { display: flex; align-items: center; gap: 12px; }
.event-meta dt { padding-right: 12px; border-right: 1.5px solid #cbc5b6; align-self: stretch; display: flex; align-items: center; }
.event-meta svg { width: 32px; height: 32px; stroke: #8a8172; stroke-width: 1.2; fill: none; }
.event-meta .strong { font-weight: 600; text-transform: uppercase; }

/* =========================================================
   INNER PAGE HEROES
   ========================================================= */
.page-hero { position: relative; background: var(--navy); color: var(--cream); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -6vw; top: -18vw;
  width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; min-width: 220px; min-height: 220px;
  border-radius: 50%; background: var(--navy-soft);
}
.page-hero-inner {
  position: relative; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
}
.hero-welcome { font-weight: 600; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.05; letter-spacing: -.01em; }
.hero-welcome span { display: block; font-weight: 500; }
.hero-h1 { font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -.01em; }
.page-hero-lead { margin-top: 18px; max-width: 46em; color: var(--hero-text); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; }
/* Drawn as a background so it can animate (see MOTION below) */
.underline {
  background: linear-gradient(rgba(185, 194, 224, .75), rgba(185, 194, 224, .75)) 0 100% / 100% 3px no-repeat;
  padding-bottom: 2px;
}

.strip { position: relative; background: var(--taupe-strong); color: var(--cream); }
.strip-inner {
  display: block; width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto;
  padding: 14px 0; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: #fffef6;
}
.strip-inner::before { content: "\25C6"; margin-right: 12px; opacity: .75; }

.page-hero-wave { padding-bottom: 36px; }
.page-hero-wave::before { display: none; }
.page-hero-wave .wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--cream); }

/* ---------- Inner page body ---------- */
.page-body { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 8px 0 72px; }
.block { padding: 48px 0; border-bottom: 1px solid var(--line); }
.block-last { border-bottom: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-text); margin-bottom: 10px; }
.eyebrow-gold { color: #d7c391; }
.display-eyebrow { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #3f5aa6; margin-bottom: 28px; }
.block-h2 { font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 16px; }
.body-blue { color: var(--blue-text); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.75; max-width: 62em; }
.body-blue + .body-blue { margin-top: 14px; }
.body-muted { color: var(--taupe-text); font-size: 17px; line-height: 1.7; max-width: 62em; }

/* Icon tiles */
.icon-tile, .umbrella-icon {
  flex: none; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--cream);
}
.icon-tile svg, .umbrella-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile-sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-tile-sm svg { width: 20px; height: 20px; }

/* Card grid (values, benefits) */
.card-grid { display: grid; gap: 18px; margin-top: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--cream); }
.icon-card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 6px; }
.icon-card p { color: var(--taupe-text); font-size: 16px; line-height: 1.6; }
.icon-card-blue p { color: var(--blue-text); }

/* ---------- About: structure ---------- */
.umbrella, .callout, .doc-card {
  display: flex; align-items: center; gap: 22px;
  background: var(--navy); color: var(--cream); border-radius: 18px;
  padding: clamp(20px, 3vw, 32px);
}
.umbrella { margin-top: 28px; }
.umbrella .umbrella-icon, .callout .umbrella-icon, .doc-card .umbrella-icon { width: 60px; height: 60px; border-radius: 14px; background: rgba(255, 255, 255, .12); }
.umbrella h3, .callout h3, .doc-card h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.3; }
.umbrella p, .doc-card p { color: var(--hero-text); font-size: 16px; margin-top: 4px; }
.connector { width: 2px; height: 28px; background: #c9cde0; margin: 8px auto; }
.societies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.society { border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 18px 10px; }
.society strong { display: block; font-size: 21px; font-weight: 700; }
.society span { color: var(--taupe-text); font-size: 15px; }
.nonmember {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream-2);
  color: var(--blue-text); font-size: 16px;
}
.nonmember-label { background: #e6e3d7; color: var(--taupe-text); border-radius: 6px; padding: 3px 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.endorsed-bar {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  background: var(--navy); color: var(--hero-text); border-radius: 14px; padding: 16px 22px; font-size: 16px;
}
.endorsed-bar strong { color: var(--white); font-weight: 600; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #f3c143; }

.org-table { margin-top: 24px; background: var(--cream-2); border-radius: var(--radius); padding: 10px 24px; }
.org-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.org-table > div:last-child { border-bottom: 0; }
.org-table dt { color: var(--taupe-text); }
.org-table dd { font-weight: 600; text-align: right; }

/* ---------- Committee ---------- */
.election { background: var(--red); color: var(--white); text-align: center; padding: 28px 20px 26px; font-family: var(--font-plex); }
.election-icon { width: 40px; height: 40px; margin: 0 auto 6px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.election-title { font-weight: 400; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; }
.election-tagline { font-weight: 700; font-style: italic; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.25; }
.election-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; }
.btn-vote, .btn-outline-light {
  display: inline-block; text-decoration: none; border-radius: 999px; line-height: 1.2;
  font-size: clamp(17px, 1.8vw, 21px);
}
.btn-vote { background: var(--white); color: var(--red); font-weight: 700; padding: 9px 26px; }
.btn-vote:hover { background: #ffecec; }
.btn-outline-light { border: 1.5px solid var(--white); color: var(--white); padding: 8px 18px; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.election :focus-visible { outline-color: var(--white); }

.group-label { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.group-label span {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  border: 1px solid #cfd2e0; border-radius: 999px; padding: 6px 20px 6px 16px;
  font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.group-label span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 20px 22px 22px; }
.member-exec { position: relative; overflow: hidden; padding-top: 24px; }
.member-exec::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--navy); }
.member-exec:first-child::before { background: linear-gradient(90deg, var(--navy), var(--navy) 35%, var(--taupe)); }
.member-working { border-left: 4px solid #d3d6e3; }
.member-thai { color: var(--taupe-text); font-size: 15px; line-height: 1.5; }
.member-name { font-size: 20px; font-weight: 700; line-height: 1.3; }
.member-role { color: var(--taupe-text); font-size: 16px; margin-top: 2px; }
.role-badge { display: inline-block; margin-top: 10px; background: var(--badge); color: var(--navy); border-radius: 6px; padding: 3px 10px; font-size: 15px; font-weight: 500; }
.role-badge-lead { background: var(--navy); color: var(--white); }
.member-rep { text-align: center; padding: 26px 22px; }
.code-badge { display: inline-block; background: var(--navy); color: var(--white); border-radius: 6px; padding: 2px 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; }

.doc-card { justify-content: space-between; }
.doc-text { flex: 1; }

/* ---------- Membership ---------- */
.callout { align-items: flex-start; margin-top: 28px; }
.callout p { color: var(--hero-text); font-size: 16px; line-height: 1.7; margin-top: 6px; }
.callout .callout-tag { display: inline-block; margin-top: 14px; background: rgba(255, 255, 255, .14); color: var(--white); border-radius: 6px; padding: 4px 12px; font-weight: 600; letter-spacing: .06em; font-size: 15px; }

.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.apply-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.apply-top { padding: 16px 18px 14px; }
.apply-code { font-size: 12px; letter-spacing: .2em; color: var(--taupe-text); text-transform: uppercase; }
.apply-top h3 { font-size: 18px; font-weight: 600; }
.apply-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; background: var(--cream-2); border-top: 1px solid var(--line); font-size: 14px; }
.tag { background: #dfe3f0; color: var(--navy); border-radius: 5px; padding: 2px 8px; font-weight: 600; }
.apply-bottom a { color: var(--taupe-text); }
.apply-bottom a:hover { color: var(--navy); }

.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; background: #f1efe4; border-radius: var(--radius); padding: 16px 18px; color: var(--taupe-text); font-size: 15px; }
.note svg { flex: none; width: 22px; height: 22px; stroke: var(--taupe-text); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.note a { color: var(--navy); font-weight: 600; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { color: var(--taupe-text); font-size: 15px; }

/* ---------- Partnership ---------- */
.ways { background: var(--cream); border-bottom: 1px solid var(--line); }
.ways ul { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.ways a {
  display: block; text-align: center; text-decoration: none; font-weight: 600; font-size: 16px; color: #1b1b1b;
  border: 1.5px solid #d5d2c6; padding: 10px 12px; margin: 0 -0.75px; border-radius: 10px; background: var(--cream);
}
.ways a:hover { background: var(--white); }

.partner-box { margin-top: 28px; border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; }
.partner-box-head { background: var(--navy); color: var(--cream); padding: 24px 26px; }
.partner-box-head h3 { font-size: 22px; font-weight: 600; }
.partner-box-head p:last-child { color: var(--hero-text); margin-top: 6px; }
.partner-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; padding: 24px 26px 8px; }
.partner-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.partner-benefits h4 { font-size: 17px; font-weight: 600; }
.partner-benefits p { color: var(--taupe-text); font-size: 15px; }
.map-note { display: flex; align-items: center; gap: 14px; margin: 16px 26px 24px; background: #ecebe5; border-radius: 12px; padding: 14px 18px; font-size: 16px; }
.map-note p { flex: 1; }
.date-badge { flex: none; background: var(--navy); color: var(--white); border-radius: 6px; padding: 3px 12px; font-weight: 700; font-size: 14px; letter-spacing: .08em; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; align-items: stretch; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.tier-head { padding: 22px 22px 18px; }
.tier-name { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.tier-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tier-label { font-size: 15px; margin-top: 8px; }
.tier-amount { font-size: 26px; font-weight: 700; line-height: 1.2; }
.tier-inkind { font-size: 15px; margin-top: 4px; }
.tier-gold { border: 2px solid var(--gold); }
.tier-gold .tier-head { background: var(--navy); color: var(--white); }
.tier-gold .tier-name { color: var(--gold-dot); }
.tier-gold .tier-label, .tier-gold .tier-inkind { color: var(--hero-text); }
.tier-silver .tier-head { background: var(--taupe-strong); color: var(--white); }
.tier-silver .tier-label, .tier-silver .tier-inkind { color: var(--white); }
.tier-bronze .tier-head { background: var(--bronze-bg); color: var(--navy); }
.tier-bronze .tier-name { color: var(--taupe-text); }
.tier-bronze .tier-label, .tier-bronze .tier-inkind { color: var(--blue-text); }
.tier-perks { padding: 18px 22px 22px; display: grid; gap: 10px; }
.tier-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.tier-perks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #e7e8ea; color: var(--navy); margin-top: 1px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #f1efe4; border-radius: 16px; padding: 22px 26px; }
.cta h2 { font-size: 19px; font-weight: 600; }
.cta p { color: var(--taupe-text); font-size: 16px; }

/* ---------- Contact ---------- */
.contact {
  width: min(820px, 100% - 2 * var(--gutter)); margin: 0 auto; text-align: center;
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 100px);
  font-family: var(--font-plex); color: var(--taupe-text);
}
.contact-title { font-size: 20px; font-weight: 600; font-style: italic; color: var(--taupe-text); }
.contact-rule { display: block; width: 1.5px; height: 52px; background: #cdc8bd; margin: 8px auto 12px; }
.contact-sub { font-size: 20px; }
.contact-email { margin-top: 4px; font-size: clamp(26px, 4.2vw, 42px); font-weight: 600; font-style: italic; line-height: 1.25; overflow-wrap: anywhere; }
.contact-email a { color: var(--taupe-text); text-decoration: none; }
.contact-email a:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-uni { margin: clamp(40px, 6vw, 64px) auto 0; max-width: 30em; font-size: 20px; line-height: 1.15; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; margin-top: 56px; }
.contact-grid li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.contact-grid img { height: 52px; width: auto; }
.contact-grid a { font-size: 20px; font-weight: 600; color: var(--taupe-text); text-decoration: none; overflow-wrap: anywhere; }
.contact-grid a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid #ebe8de; font-family: var(--font-plex); color: #4a4a4a; }
.footer-inner {
  width: min(1240px, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
}
.footer-sponsors { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }
.footer-title { text-align: right; line-height: 1.05; padding-right: 18px; border-right: 1.5px solid #9a9a9a; }
.footer-title em { display: block; font-weight: 400; font-size: 22px; }
.footer-title strong { display: block; font-weight: 600; font-size: 26px; max-width: 6em; }
.sponsor-logos { display: flex; align-items: center; gap: 14px; }
.sponsor-logos img { height: 64px; width: auto; }
.footer-endorse { display: flex; align-items: center; gap: 16px; }
.footer-endorse img { height: 72px; width: auto; }
.footer-endorse p { padding-left: 16px; border-left: 1.5px solid #9a9a9a; max-width: 11em; line-height: 1.1; font-size: 17px; }
.footer-endorse strong { font-weight: 600; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 899px) {
  .card-grid-3, .tiers { grid-template-columns: 1fr; }
  .societies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-benefits { grid-template-columns: 1fr; }
  .tiers { max-width: 520px; }
}

@media (max-width: 680px) {
  .member-grid, .apply-grid { grid-template-columns: 1fr; }
  .ways ul { grid-template-columns: 1fr; gap: 8px; }
  .ways a { margin: 0; }
  .doc-card, .cta { flex-direction: column; align-items: flex-start; }
  .umbrella { align-items: flex-start; }
  .umbrella .umbrella-icon, .callout .umbrella-icon, .doc-card .umbrella-icon { width: 48px; height: 48px; }
  .map-note { flex-wrap: wrap; }
  .org-table > div { flex-direction: column; gap: 2px; }
  .org-table dd { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .group-label span { font-size: 13px; white-space: normal; flex: 0 1 auto; }
}

@media (max-width: 480px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid a, .contact-sub, .contact-uni { font-size: 17px; }
  .member, .icon-card { padding: 18px; }
  .callout, .umbrella { flex-direction: column; gap: 14px; }
  .page-hero-lead { line-height: 1.6; }
  .footer-sponsors { flex-direction: column; align-items: flex-start; }
  .footer-title { text-align: left; border-right: 0; padding-right: 0; }
}

/* =========================================================
   MOTION
   Load animations, scroll reveals and hover effects.
   Everything is switched off for people who ask for reduced motion
   (see the end of this file).
   ========================================================= */
@keyframes drop-in {
  from { opacity: 0; transform: translateY(-32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-x { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* ---------- Home: everything drops in from the top, in reading order ---------- */
.page-home .site-header { animation: drop-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.page-home .home-logo,
.page-home .home-title-main,
.page-home .home-title-sub,
.page-home .home-tagline,
.page-home .home-arrow,
.page-home .home-h2,
.page-home #social-links li,
.page-home .event,
.page-home .site-footer { animation: drop-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-home .home-logo       { animation-delay: .15s; }
.page-home .home-title-main { animation-delay: .3s; }
.page-home .home-title-sub  { animation-delay: .42s; }
.page-home .home-tagline    { animation-delay: .56s; }
.page-home .home-arrow      { animation-delay: .7s; }
.page-home #social .home-h2 { animation-delay: .84s; }
.page-home #social-links li:nth-child(1) { animation-delay: .96s; }
.page-home #social-links li:nth-child(2) { animation-delay: 1.06s; }
.page-home #social-links li:nth-child(3) { animation-delay: 1.16s; }
.page-home #social-links li:nth-child(n+4) { animation-delay: 1.26s; }
.page-home .home-events .home-h2 { animation-delay: 1.3s; }
.page-home .event:nth-child(1) { animation-delay: 1.42s; }
.page-home .event:nth-child(2) { animation-delay: 1.54s; }
.page-home .event:nth-child(n+3) { animation-delay: 1.66s; }
.page-home .site-footer { animation-delay: 1.4s; }

/* "You" gets its underline drawn in */
.brush {
  text-decoration: none;
  background: linear-gradient(rgba(253, 252, 240, .9), rgba(253, 252, 240, .9)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px;
}
.page-home .brush { animation: grow-x .6s ease-out 1.2s both; }
@keyframes grow-x-3 { from { background-size: 0 3px; } to { background-size: 100% 3px; } }
.underline { animation: grow-x-3 .7s cubic-bezier(.65, 0, .35, 1) .6s both; }

/* Scroll arrow keeps gently bobbing */
.home-arrow { transition: background-color .2s; }
.home-arrow:hover { background-color: rgba(253, 252, 240, .12); }
.home-arrow svg { animation: nudge 2s ease-in-out 1.6s infinite; }

.home-logo { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.home-logo:hover { transform: scale(1.05) rotate(-3deg); }

/* ---------- Inner pages: hero drops in on load ---------- */
.page-hero-inner > *,
.election > * { animation: drop-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.page-hero-inner > :nth-child(1), .election > :nth-child(1) { animation-delay: .05s; }
.page-hero-inner > :nth-child(2), .election > :nth-child(2) { animation-delay: .17s; }
.page-hero-inner > :nth-child(3), .election > :nth-child(3) { animation-delay: .29s; }
.page-hero-inner > :nth-child(4), .election > :nth-child(4) { animation-delay: .41s; }
.page-hero-inner > :nth-child(n+5), .election > :nth-child(n+5) { animation-delay: .53s; }
.strip-inner { animation: slide-in-left .7s cubic-bezier(.2, .7, .2, 1) .45s both; }
.page-hero::before { animation: fade-in 1s ease both, float 12s ease-in-out 1s infinite; }

/* Contact page: each line drops in, then the society emails */
.contact > * { animation: drop-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.contact > :nth-child(2) { animation-name: grow-y; transform-origin: top; animation-delay: .15s; }
.contact > :nth-child(3) { animation-delay: .3s; }
.contact > :nth-child(4) { animation-delay: .42s; }
.contact > :nth-child(5) { animation-delay: .56s; }
.contact > :nth-child(6) { animation: none; }
.contact-grid li { animation: drop-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.contact-grid li:nth-child(1) { animation-delay: .7s; }
.contact-grid li:nth-child(2) { animation-delay: .8s; }
.contact-grid li:nth-child(3) { animation-delay: .9s; }
.contact-grid li:nth-child(n+4) { animation-delay: 1s; }

/* ---------- Scroll reveal (classes added by script.js) ---------- */
.reveal {
  opacity: 0; transform: translateY(26px) scale(.98);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px -10px rgba(0, 36, 126, .35); }

@media (min-width: 900px) {
  .nav-links a { position: relative; transition: color .2s; }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: var(--navy); border-radius: 2px;
    transform: scaleX(0); transform-origin: right; transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .nav-links a:hover { text-decoration: none; }
  .nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}
@media (max-width: 899px) {
  .nav-links.open { animation: fade-in .2s ease both; }
  .nav-links.open li { animation: drop-in .35s cubic-bezier(.2, .7, .2, 1) both; }
  .nav-links.open li:nth-child(2) { animation-delay: .04s; }
  .nav-links.open li:nth-child(3) { animation-delay: .08s; }
  .nav-links.open li:nth-child(4) { animation-delay: .12s; }
  .nav-links.open li:nth-child(5) { animation-delay: .16s; }
  .nav-links.open li:nth-child(6) { animation-delay: .2s; }
  .nav-links a { transition: padding-left .2s, color .2s; }
  .nav-links a:hover { padding-left: 8px; }
}

/* ---------- Buttons ---------- */
.pill, .btn-light, .btn-outline, .btn-vote, .btn-outline-light, .ways a {
  transition: background-color .2s, color .2s, transform .2s cubic-bezier(.2, .7, .2, 1), box-shadow .2s;
}
.pill:hover, .btn-light:hover, .btn-outline:hover, .btn-outline-light:hover, .ways a:hover {
  transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(0, 36, 126, .45);
}
.pill:active, .btn-light:active, .btn-outline:active, .btn-vote:active, .btn-outline-light:active, .ways a:active { transform: translateY(0) scale(.97); }
.btn-light svg, .btn-outline svg { transition: transform .2s; }
.btn-light:hover svg, .btn-outline:hover svg { transform: translateX(3px); }
.btn-vote { animation: pulse-ring 2.2s ease-out 1.2s infinite; }
.btn-vote:hover { transform: translateY(-3px) scale(1.04); animation-play-state: paused; }

/* ---------- Cards ---------- */
.icon-card, .member, .society, .apply-card, .tier, .umbrella, .callout, .doc-card,
.partner-box, .cta, .note, .map-note, .nonmember, .endorsed-bar {
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.icon-card:hover, .member:hover, .society:hover, .apply-card:hover, .tier:hover {
  transform: translateY(-6px); box-shadow: 0 18px 34px -16px rgba(0, 36, 126, .38);
}
.icon-card:hover, .member-exec:hover, .member-rep:hover, .society:hover, .apply-card:hover { border-color: #c3c8de; }
.umbrella:hover, .callout:hover, .doc-card:hover, .partner-box:hover, .endorsed-bar:hover {
  transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(0, 36, 126, .55);
}
.cta:hover, .note:hover, .map-note:hover, .nonmember:hover { transform: translateY(-2px); }
.society:hover { background-color: var(--white); }
.society strong { transition: letter-spacing .3s; }
.society:hover strong { letter-spacing: .04em; }

.icon-tile, .umbrella-icon { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .3s; }
.icon-card:hover .icon-tile,
.umbrella:hover .umbrella-icon, .callout:hover .umbrella-icon, .doc-card:hover .umbrella-icon,
.partner-benefits li:hover .icon-tile { transform: rotate(-8deg) scale(1.12); }

.member-exec::before { transition: height .3s ease; }
.member-exec:hover::before { height: 7px; }
.member-working:hover { border-color: #c3c8de; border-left-color: var(--navy); }
.role-badge, .code-badge { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.member:hover .role-badge, .member:hover .code-badge { transform: scale(1.06); }

.apply-bottom { transition: background-color .3s; }
.apply-card:hover .apply-bottom { background-color: #eceadc; }

.steps li::before { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .3s; }
.steps li:hover::before { transform: scale(1.18); background: var(--indigo); }

.tier-perks svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background-color .3s; }
.tier:hover .tier-perks svg { transform: scale(1.12); background: #dfe3f0; }

.org-table > div { transition: padding-left .25s ease; }
.org-table > div:hover { padding-left: 8px; }

.contact-grid img { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.contact-grid li:hover img { transform: scale(1.12) rotate(-4deg); }

/* ---------- Footer ---------- */
.sponsor-logos img, .footer-endorse img { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sponsor-logos img:hover, .footer-endorse img:hover { transform: scale(1.08); }

/* ---------- Reduced motion: turn it all off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
