/* quick, clean styles */
:root {
    --bg: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand: #7c3aed;
    --accent: #22d3ee;
}

* {
    box-sizing: border-box
}

.footer a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer a:hover {
  text-decoration: underline;
  opacity: 1;
}


body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
    background: #0b1020;
    color: var(--text)
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(90deg, #0b1020, #151a2c);
    border-bottom: 1px solid #1f2937;
    position: sticky;
    top: 0;
    z-index: 10
}

/* make sure the button is always on top and clickable */
.menu-toggle {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

/* nav gets a lower z-index than the button */
header.topbar>.nav {
    position: relative;
    z-index: 2;
}

/* Mobile: hide by default, and when open, render BELOW the bar */
@media (max-width: 768px) {
    header.topbar {
        position: relative;
    }

    header.topbar>.nav {
        display: none;
        width: 100%;
    }

    header.topbar>.nav.nav--open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;

        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        /* drop below the topbar */
        z-index: 2;
        background: linear-gradient(90deg, #0b1020, #151a2c);
        border-bottom: 1px solid #1f2937;
        padding: .5rem 1rem;
    }

    header.topbar>.nav a,
    header.topbar>.nav .btn {
        width: 100%;
        text-align: left;
    }
}

.brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px
}

.nav a {
    color: var(--text);
    margin-right: 12px;
    text-decoration: none
}

.nav .btn {
    padding: 6px 10px;
    border: 1px solid #273043;
    border-radius: 8px
}

.nav .btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: transparent
}

.container {
    max-width: 900px;
    margin: 24px auto;
    padding: 0 16px
}

.card {
    background: var(--card);
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .3)
}

.form label {
    display: block;
    margin-bottom: 10px
}

.form input[type=text],
.form input[type=email],
.form input[type=password],
.form textarea,
.form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #253045;
    background: #0e1426;
    color: #e5e7eb
}

.form .row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px
}

.btn {
    cursor: pointer;
    border-radius: 8px;
    background: #182033;
    color: #e5e7eb;
    border: 1px solid #273043;
    padding: 8px 12px
}

.btn-primary {
    background: var(--brand);
    color: white;
    border: 0
}

.list .card h2 {
    margin: 0 0 6px
}

.meta {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 8px
}

.content {
    white-space: pre-wrap;
    line-height: 1.55
}

.alert {
    background: #3b1f2b;
    border: 1px solid #8b1d3b;
    color: #ffd5e1;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0
}

.footer {
    max-width: 900px;
    margin: 16px auto;
    padding: 12px;
    color: #94a3b8;
    border-top: 1px solid #1f2937
}

.chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #223;
    color: #a5b4fc;
    border: 1px solid #334
}

.editor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px
}

.issues {
    list-style: none;
    padding-left: 0
}

.issues li {
    padding: 6px 8px;
    border-bottom: 1px dashed #2a3348
}

.mini {
    font-size: .8rem;
    padding: 2px 6px;
    margin-left: 8px
}

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px
}

.prompt {
    margin-bottom: 12px
}

.comments {
    list-style: none;
    padding-left: 0
}

.comments li {
    padding: 8px 0;
    border-bottom: 1px solid #222a
}

/* Flash messages */
.flash {
    padding: 10px 12px;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px solid #2a3348
}

.flash-success {
    background: #0c2a1a;
    color: #c7ffdf;
    border-color: #115a39
}

.flash-warn {
    background: #2a230c;
    color: #ffe9b0;
    border-color: #5a4a11
}

.flash-error {
    background: #2a0c0c;
    color: #ffd0d0;
    border-color: #5a1111
}

/* Thumbnails */
.thumb {
    max-width: 180px;
    max-height: 180px;
    border-radius: 8px;
    border: 1px solid #222;
    margin-right: 8px
}

