:root {
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga" 1, "calt" 1;
    /* enable OpenType features */
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Only style plain links, not button-styled links */
a:not([class*="bg-"]):not([class*="btn"]) {
    color: #051F7D;
    text-decoration: none;
    font-weight: 500;
}

a:not([class*="bg-"]):not([class*="btn"]):hover {
    color: #000a2f;
    background-color: whitesmoke;
}

/* Header */
.header {
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: #f8fafc;
}

@media (min-width: 768px) {
    .header {
        margin-bottom: 1.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

.header-surface {
    position: relative;
    padding: 0.85rem 1.75rem;
    background-color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.75rem;
    box-shadow:
        0 22px 45px -20px rgba(15, 23, 42, 0.28),
        0 12px 25px -15px rgba(5, 31, 125, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

@media (min-width: 768px) {
    .header-surface {
        padding: 1.1rem 2.75rem;
    }
}

@media (max-width: 1024px) {
    .header-surface {
        border-radius: 1.25rem;
    }
}

@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .header-surface {
        background-color: #ffffff;
    }
}

.btn-primary {
    background-color: #051F7D;
    border-color: #051F7D;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #001356 !important;
    border-color: #001356 !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #6B7EBB !important;
    border-color: #6B7EBB !important;
}

/* Legacy Bootstrap table styling within prose sections */
.prose table.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose table.table th,
.prose table.table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.prose table.table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.prose table.table-striped tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

.prose table.table-striped tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.prose table.table tbody tr:hover {
    background-color: #f3f4f6;
}

/* Improved prose paragraph spacing */
.prose p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.prose h3,
.prose h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.prose ul,
.prose ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
