/* ============================================================
   Gnosis IQ IdentityServer — site.css
   Matches the Next.js app's design language (emerald/slate + Geist).
   No MDBootstrap. This file plus site.js are the only frontend deps.
   Provides a compatibility layer over the Bootstrap class names
   already used in the existing .cshtml files (container, row, col-*,
   btn, form-control, alert, nav, etc.) so individual pages don't
   need to be rewritten to inherit the new look.
   ============================================================ */

:root {
    /* Surface tokens — mirror gnosis-iq-next-app/app/globals.css */
    --background: #fafafa;
    --foreground: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --surface: #ffffff;
    --surface-elevated: rgba(255, 255, 255, 0.8);

    /* Brand */
    --emerald-50:  #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;

    /* Slate scale */
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Feedback */
    --red-50:  #fef2f2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-700: #b91c1c;
    --amber-50:  #fffbeb;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-700: #b45309;
    --blue-50: #eff6ff;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-700: #1d4ed8;

    /* Typography */
    --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

    /* Spacing & radii */
    --radius-sm: 0.375rem;
    --radius:    0.5rem;
    --radius-lg: 0.75rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    /* 100vh (not 100%) so the flex column fills the viewport and main's
       flex:1 pushes the footer to the bottom on short pages. */
    min-height: 100vh;
}

main { flex: 1; }

a {
    color: var(--emerald-700);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--emerald-600); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5rem 0;
    color: var(--foreground);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem 0; }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; height: auto; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ---------- Layout primitives ---------- */

.container {
    width: 100%;
    max-width: 72rem;          /* matches Next.js max-w-6xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.body-container { padding-top: 1.5rem; padding-bottom: 3rem; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}
.row > * { padding-left: 0.75rem; padding-right: 0.75rem; }

/* Gutter overrides (gx-*, gy-*, g-*) — only the values used in cshtml */
.g-3   > * { padding-left: 0.5rem; padding-right: 0.5rem; padding-bottom: 1rem; }
.gx-4  { margin-left: -0.75rem; margin-right: -0.75rem; }
.gx-4  > * { padding-left: 0.75rem; padding-right: 0.75rem; }
.gx-lg-5 { margin-left: -1rem; margin-right: -1rem; }
.gx-lg-5 > * { padding-left: 1rem; padding-right: 1rem; }
.gy-5  > * { padding-top: 1.5rem; }
.g-4   > * { padding-left: 0.75rem; padding-right: 0.75rem; padding-bottom: 1.5rem; }

/* 12-col grid */
.col-12     { flex: 0 0 auto; width: 100%; }
.col-6      { flex: 0 0 auto; width: 50%; }
.col-md-3   { flex: 0 0 auto; width: 100%; }
.col-md-6   { flex: 0 0 auto; width: 100%; }
.col-md-9   { flex: 0 0 auto; width: 100%; }
.col-md-12  { flex: 0 0 auto; width: 100%; }
.col-lg-5   { flex: 0 0 auto; width: 100%; }
.col-lg-6   { flex: 0 0 auto; width: 100%; }
.col-lg-7   { flex: 0 0 auto; width: 100%; }
.col-lg-12  { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
    .col-md-3  { width: 25%; }
    .col-md-6  { width: 50%; }
    .col-md-9  { width: 75%; }
    .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
    .col-lg-5  { width: 41.6667%; }
    .col-lg-6  { width: 50%; }
    .col-lg-7  { width: 58.3333%; }
    .col-lg-12 { width: 100%; }
}

.border-start {
    border-left: 1px solid var(--border);
}
@media (max-width: 991.98px) { .border-start { border-left: 0; } }

/* ---------- Flex / spacing utilities ---------- */

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
@media (min-width: 768px) {
    .d-md-block { display: block; }
}
@media (min-width: 992px) {
    .d-lg-block { display: block; }
    .d-lg-none  { display: none; }
}
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }
@media (min-width: 992px) { .gap-lg-5 { gap: 1.5rem; } }

