/* Bold preview theme (club logo blue, white and near-black, thick outlines, hard shadows). Loads only with ?theme=bold. */
html.theme-bold {
  color-scheme: light;
  --page: #eef1f7; --card: #ffffff; --ink: #0d1018; --muted: #475569; --line: #0d1018;
  --accent: #4a7fd6; --accent-soft: #dce5f5; --shadow: 5px 5px 0 #0d1018;
  font-family: "Outfit", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
}
.theme-bold body { background: var(--page); padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.theme-bold h1, .theme-bold h2 { font-weight: 900; letter-spacing: -.045em; }
.theme-bold .card { border: 3px solid var(--ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--ink); }
.theme-bold .hero-card { background: #4a7fd6; }
.theme-bold .eyebrow { color: #0d1018; font-weight: 800; letter-spacing: .12em; }
.theme-bold .race-date { font-weight: 800; }
.theme-bold .view-caption { color: #0d1018; font-size: 13px; }
.theme-bold .condition { border: 2px solid var(--ink); border-radius: 16px; background: var(--card); }
.theme-bold .condition small { color: var(--muted); }
.theme-bold .course-toggle { padding: 3px; gap: 3px; border: 3px solid var(--ink); border-radius: 999px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.theme-bold .course-toggle button { min-height: 36px; border-radius: 999px; color: var(--ink); font-weight: 900; }
.theme-bold .course-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
/* bottom tab bar */
.theme-bold .view-tabs { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%, 560px); transform: translateX(-50%); gap: 6px; padding: 14px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 3px solid var(--ink); border-radius: 0; background: #fff; }
.theme-bold .view-tabs button { min-height: 54px; border: 3px solid var(--ink); border-radius: 18px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 900; }
.theme-bold .view-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--ink); color: var(--ink); }
/* content */
.theme-bold .section-kicker, .theme-bold .sort-label { color: #2d5db5; font-weight: 800; letter-spacing: .1em; }
.theme-bold .podium-card .section-kicker { color: var(--ink); letter-spacing: -.02em; font-weight: 900; }
.theme-bold .podium-block { border: 3px solid var(--ink); }
.theme-bold .podium-name { font-weight: 900; }
.theme-bold .table-header { border-bottom: 3px solid var(--ink); color: var(--ink); font-weight: 900; }
.theme-bold .result-row { border-bottom: 2px solid rgb(13 16 24 / 16%); font-weight: 650; }
.theme-bold .name-button { font-weight: 800; }
.theme-bold .primary-button, .theme-bold .secondary-button { min-height: 44px; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); font-weight: 900; }
.theme-bold .primary-button { background: var(--accent); }
.theme-bold .close-button { border: 3px solid var(--ink); background: var(--card); }
.theme-bold .entry-dialog, .theme-bold dialog { background: var(--page); color: var(--ink); }
.theme-bold .page-footer { color: var(--muted); }

/* jersey stripes across the top of the header card: white, black, white */
.theme-bold .hero-card { position: relative; overflow: hidden; padding-top: 52px; }
.theme-bold .hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30px; background: linear-gradient(#fff 0 10px, #0d1018 10px 20px, #fff 20px 30px); border-bottom: 3px solid #0d1018; }

.theme-bold .race-title { font-size: clamp(24px, 7vw, 34px); gap: 6px 8px; }
.theme-bold .course-toggle button { padding: 0 10px; min-width: 44px; }

/* echo the logo's white border inside its dark outline */
.theme-bold .hero-card { box-shadow: 5px 5px 0 var(--ink), inset 0 0 0 5px #fff; }

/* keep fills that used the line colour light now that outlines are near-black */
.theme-bold .form-track { background: #dfe6f3; border: 2px solid var(--ink); height: 14px; }
.theme-bold .form-zero { background: var(--ink); opacity: 1; width: 2px; }
.theme-bold .form-fill { background: var(--accent); }
.theme-bold .danger-button { color: #b3261e; border-color: #b3261e; box-shadow: 3px 3px 0 #b3261e; }

/* Hide "How this view works" on Clock time and Corrected time tabs */
.app-shell:has(.view-tabs [data-view="clock"][aria-pressed="true"]) .definitions-card,
.app-shell:has(.view-tabs [data-view="corrected"][aria-pressed="true"]) .definitions-card {
  display: none !important;
}

/* Start, tide and wind on one row, shrinking to fit on phones */
.conditions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}
.conditions .condition {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
}
.conditions .condition b,
.conditions .condition small {
  font-size: clamp(10px, 2.8vw, 13px) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.definitions-card { display: none !important; }
