/*
 * Midnight Cinema experiment
 * Intentionally isolated to experiment/bold-design.
 */

@font-face
{
    font-family: "Bree Serif";
    src: url("/fonts/bree-serif-v18-latin-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root,
[data-bs-theme="dark"],
[data-bs-theme="light"]
{
    --rf-brand-orange: #ff633f;
    --rf-accent: #ff633f;
    --rf-accent-rgb: 255, 99, 63;
    --rf-accent-hover: #ff7a59;
    --rf-accent-active: #db4527;
    --rf-accent-subtle: rgba(255, 99, 63, 0.15);
    --rf-accent-contrast: #161a21;
    --rf-complementary: #b8f062;
    --rf-complementary-rgb: 184, 240, 98;
    --rf-complementary-hover: #ccf58a;
    --rf-complementary-active: #91c63c;
    --rf-action: rgba(246, 242, 235, 0.08);
    --rf-action-border: rgba(246, 242, 235, 0.16);
    --rf-action-text: #edf0ea;
    --rf-action-hover: rgba(246, 242, 235, 0.14);
    --rf-action-border-hover: rgba(246, 242, 235, 0.26);
    --rf-action-text-hover: #ffffff;
    --rf-action-active: rgba(246, 242, 235, 0.2);
    --rf-action-border-active: rgba(246, 242, 235, 0.32);
    --rf-action-text-active: #ffffff;
    --rf-action-focus-rgb: 184, 240, 98;
    --rf-app-outer-bg: #05070b;
    --rf-surface-1-bg: #141d29;
    --rf-navbar-text: #f6f2eb;
    --rf-nav-hover-bg: rgba(255, 255, 255, 0.09);
    --rf-page-shell-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
    --rf-list-border: rgba(255, 255, 255, 0.15);
    --rf-list-interaction-bg: #171f2b;
    --rf-list-interaction-shadow: 0 20px 34px rgba(0, 0, 0, 0.32);
    --rf-poster-stack-border: #f6f2eb;
    --rf-poster-stack-shadow: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
    --bs-body-bg: #0b1018;
    --bs-body-bg-rgb: 11, 16, 24;
    --bs-body-color: #f6f2eb;
    --bs-body-color-rgb: 246, 242, 235;
    --bs-secondary-color: #a2aebb;
    --bs-secondary-color-rgb: 162, 174, 187;
    --bs-secondary-bg: #18212d;
    --bs-secondary-bg-rgb: 24, 33, 45;
    --bs-tertiary-bg: #121924;
    --bs-tertiary-bg-rgb: 18, 25, 36;
    --bs-border-color: rgba(255, 255, 255, 0.16);
    --bs-primary: var(--rf-accent);
    --bs-primary-rgb: var(--rf-accent-rgb);
}

html,
body,
button,
input,
textarea,
select
{
    font-family: "IBM Plex Sans", sans-serif;
}

body
{
    background:
        radial-gradient(circle at 86% 2%, rgba(255, 99, 63, 0.15), transparent 24rem),
        #05070b;
}

h1,
h2,
h3,
h4,
h5,
h6,
.rf-list-title,
.home-hero h1,
.home-section-heading h2,
.home-closing h2
{
    font-family: "Bree Serif", Georgia, serif;
    font-synthesis: none;
    font-weight: 400;
}

.page-shell
{
    background: #0b1018;
    max-width: 1240px;
}

.layout-wide .page-shell
{
    max-width: 1540px;
}

.card:not(.media-card)
{
    --bs-card-bg: var(--rf-surface-1-bg);
    --bs-card-border-color: rgba(255, 255, 255, 0.16);
}

.navbar
{
    background: rgba(8, 12, 18, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.navbar .navbar-brand
{
    color: #f6f2eb !important;
    font-family: "Bree Serif", Georgia, serif;
    font-synthesis: none;
    font-size: 1.45rem;
    letter-spacing: -0.045em;
}

.rf-primary-nav
{
    gap: 0.1rem;
}

.rf-primary-nav-link
{
    border-radius: 999px;
    color: rgba(246, 242, 235, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.42rem 0.65rem;
    text-decoration: none;
    text-transform: uppercase;
}

.rf-primary-nav-link:hover,
.rf-primary-nav-link:focus-visible,
.rf-primary-nav-link.active
{
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.rf-navbar-search
{
    align-items: stretch;
    align-self: center;
    background: rgba(255, 255, 255, 0.09);
    border-color: transparent;
    border-radius: 999px;
    display: flex;
    flex: 0 1 15.5rem;
    margin: 0 0.45rem 0 0.75rem;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.rf-navbar-search .form-control
{
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    color: #f6f2eb;
    font-size: 0.8rem;
    line-height: 1.1;
    min-width: 0;
    padding: 0.34rem 0 0.34rem 0.75rem;
}

.rf-navbar-search .form-control::placeholder
{
    color: rgba(246, 242, 235, 0.52);
}

.rf-navbar-search:focus-within
{
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 240, 98, 0.48);
}

.rf-navbar-search button
{
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #b8f062;
    font-size: 0.95rem;
    padding: 0 0.65rem 0 0.4rem;
}

.navbar .btn,
.navbar i
{
    color: #f6f2eb !important;
}

.rf-account-dropdown
{
    background: #151d29;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
    margin-top: 0.5rem;
    min-width: 12.5rem;
    padding: 0.4rem;
}

.rf-account-dropdown .dropdown-item
{
    align-items: center;
    border-radius: var(--bs-border-radius);
    color: #c6d0da;
    display: flex;
    font-size: 0.86rem;
    gap: 0.65rem;
    padding: 0.6rem 0.7rem;
}

.rf-account-dropdown .dropdown-item > i
{
    color: #b8f062 !important;
    flex: 0 0 auto;
    font-size: 1.05rem;
}

.rf-account-dropdown .dropdown-item:hover,
.rf-account-dropdown .dropdown-item:focus
{
    background: rgba(184, 240, 98, 0.16);
    color: #ffffff;
}

.rf-account-dropdown .dropdown-item.active,
.rf-account-dropdown .dropdown-item:active
{
    background: rgba(184, 240, 98, 0.24);
    box-shadow: inset 0.2rem 0 0 #b8f062;
    color: #ffffff;
}

.rf-account-dropdown .dropdown-divider
{
    border-color: rgba(255, 255, 255, 0.14);
    margin: 0.35rem 0;
}

.btn-accent
{
    border-radius: var(--bs-btn-border-radius);
    box-shadow: 0 10px 24px rgba(255, 99, 63, 0.22);
    font-weight: 700;
}

.btn-complementary
{
    --bs-btn-color: #161a21;
    --bs-btn-hover-color: #161a21;
    --bs-btn-active-color: #161a21;
    --bs-btn-disabled-color: #161a21;
}

.btn-outline-complementary
{
    --bs-btn-hover-color: #161a21;
    --bs-btn-active-color: #161a21;
}

.btn-action,
.btn-outline-action
{
    font-weight: 600;
}

.icon-btn
{
    border: 1px solid rgba(246, 242, 235, 0.16);
    background: #18212d;
    color: #f6f2eb;
    box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.28);
}

.icon-btn-primary,
.icon-btn-primary:hover,
.icon-btn-primary:focus,
.icon-btn-primary:active
{
    background: #ff633f;
    color: #161a21;
}

.icon-btn-complementary,
.icon-btn-complementary:hover,
.icon-btn-complementary:focus,
.icon-btn-complementary:active
{
    background: #b8f062;
    color: #161a21;
}

.item-actions-trigger,
.item-actions-trigger:hover
{
    background-color: #ff633f;
    color: #161a21;
    opacity: 1;
}

.section-nav-count
{
    background: #202b39;
    color: #c9d3dc;
}

.section-nav-link.active .section-nav-count
{
    color: #161a21;
}

.text-bg-complementary
{
    color: #161a21 !important;
}

.btn-outline-light
{
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: var(--bs-btn-border-radius);
}

.home-landing
{
    padding-top: clamp(0.9rem, 2.5vw, 2rem);
}

.home-hero
{
    background:
        radial-gradient(circle at 80% 27%, rgba(255, 99, 63, 0.22), transparent 17rem),
        radial-gradient(circle at 18% 100%, rgba(184, 240, 98, 0.16), transparent 23rem),
        linear-gradient(135deg, #151c2a 0%, #0d121c 58%, #090d14 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: clamp(1.25rem, 3vw, 2.2rem);
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.36);
    margin: 0;
    padding-left: clamp(1.35rem, 5vw, 5rem);
    padding-right: clamp(1.35rem, 5vw, 5rem);
}

.home-hero::before
{
    background-image: radial-gradient(rgba(255, 255, 255, 0.23) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(120deg, black, transparent 58%);
    opacity: 0.22;
}

.home-eyebrow
{
    color: #b8f062;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.home-hero h1
{
    font-size: clamp(3.2rem, 7.8vw, 7.25rem);
    line-height: 0.88;
    max-width: 9ch;
}

.home-hero-intro
{
    color: rgba(246, 242, 235, 0.72);
    max-width: 34rem;
}

.home-start-search
{
    margin-top: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 39rem;
}

.home-start-search label
{
    display: block;
    color: #f6f2eb;
    font-family: "Bree Serif", Georgia, serif;
    font-size: clamp(1.12rem, 1.8vw, 1.35rem);
    font-synthesis: none;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.home-start-search-control
{
    align-items: center;
    background: #f6f2eb;
    border: 1px solid rgba(246, 242, 235, 0.48);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    display: flex;
    gap: 0.45rem;
    overflow: hidden;
    padding: 0.25rem 0.3rem 0.25rem 0.9rem;
}

.home-start-search-control > i
{
    color: #56606b;
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.home-start-search-control input
{
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #18212d;
}

.home-start-search-control input::placeholder
{
    color: #6c7580;
    opacity: 1;
}

.home-start-search-control .btn
{
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.35rem;
    min-height: 2.45rem;
    padding-inline: 1rem;
    white-space: nowrap;
}

.home-start-search-control:focus-within
{
    border-color: #b8f062;
    box-shadow: 0 0 0 0.2rem rgba(184, 240, 98, 0.18), 0 14px 32px rgba(0, 0, 0, 0.35);
}

.home-start-search > p,
.home-hero-note
{
    color: rgba(246, 242, 235, 0.58);
}

.home-start-search > p
{
    margin: 0.8rem 0 0;
}

.home-ranking-stage
{
    min-height: 530px;
}

.home-ranking-preview,
.home-ranking-compare
{
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 1.1rem;
}

.home-ranking-preview
{
    background: #111824;
    box-shadow: 0 28px 42px rgba(0, 0, 0, 0.5);
}

.home-ranking-compare
{
    background: #1b2432;
}

.home-ranking-position
{
    color: #b8f062;
    font-family: "Bree Serif", Georgia, serif;
    font-synthesis: none;
}

.home-ranking-graph path
{
    stroke: #b8f062;
}

.home-section
{
    padding-top: clamp(4.5rem, 9vw, 8rem);
}

.home-section-heading h2
{
    font-size: clamp(2.25rem, 4.5vw, 4.25rem);
    line-height: 0.96;
}

.home-feature-card
{
    background: #111824;
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: none;
}

.home-feature-icon
{
    background: rgba(184, 240, 98, 0.12);
    color: #b8f062;
}

.home-steps,
.home-closing
{
    background: #151c2a;
    border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.home-step-number
{
    background: #ff633f;
    color: #161a21;
}

.rf-feed-card,
.rf-feed-card:hover,
.rf-feed-card:focus,
.rf-feed-card:active
{
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    padding-block: 1.9rem;
}

.rf-feed-card:hover
{
    background: #111824;
}

.rf-feed-card-body > .rf-list-title
{
    color: #f6f2eb;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.poster-stack::after
{
    background: rgba(255, 99, 63, 0.44);
    border-color: #ff633f;
}

.profile-header
{
    padding-block: clamp(0.65rem, 1.6vw, 1.2rem);
}

.home-dashboard-header
{
    padding-block: clamp(1.25rem, 3vw, 2.5rem);
}

.section-navigation,
.nav-tabs
{
    border-color: rgba(255, 255, 255, 0.14);
}

.section-navigation .nav-link,
.nav-tabs .nav-link
{
    color: var(--bs-secondary-color);
}

.section-navigation .nav-link.active,
.nav-tabs .nav-link.active
{
    background: transparent;
    border-color: #ff633f;
    color: #ff7a59;
}

.compare-match-graph-lines path
{
    stroke: rgba(184, 240, 98, 0.75);
}

.result-card,
.result-card-edge-to-edge
{
    border-color: rgba(255, 255, 255, 0.12);
}

.result-card:hover,
.result-card:active
{
    background: #151d29;
}

.search-landing
{
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 99, 63, 0.16), transparent 19rem),
        linear-gradient(135deg, #151c2a, #0d121c);
    border-block: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: clamp(3rem, 9vw, 7rem);
}

.search-landing-inner
{
    margin: 0 auto;
    max-width: 52rem;
    text-align: center;
}

.search-landing h1
{
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    line-height: 0.95;
}

.search-landing-inner > p:not(.home-eyebrow)
{
    color: #aeb9c6;
    font-size: 1.05rem;
    margin: 1rem auto 2rem;
    max-width: 34rem;
}

.search-landing-trends
{
    margin: 1.5rem auto 0;
}

.search-landing-trends > p
{
    color: #aeb9c6;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.search-landing-trends > div
{
    justify-content: center;
}

.search-results-header
{
    background: #101722;
    border-block: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: clamp(1.5rem, 4vw, 2.75rem) 1rem;
}

.search-results-header-inner
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.search-results-form
{
    max-width: 52rem;
    width: 100%;
}

.search-results-form .input-group
{
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(246, 242, 235, 0.48);
    border-radius: 999px;
    background: #f6f2eb;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    padding: 0.25rem 0.3rem 0.25rem 1rem;
}

.search-results-form .form-control
{
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #18212d;
    padding: 0.45rem 0;
}

.search-results-form .form-control:focus
{
    box-shadow: none;
}

.search-results-form .form-control::placeholder
{
    color: #6c7580;
}

.search-results-form .btn
{
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border-radius: 999px !important;
    padding-inline: 0.8rem;
}

.search-results-form .input-group:focus-within
{
    border-color: #b8f062;
    box-shadow: 0 0 0 0.2rem rgba(184, 240, 98, 0.18), 0 14px 32px rgba(0, 0, 0, 0.22);
}

.search-filter-chip
{
    background: #0a0f17;
    border-color: rgba(255, 255, 255, 0.16);
    color: #f6f2eb;
}

.search-filter-chip.active,
.search-filter-chip:hover,
.search-filter-chip:focus-visible
{
    background: #ff633f;
    border-color: #ff633f;
    color: #161a21;
}

.search-results-filters
{
    margin-bottom: 0.85rem;
}

.rf-mobile-search-modal .modal-content
{
    background:
        radial-gradient(circle at 84% 8%, rgba(255, 99, 63, 0.16), transparent 17rem),
        #0b1018;
}

.rf-mobile-search-modal .modal-header
{
    align-items: center;
    border-color: rgba(255, 255, 255, 0.1);
    padding: 1.25rem var(--bs-modal-padding);
}

.rf-mobile-search-modal .modal-body
{
    padding-top: clamp(2.5rem, 12vw, 5rem);
}

.rf-mobile-search-modal h2
{
    font-size: clamp(2.35rem, 12vw, 3.7rem);
    line-height: 0.95;
    max-width: 9ch;
}

.rf-mobile-search-form
{
    margin-top: 2rem;
}

.rf-mobile-search-form .input-group
{
    align-items: center;
    background: #f6f2eb;
    border: 1px solid rgba(246, 242, 235, 0.48);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    padding: 0.25rem 0.3rem 0.25rem 1rem;
}

.rf-mobile-search-form .form-control
{
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #18212d;
    min-width: 0;
    padding: 0.45rem 0;
}

.rf-mobile-search-form .form-control:focus
{
    box-shadow: none;
}

.rf-mobile-search-form .form-control::placeholder
{
    color: #6c7580;
}

.rf-mobile-search-form .btn
{
    border-radius: 999px !important;
    flex: 0 0 auto;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding-inline: 0.8rem;
}

.rf-mobile-search-form .input-group:focus-within
{
    border-color: #b8f062;
    box-shadow: 0 0 0 0.2rem rgba(184, 240, 98, 0.18), 0 14px 32px rgba(0, 0, 0, 0.28);
}

.rf-menu-panel
{
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.7rem;
    padding: 1rem 0 0.35rem;
}

.rf-menu-account
{
    align-items: center;
    background: #151d29;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    color: #f6f2eb;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    padding: 0.75rem 0.85rem;
    text-decoration: none;
}

.rf-menu-account > i:first-child
{
    align-items: center;
    background: rgba(184, 240, 98, 0.13);
    border-radius: 50%;
    color: #b8f062 !important;
    display: inline-flex;
    font-size: 1.2rem;
    height: 2.3rem;
    justify-content: center;
    width: 2.3rem;
}

.rf-menu-account span
{
    display: grid;
    gap: 0.05rem;
}

.rf-menu-account small
{
    color: #aeb9c6;
    font-size: 0.72rem;
    font-weight: 600;
}

.rf-menu-account strong
{
    font-size: 0.95rem;
}

.rf-menu-account > .ph-caret-right
{
    color: #aeb9c6 !important;
    margin-left: auto;
}

.rf-menu-account.active,
.rf-menu-account:hover,
.rf-menu-account:focus-visible
{
    border-color: rgba(184, 240, 98, 0.5);
    color: #ffffff;
}

.rf-menu-grid
{
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rf-menu-link
{
    align-items: flex-start;
    background: #101722;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    color: #f6f2eb;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 0.5rem;
    min-height: 5.1rem;
    min-width: 0;
    padding: 0.8rem;
    text-align: left;
    text-decoration: none;
}

.rf-menu-profile-label
{
    display: block;
    min-width: 0;
    width: 100%;
}

.rf-menu-profile-label > span,
.rf-menu-profile-label > strong
{
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-menu-profile-label > strong
{
    font-size: 0.8rem;
}

.rf-menu-link > i
{
    color: #b8f062 !important;
    font-size: 1.3rem;
}

.rf-menu-link.active,
.rf-menu-link:hover,
.rf-menu-link:focus-visible
{
    background: #18212d;
    border-color: rgba(184, 240, 98, 0.45);
    color: #ffffff;
}

.rf-menu-create
{
    background: #ff633f;
    border-color: #ff633f;
    color: #161a21;
}

.rf-menu-create > i
{
    color: currentColor !important;
}

.rf-menu-create:hover,
.rf-menu-create:focus-visible
{
    background: #ff7a59;
    border-color: #ff7a59;
    color: #161a21;
}

.rf-menu-session-actions
{
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.7rem;
}

.rf-menu-session-actions a,
.rf-menu-session-actions button
{
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--bs-border-radius);
    color: #c6d0da;
    display: inline-flex;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 0.4rem;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    text-decoration: none;
    width: 100%;
}

.rf-menu-session-actions form
{
    margin: 0;
}

.rf-menu-session-actions a:hover,
.rf-menu-session-actions a:focus-visible,
.rf-menu-session-actions a.active,
.rf-menu-session-actions button:hover,
.rf-menu-session-actions button:focus-visible
{
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(184, 240, 98, 0.48);
    color: #ffffff;
}

.footer
{
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-admin
{
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.35rem auto 0;
    max-width: 42rem;
    padding-top: 1rem;
}

.footer-admin a
{
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #c6d0da;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 0.35rem;
    letter-spacing: 0.025em;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    text-decoration: none;
}

.footer-admin a:hover,
.footer-admin a:focus-visible
{
    background: rgba(184, 240, 98, 0.12);
    border-color: rgba(184, 240, 98, 0.52);
    color: #f6f2eb;
}

.footer-environment-badge
{
    background: rgba(255, 99, 63, 0.16);
    border: 1px solid rgba(255, 99, 63, 0.42);
    border-radius: 999px;
    color: #ff9d88;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    padding: 0.38rem 0.52rem;
}

.admin-dashboard .card
{
    background: #111824;
    border-color: rgba(255, 255, 255, 0.12);
    color: #f6f2eb;
}

.admin-dashboard .text-body-secondary
{
    color: #aeb9c6 !important;
    opacity: 1;
}

.admin-dashboard .table
{
    --bs-table-bg: transparent;
    --bs-table-color: #edf0ea;
    --bs-table-border-color: rgba(255, 255, 255, 0.12);
    --bs-table-active-bg: rgba(184, 240, 98, 0.12);
    --bs-table-active-color: #ffffff;
}

.admin-dashboard .table thead th
{
    background: #151e2b;
    color: #dce5d8;
}

.admin-dashboard .table-active > *
{
    color: #ffffff;
}

.admin-dashboard .dashboard-kpi-parts
{
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.admin-dashboard pre,
.admin-dashboard summary
{
    color: inherit;
}

.admin-dashboard .alert-secondary
{
    background: #18212d;
    border-color: rgba(184, 240, 98, 0.28);
    color: #dce5d8;
}

.admin-dashboard .text-success
{
    color: #b8f062 !important;
}

.admin-dashboard .text-warning
{
    color: #ffd17a !important;
}

.admin-dashboard .text-danger
{
    color: #ff9d88 !important;
}

/* Bootstrap ships its close glyph in black. Modals inherit the midnight surface,
 * so make the control visible without changing the bespoke image-lightbox close. */
.modal .btn-close
{
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.78;
}

.modal .btn-close:hover,
.modal .btn-close:focus-visible
{
    opacity: 1;
}

.modal .btn-close:focus-visible
{
    box-shadow: 0 0 0 0.2rem rgba(184, 240, 98, 0.5);
}

@media (max-width: 991.98px)
{
    .home-hero
    {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 1.1rem;
        padding-top: clamp(2.5rem, 7vw, 4.5rem);
        padding-bottom: 2.25rem;
    }

    .home-hero-copy
    {
        max-width: 42rem;
    }

    .home-hero-secondary-actions
    {
        align-items: stretch;
        flex-direction: column !important;
        max-width: 22rem;
    }

    .home-ranking-stage
    {
        width: min(100%, 34rem);
        min-height: 27rem;
        justify-self: center;
    }
}

@media (max-width: 767.98px)
{
    .home-hero
    {
        padding-inline: 1.25rem;
    }

    .home-hero h1
    {
        font-size: clamp(3.1rem, 16vw, 5.2rem);
    }

    .home-start-search-control
    {
        padding-left: 0.7rem;
    }

    .home-start-search-control .btn
    {
        padding-inline: 0.8rem;
    }
}

@media (max-width: 575.98px)
{
    .home-hero h1
    {
        font-size: clamp(2.65rem, 12vw, 3.6rem);
        line-height: 0.92;
        max-width: none;
    }

    .home-start-search
    {
        margin-top: 2rem;
    }
}
