/* Header login / sign-up / dashboard buttons (header-v2_inner.php), 2026-10-05.
   html.twib-logged-in is added by the inline script at the top of <head> when the
   twib_logged_in=1 cookie from auth.twib.online exists. */

.twib-li { display: none !important; }
html.twib-logged-in .twib-lo { display: none !important; }

/* Desktop: Log in | Free Signup joined pill */
.headerbtncontainer .twib-auth-pill {
    display: inline-flex;
    align-items: stretch;
    height: 46px;
    margin: 0 0 0 16px;
    border: 1px solid #3DA7EF;
    border-radius: 50px;
    background: #fff;
    vertical-align: middle;
    overflow: hidden;
}
.headerbtncontainer .twib-auth-pill a {
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}
.headerbtncontainer .twib-auth-pill .twib-pill-login {
    color: #1B84D1;
    font-weight: 600;
    background: #fff;
}
.headerbtncontainer .twib-auth-pill .twib-pill-login:hover { color: #1269A8; }
.headerbtncontainer .twib-auth-pill .twib-pill-signup {
    margin: 0;
    border: 0;
    border-radius: 50px;
    background: #3DA7EF;
    color: #fff;
    font-weight: 700;
    animation: none;
}
.headerbtncontainer .twib-auth-pill .twib-pill-signup:hover { background: #2B97E0; }

/* Narrow desktops: buttons and menu labels each stay on one line */
@media (min-width: 1001px) and (max-width: 1360.98px) {
    .headerbtncontainer { white-space: nowrap; margin-left: 16px !important; }
    .headerV1 .menuList > li { white-space: nowrap; }
    .headerbtncontainer a.btnStle01.btn_login { margin-left: 8px; padding-left: 15px; padding-right: 15px; font-size: 15px; }
    .headerbtncontainer .twib-auth-pill { margin-left: 8px; }
    .headerbtncontainer .twib-auth-pill a { padding: 0 13px; font-size: 15px; }
}

/* Desktop, logged in: single Go to Dashboard pill */
html.twib-logged-in .headerbtncontainer .twib-dash-btn {
    display: inline-flex !important;
    align-items: center;
    height: 46px;
    padding: 0 26px;
    line-height: 1;
    vertical-align: middle;
    text-transform: none;
    animation: none;
}

/* Mobile top bar, logged in: compact Dashboard pill beside the menu icon */
html.twib-logged-in .responsiveV2 .twib-dash-mini {
    display: inline-flex !important;
    align-items: center;
    height: 40px;
    margin: 0 16px 0 auto;
    padding: 0 16px;
    border-radius: 50px;
    background: #3DA7EF;
    color: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Mobile menu: full-width buttons, then the log in line */
@media (max-width: 1000px) {
    .responsiveV2 .rightBttns { flex-flow: column; gap: 10px; }
    .responsiveV2 .rightBttns a.btnStle01 { width: 100%; float: none; display: block; }
    .responsiveV2 .rightBttns a.btn_login { border: 1px solid #3DA7EF; }
    .responsiveV2 .twib-login-line {
        width: 100%;
        margin: 6px 0 0;
        text-align: center;
        color: #fff;
        font-size: 14px;
    }
    .responsiveV2 .rightBttns .twib-login-line a {
        float: none;
        display: inline;
        padding: 0;
        background: none;
        color: #1B84D1;
        font-weight: 700;
        text-transform: none;
    }
    html.twib-logged-in .responsiveV2 .rightBttns .twib-dash-full { display: block !important; text-transform: none; }
}

/* Stop the page shifting sideways: some sections (hero image, awards, reviews) are wider than
   the screen at certain widths. Clip them instead of letting the page scroll horizontally. */
html { overflow-x: hidden; }
body { overflow-x: hidden; overflow-x: clip; }

/* Mobile menu: keep the panel and its backdrop full height when the phone browser hides its
   address bar during scroll. 100dvh follows the visible screen; older browsers keep height: 100%. */
@media (max-width: 1000px) {
    .responsiveMenuHolder, .closeresponsiveMenu { top: 0; bottom: auto; height: 100%; height: 100dvh; }
}
