/* ============================================================
   AGGRESSIVE LEGACY OVERRIDES (2026-06-20)
   Force the cinematic theme + Bootstrap input/button/card
   styles to bow to the E-Mock design. Loaded AFTER e-styles.css.
   ============================================================ */

/* === Body — transparent so the cinematic aurora (body::before in e-styles.css)
   shows through on every page. === */
body { background: transparent !important; color: var(--text) !important; }

/* Hide every legacy cinematic decoration */
.u-scene, #cin-scene, .u-orb, .u-orb-1, .u-orb-2, .u-orb-3,
.cin-orb, .cin-orb-1, .cin-orb-2, .cin-orb-3, .cin-orb-4, #cin-canvas,
.cinematic-bg { display: none !important; }

/* === Headings — force new typography === */
.intro h1 {
    color: var(--heading) !important;
    font-size: 52px !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    letter-spacing: -1.2px !important;
}
.intro h1 .accent {
    background: var(--accent-grad) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}
.intro p.lead { color: var(--muted) !important; font-size: 18px !important; line-height: 1.6 !important; max-width: 760px; margin-left: auto; margin-right: auto; }
.intro p.lead em { color: var(--site-primary, var(--primary)); font-style: normal; font-weight: 700; }

/* Brand line above the H1 — keeps the "Tools Hub" name visible without
   stealing the catchy headline's spotlight. */
.intro .brand-line {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 18px;
    font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
    text-transform: uppercase;
}
.intro .brand-line .brand-mark {
    color: var(--site-primary, var(--primary)) !important;
    font-weight: 800;
}
.intro .brand-line .brand-sep { color: var(--muted); opacity: 0.5; }
.intro .brand-line .brand-tag { color: var(--muted); }
.intro .brand-line .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--site-success, #10b981); margin-right: 4px; box-shadow: 0 0 8px var(--site-success, #10b981); animation: pulse-dot 1.6s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Brand accent within the headline — same orange as the underline span. */
.intro h1 .brand-accent {
    color: var(--site-primary, var(--primary)) !important;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.intro p.lead-sub {
    color: var(--muted) !important;
    font-size: 15.5px !important;
    line-height: 1.6 !important;
    max-width: 720px;
    margin: 14px auto 0;
    opacity: 0.88;
}
[theme-mode="light"] .intro p.lead-sub { color: #475569 !important; }
[theme-mode="dark"]  .intro p.lead-sub { color: #cbd5e1 !important; }
.tool-header h1 { color: var(--heading) !important; font-size: 38px !important; font-weight: 800 !important; }
.tool-header p.lead { color: var(--muted) !important; font-size: 16px !important; }
.cat-hero h1 { color: var(--heading) !important; }
.row-head h2 { color: var(--heading) !important; }
.row-sub { color: var(--muted) !important; }

/* === Tool cards — kill cinematic gradient bleed on .grid-view too === */
ul.items.grid-view > li > a,
ul.items.list-view > li > a,
ul.items.list-view.transparent > li > a,
[theme-mode="light"] ul.items.grid-view > li > a,
[theme-mode="dark"] ul.items.grid-view > li > a {
    background: var(--surface-card) !important;
    background-image: none !important;
    border-radius: var(--radius) !important;
}

/* === Bootstrap form-control — match E-Mock .form-control === */
.form-control:not(textarea):not([type=file]),
input.form-control, select.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    box-shadow: none !important;
}
.form-control:focus, input.form-control:focus,
select.form-control:focus, textarea.form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: var(--input-focus-shadow) !important;
    background: var(--input-bg) !important;
    outline: none !important;
}
textarea.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text) !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    min-height: 100px !important;
}
.form-label { color: var(--heading) !important; font-weight: 600 !important; font-size: 13.5px !important; margin-bottom: 7px !important; }
.form-control::placeholder { color: var(--muted) !important; opacity: 0.7 !important; }

