html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 0;
}

:root {
    --site-elevation-shadow: 0 .5rem 1rem 0 rgba(125, 158, 193, .65);
    --site-elevation-shadow-hover: 0 .5rem 1rem 0 #4BACA5;
}

.taco-shadow {
    border-radius: 10px;
    box-shadow: var(--site-elevation-shadow);
}

.taco-shadow:active,
.taco-shadow:hover {
    box-shadow: var(--site-elevation-shadow-hover);
}

.shadow-sm,
.shadow,
.shadow-lg {
    box-shadow: var(--site-elevation-shadow) !important;
}

a:active,
a:hover {
    color: #7FCADD;
}

/* ──────────────────────────────────────────────────────────────
   Main content shell — frosted glass over the hero image
   ────────────────────────────────────────────────────────────── */
main.container {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border-radius: 1.25rem;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
    padding-left: 2rem;
    padding-right: 2rem;
    /* Liquid glass edges — directional specular border */
    border-top: 1px solid rgba(255, 255, 255, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.60);
    border-right: 1px solid rgba(255, 255, 255, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    /* Depth: inner cavity shadow + outer glow ring + drop shadow */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70),
                inset 0 -6px 16px rgba(0, 0, 0, 0.06),
                0 0 0 1px rgba(255, 255, 255, 0.28),
                0 8px 32px rgba(0, 0, 0, 0.14),
                0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Specular lens highlight across the top edge */
main.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.90) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.90) 70%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    z-index: 2;
}

/* Caustic shimmer along the bottom edge */
main.container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(180, 215, 255, 0.00) 0%,
        rgba(180, 215, 255, 0.55) 35%,
        rgba(200, 230, 255, 0.65) 50%,
        rgba(180, 215, 255, 0.55) 65%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 2;
}

@media (min-width: 768px) {
    main.container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* ──────────────────────────────────────────────────────────────
   Home page hero backdrop
   ────────────────────────────────────────────────────────────── */
.home-page-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.home-page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(255, 255, 255, 0.38) 40%,
        rgba(255, 255, 255, 0.80) 75%,
        white 96%);
}

.home-page-fallback-bg {
    background: linear-gradient(150deg, #f7b733 0%, #fc4a1a 45%, #4BACA5 100%);
}

/* ──────────────────────────────────────────────────────────────
   Navbar
   ────────────────────────────────────────────────────────────── */
.site-navbar {
    background-position: top center;
    background-size: cover;
    transition: background-color .2s ease-in-out;
}

.site-navbar .navbar-toggler {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    background: radial-gradient(circle at 38% 32%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(210, 230, 255, 0.18) 45%,
        rgba(160, 195, 255, 0.08) 100%);
    backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.48);
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.18),
                0 4px 16px rgba(0, 0, 0, 0.16),
                0 2px 6px rgba(0, 0, 0, 0.10);
    opacity: 0.82;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.22s ease;
}

/* Specular lens flare */
.site-navbar .navbar-toggler::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at 50% 10%,
        rgba(255, 255, 255, 0.80) 0%,
        rgba(255, 255, 255, 0.20) 55%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Caustic shimmer */
