/* Colours are the banners' own (site_content.json palette). Text is navy or
   black on white/lavender only; yellow is used for chips and stripes,
   never for text. Phone layout first; wider screens add columns. */
:root {
  --bg: #F2F1F9;
  --navy: #1F3254;
  --indigo: #283C8B;
  --blue: #1183C3;
  --yellow: #ECC218;
  --black: #201C20;
  --green: #17A04A;
  --red: #E3202B;
  --card: #FFFFFF;
  --muted: #4A4F63;
  --line: #DCDAEA;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
a { color: var(--indigo); }
img { max-width: 100%; height: auto; }

.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }

/* ---------- header + nav ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: auto; }
.brand strong { display: block; font-size: 15px; line-height: 1.25; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav > ul { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 8px 0 6px; }
nav a, nav summary {
  display: block; padding: 8px 10px; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px;
  cursor: pointer;
}
nav a:hover, nav summary:hover { background: var(--bg); }
nav a[aria-current="page"], .sub.on > summary { background: var(--navy); color: #fff; }
nav summary { list-style: none; }
nav summary::-webkit-details-marker { display: none; }
nav summary::after { content: " ▾"; font-size: 12px; }
.sub { position: relative; }
.sub ul {
  position: absolute; z-index: 5; top: 100%; right: 0; min-width: 220px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 6px; box-shadow: 0 8px 24px rgba(31, 50, 84, .15);
}
.sub ul a[aria-current="page"] { background: var(--bg); color: var(--navy); }

/* ---------- page frame ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; }
.pagehead { color: var(--navy); font-size: 26px; margin: 4px 0 4px; }
.lead { color: var(--muted); margin: 0 0 18px; }

.btn {
  display: inline-block; padding: 10px 16px; border-radius: 10px;
  background: var(--card); color: var(--navy); border: 2px solid var(--navy);
  font-weight: 700; text-decoration: none;
}
.btn.primary { background: var(--navy); color: #fff; }

/* ---------- home ---------- */
.hero {
  display: grid; gap: 16px; align-items: center; justify-items: center;
  text-align: center; background: var(--card); border-radius: 16px;
  padding: 20px 16px; border: 1px solid var(--line);
}
.hero-logo { width: 150px; }
.hero h1 { color: var(--navy); font-size: 24px; line-height: 1.25; margin: 0 0 4px; }
.hero .when { margin: 0 0 10px; font-weight: 700; color: var(--indigo); }
.hero .welcome { margin: 0 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tiles { display: grid; gap: 12px; margin: 18px 0; }
.tiles a {
  display: block; background: var(--card); border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 6px solid var(--rail);
  text-decoration: none; color: var(--black);
}
.tiles strong { display: block; color: var(--navy); font-size: 17px; }
.tiles span { color: var(--muted); font-size: 14px; }
.note { color: var(--muted); }

/* ---------- schedule ---------- */
.sched { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sched h2 { margin: 0 0 6px; font-size: 19px; color: var(--navy); line-height: 1.25; }
.date {
  display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--black); font-weight: 700; font-size: 14px;
}
.venue { margin: 0; font-size: 15px; }
.venue a { font-weight: 600; }
.pin { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--blue); }
.sport {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center;
  background: var(--card); border-radius: 14px; padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-top: 6px solid var(--rail);
}
.sport img { width: 112px; border-radius: 10px; background: var(--bg); }
.res {
  display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px;
  color: #fff; background: var(--green); padding: 4px 12px; border-radius: 8px; text-decoration: none;
}
.ceremony {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 16px 18px;
  border-top: 6px solid var(--yellow);
}
.ceremony h2 { color: #fff; font-size: 21px; }
.ceremony .venue a { color: #fff; }
.ceremony .pin { color: #fff; text-decoration: underline; }

/* ---------- people ---------- */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.people li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center;
  background: var(--card); border-radius: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-left: 6px solid var(--rail);
}
.people .sp { grid-column: 1; font-weight: 700; color: var(--navy); }
.people .name { grid-column: 1; color: var(--black); font-size: 15px; }
.people .tel {
  grid-column: 2; grid-row: 1 / span 2; font-weight: 700; white-space: nowrap;
  text-decoration: none; border: 2px solid var(--blue); color: var(--navy);
  padding: 6px 10px; border-radius: 10px; font-variant-numeric: tabular-nums;
}
.committees { display: grid; gap: 12px; align-items: start; }
.committee {
  background: var(--card); border-radius: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-top: 6px solid var(--rail);
}
.committee h2 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.committee ul { margin: 0; padding-left: 18px; }
.committee li { margin: 4px 0; }

/* ---------- gallery + contact ---------- */
.days, .mails { list-style: none; padding: 0; display: grid; gap: 10px; }
.mails .btn, .days .btn { overflow-wrap: anywhere; }
.empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px;
  padding: 24px 16px; text-align: center; font-weight: 600; color: var(--navy);
}

/* ---------- footer ---------- */
footer {
  background: var(--card); border-top: 1px solid var(--line); text-align: center;
  padding: 18px 16px; color: var(--muted); font-size: 14px;
}
.orgs { display: flex; justify-content: center; gap: 18px; align-items: center; }
.orgs img { height: 52px; width: auto; }
footer p { margin: 6px 0; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 24px; }
  nav > ul { padding: 0; }
  .brand img { width: 46px; }
  .brand strong { font-size: 16px; }
  .hero { grid-template-columns: 200px 1fr; text-align: left; justify-items: start; padding: 28px; }
  .hero-logo { width: 190px; }
  .hero h1 { font-size: 30px; }
  .actions { justify-content: flex-start; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .sched { grid-template-columns: repeat(2, 1fr); }
  .ceremony { grid-column: 1 / -1; }
  .sport { grid-template-columns: 130px 1fr; }
  .sport img { width: 130px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .committees { grid-template-columns: repeat(2, 1fr); }
  .committee:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .sched { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
}

/* generated by build.mjs from site_content.json palette */
.r0 { --rail: #1183C3; }
.r1 { --rail: #17A04A; }
.r2 { --rail: #E3202B; }
.r3 { --rail: #283C8B; }
.r4 { --rail: #0D8658; }
.r5 { --rail: #4EC1E2; }
.r6 { --rail: #ECC218; }
.stripe .s0 { background: #1183C3; }
.stripe .s1 { background: #ECC218; }
.stripe .s2 { background: #201C20; }
.stripe .s3 { background: #17A04A; }
.stripe .s4 { background: #E3202B; }
