/* Tarak Compat v0.1.5 – one site-wide header.
 * The shared renderer is in functions.php; these styles are only its site-owned presentation.
 * Existing Tarak History Engine CSS retains authority on event pages.
 */
.tee-desktop-header {
    background: #111;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
    display: block;
    height: 80px;
    position: relative;
    width: 100%;
    z-index: 10;
}

.tee-desktop-header__inner {
    align-items: center;
    display: flex;
    height: 80px;
    padding: 0 20px;
    width: 100%;
}

.tee-desktop-header__logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    height: 80px;
}

.tee-desktop-header__logo img {
    display: block;
    height: 74px;
    max-width: 390px;
    object-fit: contain;
    width: auto;
}

.tee-desktop-header__nav {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.tee-desktop-header__nav a {
    align-items: center;
    background: linear-gradient(180deg, #232323 0%, #050505 100%);
    border: 1px solid #202020;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -2px 3px rgba(0, 0, 0, .78), 0 4px 0 #050505, 0 7px 12px rgba(0, 0, 0, .48);
    color: #fff;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    line-height: 1;
    min-width: 98px;
    padding: 0 16px;
    text-decoration: none;
    text-shadow: 0 1px 2px #000;
    transform: translateY(-2px);
    transition: box-shadow .12s ease, filter .12s ease, transform .12s ease;
}

.tee-desktop-header__nav a:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 3px rgba(0, 0, 0, .72), 0 5px 0 #050505, 0 9px 14px rgba(0, 0, 0, .5);
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.tee-desktop-header__nav a:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .72), 0 1px 0 #050505, 0 3px 6px rgba(0, 0, 0, .42);
    transform: translateY(1px);
}

.tee-calendar-trigger {
    align-items: center;
    background: linear-gradient(180deg, #252525 0%, #050505 100%);
    border: 1px solid #202020;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 2px 6px rgba(0, 0, 0, .65);
    color: #f0d38e;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 42px;
    padding: 0;
    text-shadow: 0 1px 2px #000;
}

.tee-calendar-trigger:active {
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, .8), 0 1px 3px rgba(0, 0, 0, .45);
    transform: translateY(1px);
}

.tee-calendar-overlay[hidden] {
    display: none !important;
}

