/* ===================== */
/* BASE */
/* ===================== */

body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background:#f5f8fc;
    color:#1c2430;
    margin:0;
}

/* ===================== */
/* SECTION SYSTEM */
/* ===================== */

.mr-section{
    background:#fff;
    border:1px solid #e6eaf0;
    border-radius:18px;

    padding:20px;
    margin:0 0 28px 0;
}

.mr-section h2{
    font-size:24px;
    font-weight:700;
    margin:0 0 16px 0;
    letter-spacing:-0.3px;
}

/* ===================== */
/* SEARCH CARD */
/* ===================== */

.mr-search-card{
    background:#ffffff;
    border:1px solid #e6eaf0;
    border-radius:18px;
    padding:22px;
    box-shadow:0 12px 30px rgba(15, 23, 42, 0.06);
    margin-top:28px;

    transition:0.2s ease;
}

.mr-search-card:hover{
    box-shadow:0 16px 40px rgba(15, 23, 42, 0.10);
}

/* ===================== */
/* SEARCH INPUT */
/* ===================== */

#mr-search{
    width:100%;
    height:44px;

    padding:0 14px;

    font-size:15px;

    border:1px solid #dbe3ee;
    border-radius:14px;

    background:#fff;

    box-sizing:border-box;
    outline:none;

    transition:0.2s ease;
}

#mr-search::placeholder{
    color:#9aa4b2;
}

#mr-search:focus{
    border-color:#c7d6ea;
    box-shadow:0 6px 20px rgba(31,111,235,0.12);
    transform:translateY(-1px);
}

/* ===================== */
/* SEARCH RESULTS */
/* ===================== */

#mr-search-results{
    margin-top:14px;
}

.mr-result-item{
    display:flex;
    flex-direction:column;
    gap:4px;

    padding:12px 14px;
    margin-top:10px;

    border:1px solid #e6eaf0;
    border-radius:14px;

    background:#fff;

    transition:0.2s ease;
}

.mr-result-item:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(15, 23, 42, 0.08);
    border-color:#dbe7ff;
}

.mr-result-title{
    font-weight:700;
    color:#1f6feb;
}

.mr-result-sub{
    font-size:13px;
    color:#6b7280;
}

.mr-result-time{
    font-size:13px;
    font-weight:600;
    color:#0e308c;
}

/* ===================== */
/* COURSES */
/* ===================== */

.mr-course-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-bottom:28px;
}

.mr-course-card{
    border:1px solid #dfe6ee;
    border-radius:18px;
    overflow:hidden;
    background:#fff;
}

.mr-course-title{
    padding:14px 16px;
    font-weight:700;
    background:#fafbfc;
    border-bottom:1px solid #eef2f6;
}

.mr-course-image img{
    width:100%;
    display:block;
}

.mr-box{
    background:#f7f9fc;
    border:1px solid #e6eaf0;
    border-radius:14px;
    padding:12px 14px;
    margin:12px 14px;
}

.mr-start{
    background:#eef4ff;
    border-color:#dbe7ff;
}

.mr-finish{
    background:#eaf6ee;
    border-color:#cfe9d6;
}

/* ===================== */
/* GESAMTWERTUNG */
/* ===================== */

.mr-list-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:12px 14px;
    margin-bottom:10px;

    background:#eef5ff;
    border:1px solid #e6eaf0;
    border-radius:14px;

    transition:0.2s ease;
}

.mr-list-item:hover{
    transform:translateY(-2px);
}

.mr-rank{ width:40px; font-weight:700; }

.mr-main{ flex:1; }

.mr-boat{ font-weight:700; color:#1f6feb; }

.mr-skipper{ font-size:13px; color:#6b7280; }

.mr-points{ font-weight:700; }

/* ===================== */
/* REGATTA ACCORDION */
/* ===================== */

.mr-details{
    border:1px solid #e6eaf0;
    border-radius:16px;
    overflow:hidden;
    margin-bottom:12px;
    background:#fff;
}

.mr-summary{
    padding:14px 16px;
    background:#f7f9fc;
    cursor:pointer;
    font-weight:600;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.mr-details[open] .mr-summary{
    background:#eef4ff;
}

.mr-content{
    padding:14px 16px;
}

.mr-meta{
    background:#f7f9fc;
    border:1px solid #e6eaf0;
    border-radius:12px;
    padding:10px 12px;
    margin-bottom:12px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

/* ===================== */
/* TABLE */
/* ===================== */

.mr-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:10px 12px;
    border-bottom:1px solid #eef2f7;
}

.mr-row:last-child{
    border-bottom:none;
}

.mr-pos{ width:30px; font-weight:700; }

.mr-name{ flex:1; }

.mr-skipper-small{
    font-size:12px;
    color:#6b7280;
}

.mr-dnf{
    margin-top:12px;
    padding:12px;
    background:#fff7f2;
    border:1px solid #ffe0d1;
    border-radius:12px;
}

/* ===================== */
/* MOBILE */
/* ===================== */

@media(max-width:900px){
    .mr-course-grid{
        grid-template-columns:1fr;
    }
}

