/* SoccerYes common menu layout. Self-contained: no common/ or site-shell.css required. */
:root {
    --sy-content-width: 760px;
    --sy-navigation-width: 920px;
}

/* All six page bodies share the exact same outer width. Use specificity
   and !important because some pages retain inline 900px/1020px widths. */
body > main.home-page,
body > main.standings-page,
body > main.sy-team-page,
body > main.wrap,
body > div.page {
    box-sizing: border-box !important;
    display: block;
    width: min(var(--sy-content-width), calc(100% - 28px)) !important;
    max-width: var(--sy-content-width) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Do not add an extra 12-14px inside the width of match/player pages. */
body > main.wrap,
body > div.page {
    padding: 18px 0 36px !important;
}
body > main.sy-team-page,
body > main.standings-page {
    padding: 18px 0 36px !important;
}

/* Cards and ranking table fit the common content column. Leave wide
   match/standings tables scrollable INSIDE their existing containers. */
body > main.wrap > .panel,
body > main.sy-team-page > .sy-team-panel,
body > main.sy-team-page > .sy-team-head {
    box-sizing: border-box;
    max-width: 100%;
}
body > main.wrap .table-scroll,
body > main.standings-page .table-wrap,
body > main.standings-page .standings-table-wrap,
body > main.sy-team-page .sy-team-overflow,
body > main.sy-team-page .sy-team-scroll {
    max-width: 100%;
    overflow-x: auto;
}
body > main.wrap .tabs,
body > main.wrap .filters {
    max-width: 100%;
}

/* Shared header: same appearance as index.php regardless of each page's
   private body/a/style rules. The navbar width is intentionally 920px,
   which is the existing index.php header width, not the 760px body width. */
.sy-header,
.sy-footer,
.sy-site-sidebar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}
.sy-header {
    width: 100%;
    background: #102534;
    color: #fff;
    font-size: 14px;
    line-height: normal;
}
.sy-header .sy-header-inner {
    box-sizing: border-box;
    width: min(var(--sy-navigation-width), calc(100% - 28px));
    max-width: var(--sy-navigation-width);
    margin-left: auto;
    margin-right: auto;
}
.sy-header .sy-logo,
.sy-header .sy-logo:visited {
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    text-decoration: none;
}
.sy-header .sy-logo-yes {
    color: #52d273;
}
.sy-header .sy-main-nav-link,
.sy-header .sy-main-nav-link:visited {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: rgba(255, 255, 255, .72);
}
.sy-header .sy-main-nav-link.active,
.sy-header .sy-main-nav-link.active:visited {
    color: #fff;
}

/* Shared footer: consistent typography, layout and colors on every page.
   Keep existing links and copyright created by menu/footer.php. */