/* Make the greeting look like the other nav links */
.welcome-link {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.welcome-link:hover {
    background: #202733;
    text-decoration: none;
}

/* Hover highlight for nav links (Quick Write, New Post, Story Editor, Admin) */
.nav>a:not(.btn),
.welcome-link {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.nav>a:not(.btn):hover,
.welcome-link:hover {
    background: #202733;
    /* same hover as the account pill */
    text-decoration: none;
}

/* --- Nav hover pill (all links) --- */
.nav>a:not(.btn),
.welcome-link {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.nav>a:not(.btn):hover,
.welcome-link:hover {
    background: #202733;
    text-decoration: none;
}

/* ============ LIGHT THEME OVERRIDES ============ */
html[data-theme="light"] body {
    background: #f7f8fb;
    color: #0b1220;
}

html[data-theme="light"] a {
    color: #0b57d0;
}

html[data-theme="light"] .topbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

html[data-theme="light"] .container {
    color: #0b1220;
}

html[data-theme="light"] .card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

html[data-theme="light"] .chip {
    background: #eef2ff;
    color: #1e3a8a;
    border: 1px solid #c7d2fe;
}

html[data-theme="light"] .btn {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

html[data-theme="light"] .btn:hover {
    filter: brightness(1.1);
}

html[data-theme="light"] .btn.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

html[data-theme="light"] input[type="text"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="password"],
html[data-theme="light"] textarea,
html[data-theme="light"] select {
    background: #ffffff;
    color: #0b1220;
    border: 1px solid #c7ccd6;
}

html[data-theme="light"] .welcome-link:hover,
html[data-theme="light"] .nav>a:not(.btn):hover {
    background: #eef2f7;
}

/* Flash messages in light mode */
html[data-theme="light"] .flash {
    border-color: #d1d5db;
}

html[data-theme="light"] .flash-success {
    background: #e7f7ef;
    color: #065f46;
    border-color: #a7f3d0;
}

html[data-theme="light"] .flash-warn {
    background: #fff7e6;
    color: #92400e;
    border-color: #fde68a;
}

html[data-theme="light"] .flash-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Nav hover pill (already added earlier) */
.nav>a:not(.btn),
.welcome-link {
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.nav>a:not(.btn):hover,
.welcome-link:hover {
    background: #202733;
}

/* Theme toggle button */
.theme-toggle-form {
    display: inline;
    margin: 0 6px 0 0;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #2a3348;
    color: inherit;
}

.btn-ghost:hover {
    background: #202733;
}

/* Light theme tweaks for ghost/button hover */
html[data-theme="light"] .btn-ghost {
    border-color: #c7ccd6;
}

html[data-theme="light"] .btn-ghost:hover {
    background: #eef2f7;
}

.prompt-box {
    margin: 10px 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a3348;
    background: #0f1625;
    font-style: italic;
}

html[data-theme="light"] .prompt-box {
    border-color: #c7ccd6;
    background: #f3f5f9;
}

/* === Community Board === */

.board-header {
    margin: 1.25rem 0 1rem;
}

.board-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 .75rem 0;
}

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: .6rem .75rem;
    border-radius: 14px;
    max-width: 820px;
}

.sort-label {
    font-weight: 700;
    opacity: .95;
}

.sort-pills {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.sort-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.sort-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.sort-pill.active {
    background: #6d28d9;
    /* your purple accent */
    border-color: #6d28d9;
    color: #fff;
}

/* List container */
.post-list {
    margin-top: 1rem;
}

/* Card */
.post-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
    cursor: pointer;
    outline: none;
}

.post-card+.post-card {
    margin-top: 1rem;
}

.post-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.post-card:focus-visible {
    box-shadow: 0 0 0 2px rgba(128, 90, 213, .8);
}

.post-card__main {
    min-width: 0;
}

.post-card__title {
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.post-card__title:visited {
    color: inherit;
}

.post-card__title:hover {
    text-decoration: none;
}

.post-card__meta {
    margin-top: .3rem;
    font-size: .95rem;
    opacity: .85;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.post-card__excerpt {
    margin-top: .5rem;
    opacity: .85;
    line-height: 1.5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* ensures 1-line preview on small cards */
}

.post-card__stats {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-card__chev {
    font-size: 1.6rem;
    line-height: 1;
    opacity: .65;
    padding-left: .25rem;
    transition: transform 120ms ease, opacity 120ms ease;
}

.post-card:hover .post-card__chev {
    transform: translateX(2px);
    opacity: .9;
}

/* Keep visited links from turning purple globally without changing palette */
a:visited {
    color: inherit;
}

/* Empty state */
.empty-state {
    margin: 2.5rem 0;
    opacity: .85;
}

/* Pager */
.pager {
    display: flex;
    gap: .75rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.pager .btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-weight: 700;
}

.pager .btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* === Compact mobile spacing === */
@media (max-width: 720px) {
    .sort-bar {
        padding: .5rem .6rem;
        border-radius: 12px;
    }

    .sort-pill {
        font-size: .9rem;
        padding: .3rem .6rem;
    }

    .post-card {
        padding: .9rem 1rem;
        border-radius: 12px;
    }

    .post-card__title {
        font-size: 1.05rem;
    }

    .post-card__excerpt {
        font-size: .95rem;
    }
}

/* Date group header */
.date-group {
    margin: 1.25rem 0 .5rem;
    font-size: 1.05rem;
    font-weight: 800;
    opacity: .9;
    letter-spacing: .02em;
}

/* Make group spacing feel tidy on mobile */
@media (max-width: 720px) {
    .date-group {
        margin: 1rem 0 .4rem;
    }
}

/* Hidden group and toggle */
.group-hidden[hidden] {
    display: none;
}

.group-toggle {
    margin: .5rem 0 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease;
}

.group-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* --- Consolidated admin search bar (remove other duplicates of this block) --- */
.admin-users-search {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.admin-users-search input[type="search"] {
    flex: 1;
    min-width: 260px;
    padding: .55rem .7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    outline: none;
}

.admin-users-search input[type="search"]:focus {
    box-shadow: 0 0 0 2px rgba(128, 90, 213, 0.6);
    border-color: rgba(128, 90, 213, 0.6);
}

/* --- Table (single source of truth; remove duplicate table th/td blocks) --- */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    text-align: left;
    font-weight: 800;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: .95;
}

.table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table-tight tbody td {
    padding: 8px 12px;
}

.table .text-right {
    text-align: right;
}

/* --- Clickable pill + inline select --- */
.pill {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: .9rem;
}

.pill-click {
    cursor: pointer;
}

.inline-select:focus {
    box-shadow: 0 0 0 2px rgba(128, 90, 213, 0.6);
    border-color: rgba(128, 90, 213, 0.6);
}

/* --- Post card title (single definition; keep it not underlined) --- */
.post-card__title {
    font-weight: 800;
    text-decoration: none;
}

.post-card__title:hover {
    text-decoration: none;
}

/* Role change menu (dark, high contrast) */
.role-menu {
    position: absolute;
    z-index: 9999;
    background: #0e1426;
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    padding: 6px;
    max-height: 260px;
    overflow: auto;
    outline: none;
}

.role-option {
    padding: .45rem .6rem;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
}

.role-option.is-current {
    border: 1px solid rgba(124, 58, 237, 0.35);
    /* purple ring */
}

.role-option:hover,
.role-option.is-active {
    background: rgba(124, 58, 237, 0.20);
}

/* =====================================================
   📱 Responsive Enhancements (mobile-first additions)
   ===================================================== */

/* 1) Fluid type scale */
html {
    font-size: 16px;
}

:root {
    --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.3vw, 1.125rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.6vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.38rem + 0.9vw, 1.875rem);
    --step-3: clamp(1.875rem, 1.7rem + 1.4vw, 2.25rem);
}

/* 2) Make media fluid */
img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}

/* 3) Tap target sizing */
button,
.btn,
input[type="submit"],
input[type="button"] {
    min-height: 44px;
}

/* 4) Layout containers */
.container {
    width: 100%;
    max-width: 960px;
    /* a tad wider but still comfy */
    margin: 1rem auto;
    padding: 0 1rem;
}

/* 5) Topbar: wrap + hamburger support */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, .15);
    background: transparent;
    padding: .5rem .7rem;
    border-radius: 8px;
}

.menu-toggle[aria-expanded="true"] {
    outline: 2px solid rgba(255, 255, 255, .2);
}

.nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* 6) Editor grid collapses on narrow */
@media (max-width: 900px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
}

/* 7) Mobile nav: collapsed by default, toggle with .nav--open */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    /* higher specificity to beat `header.topbar > .nav` */
    header.topbar>.nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding-top: .5rem;
    }

    header.topbar>.nav.nav--open {
        display: flex;
    }

    header.topbar>.nav a,
    header.topbar>.nav .btn {
        width: 100%;
        text-align: left;
    }
}