/* === Bootstrap buttons — coerce to E-Mock === */
.btn.btn-primary, .btn-primary {
    background: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    box-shadow: 0 4px 14px rgba(250, 134, 23, 0.35) !important;
}
.btn.btn-primary:hover, .btn-primary:hover {
    background: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(250, 134, 23, 0.45) !important;
}
.btn.btn-outline-primary, .btn-outline-primary {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
}
.btn.btn-outline-primary:hover, .btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}
.btn.btn-success, .btn-success {
    background: var(--success) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
}

/* === Generic cards / panels === */
.card, .panel, .box {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
}

/* === Result panels inside tool pages === */
.result-panel, .tool-results-wrapper {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 20px !important;
    color: var(--text) !important;
}

/* === Drop zone — override file-uploader styling === */
.dropzone, .dropzone-wrapper, .upload-zone, .file-uploader, .x-file-uploader {
    background: rgba(250, 134, 23, .06) !important;
    border: 2px dashed rgba(250, 134, 23, .35) !important;
    border-radius: 16px !important;
    padding: 40px 24px !important;
    text-align: center !important;
    color: var(--text) !important;
}
.dropzone:hover, .dropzone-wrapper:hover {
    background: rgba(250, 134, 23, .12) !important;
    border-color: var(--primary) !important;
}

/* === Hero-title (legacy class on tool-wrapper) === */
.hero-title { text-align: center !important; padding: 12px 0 28px !important; background: transparent !important; }
.hero-title h1 { color: var(--heading) !important; font-size: 38px !important; font-weight: 800 !important; letter-spacing: -0.8px !important; margin-bottom: 10px !important; }
.hero-title p { color: var(--muted) !important; font-size: 16px !important; line-height: 1.6 !important; max-width: 640px !important; margin: 0 auto !important; }

/* === Wrap-content padding cleanup === */
.wrap-content { background: transparent !important; border: none !important; }
.contant-wrap { background: transparent !important; }

/* === Legacy blog .post elements === */
.blog-img { border-radius: var(--radius) !important; overflow: hidden; }
.post .content { padding: 0 !important; }
.post .title { color: var(--heading) !important; font-size: 18px !important; font-weight: 700 !important; }
.post .post-meta { color: var(--muted) !important; font-size: 13px !important; }

/* === Pagination — coerce Bootstrap pagination links === */
.page-link, .page-item .page-link {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
}
.page-item.active .page-link {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* === Legacy breadcrumb styling === */
.breadcrumb-bg, .application-breadcrumbs, nav[aria-label="breadcrumb"] {
    background: transparent !important;
    border: none !important;
    padding: 16px 0 !important;
}

/* === Switch/toggle controls === */
.form-check-input:checked { background-color: var(--primary) !important; border-color: var(--primary) !important; }

/* === Comments box === */
.tool-comments, .comment-form {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 20px !important;
}

/* === Footer === */
.footer-section, footer.application-footer {
    background: var(--header-bg) !important;
    border-top: 1px solid var(--border) !important;
    color: var(--muted) !important;
}
.footer-section a, footer.application-footer a { color: var(--muted) !important; }
.footer-section a:hover, footer.application-footer a:hover { color: var(--primary) !important; }

/* === Search dropdown / autocomplete === */
.autoComplete_wrapper > input, .dropdown-menu.search-wrap input {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text) !important;
    border-radius: 8px !important;
}

/* === PDF uploader / multi-file widget (used by merge-pdf, etc.) === */
.pdf-upload-wrapper, .pdf-upload-area, .file-list-wrapper {
    background: transparent !important;
    border: none !important;
}
.pdf-upload-area, .upload-area {
    background: rgba(250, 134, 23, .06) !important;
    border: 2px dashed rgba(250, 134, 23, .35) !important;
    border-radius: 16px !important;
    padding: 40px 24px !important;
}
.file-item, .pdf-file-item {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 10px !important;
}

/* === Coerce all .hero-title nested elements === */
.hero-title .tool-favorite-btn { display: none !important; }