.site-navbar .navbar-toggler::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 22%;
    background: radial-gradient(ellipse,
        rgba(180, 215, 255, 0.40) 0%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.site-navbar .navbar-toggler-icon {
    position: relative;
    z-index: 1;
}

.site-navbar .navbar-toggler:hover {
    opacity: 1;
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.10),
                0 0 0 1px rgba(255, 255, 255, 0.30),
                0 8px 28px rgba(0, 0, 0, 0.20),
                0 3px 8px rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.site-navbar .navbar-toggler:active {
    opacity: 1;
    transform: scale(0.97);
}

.site-navbar-hero {
    background: transparent;
    border-bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1030;
}

.site-navbar-hero .navbar-brand,
.site-navbar-hero .navbar-toggler {
    color: #1f3f66;
}

.site-navbar-hero .navbar-brand {
    border-radius: .5rem;
    padding: .25rem .5rem;
}

.site-navbar-hero .navbar-toggler {
    border-color: rgba(31, 63, 102, .35);
}

.site-navbar-hero .navbar-toggler-icon {
    filter: none;
}

.site-navbar-hero-contrast-dark {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%286, 26, 47, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar-hero-contrast-dark .navbar-brand {
    color: #061a2f;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, .85);
}

.site-navbar-hero-contrast-dark .navbar-toggler {
    background: radial-gradient(circle at 38% 32%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(220, 235, 255, 0.32) 45%,
        rgba(180, 210, 255, 0.16) 100%);
    color: #061a2f;
    border-color: rgba(6, 26, 47, 0.35);
}

.site-navbar-hero-contrast-light {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar-hero-contrast-light .navbar-brand {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.site-navbar-hero-contrast-light .navbar-toggler {
    background: radial-gradient(circle at 38% 32%,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(10, 30, 70, 0.20) 45%,
        rgba(10, 30, 70, 0.10) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.offcanvas .nav-link {
    border-radius: .5rem;
    transition: background-color .15s ease-in-out, color .15s ease-in-out;
}

.offcanvas .navbar-nav,
.offcanvas .nav-item,
.offcanvas form {
    width: 100%;
}

.offcanvas .nav-link:not(.disabled):hover,
.offcanvas .nav-link:not(.disabled):focus {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}

/* Glass panel overrides the generic flat hover */
#offcanvasNavbar .nav-link:not(.disabled):hover,
#offcanvasNavbar .nav-link:not(.disabled):focus {
    background-color: transparent;
}

.offcanvas .nav-link.nav-link-logout:not(.disabled):hover,
.offcanvas .nav-link.nav-link-logout:not(.disabled):focus {
    background-color: var(--bs-danger-bg-subtle);
    color: var(--bs-danger-text-emphasis) !important;
}

/* ──────────────────────────────────────────────────────────────
   Home feed cards
   ────────────────────────────────────────────────────────────── */
.home-feed-post {
    border-radius: 1.25rem;
    transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.60);
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70),
                inset 0 -4px 12px rgba(0, 0, 0, 0.04),
                var(--site-elevation-shadow);
}

/* Specular highlight along the top edge */
.home-feed-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.90) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.90) 70%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    z-index: 2;
}

/* Caustic shimmer along the bottom edge */
.home-feed-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(180, 215, 255, 0.00) 0%,
        rgba(180, 215, 255, 0.50) 35%,
        rgba(200, 230, 255, 0.60) 50%,
        rgba(180, 215, 255, 0.50) 65%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 2;
}

.home-feed-post:active,
.home-feed-post:hover {
    box-shadow: inset 0 1px 0 rgba(75, 172, 165, 0.30),
                inset 0 0 28px rgba(75, 172, 165, 0.10),
                inset 0 -6px 18px rgba(75, 172, 165, 0.08),
                var(--site-elevation-shadow-hover);
}

.home-feed-reaction-count {
    background-color: var(--bs-tertiary-bg);
    border-radius: 999px;
    padding: .2rem .55rem;
}

.home-feed-reaction-menu {
    border-radius: 999px;
    min-width: auto;
}

.home-feed-reaction-option {
    height: 2.5rem;
    line-height: 1;
    transition: transform .15s ease-in-out, background-color .15s ease-in-out;
    width: 2.5rem;
}

.home-feed-reaction-option:hover,
.home-feed-reaction-option:focus,
.home-feed-reaction-option.active {
    background-color: var(--bs-primary-bg-subtle);
    transform: translateY(-.2rem) scale(1.08);
}

.home-feed-gallery-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-feed-gallery-grid .home-feed-image-button:first-child {
    grid-column: 1 / -1;
}

.home-feed-image-button {
    cursor: zoom-in;
    display: block;
    width: 100%;
}

