@import url("https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600;700;800;900&display=swap");

/* Layout refresh marker for deployment. */
:root {
  --navy: #061744;
  --navy-2: #0b2558;
  --ink: #102342;
  --muted: #66748a;
  --line: #dbe5f2;
  --blue: #006bff;
  --blue-2: #0056d6;
  --cyan: #40c4ef;
  --yellow: #ffd22e;
  --green: #e8f7ed;
  --orange: #fff0dc;
  --white: #ffffff;
  --surface: #f7faff;
  --shadow: 0 18px 44px rgba(6, 23, 68, 0.12);
  --brand-font: "Google Sans", "Product Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --label-tracking: 0.16em;
}

.entry-page {
  margin: 0;
  color: var(--ink);
  background: #f6f9fc;
  font-family: var(--brand-font);
}

.entry-page .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.entry-page .brand-logo {
  display: block;
  width: 210px;
  max-width: 42vw;
  height: auto;
}

.entry-page .main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.entry-page .main-nav a {
  color: #26344f;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.entry-page .main-nav a.active {
  color: var(--blue);
}

.entry-layout {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.entry-modal-body {
  background: #fff;
}

.entry-modal-body .entry-layout {
  width: min(1080px, calc(100% - 28px));
  padding: 18px 0 26px;
}

.entry-modal-body .entry-card {
  box-shadow: none;
}

.entry-hero {
  margin-bottom: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #102342, #0b2558);
  color: #fff;
  box-shadow: var(--shadow);
}

.entry-hero h1 {
  max-width: 850px;
  margin: 4px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.entry-hero p {
  margin: 0;
  color: rgba(255,255,255,.82);
}

.entry-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 35, 70, 0.08);
  overflow: hidden;
}

.entry-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.entry-form-header h2,
.entry-success h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
}

.entry-form-header span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 13px;
  font-weight: 750;
}

.entry-form {
  display: grid;
  gap: 18px;
}

.entry-form .entry-section {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  margin: 0;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 26px);
  background: #fbfdff;
}

.entry-form .entry-section h3,
.entry-indemnity h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.entry-section-body {
  width: 100%;
  min-width: 0;
}

.entry-form label {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  color: #26344f;
  font-size: 13px;
  font-weight: 650;
}

.entry-label-text {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #26344f;
}

.entry-label-text b {
  color: #d91d2a;
  font-weight: 800;
}

.entry-form input,
.entry-form select,
.entry-form textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 44px;
  border: 1px solid #ccd8e8;
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 450;
}

.entry-form input:focus,
.entry-form select:focus,
.entry-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
  outline: none;
}

.entry-form textarea {
  min-height: 116px;
  resize: vertical;
}

.entry-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
}

.entry-grid:last-child,
.entry-section-body > label:last-child {
  margin-bottom: 0;
}

.entry-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-field-wide {
  width: 100%;
}

.entry-form [hidden] {
  display: none !important;
}

.entry-field-hint {
  color: #66748a;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
}

.entry-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
  margin-top: 2px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  font-weight: 700;
}

.entry-checkbox input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}

.entry-indemnity {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  margin: 0;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 26px);
  background: #fff;
}

.entry-indemnity p,
.entry-success p {
  margin: 0 0 12px;
  color: #48566f;
  font-size: 14px;
  line-height: 1.7;
}

.entry-indemnity .entry-checkbox {
  margin-top: 12px;
}

.entry-alert {
  margin-bottom: 22px;
  border: 1px solid #f2b4ba;
  border-radius: 8px;
  padding: 15px 17px;
  color: #7d111b;
  background: #fff2f3;
}

.entry-alert ul {
  margin: 8px 0 0;
}

.entry-success-note {
  margin-bottom: 18px;
  border: 1px solid #b9e3c5;
  border-radius: 8px;
  padding: 13px 15px;
  color: #245c32;
  background: #f1fbf4;
  font-size: 14px;
}

.entry-auth-card {
  display: grid;
  gap: 18px;
}

.entry-auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.entry-auth-layout-simple {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
}

.entry-auth-layout-three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, .75fr);
}

.entry-auth-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid #e3ebf5;
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 24px);
  background: #fbfdff;
}

.entry-auth-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.entry-auth-panel label {
  display: grid;
  gap: 8px;
  color: #26344f;
  font-size: 13px;
  font-weight: 650;
}

.entry-auth-panel input,
.entry-auth-panel select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #ccd8e8;
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 450;
}

.entry-auth-panel input:focus,
.entry-auth-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
  outline: none;
}

.entry-google-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border: 1px solid #ccd8e8;
  border-radius: 7px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.entry-google-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.entry-new-entrant-panel {
  align-content: center;
  background: #fff;
}

.entry-new-entrant-panel p,
.entry-guest-panel p {
  margin: 0;
  color: #5b667a;
  font-size: 13px;
  line-height: 1.55;
}

.entry-guest-panel {
  align-content: center;
  border-color: #cfdcf0;
  background: #fff;
}

.entry-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7a8598;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.entry-auth-divider::before,
.entry-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #dce6f2;
}

.entry-reset-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.entry-reset-panel summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.entry-reset-panel .entry-auth-layout {
  margin-top: 14px;
}

.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.entry-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.entry-submit-account {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .8fr) minmax(150px, .8fr);
  gap: 12px;
  align-items: end;
}

.entry-submit-account label {
  display: grid;
  gap: 7px;
  color: #26344f;
  font-size: 12px;
  font-weight: 650;
}

.entry-submit-account input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd8e8;
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 450;
}

.entry-submit-account input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 107, 255, 0.12);
  outline: none;
}

.entry-form-powered {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  justify-content: flex-start;
  margin-top: -2px;
  color: #66748a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
}

.entry-form-powered img {
  display: block;
  width: 120px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
  object-position: left bottom;
}

.entry-page .primary-button,
.entry-page .outline-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
}

.entry-page .primary-button {
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
}

.entry-page .outline-button {
  border: 1px solid #ccd8e8;
  color: var(--ink);
  background: #fff;
}

.entry-success strong {
  display: inline-flex;
  margin: 4px 0 12px;
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 30px;
  letter-spacing: .08em;
}

@media (max-width: 760px) {
  .entry-page .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .entry-layout {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }
  .entry-hero {
    padding: 24px;
  }
  .entry-form .entry-section,
  .entry-indemnity {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .entry-grid.two,
  .entry-grid.three,
  .entry-auth-layout,
  .entry-auth-layout-three,
  .entry-submit-row,
  .entry-submit-account {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .entry-form-header {
    flex-direction: column;
  }
  .entry-actions {
    justify-content: stretch;
  }
  .entry-actions .primary-button,
  .entry-actions .outline-button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .entry-form .entry-section,
  .entry-indemnity {
    grid-template-columns: 1fr;
  }
}

.ranking-page {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 56px;
  background: #f6f9fc;
}

.ranking-hero {
  padding-bottom: 54px;
}

.ranking-board {
  margin: -34px auto 0;
  width: calc(100% - clamp(24px, 5vw, 72px));
  max-width: none;
  padding: 24px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(13, 35, 70, 0.1);
  overflow: visible;
}

.ranking-board .results-listing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.ranking-board .results-listing-header h2 {
  margin: 0 0 4px;
  color: #102342;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.ranking-board .results-listing-header p {
  margin: 0;
  color: #66748a;
  font-size: 13px;
  font-weight: 450;
}

.ranking-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0 22px;
  overflow-x: auto;
  border-bottom: 1px solid #dfe7f2;
}

.ranking-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #283450;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.ranking-tabs a.active {
  color: #075bff;
  border-color: #075bff;
}

.ranking-tabs strong {
  min-width: 24px;
  padding: 3px 8px;
  color: #5f39d8;
  background: #eee8ff;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.ranking-table-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 44, 82, 0.07);
}

.ranking-table {
  width: 100%;
  min-width: 1150px;
  border-collapse: collapse;
  table-layout: fixed;
}

.ranking-col-rank {
  width: 70px;
}

.ranking-col-name {
  width: 240px;
}

.ranking-col-sail {
  width: 110px;
}

.ranking-col-state {
  width: 90px;
}

.ranking-col-points {
  width: 92px;
}

.ranking-col-events {
  width: 90px;
}

.ranking-col-event {
  width: 106px;
}