/* In header.php inline <style> */
header.topbar>.nav {
    order: 2;
    flex: 1 1 auto;
    /* REMOVE this: display: flex; */
    justify-content: flex-end;
    align-items: center;
    gap: .75rem;
}

/* 8) Responsive tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid #222;
}

.table-responsive table {
    min-width: 640px;
}

/* Optional: "stacked" table on very small screens */
@media (max-width: 520px) {

    .table-stack table,
    .table-stack thead,
    .table-stack tbody,
    .table-stack th,
    .table-stack td,
    .table-stack tr {
        display: block;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tr {
        margin-bottom: .75rem;
        padding: .5rem .75rem;
        background: var(--card);
        border-radius: 10px;
    }

    .table-stack td {
        border: none !important;
        padding: .35rem 0;
    }

    .table-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: .8rem;
        color: var(--muted);
        margin-bottom: .15rem;
    }
}

/* 9) Forms: inputs stretch full width on mobile */
@media (max-width: 768px) {

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        width: 100%;
    }
}

/* 10) Respect reduced motion users */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Banner */
:root {
    --banner-height: 0px;
}

/* Simple form grid used in maintenance.php */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Unified user identifier tag */
.chip-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .35rem;
    border-radius: .4rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .04);
    font-size: .75em;
    font-weight: 600;
    color: var(--muted);
    opacity: 0.85;
    vertical-align: baseline;
    transition: opacity 0.15s ease;
}

