/* =====================================================================
   CityHelpBook design system (2026-11)
   Loaded LAST in layouts/app.blade.php so it unifies older page styles.
   Tokens first, then base, then Bootstrap components, then site parts.
   ===================================================================== */

:root {
    --chb-brand: #cc4a30;          /* 4.7:1 on white (WCAG AA for button and link text); was #e55a40 */
    --chb-brand-2: #ff7555;
    --chb-brand-hover: #b33f27;
    --chb-brand-soft: #fff1ec;
    --chb-brand-ink: #b8432c;
    --chb-ink: #1c2230;
    --chb-ink-2: #4a5263;
    --chb-muted: #6b7385;          /* 4.6:1 on white (WCAG AA) */
    --chb-line: #eceef2;
    --chb-line-2: #dfe2e8;
    --chb-bg: #fbfaf9;
    --chb-card: #ffffff;
    --chb-ok: #14915f;  --chb-ok-soft: #e6f6ef;
    --chb-red: #d93636; --chb-red-soft: #fdeaea;
    --chb-blue: #2f6fde; --chb-blue-soft: #eaf1fd;
    --chb-amber: #b86e00; --chb-amber-soft: #fff5e0;
    --chb-r-sm: 10px; --chb-r: 14px; --chb-r-lg: 20px;
    --chb-shadow-sm: 0 1px 2px rgba(20, 24, 35, .05);
    --chb-shadow: 0 1px 2px rgba(20, 24, 35, .04), 0 8px 24px rgba(20, 24, 35, .06);
    --chb-shadow-lg: 0 20px 50px rgba(20, 24, 35, .12);
    --chb-font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --chb-header-h: 68px;

    /* Re-point the older variable names so legacy CSS follows the new palette */
    --primary-color: var(--chb-brand);
    --primary-hover: var(--chb-brand-hover);
    --primary-light: var(--chb-brand-soft);
    --bg-main: var(--chb-bg);
    --text-main: var(--chb-ink);
    --text-muted: var(--chb-muted);
    --border-color: var(--chb-line);

    /* Bootstrap 5 variables */
    --bs-primary: #cc4a30;
    --bs-primary-rgb: 204, 74, 48;
    --bs-body-font-family: var(--chb-font);
    --bs-body-color: #1c2230;
    --bs-body-bg: #fbfaf9;
    --bs-border-color: #eceef2;
    --bs-link-color: #c94b33;
    --bs-link-color-rgb: 201, 75, 51;
    --bs-link-hover-color: #cf4b32;
    --bs-border-radius: 10px;
    --bs-border-radius-lg: 14px;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--chb-font) !important;
    background-color: var(--chb-bg) !important;
    color: var(--chb-ink) !important;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--chb-font);
    color: var(--chb-ink);
    letter-spacing: -.01em;
    line-height: 1.2;
}
p { color: inherit; }
a { color: var(--bs-link-color); }
a:hover { color: var(--chb-brand-hover); }
img { max-width: 100%; }
.text-muted { color: var(--chb-muted) !important; }
.text-primary { color: var(--chb-brand) !important; }
.bg-primary { background-color: var(--chb-brand) !important; }
.border-primary { border-color: var(--chb-brand) !important; }
::selection { background: #ffd9cc; color: var(--chb-ink); }

/* Visible keyboard focus everywhere (accessibility) */
:focus-visible {
    outline: 3px solid rgba(229, 90, 64, .45) !important;
    outline-offset: 2px;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 3000;
    background: var(--chb-ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--chb-font);
    font-weight: 600;
    border-radius: 999px;
    padding: .55rem 1.15rem;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn-sm { padding: .38rem .85rem; font-size: .85rem; }
.btn-lg { padding: .75rem 1.5rem; }
.btn-primary,
.btn-theme, .main-btn, .login-btn, .btn-hero-primary, .btn-header-join {
    background: var(--chb-brand) !important;
    border: 1.5px solid var(--chb-brand) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(229, 90, 64, .22);
}
.btn-primary:hover, .btn-primary:focus,
.btn-theme:hover, .main-btn:hover, .login-btn:hover, .btn-hero-primary:hover, .btn-header-join:hover {
    background: var(--chb-brand-hover) !important;
    border-color: var(--chb-brand-hover) !important;
    color: #fff !important;
}
.btn-outline-primary, .btn-hero-outline, .btn-header-login {
    background: #fff !important;
    border: 1.5px solid var(--chb-line-2) !important;
    color: var(--chb-ink) !important;
    box-shadow: none;
}
.btn-outline-primary:hover, .btn-hero-outline:hover, .btn-header-login:hover {
    border-color: var(--chb-brand) !important;
    color: var(--chb-brand) !important;
    background: var(--chb-brand-soft) !important;
}
.btn-light { background: #fff; border: 1px solid var(--chb-line); color: var(--chb-ink); }
.btn-light:hover { background: #f6f7f9; border-color: var(--chb-line-2); }
.btn-outline-secondary { border-color: var(--chb-line-2); color: var(--chb-ink-2); }
.btn-outline-secondary:hover { background: #f3f4f7; border-color: var(--chb-line-2); color: var(--chb-ink); }
.btn-success { background: var(--chb-ok); border-color: var(--chb-ok); }
.btn-danger { background: var(--chb-red); border-color: var(--chb-red); }
.btn-close { border-radius: 50%; }
.login-btn { width: 100%; height: 50px; border-radius: 999px !important; font-size: 16px; }

/* ---------- Forms ---------- */
.form-control, .form-select, .form-input, select.form-control, textarea.form-control {
    font-family: var(--chb-font);
    border: 1.5px solid var(--chb-line-2);
    border-radius: var(--chb-r-sm);
    background-color: #fff;
    color: var(--chb-ink);
    min-height: 46px;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
textarea.form-control { min-height: 110px; }
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 14px; }
.form-control:focus, .form-select:focus, .form-input:focus {
    border-color: var(--chb-brand-2) !important;
    box-shadow: 0 0 0 4px rgba(255, 117, 85, .15) !important;
    outline: 0;
}
.form-control::placeholder, .form-input::placeholder { color: #9aa1af; }
.form-label { font-weight: 600; font-size: 14px; color: var(--chb-ink-2); margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--chb-brand); border-color: var(--chb-brand); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(255, 117, 85, .15); border-color: var(--chb-brand-2); }
.input-group-text { background: #f6f7f9; border: 1.5px solid var(--chb-line-2); color: var(--chb-muted); }
.invalid-feedback, .text-danger.small { font-size: 13px; }
/* iOS zooms inputs under 16px — keep inputs at 16px on phones */
@media (max-width: 575.98px) {
    .form-control, .form-select, .form-input, input, select, textarea { font-size: 16px !important; }
}

/* ---------- Cards, panels ---------- */
.card, .modern-card, .content-card, .main-card {
    background: var(--chb-card);
    border: 1px solid var(--chb-line) !important;
    border-radius: var(--chb-r-lg) !important;
    box-shadow: var(--chb-shadow-sm);
}
.card-header { background: transparent; border-bottom: 1px solid var(--chb-line); padding: 1rem 1.25rem; }
.card-footer { background: transparent; border-top: 1px solid var(--chb-line); }
.card-body { padding: 1.25rem; }
.shadow-sm { box-shadow: var(--chb-shadow-sm) !important; }
.shadow { box-shadow: var(--chb-shadow) !important; }
.shadow-lg { box-shadow: var(--chb-shadow-lg) !important; }

/* ---------- Badges, alerts ---------- */
.badge { font-weight: 600; border-radius: 999px; letter-spacing: .01em; padding: .38em .7em; }
.alert { border-radius: var(--chb-r); border: 1px solid transparent; }
.alert-success { background: var(--chb-ok-soft); color: #0e6b46; border-color: #c4ead8; }
.alert-danger { background: var(--chb-red-soft); color: #a32626; border-color: #f6caca; }
.alert-warning { background: var(--chb-amber-soft); color: #7a4a00; border-color: #fbe2b3; }
.alert-info { background: var(--chb-blue-soft); color: #1f4fa3; border-color: #cddcf8; }

/* ---------- Modals, dropdowns ---------- */
.modal-content { border: 0; border-radius: var(--chb-r-lg); box-shadow: var(--chb-shadow-lg); }
.modal-header { border-bottom: 1px solid var(--chb-line); padding: 1rem 1.25rem; }
.modal-footer { border-top: 1px solid var(--chb-line); }
.modal-title { font-weight: 700; }
.dropdown-menu { border: 1px solid var(--chb-line) !important; border-radius: var(--chb-r) !important; box-shadow: var(--chb-shadow-lg) !important; padding: 6px; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; font-size: 14.5px; }
.dropdown-item:hover, .dropdown-item:focus,
.dropdown-menu a:hover, .dropdown-menu a:focus,
.dropdown-account .link-item:hover, .dropdown-account .link-item:focus {
    background-color: var(--chb-brand-soft) !important;
    color: var(--chb-brand-ink) !important;
}
.dropdown-item:hover i, .dropdown-menu a:hover i, .dropdown-account .link-item:hover i { color: var(--chb-brand-ink) !important; }

/* ---------- Pagination, tables, tabs ---------- */
.pagination { gap: 6px; flex-wrap: wrap; }
.page-link { border-radius: 10px !important; border: 1px solid var(--chb-line-2); color: var(--chb-ink-2); min-width: 40px; text-align: center; }
.page-item.active .page-link { background: var(--chb-brand); border-color: var(--chb-brand); color: #fff; }
.page-link:hover { background: var(--chb-brand-soft); color: var(--chb-brand-ink); }
.table { --bs-table-border-color: var(--chb-line); }
.nav-tabs { border-bottom: 1px solid var(--chb-line); }
.nav-tabs .nav-link.active { color: var(--chb-brand); border-color: transparent transparent var(--chb-brand); }
.nav-pills .nav-link.active { background: var(--chb-brand); }

/* ---------- Page shell ---------- */
.main-section { padding-top: 28px; padding-bottom: 48px; }
.chb-page-head { padding: 32px 0 8px; }
.chb-page-head h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin: 6px 0 8px; }
.chb-page-head p { color: var(--chb-muted); margin: 0; max-width: 680px; }
.chb-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--chb-brand); }
.chb-section { padding: 64px 0; }
.chb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.chb-section-head h2 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; margin: 6px 0 0; }
.chb-section-head p { color: var(--chb-muted); margin: 6px 0 0; }
.chb-link { color: var(--chb-brand); font-weight: 600; white-space: nowrap; text-decoration: none; }
.chb-link:hover { color: var(--chb-brand-hover); text-decoration: underline; }
@media (max-width: 575.98px) {
    .chb-section { padding: 40px 0; }
    .chb-section-head { flex-direction: column; align-items: flex-start; }
    .container, .container-fluid, .container-xxl { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Header ---------- */
body .sticky-header {
    position: sticky; top: 0; z-index: 1030;
    background: #fff !important;   /* solid: backdrop blur re-rendered on every scroll frame */
    border-bottom: 1px solid var(--chb-line) !important;
    box-shadow: none !important;
}
body .custom-navbar { padding-top: 0 !important; padding-bottom: 0 !important; min-height: var(--chb-header-h); background: transparent !important; }
body .custom-navbar .nav-link {
    font-family: var(--chb-font);
    font-size: 15px; font-weight: 500;
    color: var(--chb-ink-2) !important;
    padding: 8px 14px !important;
    border-radius: 999px;
    border: 0 !important;
}
body .custom-navbar .nav-link:hover { color: var(--chb-ink) !important; background: #f4f5f7; }
body .custom-navbar .nav-link.active { color: var(--chb-brand-ink) !important; background: var(--chb-brand-soft); }
body .custom-navbar .navbar-nav { gap: 4px !important; }
body .header-logo img { max-height: 56px !important; height: 56px; width: auto; }
body .icon-set {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--chb-ink-2); background: #fff; border: 1px solid var(--chb-line);
    position: relative;
}
body .icon-set:hover { border-color: #ffd2c4; background: var(--chb-brand-soft); }
body .icon-set i { font-size: 18px !important; color: inherit !important; }
body .notify-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 10.5px; padding: 0 4px; border-radius: 999px !important; background: var(--chb-brand) !important; box-shadow: 0 0 0 2px #fff; }
body .btn-header-login, body .btn-header-join { height: 40px; display: inline-flex !important; align-items: center; padding: 0 18px !important; font-size: 14.5px !important; }
body .city-autocomplete-container .input-group { border: 1.5px solid var(--chb-line-2) !important; box-shadow: none !important; height: 42px !important; }
body .city-autocomplete-container .input-group:focus-within { border-color: var(--chb-brand-2) !important; box-shadow: 0 0 0 4px rgba(255, 117, 85, .15) !important; }
body .city-autocomplete-container .input-group input { font-size: 14.5px !important; min-height: 0; }
body .city-autocomplete-container .input-group input:focus { box-shadow: none !important; }
body .dropdown-account { min-width: 220px; padding: 6px !important; }
body .dropdown-account .link-item { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--chb-ink); font-size: 14.5px; text-decoration: none; }
@media (max-width: 991.98px) {
    :root { --chb-header-h: 60px; }
    body .header-logo img { max-height: 44px !important; height: 44px; }
    body .btn-header-login, body .btn-header-join { height: 36px; padding: 0 12px !important; font-size: 13px !important; }
    body .icon-set { width: 36px; height: 36px; border-radius: 10px; }
}

/* ---------- Mobile bottom navigation (logged in + guests) ---------- */
body .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: #fff !important;
    border-top: 1px solid var(--chb-line) !important;
    box-shadow: 0 -4px 20px rgba(20, 24, 35, .06) !important;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) !important;
    height: auto !important;
    border-radius: 0 !important;
}
body .bottom-nav-container { display: grid !important; grid-template-columns: repeat(5, 1fr); align-items: end; max-width: 560px; margin: 0 auto; gap: 0 !important; padding: 0 !important; height: auto !important; }
body .bottom-nav-item {
    display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
    min-height: 48px; padding: 4px 2px !important;
    color: var(--chb-muted) !important; text-decoration: none !important;
    font-size: 11px !important; font-weight: 500; background: transparent !important;
}
body .bottom-nav-item span { font-size: 11px !important; line-height: 1.1; white-space: nowrap; display: block !important; }
body .bottom-nav-item i { font-size: 20px !important; color: inherit !important; transform: none !important; }
body .bottom-nav-item.active, body .bottom-nav-item.active i { color: var(--chb-brand) !important; }
body .bottom-nav-item.chb-post i {
    width: 48px; height: 48px; margin-top: -22px; border-radius: 50%;
    background: var(--chb-brand); color: #fff !important;
    display: grid; place-items: center; font-size: 22px !important;
    box-shadow: 0 6px 16px rgba(229, 90, 64, .35), 0 0 0 4px #fff;
}
body .bottom-nav-item.chb-post { color: var(--chb-ink) !important; }
@media (max-width: 991.98px) {
    body.has-bottom-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 992px) { body .bottom-nav { display: none !important; } }

/* City hubs sheet (mobile) */
.hub-mobile-item { background: #f7f8fa !important; border: 1px solid var(--chb-line); border-radius: var(--chb-r) !important; }
.hub-mobile-item:hover { background: var(--chb-brand-soft) !important; border-color: #ffd2c4; }

/* ---------- Footer ---------- */
.modern-footer { font-family: var(--chb-font) !important; background: #fff !important; border-top: 1px solid var(--chb-line) !important; }
.modern-footer .footer-heading { font-size: 13px !important; letter-spacing: .08em !important; color: var(--chb-ink) !important; margin-bottom: 16px !important; }
.modern-footer .footer-links li { margin-bottom: 10px !important; }
.modern-footer .footer-links a { color: var(--chb-ink-2) !important; font-size: 14.5px !important; }
.modern-footer .footer-links a:hover { color: var(--chb-brand) !important; padding-left: 0 !important; }
.modern-footer .brand-tagline, .modern-footer .copyright { color: var(--chb-muted) !important; }
.modern-footer .app-downloads .d-flex { flex-wrap: wrap; }

/* ---------- Shared content components used on many pages ---------- */
.chb-card {
    background: #fff; border: 1px solid var(--chb-line); border-radius: var(--chb-r-lg);
    box-shadow: var(--chb-shadow-sm); transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.chb-card:hover, .chb-card.is-link:hover { border-color: #ffd2c4; box-shadow: var(--chb-shadow); transform: translateY(-2px); }
.chb-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chb-pill-red { background: var(--chb-red-soft); color: var(--chb-red); }
.chb-pill-ok { background: var(--chb-ok-soft); color: var(--chb-ok); }
.chb-pill-blue { background: var(--chb-blue-soft); color: var(--chb-blue); }
.chb-pill-brand { background: var(--chb-brand-soft); color: var(--chb-brand-ink); }
.chb-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }

/* Login / register panel */
.login-register-bg { background: #fff; border: 1px solid var(--chb-line); border-radius: 24px !important; overflow: hidden; box-shadow: var(--chb-shadow); }
.lr-right { padding: 36px 32px !important; }
.social-g-btn {
    width: 100%; height: 48px; border-radius: 999px !important; font-weight: 600 !important;
    border: 1.5px solid #dd4b39 !important; margin-bottom: 10px; font-family: var(--chb-font);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #dd4b39; color: #fff !important;            /* Google red (original button colour) */
}
.social-g-btn:hover, .social-g-btn:focus-visible { background: #c4402f; border-color: #c4402f !important; color: #fff !important; }
.social-g-btn i { color: inherit; }
.social-logins a { display: block; text-decoration: none; }
@media (max-width: 575.98px) { .lr-right { padding: 24px 18px !important; } }

/* Long legal / info text pages */
.chb-prose { max-width: 820px; margin: 0 auto; font-size: 16px; color: var(--chb-ink-2); line-height: 1.75; }
.chb-prose h2, .chb-prose h3 { color: var(--chb-ink); margin-top: 1.8em; }

/* Prevent horizontal scroll from wide embeds/tables on phones */
iframe, video, embed { max-width: 100%; }
.table-responsive { -webkit-overflow-scrolling: touch; }

/* ---------- Toasts (toastr) in the site design: white card, coloured icon tile, soft shadow ---------- */
#toast-container { z-index: 200000; }
#toast-container.toast-top-right { top: 84px; right: 16px; }
#toast-container > div.toast {
    width: 380px; max-width: calc(100vw - 32px); margin: 0 0 10px; padding: 14px 40px 16px 64px; position: relative; overflow: hidden;
    background: #fff !important; background-image: none !important; color: var(--chb-ink); opacity: 1;
    border: 1px solid var(--chb-line); border-radius: 16px; box-shadow: 0 14px 34px rgba(20, 24, 35, .14), 0 2px 6px rgba(20, 24, 35, .06);
    font-family: var(--chb-font); font-size: 14.5px; line-height: 1.45; animation: chbToastIn .28s cubic-bezier(.2, .8, .2, 1);
}
#toast-container > div.toast:hover { box-shadow: 0 18px 40px rgba(20, 24, 35, .18); opacity: 1; cursor: default; }
#toast-container > div.toast::before {
    content: "\e97c"; font-family: 'Feather' !important; position: absolute; left: 14px; top: 12px; width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center; font-size: 18px; line-height: 1; background: var(--chb-blue-soft); color: var(--chb-blue);
}
#toast-container > .toast-success::before { content: "\e92c"; background: var(--chb-ok-soft); color: var(--chb-ok); }
#toast-container > .toast-error::before { content: "\ea03"; background: var(--chb-red-soft); color: var(--chb-red); }
#toast-container > .toast-warning::before { content: "\e904"; background: var(--chb-amber-soft); color: var(--chb-amber); }
#toast-container .toast-title { font-weight: 600; color: var(--chb-ink); margin-bottom: 2px; }
#toast-container .toast-message { color: var(--chb-ink-2); font-weight: 500; padding-top: 7px; overflow-wrap: anywhere; }
#toast-container .toast-title + .toast-message { padding-top: 0; }
#toast-container .toast-message a { color: var(--chb-brand-ink); font-weight: 600; }
#toast-container .toast-close-button {
    position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    color: var(--chb-muted); opacity: 1; text-shadow: none; font-size: 20px; font-weight: 400; line-height: 1; float: none;
}
#toast-container .toast-close-button:hover { background: #f1f2f5; color: var(--chb-ink); }
#toast-container .toast-progress { height: 3px; opacity: 1; background: var(--chb-blue); left: 0; bottom: 0; }
#toast-container > .toast-success .toast-progress { background: var(--chb-ok); }
#toast-container > .toast-error .toast-progress { background: var(--chb-red); }
#toast-container > .toast-warning .toast-progress { background: var(--chb-amber); }
@keyframes chbToastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) {
    #toast-container.toast-top-right { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px; }
    #toast-container > div.toast { width: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { #toast-container > div.toast { animation: none; } }

/* ---------- Very small phones (320–359px) ---------- */
body .bottom-nav-item { min-width: 0; }
body .bottom-nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 359.98px) {
    body .header-logo img { max-height: 32px !important; height: 32px; }
    body .custom-navbar .d-lg-none > .d-flex { gap: 6px !important; }
    body .btn-header-login, body .btn-header-join { padding: 0 10px !important; font-size: 12.5px !important; height: 34px; }
    body .bottom-nav-item span { font-size: 10px !important; }
}

/* ---------- Space under the header ----------
   Phones/tablets use a fixed header (61px); desktop uses a sticky one in the flow. */
@media (max-width: 991.98px) {
    main { padding-top: 77px !important; }
    main.chb-flush { padding-top: 61px !important; }
}
@media (min-width: 992px) {
    main.chb-flush { padding-top: 0 !important; }
}

/* ---------- Page title bar (partials/title) ---------- */
.chb-titlebar { background: linear-gradient(180deg, #fff4ef 0%, var(--chb-bg) 100%); border-bottom: 1px solid var(--chb-line); padding: 22px 0 22px; }
.chb-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13.5px; color: var(--chb-muted); }
.chb-crumbs li + li::before { content: '/'; margin-right: 6px; color: #c3c8d2; }
.chb-crumbs a { color: var(--chb-ink-2); text-decoration: none; }
.chb-crumbs a:hover { color: var(--chb-brand); }
.chb-crumbs [aria-current] { color: var(--chb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
.chb-titlebar-h { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin: 8px 0 0; overflow-wrap: anywhere; }
.chb-titlebar-sub { color: var(--chb-muted); margin: 6px 0 0; max-width: 720px; }
/* Pages that follow the title bar no longer need the old 90px top gap */
.chb-titlebar + main, .chb-titlebar ~ #main-content + main { padding-top: 0 !important; }
.chb-titlebar ~ #main-content + main .main-section { padding-top: 28px; }
@media (max-width: 991.98px) { .chb-titlebar { margin-top: 61px; padding: 16px 0; } }

/* Logo sizing on narrow phones (keeps Login/Join fully visible) */
@media (max-width: 430px) {
    body .header-logo img { max-height: 34px !important; height: 34px; }
    body .custom-navbar .d-lg-none > .d-flex { gap: 6px !important; }
}
@media (max-width: 359.98px) {
    body .header-logo img { max-height: 28px !important; height: 28px; }
    body .custom-navbar .d-lg-none > .d-flex { gap: 4px !important; }
}

/* Legacy style.css set every <p> to 14px grey (#847577) site-wide; follow the surrounding text instead */
p { font-size: inherit; color: inherit; line-height: inherit; }

/* ---------- Desktop header: flexible columns so the member nav never clips ---------- */
@media (min-width: 992px) {
    body .custom-navbar .row.d-lg-flex { flex-wrap: nowrap; gap: 16px; }
    body .custom-navbar .row.d-lg-flex > div:first-child { flex: 0 0 auto; width: auto; }
    body .custom-navbar .row.d-lg-flex > div:nth-child(2) { flex: 1 1 auto; width: auto; min-width: 0; }
    body .custom-navbar .row.d-lg-flex > div:last-child { flex: 0 0 auto; width: auto; }
    body .custom-navbar .row.d-lg-flex .navbar-nav { gap: 2px !important; flex-wrap: nowrap; }
    body .custom-navbar .row.d-lg-flex .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    body .header-logo img { max-height: 48px !important; height: 48px; }
    body #languageSelectorDropdown > span { display: none; }           /* globe icon only */
    body #languageSelectorDropdown { padding: 0 12px !important; }
    body .account-link > span.d-xl-block { display: none !important; } /* avatar only */
    body .custom-navbar .row.d-lg-flex .nav-link { padding: 8px 10px !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    body .header-logo img { max-height: 42px !important; height: 42px; }
    body .custom-navbar .row.d-lg-flex .nav-link { padding: 8px 8px !important; font-size: 14px; }
    body .custom-navbar .row.d-lg-flex > div:last-child .gap-3 { gap: 8px !important; }
    body .custom-navbar .row.d-lg-flex > div:last-child .dropdown.me-3 { margin-right: 8px !important; }
}

/* ---------- One accent colour everywhere (no Bootstrap blue on hover/active) ---------- */
.dropdown-item.active, .dropdown-item:active,
.list-group-item.active { background-color: var(--chb-brand) !important; border-color: var(--chb-brand) !important; color: #fff !important; }
.btn-link, .nav-link { color: var(--chb-brand); }
.btn-link:hover, .nav-link:hover, .nav-link:focus { color: var(--chb-brand-hover); }
.progress-bar { background-color: var(--chb-brand); }
.form-range::-webkit-slider-thumb { background: var(--chb-brand); }
.form-range::-moz-range-thumb { background: var(--chb-brand); }
.text-bg-primary { background-color: var(--chb-brand) !important; color: #fff !important; }
.link-primary, .link-primary:hover { color: var(--chb-brand) !important; }
.btn-outline-primary:active, .btn-primary:active, .btn-primary.active { background: var(--chb-brand-hover) !important; border-color: var(--chb-brand-hover) !important; color: #fff !important; }
.accordion-button:not(.collapsed) { color: var(--chb-brand-ink); background-color: var(--chb-brand-soft); }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(255, 117, 85, .15); border-color: #ffd2c4; }
/* Card-style links keep their text colour on hover (the card border shows the hover) */
a.chb-card:hover, a.chb-card:hover strong, a.chb-card:hover h3 { color: var(--chb-ink); }

/* ---------- Input + button groups (comment boxes): one joined control, equal height ----------
   Only plain groups (pill-shaped search/chat bars keep their own design) and only the trailing submit button. */
.input-group:not(.rounded-pill) { flex-wrap: nowrap; }
.input-group:not(.rounded-pill) > .form-control:not(:last-child),
.input-group:not(.rounded-pill) > .form-input:not(:last-child) { min-height: 48px; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group:not(.rounded-pill) > .main-btn:last-child,
.input-group:not(.rounded-pill) > button[type=submit]:last-child {
    min-height: 48px; height: auto !important; margin: 0 !important;
    border-radius: 0 12px 12px 0 !important; box-shadow: none !important;
    padding: 0 20px; display: inline-flex; align-items: center; white-space: nowrap;
    background: var(--chb-brand); border: 1.5px solid var(--chb-brand); color: #fff; font-weight: 600;
}
.input-group:not(.rounded-pill) > .main-btn:last-child:hover,
.input-group:not(.rounded-pill) > button[type=submit]:last-child:hover { background: var(--chb-brand-hover); border-color: var(--chb-brand-hover); color: #fff; }
@media (max-width: 400px) { .input-group:not(.rounded-pill) > button[type=submit]:last-child, .input-group:not(.rounded-pill) > .main-btn:last-child { padding: 0 14px; font-size: 14px; } }

/* ---------- Contrast fixes (WCAG AA 4.5:1 for text) ---------- */
body .btn-header-login { color: var(--chb-brand-ink) !important; }
.chb-link { color: var(--chb-brand-ink); }
.chb-pill-red { color: #b42323 !important; }
.chb-pill-ok { color: #0e6b46 !important; }
.chb-pill-blue { color: #2459b8 !important; }

/* ---------- Type: Inter everywhere, modern weights ----------
   Older stylesheets hard-code 'Rubik' on many elements; override text elements (not <i> icon fonts). */
html, body, h1, h2, h3, h4, h5, h6, p, a, span, button, input, select, textarea, label, li, td, th, small, strong, b,
.btn, .form-control, .form-select, .dropdown-item, .modal, .badge, .nav-link, .select2-container { font-family: var(--chb-font) !important; }
[class^="feather-"], [class*=" feather-"] { font-family: 'Feather' !important; }
.fa, .fas, .far, .fa-solid, .fa-regular { font-family: 'Font Awesome 6 Free' !important; }
.fab, .fa-brands { font-family: 'Font Awesome 6 Brands' !important; }
body { letter-spacing: -.006em; }
h1, h2, .h1, .h2 { font-weight: 700 !important; letter-spacing: -.022em; }
h3, h4, h5, h6, .h3, .h4, .h5, .h6 { font-weight: 600 !important; letter-spacing: -.012em; }
b, strong, .fw-bold, .fw-bolder, .fw-black, .fw-extrabold { font-weight: 600 !important; }
.fw-semibold, .fw-medium { font-weight: 500 !important; }
.btn, .main-btn, .login-btn, .btn-header-login, .btn-header-join, .social-g-btn, .chb-store b,
.h2-cta-btn, .chb-link, .h2-q, .h2-cat strong, .h2-fi strong, .h2-live { font-weight: 600 !important; }
.form-label, label { font-weight: 500; }
.dropdown-item, .nav-link, .page-link { font-weight: 500; }
.chb-kicker { font-weight: 600 !important; letter-spacing: .1em; }
.chb-pill, .badge, .inbox-badge, .notify-count { font-weight: 600 !important; }
.card-header h3, .categories-left-heading h3, .modal-title, .chb-footer-h { font-weight: 600 !important; }
.h2-hero h1 { font-weight: 800 !important; letter-spacing: -.035em; }

/* ---------- Notifications (header dropdown + page share one row design) ---------- */
body .chb-notif-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0 !important; border-radius: 18px !important; overflow: hidden; }
body .chb-notif-menu-m { width: 340px; }
.chb-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--chb-line); }
.chb-notif-head strong { font-size: 15.5px; }
.chb-notif-list { max-height: 420px; overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.chb-notif { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; color: var(--chb-ink) !important; text-decoration: none !important; }
.chb-notif:hover { background: #f7f8fa !important; color: var(--chb-ink) !important; }
.chb-notif.is-unread { background: #fff6f2; }
.chb-notif.is-unread:hover { background: #ffefe8 !important; }
.chb-notif-avatar { position: relative; flex: 0 0 44px; height: 44px; }
.chb-notif-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chb-notif-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; }
.chb-notif-badge { position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; box-shadow: 0 0 0 2px #fff; }
.chb-nt-brand { background: var(--chb-brand-soft); color: var(--chb-brand); }
.chb-nt-blue { background: var(--chb-blue-soft); color: var(--chb-blue); }
.chb-nt-red { background: var(--chb-red-soft); color: #b42323; }
.chb-nt-ok { background: var(--chb-ok-soft); color: #0e6b46; }
.chb-nt-amber { background: var(--chb-amber-soft); color: var(--chb-amber); }
.chb-nt-violet { background: #f1ecfd; color: #6c47d8; }
.chb-notif-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.chb-notif-text { font-size: 14px; line-height: 1.45; color: var(--chb-ink-2); overflow-wrap: anywhere; }
.chb-notif-text strong { color: var(--chb-ink); }
.chb-notif-body time { font-size: 12.5px; color: var(--chb-muted); }
.chb-notif-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--chb-brand); margin-top: 8px; }
.chb-notif-lg { padding: 14px 12px; gap: 14px; }
.chb-notif-lg .chb-notif-text { font-size: 15px; }
.chb-notif-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 30px 18px; color: var(--chb-muted); font-size: 14px; }
.chb-notif-empty .chb-icon { background: var(--chb-brand-soft); color: var(--chb-brand); margin-bottom: 6px; }
.chb-notif-empty strong { color: var(--chb-ink); }
.chb-notif-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--chb-line); font-weight: 500; color: var(--chb-brand-ink) !important; text-decoration: none !important; background: #fff; }
.chb-notif-all:hover { background: var(--chb-brand-soft); }
@media (max-width: 991.98px) {
    /* Phone: open as a full-width sheet under the header instead of hanging off the bell */
    body .chb-notif-menu-m.show { position: fixed !important; inset: 64px 10px auto 10px !important; transform: none !important; width: auto !important; max-width: none; margin: 0 !important; }
    body .chb-notif-menu-m .chb-notif-list { max-height: calc(100vh - 220px); }
}

/* ---------- Popups (modals): one consistent design everywhere ----------
   White header with title, round close button, comfortable body, outline secondary + solid primary buttons,
   bottom sheet on phones. Overrides the older coloured/gradient headers. */
.modal-backdrop.show { opacity: .45; background: #0f1320; }
.modal-content { border: 0 !important; border-radius: 22px !important; overflow: hidden; box-shadow: 0 30px 70px rgba(15, 19, 32, .25) !important; }
.modal-header,
.modal-header.bg-danger, .modal-header.bg-primary, .modal-header.bg-gradient-orange, .invite-modal-hero {
    background: #fff !important; color: var(--chb-ink) !important;
    padding: 18px 22px !important; border-bottom: 1px solid var(--chb-line) !important;
    display: flex; align-items: center; gap: 12px; position: relative;
}
.modal-header .text-white, .modal-header .text-white-50, .invite-modal-hero .text-white, .invite-modal-hero h5 { color: var(--chb-ink) !important; }
.modal-header .text-white-50, .invite-modal-hero .text-white-50, .modal-header small, .modal-header p { color: var(--chb-muted) !important; font-size: 14px; }
.modal-title, .modal-header h5, .invite-modal-hero h5 { font-size: 17.5px !important; font-weight: 600 !important; margin: 0; letter-spacing: -.01em; }
.modal-header .btn-close, .invite-modal-close {
    margin: 0 0 0 auto !important; width: 36px; height: 36px; padding: 0 !important; border-radius: 50%;
    background-color: #f2f3f6 !important; background-size: 12px; opacity: 1; filter: none !important; position: static !important; flex: 0 0 auto;
}
.modal-header .btn-close:hover, .invite-modal-close:hover { background-color: #e7e9ee !important; }
.modal-header .warning-icon-wrapper, .modal-header .header-icon-wrapper, .invite-modal-icon {
    width: 44px !important; height: 44px !important; margin: 0 !important; border-radius: 14px !important; font-size: 20px !important;
    display: grid !important; place-items: center; background: var(--chb-brand-soft) !important; color: var(--chb-brand) !important; flex: 0 0 auto;
}
.modal-header.bg-danger .warning-icon-wrapper { background: var(--chb-red-soft) !important; color: #b42323 !important; }
.modal-header .warning-icon-wrapper i, .modal-header .header-icon-wrapper i { font-size: 20px !important; }
.modal-header > .d-flex.flex-column { flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 12px; }
.invite-modal-hero { flex-wrap: wrap; text-align: left !important; }
.modal-body { padding: 20px 22px; color: var(--chb-ink-2); }
.modal-body p { line-height: 1.6; }
.modal-footer { padding: 14px 22px 18px; border-top: 1px solid var(--chb-line); gap: 10px; justify-content: flex-end; }
.modal-footer > * { margin: 0 !important; }
.modal .btn { min-height: 44px; border-radius: 999px !important; padding-left: 20px; padding-right: 20px; }
.modal .btn-light, .modal .btn-secondary, .modal .btn-outline-secondary {
    background: #fff !important; border: 1.5px solid var(--chb-line-2) !important; color: var(--chb-ink) !important; box-shadow: none !important;
}
.modal .btn-light:hover, .modal .btn-secondary:hover, .modal .btn-outline-secondary:hover { background: #f5f6f8 !important; }
.modal .btn-danger { background: #c62828 !important; border: 1.5px solid #c62828 !important; color: #fff !important; box-shadow: none !important; }
.modal .btn-danger:hover { background: #a91f1f !important; border-color: #a91f1f !important; }
.modal .form-control, .modal .form-select { border-radius: 12px; }
.modal .form-label, .modal label { color: var(--chb-ink-2); }
/* Phones: popups slide up as a bottom sheet */
@media (max-width: 575.98px) {
    .modal-dialog:not([class*="modal-fullscreen"]) { margin: 0; max-width: none; min-height: 100%; display: flex; align-items: flex-end; }
    /* Header + footer stay put, only the body scrolls; dvh = the screen actually visible (address bar / keyboard) */
    .modal-dialog:not([class*="modal-fullscreen"]) { min-height: 100vh; min-height: 100dvh; }
    .modal-dialog:not([class*="modal-fullscreen"]) .modal-content { border-radius: 22px 22px 0 0 !important; width: 100%;
        max-height: 92vh; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; overflow: hidden; }
    .modal-dialog:not([class*="modal-fullscreen"]) .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
    .modal-dialog:not([class*="modal-fullscreen"]) .modal-header,
    .modal-dialog:not([class*="modal-fullscreen"]) .modal-footer { flex: 0 0 auto; }
    .modal-dialog:not([class*="modal-fullscreen"]) .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
    .modal.fade .modal-dialog:not([class*="modal-fullscreen"]) { transform: translateY(40px); }
    .modal.show .modal-dialog:not([class*="modal-fullscreen"]) { transform: none; }
    .modal-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .modal-footer .btn, .modal-footer form { flex: 1 1 0; }
}
/* Selected-city chips (follow cities popup) — was a purple gradient */
.city-tag { background: var(--chb-brand-soft) !important; color: var(--chb-brand-ink) !important; border: 1px solid #ffd2c4 !important; box-shadow: none !important; font-weight: 500 !important; border-radius: 999px !important; padding: 6px 10px 6px 12px !important; }
.city-tag:hover { transform: none; box-shadow: none !important; }
/* Old ".close" buttons in popups look like the new round close button */
.modal-header .close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f3f6; display: grid; place-items: center; color: var(--chb-ink-2); font-size: 18px; }
.modal-header .close:hover { background: #e7e9ee; }
.modal-header .close[disabled] { opacity: .45; }
/* Popup fine-tuning */
.modal-header[style*="background"] { background: #fff !important; }
.modal-header.bg-primary .rounded-circle, .modal-header.bg-primary .bg-white { background: var(--chb-brand-soft) !important; color: var(--chb-brand) !important; }
.modal-header.bg-primary h5, .modal-header.bg-primary .modal-title { color: var(--chb-ink) !important; }
.invite-modal-close { order: 3; }
.modal-footer .btn { white-space: nowrap; }
@media (max-width: 575.98px) { .modal-footer .btn { font-size: 15px; padding-left: 12px; padding-right: 12px; } }
/* Skip link: only for keyboard users (programmatic focus from popups no longer reveals it) */
.skip-link:focus:not(:focus-visible) { top: -60px; }
.invite-modal-hero { padding-right: 64px !important; }
.invite-modal-close { position: absolute !important; top: 16px; right: 16px; }
/* All popups follow the Search popup look: soft gradient header, 19px title, white bordered round close, uppercase field labels */
.modal-header, .modal-header.bg-danger, .modal-header.bg-primary, .modal-header.bg-gradient-orange, .invite-modal-hero, .as-head {
    background: linear-gradient(180deg, #fff6f2 0%, #fff 100%) !important; padding: 20px 64px 16px 22px !important;
}
.modal-title, .modal-header h5, .modal-header h2, .invite-modal-hero h5 { font-size: 19px !important; font-weight: 600 !important; }
.modal-header .btn-close, .invite-modal-close, .modal-header .close {
    position: absolute !important; top: 18px; right: 18px; width: 40px !important; height: 40px !important;
    background-color: #fff !important; border: 1px solid var(--chb-line) !important; border-radius: 50% !important;
}
.modal-header .chb-icon, .modal-header .warning-icon-wrapper, .modal-header .header-icon-wrapper, .invite-modal-icon { width: 44px !important; height: 44px !important; border-radius: 14px !important; }
.modal-body .form-label, .modal-body > label:not(.form-check-label), .modal-body .mb-3 > label:not(.form-check-label) {
    font-size: 13px !important; font-weight: 500 !important; color: var(--chb-ink-2) !important; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
}
.modal-body .form-control, .modal-body .form-select { border-radius: 12px !important; border: 1.5px solid var(--chb-line-2) !important; min-height: 46px; }
.modal-footer .btn-primary, .modal-footer [type=submit].btn { min-width: 120px; }
.modal-header > div:not(.d-flex) { text-align: left; flex: 1 1 auto; min-width: 0; }

/* ---------- Light buttons match the pill buttons (legacy style.css forced square/grey .btn-light) ---------- */
body .btn.btn-light {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    border-radius: 999px !important; background-color: #fff !important; border: 1.5px solid var(--chb-line-2) !important;
    color: var(--chb-ink) !important; font-weight: 600 !important; font-size: 15px !important; padding: 0 20px !important; min-height: 44px !important;
    transition: background-color .15s, border-color .15s, color .15s !important;
}
body .btn.btn-light:hover { border-color: var(--chb-brand-2) !important; color: var(--chb-brand-ink) !important; background-color: var(--chb-brand-soft) !important; }
body .btn.btn-sm { min-height: 40px !important; font-size: 14px !important; padding: 0 16px !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
/* Button pairs on cards share the row equally */
.saved-actions, .dash-profile-links { display: flex !important; gap: 10px; }
.saved-actions > *, .dash-profile-links > * { flex: 1 1 0; min-width: 0; margin: 0 !important; }
.saved-actions form .btn { width: 100%; }

/* Comment like button: heart + Like/Liked + count (only when > 0) */
.chb-like { display: inline-flex; align-items: center; gap: 6px; color: var(--chb-ink-2) !important; text-decoration: none !important; font-weight: 500; font-size: 14px; }
.chb-like i { font-size: 14px; }
.chb-like:hover { color: var(--chb-brand-ink) !important; }
.chb-like.is-liked { color: var(--chb-brand) !important; }
.chb-like-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f1f2f5; color: var(--chb-ink-2); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.chb-like.is-liked .chb-like-n { background: var(--chb-brand-soft); color: var(--chb-brand-ink); }

/* ---------- Phone header: bigger logo, slimmer action buttons ---------- */
@media (max-width: 991.98px) {
    body .custom-navbar .d-lg-none > .d-flex.gap-2 { gap: 6px !important; }
    body .custom-navbar .d-lg-none .me-1 { margin-right: 0 !important; }
    body #mobileLanguageSelectorDropdown { width: 36px !important; height: 36px !important; min-height: 0 !important; }
    body #mobileDropdownMenu img { width: 34px !important; height: 34px !important; }
    body .header-logo img { max-height: 48px !important; height: 48px; }
}
@media (max-width: 430px) {
    body #mobileDropdownMenu .feather-chevron-down { display: none; }
    body .custom-navbar .d-lg-none .icon-set, body #mobileLanguageSelectorDropdown { width: 34px !important; height: 34px !important; }
    body .header-logo img { max-height: 42px !important; height: 42px; }
}
@media (max-width: 389.98px) { body .header-logo img { max-height: 38px !important; height: 38px; } }
@media (max-width: 359.98px) {
    body .custom-navbar .d-lg-none > .d-flex.gap-2 { gap: 4px !important; }
    body .custom-navbar .d-lg-none .icon-set, body #mobileLanguageSelectorDropdown { width: 32px !important; height: 32px !important; }
    body #mobileDropdownMenu img { width: 30px !important; height: 30px !important; }
    body .header-logo img { max-height: 32px !important; height: 32px; }
}
@media (min-width: 400px) and (max-width: 430px) { body .header-logo img { max-height: 46px !important; height: 46px; } }
@media (max-width: 991.98px) {
    body .custom-navbar .d-lg-none > .header-logo { flex: 0 0 auto; }
    body .custom-navbar .d-lg-none .header-logo img { max-width: none !important; }
    body #mobileLanguageSelectorDropdown { min-width: 0 !important; padding: 0 !important; border-radius: 10px !important; }
}

/* ---------- New round-badge logo (720x223): heights per breakpoint (last word on logo size) ---------- */
body .header-logo img { height: 60px !important; max-height: 60px !important; width: auto !important; }
@media (min-width: 992px) and (max-width: 1199.98px) { body .header-logo img { height: 52px !important; max-height: 52px !important; } }
@media (max-width: 991.98px) { body .header-logo img { height: 54px !important; max-height: 54px !important; } }
@media (max-width: 430px) { body .header-logo img { height: 52px !important; max-height: 52px !important; } }
@media (min-width: 400px) and (max-width: 430px) { body .header-logo img { height: 54px !important; max-height: 54px !important; } }
@media (max-width: 389.98px) { body .header-logo img { height: 48px !important; max-height: 48px !important; } }
@media (max-width: 359.98px) { body .header-logo img { height: 40px !important; max-height: 40px !important; } }
@media (max-width: 991.98px) { body .custom-navbar .d-lg-none.py-2 { padding-top: 3px !important; padding-bottom: 3px !important; } }