/* === Old gradient body wraps === */
.main-wrapper { background: transparent !important; }

/* === E-Mock theme toggle button (replaces legacy sun/moon icon) === */
.e-theme-toggle {
    background: rgba(0, 0, 0, .04) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    transition: border-color .15s, background .15s !important;
}
[theme-mode="dark"] .e-theme-toggle { background: rgba(255, 255, 255, .08) !important; }
.e-theme-toggle:hover { border-color: var(--primary) !important; }
.e-theme-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif !important;
    background: transparent !important;
    width: auto !important; height: auto !important;
    line-height: 1 !important;
}
.night-mode, .switch, .user-toggle { display: inline-flex !important; align-items: center !important; }
.navbar-utility { gap: 8px; }

/* === E-Mock Footer === */
.application-footer.e-footer {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px !important;
    margin-top: 60px !important;
    color: var(--muted) !important;
}
.e-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
    .e-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
    .e-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
.e-footer-brand p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.e-footer-col h4 {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--heading) !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
}
.e-footer-col a {
    display: block;
    color: var(--muted) !important;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color .15s;
}
.e-footer-col a:hover {
    color: var(--primary) !important;
}
.e-social-btn {
    width: 36px; height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--site-surface, var(--surface-flat)) !important;
    border: 1px solid var(--site-border, var(--border)) !important;
    color: var(--site-body-text, var(--text)) !important;
    text-decoration: none;
    transition: all .15s;
}
.e-social-btn svg { display: block; width: 16px; height: 16px; }
.e-social-btn:hover {
    border-color: var(--site-primary, var(--primary)) !important;
    color: var(--site-primary, var(--primary)) !important;
    background: rgba(250, 134, 23, 0.08) !important;
    transform: translateY(-1px);
}
[theme-mode="dark"] .e-social-btn { background: rgba(255, 255, 255, 0.04) !important; }

/* ============================================================
   BRAND LOGO RETINT — header (navbar) + footer
   The application-logo SVG hardcodes:
     - "tools" text to #F1F5F9 (near-white, invisible on light bgs)
     - "Hub" text to an indigo gradient (#4F46E5 → #7C3AED, dies on dark bgs)
     - cube right-face to #1E1B4B → #312E81 (very dark, vanishes on dark bg)
   Repaint per-theme so the brand stays legible everywhere.
   ============================================================ */