.ranking-table th,
.ranking-table td {
  height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid #e8eef6;
  color: #23314f;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-table th {
  color: #5d6b82;
  background: #f5f7fb;
  font-size: 12px;
  font-weight: 650;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-table th:nth-child(1),
.ranking-table td:nth-child(1) {
  width: 70px;
  color: #6a7891;
}

.ranking-table td:nth-child(2),
.ranking-table th:nth-child(2) {
  width: 240px;
  text-align: left;
}

.ranking-table td:nth-child(2) {
  color: #0d2346;
  font-weight: 600;
}

.ranking-table th:nth-child(3),
.ranking-table td:nth-child(3) {
  width: 110px;
}

.ranking-table th:nth-child(4),
.ranking-table td:nth-child(4) {
  width: 90px;
}

.ranking-table th:nth-child(5),
.ranking-table td:nth-child(5) {
  width: 92px;
}

.ranking-table th:nth-child(6),
.ranking-table td:nth-child(6) {
  width: 90px;
}

.ranking-table th:nth-child(n + 7),
.ranking-table td:nth-child(n + 7) {
  width: 106px;
}

.ranking-table td:nth-child(5) strong {
  color: #075bff;
  font-weight: 750;
}

.ranking-table tbody tr:hover {
  background: #f8fbff;
}

.ranking-event-column {
  position: relative;
  overflow: visible;
  padding: 6px;
  text-overflow: clip;
}

.ranking-event-heading {
  position: relative;
  display: inline-flex;
  justify-content: center;
  outline: 0;
  overflow: visible;
}

.ranking-event-code {
  display: inline-flex;
  min-width: 70px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid #cfe0f7;
  border-radius: 999px;
  color: #075bff;
  background: #eef5ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
}

.ranking-event-popover {
  display: none;
}

.ranking-floating-tooltip {
  position: fixed;
  z-index: 1000;
  display: grid;
  width: 280px;
  max-width: calc(100vw - 28px);
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid #dbe6f5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 36, 68, 0.2);
  color: #5f6d82;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ranking-floating-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ranking-floating-tooltip strong {
  color: #10294c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.ranking-floating-tooltip span {
  display: block;
  color: #66748a;
  font-size: 12px;
  font-weight: 450;
}

.ranking-empty-state {
  padding: 28px;
  color: #69748e;
  text-align: center;
}

.public-live-results {
  display: grid;
  gap: 18px;
}

.public-live-results-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #66748a;
  font-size: 13px;
  font-weight: 450;
}

.public-results-actions {
  justify-content: flex-end;
}

.public-results-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.public-results-metrics[hidden] {
  display: none;
}

.public-results-metrics span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-radius: 10px;
  color: #66748a;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  font-size: 12px;
  font-weight: 550;
}

.public-results-metrics strong {
  overflow: hidden;
  color: #102342;
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-results-fleet {
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21, 35, 58, 0.045);
}

.public-results-fleet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #e8eef6;
  background: linear-gradient(180deg, #fbfcff, #f6f8fc);
}

.public-results-fleet-header h3 {
  margin: 0;
  color: #102342;
  font-size: 16px;
  font-weight: 650;
}

.public-results-fleet-header span {
  color: #66748a;
  font-size: 12px;
  font-weight: 450;
}

.public-results-fleet.fleet-gold .public-results-fleet-header,
.public-results-fleet.fleet-overall .public-results-fleet-header {
  border-top: 3px solid #f0c63b;
}

.public-results-fleet.fleet-silver .public-results-fleet-header {
  border-top: 3px solid #b9c2d0;
}

.public-results-fleet.fleet-bronze .public-results-fleet-header,
.public-results-fleet.fleet-copper .public-results-fleet-header {
  border-top: 3px solid #c07a3f;
}

.public-results-fleet.fleet-alloy .public-results-fleet-header {
  border-top: 3px solid #9ca7b7;
}

.public-results-table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #c7d2e4 #f4f7fb;
}

.public-live-results-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.public-live-results-table th,
.public-live-results-table td {
  min-width: 54px;
  padding: 10px 9px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  color: #24314a;
  font-size: 12.5px;
  font-weight: 450;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.public-live-results-table th {
  height: 42px;
  color: #59667a;
  background: #f2f5fa;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.public-live-results-table th:nth-child(1),
.public-live-results-table td:nth-child(1) {
  width: 42px;
  min-width: 42px;
}

.public-live-results-table th:nth-child(2),
.public-live-results-table td:nth-child(2) {
  width: 58px;
  min-width: 58px;
}

.public-live-results-table th:nth-child(3),
.public-live-results-table td:nth-child(3) {
  width: 250px;
  min-width: 250px;
  text-align: left;
}

.public-live-results-table th:nth-child(4),
.public-live-results-table td:nth-child(4) {
  width: 160px;
  min-width: 160px;
  text-align: left;
}

.public-live-results-table th:nth-child(5),
.public-live-results-table td:nth-child(5),
.public-live-results-table th:nth-child(6),
.public-live-results-table td:nth-child(6) {
  width: 62px;
  min-width: 62px;
}

.public-live-results-table tbody tr:hover {
  background: #f7fbff;
}

.public-live-results-table small,
.public-results-name small,
.public-results-sail small {
  display: block;
  margin-top: 3px;
  color: #66748a;
  font-size: 11px;
  font-weight: 450;
}

.public-results-name strong,
.public-results-sail strong {
  color: #152440;
  font-weight: 600;
}

.public-results-move span,
.public-results-move small {
  display: block;
}

.public-results-move span {
  font-size: 14px;
  line-height: 1;
}

.public-results-move small {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 650;
}

.public-live-results-table .move-up {
  color: #16834a;
}

.public-live-results-table .move-down {
  color: #c43636;
}

.public-live-results-table .move-same {
  color: #9aa3b2;
}

.public-live-results-table .score-first {
  color: #b78300;
  font-weight: 750;
}

.public-live-results-table td > span {
  display: block;
}

@media (max-width: 760px) {
  .ranking-board {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    padding: 14px;
    border-radius: 8px;
  }

  .ranking-board .results-listing-header h2 {
    font-size: 20px;
  }

  .ranking-tabs {
    margin-top: 14px;
  }

  .ranking-floating-tooltip {
    width: 210px;
  }

  .public-results-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(219, 229, 242, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: min(254px, 48vw);
  height: auto;
}

.main-nav,
.header-actions,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  padding: 8px 6px;
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 550;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-actions {
  justify-self: end;
}

.primary-button,
.outline-button,
.glass-button,
.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 600;
}

.primary-button {
  padding: 0 18px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 107, 255, 0.18);
}

.outline-button,
.glass-button {
  padding: 0 18px;
  color: var(--blue);
  background: var(--white);
  border-color: #b9d0f5;
}

.glass-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
}

.icon-button {
  width: 42px;
  padding: 0;
  background: transparent;
  color: var(--navy);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.large {
  min-height: 50px;
  padding-inline: 22px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.68fr);
  min-height: 620px;
  align-items: center;
  gap: clamp(26px, 4vw, 64px);
  padding: clamp(56px, 7vw, 92px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 23, 68, 0.86) 0%, rgba(6, 23, 68, 0.66) 40%, rgba(6, 23, 68, 0.24) 74%, rgba(6, 23, 68, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 23, 68, 0.42), transparent 46%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.hero .eyebrow,
.platform-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--brand-font);
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  color: var(--navy);
  font-family: var(--brand-font);
  font-weight: 600;
}

.hero-summary {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 18px;
  line-height: 1.62;
}

.hero-panel {
  align-self: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.panel-header strong {
  color: var(--blue);
  font-weight: 600;
}

.mini-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px;
  background: #f6f9fd;
}

.mini-filters span {
  min-height: 38px;
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  font-family: var(--brand-font);
  font-size: 13px;
  font-weight: 500;
}

.panel-list {
  display: grid;
}

