:root {
  /* responsive tokens (guide: mobile <600, tablet 600-991, desktop 992-1439, ultra-wide 1440+) */
  --pad-x: 2rem;
  --sec-y: 6rem;
  --h1: clamp(1.75rem, 1.25rem + 2.2vw, 3.25rem);
  --h2: clamp(1.375rem, 1rem + 1.4vw, 2.5rem);
  --h3: clamp(1.125rem, 1rem + 0.6vw, 1.625rem);
}
@media (min-width: 600px) and (max-width: 991px) { :root { --pad-x: 1.5rem; --sec-y: 3.5rem; } }
@media (max-width: 599px) { :root { --pad-x: 1rem; --sec-y: 2rem; } }
@media (max-width: 599px) { html { font-size: 93.75%; } }
@media (min-width: 1440px) { :root { --pad-x: 3rem; --sec-y: 7rem; } }
/* Events page. Layout follows the structure of nsw.swimming.org.au/events
   (photo hero with a huge title, upcoming-events rows with an "enter here" link, resource cards),
   restyled with Shelly's colours, type and shapes. */
.ev-hero, .ev-sec, .ev-cta { font-family: "Instrument Sans", Poppins, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: #0b2545; }
.ev-hero *, .ev-sec *, .ev-cta * { box-sizing: border-box; }
:where(.ev-hero h1, .ev-hero p, .ev-sec h2, .ev-sec h3, .ev-sec p, .ev-cta h2, .ev-cta p) { margin: 0; }

/* buttons (same look as the rest of the site) */
.ev-hero .btn, .ev-cta .btn { display: inline-block; border: 0; border-radius: 999px; cursor: pointer; font: 600 0.9375rem "Instrument Sans", Poppins, sans-serif; padding: 15px 26px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.ev-hero .btn-orange, .ev-cta .btn-orange { background: #ff8a2b; color: #0b2545; }
.ev-hero .btn-orange:hover, .ev-cta .btn-orange:hover { background: #ffa04d; color: #0b2545; }
.ev-hero .btn-ghost, .ev-cta .btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.8); color: #fff; padding: 13.5px 26px; }
.ev-hero .btn-ghost:hover, .ev-cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ===== hero ===== */
.ev-hero { position: relative; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: linear-gradient(120deg, #065a9f 0%, #086cc1 55%, #2b8fd9 100%); }
.ev-hero::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 18px, rgba(255, 255, 255, 0.11) 18px 36px); }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 38, 66, 0.35) 0, rgba(4, 38, 66, 0) 40%, rgba(4, 30, 56, 0.7) 100%); }
.ev-hero-in { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 72px var(--pad-x) 64px; }
.ev-back { display: inline-block; margin-bottom: 36px; font: 600 0.875rem "Instrument Sans", Poppins, sans-serif; color: #fff; text-decoration: none; opacity: 0.9; }
.ev-back:hover { opacity: 1; color: #fff; text-decoration: underline; }
.ev-eyebrow { display: flex; align-items: center; gap: 16px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; }
.ev-eyebrow::after { content: ""; width: 64px; height: 2px; background: #fff; }
.ev-h1 { margin-top: 18px; font-size: var(--h1); line-height: 0.95; font-weight: 600; letter-spacing: -2px; text-transform: uppercase; text-shadow: 0 2px 24px rgba(0, 30, 55, 0.35); }
.ev-lead { margin-top: 24px; max-width: 600px; font-size: 1.125rem; line-height: 1.875rem; color: #eaf3ff; }
.ev-hero-btns { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== sections ===== */
.ev-sec { padding: var(--sec-y) var(--pad-x); background: #fff; }
.ev-alt { background: #eaf3fb; }
.ev-wrap { max-width: 1180px; margin: 0 auto; }
.ev-eyebrow-c { text-align: center; font-size: 0.8125rem; font-weight: 600; letter-spacing: 3px; color: #086cc1; text-transform: uppercase; }
.ev-h2 { margin-top: 12px; text-align: center; font-size: var(--h2); line-height: 1.05; font-weight: 600; letter-spacing: -1px; text-transform: uppercase; }
.ev-sub { margin: 16px auto 0; max-width: 640px; text-align: center; font-size: 1.0625rem; line-height: 1.75rem; color: #4a5f7d; }

/* filter chips */
.ev-chips { margin-top: 32px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ev-chips button { background: #fff; color: #0b2545; border: 1.5px solid #cfdcf0; border-radius: 999px; padding: 10px 20px; font: 600 0.875rem "Instrument Sans", Poppins, sans-serif; cursor: pointer; }
.ev-chips button:hover { border-color: #086cc1; }
.ev-chips button[aria-pressed="true"] { background: #086cc1; border-color: #086cc1; color: #fff; }

/* event rows */
.ev-list { margin-top: 40px; border-top: 1.5px solid #d9e6f3; }
.ev-row { border-bottom: 1.5px solid #d9e6f3; }
.ev-row[hidden] { display: none; }
.ev-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) 250px auto; gap: 12px 24px; align-items: center; padding: 26px 4px; }
.ev-tag { justify-self: start; border-radius: 999px; padding: 6px 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.ev-tag.t-comp { background: #eaf3fb; color: #065a9f; border: 1.5px solid #cfe3f6; }
.ev-tag.t-train { background: #fff3e6; color: #7a3a00; border: 1.5px solid #ffd5a8; }
.ev-title { font-size: var(--h3); line-height: 1.2; font-weight: 500; letter-spacing: -0.4px; }
.ev-place { margin-top: 4px; font-size: 0.9375rem; color: #4a5f7d; }
.ev-date { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ev-done { display: block; margin-top: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #4a5f7d; }
.ev-actions { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.ev-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #086cc1; background: #fff; color: #086cc1; font: 500 1.375rem/1 "Instrument Sans", Poppins, sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.ev-toggle:hover, .ev-toggle[aria-expanded="true"] { background: #086cc1; color: #fff; }
.ev-enter { font-size: 0.875rem; font-weight: 700; letter-spacing: 1.4px; color: #086cc1; text-decoration: none; white-space: nowrap; }
.ev-enter:hover { color: #065a9f; text-decoration: underline; text-underline-offset: 4px; }
.ev-row.is-past .ev-title { color: #1f3556; }
.ev-detail { padding: 0 4px 32px; }
.ev-detail > p { max-width: 760px; font-size: 1.0625rem; line-height: 1.75rem; color: #4a5f7d; }
.ev-facts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ev-facts > div { background: #f3f8ff; border-radius: 16px; padding: 14px 18px; }
.ev-alt .ev-facts > div { background: #fff; }
.ev-facts dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #4a5f7d; }
.ev-facts dd { margin: 6px 0 0; font-size: 1rem; line-height: 1.5rem; overflow-wrap: anywhere; }
.ev-none { margin-top: 24px; text-align: center; font-size: 1.0625rem; color: #4a5f7d; }
.ev-none[hidden] { display: none; }

/* training schedule */
.ev-train { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ev-table-wrap { background: #fff; border: 1.5px solid #d9e6f3; border-radius: 28px; padding: 8px 28px; overflow-x: auto; }
.ev-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ev-table th, .ev-table td { text-align: left; padding: 18px 12px 18px 0; border-bottom: 1px solid #e3edf7; white-space: nowrap; }
.ev-table thead th { font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #4a5f7d; }
.ev-table tbody th { font-weight: 600; }
.ev-table tbody tr:last-child th, .ev-table tbody tr:last-child td { border-bottom: 0; }
.ev-table a { color: #086cc1; text-decoration: underline; text-underline-offset: 3px; }
.ev-side { background: #086cc1; color: #fff; border-radius: 28px; padding: 28px; background-image: repeating-linear-gradient(115deg, #0a63b0 0 22px, #0b70c8 22px 44px); }
.ev-side h3 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
.ev-side h3:not(:first-child) { margin-top: 28px; }
.ev-fees { margin-top: 14px; display: grid; gap: 10px; }
.ev-fee { background: rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; }
.ev-fee b { font-size: 2rem; font-weight: 500; letter-spacing: -0.5px; }
.ev-fee span { font-size: 1rem; font-weight: 600; }
.ev-fee small { grid-column: 2; font-size: 0.8125rem; color: #dbe7f7; }

/* resource cards */
.ev-cards { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.ev-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: 28px; border-radius: 28px; text-decoration: none; color: inherit; transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.35s ease; }
.ev-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(8, 108, 193, 0.2); color: inherit; }
.ev-card h3 { font-size: var(--h3); line-height: 1.15; font-weight: 500; letter-spacing: -0.5px; }
.ev-card p { font-size: 1rem; line-height: 1.5625rem; opacity: 0.9; }
.ev-more { margin-top: auto; font-size: 0.8125rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.ev-card.c1 { background: #086cc1; color: #fff; }
.ev-card.c2 { background: #ff8a2b; color: #0b2545; }
.ev-card.c3 { background: #0b2545; color: #fff; }
.ev-card.c4 { background: #fff; color: #0b2545; border: 1.5px solid #d9e6f3; }

/* links to addresses, emails and phone numbers */
.ev-a { color: #086cc1; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ev-a:hover { color: #065a9f; }
.ev-place .ev-a { font-weight: 500; }
.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pill { display: inline-block; border: 1.5px solid #086cc1; color: #086cc1; border-radius: 999px; padding: 9px 16px; font-size: 0.875rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; transition: background 0.2s, color 0.2s; }
.ev-pill:hover { background: #086cc1; color: #fff; }
.ev-card.c4 .ev-more { color: #086cc1; text-decoration: none; }
.ev-card.c4 .ev-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.ev-card.c4:hover { transform: none; box-shadow: none; }

/* call to action */
.ev-cta { padding: calc(var(--sec-y) * 0.85) var(--pad-x); background: linear-gradient(135deg, #086cc1, #05528f); color: #fff; }
.ev-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap; }
.ev-cta .ev-h2, .ev-cta .ev-eyebrow-c { text-align: left; color: #fff; }
.ev-cta p { margin-top: 16px; max-width: 520px; font-size: 1.125rem; line-height: 1.875rem; color: #eaf3ff; }
.ev-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .ev-head { grid-template-columns: minmax(0, 1fr) auto; }
  .ev-tag { grid-column: 1; }
  .ev-main { grid-column: 1 / -1; }
  .ev-date { grid-column: 1; }
  .ev-actions { grid-column: 2; grid-row: 1 / span 1; }
  .ev-train { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ev-hero { min-height: 520px; }
    .ev-head { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .ev-actions { grid-column: 1; grid-row: auto; justify-content: space-between; }
  .ev-title { font-size: 1.3125rem; }
  .ev-table-wrap { padding: 4px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ev-card { transition: none; } }

/* brand cursor: a small blue dot, and a ring with an orange centre over anything clickable (mouse and trackpad only) */
@media (hover: hover) and (pointer: fine) {
  html { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5.5' fill='%23086CC1' stroke='white' stroke-width='2.5'/></svg>") 12 12, auto; }
  a, button, summary, select, label[for], [role="button"], [role="option"], [onclick],
  [style*="cursor: pointer"], [style*="cursor:pointer"] { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='11.5' fill='none' stroke='white' stroke-width='5'/><circle cx='16' cy='16' r='11.5' fill='none' stroke='%23086CC1' stroke-width='2.5'/><circle cx='16' cy='16' r='3.2' fill='%23FF8A2B' stroke='white' stroke-width='1.5'/></svg>") 16 16, pointer !important; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]), textarea { cursor: text; }
  :disabled, [aria-disabled="true"] { cursor: not-allowed !important; }
}

/* display type: Fraunces (soft serif) for headings, in the spirit of Abbotsleigh's Recife display face */
h1, h2, h3, .prog-title, .ven-name, .ven-cap, .f-tag, .quiz-q, .stats b, .shname, .ev-fee b {
  font-family: "Fraunces", Georgia, "Times New Roman", "PingFang SC", "Songti SC", "Microsoft YaHei", serif !important;
  font-weight: 400 !important; letter-spacing: -0.015em !important; font-optical-sizing: auto; text-transform: none !important;
}
@media (max-width: 700px) { .ev-pills { flex-wrap: nowrap; gap: 5px; } .ev-pill { font-size: clamp(0.5625rem, 2.7vw, 0.8125rem); padding: 8px 9px; white-space: nowrap; overflow-wrap: normal; } }
