@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-ext-variable.d3c5911bfd9a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-variable.9591efe1be62.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #142126;
  --ink-soft: #4a5b60;
  --paper: #f7f4ee;
  --white: #ffffff;
  --deep: #132a2e;
  --deep-2: #1d3c41;
  --teal: #146c73;
  --teal-dark: #0c555b;
  --gold: #f0b83c;
  --coral: #df614e;
  --line: #d8dedc;
  --mist: #e8efec;
  --success: #176b45;
  --danger: #a42e31;
  --control-border: #62716f;
  --shadow: 0 20px 60px rgba(19, 42, 46, 0.12);
  --radius: 18px;
  --container: 1220px;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fredoka", "Arial Rounded MT Bold", "Trebuchet MS", ui-rounded, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.9rem); }
h3 { font-size: 1.5rem; }

:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--teal-dark);
}
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 850px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--deep);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(19, 42, 46, 0.1);
}
.header-accent {
  height: 5px;
  background: linear-gradient(90deg, #d83e3e 0 16.6%, #ef8a23 16.6% 33.2%, #eccb2e 33.2% 49.8%, #35874b 49.8% 66.4%, #3f68b1 66.4% 83%, #7651a2 83%);
}
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { flex: 0 0 auto; }
.brand img { width: 224px; }
.primary-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.primary-nav a,
.nav-logout button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.primary-nav a:hover,
.nav-logout button:hover,
.primary-nav a[aria-current="page"] { color: var(--teal-dark); background: var(--mist); }
.primary-nav .nav-join { padding-inline: 19px; color: var(--white); background: var(--deep); }
.primary-nav .nav-join:hover { color: var(--white); background: var(--teal-dark); }
.nav-logout { margin: 0; }
.nav-toggle {
  display: none;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
}
.nav-toggle-icon { display: grid; gap: 4px; }
.nav-toggle-icon span { display: block; width: 20px; height: 2px; background: currentColor; }

/* Reusable elements */
.eyebrow {
  margin-bottom: 18px;
  color: #ffe6a6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-dark { color: var(--teal-dark); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 21px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal-dark); border-color: var(--teal-dark); }
.button-primary:hover { color: var(--white); background: var(--deep); border-color: var(--deep); }
.button-primary:disabled { color: #6f7878; background: #d8dedd; border-color: #d8dedd; cursor: not-allowed; transform: none; }
.button-outline { color: var(--deep); background: transparent; border-color: var(--deep); }
.button-outline:hover { color: var(--white); background: var(--deep); }
.button-ghost-light { color: var(--white); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.68); }
.button-ghost-light:hover, .button-light { color: var(--deep); background: var(--white); border-color: var(--white); }
.button-light:hover { background: #f7df9f; border-color: #f7df9f; }
.button-text { min-height: 44px; padding-inline: 0; color: var(--ink-soft); background: none; text-decoration: underline; }
.button-full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; gap: 10px; margin-top: 12px; font-weight: 800; }
.section { padding-block: clamp(78px, 10vw, 130px); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-heading-row h2 { margin: 0; }
.section-heading-row.compact { align-items: center; margin-bottom: 28px; }
.section-heading-row.compact h2 { font-size: 2.25rem; }
.section-note { max-width: 410px; margin: 0; color: var(--ink-soft); }
.large-copy { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 500; line-height: 1.42; }

/* Homepage */
.hero { position: relative; min-height: min(760px, calc(100vh - 95px)); display: grid; align-items: center; overflow: hidden; color: var(--white); background: var(--deep); }
.hero-media, .hero-media::after { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after { content: ""; background: linear-gradient(90deg, rgba(9, 28, 31, 0.94) 0%, rgba(9, 28, 31, 0.74) 48%, rgba(9, 28, 31, 0.24) 78%, rgba(9, 28, 31, 0.3) 100%); }
.hero-inner { position: relative; z-index: 2; padding-block: 100px 130px; }
.hero-copy { max-width: 780px; }
.hero h1 { max-width: 780px; margin-bottom: 26px; color: var(--white); }
.hero h1 em { color: #f3cd6d; font-style: normal; font-weight: 560; }
.hero-lead { max-width: 680px; color: rgba(255,255,255,0.88); font-size: clamp(1.12rem, 2vw, 1.32rem); }
.hero-caption { position: absolute; z-index: 3; right: 30px; bottom: 22px; padding: 9px 14px; color: rgba(255,255,255,0.85); background: rgba(8,24,26,0.74); border-radius: 999px; font-size: 0.78rem; }
.hero-caption span { color: var(--white); font-weight: 800; }
.benefits { color: var(--white); background: var(--deep); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit-grid article { position: relative; min-height: 210px; padding: 42px 48px; border-right: 1px solid rgba(255,255,255,0.13); }
.benefit-grid article:last-child { border-right: 0; }
.benefit-grid h2 { margin-bottom: 12px; font-family: inherit; font-size: 1.22rem; font-weight: 800; letter-spacing: 0; }
.benefit-grid p { margin: 0; color: rgba(255,255,255,0.68); }
.benefit-number { display: block; margin-bottom: 25px; color: #f3cd6d; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; }
.section-intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr); align-items: center; gap: clamp(55px, 8vw, 110px); }
.section-copy h2 { max-width: 640px; margin-bottom: 30px; }
.section-copy > p:not(.eyebrow) { max-width: 650px; color: var(--ink-soft); }
.image-frame { position: relative; margin: 0; }
.image-frame::before { content: ""; position: absolute; top: -18px; right: -18px; width: 44%; height: 46%; background: var(--gold); border-radius: var(--radius); }
.image-frame img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-frame figcaption { position: relative; width: 78%; margin: -38px 0 0 22%; padding: 22px 25px; color: var(--white); background: var(--deep); border-radius: 12px; line-height: 1.45; }
.image-frame figcaption strong { display: block; color: #f3cd6d; }
.section-events { background: var(--white); }
.event-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-card { overflow: hidden; background: var(--paper); border: 1px solid #e2e3df; border-radius: var(--radius); transition: transform 180ms ease, box-shadow 180ms ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.event-card-media { display: block; overflow: hidden; background: var(--deep-2); }
.event-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 450ms ease; }
.event-card:hover .event-card-media img { transform: scale(1.035); }
.event-card-placeholder { display: block; aspect-ratio: 3/2; background: radial-gradient(circle at 30% 30%, rgba(240,184,60,0.38), transparent 30%), linear-gradient(135deg, var(--teal), var(--deep)); }
.event-card-body { display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 24px; }
.event-date-block { padding-right: 14px; border-right: 1px solid var(--line); text-align: center; }
.event-date-block span { display: block; color: var(--teal-dark); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.event-date-block strong { display: block; font-family: var(--font-display); font-size: 2.05rem; font-weight: 560; line-height: 1.15; }
.event-kicker { margin-bottom: 7px; color: var(--ink-soft); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.event-card h3 { margin-bottom: 10px; font-size: 1.45rem; }
.event-card h3 a { color: var(--ink); text-decoration: none; }
.event-card h3 a::after { content: ""; position: absolute; }
.event-card-body > div:last-child > p:not(.event-kicker):not(.event-location) { color: var(--ink-soft); }
.event-location { margin: 17px 0 0; color: var(--teal-dark); font-size: 0.88rem; font-weight: 750; }
.empty-state { grid-column: 1 / -1; padding: 42px; background: var(--paper); border: 1px dashed #b8c5c2; border-radius: var(--radius); text-align: center; }
.empty-state h3 { margin-bottom: 8px; }
.community-cta { color: var(--white); background: var(--teal-dark); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: clamp(50px, 9vw, 130px); }
.cta-grid h2 { max-width: 700px; margin: 0; }
.cta-grid > div:last-child p { margin-bottom: 26px; color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* Footer */
.site-footer { color: rgba(255,255,255,0.76); background: #0e2023; }
.newsletter-band { padding-block: 64px; color: var(--white); background: #17363a; border-bottom: 1px solid rgba(255,255,255,.13); }
.newsletter-band-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: clamp(45px, 8vw, 100px); }
.site-footer .newsletter-band h2 { max-width: 520px; margin-bottom: 14px; color: var(--white); font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 560; letter-spacing: -.018em; text-transform: none; }
.newsletter-band p:last-child { margin: 0; color: rgba(255,255,255,.7); }
.newsletter-mini-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 18px; }
.newsletter-fields { display: grid; grid-template-columns: .65fr 1.35fr; gap: 14px; }
.newsletter-mini-form label { display: block; margin-bottom: 6px; color: var(--white); font-size: .82rem; font-weight: 800; }
.newsletter-mini-form label span { color: rgba(255,255,255,.58); font-weight: 500; }
.newsletter-mini-form .form-control { color: var(--ink); background: var(--white); border-color: rgba(255,255,255,.7); }
.newsletter-consent { grid-column: 1 / -1; display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 9px; }
.newsletter-consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--gold); }
.newsletter-consent label { margin: 0; color: rgba(255,255,255,.78); font-size: .78rem; font-weight: 500; line-height: 1.45; }
.newsletter-consent a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.75fr 0.75fr; gap: 70px; padding-block: 74px 56px; }
.footer-brand img { width: 270px; margin-bottom: 25px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-brand p { max-width: 440px; }
.site-footer h2 { color: var(--white); font-family: inherit; font-size: 0.85rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; gap: 22px; padding-block: 23px; border-top: 1px solid rgba(255,255,255,0.13); font-size: 0.82rem; }
.footer-bottom p { margin: 0 auto 0 0; }

/* Messages */
.message-region { position: relative; z-index: 5; }
.site-message { margin-top: 18px; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 8px; box-shadow: 0 8px 30px rgba(19,42,46,.08); }
.site-message-success { border-left-color: var(--success); }
.site-message-error { border-left-color: var(--danger); }

/* Interior pages */
.page-hero { padding-block: clamp(80px, 10vw, 135px); color: var(--white); background: var(--deep); text-align: center; }
.page-hero::after { content: ""; display: block; width: 96px; height: 5px; margin: 34px auto -3px; background: linear-gradient(90deg, #d83e3e 0 20%, #ef8a23 20% 40%, #eccb2e 40% 60%, #35874b 60% 80%, #3f68b1 80%); border-radius: 4px; }
.page-hero h1 { margin-bottom: 23px; }
.page-hero p:last-child { max-width: 720px; margin-inline: auto; color: rgba(255,255,255,0.84); font-size: 1.18rem; }
.page-hero-events { background: linear-gradient(125deg, #132a2e, #1b5054); }
.page-hero-contact { background: linear-gradient(125deg, #203a3e, #73463e); }
.page-hero-whatsapp { background: linear-gradient(125deg, #173b35, #146c73); }
.page-hero-account { background: linear-gradient(125deg, #132a2e, #315d51); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: clamp(55px, 9vw, 120px); }
.prose { max-width: 760px; }
.prose p { margin-bottom: 1.4em; color: var(--ink-soft); font-size: 1.08rem; }
.prose p:first-child { color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.5; }
.prose h2 { margin-top: 1.5em; font-size: 2.2rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.65rem; }
.prose h4 { margin-top: 1.4em; font-size: 1.25rem; }
.prose ul, .prose ol { margin: 0 0 1.5em; padding-left: 1.5em; color: var(--ink-soft); font-size: 1.08rem; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 2em 0; padding: 24px 28px; color: var(--ink); background: var(--mist); border-left: 5px solid var(--teal); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { display: block; max-width: 100%; height: auto; margin-block: 2em; border-radius: 12px; }
.prose table { display: block; width: 100%; margin-block: 2em; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { min-width: 130px; padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { color: var(--white); background: var(--deep); }
.prose tr:nth-child(even) td { background: var(--mist); }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.prose pre { max-width: 100%; padding: 18px; overflow-x: auto; background: #e8ecea; border-radius: 8px; }
.prose hr { margin-block: 2.4em; border: 0; border-top: 1px solid var(--line); }
.content-aside, .contact-aside, .event-booking, .account-card { padding: 32px; background: var(--white); border-top: 5px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.content-aside h2, .contact-aside h2 { font-size: 2rem; }

/* Calendar */
.calendar-section { padding-bottom: 80px; background: var(--paper); }
.calendar-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 30px; }
.calendar-toolbar h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); text-align: center; }
.calendar-nav { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; width: max-content; color: var(--deep); font-weight: 800; text-decoration: none; }
.calendar-nav:last-child { justify-self: end; }
.calendar-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.calendar-table { width: 100%; min-width: 880px; border-collapse: collapse; table-layout: fixed; }
.calendar-table th { padding: 13px 12px; color: var(--white); background: var(--deep); border-right: 1px solid rgba(255,255,255,.11); font-size: 0.75rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.calendar-table td { height: 132px; padding: 10px; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-table td:last-child, .calendar-table th:last-child { border-right: 0; }
.calendar-table tbody tr:last-child td { border-bottom: 0; }
.calendar-table td > time { display: inline-grid; width: 30px; height: 30px; place-items: center; margin-bottom: 7px; border-radius: 50%; font-weight: 800; }
.calendar-table .is-today > time { color: var(--white); background: var(--teal-dark); }
.calendar-table .outside-month { color: #62716f; background: #f4f5f3; }
.calendar-event { display: block; margin-top: 5px; padding: 7px 8px; color: var(--deep); background: #dceceb; border-left: 3px solid var(--teal); border-radius: 5px; font-size: 0.78rem; font-weight: 750; line-height: 1.25; text-decoration: none; }
.calendar-event span { display: block; color: var(--teal-dark); font-size: .68rem; }
.month-list { display: none; }
.events-list-section { padding-top: 80px; }

/* Event details */
.event-hero { position: relative; min-height: 510px; display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--deep); }
.event-hero > img, .event-hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero-overlay { background: linear-gradient(0deg, rgba(8,27,29,.94), rgba(8,27,29,.22)); }
.event-hero-copy { position: relative; z-index: 2; padding-block: 80px 60px; }
.event-hero-copy h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5.2rem); }
.event-hero-copy > p:last-child { max-width: 700px; color: rgba(255,255,255,.83); font-size: 1.18rem; }
.back-link { display: inline-block; margin-bottom: 42px; color: var(--white); font-weight: 750; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: clamp(55px, 9vw, 120px); padding-block: 80px 120px; }
.event-description > h2:first-child { margin-bottom: 30px; }
.event-description > p:first-of-type { color: var(--ink-soft); font-family: inherit; font-size: 1.08rem; }
.expect-panel { margin-top: 45px; padding: 30px; background: var(--mist); border-radius: var(--radius); }
.expect-panel h2 { margin-bottom: 12px; font-size: 1.7rem; }
.expect-panel p { margin: 0; }
.event-booking { position: sticky; top: 30px; }
.event-booking h2 { margin-bottom: 22px; font-size: 1.75rem; }
.event-booking dl { margin: 0 0 28px; }
.event-booking dl div { display: grid; grid-template-columns: 88px 1fr; gap: 13px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.event-booking dt { color: var(--ink-soft); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.event-booking dd { margin: 0; font-weight: 750; }
.event-booking dd span { color: var(--ink-soft); font-weight: 400; }
.attendance-status { margin-bottom: 14px; padding: 13px; color: var(--success); background: #e4f1e9; border-radius: 8px; font-weight: 850; text-align: center; }
.booking-note { margin: 16px 0 0; color: var(--ink-soft); font-size: .9rem; text-align: center; }

/* Forms and authentication */
.form-panel { padding: clamp(28px, 5vw, 55px); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-panel > h2 { font-size: 2.4rem; }
.form-panel > p { color: var(--ink-soft); }
.form-group { margin-bottom: 22px; }
.form-group > label, .consent-fields legend { display: block; margin-bottom: 7px; color: var(--ink); font-size: .9rem; font-weight: 800; }
.form-control {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfcfb;
  border: 1px solid var(--control-border);
  border-radius: 8px;
}
textarea.form-control { min-height: 150px; resize: vertical; }
.form-control:focus { border-color: var(--teal-dark); }
.help-text { margin: 7px 0 0; color: var(--ink-soft); font-size: .83rem; }
.help-text ul { margin: 8px 0 0; padding-left: 20px; }
.field-errors, .form-errors { color: var(--danger); font-size: .88rem; font-weight: 750; }
.field-errors ul, .form-errors ul { margin: 6px 0 0; padding-left: 20px; }
.form-errors { margin-bottom: 22px; padding: 14px; background: #f9e8e8; border-left: 4px solid var(--danger); border-radius: 6px; }
.honeypot { display: none !important; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 45px; }
.contact-aside h3 { margin-top: 28px; font-size: 1.35rem; }
.contact-aside hr { margin-block: 30px; border: 0; border-top: 1px solid var(--line); }
.application-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: clamp(45px, 7vw, 90px); }
.application-aside { position: sticky; top: 30px; }
.application-steps { display: grid; gap: 25px; margin: 0; padding: 0; list-style: none; counter-reset: application-step; }
.application-steps li { position: relative; padding-left: 58px; counter-increment: application-step; }
.application-steps li::before { content: counter(application-step); position: absolute; top: 0; left: 0; display: grid; width: 40px; height: 40px; place-items: center; color: var(--white); background: var(--teal-dark); border-radius: 50%; font-weight: 850; }
.application-steps strong, .application-steps span { display: block; }
.application-steps span { margin-top: 4px; color: var(--ink-soft); }
.privacy-note { margin-top: 38px; padding: 28px; background: var(--mist); border-radius: var(--radius); }
.privacy-note h2 { margin-bottom: 10px; font-size: 1.65rem; }
.privacy-note p { margin-bottom: 8px; color: var(--ink-soft); }
.application-confirmation .auth-inner { max-width: 650px; }
.auth-section { min-height: 790px; display: grid; grid-template-columns: minmax(350px, .8fr) minmax(560px, 1.2fr); background: var(--white); }
.auth-art { position: relative; display: grid; align-items: end; overflow: hidden; padding: 60px; color: var(--white); background: linear-gradient(150deg, rgba(19,42,46,.2), rgba(19,42,46,.85)), url("../images/hero-pride.9fecb5fa0a2e.jpg") center/cover; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(19,42,46,.68)); }
.auth-art > div { position: relative; z-index: 1; display: grid; gap: 3px; }
.auth-art span { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 4.2rem); font-weight: 560; line-height: 1.05; }
.auth-art span:nth-child(2) { color: #f3cd6d; }
.auth-panel { display: grid; place-items: center; padding: 60px 40px; }
.auth-inner { width: min(100%, 520px); }
.auth-inner-wide { max-width: 650px; }
.auth-inner h1 { margin-bottom: 20px; font-size: clamp(2.6rem, 5vw, 4.4rem); }
.auth-inner > p:not(.eyebrow):not(.auth-switch) { color: var(--ink-soft); }
.auth-inner form { margin-top: 30px; }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox-row { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 9px; }
.checkbox-row input { width: 24px; height: 24px; margin: 0; accent-color: var(--teal-dark); }
.checkbox-row label { font-weight: 700; line-height: 1.4; }
.consent-fields { margin: 25px 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; }
.consent-fields legend { padding-inline: 6px; }
.consent-fields .form-group { margin-bottom: 14px; }
.consent-fields > p { margin: 6px 0 0; color: var(--ink-soft); font-size: .85rem; }
.consent-fields > p + .form-group { margin-top: 20px; }
.form-action-row { display: flex; justify-content: flex-end; margin: -8px 0 22px; font-size: .88rem; }
.auth-switch { margin: 22px 0 0; text-align: center; }
.simple-auth { min-height: 660px; display: grid; place-items: center; padding: 70px 20px; background: linear-gradient(140deg, var(--paper), var(--mist)); }
.simple-auth .auth-inner { padding: 46px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 60px; }
.dashboard-events { display: grid; gap: 14px; }
.dashboard-events article { display: grid; grid-template-columns: 78px 1fr; gap: 22px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.dashboard-events time { display: grid; padding-right: 18px; border-right: 1px solid var(--line); text-align: center; }
.dashboard-events time strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 560; }
.dashboard-events h3, .dashboard-events p { margin: 0; }
.dashboard-events h3 a { color: var(--ink); }
.dashboard-events p { color: var(--ink-soft); }
.account-card { text-align: center; }
.account-initial { display: grid; width: 82px; height: 82px; place-items: center; margin: 0 auto 20px; color: var(--white); background: var(--teal-dark); border-radius: 50%; font-family: var(--font-display); font-size: 2rem; font-weight: 560; }
.account-card h2 { margin-bottom: 4px; font-size: 1.8rem; }
.account-card > p { color: var(--ink-soft); }
.account-card dl div { padding-block: 15px; border-block: 1px solid var(--line); }
.account-card dt { color: var(--ink-soft); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.account-card dd { margin: 3px 0 0; font-weight: 750; }

@media (max-width: 1080px) {
  .header-inner { min-height: 78px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    max-height: calc(100vh - 100px);
    padding: 12px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .primary-nav[data-open="true"] { display: grid; }
  .primary-nav a, .nav-logout button { width: 100%; justify-content: flex-start; padding-inline: 15px; }
  .primary-nav .nav-join { justify-content: center; }
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 55px; }
  .event-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-section { grid-template-columns: minmax(320px, .7fr) minmax(520px, 1.3fr); }
  .auth-art { padding: 40px; }
}

@media (max-width: 820px) {
  .hero { min-height: 680px; }
  .hero-media img { object-position: 62% 50%; }
  .hero-media::after { background: linear-gradient(90deg, rgba(9,28,31,.96), rgba(9,28,31,.64)); }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { min-height: 0; padding: 31px 28px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .benefit-grid article:last-child { border-bottom: 0; }
  .benefit-number { margin-bottom: 12px; }
  .intro-grid, .cta-grid, .content-layout, .contact-grid, .application-grid, .event-detail-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 70px; }
  .content-aside, .contact-aside, .event-booking, .account-card { max-width: 580px; }
  .event-booking { position: static; }
  .application-aside { position: static; max-width: 620px; }
  .footer-grid { grid-template-columns: 1.3fr .7fr; }
  .footer-brand { grid-column: 1 / -1; }
  .newsletter-band-grid { grid-template-columns: 1fr; }
  .auth-section { display: block; min-height: 0; }
  .auth-art { min-height: 300px; align-items: center; }
  .auth-panel { padding-block: 70px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { gap: 10px; }
  .brand img { width: min(52vw, 190px); }
  .hero { min-height: 640px; }
  .hero-inner { padding-block: 76px 104px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-caption { right: 14px; bottom: 14px; left: 14px; text-align: center; }
  .button-row .button { width: 100%; }
  .section-heading-row { display: block; }
  .section-heading-row .button { margin-top: 20px; }
  .event-card-grid { grid-template-columns: 1fr; }
  .event-card-body { grid-template-columns: 50px 1fr; padding: 20px; }
  .image-frame::before { right: -8px; }
  .image-frame figcaption { width: 92%; margin-left: 8%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-brand { grid-column: auto; }
  .newsletter-mini-form { grid-template-columns: 1fr; }
  .newsletter-fields { grid-template-columns: 1fr; }
  .newsletter-mini-form .button { width: 100%; }
  .footer-bottom { flex-wrap: wrap; }
  .footer-bottom p { flex-basis: 100%; }
  .calendar-table-wrap { display: none; }
  .calendar-toolbar { grid-template-columns: auto 1fr auto; }
  .calendar-nav span { display: none; }
  .month-list { display: block; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
  .month-list h3 { font-size: 1.4rem; }
  .month-list > a { display: grid; grid-template-columns: 84px 1fr; gap: 15px; padding: 14px 0; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
  .month-list time span, .month-list time { color: var(--teal-dark); font-size: .85rem; }
  .month-list time strong { display: block; }
  .event-hero { min-height: 440px; }
  .event-hero-copy { padding-bottom: 40px; }
  .event-detail-grid { padding-block: 55px 85px; }
  .form-two-columns { grid-template-columns: 1fr; gap: 0; }
  .auth-panel { padding: 55px 18px; }
  .auth-art { min-height: 240px; padding: 28px; }
  .simple-auth .auth-inner { padding: 30px 22px; }
  .dashboard-events article { grid-template-columns: 64px 1fr; gap: 15px; padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  .header-accent, .page-hero::after { background: CanvasText; }
  .button { border-color: ButtonText; }
}