/* Margin / padding helpers — only what's used */
.m-0  { margin: 0; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.5rem; }
.mt-3 { margin-top: 0.75rem; } .me-1 { margin-right: 0.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.5rem; }
.px-5 { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 992px) {
    .px-5     { padding-left: 1.5rem; padding-right: 1.5rem; }
    .pt-lg-5  { padding-top: 1.5rem; }
}

/* ---------- Type utilities ---------- */

.fs-4  { font-size: 1.25rem; }
.fs-6  { font-size: 0.875rem; }
.fw-bold { font-weight: 600; }
.lead { font-size: 1.125rem; font-weight: 500; color: var(--slate-700); }
.text-muted { color: var(--muted); }
.text-white { color: #ffffff; }
.text-danger { color: var(--red-700); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Header (navbar + page-title strip) ---------- */

.navbar {
    background: var(--surface-elevated);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--foreground);
}
.navbar-brand:hover { text-decoration: none; color: var(--foreground); }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--emerald-600);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: var(--radius);
}
.brand-iq { color: var(--emerald-600); }

.navbar-links {
    display: none;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .navbar-links { display: flex; }
}
/* Plain nav links only — :not(.btn) keeps this from overriding the
   .btn-primary / .btn-secondary text colors via higher specificity. */
.navbar-links a:not(.btn) {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.navbar-links a:not(.btn):hover {
    color: var(--foreground);
    text-decoration: none;
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted);
}
.navbar-toggler:hover { background: var(--slate-100); }
@media (min-width: 768px) { .navbar-toggler { display: none; } }

/* Page-title strip — replaces the old lime-green #sub_nav */
.page-title-strip {
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}
.page-title-strip .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.page-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin: 0;
}

/* ---------- Mobile nav dropdown (mirrors the Next.js AppHeaderNav) ----------
   A floating rounded card anchored under the sticky header, opened by the
   hamburger. The header is 4rem tall and sticky, so a fixed card at top:4.5rem
   sits just below it; the toggler only renders < 768px, so this only shows
   there. JS toggles the [hidden] attribute and closes on outside-click/Escape. */

.nav-menu {
    position: fixed;
    top: 4.5rem;
    right: 1.5rem;
    width: 15rem;
    max-width: calc(100vw - 3rem);
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    /* Tailwind shadow-lg — same card elevation as the web app menu. */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    z-index: 60;
    overflow: hidden;
    padding: 0.375rem;
    animation: nav-menu-in 140ms ease;
}
.nav-menu[hidden] { display: none; }

@keyframes nav-menu-in {
    from { opacity: 0; transform: translateY(-0.375rem); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.nav-menu-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--slate-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
}
.nav-menu-link:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
    text-decoration: none;
}

.nav-menu-sep {
    height: 1px;
    background: var(--slate-100);
    margin: 0.375rem 0;
}

/* Primary "Sign In" CTA — matches the web app's AuthControls button exactly:
   compact (content width, left-aligned), px-4 py-2, emerald-600. */
.nav-menu-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--emerald-600);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
}
.nav-menu-cta:hover {
    background: var(--emerald-700);
    color: #fff;
    text-decoration: none;
}

/* ---------- Nav pills (ManageNav sidebar) ---------- */