/* === Footer logo === */
.e-footer-logo { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.e-footer-logo svg { display: block; height: 40px; width: auto; }
[theme-mode="light"] .e-footer-logo svg text:first-of-type { fill: #0a0a0a !important; }
[theme-mode="light"] .e-footer-logo svg text:last-of-type  { fill: var(--site-primary, #FA8617) !important; }
[theme-mode="dark"]  .e-footer-logo svg text:first-of-type { fill: #fafafa !important; }
[theme-mode="dark"]  .e-footer-logo svg text:last-of-type  { fill: var(--site-primary, #FA8617) !important; }
/* Dark theme: brighten + repaint the cube so its faces don't blend into the
   purple aurora background. brightness/saturation lifts the gradients,
   the orange glow drop-shadow gives the cube definition on dark surfaces. */
[theme-mode="dark"] .e-footer-logo svg g { filter: brightness(1.45) saturate(1.35) drop-shadow(0 0 6px rgba(250,134,23,0.35)); }

/* === Navbar (header) logo === */
.navbar-brand x-application-logo, .navbar-brand svg { display: inline-block; vertical-align: middle; }
.navbar-brand svg { height: 36px; width: auto; max-width: 200px; }
/* Logo text colors are now baked into the SVG (application-logo.blade.php):
   "tools" = brand orange #FA8617, "Hub" = indigo→violet gradient.
   Renders identically across navbar/auth/footer/admin shell — no overrides needed. */
[theme-mode="dark"] .navbar-brand svg g { filter: brightness(1.45) saturate(1.35) drop-shadow(0 0 6px rgba(250,134,23,0.35)); }

/* === Get App button in navbar (next to theme toggle) === */
/* ============================================================
   FAVORITE TOOL BUTTON (heart on tool detail pages)
   Outline by default, fills + glows when active.
   ============================================================ */
.e-fav-btn {
    position: absolute; top: 0; right: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    padding: 0; margin: 0;
    border-radius: 50%;
    background: var(--site-surface, var(--surface-flat)) !important;
    border: 1.5px solid var(--site-border, var(--border)) !important;
    color: var(--site-muted-text, var(--muted)) !important;
    cursor: pointer;
    transition: all .18s;
    z-index: 2;
}
.e-fav-btn:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.20);
}
.e-fav-btn .e-fav-icon { display: block; transition: transform .18s; }
.e-fav-btn .e-fav-filled { display: none; }
.e-fav-btn .e-fav-outline { display: block; }
.e-fav-btn.active {
    background: rgba(239, 68, 68, 0.10) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.30);
}
.e-fav-btn.active .e-fav-outline { display: none; }
.e-fav-btn.active .e-fav-filled { display: block; }
.e-fav-btn.active:hover { transform: translateY(-1px) scale(1.06); }
.e-fav-btn:active .e-fav-icon { transform: scale(0.88); }
[theme-mode="dark"] .e-fav-btn { background: rgba(255,255,255,0.04) !important; }
[theme-mode="dark"] .e-fav-btn:hover { background: rgba(239, 68, 68, 0.10) !important; }

.navbar-get-app-btn, .navbar-get-app-btn.btn-primary {
    display: inline-flex !important;
    align-items: center; justify-content: center;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    background: var(--site-primary, #FA8617) !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    text-decoration: none !important;
    margin-left: 8px !important;
    box-shadow: 0 4px 14px rgba(250, 134, 23, 0.30) !important;
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.navbar-get-app-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(250, 134, 23, 0.40) !important;
    color: #fff !important;
}
@media (max-width: 540px) {
    .navbar-get-app-btn { padding: 6px 12px !important; font-size: 12px !important; margin-left: 4px !important; }
}
/* Single-line copyright row at the bottom of the footer. white-space:nowrap
   forces it onto one line; overflow handling protects narrow viewports. */
.e-footer-copy-row {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;     /* IE/Edge: hide scrollbar */
    scrollbar-width: none;         /* Firefox: hide scrollbar */
}
.e-footer-copy-row::-webkit-scrollbar { display: none; } /* Chromium/Safari */

/* === text-block dark-mode contrast for legacy Bootstrap utility classes ===
   The admin-stored Contact / About / Privacy pages use Bootstrap
   classes like .text-muted and .small inside the .text-block card.
   Default --bs-text-muted resolves to a mid-gray that disappears
   against the dark text-block background. Force a brighter muted
   tone so the helper sentences (subject lines, "include a screenshot",
   etc.) stay clearly readable. */
[theme-mode="dark"] .text-block .text-muted,
[theme-mode="dark"] .text-block .small,
[theme-mode="dark"] .text-block small,
[theme-mode="dark"] .text-block p.text-muted,
[theme-mode="dark"] .text-block .text-medium-emphasis {
    color: #cbd5e1 !important;
    opacity: 1 !important;
}
[theme-mode="light"] .text-block .text-muted,
[theme-mode="light"] .text-block .small,
[theme-mode="light"] .text-block small,
[theme-mode="light"] .text-block p.text-muted,
[theme-mode="light"] .text-block .text-medium-emphasis {
    color: #475569 !important;
    opacity: 1 !important;
}
/* "Card" boxes the admin page uses for the 4 contact tiles — make their
   background + border match the E-mock surface so they don't look like
   the legacy Bootstrap white-card-on-dark contrast issue. */
[theme-mode="dark"] .text-block .card {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: #e5e5e5 !important;
}
[theme-mode="dark"] .text-block .card h3,
[theme-mode="dark"] .text-block .card .h5,
[theme-mode="dark"] .text-block .card strong { color: #fafafa !important; }
[theme-mode="dark"] .text-block .card a { color: var(--site-primary, #FA8617) !important; }
[theme-mode="light"] .text-block .card {
    background: #ffffff !important;
    border: 1px solid #e7e7e7 !important;
}
.e-footer-copy-row a { color: var(--muted) !important; }
.e-footer-copy-row a:hover { color: var(--primary) !important; }
/* Below 540px, allow it to scale font down rather than overflow. */
@media (max-width: 540px) {
    .e-footer-copy-row { font-size: 11.5px; padding-top: 14px; }
}
.e-footer-widgets { padding: 24px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

/* === Search icon in nav — hide if it looks broken === */
.navbar-utility .navbar-nav.navbar-search .nav-link.nine-dots i.an-search { color: var(--text) !important; font-size: 18px; }
.navbar-utility { display: inline-flex; align-items: center; gap: 6px; padding: 4px; }

/* === Artisan file uploader (PDF tools / image converters) === */
.artisan-uploader, .uploader-file-uploader {
    background: rgba(250, 134, 23, .06) !important;
    border: 2px dashed rgba(250, 134, 23, .35) !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
    color: var(--text) !important;
    box-shadow: none !important;
}
.artisan-uploader.bg-light, .uploader-file-uploader.bg-light {
    background: rgba(250, 134, 23, .06) !important;
}
.artisan-uploader:hover, .uploader-file-uploader:hover {
    background: rgba(250, 134, 23, .12) !important;
    border-color: var(--primary) !important;
}
.file-upload-btn, .btn-dark.file-upload-btn {
    background: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(250, 134, 23, .35) !important;
}
.file-upload-btn:hover, .btn-dark.file-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(250, 134, 23, .45) !important;
}
.file-loader { color: var(--text) !important; }
.files-grid { background: transparent !important; padding: 12px 0 !important; }
.files-grid .file-item, .file-item, .pdf-file-item {
    background: var(--surface-flat) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 6px !important;
}
.add-more { background: transparent !important; }

/* === Result panels for converter tools — clean styling === */
.tool-results-wrapper, .result-area, .conversion-result {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    padding: 24px !important;
    margin-top: 20px !important;
}
.download-file-btn {
    background: var(--accent-grad) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 980px !important;
    padding: 10px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(250, 134, 23, .35) !important;
}

/* === Bootstrap .bg-light cleanup (used everywhere in tool pages) === */
.bg-light {
    background: var(--surface-flat) !important;
    color: var(--text) !important;
}
[theme-mode="dark"] .bg-light, [data-theme="dark"] .bg-light {
    background: rgba(255, 255, 255, .04) !important;
}

/* ============================================================
   NAVBAR — active state + responsive collapse polish (T2.6)
   ============================================================ */

/* Active page link gets brand orange. Specificity 0,2,2 to beat existing
   `body nav.navbar.top-navbar .nav-link` rules. */
body nav.navbar.top-navbar .nav-link.active,
body nav.navbar.top-navbar .nav-link.active:hover {
    color: var(--site-primary, #FA8617) !important;
    font-weight: 600 !important;
}
body nav.navbar.top-navbar .nav-link.active::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--site-primary, #FA8617);
    border-radius: 2px;
    margin-top: 4px;
}

/* Inside-the-collapse utility cluster: align right on desktop, stack neatly
   on mobile when menu opens via hamburger. */
nav.navbar.top-navbar .nav-collapse-inner {
    gap: 8px;
}
nav.navbar.top-navbar .navbar-menu-items {
    display: flex;
    align-items: center;
}
@media (max-width: 991.98px) {
    nav.navbar.top-navbar .navbar-utility {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--site-border, rgba(0,0,0,0.06));
        flex-wrap: wrap;
        gap: 8px;
    }
    nav.navbar.top-navbar .navbar-get-app-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