.panel-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.panel-list strong {
  color: var(--navy);
  font-family: var(--brand-font);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.panel-list span {
  color: var(--muted);
  font-size: 13px;
}

.panel-list button {
  grid-row: 1 / span 2;
  min-width: 64px;
  border: 0;
  border-radius: 5px;
  color: var(--white);
  background: var(--blue);
  font-weight: 600;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 36px clamp(20px, 5vw, 72px);
  background: #f4f8fe;
}

.feature-card {
  position: relative;
  display: grid;
  min-height: 214px;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(202, 216, 236, 0.92);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(6, 23, 68, 0.07);
}

.feature-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-card .primary-button {
  justify-self: start;
}

.event-directory,
.results-section,
.platform-section,
.club-strip {
  padding-inline: clamp(20px, 5vw, 72px);
}

.event-directory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  padding-top: 54px;
  padding-bottom: 68px;
  background: #fbfcff;
}

.section-heading,
.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.text-link,
.section-title-row a {
  color: var(--blue);
  font-weight: 600;
}

select,
input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: #fbfdff;
  color: var(--ink);
}

.event-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.country-choice-strip {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 5px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid #d6e2f3;
  background: #f4f7fc;
  color: #344866;
  transition: opacity 180ms ease, min-height 180ms ease, padding 180ms ease;
}

.country-choice-strip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.country-choice-strip > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.country-choice-strip button {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #b7c9e5;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.country-choice-strip button:hover {
  border-color: var(--blue);
  background: #edf3ff;
}

.country-choice-strip [data-country-countdown] {
  min-width: 25px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.country-choice-strip.is-closing {
  pointer-events: none;
  opacity: 0.45;
}

.event-location-notice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d9e6fb;
  border-radius: 7px;
  background: #f7faff;
  color: #263b5e;
}

.event-location-notice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e9f1ff;
  color: var(--blue);
}

.event-location-notice-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.event-location-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.event-location-notice button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #a9c4f5;
  border-radius: 5px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.event-location-notice button:hover {
  border-color: var(--blue);
  background: #eef4ff;
}

.event-location-notice > a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #a9c4f5;
  border-radius: 5px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.event-location-notice > a:hover {
  border-color: var(--blue);
  background: #eef4ff;
}

.event-location-notice.showing-all {
  border-color: var(--line);
  background: #fbfcff;
}

.home-country-notice {
  max-width: calc(100% - clamp(48px, 10vw, 184px));
  margin: 20px auto 42px;
}

.home-country-notice + .home-dashboard {
  margin-top: 0;
}

.home-results-empty,
.home-events-empty {
  margin: 8px 0 0;
  padding: 18px 4px;
  color: var(--muted);
  font-size: 13px;
}

.home-events-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 640px) {
  .country-choice-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-block: 7px;
  }

  .country-choice-strip > div {
    width: 100%;
  }

  .event-location-notice {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .event-location-notice button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .event-location-notice > a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-country-notice {
    max-width: calc(100% - 32px);
  }
}

.event-tabs button {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
}

.event-tabs span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.event-list-detailed {
  border-top: 1px solid var(--line);
}

.event-detail-card {
  display: grid;
  grid-template-columns: 70px 150px 1fr 190px;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.event-detail-card[hidden] {
  display: none !important;
}

.empty-events {
  margin: 0;
  padding: 22px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--brand-font);
  font-size: 14px;
}

.empty-events[hidden] {
  display: none !important;
}

.load-more-button {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid #b9d0f5;
  border-radius: 5px;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
  font-family: var(--brand-font);
  font-weight: 600;
}

.load-more-button:hover {
  border-color: var(--blue);
}

.load-more-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.load-more-button[hidden] {
  display: none !important;
}