.chip-id:hover {
    opacity: 1;
}

/* Context-specific subtlety tweaks */
header .chip-id,
h1 .chip-id,
.welcome-link .chip-id {
    font-size: .7em;
    font-weight: 500;
    opacity: 0.65;
    background: transparent;
    border-color: rgba(255, 255, 255, .05);
}

button.like-post,
button.like-comment {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

button.like-post .icon,
button.like-comment .icon {
    opacity: .7;
    transition: transform .15s ease, opacity .15s ease;
}

button.like-post.is-liked .icon,
button.like-comment.is-liked .icon {
    opacity: 1;
    transform: scale(1.05);
}

.like-count {
    font-variant-numeric: tabular-nums;
    opacity: .85;
}

button.like-post,
button.like-comment {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    padding: .1rem .25rem;
    border-radius: .35rem;
}

button.like-post .icon,
button.like-comment .icon {
    opacity: .75;
    transition: transform .15s ease, opacity .15s ease;
}

button.like-post.is-liked .icon,
button.like-comment.is-liked .icon {
    opacity: 1;
    transform: scale(1.1);
}

.like-count {
    font-variant-numeric: tabular-nums;
    opacity: .9;
}

/* keep header above everything and let dropdown render outside it */
header.topbar {
    position: sticky;
    top: 0;
    z-index: 10000;
    overflow: visible;
}

/* the button must always win click hit-testing */
.menu-toggle {
    position: relative;
    z-index: 10002;
    pointer-events: auto;
}

/* nav sits below the button */
header.topbar>.nav {
    position: relative;
    z-index: 10001;
}

/* when nav is closed, don't let it eat clicks */
@media (max-width: 768px) {
    header.topbar>.nav {
        display: none;
        pointer-events: none;
    }

    header.topbar>.nav.nav--open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;

        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 10001;
        background: linear-gradient(90deg, #0b1020, #151a2c);
        border-bottom: 1px solid #1f2937;
        padding: .5rem 1rem;
        pointer-events: auto;
    }
}

/* banners/overlays should never cover the button */
.site-banner {
    position: relative;
    z-index: 5;
}

#authModalOverlay {
    z-index: 9999;
}

/* still above everything *when shown* */