:root {
    --rb-bg: #f7f8fa;
    --rb-surface: #ffffff;
    --rb-surface-2: #eef3f2;
    --rb-text: #111827;
    --rb-muted: #4b5563;
    --rb-border: #d8e0df;
    --rb-border-strong: #b9c8c5;
    --rb-primary: #0f766e;
    --rb-primary-strong: #0b5f59;
    --rb-blue: #295c7a;
    --rb-warn: #d97706;
    --rb-danger: #b42318;
    --rb-shadow: 0 16px 50px rgba(23, 32, 27, 0.08);
    --rb-radius: 8px;
    --rb-max: 1180px;
    --rb-font: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--rb-bg);
}

.rb-body {
    margin: 0;
    min-height: 100%;
    background: var(--rb-bg);
    color: var(--rb-text);
    font-family: var(--rb-font);
    letter-spacing: 0;
}

.rb-body a {
    color: inherit;
}

.rb-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
    padding: 14px clamp(18px, 4vw, 44px);
    background: rgba(247, 248, 245, 0.92);
    border-bottom: 1px solid var(--rb-border);
    backdrop-filter: blur(16px);
}

.rb-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 226px;
    text-decoration: none;
}

.rb-brand__mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.rb-brand__copy {
    display: grid;
    gap: 2px;
}

.rb-brand__copy strong {
    font-size: 1rem;
    line-height: 1.1;
}

.rb-brand__copy span,
.rb-account__link {
    color: var(--rb-muted);
    font-size: 0.84rem;
}

.rb-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    background: var(--rb-surface);
}

.rb-nav__link {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--rb-muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.rb-nav__link.is-active {
    background: var(--rb-text);
    color: #fff;
}

.rb-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.rb-main {
    width: min(var(--rb-max), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 72px;
}

.rb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: end;
    padding: clamp(24px, 4vw, 44px) 0 28px;
}

.rb-hero--compact {
    min-height: 170px;
}

.rb-hero--image {
    position: relative;
    isolation: isolate;
    min-height: clamp(360px, 45vw, 510px);
    align-items: end;
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(216, 224, 223, 0.92);
    border-radius: var(--rb-radius);
    background:
        linear-gradient(90deg, rgba(247, 248, 250, 0.99) 0%, rgba(247, 248, 250, 0.95) 35%, rgba(247, 248, 250, 0.66) 56%, rgba(247, 248, 250, 0.08) 100%),
        var(--rb-hero-image);
    background-position: center right;
    background-size: cover;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.12);
}

.rb-hero--concept {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
    align-items: center;
    min-height: clamp(330px, 39vw, 470px);
    overflow: hidden;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: var(--rb-radius);
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.96) 56%, rgba(255, 253, 248, 0.82) 100%),
        var(--rb-hero-image);
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: auto, min(760px, 64%) auto;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.11);
}

.rb-hero--concept::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        repeating-linear-gradient(12deg, rgba(17, 24, 39, 0.035) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(102deg, rgba(15, 118, 110, 0.03) 0 1px, transparent 1px 58px);
    opacity: 0.62;
}

.rb-hero--support {
    position: relative;
    isolation: isolate;
    align-items: center;
    min-height: clamp(250px, 28vw, 350px);
    overflow: hidden;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: var(--rb-radius);
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.95) 58%, rgba(255, 253, 248, 0.82) 100%),
        var(--rb-hero-image);
    background-position: center, right -90px center;
    background-repeat: no-repeat;
    background-size: auto, min(620px, 54%) auto;
    box-shadow: 0 18px 58px rgba(17, 24, 39, 0.1);
}

.rb-hero--support::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        repeating-linear-gradient(12deg, rgba(17, 24, 39, 0.03) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(102deg, rgba(15, 118, 110, 0.025) 0 1px, transparent 1px 58px);
    opacity: 0.66;
}