.home-feed-image {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.home-feed-modal-image {
    max-height: 82vh;
    object-fit: contain;
}

.home-feed-text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ──────────────────────────────────────────────────────────────
   Quick update composer
   ────────────────────────────────────────────────────────────── */
.home-quick-post {
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    border-top: 1px solid rgba(255, 255, 255, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.60);
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70),
                inset 0 -4px 12px rgba(0, 0, 0, 0.04),
                var(--site-elevation-shadow);
    transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

.home-quick-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.90) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.90) 70%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    z-index: 2;
}

.home-quick-post::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(180, 215, 255, 0.00) 0%,
        rgba(180, 215, 255, 0.50) 35%,
        rgba(200, 230, 255, 0.60) 50%,
        rgba(180, 215, 255, 0.50) 65%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 2;
}

.home-quick-post-avatar {
    background: linear-gradient(135deg, #f7b733, #fc4a1a);
    height: 3rem;
    width: 3rem;
}

.home-quick-post-textarea {
    border-radius: 1rem;
    resize: vertical;
}

.home-quick-post-photos {
    background-color: rgba(252, 74, 26, .04);
}

/* ──────────────────────────────────────────────────────────────
   Home page search — liquid glass
   ────────────────────────────────────────────────────────────── */
.home-search-group {
    border-radius: 1.25rem;
    box-shadow: var(--site-elevation-shadow);
}

.home-search-group .form-control {
    border-radius: 16px 0 0 16px !important;
    background: radial-gradient(circle at 38% 32%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(210, 230, 255, 0.18) 45%,
        rgba(160, 195, 255, 0.08) 100%);
    backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.48);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.08);
    color: rgba(30, 60, 120, 0.90);
    opacity: 0.82;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.home-search-group .form-control::placeholder {
    color: rgba(30, 60, 120, 0.70);
}

.home-search-group .form-control:focus {
    border-radius: 16px 0 0 16px !important;
    opacity: 1;
    box-shadow: inset 0 -4px 10px rgba(0, 0, 0, 0.08);
    outline: none;
    color: rgba(30, 60, 120, 0.95);
}

.home-search-group .btn-outline-light {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 38% 32%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(210, 230, 255, 0.18) 45%,
        rgba(160, 195, 255, 0.08) 100%);
    backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.48);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.10),
                0 0 0 1px rgba(255, 255, 255, 0.18),
                0 6px 24px rgba(0, 0, 0, 0.18),
                0 2px 6px rgba(0, 0, 0, 0.12);
    color: rgba(30, 60, 120, 0.90) !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.40);
    border-radius: 0 16px 16px 0 !important;
    opacity: 0.82;
    transition: opacity 0.3s ease, box-shadow 0.3s ease, transform 0.22s ease;
}

.home-search-group .btn-outline-light::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at 50% 10%,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.home-search-group .btn-outline-light::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 22%;
    background: radial-gradient(ellipse,
        rgba(180, 215, 255, 0.45) 0%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.home-search-group .btn-outline-light i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.50));
}

.home-search-group .btn-outline-light:hover {
    opacity: 1;
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.30),
                0 12px 36px rgba(0, 0, 0, 0.24),
                0 3px 10px rgba(0, 0, 0, 0.15);
    transform: scale(1.04);
    color: rgba(30, 60, 120, 0.92) !important;
}

.home-search-group .btn-outline-light:active {
    opacity: 1;
    transform: scale(0.97);
}

/* ──────────────────────────────────────────────────────────────
   Admin
   ────────────────────────────────────────────────────────────── */
.required-field::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.validation-summary-valid.alert {
    display: none;
}

.admin-hero,
.admin-config-hero {
    background: linear-gradient(135deg, rgba(252, 74, 26, .10), rgba(247, 183, 51, .10));
    margin-top: 1.5rem;
}

.admin-card,
.admin-config-card {
    border-radius: 1.25rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px) saturate(160%);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.82) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.60) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70),
                inset 0 -4px 12px rgba(0, 0, 0, 0.04),
                var(--site-elevation-shadow);
}