.sy-footer {
    box-sizing: border-box;
    width: 100%;
    margin-top: 42px;
    border-top: 1px solid #e2e6e9;
    background: #fff;
    color: #102534;
    font-size: 14px;
    line-height: 1.5;
}
.sy-footer .sy-footer-inner {
    box-sizing: border-box;
    width: min(var(--sy-navigation-width), calc(100% - 28px));
    max-width: var(--sy-navigation-width);
    margin-left: auto;
    margin-right: auto;
    padding: 25px 0;
    text-align: center;
}
.sy-footer .sy-footer-logo {
    color: #102534;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}
.sy-footer .sy-footer-logo-yes {
    color: #39a95a;
}
.sy-footer .sy-footer-description {
    margin-top: 7px;
    color: #737e85;
    font-size: 11px;
    line-height: 1.5;
}
.sy-footer .sy-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 19px;
    margin-top: 12px;
}
.sy-footer .sy-footer-nav a,
.sy-footer .sy-footer-nav a:visited {
    color: #5f7381 !important;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}
.sy-footer .sy-footer-nav a:hover { text-decoration: underline; }
.sy-footer .sy-footer-copyright {
    margin-top: 10px;
    color: #9aa2a7;
    font-size: 10px;
    line-height: 1.5;
}

/* Menu, language picker, and drawer styles follow below. */

@media (max-width: 650px) {
    body > main.home-page,
    body > main.standings-page,
    body > main.sy-team-page,
    body > main.wrap,
    body > div.page {
        width: calc(100% - 20px) !important;
        max-width: none !important;
    }
    body > main.wrap,
    body > div.page,
    body > main.sy-team-page,
    body > main.standings-page {
        padding: 12px 0 32px !important;
    }
    .sy-header .sy-header-inner,
    .sy-footer .sy-footer-inner {
        width: calc(100% - 24px);
        max-width: none;
    }
    .sy-footer { margin-top: 32px; }
    .sy-footer .sy-footer-inner { padding: 21px 0; }
}
@media (max-width: 600px) {
    .sy-header .sy-logo { font-size: 21px; }
    .sy-header .sy-main-nav-link { font-size: 12px; }
}

/* 2026-10-16: desktop directory links; no extra narrow-mobile header columns.
 * The same links are always available in the existing hamburger sidebar. */
@media (max-width: 700px) {
    .sy-header .sy-main-nav-link.sy-directory-nav { display: none; }
}


/* Header navigation and language picker */
.sy-header { position: relative; z-index: 20; }
.sy-header .sy-header-inner {
    display: flex; align-items: center; gap: 18px;
    min-height: 59px; padding: 9px 0;
}
.sy-header .sy-logo { flex: 0 0 auto; white-space: nowrap; }
.sy-header .sy-main-nav {
    display: flex; gap: 16px; align-items: center;
    min-width: 0; flex: 1 1 auto;
}
.sy-header .sy-main-nav-link { white-space: nowrap; }
.sy-header .sy-header-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.sy-header .sy-shell-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid #516575; border-radius: 5px;
    background: transparent; color: #fff;
    padding: 6px 8px; font: inherit; cursor: pointer;
}
.sy-header .sy-shell-trigger:hover { border-color: #a0b6c3; }
.sy-header .sy-shell-trigger > span:first-child { font-size: 18px; line-height: 1; }
.sy-header .sy-language-menu { position: relative; }
.sy-header .sy-language-current {
    cursor: pointer; padding: 6px 8px; border-radius: 5px;
    border: 1px solid #516575; color: #fff;
    white-space: nowrap; font-size: 12px; list-style: none;
}
.sy-header .sy-language-current::-webkit-details-marker { display: none; }
.sy-header .sy-language-dropdown {
    position: absolute; right: 0; top: calc(100% + 5px);
    min-width: 148px; padding: 5px;
    border: 1px solid #d8e0e5; border-radius: 7px;
    background: #fff; box-shadow: 0 7px 22px #0002; z-index: 30;
}
.sy-header .sy-language-option {
    display: block; width: 100%; padding: 8px 10px;
    background: transparent; border: 0; border-radius: 4px;
    text-align: left; font: inherit; font-size: 13px;
    color: #273139; cursor: pointer; white-space: nowrap;
}
.sy-header .sy-language-option:hover,
.sy-header .sy-language-option.active { background: #edf3f6; }
.sy-header :is(a,button,summary):focus-visible,
.sy-site-sidebar :is(a,button):focus-visible {
    outline: 2px solid #52d273; outline-offset: 3px;
}

/* Self-contained sidebar drawer (no external site-shell.css or script). */
.sy-sidebar-backdrop {
    position: fixed; inset: 0; z-index: 99;
    display: block; width: 100%; height: 100%; padding: 0;
    background: rgba(8,19,29,.46); border: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.sy-sidebar-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.sy-site-sidebar {
    box-sizing: border-box; position: fixed; top: 0; bottom: 0; left: 0;
    z-index: 100; width: min(335px, calc(100vw - 40px));
    padding: 17px 12px 25px;
    color: #26323a; background: #fff;
    box-shadow: 8px 0 22px #0002;
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-110%); visibility: hidden; pointer-events: none;
    transition: transform .22s ease, visibility .22s ease;
}
.sy-site-sidebar.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.sy-sidebar-heading { display: flex; justify-content: space-between; align-items: center;
    padding: 4px 8px 12px; font-size: 21px; font-weight: 750; color: #102534; }
.sy-sidebar-yes { color: #39a95a; }
.sy-sidebar-close { background: transparent; border: 0; padding: 2px 9px;
    font-size: 27px; color: #657582; cursor: pointer; }
.sy-sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
.sy-sidebar-caption { margin: 15px 8px 5px; color: #7c8991; font-size: 11px; }
.sy-sidebar-link, .sy-sidebar-link:visited {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 5px;
    color: #334957; font-size: 13px; font-weight: 400;
    text-decoration: none;
}
.sy-sidebar-link:hover { background: #edf3f6; text-decoration: none; }
.sy-sidebar-link.is-active { background: #e1f1e8; color: #184c38; }
.sy-sidebar-icon { flex: 0 0 20px; text-align: center; }
.sy-sidebar-link.sy-sidebar-sub { padding-left: 41px; font-size: 12px; }

@media (max-width: 900px) {
    .sy-header .sy-header-inner { gap: 11px; }
    .sy-header .sy-main-nav { gap: 12px; }
    .sy-header .sy-main-nav-link { font-size: 12px; }
}
@media (max-width: 700px) {
    .sy-header .sy-header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .sy-header .sy-logo { order: 1; }
    .sy-header .sy-header-right { order: 2; margin-left: auto; }
    .sy-header .sy-main-nav { order: 3; flex: 0 0 100%; gap: 16px; }
    .sy-header .sy-main-nav-link.sy-directory-nav { display: none; }
}
@media (max-width: 390px) {
    .sy-header .sy-logo { font-size: 20px; }
    .sy-header .sy-shell-trigger-label { display: none; }
    .sy-header .sy-main-nav { gap: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .sy-site-sidebar, .sy-sidebar-backdrop { transition: none; }
}