.event-pagination {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.event-pagination[hidden] {
  display: none !important;
}

.event-pagination button {
  min-width: 78px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fbff;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.event-pagination button:not(:disabled):hover {
  color: var(--blue);
  border-color: #b9d0f5;
  background: var(--white);
}

.event-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.event-pagination span {
  display: inline-flex;
  min-width: 62px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-date {
  display: grid;
  place-items: center;
  color: var(--blue);
  text-align: center;
  text-transform: uppercase;
}

.event-date strong {
  font-size: 30px;
  font-weight: 500;
  line-height: 0.9;
}

.event-date span {
  margin-top: 4px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.event-date small {
  color: var(--muted);
  font-size: 11px;
}

.event-thumb {
  width: 150px;
  height: 84px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.event-copy h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.event-copy p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink) !important;
  font-weight: 600;
}

.event-range {
  color: var(--blue) !important;
  font-family: var(--brand-font);
  font-weight: 600;
}

.event-location svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.event-tags span,
.source-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 4px;
  color: #1559d0;
  background: #eef5ff;
  font-family: var(--brand-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-tags .tag-country {
  color: var(--navy);
  background: #f8fbff;
  border: 1px solid var(--line);
}

.event-tags .tag-region {
  color: #4b5870;
  background: #f4f7fb;
}

.event-tags .tag-class {
  color: #19784c;
  background: #edf8f2;
  border: 1px solid #b9e0c7;
}

.tag-flag {
  font-size: 13px;
  line-height: 1;
}

.event-side {
  display: grid;
  grid-template-columns: 72px minmax(96px, 1fr);
  gap: 10px;
  align-content: center;
  align-items: center;
}

.event-side.no-club-logo .event-actions {
  grid-column: 2;
}

.club-logo-card {
  display: grid;
  width: 72px;
  min-height: 64px;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.club-logo {
  display: block;
  max-width: 54px;
  max-height: 48px;
  object-fit: contain;
}

.event-actions {
  display: grid;
  gap: 8px;
}

.event-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d0f5;
  border-radius: 5px;
  color: var(--blue);
  background: var(--white);
  font-family: var(--brand-font);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.event-actions .details-button {
  background: #f8fbff;
}

.event-actions .results-button {
  color: var(--navy);
  background: #f8fbff;
}

.event-actions .enter-button {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.event-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}

.find-panel,
.submit-panel,
.calendar-panel {
  padding: 22px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
}

.find-panel h2,
.submit-panel h2,
.calendar-panel h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.find-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: #c2cee0;
  font-family: var(--brand-font);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.find-panel input,
.find-panel select {
  min-height: 42px;
  color: #dfe8f2;
  border-color: #2d4167;
  background: #0d234f;
}

.full-width {
  width: 100%;
}

.reset-button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 0;
  color: #c7d2dc;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.submit-panel {
  background: #eef5ff;
  color: var(--navy);
  border: 1px solid #c7d9f6;
}

.submit-panel h2,
.submit-panel p {
  color: var(--navy);
}

.submit-panel button,
.calendar-panel button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: var(--navy);
  font-weight: 600;
}

.submit-panel button {
  color: var(--white);
}

.calendar-panel button {
  color: var(--white);
  background: transparent;
  border: 1px solid #60749b;
}

.results-section {
  padding-top: 58px;
  padding-bottom: 68px;
  background: var(--white);
}

.section-title-row h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.results-list {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.result-row {
  display: grid;
  grid-template-columns: 58px 1fr 86px 78px 86px;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.class-badge {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--navy);
  background: #f8fbff;
  font-weight: 600;
}

.result-row h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0.01em;
}

.result-row p,
.result-row > span:not(.class-badge):not(.source-pill) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-pill {
  justify-content: center;
  color: #19784c;
  border: 1px solid #b9e0c7;
}

.source-pill.html,
.source-pill.api {
  color: #1559d0;
  background: #eef5ff;
  border-color: #bdd4ff;
}

.source-pill.api {
  color: #5843c7;
  background: #f2efff;
  border-color: #d2caff;
}

.view-button {
  min-height: 34px;
  border: 1px solid #b9d0f5;
  border-radius: 5px;
  color: var(--blue);
  background: var(--white);
  font-weight: 600;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  background: var(--navy);
  color: #d8e7fb;
}

.platform-section h2 {
  color: var(--white);
}

.platform-section p:not(.eyebrow) {
  color: #b9c9e4;
  font-size: 16px;
  line-height: 1.6;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-grid article {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-grid strong {
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 18px;
  font-weight: 600;
}

.ops-grid span {
  color: #b9c9e4;
  line-height: 1.45;
}

.club-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 50px;
  padding-bottom: 50px;
  background: #f4f8fe;
}

.club-strip h2 {
  max-width: 850px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: #d8e7fb;
  background: var(--navy);
}

.footer-logo {
  width: min(260px, 70vw);
  height: auto;
  border-radius: 4px;
}

.footer-links a {
  color: #d8e7fb;
  font-family: var(--brand-font);
  font-weight: 500;
}

.detail-page {
  background: #fbfcff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 68px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.detail-hero.compact {
  padding-top: 46px;
  padding-bottom: 46px;
}

.detail-hero h1 {
  max-width: 980px;
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 56px);
}

.detail-hero p:not(.eyebrow) {
  margin-bottom: 16px;
  color: #d8e7fb;
  font-size: 17px;
}

.detail-logo-stack {
  display: grid;
  grid-template-columns: repeat(2, 92px);
  gap: 12px;
  align-items: center;
}

.detail-class-logo,
.detail-club-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 12px;
  border-radius: 6px;
  background: var(--white);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  padding: 46px clamp(20px, 5vw, 72px) 72px;
}

.detail-content.single-column {
  grid-template-columns: minmax(0, 760px);
}

.detail-main,
.detail-content aside {
  min-width: 0;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.detail-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.detail-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.detail-section h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.detail-section .eyebrow {
  margin-bottom: 8px;
}

.muted-section {
  background: #f8fbff;
}

.event-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  padding-bottom: 10px;
}

.event-info-block h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.event-info-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-size: 16px;
}

.event-info-line strong {
  font-weight: 700;
}

.event-info-line a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-info-block p {
  margin-top: 14px;
  color: var(--navy);
  font-weight: 600;
}

.where-flag {
  font-size: 19px;
}

.event-action-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.event-action-strip a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: #1f3d96;
  font-family: var(--brand-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.event-action-strip a:last-child {
  border-right: 0;
}

.event-action-strip a.active {
  color: var(--white);
  background: #20296f;
}

.event-action-strip a.disabled {
  color: #8a94ad;
  pointer-events: none;
  background: #f7f9fd;
}

.event-summary-section {
  border: 0;
  padding: 0;
  background: transparent;
}

.event-summary-section > p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

.compact-facts {
  margin-top: 24px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-facts div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f8fbff;
}

.detail-facts span {
  color: var(--muted);
  font-family: var(--brand-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.detail-facts strong {
  color: var(--navy);
  font-family: var(--brand-font);
  font-size: 15px;
  font-weight: 600;
}

.event-notes {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.event-notes :is(h2, h3, h4) {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 20px;
}

.event-notes p,
.event-notes ul,
.event-notes ol {
  margin: 0 0 14px;
}

.detail-content aside {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-aside {
  position: sticky;
  top: 96px;
}

.detail-side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.detail-side-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.event-action-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fd;
}

.event-action-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid rgba(11, 19, 43, 0.16);
  border-radius: 5px;
  color: var(--white);
  background: #232a44;
  box-shadow: 0 7px 16px rgba(11, 19, 43, 0.12);
}

.event-action-button span,
.event-action-button strong {
  display: flex;
  align-items: center;
}

.event-action-button span {
  padding: 0 13px;
  font-size: 14px;
  font-weight: 700;
}

.event-action-button strong {
  justify-content: center;
  color: var(--white);
  font-family: var(--brand-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.event-action-button.website strong {
  background: #4d8f2f;
}

.event-action-button.contact strong {
  background: #d9892d;
}

.event-action-button.register strong {
  background: #ad3b2d;
}

.event-action-button.results strong {
  background: #1f4f9a;
}

.event-action-button.calendar strong {
  background: #33415c;
}

.location-map-section {
  padding: 0;
  overflow: hidden;
}

.location-map-section > :not(.openstreetmap-frame) {
  margin-right: 24px;
  margin-left: 24px;
}

.location-map-section > .eyebrow {
  margin-top: 22px;
}

.location-map-section h2 {
  margin-bottom: 4px;
}

.openstreetmap-frame {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  background: #dce8ee;
}

.openstreetmap-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.map-fallback-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 14px;
  margin-bottom: 24px;
  color: var(--blue);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.event-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.event-map iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.event-map a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.result-stat {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.result-stat span {
  color: var(--muted);
  font-family: var(--brand-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
}

.result-stat strong {
  color: var(--navy);
  font-size: 30px;
  font-weight: 500;
}

@media (max-width: 1160px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .platform-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .event-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-self: stretch;
  }

  .header-actions .primary-button,
  .header-actions .outline-button {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-actions,
  .feature-cards,
  .feature-card,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .feature-cards {
    padding-top: 24px;
  }

  .feature-card {
    display: grid;
  }

  .event-detail-card {
    grid-template-columns: 58px 1fr;
  }

  .event-thumb {
    grid-column: 2;
    width: 100%;
    height: 118px;
  }

  .event-side {
    grid-column: 2;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .event-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-row {
    grid-template-columns: 48px 1fr;
  }

  .section-heading,
  .section-title-row,
  .club-strip,
  .detail-hero,
  .detail-content,
  footer {
    align-items: start;
    flex-direction: column;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .event-info-grid,
  .event-action-strip {
    grid-template-columns: 1fr;
  }

  .event-action-strip a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-action-strip a:last-child {
    border-bottom: 0;
  }
}

/* 2026 product layout refresh */
.app-header {
  grid-template-columns: minmax(220px, 1fr) auto minmax(250px, 1fr);
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(6, 23, 68, 0.05);
}

.app-header .brand-logo {
  width: min(290px, 46vw);
}

.app-header .main-nav {
  gap: 24px;
}

.app-header .main-nav a {
  position: relative;
  padding: 22px 0;
  font-size: 14px;
  font-weight: 700;
}

.app-header .main-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--blue);
  content: "";
}

.app-header .primary-button,
.app-header .outline-button,
.app-header .icon-button {
  min-height: 46px;
  border-radius: 999px;
}

.home-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(64, 196, 239, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 44%, #ffffff 100%);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: center;
  padding: 42px clamp(24px, 5vw, 92px) 58px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.96) 38%, rgba(255,255,255,0.72) 60%, rgba(255,255,255,0.16) 100%),
    url("images/hero.jpg") center right / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0), #f4f8ff);
  content: "";
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.home-hero .eyebrow {
  color: var(--blue);
}

.home-hero h1 {
  color: var(--navy);
  font-size: clamp(36px, 3.6vw, 56px);
  font-weight: 850;
  line-height: 1.08;
}

.home-hero h1 span {
  color: var(--blue);
}

.home-hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--navy);
  font-size: 17px;
}

.home-hero .outline-button {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(255,255,255,0.82);
}

.hero-trust-card {
  position: absolute;
  right: clamp(28px, 6vw, 92px);
  top: 92px;
  z-index: 1;
  width: 180px;
  padding: 24px;
  border-radius: 10px;
  color: var(--white);
  background: #061744;
  box-shadow: 0 18px 38px rgba(6, 23, 68, 0.24);
}

.hero-trust-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 30px;
  font-weight: 750;
}

.hero-trust-card p {
  margin: 0;
  color: #e8f1ff;
  font-size: 13px;
}

.home-dashboard {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.36fr) minmax(260px, 0.82fr);
  gap: 14px;
  margin: -32px clamp(24px, 5vw, 92px) 18px;
}

.dashboard-card,
.service-ribbon,
.integration-ribbon,
.event-directory,
.results-board,
.results-side-nav,
.event-tabs-bar,
.organiser-card {
  border: 1px solid #d9e7fb;
  border-radius: 10px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 34px rgba(6, 23, 68, 0.07);
}

.dashboard-card {
  min-width: 0;
  padding: 16px;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
}

.dashboard-card-header a,
.integration-ribbon a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.featured-event-image {
  display: grid;
  min-height: 180px;
  align-content: end;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 23, 68, 0.05), rgba(6, 23, 68, 0.88)),
    url("images/hero.jpg") center / cover no-repeat;
}

.featured-event-image span {
  justify-self: start;
  margin-bottom: auto;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--blue);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.featured-event-image strong {
  font-size: 18px;
  line-height: 1.25;
}

.featured-event-image small,
.compact-event-list small,
.upcoming-list small {
  color: #d9e9ff;
  font-size: 12px;
}

.compact-event-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.compact-event-list a,
.latest-result-list article,
.upcoming-list article {
  display: grid;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.compact-event-list a {
  grid-template-columns: 72px 1fr;
  padding-bottom: 12px;
}

.compact-event-list img,
.upcoming-list img {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: contain;
  background: #eef5ff;
}

.compact-event-list strong,
.upcoming-list h3,
.latest-result-list h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  font-weight: 750;
}

.compact-event-list small,
.upcoming-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.upcoming-list {
  display: grid;
}

