/* ---------- Theme A: UWA-style (approximated, no official brand guide) ---------- */
body.uwa {
  --brand: #27348b; --brand-dark: #1b2466; --accent: #e2b600;
  --ink: #1d1d1f; --muted: #5b5f6b; --bg: #ffffff; --soft: #f4f5f9; --line: #e2e4ec;
  --head-font: 'Source Sans 3', system-ui, sans-serif;
}
/* ---------- CAB palette options — pick one, then we lock it in ---------- */
/* A: Deep indigo + coral (recommended) */
body.pal-a {
  --brand: #2D4B8A; --brand-dark: #1e3366; --accent: #E05A2B;
  --ink: #1a1a2e; --muted: #5b5f6b; --bg: #ffffff; --soft: #f0f2f8; --line: #dde0ea;
  --head-font: 'Space Grotesk', system-ui, sans-serif;
}
/* B: Ocean teal + amber */
body.pal-b {
  --brand: #005000; --brand-dark: #003800; --accent: #F4A324;
  --ink: #0d1a0d; --muted: #4a664a; --bg: #ffffff; --soft: #eef7ee; --line: #bdd8bd;
  --head-font: 'Space Grotesk', system-ui, sans-serif;
}
/* C: Deep navy + electric teal */
body.pal-c {
  --brand: #1A2B6B; --brand-dark: #111f52; --accent: #00B4C8;
  --ink: #12192b; --muted: #5a637a; --bg: #ffffff; --soft: #eef1f8; --line: #d4d9e8;
  --head-font: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 'Source Sans 3', system-ui, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.2; margin: 0 0 .5em; }
.wrap { width: 100%; padding: 0 40px; box-sizing: border-box; }

/* header */
header { background: var(--brand); color: #fff; }
header .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { height: 60px; background: #fff; border-radius: 8px; padding: 5px 12px; display: block; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; font-size: 17px; }
nav a:hover { background: rgba(255,255,255,.12); }
nav a.on { background: #fff; color: var(--brand); }

/* hero (About only) */
.hero { position: relative; min-height: 190px; background: #001800; display: flex; align-items: flex-end; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,24,0,.75) 0%, rgba(0,24,0,0) 60%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; color: #fff; padding-block: 18px; width: 100%; text-align: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); color: #fff; max-width: 20ch; text-shadow: 0 2px 12px rgba(0,0,0,.4); margin-left: auto; margin-right: auto; }
.hero .hero-sub { margin: 0; font-size: 18px; opacity: .9; }
.hero .hero-stat { display: flex; gap: 24px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.hero .hero-stat span { display: flex; flex-direction: column; }
.hero .hero-stat strong { font-size: 32px; font-family: var(--head-font); line-height: 1; color: var(--accent); }
.hero .hero-stat small { font-size: 13px; opacity: .75; margin-top: 2px; }

main { padding-block: 40px 60px; flex: 1; }
.page { display: none; } .page.on { display: block; }
.lead { font-size: 18px; }
.card-box { background: var(--soft); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 4px; margin-top: 24px; }
.about-row { display: flex; gap: 36px; align-items: flex-start; margin-top: 20px; }
.about-row .about-text { flex: 1 1 0; }
.about-row .about-photo { flex: 0 0 340px; }
.about-row .about-photo img { width: 100%; border-radius: 10px; display: block; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
@media (max-width: 720px) { .about-row { flex-direction: column; } .about-row .about-photo { flex: none; width: 100%; } }

/* executive cards */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 10px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; background: var(--soft); }
.person .info { padding: 14px 16px 16px; font-size: 14.5px; }
.person h3 { font-size: 18px; margin-bottom: 2px; }
.person .role { color: var(--brand); font-weight: 600; font-size: 13.5px; margin-bottom: 4px; }
.person .aff { color: var(--muted); margin-bottom: 8px; }
.person a { word-break: break-all; font-size: 13.5px; }
.person.lead-person { grid-column: 1 / -1; flex-direction: row; max-width: 640px; }
.person.lead-person img { width: 220px; flex: none; }
@media (max-width: 560px) { .person.lead-person { flex-direction: column; } .person.lead-person img { width: 100%; } }

/* members table */
.tools-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.tools-row input { flex: 1 1 260px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 6px; }
.count { color: var(--muted); font-size: 14px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--soft); font-weight: 700; cursor: pointer; user-select: none; }
th::after { content: ' ↕'; color: var(--muted); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td.aff { white-space: normal; }

/* tool / partner tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; text-decoration: none; color: inherit; display: block; }
.tile:hover { border-color: var(--brand); }
.tile h3 { font-size: 18px; color: var(--brand); }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tile.logo { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.tile.logo img { max-height: 70px; max-width: 80%; }

.news { list-style: none; padding: 0; columns: 2 260px; }
.news li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

footer { background: var(--brand-dark); color: rgba(255,255,255,.85); font-size: 14px; }
footer .wrap { padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: #fff; }
.newsletter-iframe { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; margin-top: 12px; min-height: 600px; }
.btn { display: inline-block; padding: 10px 20px; background: var(--brand); color: #fff; border-radius: 6px; text-decoration: none; font-weight: 600; margin-top: 12px; }
.archive-toggle { background: none; border: none; color: var(--brand); font: 600 15px/1 inherit; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.archive-list { display: none; margin-top: 10px; }
.archive-list.open { display: block; }
