/* RunnerStats mobile UI. Scoped to plugin content, independent of Enfold. */
#top .rs-app, .rs-table-shell { --rs-ink:#202326; --rs-muted:#62686d; --rs-line:#dce0e3; --rs-yellow:#ffcf00; color:var(--rs-ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
#top .rs-app *, .rs-table-shell * { box-sizing:border-box; }
#top .rs-app [hidden], .rs-table-shell [hidden] { display:none!important; }
#top .rs-app a { color:inherit; }
#top .rs-app :is(a,button,input,summary):focus-visible, .rs-table-scroll:focus-visible { outline:3px solid #1664a5!important; outline-offset:3px; }
#top .rs-app .rs-sr-only, .rs-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
#top .rs-app { margin:0 auto 32px; max-width:1200px; font-size:16px; line-height:1.5; }
#top .rs-app :is(h1,h2,h3,p) { margin-top:0; }
#top .rs-app .rs-eyebrow { font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; margin-bottom:8px; color:#636a70; }
#top .rs-app .rs-race-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
#top .rs-app .rs-race-header h2 { font-size:clamp(26px,3vw,36px); line-height:1.15; letter-spacing:-.035em; margin-bottom:10px; font-weight:800; text-transform:none; }
#top .rs-app .rs-race-header p:not(.rs-eyebrow) { margin-bottom:0; color:var(--rs-muted); }
#top .rs-app label { display:block; font-size:14px; font-weight:700; margin-bottom:7px; color:var(--rs-ink); }
#top .rs-app input:is([type="email"],[type="password"],[type="text"]) { display:block; width:100%; max-width:none; min-height:48px; padding:12px 14px; margin:0; border:1px solid #bbc2c7; border-radius:10px; background:#fff; color:var(--rs-ink); font:inherit; font-size:16px; box-shadow:none; }
#top .rs-app .rs-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:48px; padding:12px 20px; border:1px solid transparent; border-radius:10px; font:inherit; font-size:15px; line-height:1.4; font-weight:750; text-align:center; text-decoration:none; cursor:pointer; box-shadow:none; transition:background-color .15s; }
#top .rs-app .rs-button-primary { color:#151719; background:var(--rs-yellow); border-color:var(--rs-yellow); }
#top .rs-app .rs-button-primary:hover { background:#edbf00; border-color:#edbf00; }
#top .rs-app .rs-button-secondary { color:var(--rs-ink); background:#fff; border-color:#bbc2c7; }
#top .rs-app .rs-button:disabled { opacity:.65; cursor:wait; }
#top .rs-app .rs-race-table { width:100%; table-layout:auto; border-collapse:separate; border-spacing:0; margin:0; font-size:14px; }
#top .rs-app .rs-race-table th { background:#f3f5f6; color:#58616a; padding:14px 12px; font-size:11px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; border:0; border-bottom:1px solid var(--rs-line); }
#top .rs-app .rs-race-table td { background:#fff; color:var(--rs-ink); padding:20px 12px; border:0; border-bottom:1px solid var(--rs-line); vertical-align:middle; font-size:14px; }
#top .rs-app .rs-race-name { width:28%; }
#top .rs-app .rs-race-name h3 { margin:0 0 7px; font-size:17px; font-weight:750; line-height:1.3; letter-spacing:-.02em; text-transform:none; }
#top .rs-app .rs-race-name a { text-decoration:none; }
#top .rs-app .rs-race-name a:hover { text-decoration:underline; }
#top .rs-app .rs-distance { display:inline-block; padding:3px 9px; background:#f1f3f4; border-radius:6px; color:#424b52; font-size:12px; font-weight:700; }
#top .rs-app .rs-race-date time { display:block; white-space:nowrap; font-weight:650; }
#top .rs-app .rs-weekday, #top .rs-app .rs-race-fee small { display:block; color:var(--rs-muted); font-size:12px; margin-top:3px; }
#top .rs-app .rs-race-fee strong { color:var(--rs-ink); font-size:17px; white-space:nowrap; }
#top .rs-app .rs-race-members { white-space:nowrap; }
#top .rs-app .rs-race-members span { color:var(--rs-muted); }
#top .rs-app .rs-race-action { text-align:right; }
#top .rs-app .rs-empty, #top .rs-app .rs-empty-state { padding:24px; border:1px dashed #bcc3c8; border-radius:12px; color:var(--rs-muted); background:#f7f8f9; }
#top .rs-app .rs-empty { margin-top:16px; }
body.runnerstats-registration-index #main .content { padding-top:32px; }
/* Standalone race and cancellation pages. */
body.runnerstats-registration-detail #main { background:#f5f6f7; }
.rs-page-shell { padding-top:24px!important; padding-bottom:48px!important; }
#top .rs-app .rs-breadcrumb { display:inline-flex; align-items:center; min-height:44px; margin-bottom:14px; font-size:14px; font-weight:600; text-decoration:none; }
#top .rs-app .rs-event-hero { margin-bottom:24px; }
#top .rs-app .rs-event-hero h1, #top .rs-app .rs-event-title { font-size:clamp(28px,4vw,44px); line-height:1.13; letter-spacing:-.04em; font-weight:800; text-transform:none; margin:0 0 14px; }
#top .rs-app .rs-event-meta { display:flex; flex-wrap:wrap; gap:6px 20px; color:var(--rs-muted); }
#top .rs-app .rs-event-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
#top .rs-app .rs-chip { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--rs-line); border-radius:8px; padding:7px 11px; background:#fff; font-size:13px; }
#top .rs-app .rs-chip strong { color:var(--rs-ink); }
#top .rs-app .rs-registration-layout { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:24px; }
#top .rs-app .rs-panel { min-width:0; background:#fff; border:1px solid var(--rs-line); border-radius:16px; padding:24px; box-shadow:0 3px 12px #15232c04; }
#top .rs-app .rs-panel h2 { font-size:22px; line-height:1.25; letter-spacing:-.025em; margin:0 0 12px; text-transform:none; font-weight:750; }
#top .rs-app .rs-field { margin:0 0 20px; }
#top .rs-app .rs-form-help { color:var(--rs-muted); font-size:14px; line-height:1.5; }
#top .rs-app .rs-field .rs-form-help { margin:7px 0 0; font-size:12px; }
#top .rs-app .rs-registration-form { margin:20px 0 0; }
#top .rs-app .rs-form-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-top:24px; }
#top .rs-app .rs-form-actions .rs-button { width:100%; }
#top .rs-app .rs-fee-details { margin:18px 0 0; color:var(--rs-muted); font-size:14px; }
#top .rs-app summary { min-height:44px; cursor:pointer; font-weight:650; color:var(--rs-ink); }
#top .rs-app .rs-fee-details summary { display:list-item; padding:10px 0; }
#top .rs-app.rs-registration { max-width:800px; }
#top .rs-app .rs-participants { margin-bottom:24px; }
#top .rs-app .rs-participants h2 { border-bottom:1px solid var(--rs-line); padding-bottom:15px; margin-bottom:12px; }
#top .rs-app .rs-participant-list { list-style:decimal outside; padding:0 0 0 1.75em; margin:0; }
#top .rs-app .rs-participant-list li { display:list-item; margin:0; padding:0; border-bottom:1px solid #eef0f2; font-size:14px; }
#top .rs-app .rs-participant-list li:last-child { border:0; }
#top .rs-app .rs-notice { border-radius:10px; padding:16px; margin:0 0 20px; font-size:15px; line-height:1.5; }
#top .rs-app .rs-notice-error { border:1px solid #d39b98; background:#fff3f2; color:#872d25; }
#top .rs-app .rs-notice-success { border:1px solid #9bc7b3; background:#edf9f2; color:#1a6141; }
#top .rs-app .rs-notice-info { border:1px solid #a8c5dc; background:#eff7fc; color:#234f72; }
/* Rankings keep their real columns: scroll the table, never the whole page. */
.rs-data-scope { max-width:100%; overflow-x:auto; }
.rs-data-scope.rs-tables-ready { overflow:visible; }
.rs-table-shell { min-width:0; max-width:100%; margin:16px 0 28px; }
.rs-table-hint { margin:0 0 8px!important; font-size:12px; line-height:1.5; color:#52616b; }
.rs-table-scroll, body.runnerstats-data-page .avia-data-table-wrap { display:block; max-width:100%; overflow-x:auto!important; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#84919b #edf0f2; }
.rs-table-scroll { border:1px solid #dce0e3; border-radius:10px; }
.rs-table-scroll table { margin:0!important; table-layout:auto!important; min-width:var(--rs-table-min,640px); border-collapse:separate!important; border-spacing:0!important; }
.rs-table-scroll :is(th,td) { padding:12px 14px!important; vertical-align:middle; font-size:13px; white-space:nowrap; }
.rs-table-scroll tr > :first-child { position:sticky; left:0; z-index:1; background:#fff!important; border-right:1px solid #dce0e3!important; min-width:100px; max-width:240px; white-space:normal; }
.rs-table-scroll thead tr > :first-child { z-index:2; background:#f4f6f7!important; }
.rs-table-scroll tbody tr:nth-child(even) > :first-child { background:#f8f9fa!important; }
body.rs-admin-page .rs-table-scroll .check-column { min-width:36px; width:36px; }
body.rs-admin-page .rs-table-scroll { background:#fff; }
@media (max-width: 989px) {
  #top .rs-app .rs-race-table td, #top .rs-app .rs-race-table th { padding:16px 9px; }
}
@media (max-width: 767px) {
  body:is(.runnerstats-registration-index,.runnerstats-registration-detail) #main .container { width:calc(100% - 32px)!important; max-width:none!important; padding-left:0!important; padding-right:0!important; }
  body.runnerstats-registration-index #main .content { padding-top:24px; padding-bottom:24px; }
  #top .rs-app { font-size:15px; margin-bottom:16px; }
  #top .rs-app .rs-race-header { display:block; margin-bottom:20px; }
  #top .rs-app .rs-race-header h2 { font-size:28px; }
  #top .rs-app .rs-race-table, #top .rs-app .rs-race-table tbody { display:block; width:100%; }
  #top .rs-app .rs-race-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  #top .rs-app .rs-race-table tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"name name" "date location" "fee members" "action action"; gap:16px; margin:0 0 16px; border:1px solid var(--rs-line); border-radius:16px; padding:18px; background:#fff; box-shadow:0 3px 12px #15232c05; }
  #top .rs-app .rs-race-table td { display:block; width:auto; padding:0; border:0; background:transparent; font-size:14px; min-width:0; }
  #top .rs-app .rs-race-table .rs-race-name { grid-area:name; }
  #top .rs-app .rs-race-table .rs-race-date { grid-area:date; }
  #top .rs-app .rs-race-table .rs-race-location { grid-area:location; overflow-wrap:anywhere; }
  #top .rs-app .rs-race-table .rs-race-fee { grid-area:fee; }
  #top .rs-app .rs-race-table .rs-race-members { grid-area:members; align-self:center; white-space:normal; }
  #top .rs-app .rs-race-table .rs-race-action { grid-area:action; }
  #top .rs-app .rs-race-name h3 { font-size:20px; margin-bottom:10px; }
  #top .rs-app .rs-race-date::before, #top .rs-app .rs-race-location::before { display:block; color:var(--rs-muted); font-size:10px; font-weight:750; letter-spacing:.06em; text-transform:uppercase; margin-bottom:4px; }
  #top .rs-app .rs-race-date::before { content:"Quando"; }
  #top .rs-app .rs-race-location::before { content:"Dove"; }
  #top .rs-app .rs-race-fee strong { font-size:20px; }
  #top .rs-app .rs-race-fee small { font-size:11px; }
  #top .rs-app .rs-race-action .rs-button { width:100%; }
  #top .rs-app .rs-registration-layout { display:flex; flex-direction:column; gap:16px; }
  #top .rs-app .rs-panel { width:100%; padding:20px; }
  #top .rs-app .rs-event-hero h1, #top .rs-app .rs-event-title { font-size:30px; }
  #top .rs-app .rs-event-hero { margin-bottom:20px; }
  #top .rs-app .rs-event-meta { display:block; }
  #top .rs-app .rs-event-meta > * { display:block; margin:4px 0; }
  #top .rs-app .rs-breadcrumb { margin-bottom:12px; }
  .rs-page-shell { padding-top:12px!important; }
  #top .rs-app .rs-chip { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { #top .rs-app * { transition:none!important; scroll-behavior:auto!important; } }

/* Keep the host theme from overriding plugin typography and form sizing. */
#top .rs-app :is(h1,h2,h3,p,input,button,summary) { font-family:inherit; }
#top .rs-app :is(h1,h2,h3) { text-transform:none; }
#top .rs-app input:is([type="email"],[type="password"]) { border-color:#bbc2c7; }
#top .rs-app .rs-registration-form > .rs-button { width:100%; }
#top .rs-app .rs-breadcrumb a, #top .rs-app .rs-text-link { display:inline-flex; align-items:center; min-height:44px; }
#top .rs-app .rs-count { display:inline-flex; min-width:28px; align-items:center; justify-content:center; padding:2px 7px; margin-left:8px; border-radius:6px; background:#f0f2f4; font-size:13px; }
@media (max-width:767px) {
  body.runnerstats-registration-index #av_section_1 { min-height:0; }
  body.runnerstats-registration-index #av_section_1 .content { padding:12px 0; }
  body.runnerstats-registration-index #av_section_1 h1 { font-size:19px!important; line-height:1.4; }
  body.runnerstats-registration-index #av_section_1 .av-special-heading { margin:0!important; padding:0!important; }
  #top .rs-app .rs-race-header h2 { font-size:27px; }
  #top .rs-app .rs-race-header p:not(.rs-eyebrow) { font-size:14px; }
  #top .rs-app .rs-event-meta > * { display:inline; margin:0; }
  body.runnerstats-registration-detail #main .rs-page-shell .content { padding-top:8px; padding-bottom:16px; }
}

#top .rs-app .rs-participant-list li::marker { color:var(--rs-muted); font-weight:650; font-variant-numeric:tabular-nums; }
#top .rs-app .rs-participant-list a { display:block; min-height:44px; padding:12px 0; overflow-wrap:anywhere; }

/* Shared public profiles and authenticated athlete area. */
#top .rs-app .rs-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:20px; margin:20px 0; }
#top .rs-app .rs-stat-grid dt { color:var(--rs-muted); font-size:13px; }
#top .rs-app .rs-stat-grid dd { margin:4px 0 0; font-weight:700; overflow-wrap:anywhere; }
#top .rs-app.rs-personal { max-width:1000px; }
#top .rs-personal > .rs-panel, #top .rs-event-calendar > .rs-panel { margin-bottom:24px; }
#top .rs-app input[type="file"] { display:block; max-width:100%; padding:12px 0; font:inherit; }
#top .rs-app .rs-submit-status { display:block; min-height:1.5em; font-size:13px; margin-top:8px; }
#top .rs-app .rs-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:16px; margin:20px 0; }
#top .rs-app .rs-profile-header { display:flex; align-items:center; flex-wrap:wrap; gap:24px; margin-bottom:24px; }
#top .rs-app .rs-profile-image { max-width:180px; height:auto; border-radius:12px; }
#top .rs-app caption { text-align:left; padding:12px 0; color:var(--rs-muted); font-size:13px; }
#top .rs-app .rs-result-pb { display:inline-block; padding:2px 5px; margin-left:4px; background:#e8f7ee; color:#185d35; border-radius:4px; font-size:11px; font-weight:800; }
#top .rs-app .rs-result-difference { display:block; color:#7e332b; font-size:11px; }

/* Original public athlete profile: Enfold banner, three PBs, then results. */
#top .rs-athlete-overview-banner { background-repeat:no-repeat; background-size:cover; background-position:center; }
#top .rs-athlete-overview-banner .avia_image { display:block; max-width:100%; height:auto; border-radius:0; }
#top .rs-athlete-overview-name .av-special-heading { padding-bottom:10px; font-size:60px; }
#top .rs-athlete-overview-name h1 { overflow-wrap:anywhere; }
#top .rs-athlete-overview-spacer { height:115px; }
#top .rs-athlete-overview-records .avia-animated-number-title { visibility:visible; }
#top .rs-athlete-overview-results .rs-table-shell { font-family:inherit; color:inherit; margin:0; }
#top .rs-athlete-overview-results .rs-table-scroll { border:0; border-radius:0; }
#top .rs-athlete-overview-results caption { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
#top .rs-athlete-overview-results .rs-result-pb { color:#185d35; font-size:11px; font-weight:bold; }
#top .rs-athlete-overview-results .rs-result-difference { display:block; color:#7e332b; font-size:11px; }
#top .rs-athlete-overview-results .rs-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:16px; margin-top:24px; }
#top .rs-athlete-overview-results .rs-pagination a { display:inline-block; padding:10px; min-height:44px; }
@media (max-width:767px) {
  #top .rs-athlete-overview-banner .content { padding-top:24px; padding-bottom:24px; }
  #top .rs-athlete-overview-banner .rs-athlete-overview-photo { margin-bottom:20px; }
  #top .rs-athlete-overview-banner .avia_image { max-height:360px; width:auto; margin:0 auto; }
  #top .rs-athlete-overview-name .av-special-heading { font-size:clamp(28px,8vw,42px); margin-top:0; }
  #top .rs-athlete-overview-records .flex_cell { padding:20px; }
  #top .rs-athlete-overview-results .content { padding-top:24px; }
}

/* Original team presentation: 220px columns, full portraits, theme h4 typography. */
#top .rs-team-list {
    text-align: center;
    width: 100%;
}
#top .rs-team-list .rs-team-member {
    display: inline-block;
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 1em;
    vertical-align: top;
}
#top .rs-team-list .rs-team-member a {
    display: block;
    text-decoration: none;
}
#top .rs-team-list .rs-team-photo-frame {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 11 / 14;
}
#top .rs-team-list .rs-team-photo-frame .rs-team-photo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
#top .rs-team-list .rs-team-member h4 {
    margin: 12px 0 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
#top .rs-team-list .rs-team-first-name,
#top .rs-team-list .rs-team-surname {
    display: block;
    min-height: 1.3em;
}
body.rs-admin-page .rs-admin-media img {
    object-fit: contain;
}
body.rs-admin-page .rs-admin-media-portrait .rs-team-photo-frame {
    display: block;
    position: relative;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 11 / 14;
}
body.rs-admin-page .rs-admin-media-portrait .rs-team-photo-frame .rs-team-photo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
}
@media only screen and (max-width: 767px) {
    #top .rs-team-list .rs-team-member {
        box-sizing: border-box;
        width: calc(50% - 16px);
        margin: 0 8px 24px;
    }
    #top .rs-team-list .rs-team-member h4 {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* Preserve the original Enfold calendar on desktop; adapt only narrow screens. */
#top .rs-social-calendar .av-milestone-date,
#top .rs-social-calendar .av-milestone-title { font-size:20px; }
#top .rs-social-calendar .av-milestone-content img { max-width:100%; height:auto; }
#top .rs-social-calendar .av-milestone-content a { overflow-wrap:anywhere; }
#top .rs-social-calendar .rs-calendar-subscribe { max-width:100%; white-space:normal; }
#top .rs-social-calendar .av-milestone-even > .av-milestone-date:first-child { display:none; }
@media only screen and (max-width:989px) {
    #top .rs-social-calendar .avia-timeline > .av-milestone { padding-left:76px; }
    #top .rs-social-calendar .avia-timeline .av-milestone-date { padding:16px 0 16px; text-align:left; }
    #top .rs-social-calendar .avia-timeline .av-milestone-content-wrap { padding:0 0 36px; text-align:left; }
    #top .rs-social-calendar .av-milestone-even > .av-milestone-date:first-child { display:block; }
    #top .rs-social-calendar .av-milestone-even > .av-milestone-date:last-child { display:none; }
    #top .rs-social-calendar .av-milestone-indicator { display:none; }
    #top .rs-social-calendar .avia-timeline .av-milestone-icon-wrap { width:56px; height:100%; padding:0; }
    #top .rs-social-calendar .avia-timeline .av-milestone-icon-wrap:after { left:28px; height:100%; top:0; }
    #top .rs-social-calendar .avia-timeline > .av-milestone:last-child .av-milestone-icon-wrap:after { display:none; }
    #top .rs-social-calendar .milestone_icon { width:56px; height:56px; line-height:56px; font-size:24px; }
    #top .rs-social-calendar .rs-calendar-subscribe { padding:13px 16px; font-size:14px; line-height:1.4; min-height:44px; }
}
@media only screen and (max-width:479px) {
    #top .rs-social-calendar .avia-timeline > .av-milestone { padding-left:56px; }
    #top .rs-social-calendar .avia-timeline .av-milestone-icon-wrap { width:40px; }
    #top .rs-social-calendar .avia-timeline .av-milestone-icon-wrap:after { left:20px; }
    #top .rs-social-calendar .milestone_icon { width:40px; height:40px; line-height:40px; font-size:20px; }
    #top .rs-social-calendar .avia-timeline .av-milestone-date { padding:8px 0 14px; font-size:18px; }
    #top .rs-social-calendar .av-milestone-title { font-size:18px; line-height:1.35; overflow-wrap:anywhere; }
}
