/*
 * Sloe Platform — plugin styles
 * Design pass: Clubspot-level polish using sloe.css brand tokens.
 * --ast-0: #3d1e4a (deep purple)  --bone: #f4ecdc (warm cream)
 * Fonts: Fraunces (display), Source Serif 4 (body), Inter Tight (UI)
 * Mobile-first. Namespace: .sloe-platform, .sloe-*
 */

/* ── Token bridge (fallbacks if theme doesn't define them) ───────────────── */
.sloe-platform, .sloe-replay-wrap {
    --sp-purple:     var(--ast-0,  #3d1e4a);
    --sp-purple-mid: var(--ast-2,  #7b4fa6);
    --sp-purple-lt:  var(--ast-4,  #ede0f8);
    --sp-bone:       var(--bone,   #f4ecdc);
    --sp-ink:        var(--ink,    #1a0e22);
    --sp-muted:      #6b5879;
    --sp-edge:       #e2d8ef;
    --sp-btn-fg:     #fff;
    --sp-radius:     6px;
    --sp-shadow:     0 1px 4px rgba(61,30,74,.1), 0 4px 16px rgba(61,30,74,.06);
    --sp-font-body:  var(--body, 'Source Serif 4', Georgia, serif);
    --sp-font-ui:    var(--ui, 'Inter Tight', system-ui, sans-serif);
    --sp-font-h:     var(--h1, 'Fraunces', Georgia, serif);
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.sloe-platform {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 max(1rem, env(safe-area-inset-left,0px));
    font-family: var(--sp-font-body);
    color: var(--sp-ink);
}

/* ── Hero header ─────────────────────────────────────────────────────────── */
.sloe-page-hero {
    background: var(--sp-purple);
    color: #fff;
    margin: 0 -1rem 2rem;
    padding: 2rem max(1rem, env(safe-area-inset-left,0px));
}
.sloe-page-hero .sloe-breadcrumb {
    font-family: var(--sp-font-ui);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    opacity: .75;
    color: rgba(255,255,255,.75);
}
.sloe-page-hero .sloe-breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.sloe-page-hero .sloe-breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}
.sloe-page-hero .sloe-page-title {
    font-family: var(--sp-font-h);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.sloe-page-hero .sloe-event-meta {
    font-family: var(--sp-font-ui);
    font-size: 0.875rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.sloe-page-hero .sloe-event-meta .sep {
    opacity: .4;
}

/* ── Breadcrumb (non-hero fallback) ────────────────────────────────────── */
.sloe-page-header {
    margin-bottom: 2rem;
}
.sloe-breadcrumb {
    font-family: var(--sp-font-ui);
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
    color: var(--sp-muted);
}
.sloe-breadcrumb a {
    color: var(--sp-purple-mid);
    text-decoration: none;
}
.sloe-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.sloe-section {
    margin-bottom: 2.5rem;
}
.sloe-section-heading {
    font-family: var(--sp-font-h);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--sp-purple);
    border-bottom: 2px solid var(--sp-edge);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -.01em;
}
.sloe-class-heading {
    font-family: var(--sp-font-ui);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sp-purple);
    margin: 2rem 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 0.8125rem;
}
.sloe-class-meta {
    font-family: var(--sp-font-ui);
    color: var(--sp-muted);
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

/* ── Status badges ───────────────────────────────────────────────────────── */
.sloe-status-pill {
    display: inline-block;
    font-family: var(--sp-font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1875rem 0.5rem;
    border-radius: 999px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.sloe-status-pill--final   { background: #d4edda; color: #195c27; }
.sloe-status-pill--open    { background: var(--sp-purple-lt); color: var(--sp-purple); }
.sloe-status-pill--past    { background: #f0f0f0; color: #555; }

/* Legacy inline status */
.sloe-status-final { color: #195c27; font-weight: 600; font-family: var(--sp-font-ui); font-size: .875em; }
.sloe-open         { color: var(--sp-purple); font-weight: 600; font-family: var(--sp-font-ui); font-size: .875em; }
.sloe-status       { color: var(--sp-muted); font-family: var(--sp-font-ui); font-size: .875em; }

/* ── Club cards ───────────────────────────────────────────────────────────── */
.sloe-club-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sloe-club-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--sp-edge);
    border-radius: var(--sp-radius);
    background: #fff;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.sloe-club-card:hover {
    box-shadow: var(--sp-shadow);
    border-color: var(--sp-purple-mid);
}

/* Club monogram badge */
.sloe-club-card__badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sp-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sp-font-h);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 400;
}
.sloe-club-card__body { flex: 1; min-width: 0; }
.sloe-club-card__name {
    font-family: var(--sp-font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.125rem;
}
.sloe-club-card__name a {
    text-decoration: none;
    color: inherit;
}
.sloe-club-card__name a:hover { text-decoration: underline; }
.sloe-club-card__venue,
.sloe-club-card__about,
.sloe-club-card__stats {
    font-family: var(--sp-font-ui);
    font-size: 0.8125rem;
    color: var(--sp-muted);
    margin: 0.1rem 0;
}
.sloe-club-card__action {
    flex-shrink: 0;
    align-self: center;
}

/* ── Tag list (classes sailed) ───────────────────────────────────────────── */
.sloe-tag-list {
    list-style: none;
    margin: 0.375rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.sloe-tag {
    background: var(--sp-purple-lt);
    color: var(--sp-purple);
    border-radius: 3px;
    padding: 0.1875rem 0.5rem;
    font-family: var(--sp-font-ui);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.sloe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4375rem 1rem;
    background: var(--sp-purple);
    color: var(--sp-btn-fg);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--sp-font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, opacity 0.15s;
    border: none;
    cursor: pointer;
    letter-spacing: .01em;
}
.sloe-btn:hover, .sloe-btn:focus {
    background: #2e1738;
    color: #fff;
    text-decoration: none;
}
.sloe-btn--secondary {
    background: transparent;
    color: var(--sp-purple);
    border: 1.5px solid var(--sp-purple);
}
.sloe-btn--secondary:hover {
    background: var(--sp-purple-lt);
    color: var(--sp-purple);
}
.sloe-btn--ghost {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}
.sloe-btn--ghost:hover {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ── Tables (desktop) ────────────────────────────────────────────────────── */
.sloe-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--sp-radius);
    border: 1px solid var(--sp-edge);
}
.sloe-results-table,
.sloe-entries-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sp-font-ui);
    font-size: 0.875rem;
    min-width: 480px;
    background: #fff;
}
.sloe-results-table th,
.sloe-results-table td,
.sloe-entries-table th,
.sloe-entries-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--sp-edge);
    text-align: left;
    white-space: nowrap;
}
.sloe-results-table thead th,
.sloe-entries-table thead th {
    background: var(--sp-purple);
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: none;
}
.sloe-results-table tbody tr:last-child td,
.sloe-entries-table tbody tr:last-child td {
    border-bottom: none;
}
.sloe-results-table tbody tr:hover,
.sloe-entries-table tbody tr:hover {
    background: var(--sp-bone);
}
.sloe-discard {
    text-decoration: line-through;
    color: #aaa;
}

/* ── Tables (mobile stacked layout, ≤ 600px) ────────────────────────────── */
@media (max-width: 600px) {
    .sloe-table-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }
    .sloe-results-table, .sloe-entries-table {
        min-width: 0;
    }
    .sloe-results-table thead, .sloe-entries-table thead {
        display: none;
    }
    .sloe-results-table tbody tr, .sloe-entries-table tbody tr {
        display: block;
        border: 1px solid var(--sp-edge);
        border-radius: var(--sp-radius);
        margin-bottom: 0.5rem;
        padding: 0.25rem 0;
        background: #fff;
    }
    .sloe-results-table tbody tr:hover,
    .sloe-entries-table tbody tr:hover {
        background: var(--sp-bone);
    }
    .sloe-results-table tbody td,
    .sloe-entries-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 0.3rem 0.75rem;
        border: none;
        border-bottom: 1px solid #f0eaf8;
        white-space: normal;
        font-size: 0.875em;
    }
    .sloe-results-table tbody td:last-child,
    .sloe-entries-table tbody td:last-child {
        border-bottom: none;
    }
    .sloe-results-table tbody td::before,
    .sloe-entries-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--sp-purple);
        margin-right: 0.5rem;
        flex-shrink: 0;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
}

/* ── NTC / about text ────────────────────────────────────────────────────── */
.sloe-ntc, .sloe-about {
    white-space: pre-wrap;
    font-size: 0.925em;
    color: #333;
    line-height: 1.65;
    background: var(--sp-bone);
    border-left: 3px solid var(--sp-purple-mid);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--sp-radius) var(--sp-radius) 0;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.sloe-empty {
    color: var(--sp-muted);
    font-style: italic;
    font-family: var(--sp-font-ui);
    font-size: 0.9rem;
    padding: 1.5rem 0;
    text-align: center;
}

/* ── Class results container spacing ─────────────────────────────────────── */
.sloe-class-results { margin-bottom: 2.5rem; }

/* ── Club detail hero ─────────────────────────────────────────────────────── */
.sloe-club-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.sloe-club-hero__badge {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--sp-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sp-font-h);
    font-style: italic;
    font-size: 2rem;
    font-weight: 400;
}
.sloe-club-hero__body h1 {
    font-family: var(--sp-font-h);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    font-style: italic;
    color: var(--sp-purple);
    margin: 0 0 0.25rem;
}
.sloe-club-hero__body p {
    font-family: var(--sp-font-ui);
    font-size: 0.875rem;
    color: var(--sp-muted);
    margin: 0;
}