.rb-hero__copy {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.rb-hero--concept .rb-hero__copy {
    max-width: 590px;
    gap: 20px;
}

.rb-hero--support .rb-hero__copy {
    max-width: 660px;
    gap: 18px;
}

.rb-hero--concept h1 {
    max-width: 680px;
    font-size: clamp(2.6rem, 4.4vw, 4rem);
}

.rb-hero--support h1 {
    max-width: 720px;
    font-size: 3.25rem;
}

.rb-hero--concept p {
    max-width: 540px;
    color: #374151;
    font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.rb-hero--support p {
    max-width: 560px;
    color: #374151;
    font-size: 1.1rem;
}

.rb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rb-hero__actions .rb-button {
    min-height: 52px;
    padding: 0 22px;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.rb-hero__actions .rb-button--primary {
    background: #2563c7;
}

.rb-hero__actions .rb-button--primary:hover {
    background: #1d4fa3;
}

.rb-hero__panel-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.rb-hero-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: var(--rb-radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
    backdrop-filter: blur(16px);
}

.rb-hero-card h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.12;
}

.rb-hero-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rb-hero-card li {
    position: relative;
    padding-left: 26px;
    color: #374151;
    line-height: 1.45;
}

.rb-hero-card li::before {
    position: absolute;
    top: 0.1em;
    left: 0;
    content: "\2713";
    color: var(--rb-primary);
    font-weight: 800;
}

.rb-launchpad-list {
    display: grid;
    gap: 9px;
}

.rb-launchpad-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid rgba(216, 224, 223, 0.78);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--rb-text);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.rb-launchpad-list span {
    display: inline-grid;
    width: 28px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(41, 92, 122, 0.18);
    border-radius: 5px;
    background: #eef5f8;
    color: var(--rb-blue);
    font-size: 0.72rem;
    letter-spacing: 0;
}

.rb-support-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: var(--rb-radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.09);
    backdrop-filter: blur(16px);
}

.rb-support-card h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: 1.3rem;
    line-height: 1.12;
}

.rb-support-card p {
    color: var(--rb-muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

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

.rb-support-metrics div {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(216, 224, 223, 0.82);
    border-radius: 6px;
    background: rgba(247, 248, 250, 0.92);
}

.rb-support-metrics strong {
    display: block;
    color: var(--rb-text);
    font-size: 1.45rem;
    line-height: 1;
}

.rb-support-metrics span {
    display: block;
    margin-top: 6px;
    color: var(--rb-muted);
    font-size: 0.8rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rb-kicker {
    margin: 0;
    color: var(--rb-primary);
    font-size: 0.88rem;
    font-weight: 800;
}

.rb-hero h1,
.rb-detail-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4.6rem);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.rb-hero p,
.rb-detail-hero p,
.rb-section__header p,
.rb-panel p,
.rb-empty-state p {
    margin: 0;
    color: var(--rb-muted);
    font-size: 1rem;
    line-height: 1.6;
}

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

.rb-summary-cell {
    min-height: 88px;
    padding: 16px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
}

.rb-hero--image .rb-summary-cell {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.11);
    backdrop-filter: blur(14px);
}

.rb-summary-cell strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
}

.rb-summary-cell span {
    display: block;
    margin-top: 8px;
    color: var(--rb-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.rb-live-explorer-anchor {
    scroll-margin-top: 104px;
}

.rb-search-command {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(140px, 0.35fr) minmax(150px, 0.35fr) minmax(150px, 0.35fr) auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
    box-shadow: var(--rb-shadow);
}

.rb-search-command label {
    display: grid;
    gap: 7px;
    color: var(--rb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-search-command input,
.rb-search-command select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--rb-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--rb-text);
    font: inherit;
    font-size: 0.96rem;
    outline: none;
    padding: 0 12px;
}

.rb-search-command input:focus,
.rb-search-command select:focus {
    border-color: var(--rb-primary);
    box-shadow: 0 0 0 3px rgba(20, 108, 67, 0.14);
}

.rb-alert-capture {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
}

.rb-alert-capture__copy {
    display: grid;
    gap: 8px;
}

.rb-alert-capture h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: 1.35rem;
    line-height: 1.1;
}

.rb-alert-capture p {
    margin: 0;
    color: var(--rb-muted);
    line-height: 1.5;
}

.rb-alert-capture__panel {
    display: grid;
    gap: 10px;
}

.rb-alert-capture__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.rb-alert-capture__form label {
    display: grid;
    gap: 7px;
    color: var(--rb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-alert-capture__form input[type="email"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--rb-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--rb-text);
    font: inherit;
    font-size: 0.96rem;
    outline: none;
    padding: 0 12px;
}

.rb-alert-capture__form input[type="email"]:focus {
    border-color: var(--rb-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.rb-alert-capture__feedback {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 800;
}

.rb-alert-capture__feedback--success {
    background: rgba(15, 118, 110, 0.1);
    color: var(--rb-primary-strong);
}

.rb-alert-capture__feedback--error {
    background: rgba(180, 35, 24, 0.1);
    color: var(--rb-danger);
}

.rb-auth-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.58fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
    min-height: clamp(430px, 54vw, 580px);
    overflow: hidden;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: var(--rb-radius);
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.95) 58%, rgba(255, 253, 248, 0.76) 100%),
        var(--rb-hero-image);
    background-position: center, right -110px center;
    background-repeat: no-repeat;
    background-size: auto, min(760px, 58%) auto;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.11);
}