.upcoming-list article {
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  min-height: 64px;
  padding: 8px 0;
}

.upcoming-list p,
.latest-result-list p {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
}

.upcoming-list a {
  min-width: 66px;
  padding: 6px 9px;
  border: 1px solid #b9d0f5;
  border-radius: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-transform: uppercase;
}

.latest-result-list {
  display: grid;
}

.latest-result-list article {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 9px 0;
}

.latest-result-list small {
  color: #0c8f4a;
  font-size: 12px;
  text-align: right;
}

.wide-outline-button {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-weight: 750;
}

.service-ribbon,
.integration-ribbon,
.benefit-ribbon {
  display: grid;
  align-items: center;
  gap: 24px;
  margin: 14px clamp(24px, 5vw, 92px);
  padding: 16px 24px;
}

.service-ribbon {
  grid-template-columns: 160px repeat(4, 1fr);
}

.service-ribbon strong,
.integration-ribbon strong {
  color: var(--navy);
  font-size: 17px;
}

.service-ribbon article {
  display: grid;
  gap: 4px;
}

.service-ribbon span {
  color: var(--navy);
  font-weight: 750;
}

.service-ribbon small {
  color: var(--muted);
}

.integration-ribbon {
  grid-template-columns: 220px repeat(4, 1fr) auto;
}

.integration-ribbon span {
  color: var(--navy);
  font-size: 20px;
  font-weight: 750;
  text-align: center;
}

.benefit-ribbon {
  grid-template-columns: repeat(4, 1fr);
  border-radius: 8px;
  color: var(--white);
  background: #061744;
}

.benefit-ribbon span {
  text-align: center;
}

.sailrc-group-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  align-items: stretch;
  margin: 18px clamp(24px, 5vw, 92px);
  padding: 26px;
  border: 1px solid #d9e7fb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(6, 23, 68, 0.08);
}

.sailrc-group-intro {
  display: grid;
  align-content: center;
  padding: 6px 10px;
}

.sailrc-group-logo {
  width: min(230px, 100%);
  height: auto;
  margin-bottom: 18px;
}

.sailrc-group-intro .eyebrow {
  color: var(--blue);
}

.sailrc-group-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
}

.sailrc-group-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.sailrc-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sailrc-group-grid article {
  display: grid;
  align-content: start;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.sailrc-group-grid span {
  display: grid;
  align-items: center;
  justify-items: start;
  width: 100%;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid #dfeaf9;
  border-radius: 8px;
  background: #ffffff;
}

.sailrc-group-grid span img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 42px;
  object-fit: contain;
}

.sailrc-group-grid h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
}

.sailrc-group-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.event-directory {
  grid-template-columns: minmax(0, 1fr) 300px;
  margin-top: 34px;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 23, 68, 0.07);
}

.event-detail-card {
  border-color: #dbe8fa;
  border-radius: 10px;
  box-shadow: none;
}

.event-detail-card h2 {
  font-weight: 750;
}

.breadcrumb-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 18px clamp(24px, 5vw, 72px);
  color: #597099;
  font-size: 13px;
}

.breadcrumb-nav a::after,
.breadcrumb-nav span::after {
  margin-left: 10px;
  color: #9cafca;
  content: ">";
}

.breadcrumb-nav strong {
  color: var(--navy);
}

.event-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 28px;
  min-height: 300px;
  margin: 0 clamp(24px, 5vw, 72px);
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 23, 68, 0.94), rgba(6, 23, 68, 0.55), rgba(6, 23, 68, 0.1)),
    url("images/hero.jpg") center / cover no-repeat;
  box-shadow: 0 20px 52px rgba(6, 23, 68, 0.16);
}

.event-hero-panel h1,
.results-hero h1 {
  margin-bottom: 18px;
  color: inherit;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 750;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.event-hero-meta,
.results-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #edf5ff;
  font-weight: 700;
}

.organiser-card {
  padding: 22px;
  color: var(--navy);
  background: rgba(255,255,255,0.94);
}

.organiser-card > span {
  color: var(--muted);
  font-size: 12px;
}

.organiser-logo-line {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin: 12px 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.organiser-logo-line img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.organiser-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.organiser-stats strong {
  display: block;
  color: var(--blue);
  font-size: 18px;
}

.organiser-stats span {
  color: var(--navy);
  font-size: 11px;
}

.event-tabs-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 20px clamp(24px, 5vw, 72px) 0;
  overflow: hidden;
}

.event-tabs-bar a {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: var(--navy);
  font-weight: 750;
}

.event-tabs-bar a:last-child {
  border-right: 0;
}

.event-tabs-bar a.active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.detail-page .detail-content,
.results-layout {
  padding-top: 22px;
}

.results-page {
  min-height: 100vh;
  background: #f4f8ff;
}

.results-hero,
.listing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: 34px clamp(24px, 5vw, 72px);
  color: var(--navy);
  background:
    linear-gradient(90deg, #f7fbff 0%, rgba(247,251,255,0.92) 43%, rgba(247,251,255,0.1) 100%),
    url("images/hero.jpg") center right / cover no-repeat;
}

.listing-hero {
  grid-template-columns: minmax(0, 720px);
  min-height: 292px;
  align-content: end;
  align-items: end;
  padding-top: 54px;
  padding-bottom: 58px;
}

.listing-hero .eyebrow {
  color: var(--blue);
}

.listing-hero h1 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(40px, 4.4vw, 66px);
  font-weight: 750;
}

.listing-hero p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--navy);
  font-size: 17px;
}

.status-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 750;
}

.status-line span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10935c;
}

.results-hero-meta {
  color: var(--navy);
}

.results-hero-actions {
  display: flex;
  gap: 14px;
}

.results-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 24px clamp(24px, 5vw, 72px) 72px;
}

.results-side-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
}

.results-side-nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--navy);
  font-weight: 700;
}

.results-side-nav a.active {
  color: var(--blue);
  background: #edf4ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.help-card {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: #f1f6ff;
}

.help-card a {
  min-height: 0;
  padding: 0;
  color: var(--blue);
}

.results-board {
  padding: 24px;
}

.results-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.results-tabs button {
  min-height: 46px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 750;
}

.results-tabs button.active {
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--blue);
}

.results-tools,
.results-search-row,
.results-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  color: var(--navy);
}

.results-tools {
  border-bottom: 1px solid var(--line);
}

.results-tools select,
.results-search-row input {
  min-height: 42px;
  border: 1px solid #c9daf4;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
}

.results-tools button,
.results-search-row button,
.results-pagination button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #b9d0f5;
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font-weight: 750;
}

.results-search-row input {
  width: min(360px, 100%);
}

.results-table-wrap {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--navy);
  white-space: nowrap;
}

.results-table th,
.results-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.results-table th {
  font-size: 12px;
  font-weight: 750;
  background: #f7faff;
}

.results-table td:not(:nth-child(2)):not(:nth-child(4)) {
  text-align: center;
}

.results-table.public-live-results-table th,
.results-table.public-live-results-table td {
  padding: 10px 9px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  text-align: center;
  vertical-align: middle;
}

.results-table.public-live-results-table th:nth-child(3),
.results-table.public-live-results-table td:nth-child(3),
.results-table.public-live-results-table th:nth-child(4),
.results-table.public-live-results-table td:nth-child(4) {
  text-align: left;
}

.results-table.public-live-results-table td:nth-child(3),
.results-table.public-live-results-table td:nth-child(4) {
  line-height: 1.28;
}

.results-table.public-live-results-table td:nth-child(5),
.results-table.public-live-results-table td:nth-child(6),
.results-table.public-live-results-table td:nth-child(n + 7) {
  text-align: center;
}

.results-pagination {
  justify-content: space-between;
}

