main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

:root {
    --brand-color: #E33126;
    --surface-card: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.12);
    --surface-muted: rgba(255, 255, 255, 0.7);
    --hero-gradient: radial-gradient(circle at 10% -10%, rgba(227, 49, 38, 0.25), transparent 40%), linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 50%, #000000 100%);
    --hero-highlight: rgba(227, 49, 38, 0.2);
    --cta-gradient: linear-gradient(90deg, #E33126, #b0201a);
}

.theme-dark {
    --bg-color: #121212;
    --text-primary: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --surface: rgba(0, 0, 0, 0.9);
    --surface-secondary: rgba(0, 0, 0, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(227, 49, 38, 0.3);
    --surface-card: rgba(255, 255, 255, 0.05);
    --surface-border: rgba(255, 255, 255, 0.12);
    --surface-muted: rgba(255, 255, 255, 0.7);
    --hero-gradient: radial-gradient(circle at 10% -10%, rgba(227, 49, 38, 0.25), transparent 40%), linear-gradient(135deg, #0b0b0b 0%, #1a1a1a 50%, #000000 100%);
    --hero-highlight: rgba(227, 49, 38, 0.2);
    --cta-gradient: linear-gradient(90deg, #E33126, #b0201a);
    color-scheme: dark;
}

.theme-light {
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-muted: #334155;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-secondary: #ffffff;
    --border-color: rgba(15, 23, 42, 0.1);
    --shadow-color: rgba(227, 49, 38, 0.35);
    --surface-card: #ffffff;
    --surface-border: rgba(15, 23, 42, 0.1);
    --surface-muted: #475569;
    --hero-gradient: radial-gradient(circle at 10% -10%, rgba(227, 49, 38, 0.12), transparent 42%), linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e9eef5 100%);
    --hero-highlight: rgba(227, 49, 38, 0.12);
    --cta-gradient: linear-gradient(90deg, #111827, #1f2937);
    color-scheme: light;
}

/* Improve contrast for light mode when legacy white utility classes are used in content */
.theme-light main .text-white, .theme-light main .text-white\/90 { color: var(--text-primary) !important; }
.theme-light main .text-white\/80 { color: var(--text-primary) !important; }
.theme-light main .text-white\/70, .theme-light main .text-white\/60, .theme-light main .text-white\/50 { color: var(--surface-muted) !important; }
.theme-light main .border-white\/10, .theme-light main .border-white\/20, .theme-light main .border-white\/40 { border-color: var(--surface-border) !important; }
.theme-light main .bg-white\/5, .theme-light main .bg-white\/10 { background-color: var(--surface-card) !important; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.nav-shell {
    background-color: var(--surface);
}

.mobile-menu-panel {
    background-color: var(--surface-secondary);
}

.footer-surface {
    background-color: var(--surface);
}

.border-line {
    border-color: var(--border-color);
}

.text-primary {
    color: var(--text-primary);
}

.text-muted {
    color: var(--surface-muted);
}

.nav-link {
    color: var(--text-primary);
    transition: color 150ms ease;
}

.nav-link:hover {
    color: var(--brand-color);
}

.cta-link {
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.125rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: box-shadow 200ms ease, transform 150ms ease;
    display: inline-block;
}

.cta-link:hover {
    box-shadow: 0 12px 30px rgba(227, 49, 38, 0.5);
    transform: translateY(-1px);
}

.hero-spotlight {
    background: var(--hero-gradient);
    border: 1px solid var(--surface-border);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    position: relative;
}

.hero-highlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, var(--hero-highlight), transparent 48%);
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    color: var(--surface-muted);
    letter-spacing: 0.35em;
}

.hero-spotlight .text-primary {
    color: var(--text-primary);
}

.hero-spotlight .text-muted {
    color: var(--surface-muted);
}

.hero-glow {
    background: var(--hero-highlight);
    filter: blur(48px);
    opacity: 0.9;
}

.surface-card {
    background-color: var(--surface-card);
    border: 1px solid var(--surface-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.spotlight-card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
}

.chip {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--surface-border);
    color: var(--surface-muted);
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
}

.highlight-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--surface-border);
}

.primary-cta {
    background-color: var(--brand-color);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(227, 49, 38, 0.35);
    transition: box-shadow 200ms ease, transform 150ms ease;
}

.primary-cta:hover {
    box-shadow: 0 20px 40px rgba(227, 49, 38, 0.55);
    transform: translateY(-1px);
}

.ghost-cta {
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    background-color: var(--surface-secondary);
    transition: border-color 200ms ease, color 200ms ease, transform 150ms ease;
}

.ghost-cta:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    transform: translateY(-1px);
}

.secondary-cta {
    background: var(--cta-gradient);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.cta-band {
    background: var(--cta-gradient);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

.cta-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 45%);
}

.cta-band .text-primary,
.cta-band .text-muted {
    color: #ffffff;
}

.theme-light .hero-badge,
.theme-light .chip,
.theme-light .highlight-panel {
    background-color: rgba(17, 24, 39, 0.03);
}

.theme-light .hero-spotlight {
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
}

.theme-light .surface-card {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.theme-light .spotlight-card {
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
}

.theme-light .cta-band,
.theme-light .secondary-cta {
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.2);
}

.theme-light .cta-band {
    border-color: rgba(15, 23, 42, 0.08);
    color: #f8fafc;
}

.theme-light .chip,
.theme-light .hero-badge,
.theme-light .highlight-panel {
    border-color: rgba(15, 23, 42, 0.12);
}