.rb-auth-shell::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        repeating-linear-gradient(12deg, rgba(17, 24, 39, 0.035) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(102deg, rgba(15, 118, 110, 0.03) 0 1px, transparent 1px 58px);
    opacity: 0.58;
}

.rb-auth-shell__copy {
    display: grid;
    gap: 18px;
    max-width: 700px;
}

.rb-auth-shell h1 {
    margin: 0;
    color: var(--rb-text);
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    line-height: 0.96;
}

.rb-auth-shell__copy > p {
    max-width: 620px;
    margin: 0;
    color: var(--rb-muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.rb-auth-shell__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 640px;
}

.rb-auth-shell__proof div,
.rb-auth-card {
    border: 1px solid rgba(216, 224, 223, 0.9);
    border-radius: var(--rb-radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.rb-auth-shell__proof div {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.rb-auth-shell__proof strong {
    color: var(--rb-text);
}

.rb-auth-shell__proof span {
    color: var(--rb-muted);
    font-size: 0.9rem;
    line-height: 1.38;
}

.rb-auth-card {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: clamp(20px, 3vw, 28px);
    backdrop-filter: blur(14px);
}

.rb-auth-card h2 {
    margin: 0;
    color: var(--rb-text);
    font-size: 1.55rem;
    line-height: 1.08;
}

.rb-auth-card p {
    margin: 0;
    color: var(--rb-muted);
    line-height: 1.45;
}

.rb-auth-card__error {
    padding: 11px 12px;
    border: 1px solid rgba(180, 35, 24, 0.22);
    border-radius: 6px;
    background: rgba(180, 35, 24, 0.08);
    color: var(--rb-danger);
    font-size: 0.9rem;
    font-weight: 800;
}

.rb-auth-form {
    display: grid;
    gap: 12px;
}

.rb-auth-form label {
    display: grid;
    gap: 7px;
    color: var(--rb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--rb-border-strong);
    border-radius: 6px;
    background: #fff;
    color: var(--rb-text);
    font: inherit;
    font-size: 0.96rem;
    outline: none;
    padding: 0 12px;
}

.rb-auth-form input:focus {
    border-color: var(--rb-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.rb-auth-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    color: var(--rb-primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.rb-auth-card__links a {
    color: inherit;
    text-decoration: none;
}

.rb-membership-prompt {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid rgba(216, 224, 223, 0.9);
    border-radius: var(--rb-radius);
    background:
        linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(238, 245, 248, 0.72)),
        radial-gradient(circle at 92% 8%, rgba(37, 99, 199, 0.12), transparent 34%);
    box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.rb-membership-prompt__copy {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.rb-membership-prompt h2 {
    max-width: 720px;
    margin: 0;
    color: var(--rb-text);
    font-size: 1.8rem;
    line-height: 1.08;
}

.rb-membership-prompt p {
    max-width: 680px;
    margin: 0;
    color: var(--rb-muted);
    line-height: 1.5;
}

.rb-membership-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rb-membership-prompt__list {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rb-membership-prompt__list li {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(216, 224, 223, 0.86);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
}

.rb-membership-prompt__list strong {
    color: var(--rb-text);
    font-size: 0.95rem;
}

.rb-membership-prompt__list span {
    color: var(--rb-muted);
    font-size: 0.9rem;
    line-height: 1.42;
}

.rb-section {
    margin-top: 34px;
}

.rb-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.rb-section__header h2,
.rb-panel h2,
.rb-calendar-month__header h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.08;
}

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

.rb-feature-card,
.rb-panel,
.rb-empty-state {
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
    box-shadow: 0 12px 32px rgba(23, 32, 27, 0.06);
}

.rb-feature-card {
    overflow: hidden;
}

.rb-feature-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--rb-surface-2);
}

.rb-media-placeholder {
    position: relative;
    display: grid;
    min-height: 116px;
    place-items: center;
    align-content: center;
    gap: 9px;
    overflow: hidden;
    padding: 18px;
    background: #173a28;
    color: #fff;
    text-align: center;
}

.rb-media-placeholder::before,
.rb-media-placeholder::after {
    position: absolute;
    content: "";
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: skewX(-14deg);
}

.rb-media-placeholder::after {
    inset: auto 24px 24px;
    height: 3px;
    border: 0;
    background: #ff5a1f;
    transform: none;
}

.rb-media-placeholder span {
    display: grid;
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #ff5a1f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-media-placeholder strong,
.rb-media-placeholder em {
    position: relative;
    z-index: 1;
}

.rb-media-placeholder strong {
    font-size: 0.86rem;
}

.rb-media-placeholder em {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 800;
}

.rb-feature-card > .rb-media-placeholder {
    aspect-ratio: 16 / 9;
}

.rb-feature-card > div:not(.rb-media-placeholder) {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 16px;
}

.rb-feature-card h3 {
    margin: 0;
    font-size: 1.18rem;
    overflow-wrap: anywhere;
}

.rb-feature-card h3 a,
.rb-race-item__title,
.rb-my-race h3 a {
    text-decoration: none;
}

.rb-feature-card p,
.rb-race-item p,
.rb-my-race p {
    margin: 0;
    color: var(--rb-muted);
    line-height: 1.45;
}

.rb-race-list,
.rb-my-races-list,
.rb-calendar-stack {
    display: grid;
    gap: 12px;
}

.rb-race-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) minmax(168px, auto);
    gap: 18px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
}

.rb-race-item__media {
    overflow: hidden;
    border-radius: 6px;
    background: var(--rb-surface-2);
}

.rb-race-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 116px;
    object-fit: cover;
}

.rb-race-item__media .rb-media-placeholder {
    height: 100%;
}

.rb-race-item__main,
.rb-race-item__actions {
    display: grid;
    gap: 12px;
    align-content: center;
    min-width: 0;
}

.rb-race-item__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.rb-race-item__heading > * {
    min-width: 0;
    max-width: 100%;
}

.rb-race-item__title {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 1.18rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rb-race-item__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.rb-race-item__facts span,
.rb-chip-list span,
.rb-date-chip,
.rb-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid var(--rb-border);
    border-radius: 999px;
    background: var(--rb-surface-2);
    color: var(--rb-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.rb-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
}

.rb-trust-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--rb-border);
    color: var(--rb-muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.rb-trust-pill--good {
    border-color: rgba(20, 108, 67, 0.22);
    background: rgba(20, 108, 67, 0.1);
    color: var(--rb-primary-strong);
}

.rb-trust-pill--warn {
    border-color: rgba(157, 92, 0, 0.24);
    background: rgba(157, 92, 0, 0.1);
    color: var(--rb-warn);
}

.rb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rb-race-item__actions {
    justify-items: stretch;
}

.rb-race-item__actions > .rb-button {
    width: 100%;
}

.rb-button,
.rb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.rb-button:hover,
.rb-link:hover {
    transform: translateY(-1px);
}

.rb-button--small {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.84rem;
}

.rb-button--primary {
    background: var(--rb-primary);
    color: #fff;
}

a.rb-button--primary {
    color: #fff;
}

.rb-button--primary:hover {
    background: var(--rb-primary-strong);
}

.rb-button--secondary {
    border-color: var(--rb-border-strong);
    background: #fff;
    color: var(--rb-text);
}

.rb-button--quiet {
    border-color: transparent;
    background: var(--rb-surface-2);
    color: var(--rb-text);
}

.rb-button--disabled {
    border-color: var(--rb-border);
    background: var(--rb-surface-2);
    color: var(--rb-muted);
    cursor: not-allowed;
}

.rb-button.is-active {
    border-color: rgba(20, 108, 67, 0.32);
    background: rgba(20, 108, 67, 0.11);
    color: var(--rb-primary-strong);
}

a.rb-button.is-active {
    color: var(--rb-primary-strong);
}

.rb-link {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    color: var(--rb-primary);
}

.rb-detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px 0;
}

.rb-detail-hero__media {
    overflow: hidden;
    border-radius: var(--rb-radius);
    background: var(--rb-surface-2);
}

.rb-detail-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.rb-detail-hero__media .rb-media-placeholder {
    height: 100%;
    min-height: 420px;
}

.rb-detail-hero__media .rb-media-placeholder span {
    width: 72px;
    height: 72px;
    font-size: 1rem;
}

.rb-detail-hero__media .rb-media-placeholder strong {
    font-size: 1.1rem;
}

.rb-detail-hero__content {
    display: grid;
    gap: 16px;
    align-content: center;
    min-width: 0;
}

.rb-detail-hero__content p {
    overflow-wrap: anywhere;
}

.rb-detail-hero__meta {
    font-weight: 800;
}

.rb-back-link {
    color: var(--rb-primary);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.rb-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.rb-detail-grid,
.rb-section--two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 16px;
}

.rb-panel {
    min-width: 0;
    padding: 20px;
}

.rb-fact-grid,
.rb-trust-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.rb-fact-grid div,
.rb-trust-list div {
    padding: 12px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    background: var(--rb-bg);
}

.rb-fact-grid dt,
.rb-trust-list dt {
    color: var(--rb-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.rb-fact-grid dd,
.rb-trust-list dd {
    margin: 6px 0 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rb-panel--trust {
    display: grid;
    gap: 14px;
    align-content: start;
}

.rb-correction-outcomes {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--rb-border);
}

.rb-correction-outcomes h3 {
    margin: 0;
    color: var(--rb-text);
    font-size: 1.05rem;
    line-height: 1.15;
}

.rb-correction-outcomes p {
    margin: 0;
    color: var(--rb-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.rb-correction-outcomes__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.rb-correction-outcomes__grid div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--rb-border);
    border-radius: 6px;
    background: var(--rb-bg);
}

.rb-correction-outcomes__grid strong {
    display: block;
    color: var(--rb-text);
    font-size: 1.35rem;
    line-height: 1;
}

.rb-correction-outcomes__grid span {
    display: block;
    margin-top: 6px;
    color: var(--rb-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.rb-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.rb-empty-state {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 28px;
    padding: 28px;
}

.rb-empty-state h2 {
    margin: 0;
}

.rb-calendar-month {
    display: grid;
    gap: 12px;
}

.rb-calendar-month__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rb-calendar-month__header span {
    color: var(--rb-muted);
    font-weight: 800;
}

.rb-status-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rb-status-tabs span {
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    background: var(--rb-surface);
    color: var(--rb-muted);
    font-weight: 800;
}

.rb-status-tabs strong {
    display: block;
    color: var(--rb-text);
    font-size: 1.5rem;
}

.rb-my-race {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rb-border);
}

.rb-my-race:last-child {
    border-bottom: 0;
}

.rb-my-race h3 {
    margin: 8px 0 4px;
    font-size: 1.12rem;
}

.rb-my-race small {
    display: block;
    margin-top: 6px;
    color: var(--rb-muted);
    font-weight: 700;
}

.rb-status-badge--registered {
    background: rgba(31, 95, 153, 0.1);
    color: var(--rb-blue);
}

.rb-status-badge--completed {
    background: rgba(20, 108, 67, 0.1);
    color: var(--rb-primary);
}

.rb-next-race-name {
    color: var(--rb-text) !important;
    font-size: 1.25rem !important;
    font-weight: 800;
}

.rb-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 6px;
    background: var(--rb-text);
    color: #fff;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.rb-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rb-toast[data-tone="error"] {
    background: var(--rb-danger);
}

@media (max-width: 1120px) {
    .rb-auth-shell {
        grid-template-columns: 1fr;
        background-position: center, right -230px bottom -90px;
        background-size: auto, 720px auto;
    }

    .rb-race-item {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .rb-race-item__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .rb-topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .rb-brand {
        min-width: 0;
    }

    .rb-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .rb-hero,
    .rb-detail-hero,
    .rb-detail-grid,
    .rb-section--two {
        grid-template-columns: 1fr;
    }

    .rb-search-command {
        grid-template-columns: 1fr 1fr;
    }

    .rb-search-command__query {
        grid-column: 1 / -1;
    }

    .rb-alert-capture {
        grid-template-columns: 1fr;
    }

    .rb-auth-shell {
        grid-template-columns: 1fr;
        background-position: center, right -260px bottom -100px;
        background-size: auto, 720px auto;
    }

    .rb-membership-prompt {
        grid-template-columns: 1fr;
    }

    .rb-feature-grid {
        grid-template-columns: 1fr;
    }

    .rb-hero--concept {
        grid-template-columns: 1fr;
        background-size: auto, 780px auto;
        background-position: center, right -220px bottom -80px;
    }

    .rb-hero--support {
        grid-template-columns: 1fr;
        background-size: auto, 700px auto;
        background-position: center, right -240px bottom -110px;
    }

    .rb-hero--concept .rb-hero__copy {
        max-width: 700px;
    }

    .rb-hero--support .rb-hero__copy {
        max-width: 700px;
    }

    .rb-hero--support h1 {
        font-size: 2.75rem;
    }

    .rb-race-item {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .rb-race-item__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .rb-main {
        width: min(100% - 22px, var(--rb-max));
        padding-top: 18px;
    }

    .rb-topbar {
        padding: 12px;
    }

    .rb-brand__copy span {
        display: none;
    }

    .rb-account {
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }

    .rb-hero {
        padding-top: 24px;
    }

    .rb-hero--image {
        min-height: 0;
        padding: 24px;
        background:
            linear-gradient(180deg, rgba(247, 248, 250, 0.98) 0%, rgba(247, 248, 250, 0.92) 46%, rgba(247, 248, 250, 0.76) 100%),
            var(--rb-hero-image);
        background-position: 58% top;
        background-size: cover;
    }

    .rb-hero--concept {
        min-height: 0;
        padding: 26px;
        background:
            linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.96) 62%, rgba(255, 253, 248, 0.9) 100%),
            var(--rb-hero-image);
        background-position: center, right -250px bottom -100px;
        background-size: auto, 620px auto;
    }

    .rb-hero--support {
        min-height: 0;
        padding: 24px;
        background:
            linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.97) 64%, rgba(255, 253, 248, 0.92) 100%),
            var(--rb-hero-image);
        background-position: center, right -260px bottom -130px;
        background-size: auto, 610px auto;
    }

    .rb-hero__actions,
    .rb-hero__actions .rb-button {
        width: 100%;
    }

    .rb-auth-shell {
        min-height: 0;
        padding: 24px;
        background:
            linear-gradient(180deg, rgba(255, 253, 248, 0.99) 0%, rgba(255, 253, 248, 0.97) 64%, rgba(255, 253, 248, 0.9) 100%),
            var(--rb-hero-image);
        background-position: center, right -270px bottom -120px;
        background-size: auto, 600px auto;
    }

    .rb-auth-shell h1 {
        font-size: 2.1rem;
    }

    .rb-auth-shell__proof {
        grid-template-columns: 1fr;
    }

    .rb-hero__panel-stack {
        display: none;
    }

    .rb-hero-card {
        padding: 18px;
    }

    .rb-support-card {
        padding: 18px;
    }

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

    .rb-hero--support h1 {
        font-size: 2rem;
    }

    .rb-hero--support p {
        font-size: 1rem;
    }

    .rb-hero h1,
    .rb-detail-hero h1 {
        font-size: 2rem;
        line-height: 1.02;
    }

    .rb-summary-grid,
    .rb-status-tabs,
    .rb-search-command,
    .rb-alert-capture,
    .rb-alert-capture__form,
    .rb-membership-prompt,
    .rb-correction-outcomes__grid,
    .rb-fact-grid,
    .rb-trust-list {
        grid-template-columns: 1fr;
    }

    .rb-section__header,
    .rb-race-item__heading,
    .rb-my-race,
    .rb-calendar-month__header {
        align-items: stretch;
        flex-direction: column;
    }

    .rb-race-item {
        grid-template-columns: 1fr;
    }

    .rb-race-item__media img,
    .rb-detail-hero__media img {
        min-height: 220px;
    }

    .rb-actions,
    .rb-detail-hero__actions,
    .rb-membership-prompt__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rb-membership-prompt {
        padding: 20px;
    }

    .rb-membership-prompt h2 {
        font-size: 1.55rem;
    }

    .rb-button {
        width: 100%;
    }

    .rb-race-item__facts span,
    .rb-chip-list span,
    .rb-date-chip,
    .rb-status-badge,
    .rb-trust-pill {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