/* ── Wider screens ───────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    .sloe-platform { padding: 0 1.5rem; }
    .sloe-club-card { padding: 1.125rem 1.5rem; }
    .sloe-page-hero { margin: 0 -1.5rem 2.5rem; padding: 2.5rem 1.5rem; }
}

/* ── Replay link in event header ─────────────────────────────────────────── */
.sloe-replay-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--sp-font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--sp-purple-mid);
    border-radius: 4px;
    padding: 0.4375rem 0.875rem;
    text-decoration: none;
    transition: background 0.15s;
    margin-top: 0.25rem;
}
.sloe-replay-link:hover {
    background: #5c3480;
    color: #fff;
    text-decoration: none;
}
/* When inside the hero */
.sloe-page-hero .sloe-replay-link {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
}
.sloe-page-hero .sloe-replay-link:hover {
    background: rgba(255,255,255,.28);
}

.sloe-document-section {
  border-block-start: 1px solid currentColor;
  padding-block: .65rem;
}

.sloe-document-section summary {
  cursor: pointer;
  font-weight: 600;
}

.sloe-document-section fieldset,
.sloe-document-section [data-sloe-document-row] {
  margin-block: .75rem;
  min-width: 0;
}

.sloe-document-section textarea {
  width: 100%;
}

.sloe-document-section input,
.sloe-document-section select {
  max-width: 100%;
}

