/* Home page results: search, now/next strip, tabs, recent results, athlete page */

/* new results notice */
.olu-new{
    display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    margin:14px 0 0; padding:10px 16px; border-radius:10px;
    background:#fff7e0; border:1px solid #fcb131; color:#0b1a3a; font-size:15px; font-weight:700;
}
.olu-new[hidden]{ display:none; }
.olu-new button{
    margin-left:auto; border:0; border-radius:18px; padding:5px 14px; background:#0b1a3a; color:#fff; font-weight:700; cursor:pointer;
}

/* search */
.ors-bar{ display:flex; gap:12px; align-items:center; margin-top:18px; }
.ors-form{
    position:relative; flex:1; display:flex; align-items:center;
    background:#fff; border:2px solid #d5dbe8; border-radius:28px; padding:4px 4px 4px 18px;
    box-shadow:0 6px 18px rgba(11,26,58,.08);
}
.ors-form:focus-within{ border-color:#0081c8; }
.ors-form > .fa-search{ color:#5a6478; font-size:17px; }
.ors-form input{
    flex:1; min-width:0; border:0; outline:0; background:transparent; padding:10px 12px; font-size:17px; color:#0b1a3a;
}
.ors-form button[type=submit]{
    border:0; border-radius:22px; padding:10px 22px; background:#0081c8; color:#fff; font-size:16px; font-weight:700; cursor:pointer;
}
.ors-form button[type=submit]:hover{ background:#006aa6; }
.ors-suggest{
    position:absolute; z-index:50; top:calc(100% + 6px); left:0; right:0; max-height:420px; overflow:auto;
    background:#fff; border-radius:12px; box-shadow:0 14px 34px rgba(11,26,58,.25); padding:6px 0;
}
.ors-suggest[hidden]{ display:none; }
.ors-suggest h6{ margin:8px 16px 4px; font-size:12px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:#5a6478; }
.ors-suggest a{ display:block; padding:8px 16px; color:#0b1a3a; text-decoration:none; font-size:15px; }
.ors-suggest a small{ display:block; color:#5a6478; font-size:13px; }
.ors-suggest a:hover, .ors-suggest a.active{ background:#eef5fb; }
.ors-suggest .ors-all{ border-top:1px solid #edf0f6; margin-top:4px; font-weight:700; color:#0081c8; }
.ors-page{ max-width:760px; margin:0 auto 24px; }
.ors-note{ text-align:center; color:#3a4560; font-size:16px; margin:16px 0; }
.ors-list{ list-style:none; margin:0; padding:0; }
.ors-list li + li{ border-top:1px solid #edf0f6; }
.ors-list a{ display:block; padding:10px 4px; color:#0b1a3a; text-decoration:none; font-size:16px; }
.ors-list a:hover{ background:#f8f9fc; }
.ors-list small{ display:block; color:#5a6478; font-size:14px; }
.ors-medals{ margin-left:6px; color:#8a6500; font-size:14px; font-weight:700; }


/* happening now / up next */
.onx{ display:flex; gap:12px; margin-top:16px; flex-wrap:wrap; }
.onx-group{
    flex:1 1 420px; min-width:0; display:flex; align-items:stretch; gap:10px;
    background:#fff; border-radius:12px; padding:10px; box-shadow:0 6px 18px rgba(11,26,58,.08);
}
.onx-label{
    flex:none; display:flex; align-items:center; gap:6px; padding:0 10px; border-radius:8px;
    font-size:13px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; color:#fff; background:#0b1a3a;
}
.onx-now .onx-label{ background:#c8102e; }
.onx-scroll{ position:relative; flex:1; min-width:0; display:flex; align-items:center; }
.onx-items{
    flex:1; min-width:0; display:flex; gap:8px; overflow-x:auto; scroll-behavior:smooth;
    scroll-snap-type:x proximity; scrollbar-width:none;
}
.onx-items::-webkit-scrollbar{ display:none; }
/* fade the edge that has more cards behind it */
.onx-scroll.more-right .onx-items{ -webkit-mask-image:linear-gradient(to right,#000 82%,transparent); mask-image:linear-gradient(to right,#000 82%,transparent); }
.onx-scroll.more-left .onx-items{ -webkit-mask-image:linear-gradient(to left,#000 82%,transparent); mask-image:linear-gradient(to left,#000 82%,transparent); }
.onx-scroll.more-left.more-right .onx-items{
    -webkit-mask-image:linear-gradient(to right,transparent,#000 12%,#000 82%,transparent);
    mask-image:linear-gradient(to right,transparent,#000 12%,#000 82%,transparent);
}
/* arrows sit beside the cards, never on top of them */
.onx-arrow{
    flex:none; width:32px; height:32px; border-radius:50%; margin:0 4px;
    border:0; background:#0b1a3a; color:#fff; box-shadow:0 3px 10px rgba(11,26,58,.35); cursor:pointer;
}
.onx-arrow[hidden]{ display:none; }
.onx-item{ flex:none; width:230px; display:flex; flex-direction:column; padding:6px 12px; border-left:3px solid #0081c8; background:#f6f8fc; border-radius:6px; scroll-snap-align:start; }
.onx-round{
    margin-left:6px; padding:1px 7px; border-radius:8px; font-size:12px; font-weight:800; letter-spacing:.5px;
    text-transform:uppercase; background:#fcb131; color:#3a2a00; vertical-align:1px;
}
.onx-round-heats{ background:#dfe8f5; color:#0b1a3a; }
.onx-round-postponed{ background:#fde2e4; color:#9b1c2c; }
.onx-now .onx-item{ border-left-color:#c8102e; }
.onx-time{ font-size:13px; font-weight:800; color:#0b1a3a; }
.onx-name{ font-size:15px; font-weight:700; color:#0b1a3a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.onx-meta{ font-size:13px; color:#4a5468; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* results tabs */
.otb-nav{
    display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:22px;
}
.otb-nav button{
    border:2px solid #d5dbe8; background:#fff; color:#0b1a3a; border-radius:24px; padding:9px 20px;
    font-size:16px; font-weight:700; letter-spacing:.3px; cursor:pointer; transition:background .15s, color .15s, border-color .15s;
}
.otb-nav button:hover{ border-color:#0081c8; }
.otb-nav button.active{ background:#0b1a3a; border-color:#0b1a3a; color:#fff; }
.otb-nav button .fa{ color:#fcb131; margin-right:4px; }
.otb-pane{ display:none; }
.otb-pane.active{ display:block; }
.otb-progress{ max-width:260px; margin:8px auto 0; }
.otb-progress-bar{ display:block; height:6px; border-radius:3px; background:rgba(255,255,255,.18); overflow:hidden; }
.otb-progress-bar span{ display:block; height:100%; background:#fcb131; border-radius:3px; }
.otb-progress-text{ display:block; margin-top:5px; font-size:13px; font-weight:400; letter-spacing:.3px; color:#e3e8f3; text-transform:none; }
/* leaderboard place; ties share a number with no gap after, top three in medal colours */
.otb-rank{
    display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:22px; padding:0 5px; margin-right:8px;
    border-radius:11px; background:#eef2f9; color:#3a4560; font-size:12px; font-weight:800; vertical-align:middle;
}
.otb-rank-1{ background:radial-gradient(circle at 30% 30%,#fff3b0,#f5c518 60%,#b8860b); color:#3a2a00; }
.otb-rank-2{ background:radial-gradient(circle at 30% 30%,#fff,#c9ced6 60%,#8a9099); color:#22262c; }
.otb-rank-3{ background:radial-gradient(circle at 30% 30%,#ffd9b0,#cd7f32 60%,#8a4f1d); color:#2c1700; }
.otb-head td{
    background:#f3f5fa; color:#0b1a3a !important; font-size:12px !important; font-weight:800; letter-spacing:1px; text-transform:uppercase;
}
.otb-pts{ width:70px; text-align:right; padding-right:14px !important; font-weight:800; font-size:16px; color:#0b1a3a !important; }
.otb-head .otb-pts{ font-size:12px !important; }

/* recent results */
.orr-empty{ padding:16px; text-align:center; color:#3a4560; }
.orr-list{ list-style:none; margin:0; padding:0; }
.orr-item{ display:flex; gap:12px; align-items:center; padding:10px 14px; border-bottom:1px solid #edf0f6; }
.point-table-widget .orr-photo{ width:44px; height:54px; object-fit:cover; border-radius:6px; background:#e9edf5; flex:none; }
.orr-body{ flex:1; min-width:0; }
/* line 1: name + event, line 2: school + district; both cut with an ellipsis */
.orr-line{ display:flex; align-items:baseline; gap:8px; min-width:0; }
.orr-name{ flex:none; max-width:60%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:16px; font-weight:800; color:#0b1a3a !important; }
.orr-event{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:700; color:#0067a3 !important; }
.orr-school{ font-size:14px; color:#3a4560; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.orr-side{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.orr-perf{ font-size:15px; font-weight:800; color:#0b1a3a; white-space:nowrap; }
.orr-medal{
    display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%;
    font-size:12px; font-weight:800; color:#3a2a00; background:radial-gradient(circle at 30% 30%,#fff3b0,#f5c518 55%,#b8860b);
    vertical-align:middle; margin-right:4px;
}
.orr-medal-s{ background:radial-gradient(circle at 30% 30%,#fff,#c9ced6 55%,#8a9099); color:#22262c; }
.orr-medal-b{ background:radial-gradient(circle at 30% 30%,#ffd9b0,#cd7f32 55%,#8a4f1d); color:#2c1700; }
.orr-rec-tag{
    display:inline-block; margin-left:6px; padding:1px 8px; border-radius:10px; background:#fcb131; color:#3a2a00;
    font-size:12px; font-weight:800; letter-spacing:.3px;
}
.orr-share{
    flex:none; display:inline-flex; align-items:center; gap:5px; padding:5px 10px; border-radius:16px;
    background:#e7f8ee; color:#0a7a3b !important; font-size:13px; font-weight:800; text-decoration:none !important;
}
.orr-share:hover{ background:#25d366; color:#fff !important; }
.orr-share .fab{ font-size:16px; }
.orr-side .orr-rec-tag{ margin-left:0; }
.orr-side .orr-share{ width:28px; height:28px; padding:0; justify-content:center; border-radius:50%; }

/* athlete page */
.oat-card{ background:#fff; border-radius:14px; box-shadow:0 10px 26px rgba(11,26,58,.12); padding:20px; margin-bottom:20px; }
.oat-profile{ display:flex; gap:20px; align-items:center; }
.oat-photo{ width:110px; height:134px; object-fit:cover; border-radius:10px; background:#e9edf5; flex:none; }
.oat-name{ font-size:28px; font-weight:800; color:#0b1a3a; margin:0 0 8px; }
.oat-chips span{
    display:inline-block; margin:0 6px 6px 0; padding:3px 12px; border-radius:14px; background:#eef2f9; color:#0b1a3a; font-size:14px; font-weight:700;
}
.oat-school{ font-size:16px; color:#3a4560; }
.oat-school a{ color:#0067a3; font-weight:700; }
.oat-title{ font-size:20px; font-weight:800; color:#0b1a3a; margin:0 0 12px; }
.oat-title span{ font-size:14px; color:#5a6478; margin-left:4px; }
.oat-table-wrap{ overflow-x:auto; }
.oat-table{ width:100%; border-collapse:collapse; font-size:15px; }
.oat-table th{ background:#f3f5fa; color:#0b1a3a; font-size:13px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; padding:10px; white-space:nowrap; }
.oat-table td{ padding:10px; border-bottom:1px solid #edf0f6; color:#0b1a3a; vertical-align:middle; }
.oat-table td a{ color:#0067a3; font-weight:700; }

/* phones: the cards of a tab swipe sideways, next card peeking in */
.otb-dots{ display:none; }
@media (max-width:767px){
    .otb-pane > .row{
        flex-wrap:nowrap; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding:0 15px;
        margin-left:-15px; margin-right:-15px; padding:0 15px; scrollbar-width:none;
    }
    .otb-pane > .row::-webkit-scrollbar{ display:none; }
    .otb-pane > .row > [class*="col-"]{ flex:0 0 88%; max-width:88%; padding:0 6px; scroll-snap-align:start; }
    .otb-pane > .row > [class*="col-"]:first-child{ padding-left:0; }
    .otb-dots{ display:flex; justify-content:center; gap:8px; margin-top:-6px; position:relative; z-index:2; }
    .otb-dots button{ width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#c3cad8; }
    .otb-dots button.active{ background:#0b1a3a; width:22px; border-radius:5px; }
}
@media (max-width:767px){
    .ors-bar{ flex-direction:column; align-items:stretch; }
    .ors-form input{ font-size:16px; padding:8px; }
    .ors-form button[type=submit]{ padding:8px 14px; }
    .onx-group{ flex-direction:column; flex-basis:100%; }
    .onx-label{ align-self:flex-start; padding:4px 10px; }
    .otb-nav{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding-bottom:4px; }
    .otb-nav button{ flex:none; padding:8px 14px; font-size:15px; }
    .oat-profile{ flex-direction:column; text-align:center; }
    .oat-name{ font-size:22px; }
}