.nav { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-pills { gap: 0.25rem; }
.nav-pills.flex-column { flex-direction: column; }
.nav-item { display: block; }
.nav-link {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}
.nav-link:hover {
    background: var(--slate-100);
    color: var(--foreground);
    text-decoration: none;
}
.nav-link.active {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.btn:focus-visible {
    outline: 2px solid var(--emerald-500);
    outline-offset: 2px;
}
.btn:disabled,
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
    background: var(--emerald-600);
    color: #fff;
}
.btn-primary:hover { background: var(--emerald-700); color: #fff; text-decoration: none; }

.btn-secondary {
    background: #fff;
    color: var(--slate-700);
    border-color: var(--slate-200);
}
.btn-secondary:hover {
    background: var(--emerald-50);
    border-color: var(--emerald-200);
    color: var(--emerald-700);
    text-decoration: none;
}

.btn-danger {
    background: var(--red-500);
    color: #fff;
}
.btn-danger:hover { background: var(--red-700); color: #fff; text-decoration: none; }

/* Link-style button (Email.cshtml "send verification email"). */
.btn-link {
    background: transparent;
    border-color: transparent;
    color: var(--emerald-700);
    padding-left: 0;
    padding-right: 0;
}
.btn-link:hover { background: transparent; color: var(--emerald-600); text-decoration: underline; }

.btn-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--muted);
    font-size: 1rem;
}
.btn-close::before { content: "×"; line-height: 1; }
.btn-close:hover { background: rgba(15, 23, 42, 0.06); color: var(--foreground); }

.p-0 { padding: 0; }
.shadow-0 { box-shadow: none; }

/* ---------- Forms ---------- */

.form-control {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--foreground);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-control::placeholder { color: var(--slate-400); }
.form-control:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form-control:disabled,
.form-control[disabled] {
    background: var(--slate-50);
    color: var(--muted);
    cursor: not-allowed;
}

.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
}

/* form-outline + form-floating: the original MDB markup wraps an input
   AND a label inside .form-outline / .form-floating, with the label
   visually floated to a placeholder position. We render the label
   above the input (the modern Tailwind pattern). */
.form-outline,
.form-floating {
    display: flex;
    flex-direction: column-reverse;       /* label above input */
}
.form-outline .form-control,
.form-floating .form-control { margin-top: 0.375rem; }

/* Hide the original Bootstrap-floated label behavior gracefully */
.form-outline .form-label,
.form-floating .form-label {
    position: static;
    transform: none;
    pointer-events: auto;
    background: transparent;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.form-check-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--emerald-600);
    cursor: pointer;
}
.form-check-label {
    font-size: 0.875rem;
    color: var(--slate-700);
    cursor: pointer;
}

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

/* Validation feedback (HTML5 + .needs-validation/.was-validated) */
.valid-feedback,
.invalid-feedback {
    display: none;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
}
.valid-feedback   { color: var(--emerald-700); }
.invalid-feedback { color: var(--red-700); }

.was-validated .form-control:valid     { border-color: var(--emerald-500); }
.was-validated .form-control:invalid   { border-color: var(--red-500); }
.was-validated .form-control:valid    ~ .valid-feedback   { display: block; }
.was-validated .form-control:invalid  ~ .invalid-feedback { display: block; }

/* ---------- Alerts ---------- */

.alert {
    position: relative;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    background: var(--slate-50);
    border: 1px solid var(--border);
    border-left: 3px solid var(--slate-300);
    border-radius: var(--radius);
    color: var(--slate-700);
    font-size: 0.9rem;
}
.alert strong { color: var(--foreground); font-weight: 600; margin-right: 0.375rem; }
.alert-danger  { background: var(--red-50);    border-color: var(--red-200);    border-left-color: var(--red-500);    color: var(--red-700); }
.alert-warning { background: var(--amber-50);  border-color: var(--amber-200);  border-left-color: var(--amber-500);  color: var(--amber-700); }
.alert-info    { background: var(--blue-50);   border-color: var(--blue-200);   border-left-color: var(--blue-500);   color: var(--blue-700); }
.alert-dismissible {
    padding-right: 3rem;
}
.alert-dismissible .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* ---------- Validation summary partial ---------- */

.validation-summary-errors > ul,
.validation-summary-valid > ul {
    margin: 0;
    padding-inline-start: 1rem;
    list-style-type: none;
}

/* ---------- Cards (used by grants page; keep light support) ---------- */

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.25rem;
}
.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ---------- Welcome / grants legacy bits ---------- */

.welcome-page .logo { width: 4rem; }
.welcome-page li { list-style: none; padding: 0.25rem 0; }

.logged-out-page iframe { display: none; width: 0; height: 0; }

.grants-page .card { border-bottom: 1px solid var(--slate-300); }
.grants-page .card .card-title img { width: 6rem; height: 6rem; }
.grants-page .card label { font-weight: 600; }

/* ---------- External login providers ---------- */

.provider-img { max-height: 2.5rem; }