@media (max-width: 1180px) {
  .home-dashboard,
  .service-ribbon,
  .integration-ribbon,
  .sailrc-group-section {
    grid-template-columns: 1fr;
  }

  .sailrc-group-grid {
    grid-template-columns: 1fr;
  }

  .benefit-ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-hero-panel,
  .results-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .app-header .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .app-header .main-nav a {
    padding: 6px 0;
  }

  .home-hero {
    padding-top: 38px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
      url("images/hero.jpg") center / cover no-repeat;
  }

.hero-trust-card {
    position: static;
    width: auto;
    margin-top: 24px;
  }

  .home-dashboard,
  .service-ribbon,
  .integration-ribbon,
  .sailrc-group-section,
  .benefit-ribbon {
    grid-template-columns: 1fr;
    margin-right: 16px;
    margin-left: 16px;
  }

  .event-directory {
    margin-right: 16px;
    margin-left: 16px;
    padding: 14px;
  }

  .upcoming-list article,
  .latest-result-list article {
    grid-template-columns: 56px 1fr;
  }

  .upcoming-list a,
  .latest-result-list small {
    grid-column: 2;
    justify-self: start;
  }

  .event-tabs-bar {
    grid-template-columns: 1fr 1fr;
  }

  .event-hero-panel,
  .results-hero {
    margin-right: 16px;
    margin-left: 16px;
    padding: 24px;
  }

  .results-hero {
    grid-template-columns: 1fr;
  }
}

/* Event detail page tuned to match the reference layout */
.detail-page {
  min-height: 100vh;
  padding-bottom: 46px;
  background: #f4f8ff;
}

.detail-page .breadcrumb-nav {
  max-width: 1450px;
  margin: 0 auto;
  padding: 20px clamp(18px, 3vw, 42px);
}

.detail-page .event-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  min-height: 0;
  align-items: end;
  margin: 0;
  padding: 34px clamp(24px, 5vw, 72px);
  border: 0;
  border-radius: 0;
  color: var(--navy);
  background:
    linear-gradient(90deg, #f7fbff 0%, rgba(247,251,255,0.92) 43%, rgba(247,251,255,0.1) 100%),
    url("images/hero.jpg") center right / cover no-repeat;
  box-shadow: none;
}

.event-hero-content {
  max-width: 780px;
}

.detail-page .event-hero-panel h1 {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(30px, 3.25vw, 46px);
  line-height: 1.08;
}

.detail-page .hero-badge {
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0, 107, 255, 0.22);
}

.detail-page .hero-actions {
  margin-top: 24px;
}

.detail-page .event-hero-meta {
  color: var(--navy);
}

.detail-page .glass-button {
  color: var(--blue);
  background: rgba(255,255,255,0.82);
  border-color: #b9d0f5;
}

.detail-page .organiser-card {
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 42px rgba(6, 23, 68, 0.10);
}

.detail-page .organiser-stats {
  gap: 0;
}

.detail-page .organiser-stats div {
  padding: 0 10px;
  border-right: 1px solid var(--line);
}

.detail-page .organiser-stats div:last-child {
  border-right: 0;
}

.detail-page .event-tabs-bar {
  max-width: 1450px;
  margin: -18px auto 0;
  border-radius: 10px;
  position: relative;
  z-index: 2;
}

.event-status-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 1450px;
  margin: -30px auto 24px;
  overflow: hidden;
  border: 1px solid #d9e7fb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(6, 23, 68, 0.09);
}

.event-status-strip article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 3px;
  min-height: 82px;
  align-content: center;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
}

.event-status-strip article:last-child {
  border-right: 0;
}

.status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
}

.status-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-green {
  color: #10a563;
  background: #eaf8f0;
}

.status-red {
  color: #f23d4f;
  background: #fff0f2;
}

.status-purple {
  color: #8d42f5;
  background: #f4edff;
}

.status-blue {
  color: #1f6fff;
  background: #eef4ff;
}

.status-orange {
  color: #ff7a1a;
  background: #fff3e9;
}

.status-cyan {
  color: #08a8c8;
  background: #eafaff;
}

.event-status-strip article > div > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.event-status-strip article > div > strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.1;
}

.event-status-strip article > div > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-page .event-tabs-bar a {
  min-height: 68px;
  gap: 8px;
}

.detail-page .detail-content {
  grid-template-columns: minmax(0, 1fr) 330px;
  max-width: 1450px;
  margin: 0 auto;
  padding: 20px clamp(18px, 3vw, 42px) 26px;
}

.detail-page .detail-main {
  gap: 18px;
}

.event-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.62fr);
  gap: 18px;
}

.detail-page .detail-section,
.detail-page .detail-side-card,
.detail-page .event-action-panel {
  border-color: #dfeafa;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(6, 23, 68, 0.06);
}

.detail-page .detail-section {
  padding: 26px;
}

.detail-page .detail-section h2,
.detail-page .detail-side-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 800;
}

.event-summary-section p {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.65;
}

.detail-tag-row {
  margin-top: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-lines,
.key-info-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.contact-lines {
  margin-top: 20px;
  gap: 16px;
}

.contact-lines div,
.key-info-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 14px;
}

.contact-lines dt,
.key-info-card dt {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.contact-lines dd,
.key-info-card dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  text-align: right;
}

.section-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-link-row a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.program-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.program-list li {
  position: relative;
  display: grid;
  grid-template-columns: 62px 22px minmax(0, 1fr);
  gap: 14px;
  min-height: 74px;
  align-items: start;
}

.program-list li::before {
  grid-column: 2;
  width: 12px;
  height: 12px;
  margin-top: 17px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  content: "";
  z-index: 1;
}

.program-list li::after {
  position: absolute;
  top: 30px;
  bottom: -18px;
  left: 90px;
  width: 1px;
  background: #a8c7f8;
  content: "";
}

.program-list li:last-child::after {
  display: none;
}

.program-list .program-done::before {
  border-color: #12a668;
  background: #12a668;
  box-shadow: inset 0 0 0 3px var(--white);
}

.program-list time {
  display: grid;
  min-height: 46px;
  place-items: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: #edf4ff;
  color: var(--navy);
  text-align: center;
}

.program-list time strong,
.program-list time span {
  display: block;
  line-height: 1.05;
}

.program-list time strong {
  font-size: 12px;
}

.program-list time span {
  font-size: 12px;
}

.program-list li > div {
  padding: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}

.program-list li:last-child > div {
  border-bottom: 0;
}

.program-list li > div strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.program-list li > div span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-table {
  display: grid;
  margin-top: 6px;
}

.schedule-table h3 {
  margin: 16px 0 8px;
  color: #65a927;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-table h3:first-child {
  margin-top: 0;
}

.schedule-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 34px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.schedule-table time {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.schedule-table span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 650;
}

.event-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 18px;
}

.event-resource-card {
  display: grid;
  align-content: start;
  padding: 0 !important;
  overflow: hidden;
}

.event-resource-card article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.event-resource-card article:last-child {
  border-bottom: 0;
}

.event-resource-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-resource-card span,
.event-resource-card a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.event-resource-card a {
  display: block;
  color: var(--navy);
}

.event-resource-card a small {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #5f6e83;
  background: #eef2f7;
  font-size: 10px;
  font-weight: 900;
}

.resource-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #65a927;
}

