/* ==========================================================================
   THE STANDARD ARENA - layout.css
   Utility bar, header bar (logo left, menu right), drawer, footer.
   ========================================================================== */

/* ---------- Utility bar ---------- */
.topbar { background: var(--sa-navy); color: rgba(255, 255, 255, 0.78); font-size: 0.8rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 6px 0; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.topbar-gsc { color: rgba(255, 255, 255, 0.72); font-weight: 500; letter-spacing: 0.02em; }
.topbar-gsc:hover { color: var(--sa-gold); }

/* ---------- Header bar: logo left, menu right ---------- */
.masthead {
        position: sticky; top: 0; z-index: 900;
        background: rgba(250, 247, 240, 0.95);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--sa-line);
        transition: box-shadow 0.25s ease;
}
.masthead.is-stuck { box-shadow: 0 10px 30px rgba(12, 27, 42, 0.08); }
.masthead-in {
        display: flex; align-items: center; justify-content: space-between;
        gap: 24px; min-height: 74px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .custom-logo-link { display: inline-block; max-width: 250px; }
.brand .custom-logo { max-height: 54px; width: auto; }
.brand-name { display: inline-flex; align-items: baseline; gap: 0.12em; text-decoration: none; white-space: nowrap; }
.brand-the {
        font-family: var(--sa-serif); font-style: italic; font-weight: 400;
        font-size: clamp(0.95rem, 1.6vw, 1.15rem); color: var(--sa-gold); margin-right: 0.14em;
}
.brand-main {
        font-family: var(--sa-serif); font-weight: 600; letter-spacing: 0.04em;
        font-size: clamp(1.35rem, 2.4vw, 1.8rem); color: var(--sa-navy); line-height: 1;
}
.brand-main--gold { color: var(--sa-gold-2); }

.nav-desk { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }
.nav-menu {
        display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap;
        gap: 0; list-style: none; margin: 0; padding: 0;
}
.nav-menu .menu-item { position: relative; }
.nav-menu a {
        display: inline-block; padding: 24px 13px;
        font-size: 0.7rem; font-weight: 650; letter-spacing: 0.15em; text-transform: uppercase;
        color: var(--sa-navy); position: relative; white-space: nowrap;
}
.nav-menu a::after {
        content: ""; position: absolute; left: 13px; right: 13px; bottom: 17px; height: 2px;
        background: var(--sa-gold); transform: scaleX(0); transform-origin: center;
        transition: transform 0.25s ease;
}
.nav-menu a:hover, .nav-menu .current-menu-item > a, .nav-menu .current_page_item > a { color: var(--sa-gold-2); }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after, .nav-menu .current_page_item > a::after { transform: scaleX(1); }

.nav-signin {
        display: inline-flex; align-items: center; justify-content: center;
        background: var(--sa-navy); color: #fff;
        font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
        padding: 10px 18px; border-radius: var(--sa-radius-sm); white-space: nowrap;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-signin:hover { background: var(--sa-gold); color: #1A1505; transform: translateY(-1px); }

/* Action items live as buttons/links outside the menu lists (topbar, nav-tools, drawer CTAs). */
.nav-desk .menu-item--submit, .nav-desk .menu-item--cta, .nav-desk .menu-item--signin,
.drawer-menu .menu-item--submit, .drawer-menu .menu-item--cta, .drawer-menu .menu-item--signin { display: none; }

.nav-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-burger {
        display: none;
        background: none; border: 0; padding: 8px; cursor: pointer;
}
.burger-box { display: flex; flex-direction: column; gap: 5px; }
.burger-box i { width: 22px; height: 2px; background: var(--sa-navy); border-radius: 2px; }
.nav-search-toggle {
        background: none; border: 1px solid var(--sa-line); border-radius: 50%;
        width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
        color: var(--sa-navy); cursor: pointer; transition: all 0.2s ease;
}
.nav-search-toggle:hover { border-color: var(--sa-gold); color: var(--sa-gold-2); }

/* ---------- Mobile drawer ---------- */
.drawer {
        position: fixed; inset: 0; z-index: 1200;
        background: linear-gradient(170deg, var(--sa-navy) 0%, var(--sa-navy-3) 100%);
        overflow-y: auto; padding: 30px 24px 60px;
}
.drawer-close {
        position: fixed; top: 18px; right: 22px; z-index: 2;
        background: none; border: 1px solid var(--sa-line-dark); color: #fff;
        width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.drawer-close:hover { border-color: var(--sa-gold); color: var(--sa-gold); }
.drawer-in { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 100%; justify-content: center; gap: 36px; }
.drawer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-menu a {
        font-family: var(--sa-serif); font-size: clamp(1.5rem, 5vw, 2.1rem); color: #fff;
        display: inline-block; padding: 6px 10px;
}
.drawer-menu a:hover { color: var(--sa-gold); }
.drawer-cta { display: flex; flex-direction: column; gap: 14px; width: min(320px, 100%); }
.drawer-signin {
        display: inline-flex; align-items: center; justify-content: center;
        background: #fff; color: var(--sa-navy);
        font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
        padding: 14px 20px; border-radius: var(--sa-radius-sm); text-align: center;
        transition: background 0.2s ease, color 0.2s ease;
}
.drawer-signin:hover { background: var(--sa-gold); color: #1A1505; }

/* ---------- Footer ---------- */
.footer { background: var(--sa-navy); color: rgba(255, 255, 255, 0.72); padding: 72px 0 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.footer-col-title {
        font-family: var(--sa-sans); font-size: 0.72rem; font-weight: 700;
        letter-spacing: 0.24em; text-transform: uppercase; color: var(--sa-gold); margin-bottom: 18px;
}
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }
.footer-menu a:hover { color: var(--sa-gold); }

.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 48px; }
.footer-social a { color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-social a:hover { color: var(--sa-gold); }

.footer-legal { text-align: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--sa-line-dark); }
.footer-entity { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 8px; }
.footer-entity strong { color: rgba(255, 255, 255, 0.85); }
.footer-copy { text-align: center; width: 100%; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); margin: 4px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1350px) {
        .nav-menu a { padding: 24px 9px; font-size: 0.66rem; letter-spacing: 0.1em; }
}
@media (max-width: 1140px) {
        .nav-desk { display: none; }
        .nav-burger { display: inline-flex; }
        .masthead-in { min-height: 66px; }
        .footer-cols { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
        .topbar-in { min-height: 40px; gap: 10px; }
        .topbar-gsc {
                font-size: 0.68rem; min-width: 0;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        }
        .topbar-actions { flex-shrink: 0; }
        .topbar-actions .btn { padding: 8px 12px; font-size: 0.62rem; letter-spacing: 0.08em; }
        .topbar-submit { display: none; }
        .nav-signin { display: none; }
        .masthead-in { min-height: 60px; }
        .brand-main { font-size: 1.3rem; }
}