.admin-config-card {
    margin-bottom: 2rem;
}

.admin-card::before,
.admin-config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 255, 255, 0.90) 30%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.90) 70%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 0 0 50% 50%;
    pointer-events: none;
    z-index: 2;
}

.admin-card::after,
.admin-config-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(to right,
        rgba(180, 215, 255, 0.00) 0%,
        rgba(180, 215, 255, 0.50) 35%,
        rgba(200, 230, 255, 0.60) 50%,
        rgba(180, 215, 255, 0.50) 65%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    z-index: 2;
}

.admin-card:hover {
    border-color: rgba(252, 74, 26, .35) !important;
    box-shadow: inset 0 1px 0 rgba(75, 172, 165, 0.30),
                inset 0 0 28px rgba(75, 172, 165, 0.10),
                inset 0 -6px 18px rgba(75, 172, 165, 0.08),
                var(--site-elevation-shadow-hover);
    transform: translateY(-2px);
}

.admin-icon,
.admin-config-icon {
    align-items: center;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.admin-config-table th[data-sort-key] {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.admin-config-table th[data-sort-key] .bi {
    opacity: .65;
}

.admin-config-table th[data-sort-direction="asc"] .bi::before {
    content: "\f148";
}

.admin-config-table th[data-sort-direction="desc"] .bi::before {
    content: "\f128";
}

.admin-config-actions {
    white-space: nowrap;
}

.admin-media-thumb {
    height: 3rem;
    object-fit: cover;
    width: 4rem;
}

/* ──────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────── */
.common-site-footer {
    background-color: transparent;
    margin-top: auto;
}

.common-site-footer-shell {
    background:
        linear-gradient(180deg, rgba(252, 74, 26, .02), rgba(252, 74, 26, 0)),
        var(--bs-body-bg);
}

.common-site-footer-breadcrumb {
    background-color: var(--bs-tertiary-bg);
}

.common-site-footer-breadcrumb-list {
    --bs-breadcrumb-divider: "›";
}

.common-site-footer-breadcrumb-list .breadcrumb-item,
.common-site-footer-breadcrumb-list .breadcrumb-item.active {
    align-items: center;
    display: inline-flex;
    line-height: 1.4;
}

.common-site-footer-link {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
}

/* ──────────────────────────────────────────────────────────────
   Back to top button — liquid glass
   ────────────────────────────────────────────────────────────── */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 1030;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    outline: none;
    overflow: hidden;
    background: radial-gradient(circle at 38% 32%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(210, 230, 255, 0.18) 45%,
        rgba(160, 195, 255, 0.08) 100%);
    backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    -webkit-backdrop-filter: blur(28px) saturate(220%) brightness(1.08) contrast(1.05);
    border-top: 1px solid rgba(255, 255, 255, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.48);
    border-right: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.10),
                0 0 0 1px rgba(255, 255, 255, 0.18),
                0 6px 24px rgba(0, 0, 0, 0.18),
                0 2px 6px rgba(0, 0, 0, 0.12);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55),
                 0 0 8px rgba(0, 0, 0, 0.30);
    opacity: 0.55;
    transition: opacity 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.22s ease;
}

#btn-back-to-top::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    height: 38%;
    background: radial-gradient(ellipse at 50% 10%,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(255, 255, 255, 0.30) 45%,
        rgba(255, 255, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
}

#btn-back-to-top::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 44%;
    height: 22%;
    background: radial-gradient(ellipse,
        rgba(180, 215, 255, 0.45) 0%,
        rgba(180, 215, 255, 0.00) 100%);
    border-radius: 50%;
    pointer-events: none;
}

#btn-back-to-top:hover {
    opacity: 1;
    box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.30),
                0 12px 36px rgba(0, 0, 0, 0.24),
                0 3px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.05);
}

#btn-back-to-top:active {
    opacity: 1;
    transform: translateY(0) scale(0.97);
}

