:root {
    --brand-primary: #0b4b8c;
    --brand-secondary: #1f7cc0;
    --brand-accent: #f4b400;
    --brand-muted: #6b7a90;
    --surface-default: #ffffff;
    --surface-subtle: #f5f7fb;
    --border-soft: rgba(15, 43, 80, 0.12);
    --shadow-soft: 0 15px 35px rgba(15, 43, 80, 0.08);
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    background: var(--surface-subtle);
    color: #1f2d3d;
    margin: 0;
}

a {
    color: var(--brand-secondary);
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--brand-primary);
    text-decoration: none;
}

.skip-to-content {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--brand-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    z-index: 1100;
    transition: left 0.2s ease;
}

.skip-to-content:focus {
    left: 10px;
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header__top {
    background: linear-gradient(135deg, var(--brand-primary), #0b66ad);
    color: #e8f1fc;
    padding: 0.65rem 0;
    font-size: 0.875rem;
}

.site-header__brand {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-header .greeting {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.site-header .divider {
    width: 1px;
    height: 1.25rem;
    background-color: rgba(255, 255, 255, 0.25);
    display: inline-block;
}

.site-header__context {
    font-size: 0.875rem;
    color: #d9e6fa;
}

.site-header__nav {
    background: var(--surface-default);
}

.site-header__nav .navbar {
    margin-bottom: 0;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
}

.site-header__nav .navbar-brand img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease;
}

.site-header__nav .navbar-brand:hover img,
.site-header__nav .navbar-brand:focus img {
    transform: scale(1.02);
}

.site-header__nav .nav > li > a {
    color: var(--brand-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-header__nav .nav > li > a:hover,
.site-header__nav .nav > li > a:focus {
    color: var(--brand-secondary);
}

.app-main {
    flex: 1;
    position: relative;
    padding-bottom: 3rem;
}

.app-main__content {
    opacity: 1;
    min-height: 40vh;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay__content .loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 75, 140, 0.12);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.global-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.global-loading__content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 25px 55px rgba(15, 43, 80, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    max-width: 320px;
}

.global-loading__spinner {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 4px solid rgba(11, 75, 140, 0.15);
    border-top-color: var(--brand-secondary);
    animation: global-loading-spin 0.8s linear infinite;
}

.global-loading__text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-primary);
    letter-spacing: 0.02em;
}

@keyframes global-loading-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.site-footer {
    background: var(--surface-default);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-soft);
}

.site-footer .footer-text {
    margin: 0.25rem 0 0;
    color: var(--brand-muted);
}

.site-footer .footer-links {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.site-footer .footer-links a {
    color: var(--brand-primary);
}

label.select,
label.select select,
label.select .select2-container {
    width: 100% !important;
}

select.customSelect {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 2.75rem 0.65rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    background-color: var(--surface-default);
    background-image: linear-gradient(45deg, transparent 50%, var(--brand-secondary) 50%),
        linear-gradient(135deg, var(--brand-secondary) 50%, transparent 50%),
        linear-gradient(to right, rgba(15, 43, 80, 0.12), rgba(15, 43, 80, 0.12));
    background-position: calc(100% - 1.3rem) center, calc(100% - 0.75rem) center, calc(100% - 2.6rem) center;
    background-size: 0.65rem 0.65rem, 0.65rem 0.65rem, 1px 1.5rem;
    background-repeat: no-repeat;
    color: #1f2d3d;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 35px rgba(15, 43, 80, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.customSelect:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(31, 124, 192, 0.15);
    background-color: #fff;
}

select.customSelect:hover {
    border-color: rgba(31, 124, 192, 0.55);
}

select.customSelect::-ms-expand {
    display: none;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: var(--surface-default);
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    min-height: 3.125rem;
    padding: 0.75rem 3rem 0.75rem 1rem;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 35px rgba(15, 43, 80, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1f2d3d;
    font-weight: 500;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 1.1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--brand-secondary) transparent transparent transparent;
    border-width: 6px 5px 0 5px;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(31, 124, 192, 0.15);
}

.select2-container--default .select2-selection--multiple {
    background-color: var(--surface-default);
    border: 1px solid var(--border-soft);
    border-radius: 0.85rem;
    box-shadow: 0 12px 35px rgba(15, 43, 80, 0.08);
    min-height: 3.125rem;
    padding: 0.4rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(11, 75, 140, 0.12);
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--brand-secondary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(11, 75, 140, 0.15);
    color: var(--brand-primary);
}

.select2-dropdown {
    border: 1px solid rgba(15, 43, 80, 0.1);
    box-shadow: 0 20px 45px rgba(15, 43, 80, 0.12);
    border-radius: 0.85rem;
    overflow: hidden;
}

.breadcrumbs {
    background: transparent;
    padding: 1.5rem 0 0.5rem;
}

.breadcrumbs .breadcrumb {
    background: transparent;
    margin: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bg-grey {
    background: transparent;
}

.content,
.content-lg,
.content-xs {
    padding: 0;
}

.title-box {
    background: var(--surface-default);
    border-radius: 1.25rem;
    padding: 3.5rem 4rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 4rem auto;
}

.title-box-text {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.title-box .btn {
    padding: 0.85rem 2.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.hero-section {
    padding: 4rem 0 2rem;
}

.hero-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: stretch;
    padding: 3.5rem;
    background: linear-gradient(135deg, rgba(11, 75, 140, 0.08), rgba(31, 124, 192, 0.12));
    border-radius: 2rem;
    box-shadow: var(--shadow-soft);
}

.hero-copy h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--brand-primary);
}

.hero-copy p {
    font-size: 1.05rem;
    color: #2d3f54;
    margin-bottom: 2rem;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--brand-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-highlight__card {
    background: var(--surface-default);
    border-radius: 1.75rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    max-width: 320px;
}

.hero-highlight__icon {
    font-size: 2.5rem;
    color: var(--brand-secondary);
    margin-bottom: 1.25rem;
}

.hero-highlight__card h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.hero-highlight__card p {
    color: var(--brand-muted);
    margin: 0;
}

.feature-section {
    padding: 2rem 0 4rem;
}

.feature-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    background: var(--surface-default);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(11, 75, 140, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px rgba(15, 43, 80, 0.12);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--brand-muted);
    margin: 0;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(11, 75, 140, 0.12);
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.card,
.search-panel,
.normative-card,
.viewer-card {
    background: var(--surface-default);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(12, 63, 110, 0.08);
}

.search-panel {
    padding: 2.5rem;
    margin-top: 2rem;
}

.search-panel header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--brand-primary);
}

.search-panel__header h2 {
    margin: 0 0 0.5rem;
}

.search-panel__header p {
    margin: 0;
    color: var(--brand-muted);
    font-size: 0.95rem;
}

.search-panel fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.filter-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.filter-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-flow: dense;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.filter-field--wide {
    grid-column: span 2;
}

.filter-field--compact {
    grid-column: span 1;
}

.filter-field__label {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-muted);
}

.filter-field__control {
    position: relative;
}

.modern-input {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(11, 75, 140, 0.06);
    border-radius: 0.85rem;
    border: 1px solid transparent;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-height: 3.25rem;
    padding: 0 1rem;
    gap: 0.75rem;
}

.modern-input--icon .modern-input__icon {
    font-size: 1rem;
    color: var(--brand-primary);
    pointer-events: none;
}

.modern-input input,
.modern-input textarea {
    flex: 1 1 auto;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #243447;
    padding: 0;
    height: auto;
}

.modern-input input:focus,
.modern-input textarea:focus {
    outline: none;
}

.modern-input:focus-within {
    border-color: rgba(11, 102, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.18);
    background: #fff;
}

.modern-input--date .modern-input__icon {
    color: var(--brand-secondary);
}

.modern-select {
    width: 100%;
    display: block;
    border-radius: 0.85rem;
    position: relative;
}

.modern-select select {
    width: 100%;
    max-width: 100%;
    border: 1px solid transparent;
    background: rgba(11, 75, 140, 0.06);
    padding: 0 2.75rem 0 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #243447;
    border-radius: inherit;
    appearance: none;
    min-height: 3.25rem;
    line-height: 1.2;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b4b8c' d='M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) 50%;
    background-size: 0.75rem;
}