/* Option A | Platform pages and embedded regatta checklist */
.sloe-option-a, .sloe-checklist {
    --sloe-bone: #f4ecdc;
    --sloe-shell: #fbf8ee;
    --sloe-ink: #1a0e22;
    --sloe-purple: #3d1e4a;
    --sloe-midnight: #150818;
    --sloe-bloom: #6b4a78;
    --sloe-pink: #ff2e93;
    --sloe-dark-card: #24122b;
    --sloe-ground: var(--sloe-bone);
    --sloe-card: var(--sloe-shell);
    --sloe-text: var(--sloe-ink);
    --sloe-heading: var(--sloe-purple);
    --sloe-secondary: var(--sloe-bloom);
    --sloe-label: #6b2c55;
    --sloe-outline: var(--sloe-purple);
    --sloe-body: 'Source Serif 4', Georgia, serif;
    --sloe-display: Fraunces, Georgia, serif;
    --sloe-title-size: 56px;
    --sloe-title-line: 64px;
    --sloe-section-space: 88px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    .sloe-option-a, .sloe-checklist {
        --sloe-ground: var(--sloe-midnight);
        --sloe-card: var(--sloe-dark-card);
        --sloe-text: var(--sloe-shell);
        --sloe-heading: var(--sloe-bone);
        --sloe-secondary: var(--sloe-shell);
        --sloe-label: var(--sloe-bone);
        --sloe-outline: var(--sloe-shell);
        color-scheme: dark;
    }
}

.sloe-option-a {
    background-color: var(--sloe-ground);
    color: var(--sloe-text);
    font: 400 16px/24px var(--sloe-body);
    overflow-wrap: anywhere;
    min-width: 0;
}

.sloe-option-a :where(.sloe-option-inner, .sloe-option-workspace, .sloe-regatta-card, .sloe-regatta-photo),
.sloe-virtual-page {
    box-sizing: border-box;
}

#primary.sloe-virtual-page {
    flex: 0 0 100%;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-block-start: var(--sloe-header-offset, 80px);
}

.sloe-landing.sloe-landing-band {
    padding-block-start: var(--sloe-header-offset, 0px);
}

#content > .ast-container:has(> .sloe-virtual-page) {
    max-width: none;
    padding-inline: 0;
}

.sloe-option-a .sloe-option-inner {
    width: 100%;
    max-width: 1240px;
    min-width: 0;
    margin-inline: auto;
    padding-inline: 24px;
}

