.ecmb-page {
    background: #f7fafe;
    color: #263f58;
    font: 1.0625rem/1.65 'Nunito Sans', Arial, sans-serif;
    padding-bottom: 64px;
}

.ecmb-page *, .ecmb-page *::before, .ecmb-page *::after { box-sizing: border-box; }
.ecmb-page :is(h1, h2, h3, summary) { font-family: 'Montserrat', Arial, sans-serif; }
.ecmb-page h2 { color: #174675; font-size: clamp(1.25rem, 3vw, 1.55rem); margin: 25px 0 13px; }
.ecmb-shell { width: min(1080px, calc(100% - 36px)); margin-inline: auto; }
.ecmb-hero { padding: 18px 0 23px; color: #f2f8ff; background: linear-gradient(112deg, #143760, #236c9e); }
.ecmb-hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.12; margin: 5px 0 9px; }
.ecmb-hero p { margin: 0; }
.ecmb-hero .ecmb-eyebrow { margin-top: 10px; color: #dcecff; font-size: .74rem; font-weight: 800; letter-spacing: .065em; }
.ecmb-page .ecmb-back { color: #fff; font-size: .91rem; text-decoration: underline; text-underline-offset: 3px; }
.ecmb-main { margin-top: 20px; }
.ecmb-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ecmb-intro div { padding: 12px 16px; background: #fff; border: 1px solid #cbdff2; border-radius: 12px; }
.ecmb-intro strong, .ecmb-intro span { display: block; }
.ecmb-intro strong { color: #15416e; font: 800 1.12rem/1.45 'Montserrat', Arial, sans-serif; }
.ecmb-intro span { font-size: .96rem; }

.ecmb-panel, .ecmb-awards { border: 1px solid #cadff1; border-radius: 14px; background: #fff; margin: 12px 0; }
.ecmb-panel { overflow: hidden; }
.ecmb-panel > summary, .ecmb-round > summary {
    padding: 12px 16px;
    cursor: pointer;
    color: #184d7b;
    background: #ebf4fd;
    font-size: 1.05rem;
    font-weight: 800;
}
.ecmb-panel[open] > summary, .ecmb-round[open] > summary { background: #deedf9; }
.ecmb-panel :focus-visible, .ecmb-poster:focus-visible { outline: 3px solid #2876b5; outline-offset: -3px; }
.ecmb-content { padding: 12px 16px 16px; }
.ecmb-content p { margin: 0 0 .75em; }
.ecmb-content p:last-child { margin-bottom: 0; }
.ecmb-content p strong { color: #15416e; font-weight: 800; }

.ecmb-awards { padding: 17px; }
.ecmb-awards h2 { margin-top: 0; }
.ecmb-awards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ecmb-awards-group { overflow: hidden; border: 1px solid #cfdfef; border-radius: 12px; background: #f3f8fd; }
.ecmb-awards-group h3 { margin: 0; padding: 10px 12px; color: #fff; font-size: .98rem; background: linear-gradient(110deg, #1c4f7f, #246fa1); }
.ecmb-awards-group ol { margin: 0; padding: 6px; list-style: none; }
.ecmb-awards-group li { display: flex; align-items: flex-start; gap: 7px; padding: 8px 6px; border-bottom: 1px solid #dce8f3; }
.ecmb-awards-group li:last-child { border-bottom: none; }
.ecmb-awards-group li:nth-child(5):not(:last-child) { border-bottom-color: #b6c9dd; }
.ecmb-rank { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: #dfebf6; color: #194d78; font-size: .83rem; font-weight: 800; }
.ecmb-awards-group li:nth-child(1) .ecmb-rank { background: #f6d476; color: #634200; }
.ecmb-awards-group li:nth-child(2) .ecmb-rank { background: #d5dce5; color: #455064; }
.ecmb-awards-group li:nth-child(3) .ecmb-rank { background: #e8ba92; color: #784820; }
.ecmb-awards-group li:nth-child(4) .ecmb-rank { background: #c8e5f1; color: #135174; }
.ecmb-awards-group li:nth-child(5) .ecmb-rank { background: #d8e9e1; color: #176347; }
.ecmb-prize-person { min-width: 0; line-height: 1.4; }
.ecmb-prize-person strong { color: #143e68; font-size: .96rem; }
.ecmb-prize-person small { color: #526983; font-size: .81rem; }
.ecmb-prize-person small::before { content: ' · '; }
.ecmb-prize-person span { display: block; color: #245e91; font-size: .83rem; font-weight: 800; }

.ecmb-documents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.ecmb-page .ecmb-poster { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 10px 14px; border: 1px solid #cadff1; border-radius: 12px; background: #fff; color: #174675; text-decoration: none; }
.ecmb-poster:hover strong { text-decoration: underline; }
.ecmb-poster img { width: 76px; height: auto; }
.ecmb-diploma img { width: 124px; max-width: 42%; }
.ecmb-poster small { display: block; color: #526983; }

.ecmb-table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.ecmb-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 1rem; }
.ecmb-standings { min-width: 860px; }
.ecmb-results { min-width: 550px; }
.ecmb-col-rank { width: 6%; }
.ecmb-col-player { width: 30%; }
.ecmb-col-school { width: 27%; }
.ecmb-col-grade { width: 8%; }
.ecmb-col-points, .ecmb-col-board { width: 7%; }
.ecmb-col-tiebreak { width: 11%; }
.ecmb-col-white { width: 35%; }
.ecmb-col-result { width: 14%; }
.ecmb-col-black { width: 44%; }
.ecmb-table :is(th, td) { padding: 10px; line-height: 1.4; vertical-align: middle; }
.ecmb-table th { background: #174d84; color: #fff; text-align: left; white-space: nowrap; }
.ecmb-table th small { display: block; font-size: .82rem; font-weight: 600; }
.ecmb-table td { border-bottom: 1px solid #dae5ef; }
.ecmb-table tbody tr:nth-child(even) { background: #f0f6fc; }
.ecmb-standings :is(th, td):not(:nth-child(2)):not(:nth-child(3)), .ecmb-results :is(th, td):nth-child(odd) { text-align: center; white-space: nowrap; }
.ecmb-score { color: #114c81; font-weight: 800; font-variant-numeric: tabular-nums; }
.ecmb-round-points { color: #526983; font-weight: 700; white-space: nowrap; }
.ecmb-round { margin: 8px 0; border: 1px solid #dbe6f2; border-radius: 9px; overflow: hidden; }
.ecmb-round > summary { padding: 9px 13px; font-size: .95rem; }
.ecmb-rules h3 { font-size: 1.05rem; color: #16416c; margin: 15px 0 5px; }
.ecmb-rules ul { padding-left: 1.5rem; margin-top: 4px; }
.ecmb-map { display: block; width: 100%; height: 320px; border: 0; border-radius: 10px; background: #e8eef6; }

@media (max-width: 880px) {
    .ecmb-awards-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    .ecmb-intro, .ecmb-documents { grid-template-columns: minmax(0, 1fr); }
    .ecmb-content, .ecmb-awards { padding-inline: 10px; }
}