#btn-back-to-top i {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 900;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* ──────────────────────────────────────────────────────────────
   Navigation offcanvas panel — liquid glass
   ────────────────────────────────────────────────────────────── */
#offcanvasNavbar {
    background: radial-gradient(160% 120% at 30% 0%,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(220, 236, 255, 0.52) 40%,
        rgba(190, 215, 255, 0.32) 100%);
    backdrop-filter: blur(40px) saturate(200%) brightness(1.12) contrast(1.04);
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.12) contrast(1.04);
    border-left: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18),
                -1px 0 0 rgba(255, 255, 255, 0.40);
}

#offcanvasNavbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: radial-gradient(ellipse at 30% 0%,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.00) 70%);
    pointer-events: none;
    z-index: 0;
}

#offcanvasNavbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;
    background: radial-gradient(ellipse at 50% 100%,
        rgba(180, 215, 255, 0.28) 0%,
        rgba(180, 215, 255, 0.00) 100%);
    pointer-events: none;
    z-index: 0;
}

#offcanvasNavbar .offcanvas-header,
#offcanvasNavbar .offcanvas-body {
    position: relative;
    z-index: 1;
}

#offcanvasNavbar .offcanvas-title {
    color: rgba(20, 50, 100, 0.90);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.50);
}

#offcanvasNavbar .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.40);
}

#offcanvasNavbar .nav-link {
    border-radius: 0.85rem;
    color: rgba(20, 50, 110, 0.88);
    overflow: hidden;
    padding: 0.6rem 1.25rem;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.40);
    transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#offcanvasNavbar .nav-link::before {
    background: radial-gradient(
        ellipse 85% 120% at 50% -15%,
        rgba(255, 255, 255, 0.82) 0%,
        rgba(255, 255, 255, 0.28) 35%,
        transparent 65%
    );
    border-radius: inherit;
    content: '';
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.15s ease;
    z-index: 0;
}

#offcanvasNavbar .nav-link > *,
#offcanvasNavbar .nav-link {
    isolation: isolate;
}

#offcanvasNavbar .nav-link:not(.disabled):hover,
#offcanvasNavbar .nav-link:not(.disabled):focus {
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.68) 0%,
        rgba(220, 236, 255, 0.42) 60%,
        rgba(200, 225, 255, 0.28) 100%
    );
    box-shadow:
        inset 0 1.5px 0 rgba(255, 255, 255, 0.90),
        inset 0 0 0 1px rgba(200, 225, 255, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.08);
    color: rgba(10, 25, 70, 1);
}

#offcanvasNavbar .nav-link:not(.disabled):hover::before,
#offcanvasNavbar .nav-link:not(.disabled):focus::before {
    opacity: 1;
}

#offcanvasNavbar hr {
    border-color: rgba(255, 255, 255, 0.40);
}

/* ──────────────────────────────────────────────────────────────
   Not found / status page
   ────────────────────────────────────────────────────────────── */
.not-found-card {
    margin-top: 1rem;
}

.not-found-digit {
    font-size: clamp(4.5rem, 17vw, 9rem);
    font-weight: 800;
    line-height: 1;
    color: #fc4a1a;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85),
                 0 .5rem 1.25rem rgba(252, 74, 26, 0.28);
}

.not-found-taco-lead {
    width: clamp(6rem, 22vw, 11rem);
    height: auto;
    filter: drop-shadow(0 .5rem .75rem rgba(0, 0, 0, 0.18));
    animation: not-found-taco-bob 4s ease-in-out infinite;
}

.not-found-taco {
    width: clamp(4rem, 14vw, 6.5rem);
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 .35rem .5rem rgba(0, 0, 0, 0.14));
    transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}

.not-found-taco:hover {
    transform: translateY(-.35rem) rotate(-3deg);
    opacity: 1;
}

@keyframes not-found-taco-bob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-.6rem) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-taco-lead {
        animation: none;
    }

    .not-found-taco:hover {
        transform: none;
    }
}