.tee-calendar-overlay {
    align-items: flex-start;
    background: rgba(0, 0, 0, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding-top: 116px;
    position: fixed;
    z-index: 2147483647;
}

.tee-calendar-modal {
    background: linear-gradient(180deg, #2d2d2d 0%, #111 100%);
    border: 1px solid rgba(224, 184, 102, .62);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -14px 24px rgba(0, 0, 0, .36), 0 18px 38px rgba(0, 0, 0, .72);
    color: #e6dfd2;
    font-family: Arial, sans-serif;
    min-width: 360px;
    padding: 18px 18px 16px;
    transform: perspective(900px) rotateX(2deg);
}

.tee-calendar-modal__top {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.tee-calendar-modal__icon {
    align-items: center;
    background: linear-gradient(180deg, #3a3326 0%, #17130d 100%);
    border: 1px solid rgba(224, 184, 102, .48);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 5px 12px rgba(0, 0, 0, .5);
    color: #f3ca70;
    display: inline-flex;
    font-size: 20px;
    height: 38px;
    justify-content: center;
    width: 42px;
}

.tee-calendar-modal__top strong {
    color: #f2d38f;
    display: block;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.tee-calendar-modal__top small {
    color: #bcb3a4;
    display: block;
    font-size: 12px;
    line-height: 1.2;
    margin-top: 3px;
}

.tee-calendar-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 96px;
}

.tee-calendar-fields label {
    color: #cfc7ba;
    display: grid;
    font-size: 12px;
    gap: 5px;
    letter-spacing: 0;
}

.tee-calendar-fields select {
    appearance: auto;
    background: #1f1f1f;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .08);
    color: #e8e3da;
    font-size: 15px;
    height: 36px;
    padding: 0 9px;
}

.tee-calendar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

.tee-calendar-actions button {
    border-radius: 6px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 34px;
    min-width: 84px;
    padding: 0 16px;
    text-transform: uppercase;
}

.tee-calendar-cancel {
    background: linear-gradient(180deg, #2b2b2b 0%, #111 100%);
    border: 1px solid #454545;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px rgba(0, 0, 0, .45);
    color: #d7d2c8;
}

.tee-calendar-go {
    background: linear-gradient(180deg, #d5a84e 0%, #8d6420 100%);
    border: 1px solid #e4bf68;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 16px rgba(214, 168, 78, .28), 0 5px 13px rgba(0, 0, 0, .5);
    color: #120f0b;
}

.tee-desktop-header__social {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: 8px;
}

.tee-desktop-header__social a {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 4px 0 #050505, 0 7px 12px rgba(0, 0, 0, .48);
    box-sizing: border-box;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-decoration: none;
    transform: translateY(-2px);
    transition: box-shadow .12s ease, filter .12s ease, transform .12s ease;
    width: auto;
}

.tee-desktop-header__social a::after {
    border: 1px solid rgba(255, 255, 255, .16);
    border-bottom-color: rgba(0, 0, 0, .72);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -3px 4px rgba(0, 0, 0, .42);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.tee-desktop-header__social a:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 3px rgba(0, 0, 0, .72), 0 5px 0 #050505, 0 9px 14px rgba(0, 0, 0, .5);
    filter: brightness(1.08);
    transform: translateY(-3px);
}

.tee-desktop-header__social a:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .72), 0 1px 0 #050505, 0 3px 6px rgba(0, 0, 0, .42);
    transform: translateY(1px);
}

.tee-desktop-header__social img {
    border-radius: inherit;
    display: block;
    height: 100%;
    max-width: none;
    object-fit: fill;
    width: 100%;
}

.tee-desktop-header__facebook img {
    height: 100%;
}

.tee-desktop-header__youtube img {
    height: 100%;
}

.tee-desktop-header__facebook {
    width: 76px !important;
}

.tee-desktop-header__youtube {
    width: 85px !important;
}

.tee-desktop-header__social .tee-desktop-header__play {
    display: none;
}


/* Never use mobile-browser-specific body classes as an accessibility prerequisite. */
.tarak-global-header { box-sizing: border-box; }
.tarak-global-header *, .tarak-global-header *::before, .tarak-global-header *::after { box-sizing: border-box; }
.tarak-global-header .tee-desktop-header__social .tarak-header-play-badge,
.tarak-global-header .tee-desktop-header__social .tarak-header-play-badge::after {
    box-shadow: none; background: transparent; border: 0; transform: none; overflow: visible;
}
.tarak-global-header .tee-desktop-header__social .tarak-header-play-badge::after { content: none; }
.tarak-global-header .tee-desktop-header__social .tarak-header-play-badge img {
    width: 155px; height: auto; max-width: 155px; object-fit: contain; border: none;
}
.tarak-global-header .tee-calendar-trigger { background: transparent; border: 0; box-shadow: none; min-width: 32px; }
.tarak-global-header .tee-calendar-trigger .tee-history-day-icon { display: block; height: 32px; width: 32px; object-fit: contain; }
.tarak-global-header .tee-calendar-trigger__label { display: none; }
@media (min-width: 768px) and (max-width: 1044px) {
    .tarak-global-header { height: auto; min-height: 80px; }
    .tarak-global-header .tee-desktop-header__inner {
        display: grid; grid-template-columns: minmax(0,1fr) auto;
        grid-template-areas: "logo social" "nav nav";
        height: auto; gap: 6px 8px; padding: 6px 10px 8px;
    }
    .tarak-global-header .tee-desktop-header__logo { grid-area: logo; height: auto; min-width: 0; }
    .tarak-global-header .tee-desktop-header__logo img { max-width: min(100%,330px); height: auto; max-height:64px; }
    .tarak-global-header .tee-desktop-header__nav { grid-area: nav; margin-left: 0; justify-content: center; gap: 6px; }
    .tarak-global-header .tee-desktop-header__nav a { min-width: 84px; }
    .tarak-global-header .tee-desktop-header__social { grid-area: social; margin-left:0; justify-self:end; }
}
@media (min-width: 768px) and (max-width: 1240px) {
    .tarak-global-header .tee-desktop-header__inner { padding-left: 10px; padding-right: 10px; }
    .tarak-global-header .tee-desktop-header__nav { gap: 6px; }
    .tarak-global-header .tee-desktop-header__nav a { min-width: 85px; padding-left: 10px; padding-right: 10px; }
    .tarak-global-header .tee-desktop-header__social .tarak-header-play-badge img { width:135px; }
}
@media (max-width: 767px) {
    /* Responsive website header. Official Android app keeps its native toolbar. */
    html:not(.codex-android-webview) .tarak-global-header { display:block; height:auto; min-height:87px; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__inner {
        display:grid; grid-template-areas:"logo social" "nav nav";
        grid-template-columns:minmax(0,1fr) auto; height:auto; gap:5px 7px; padding:5px 7px 8px;
    }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__logo { grid-area:logo; height:38px; min-width:0; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__logo img { max-width:min(100%,190px); height:36px; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__social { grid-area:social; justify-self:end; margin-left:0; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__social .tarak-header-play-badge img { width:96px; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__nav { grid-area:nav; display:flex; gap:5px; justify-content:center; margin-left:0; width:100%; }
    html:not(.codex-android-webview) .tarak-global-header .tee-desktop-header__nav a { min-width:0; flex:1; padding:0 4px; font-size:12px; }
    html:not(.codex-android-webview) .tarak-global-header .tee-calendar-trigger { min-width:34px; flex:0 0 34px; }
    .tarak-global-header .tee-desktop-header__social .tarak-text-size-controls { display:none; }
    .tee-calendar-overlay { padding:70px 14px 18px; }
    .tee-calendar-modal { min-width:0; width:min(calc(100vw - 28px),360px); }
}