.modern-select select::-ms-expand {
    display: none;
}

.modern-select select:hover {
    background: rgba(11, 75, 140, 0.1);
}

.modern-select select:focus {
    outline: none;
    border-color: rgba(11, 102, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.18);
    background: #fff;
}

.modern-select select:disabled {
    background: rgba(11, 75, 140, 0.04);
    color: var(--brand-muted);
    cursor: not-allowed;
}

.modern-select .select2-container {
    width: 100% !important;
}

.modern-select .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 3.25rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    background: rgba(11, 75, 140, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.modern-select .select2-container--default .select2-selection--single:hover,
.modern-select .select2-container--default .select2-selection--single:focus {
    border-color: rgba(11, 102, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.18);
    background: #fff;
    outline: none;
}

.modern-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #243447;
    padding-left: 0;
    padding-right: 2rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.2;
}

.modern-select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 0.75rem;
    width: 1.5rem;
}

.modern-select .select2-container--default .select2-selection--single .select2-selection__arrow b {
    margin: 0;
    position: relative;
    border: none;
    width: 100%;
    height: 100%;
}

.modern-select .select2-container--default .select2-selection--single .select2-selection__arrow b::before {
    content: "\f107";
    font-family: FontAwesome;
    font-size: 0.9rem;
    color: var(--brand-primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modern-select .select2-container--default.select2-container--open .select2-selection--single {
    border-color: rgba(11, 102, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.18);
    background: #fff;
}

.modern-select .select2-results__option {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.modern-select .select2-results__option--highlighted {
    background: rgba(11, 102, 173, 0.12);
    color: var(--brand-primary);
}

.modern-select .select2-results__option[aria-selected=true] {
    background: rgba(11, 75, 140, 0.08);
    color: var(--brand-primary);
}

.filter-field__control .modern-select {
    display: block;
}

.filter-field__control .modern-select select.customSelect {
    width: 100%;
    max-width: 100%;
    border: 1px solid transparent;
    background: rgba(11, 75, 140, 0.06);
    padding: 0 2.75rem 0 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: #243447;
    border-radius: 0.85rem;
    appearance: none;
    min-height: 3.25rem;
    line-height: 1.2;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230b4b8c' d='M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) 50%;
    background-size: 0.75rem;
}

.filter-field__control .modern-select select.customSelect:hover {
    background: rgba(11, 75, 140, 0.1);
}

.filter-field__control .modern-select select.customSelect:focus {
    outline: none;
    border-color: rgba(11, 102, 173, 0.5);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.18);
    background: #fff;
}

.filter-field__control .modern-select select.customSelect:disabled {
    background: rgba(11, 75, 140, 0.04);
    color: var(--brand-muted);
    cursor: not-allowed;
}

.search-panel .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.search-panel .row > section {
    padding: 0 0.75rem 1.5rem;
}

.search-panel label.label,
.search-panel label > label {
    font-weight: 500;
    color: var(--brand-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.search-panel label.input,
.search-panel label.select {
    background: rgba(11, 75, 140, 0.04);
    border-radius: 0.85rem;
    border: 1px solid transparent;
    padding: 0.65rem 0.85rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-panel label.input:focus-within,
.search-panel label.select:focus-within {
    border-color: rgba(11, 102, 173, 0.4);
    box-shadow: 0 0 0 3px rgba(11, 102, 173, 0.15);
    background: #fff;
}

.search-panel .text-right {
    text-align: right;
    color: var(--brand-muted);
    font-size: 0.85rem;
}

.filter-hint {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(11, 75, 140, 0.08);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    color: var(--brand-primary);
}

.filter-hint__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(11, 102, 173, 0.12);
}

.filter-hint__icon i {
    font-size: 1.25rem;
}

.filter-hint__content {
    font-size: 0.95rem;
    color: #243447;
}

.filter-hint__content strong {
    color: var(--brand-primary);
}

.btn,
.btn-u,
a.btn-u {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
}

.btn i,
.btn-u i,
a.btn-u i {
    line-height: 1;
    margin: 0;
}

.btn.btn-block,
.btn-u.btn-block,
a.btn-u.btn-block {
    display: flex;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.filter-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    letter-spacing: 0.05em;
}

.btn-u {
    border-radius: 999px;
    padding: 0.65rem 1.85rem;
    font-weight: 600;
}

.btn-u.btn-u-default {
    background: rgba(11, 102, 173, 0.12);
    color: var(--brand-primary);
}

.btn-u.btn-u-blue,
.btn-u.btn-u-dark-blue {
    background: var(--brand-primary);
    color: #fff;
}

.btn-u.btn-u-orange {
    background: var(--brand-accent);
    color: #0d2236;
}

.normative-results {
    margin-top: 2.5rem;
    display: grid;
    gap: 1.75rem;
}

.results-wrapper {
    margin-top: 3rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-summary p {
    margin: 0;
    color: var(--brand-muted);
}

.results-header .btn-link {
    color: var(--brand-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0;
    background: transparent;
    border: none;
}

.results-header .btn-link:hover,
.results-header .btn-link:focus {
    color: var(--brand-primary);
    text-decoration: none;
}

.normative-card {
    padding: 2rem 2.25rem;
}

.normative-card__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.normative-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand-primary);
}

.normative-card__meta {
    font-size: 0.95rem;
    color: var(--brand-muted);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.normative-card__body {
    margin-top: 1rem;
    color: #243447;
    line-height: 1.6;
}

.normative-card__footer {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.normative-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: rgba(11, 102, 173, 0.08);
    color: var(--brand-primary);
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.viewer-card {
    padding: 2.75rem;
    margin: 2.5rem auto;
}

.viewer-card__header {
    margin-bottom: 2rem;
}

.viewer-card__header--center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.viewer-card__header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.viewer-card__header p {
    margin: 0;
    color: var(--brand-muted);
}

.viewer-card__body {
    line-height: 1.7;
    color: #243447;
}

.viewer-card__canvas {
    position: relative;
    padding: 2.5rem 1.5rem;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.65), rgba(243, 245, 249, 0.95));
    border-radius: 2rem;
    box-shadow: inset 0 0 0 1px rgba(212, 219, 237, 0.5);
}

.viewer-card__canvas::after {
    content: "";
    position: absolute;
    inset: 1.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(43, 87, 154, 0.15);
    pointer-events: none;
}

.viewer-card__canvas > * {
    position: relative;
    z-index: 1;
}

.viewer-card__content {
    display: grid;
    gap: 1.25rem;
}

.viewer-card__content.word-document {
    display: block;
    max-width: 820px;
    margin: 0 auto;
    padding: 2.75rem 3.25rem;
    background: #ffffff;
    border: 1px solid rgba(207, 215, 230, 0.8);
    box-shadow: 0 35px 55px rgba(36, 52, 71, 0.12);
    border-radius: 4px;
    font-family: "Calibri", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #1b1f24;
}

.viewer-card__content.word-document > *:last-child {
    margin-bottom: 0;
}

.viewer-card__content.word-document p {
    margin: 0 0 0.95rem;
    text-align: justify;
    text-justify: inter-word;
}

.viewer-card__content.word-document h1,
.viewer-card__content.word-document h2,
.viewer-card__content.word-document h3,
.viewer-card__content.word-document h4,
.viewer-card__content.word-document h5,
.viewer-card__content.word-document h6 {
    color: #2b579a;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.viewer-card__content.word-document ul,
.viewer-card__content.word-document ol {
    margin: 0 0 1rem 1.75rem;
    padding: 0;
}

.viewer-card__content.word-document table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.98rem;
}

.viewer-card__content.word-document table th,
.viewer-card__content.word-document table td {
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0.75rem;
    text-align: left;
}

.viewer-card__content.word-document table th {
    background: rgba(43, 87, 154, 0.08);
    font-weight: 600;
}

.viewer-card__restricted {
    padding: 3rem 1.5rem;
    color: var(--brand-primary);
}

.viewer-card__restricted .heading-md {
    margin-top: 1.5rem;
    color: var(--brand-primary);
}

.viewer-card .headline h3 {
    font-size: 1.5rem;
    color: var(--brand-primary);
    font-weight: 600;
}

.viewer-card__footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-soft);
}

.viewer-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.viewer-card__actions .btn {
    border-radius: 999px;
}

.alert.alert-warning {
    border-radius: 1rem;
    border: 1px solid rgba(244, 180, 0, 0.35);
    box-shadow: 0 12px 25px rgba(244, 180, 0, 0.1);
}

@media (max-width: 768px) {
    .viewer-card__canvas {
        padding: 1.5rem 0.75rem;
    }

    .viewer-card__canvas::after {
        inset: 0.75rem;
    }

    .viewer-card__content.word-document {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 991px) {
    .title-box {
        flex-direction: column;
        text-align: center;
        padding: 2.75rem 2.5rem;
    }

    .search-panel {
        padding: 2rem 1.5rem;
    }

    .filter-grid--two {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .filter-grid--auto {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .filter-field--wide {
        grid-column: span 1;
    }

    .site-header__nav .navbar-brand img {
        height: 40px;
    }

    .hero-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2.75rem 2.25rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-highlight {
        order: -1;
    }
}

@media (max-width: 767px) {
    .site-header__top {
        text-align: center;
    }

    .site-header__brand,
    .site-header__context {
        width: 100%;
        justify-content: center;
    }

    .search-panel .row > section {
        padding-bottom: 1.25rem;
    }

    .filter-grid {
        margin-bottom: 1.25rem;
    }

    .filter-grid--auto,
    .filter-grid--two {
        grid-template-columns: 1fr;
    }

    .normative-card {
        padding: 1.75rem;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .filter-actions .btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

.viewer-card__content.viewer-card__editor {
    display: block;
    padding: 0;
}

.viewer-card__editor .cke_chrome {
    border: none;
    box-shadow: none;
    background: transparent;
}

.viewer-card__editor .cke_inner {
    background: transparent;
}

.viewer-card__editor .cke_contents {
    background: transparent;
    padding: 0;
}

.viewer-card__editor .cke_top,
.viewer-card__editor .cke_bottom {
    display: none !important;
}