.resource-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-location-card .compact-map {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event-location-card .compact-map iframe {
  height: 190px;
}

.event-location-card > strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.event-location-card > p {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
}

.weather-card {
  display: grid;
  align-content: start;
}

.weather-card > p {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.weather-card > p strong {
  color: var(--navy);
}

.weather-card > p span {
  color: var(--muted);
}

.weather-main {
  display: grid;
  grid-template-columns: 46px auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0 22px;
  border-bottom: 1px solid var(--line);
}

.weather-main strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.weather-main small {
  color: var(--navy);
  font-size: 13px;
}

.weather-sun {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffc928;
  box-shadow: 0 0 0 7px rgba(255, 201, 40, 0.18);
}

.weather-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 16px 0 20px;
}

.weather-card dl div {
  display: grid;
  gap: 2px;
  justify-items: center;
  border-right: 1px solid var(--line);
}

.weather-card dl div:last-child {
  border-right: 0;
}

.weather-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.weather-card dd {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.weather-card a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.latest-results-card {
  min-width: 0;
}

.mini-results-table {
  display: grid;
  overflow-x: auto;
  color: var(--navy);
}

.mini-results-table > div {
  display: grid;
  grid-template-columns: 42px minmax(110px, 1fr) minmax(130px, 1.1fr) minmax(100px, 1fr) minmax(110px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-width: 620px;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mini-results-table > div:last-child {
  border-bottom: 0;
}

.mini-results-head {
  min-height: 34px !important;
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 800;
}

.mini-results-table strong {
  font-size: 13px;
}

.mini-results-table span {
  min-width: 0;
}

.key-info-card dl div {
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.key-info-card dl div:last-child {
  border-bottom: 0;
}

.download-card {
  display: grid;
  gap: 0;
}

.download-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.download-card a:last-child {
  border-bottom: 0;
}

.download-card span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.download-card strong {
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-page .event-action-panel {
  padding: 14px;
}

.detail-page .key-info-card {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  background: linear-gradient(145deg, #061744 0%, #09264e 100%);
  box-shadow: 0 18px 42px rgba(6, 23, 68, 0.18);
}

.detail-page .key-info-card h2 {
  color: var(--white);
}

.detail-page .key-info-card dl div {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.detail-page .key-info-card dt {
  color: rgba(255, 255, 255, 0.72);
}

.detail-page .key-info-card dd {
  color: var(--white);
}

.detail-page .key-info-card + .download-card {
  display: grid;
}

.public-document-open {
  overflow: hidden;
}

.public-document-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.public-document-modal[hidden] {
  display: none;
}

.public-document-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 38, 0.62);
  backdrop-filter: blur(4px);
}

.public-document-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 96vw);
  height: min(860px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(220, 228, 240, 0.88);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(4, 20, 45, 0.32);
}

.public-document-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.public-document-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 650;
}

.public-document-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.public-document-actions .icon-button {
  width: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
}

.public-document-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f9fd;
}

.public-document-note {
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.event-cta-panel {
  display: flex;
  max-width: 1400px;
  min-height: 136px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 28px clamp(28px, 4vw, 54px);
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, #061744 0%, #003a92 100%);
  box-shadow: 0 22px 48px rgba(6, 23, 68, 0.16);
}

.listing-page {
  background: #f4f8ff;
}

.event-cta-panel > div,
.event-cta-panel nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.event-cta-panel h2 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 26px;
  font-weight: 800;
}

.event-cta-panel p {
  margin: 0;
  color: #e2efff;
}

.cta-sail-mark {
  display: grid;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.listing-page,
.detail-page {
  font-weight: 400;
}

.listing-page h1,
.detail-page h1,
.home-hero h1,
.event-hero-panel h1,
.results-hero h1 {
  font-weight: 700;
  letter-spacing: 0;
}

.listing-page h2,
.listing-page h3,
.detail-page h2,
.detail-page h3,
.dashboard-card-header h2,
.section-title-row h2,
.feature-card h2,
.sailrc-group-grid h3,
.event-copy h2,
.detail-page .detail-section h2,
.detail-page .detail-side-card h2,
.event-cta-panel h2 {
  font-weight: 650;
}

.listing-page strong,
.detail-page strong,
.event-location,
.event-range,
.event-status-strip article > div > span,
.event-status-strip article > div > small,
.schedule-table time,
.schedule-table span,
.contact-lines dt,
.key-info-card dt,
.section-link-row a,
.event-resource-card strong,
.event-resource-card span,
.event-resource-card a {
  font-weight: 560;
}

.event-tags span,
.source-pill,
.hero-badge,
.event-tabs button,
.event-actions a,
.event-pagination button,
.event-pagination span {
  font-weight: 600;
}

.event-copy p,
.event-summary-section p,
.event-location-card > p,
.key-info-card dd,
.contact-lines dd {
  color: #4e5f7a;
  font-weight: 400;
}

.event-location,
.event-range,
.event-date span,
.event-date small {
  font-weight: 400;
}

.event-date strong {
  font-weight: 450;
}

@media (max-width: 1180px) {
  .detail-page .event-hero-panel,
  .detail-page .detail-content,
  .event-overview-grid,
  .event-lower-grid,
  .event-status-strip {
    grid-template-columns: 1fr;
  }

  .detail-page .detail-aside {
    position: static;
  }

  .event-status-strip {
    margin-right: 18px;
    margin-left: 18px;
  }

  .event-status-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-status-strip article:last-child {
    border-bottom: 0;
  }

}


@media (max-width: 760px) {
  .detail-page .event-tabs-bar,
  .detail-page .detail-content,
  .event-cta-panel {
    margin-right: 16px;
    margin-left: 16px;
  }

  .detail-page .event-hero-panel {
    padding: 24px;
  }

  .detail-page .event-tabs-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-lines div,
  .key-info-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .contact-lines dd,
  .key-info-card dd {
    text-align: left;
  }

  .program-list li {
    grid-template-columns: 56px 18px minmax(0, 1fr);
  }

  .program-list li::after {
    left: 80px;
  }

  .event-cta-panel,
  .event-cta-panel > div,
  .event-cta-panel nav {
    align-items: stretch;
    flex-direction: column;
  }

  .listing-hero {
    min-height: 250px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.82)),
      url("images/hero.jpg") center / cover no-repeat;
  }

}


.protest-public-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.protest-form-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 22px 0 24px;
}

.protest-form-heading h1 {
  margin: 4px 0 8px;
  color: #0d1f43;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 650;
}

.protest-form-heading p {
  max-width: 720px;
  margin: 0;
  color: #64718a;
}

.protest-event-summary {
  display: grid;
  min-width: min(360px, 100%);
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid #e0e7f2;
  border-radius: 8px;
  background: #fff;
}

.protest-event-summary strong {
  color: #17284b;
  font-weight: 600;
}

.protest-event-summary span {
  color: #68758d;
  font-size: 13px;
}

.protest-form-card,
.protest-success-card {
  border: 1px solid #e0e7f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(26, 42, 78, 0.07);
}

.protest-form-section {
  padding: 28px 30px;
  border-bottom: 1px solid #e8edf5;
}

.protest-form-section > header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.protest-form-section > header > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #7248e8;
  font-size: 13px;
  font-weight: 600;
}

.protest-form-section h2 {
  margin: 0 0 4px;
  color: #152748;
  font-size: 19px;
  font-weight: 600;
}

.protest-form-section header p,
.protest-form-actions p {
  margin: 0;
  color: #758198;
  font-size: 13px;
}

.protest-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.protest-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.protest-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.protest-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.protest-form-section label {
  display: grid;
  gap: 7px;
  color: #526078;
  font-size: 12.5px;
  font-weight: 500;
}

.protest-form-section input,
.protest-form-section select,
.protest-form-section textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #bfd0e8;
  border-radius: 7px;
  color: #1f2d49;
  background: #fff;
  font: inherit;
  font-weight: 400;
  box-shadow: none;
  outline: 0;
}

.protest-form-section input:focus,
.protest-form-section select:focus,
.protest-form-section textarea:focus {
  border-color: #7248e8;
}

.protest-form-section input[readonly] {
  color: #66738b;
  background: #f7f9fc;
}

.protest-form-section textarea {
  resize: vertical;
}

.protest-entry-search {
  position: relative;
}

.protest-entry-suggestions {
  position: absolute;
  z-index: 12;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 38, 73, 0.14);
}

.protest-entry-suggestions button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(80px, auto) 1fr;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  color: #243451;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.protest-entry-suggestions button:last-child {
  border-bottom: 0;
}

.protest-entry-suggestions button:hover,
.protest-entry-suggestions button:focus {
  background: #f5f2ff;
}

.protest-entry-suggestions strong {
  color: #6840d5;
  font-weight: 600;
}

.protest-entry-suggestions span {
  font-weight: 400;
}

.protest-rule-picker {
  position: relative;
  grid-column: span 2;
}

.protest-rule-picker > small {
  display: block;
  margin-top: 7px;
  color: #758198;
  font-size: 11.5px;
}

.protest-rule-suggestions {
  position: absolute;
  z-index: 13;
  top: 67px;
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 38, 73, 0.14);
}

.protest-rule-suggestions button {
  display: grid;
  width: 100%;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  color: #243451;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.protest-rule-suggestions button:last-child {
  border-bottom: 0;
}

.protest-rule-suggestions button:hover,
.protest-rule-suggestions button:focus {
  background: #f5f2ff;
}

.protest-rule-suggestions strong {
  color: #6840d5;
  font-weight: 650;
}

.protest-rule-suggestions span {
  font-weight: 400;
}

.protest-rule-suggestions small {
  color: #8490a4;
  font-size: 10.5px;
}

.protest-selected-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.protest-selected-rule {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 10px;
  border: 1px solid #d9cdfb;
  border-radius: 999px;
  color: #432a88;
  background: #f5f2ff;
  font-size: 12px;
}