/* ---------- Autocomplete (school-district picker) ---------- */

.autocomplete {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    max-height: 20rem;
    overflow-y: auto;
    z-index: 30;
    display: none;
}
.autocomplete-dropdown.is-open { display: block; }
.autocomplete-item {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    border-bottom: 1px solid var(--slate-100);
    text-decoration: none;
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover,
.autocomplete-item.is-active {
    background: var(--emerald-50);
    text-decoration: none;
}
.autocomplete-custom-item-content { display: flex; flex-direction: column; }
.autocomplete-custom-item-title { font-weight: 600; color: var(--foreground); }
.autocomplete-custom-item-subtitle { font-size: 0.8125rem; color: var(--muted); margin-top: 0.125rem; }
.autocomplete-custom-content {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    color: var(--muted);
    background: var(--slate-50);
    border-top: 1px solid var(--border);
}

.form-icon-trailing { padding-right: 2.5rem; }
.trailing {
    position: absolute;
    top: 50%;
    right: 0.625rem;
    transform: translateY(-50%);
    color: var(--muted);
    line-height: 1;
    font-size: 1.25rem;
    user-select: none;
}
.trailing.clear { cursor: pointer; }
.trailing.clear:hover { color: var(--foreground); }
.trailing.clear:focus { color: var(--emerald-600); outline: none; }

/* ---------- Breadcrumbs (schema.org BreadcrumbList) ---------- */

[itemtype$="BreadcrumbList"] {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.875rem;
}
[itemtype$="BreadcrumbList"] a { color: var(--muted); }
[itemtype$="BreadcrumbList"] a:hover { color: var(--emerald-700); text-decoration: none; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.site-footer > .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.site-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .site-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
    .site-footer-grid { grid-template-columns: repeat(6, 1fr); }
    .site-footer-brand { grid-column: span 2; }
}
.site-footer h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-400);
    margin: 0 0 0.75rem 0;
}
.site-footer .brand-mark { background: var(--emerald-600); }
.site-footer .navbar-brand,
.site-footer .navbar-brand:hover { color: #fff; }
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer a,
.site-footer .muted-text {
    color: var(--slate-300);
    font-size: 0.875rem;
}
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .muted-text { color: var(--slate-500); }

/* Brand-column tagline + social icons (mirrors the web app Footer). */
.site-footer-tagline {
    margin-top: 0.75rem;
    max-width: 20rem;
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.625;
}
.site-footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--slate-700);
    border-radius: 9999px;
    color: var(--slate-400);
}
.site-footer-social a:hover {
    border-color: var(--emerald-500);
    color: #fff;
    text-decoration: none;
}
.site-footer-social svg { width: 1rem; height: 1rem; }

.site-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-800);
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-500);
}

/* ---------- Accessibility helpers ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- Misc utilities seen in markup ---------- */

.img-fluid { max-width: 100%; height: auto; }
.was-validated:invalid { /* placeholder so :invalid stays specific */ }
sup { vertical-align: super; font-size: 0.75em; }

/* Leftover Bootstrap-3 Glyphicon usage (warning icon on the 2FA recovery
   pages — GenerateRecoveryCodes / ResetAuthenticator). The glyphicon font was
   dropped with MDB; render the one glyph actually used so it isn't a blank gap. */
.glyphicon { display: inline-block; margin-right: 0.375rem; }
.glyphicon-warning-sign::before { content: "\26A0"; } /* ⚠ */

/* 2FA recovery codes — monospace chips (ShowRecoveryCodes). */
.recovery-code {
    display: inline-block;
    margin: 0.125rem 0;
    padding: 0.25rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--slate-800);
    background: var(--slate-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

/* Ordered step list (EnableAuthenticator). */
ol.list { padding-left: 1.25rem; }
ol.list > li { margin-bottom: 1rem; }

/* Inline keyboard/key element — the 2FA shared key on EnableAuthenticator
   (browser-default <kbd> is inconsistent; match the recovery-code chip). */
kbd {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.15rem 0.4rem;
    color: var(--slate-800);
    background: var(--slate-100);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