:is(.sloe-virtual-page, .sloe-landing-band) [id]:not(:where(#regatta-documents, #regatta-documents *)) {
    scroll-margin-block-start: var(--sloe-fixed-header, 80px);
}

.sloe-option-a .sloe-option-section {
    margin-block: 0;
    padding-block: var(--sloe-section-space);
}

.sloe-option-a :where(.sloe-option-inner, .sloe-option-workspace, .sloe-option-section) > :last-child {
    margin-block-end: 0;
}

.sloe-option-a :is(h1, h2, h3):not(:where(#regatta-documents, #regatta-documents *)) {
    color: var(--sloe-heading);
    font-family: var(--sloe-display);
    font-weight: 600;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}

.sloe-option-a :is(h1, h2):not(:where(#regatta-documents, #regatta-documents *)) {
    font-size: var(--sloe-title-size);
    line-height: var(--sloe-title-line);
}

.sloe-option-a h3:not(:where(#regatta-documents, #regatta-documents *)) {
    font-size: 28px;
    line-height: 34px;
}

.sloe-option-a a:not(:where(#regatta-documents, #regatta-documents *)), .sloe-checklist a {
    color: var(--sloe-outline);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.sloe-option-a :not(:where(#regatta-documents, #regatta-documents *)):focus-visible, .sloe-checklist :focus-visible {
    outline: 2px solid var(--sloe-outline);
    outline-offset: 3px;
}

.sloe-option-a .sloe-option-hero,
.sloe-option-a .sloe-option-dark {
    --sloe-text: var(--sloe-shell);
    --sloe-heading: var(--sloe-shell);
    --sloe-outline: var(--sloe-shell);
    --sloe-label: var(--sloe-shell);
    color: var(--sloe-text);
    text-align: center;
}

.sloe-option-a .sloe-option-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--sloe-midnight);
    padding-block: var(--sloe-section-space);
}

.sloe-option-a .sloe-option-dark { background-color: var(--sloe-purple); }

/* Paint behind a shortcode on a constrained WordPress page without
   widening the content box or the neighboring theme blocks. */
.sloe-landing .sloe-option-hero {
    border-image: linear-gradient(var(--sloe-midnight), var(--sloe-midnight)) 1 fill / 0 / 0 100vw;
}
.sloe-landing .sloe-option-account {
    border-image: linear-gradient(var(--sloe-pink), var(--sloe-pink)) 1 fill / 0 / 0 100vw;
}
.sloe-landing .sloe-landing-broadside {
    border-image: linear-gradient(var(--sloe-purple), var(--sloe-purple)) 1 fill / 0 / 0 100vw;
}
.sloe-landing.sloe-option-a {
    width: auto;
    max-width: none;
    margin-inline: 0;
}

.sloe-option-a .sloe-option-hero-photo,
.sloe-option-a .sloe-option-hero-photo::after {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.sloe-option-a .sloe-option-hero-photo::after {
    content: '';
    z-index: auto;
    background: rgb(21 8 24 / 75%);
}

.sloe-option-a :is(.sloe-option-hero-photo, .sloe-regatta-photo) img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sloe-option-a .sloe-option-hero :is(h1, h2) {
    margin: 0 auto;
    max-width: 900px;
    text-wrap: balance;
}

.sloe-option-a .sloe-option-label {
    color: var(--sloe-label);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sloe-option-a .sloe-option-lead {
    margin: 20px auto 0;
    max-width: 40em;
    font: 400 18px/28px var(--sloe-body);
    white-space: pre-line;
}

.sloe-option-a :is(.sloe-option-actions, .sloe-option-search, .sloe-option-classes, .sloe-option-account > .sloe-option-inner) {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sloe-option-a .sloe-option-hero .sloe-option-actions {
    justify-content: center;
    margin-block-start: 36px;
}

.sloe-option-a .sloe-option-dark .sloe-option-actions { justify-content: center; }

.sloe-option-a .sloe-option-classes {
    justify-content: center;
    margin-inline: 0;
    padding: 0;
    list-style: none;
}

.sloe-option-a .sloe-option-account {
    --sloe-outline: var(--sloe-midnight);
    color: var(--sloe-midnight);
    background: var(--sloe-pink);
    padding-block: 18px;
}

.sloe-option-a .sloe-option-account > .sloe-option-inner {
    align-items: center;
    justify-content: space-between;
}

.sloe-option-a .sloe-option-account p {
    margin: 0;
    font-weight: 600;
}

.sloe-option-a .sloe-option-account .sloe-option-actions { gap: 12px; }

.sloe-option-a :is(a.sloe-option-button, .sloe-option-workspace a.button, .sloe-landing-video-content a.wp-block-button__link, button:not(:where(.sloe-checklist button, #regatta-documents, #regatta-documents *))),
.sloe-checklist .sloe-checklist-panel :is(button, a.button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 19px 32px;
    border: 1px solid currentColor;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--sloe-outline);
    font: 600 11px/16px var(--sloe-body);
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
}

.sloe-option-a :is(a.sloe-option-button, .sloe-option-workspace a.button, .sloe-landing-video-content a.wp-block-button__link, button:not(:where(.sloe-checklist button, #regatta-documents, #regatta-documents *))):hover,
.sloe-checklist .sloe-checklist-panel :is(button:not(:disabled), a.button):hover {
    text-decoration: underline;
}

.sloe-option-a .sloe-option-account a.sloe-option-button--filled {
    background: var(--sloe-midnight);
    border-color: var(--sloe-midnight);
    color: var(--sloe-shell);
}

.sloe-option-a .sloe-regatta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.sloe-option-a .sloe-option-section:has(> .sloe-regatta-grid) > h2 { text-align: center; }

.sloe-option-a :is(.sloe-option-card, .sloe-regatta-card) {
    background: var(--sloe-card);
}

.sloe-option-a .sloe-option-card {
    padding: 28px;
}

.sloe-option-a .sloe-regatta-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sloe-option-a .sloe-regatta-photo {
    background: var(--sloe-bloom);
    height: 220px;
}

.sloe-option-a .sloe-regatta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
}

.sloe-option-a .sloe-regatta-content > :is(h3, p) { margin: 0; }
.sloe-option-a .sloe-regatta-content a.sloe-option-button {
    align-self: flex-start;
    margin-block-start: auto;
    padding: 16px 28px;
}

.sloe-option-a .sloe-option-search { align-items: end; }
.sloe-option-a .sloe-option-search label {
    display: grid;
    gap: 8px;
    max-width: 100%;
}

.sloe-option-a.sloe-landing-search {
    --sloe-text: var(--sloe-shell);
    --sloe-heading: var(--sloe-shell);
    --sloe-label: var(--sloe-shell);
    --sloe-outline: var(--sloe-shell);
    --sloe-card: var(--sloe-dark-card);
    background: transparent;
    text-align: start;
    color-scheme: dark;
}

.sloe-landing-search .sloe-option-search label {
    flex: 1 1 220px;
    min-width: 0;
}

.sloe-landing-search .sloe-option-search input[type="search"] {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    background: transparent;
}

.sloe-option-a.sloe-landing-search .sloe-option-search button {
    background: var(--sloe-shell);
    border-color: var(--sloe-shell);
    color: var(--sloe-purple);
}

.sloe-landing-search-results { margin-block-start: 24px; }
.sloe-landing-search-results > :last-child { margin-block-end: 0; }
.sloe-option-a .sloe-landing-club-photo img { object-fit: contain; }
.sloe-landing-broadside .sloe-option-actions { margin-block-start: 24px; }
.sloe-landing-video-content { margin-block-start: 24px; }
.sloe-landing-video-content > :last-child { margin-block-end: 0; }

.sloe-landing-band :is(.wp-block-buttons, .sloe-option-search) { justify-content: center; }
.sloe-landing-band .sloe-option-search label { text-align: start; }

.sloe-option-a:is(.sloe-landing-band, .sloe-photo-band) {
    box-sizing: border-box;
    width: var(--sloe-band-width, 100%);
    max-width: none;
    margin-inline: calc((100% - var(--sloe-band-width, 100%)) / 2);
}

.sloe-landing-band .sloe-option-hero {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--sloe-band-header, 0px));
    min-height: calc(100svh - var(--sloe-band-header, 0px));
    border-image: none;
    background-image: var(--sloe-hero-poster, none);
    background-position: center;
    background-size: cover;
}

.sloe-landing-band .sloe-option-hero-photo::after {
    background: linear-gradient(to bottom, rgba(21,8,24,.4), rgba(21,8,24,.72));
}

.sloe-option-a.sloe-photo-band {
    --sloe-text: var(--sloe-shell);
    --sloe-heading: var(--sloe-shell);
    --sloe-outline: var(--sg-yellow, #ffe600);
    --sloe-photo-gradient: to right;
    padding-block: var(--sloe-section-space);
    background: linear-gradient(var(--sloe-photo-gradient), rgba(21,8,24,.9) 47%, rgba(21,8,24,.15)),
        var(--sloe-band-photo) center / cover no-repeat var(--sloe-midnight);
}

.sloe-option-a.sloe-photo-band--right { --sloe-photo-gradient: to left; }
.sloe-photo-band-content { max-width: min(32rem, 45%); }
.sloe-photo-band--right .sloe-photo-band-content { margin-inline-start: auto; }
.sloe-photo-band-content > :last-child { margin-block-end: 0; }

@media (max-width: 767px) {
    .sloe-option-a.sloe-photo-band {
        background-image: linear-gradient(to bottom, rgba(21,8,24,.87), rgba(21,8,24,.77)),
            var(--sloe-band-photo);
    }
    .sloe-photo-band-content { max-width: 32rem; }
}

.sloe-landing-band .sloe-landing-search .sloe-regatta-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.sloe-option-a :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), select, textarea):not(:where(#regatta-documents, #regatta-documents *)),
.sloe-checklist :is(input:not([type="hidden"], [type="checkbox"], [type="radio"]), select, textarea) {
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid var(--sloe-outline);
    border-radius: 0;
    color: var(--sloe-text);
    background: var(--sloe-card);
    font: inherit;
}

.sloe-option-a .sloe-regatta-share {
    margin-block: 1rem;
}

.sloe-option-a .sloe-regatta-share h2 {
    margin-block: 0 .5rem;
}

.sloe-regatta-share p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-block: .5rem 0;
    overflow-wrap: anywhere;
}

.sloe-regatta-share-code {
    font-size: 2rem;
    color: var(--sloe-heading);
}

.sloe-option-a .sloe-regatta-share [data-sloe-share-copy] {
    padding: .5rem 1rem;
}

.sloe-regatta-share [hidden] {
    display: none !important;
}

.sloe-option-a .sloe-option-notice {
    white-space: pre-wrap;
    background: var(--sloe-card);
    padding: 28px;
}

.sloe-option-a :is(.sloe-table-wrap, .sloe-results-table, .sloe-entries-table) {
    border-color: var(--sloe-outline);
    border-radius: 0;
}

.sloe-option-a .sloe-table-wrap { min-width: 0; }
.sloe-option-a :is(.sloe-results-table, .sloe-entries-table) {
    font: inherit;
    background: var(--sloe-card);
    color: var(--sloe-text);
}
.sloe-option-a :is(.sloe-results-table, .sloe-entries-table) :is(td, th) {
    border-color: var(--sloe-outline);
    white-space: normal;
}
.sloe-option-a :is(.sloe-results-table, .sloe-entries-table) thead th {
    background: var(--sloe-purple);
    color: var(--sloe-shell);
}
.sloe-option-a :is(.sloe-results-table, .sloe-entries-table) tbody tr:hover { background: var(--sloe-ground); }
.sloe-option-a :is(.sloe-class-meta, .sloe-empty, .sloe-discard) { color: var(--sloe-secondary); }

@media (max-width: 1024px) {
    .sloe-option-a .sloe-regatta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .sloe-option-a, .sloe-checklist {
        --sloe-title-size: 40px;
        --sloe-title-line: 46px;
        --sloe-section-space: 56px;
    }
    .sloe-option-a .sloe-regatta-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .sloe-option-a :is(.sloe-results-table, .sloe-entries-table) tbody tr {
        background: var(--sloe-card);
        border-color: var(--sloe-outline);
        border-radius: 0;
    }
    .sloe-option-a :is(.sloe-results-table, .sloe-entries-table) tbody td::before {
        color: var(--sloe-label);
        flex: 0 1 auto;
    }
}

/* Checklist layout */
.sloe-checklist {
    box-sizing: border-box;
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
    color: var(--sloe-text);
    background: var(--sloe-ground);
    font: 400 16px/24px var(--sloe-body);
    container-type: inline-size;
    overflow-wrap: anywhere;
}

.sloe-checklist *,
.sloe-checklist *::before,
.sloe-checklist *::after { box-sizing: border-box; }
.sloe-checklist [hidden] { display: none !important; }

:where(.sloe-checklist) .sloe-checklist-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin: 0 0 2rem;
}

.sloe-checklist .sloe-checklist-kicker,
.sloe-checklist h4 {
    margin: 0;
    color: var(--sloe-label);
    font: 600 12px/18px var(--sloe-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sloe-checklist h2,
.sloe-checklist h3 {
    color: var(--sloe-heading);
    font-family: var(--sloe-display);
    font-weight: 600;
    letter-spacing: -.015em;
}

.sloe-checklist h2 {
    margin: .375rem 0 0;
    font-size: var(--sloe-title-size);
    line-height: var(--sloe-title-line);
}

.sloe-checklist h2 em,
:where(.sloe-checklist) .sloe-checklist-signoff { color: var(--sloe-heading); }
:where(.sloe-checklist) .sloe-checklist-progress { width: 220px; max-width: 100%; }
:where(.sloe-checklist) .sloe-checklist-progress p { margin: 0 0 8px; text-align: right; font-size: 14px; color: var(--sloe-secondary); }
:where(.sloe-checklist) .sloe-checklist-progress strong { color: var(--sloe-text); }

:where(.sloe-checklist) .sloe-checklist-track {
    height: 4px;
    outline: 1px solid var(--sloe-outline);
    background: var(--sloe-ground);
    border-radius: 2px;
}

:where(.sloe-checklist) .sloe-checklist-track span {
    display: block;
    height: 100%;
    background: var(--sloe-heading);
    border-radius: inherit;
}

:where(.sloe-checklist) .sloe-checklist-layout {
    display: grid;
    grid-template-columns: minmax(16rem, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

.sloe-checklist ol.sloe-checklist-steps { list-style: none; margin: 0; padding: 0; }
:where(.sloe-checklist) .sloe-checklist-steps > li { position: relative; margin: 0; padding: 0; }

:where(.sloe-checklist) .sloe-checklist-steps > li:not(:last-child)::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 25px auto -25px 6px;
    width: 2px;
    background: var(--sloe-outline);
    pointer-events: none;
}

:where(.sloe-checklist) .sloe-checklist-steps > li.is-done::before { background: var(--sloe-heading); }

:where(.sloe-checklist) .sloe-checklist-steps button {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px 10px 34px;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    color: var(--sloe-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

:where(.sloe-checklist) .sloe-checklist-steps button[aria-current="step"] { background: var(--sloe-card); }
:where(.sloe-checklist) .sloe-checklist-steps button:hover { color: var(--sloe-text); background: var(--sloe-card); }
.sloe-checklist button:focus-visible, .sloe-checklist input:focus-visible { outline: 2px solid var(--sloe-label); outline-offset: 2px; }

:where(.sloe-checklist) .sloe-checklist-dot {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--sloe-outline);
    background: var(--sloe-ground);
}

:where(.sloe-checklist) .is-done .sloe-checklist-dot { background: var(--sloe-heading); border-color: var(--sloe-heading); }
:where(.sloe-checklist) .is-next .sloe-checklist-dot {
    border: 3px solid var(--sloe-heading);
    box-shadow: 0 0 0 2px var(--sloe-ground);
}

:where(.sloe-checklist) .sloe-checklist-step-text { display: grid; gap: 2px; min-width: 0; }
:where(.sloe-checklist) .sloe-checklist-step-title { font-size: 16px; font-weight: 500; line-height: 1.25; }
:where(.sloe-checklist) .is-next .sloe-checklist-step-title,
:where(.sloe-checklist) [aria-current="step"] .sloe-checklist-step-title { font-weight: 600; }
:where(.sloe-checklist) .is-done .sloe-checklist-step-title { color: var(--sloe-secondary); }
.sloe-checklist .sloe-checklist-meta { color: var(--sloe-secondary); font-size: 12px; }

:where(.sloe-checklist) .sloe-checklist-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: clamp(1.25rem, 3.4vw, 2.25rem);
    background: var(--sloe-card);
    border: 1px solid var(--sloe-outline);
    border-radius: 0;
}

:where(.sloe-checklist) .sloe-checklist-panel-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
:where(.sloe-checklist) .sloe-checklist-panel-meta .sloe-checklist-meta { font-size: 13px; }
:where(.sloe-checklist) .sloe-checklist-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 0;
    color: var(--sloe-label);
    background: var(--sloe-card);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

:where(.sloe-checklist) .sloe-checklist-pill.is-next { background: var(--sloe-outline); color: var(--sloe-ground); }
:where(.sloe-checklist) .sloe-checklist-pill.is-done { background: var(--sloe-card); color: var(--sloe-heading); }
:where(.sloe-checklist) .sloe-checklist-panel h3 { margin: 0; font-size: 28px; line-height: 34px; }
.sloe-checklist .sloe-checklist-why { margin: 0; max-width: 60ch; color: var(--sloe-text); }
:where(.sloe-checklist) :is(.sloe-checklist-instructions, .sloe-checklist-options) { display: grid; gap: 12px; }
:where(.sloe-checklist) .sloe-checklist-instructions ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; font-size: 15px; color: var(--sloe-text); }
:where(.sloe-checklist) .sloe-checklist-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
:where(.sloe-checklist) .sloe-checklist-panel form { margin: 0; }
.sloe-checklist .sloe-checklist-panel button:disabled { cursor: default; color: var(--sloe-secondary); }
:where(.sloe-checklist) .sloe-checklist-panel button small { display: block; font-size: 11px; }
.sloe-checklist .sloe-checklist-panel :is(button, a.button) { flex-direction: column; padding: 16px 28px; }
:where(.sloe-checklist) .sloe-checklist-panel input[type="text"] { min-height: 44px; max-width: 100%; }
:where(.sloe-checklist) .sloe-checklist-action { padding-top: 8px; border-top: 1px solid var(--sloe-outline); }
.sloe-checklist .sloe-checklist-action button.is-primary { color: var(--sloe-ground); background: var(--sloe-outline); border-color: var(--sloe-outline); }
.sloe-checklist .sloe-checklist-signoff { margin: 2rem 0 0; text-align: center; font: italic 600 16px/24px var(--sloe-display); }

@container (max-width: 640px) {
    :where(.sloe-checklist) .sloe-checklist-layout { grid-template-columns: minmax(0, 1fr); }
    :where(.sloe-checklist) .sloe-checklist-progress p { text-align: left; }
}

.sloe-checklist .sloe-role-invite-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    margin: 0;
}

.sloe-checklist .sloe-role-invite-form label { display: grid; gap: 4px; max-width: 100%; }
.sloe-checklist .sloe-role-invite-form input[type="email"] { min-height: 44px; max-width: 100%; }
.sloe-checklist .sloe-pending-role-invites { overflow-wrap: anywhere; }
.sloe-checklist .sloe-pending-role-invites p { margin: 0; }
.sloe-checklist .sloe-pending-role-invites ul { margin-bottom: 0; }
.sloe-checklist .sloe-pending-role-invites li + li { margin-top: .5rem; }

/* Club pages */
.sloe-option-a .sloe-club-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    justify-content: center;
    margin-block-start: 32px;
}

.sloe-option-a .sloe-club-navigation form {
    max-inline-size: 100%;
    margin: 0;
}

.sloe-option-a .sloe-club-navigation select {
    max-inline-size: 100%;
}

.sloe-club-page .sloe-club-burgee {
    width: auto;
    max-height: 44px;
    margin-block-end: 16px;
}

.sloe-club-page .sloe-club-media-note {
    margin-block: 16px 0;
    font-size: 15px;
}

.sloe-club-page .sloe-club-upcoming > h2 {
    margin-block: 0 12px;
    text-align: center;
}

.sloe-club-page .sloe-club-subtitle,
.sloe-club-page .sloe-club-empty {
    margin: 0 auto 56px;
    max-width: 560px;
    text-align: center;
}

.sloe-club-page .sloe-club-subtitle {
    color: var(--sloe-secondary);
    font-size: 18px;
    line-height: 28px;
}

.sloe-club-page .sloe-regatta-photo {
    position: relative;
}

.sloe-club-page .sloe-regatta-photo p {
    position: absolute;
    inset: auto 20px 20px;
    margin: 0;
    color: var(--sloe-shell);
}

.sloe-club-page .sloe-regatta-grid + .sloe-club-empty {
    margin-block: 24px 0;
}

.sloe-club-page .sloe-club-closing h2 {
    margin-block: 0 16px;
}

.sloe-club-page .sloe-club-closing p {
    max-width: 560px;
    margin: 0 auto 32px;
}

.sloe-club-page .sloe-club-application {
    max-width: 560px;
    margin-inline: auto;
    text-align: start;
}

.sloe-club-officers .sloe-officer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sloe-club-officers .sloe-officer-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    border-block-end: 1px solid var(--sloe-outline);
    padding-block: 12px;
}

.sloe-club-officers .sloe-officer-list li > * {
    flex: 1 1 150px;
}

.sloe-club-officers .sloe-officer-tools {
    margin-block-start: 40px;
}

.sloe-club-officers .sloe-officer-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 12px;
    margin-block-end: 12px;
}

.sloe-club-officers .sloe-officer-fields :is(input, select) {
    display: block;
    width: 100%;
}

.sloe-club-officers .sloe-officer-tools :is(h3, details form) {
    margin-block-start: 16px;
}

.sloe-club-officers .sloe-officer-tools details {
    margin-block-end: 8px;
}

.sloe-club-officers summary { cursor: pointer; }

.sloe-option-a .sloe-option-video {
    pointer-events: none;
    overflow: hidden;
    container-type: size;
}

.sloe-option-a .sloe-option-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sloe-option-a .sloe-option-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max(100%, 720px);
    width: max(100%, calc(100cqh * 16 / 9));
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: none;
    border: 0;
}

.sloe-option-a .sloe-option-video-credit {
    margin-block: 24px 0;
}

.sloe-option-a .sloe-option-video-credit p { margin-block: 0 6px; }

.sloe-option-a .sloe-option-video-title {
    font: 600 18px/28px var(--sloe-body);
}

.sloe-option-a .sloe-option-video-credit .sloe-option-button { margin-top: 6px; }

/* Sailor profile */
.sloe-sailor-page .sloe-sailor-columns {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr);
    gap: 48px;
    align-items: start;
    padding-block: var(--sloe-section-space);
}

.sloe-sailor-page :is(.sloe-sailor-center, .sloe-sailor-rail, .sloe-sailor-latest, .sloe-sailor-public) {
    display: grid;
    gap: 20px;
    min-width: 0;
    align-content: start;
}

.sloe-sailor-page :is(.sloe-sailor-center, .sloe-sailor-latest) { gap: 24px; }

.sloe-sailor-page .sloe-sailor-public {
    gap: 48px;
    padding-block: var(--sloe-section-space);
}

.sloe-sailor-page :is(.sloe-sailor-card, .sloe-sailor-broadside) {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.sloe-sailor-page .sloe-sailor-card--with-photo {
    display: flex;
    align-items: stretch;
    padding: 0;
    gap: 0;
}

.sloe-sailor-card-photo {
    position: relative;
    flex: 0 0 min(200px, 38%);
    background: var(--sloe-bloom);
}

.sloe-sailor-card-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sloe-sailor-card-content {
    display: grid;
    justify-items: start;
    gap: 6px;
}

.sloe-sailor-card--with-photo .sloe-sailor-card-content { padding: 28px; }

@media (max-width: 620px) {
    .sloe-sailor-card--with-photo { flex-direction: column; }
    .sloe-sailor-card-photo { flex: 0 0 150px; }
}

.sloe-sailor-page .sloe-sailor-broadside {
    padding: 32px;
    gap: 10px;
    text-align: start;
}

.sloe-sailor-page :is(.sloe-sailor-card, .sloe-sailor-broadside, .sloe-sailor-latest) :is(h2, h3, p, ul) {
    margin: 0;
}

.sloe-sailor-page .sloe-sailor-broadside .sloe-option-actions { justify-content: start; margin-top: 8px; }
.sloe-sailor-page .sloe-sailor-broadside .sloe-option-button { padding: 16px 28px; }

.sloe-sailor-page .sloe-sailor-rail-item { width: 100%; }
.sloe-sailor-page .sloe-sailor-rail-item p { color: var(--sloe-secondary); }
.sloe-sailor-page .sloe-sailor-helping {
    padding: 0;
    gap: 0;
    justify-items: stretch;
}

.sloe-sailor-page .sloe-sailor-helping h2 {
    padding: 10px 24px;
    background: var(--sloe-pink);
    color: var(--sloe-midnight);
    font: 600 12px/18px var(--sloe-body);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sloe-sailor-page .sloe-sailor-helping .sloe-sailor-rail-item {
    box-sizing: border-box;
    padding: 16px 24px;
}
.sloe-sailor-page .sloe-sailor-helping .sloe-sailor-rail-item + .sloe-sailor-rail-item {
    border-top: 1px solid var(--sloe-ground);
}

@media (max-width: 900px) {
    .sloe-sailor-page .sloe-sailor-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

.sloe-headshot {
    width: 24px;
    height: 24px;
    border-radius: 0;
    object-fit: cover;
    vertical-align: middle;
    margin-inline-end: .375rem;
}

.sloe-option-hero h1.sloe-headshot-title {
    display: flex;
    align-items: center;
    gap: .25em;
}

.sloe-headshot-title .sloe-headshot,
.sloe-headshot-initial {
    width: clamp(2.5rem, 11vw, 6rem);
    height: auto;
    aspect-ratio: 1;
    flex-shrink: 0;
}

.sloe-headshot-initial {
    display: grid;
    place-items: center;
    background: #fff;
    color: #141414;
    line-height: 1;
    font-size: .6em;
    text-transform: uppercase;
}

.sloe-photo-controls {
    margin-block: .75rem;
}

.sloe-photo-controls canvas {
    display: block;
    width: min(100%, 280px);
    height: auto;
    touch-action: none;
    cursor: grab;
}