.protest-selected-rule button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #6840d5;
  background: transparent;
  cursor: pointer;
}

.protest-selected-rule button:hover {
  background: #e7defd;
}

.protest-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.protest-check-grid label,
.protest-inline-check {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e0e7f2;
  border-radius: 7px;
  color: #31405e;
  background: #fbfcfe;
}

.protest-check-grid input,
.protest-inline-check input {
  width: 17px;
  min-height: 17px;
  flex: 0 0 auto;
  accent-color: #7248e8;
}

.protest-inline-check {
  width: fit-content;
  margin-top: 16px;
}

.protest-upload-field {
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed #aa9ae4;
  border-radius: 8px;
  background: #faf9ff;
}

.protest-additional-party {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e0e7f2;
  border-radius: 8px;
  background: #fafbfe;
}

.protest-additional-party-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.protest-additional-party-heading button {
  width: 28px;
  height: 28px;
  border: 1px solid #efc6c6;
  border-radius: 6px;
  color: #b83b3b;
  background: #fff;
  cursor: pointer;
}

.protest-upload-field small {
  color: #7a8498;
}

.protest-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
}

.protest-form-actions .primary-button {
  min-width: 170px;
}

.protest-honeypot {
  position: absolute !important;
  left: -10000px !important;
}

.public-form-alert {
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #efb3b3;
  border-radius: 7px;
  color: #8e2929;
  background: #fff2f2;
}

.protest-success-card {
  display: grid;
  max-width: 720px;
  place-items: center;
  gap: 12px;
  margin: 70px auto;
  padding: 52px;
  text-align: center;
}

.protest-success-card h1 {
  margin: 0;
  color: #132746;
}

.protest-success-card p {
  margin: 0;
  color: #64718a;
}

.protest-success-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #31a668;
  font-size: 28px;
}

.protest-success-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.event-noticeboard-card {
  display: grid;
  gap: 14px;
}

.event-noticeboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-hearing-list {
  display: grid;
  gap: 10px;
}

.public-hearing-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.public-hearing-item > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  color: #7248e8;
  background: #f0ebff;
  font-weight: 600;
}

.public-hearing-item div {
  display: grid;
  gap: 3px;
}

.public-hearing-item small {
  color: #748098;
}

@media (max-width: 900px) {
  .protest-form-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .protest-grid-3,
  .protest-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .protest-public-shell {
    width: min(100% - 24px, 1240px);
  }

  .protest-grid-2,
  .protest-grid-3,
  .protest-grid-4,
  .protest-check-grid {
    grid-template-columns: 1fr;
  }

  .protest-form-section {
    padding: 22px 18px;
  }

  .protest-form-actions,
  .protest-success-actions {
    align-items: stretch;
    flex-direction: column;
  }
}


.protest-public-page {
  min-height: 100vh;
  background: #f5f8fd;
}

/* Final public event information/detail page override. Keep this at EOF. */
main.detail-page {
  background: #f4f8ff;
}

main.detail-page .breadcrumb-nav,
main.detail-page .event-hero-panel,
main.detail-page .event-status-strip,
main.detail-page .detail-content,
main.detail-page .event-cta-panel {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px;
}

main.detail-page .breadcrumb-nav {
  margin: 0 auto;
  padding: 20px 0 14px;
}

main.detail-page .event-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: end;
  margin: 0 auto;
  border: 1px solid #dce7f6;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  color: var(--navy);
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.25) 100%),
    url("images/hero.jpg") center right / cover no-repeat;
  box-shadow: 0 18px 46px rgba(6, 23, 68, .08);
}

main.detail-page .event-hero-content {
  max-width: 760px;
}

main.detail-page .event-hero-panel h1 {
  max-width: 760px;
  margin: 10px 0 14px;
  color: var(--navy);
  font-size: clamp(32px, 4.1vw, 56px);
  line-height: 1.04;
}

main.detail-page .event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: #33435e;
}

main.detail-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

main.detail-page .organiser-card {
  align-self: stretch;
  border: 1px solid #dfeafa;
  border-radius: 14px;
  padding: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 36px rgba(6, 23, 68, .08);
}

main.detail-page .organiser-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

main.detail-page .event-status-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 18px auto 24px;
  border-radius: 14px;
}

main.detail-page .event-status-strip article {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 82px;
  padding: 14px;
}

main.detail-page .event-status-strip article > div > span,
main.detail-page .event-status-strip article > div > small {
  font-size: 11px;
}

main.detail-page .event-status-strip article > div > strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

main.detail-page .detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  margin: 0 auto;
  padding: 0 0 32px;
}

main.detail-page .detail-main,
main.detail-page .detail-aside {
  display: grid;
  align-content: start;
  gap: 22px;
  min-width: 0;
}

main.detail-page .event-overview-grid,
main.detail-page .event-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 22px;
  align-items: stretch;
}

main.detail-page .detail-section,
main.detail-page .detail-side-card,
main.detail-page .event-action-panel {
  border: 1px solid #dfeafa;
  border-radius: 14px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(6, 23, 68, .055);
}

main.detail-page .detail-section {
  padding: 24px;
}

main.detail-page .detail-section h2,
main.detail-page .detail-side-card h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

main.detail-page .event-summary-section p {
  margin: 0 0 14px;
  color: #364862;
  font-size: 15px;
  line-height: 1.72;
}

main.detail-page .event-resource-card {
  padding: 0 !important;
  overflow: hidden;
}

main.detail-page .event-resource-card article {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 20px 22px;
}

main.detail-page .event-resource-card a,
main.detail-page .event-resource-card span,
main.detail-page .key-info-card dd,
main.detail-page .contact-lines dd {
  overflow-wrap: anywhere;
}

main.detail-page .schedule-table div {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  min-height: 38px;
  padding: 7px 0;
}

main.detail-page .event-location-card {
  display: flex;
  flex-direction: column;
}

main.detail-page .event-location-card .compact-map {
  height: 245px;
  margin: 6px 0 18px;
  border-radius: 10px;
}

main.detail-page .detail-aside {
  position: sticky;
  top: 18px;
  align-self: start;
}

main.detail-page .detail-side-card {
  padding: 22px;
}

main.detail-page .key-info-card {
  color: #fff;
  background: linear-gradient(145deg, #061744 0%, #09264e 100%);
}

main.detail-page .key-info-card h2 {
  color: #fff;
}

main.detail-page .key-info-card dl div,
main.detail-page .contact-lines div {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

main.detail-page .download-card {
  display: grid;
}

main.detail-page .event-action-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
}

main.detail-page .event-action-button {
  min-height: 54px;
  border-radius: 10px;
}

main.detail-page .event-cta-panel {
  margin: 4px auto 44px;
  border-radius: 16px;
}

@media (max-width: 1120px) {
  main.detail-page .event-hero-panel,
  main.detail-page .detail-content {
    grid-template-columns: 1fr;
  }

  main.detail-page .detail-aside {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  main.detail-page .event-action-panel {
    grid-column: 1 / -1;
  }

  main.detail-page .event-status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  main.detail-page .breadcrumb-nav,
  main.detail-page .event-hero-panel,
  main.detail-page .event-status-strip,
  main.detail-page .detail-content,
  main.detail-page .event-cta-panel {
    width: calc(100% - 28px);
  }

  main.detail-page .event-overview-grid,
  main.detail-page .event-lower-grid,
  main.detail-page .detail-aside {
    grid-template-columns: 1fr;
  }

  main.detail-page .event-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main.detail-page .event-hero-panel {
    padding: 24px 20px;
  }

  main.detail-page .event-status-strip {
    grid-template-columns: 1fr;
  }

  main.detail-page .event-status-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  main.detail-page .event-status-strip article:last-child {
    border-bottom: 0;
  }

  main.detail-page .detail-section,
  main.detail-page .detail-side-card {
    padding: 20px;
  }

  main.detail-page .schedule-table div,
  main.detail-page .key-info-card dl div,
  main.detail-page .contact-lines div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  main.detail-page .contact-lines dd,
  main.detail-page .key-info-card dd {
    text-align: left;
  }

  main.detail-page .event-cta-panel,
  main.detail-page .event-cta-panel > div,
  main.detail-page .event-cta-panel nav {
    align-items: stretch;
    flex-direction: column;
  }
}
