.tsom-site-header { background: #1a1a1a; color: #fff; }

.tsom-logo-banner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* very narrow screens fall back to stacking */
    justify-content: center;
    align-items: center;
    gap: 1rem 2.5rem;
    padding: 3rem 1rem;
}

.tsom-logo { display: block; max-width: 90%; }
.tsom-logo--primary   { height: 96px; width: auto; }
.tsom-logo--secondary { height: 48px; width: auto; opacity: 0.85; }

@media (max-width: 768px) {
    .tsom-logo-banner { padding: 2rem 1rem; column-gap: 1.5rem; }
    .tsom-logo--primary   { height: 64px; }
    .tsom-logo--secondary { height: 32px; }
}

.tsom-menu-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    height: 48px;
    transition: box-shadow 200ms ease;
}

.tsom-menu-bar.is-pinned { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

@media (prefers-reduced-motion: reduce) {
    .tsom-menu-bar { transition: none; }
}

.tsom-menu-list {
    display: flex;
    align-items: stretch;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0 1rem;
    flex: 1;
    font-size: 0.95rem;
}

.tsom-menu-list .menu-item { display: flex; }

.tsom-menu-list a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
}
.tsom-menu-list .current-menu-item a { font-weight: 600; }

/* Collapsed player: just the brand/play button. Expands to fit the volume +
   mute controls once the stream is playing (.tsom-fm--playing, set by header.js). */
.tsom-fm {
    display: inline-flex;
    align-items: center;
    height: 100%;
    background: #c8362e;
}

.tsom-fm-button {
    background: #c8362e;
    color: #fff;
    border: 0;
    padding: 0 1.25rem;
    height: 100%;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tsom-fm-button[disabled] { opacity: 0.5; cursor: not-allowed; }
.tsom-fm-button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Volume + mute stay hidden until the stream is playing. */
.tsom-fm-volume,
.tsom-fm-mute { display: none; }
.tsom-fm--playing .tsom-fm-volume { display: inline-block; }
.tsom-fm--playing .tsom-fm-mute { display: inline-flex; }

.tsom-fm-volume {
	accent-color: #fff;
	width: 84px;
	vertical-align: middle;
	margin-left: 0.6rem;
}
.tsom-fm-volume:disabled { opacity: 0.4; cursor: not-allowed; }

.tsom-fm-mute {
	margin: 0 0.75rem 0 0.5rem;
	align-items: center;
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1;
}
.tsom-fm-mute[aria-pressed="true"] { opacity: 0.6; }
.tsom-fm-mute:disabled { opacity: 0.4; cursor: not-allowed; }

.tsom-fm-iframe {
    position: fixed;
    width: 0;
    height: 0;
    border: 0;
    visibility: hidden;
}

.tsom-hamburger {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    padding: 0 1rem;
    color: #1a1a1a;
    cursor: pointer;
}
.tsom-hamburger:focus-visible { outline: 2px solid #1a1a1a; outline-offset: -4px; }

.tsom-drawer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    opacity: 0;
    transition: opacity 250ms ease;
}
.tsom-drawer.is-open { opacity: 1; }
.tsom-drawer[hidden] { display: none; }

.tsom-drawer-panel {
    background: #1a1a1a;
    color: #fff;
    width: min(75%, 320px);
    height: 100%;
    padding: 1rem 1.25rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 250ms ease;
}
.tsom-drawer.is-open .tsom-drawer-panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
    .tsom-drawer,
    .tsom-drawer-panel { transition: none; }
}

.tsom-drawer-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
}
.tsom-drawer-list a { color: #fff; text-decoration: none; padding: 0.75rem 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.08); }
/* Focus is moved to the first link when the drawer opens; only show a ring for
   real keyboard navigation, not when opened by tap/click. */
.tsom-drawer-list a:focus { outline: none; }
.tsom-drawer-list a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

@media (max-width: 860px) {
    .tsom-menu-list { display: none; }
    .tsom-hamburger { display: inline-flex; align-items: center; }
    /* No room to expand alongside the hamburger — stay collapsed to the button. */
    .tsom-fm { background: transparent; }
    .tsom-fm--playing .tsom-fm-volume,
    .tsom-fm--playing .tsom-fm-mute { display: none; }
}

html.tsom-drawer-open { overflow: hidden; }
