﻿:root {
    --portal-primary: #1f4f9f;
    --portal-primary-strong: #183766;
    --portal-primary-soft: #2b67cb;
    --portal-primary-rgb: 31, 79, 159;
    --portal-primary-strong-rgb: 24, 55, 102;
    --portal-primary-soft-rgb: 43, 103, 203;
    --portal-secondary: #f0a500;
    --portal-secondary-soft: #ffdd8b;
    --portal-secondary-rgb: 240, 165, 0;
    --portal-secondary-soft-rgb: 255, 221, 139;
    --portal-secondary-ink: #10284a;
    --portal-blue-dark: #183766;
    --portal-blue-mid: #1f4f9f;
    --portal-blue-light: #2b67cb;
    --portal-green: #f0a500;
    --portal-gold: #f0a500;
    --portal-gold-soft: #ffdd8b;
    --portal-ink: #1f2937;
    --portal-muted: #667085;
    --portal-bg: #f4f7fb;
    --portal-surface: #ffffff;
    --portal-border: #dbe3ef;
    --portal-shadow: 0 16px 40px rgba(var(--portal-primary-strong-rgb), 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", sans-serif;
    color: var(--portal-ink);
    background:
        radial-gradient(circle at top right, rgba(var(--portal-primary-soft-rgb), 0.08), transparent 24%),
        linear-gradient(180deg, #f9fbff 0%, #f4f7fb 100%);
}

body.portal-high-contrast {
    background: #000;
    color: #fff;
}

body.portal-high-contrast .portal-surface,
body.portal-high-contrast .card,
body.portal-high-contrast .list-group-item,
body.portal-high-contrast .table,
body.portal-high-contrast .form-control,
body.portal-high-contrast .form-select,
body.portal-high-contrast .modal-content,
body.portal-high-contrast .portal-sidebar-card,
body.portal-high-contrast .page-header-card,
body.portal-high-contrast .news-card,
body.portal-high-contrast .ver-card,
body.portal-high-contrast .transparency-card {
    background: #111 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.portal-high-contrast a,
body.portal-high-contrast .text-muted,
body.portal-high-contrast .portal-footer a,
body.portal-high-contrast .portal-topbar a {
    color: #fff !important;
}

body.portal-high-contrast .btn {
    border-color: #fff !important;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 1100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--portal-secondary);
    color: var(--portal-secondary-ink);
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.portal-topbar {
    background: var(--portal-blue-dark);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
}

.portal-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.portal-topbar a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    margin-right: 18px;
}

.portal-topbar a:last-child {
    margin-right: 0;
}

.portal-topbar a:hover {
    color: #fff;
}

.portal-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
    border-bottom: 1px solid rgba(var(--portal-primary-strong-rgb), 0.08);
}

.portal-header .container {
    position: relative;
    z-index: 2;
    padding-top: 14px;
    padding-bottom: 14px;
}

.portal-header-has-cover {
    min-height: 208px;
}

.portal-header-cover {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(var(--portal-primary-strong-rgb), 0.46) 100%),
        linear-gradient(180deg, rgba(var(--portal-primary-rgb), 0.1), rgba(var(--portal-primary-strong-rgb), 0.16)),
        var(--portal-header-cover) center/cover no-repeat;
}

.portal-header-panel {
    display: flex;
    align-items: center;
    min-height: 168px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    max-width: min(720px, 100%);
}

.portal-brand-copy {
    max-width: 100%;
}

.portal-brand:hover {
    color: inherit;
}

.portal-brand-mark {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--portal-blue-dark);
    flex-shrink: 0;
}

.portal-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(var(--portal-primary-strong-rgb), 0.18));
}

.portal-brand-eyebrow {
    margin: 0;
    color: var(--portal-blue-mid);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.portal-brand-title {
    margin: 0;
    font-family: "Merriweather", serif;
    font-size: clamp(1.35rem, 2.7vw, 1.9rem);
    color: var(--portal-blue-dark);
}

.portal-brand-subtitle {
    margin: 6px 0 0;
    color: var(--portal-muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.portal-nav-shell {
    background: var(--portal-blue-mid);
    box-shadow: 0 10px 20px rgba(var(--portal-primary-strong-rgb), 0.12);
}

.portal-nav-shell .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.portal-nav-shell .navbar-toggler {
    margin: 10px 0;
    border-color: rgba(255, 255, 255, 0.28);
}

.portal-nav-shell .navbar-toggler:focus {
    box-shadow: none;
}

.portal-nav-shell .nav-link {
    color: #fff !important;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 14px !important;
}

.portal-nav-shell .nav-link:hover,
.portal-nav-shell .nav-item.active > .nav-link,
.portal-nav-shell .nav-item.show > .nav-link {
    background: rgba(255, 255, 255, 0.12);
}

.portal-nav-shell .dropdown-menu {
    border: 0;
    border-radius: 0 0 14px 14px;
    padding: 8px 0;
    min-width: 260px;
    background: var(--portal-blue-dark);
    box-shadow: 0 18px 32px rgba(12, 27, 51, 0.22);
}

.portal-nav-shell .dropdown-item {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 18px;
}

.portal-nav-shell .dropdown-item:hover,
.portal-nav-shell .dropdown-item:focus {
    background: rgba(var(--portal-primary-soft-rgb), 0.4);
    color: #fff;
}

.portal-shell {
    padding-bottom: 56px;
}

.home-hero {
    padding: 34px 0 18px;
}

.hero-panel,
.home-surface,
.portal-surface,
.page-header-card,
.portal-sidebar-card,
.news-card,
.ver-card,
.transparency-card,
.portal-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 24px;
    box-shadow: var(--portal-shadow);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(var(--portal-secondary-rgb), 0.18), transparent 26%),
        radial-gradient(circle at bottom left, rgba(var(--portal-primary-soft-rgb), 0.14), transparent 30%);
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(var(--portal-primary-rgb), 0.1);
    color: var(--portal-blue-mid);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    margin: 18px 0 12px;
    font-family: "Merriweather", serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.15;
    color: var(--portal-blue-dark);
}

.hero-lead {
    max-width: 660px;
    color: var(--portal-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.portal-btn-primary,
.portal-btn-secondary,
.portal-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.portal-btn-primary {
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    color: #fff;
    box-shadow: 0 12px 24px rgba(var(--portal-primary-rgb), 0.18);
}

.portal-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.portal-btn-secondary {
    background: linear-gradient(135deg, var(--portal-secondary), var(--portal-secondary-soft));
    color: var(--portal-secondary-ink);
}

.portal-btn-secondary:hover {
    color: var(--portal-secondary-ink);
    transform: translateY(-1px);
}

.portal-btn-outline {
    border: 1px solid rgba(var(--portal-primary-rgb), 0.2);
    background: rgba(var(--portal-primary-rgb), 0.04);
    color: var(--portal-blue-mid);
}

.portal-btn-outline:hover {
    color: var(--portal-blue-mid);
    border-color: rgba(var(--portal-primary-rgb), 0.34);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.hero-stat {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.12);
    background: rgba(255, 255, 255, 0.86);
}

.hero-stat strong {
    display: block;
    color: var(--portal-blue-dark);
    font-family: "Merriweather", serif;
    font-size: 1.75rem;
}

.hero-stat span {
    color: var(--portal-muted);
    font-size: 0.86rem;
}

.portal-section {
    padding: 18px 0 8px;
}

.portal-section-muted {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(var(--portal-primary-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--portal-primary-rgb), 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 22px;
}

.section-title {
    margin: 8px 0 0;
    font-family: "Merriweather", serif;
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    color: var(--portal-blue-dark);
}

.section-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--portal-blue-mid);
}

.section-link:hover {
    color: var(--portal-blue-mid);
    text-decoration: underline;
}

.quick-link-card,
.transparency-card,
.portal-sidebar-card .list-group-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link-card {
    height: 100%;
    padding: 22px 18px;
    text-decoration: none;
    color: inherit;
}

.quick-link-card:hover,
.news-card:hover,
.ver-card:hover,
.transparency-card:hover,
.portal-sidebar-card .list-group-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px rgba(var(--portal-primary-strong-rgb), 0.12);
}

.quick-link-icon,
.transparency-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.quick-link-icon.blue,
.transparency-icon.blue {
    color: var(--portal-blue-mid);
    background: rgba(var(--portal-primary-rgb), 0.1);
}

.quick-link-icon.green,
.transparency-icon.green {
    color: var(--portal-green);
    background: rgba(var(--portal-secondary-rgb), 0.12);
}

.quick-link-icon.gold,
.transparency-icon.gold {
    color: #ba7d00;
    background: rgba(var(--portal-secondary-rgb), 0.14);
}

.quick-link-icon.red,
.transparency-icon.red {
    color: #c0392b;
    background: rgba(192, 57, 43, 0.12);
}

.quick-link-card h3,
.news-card h3,
.ver-card h3,
.transparency-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.quick-link-card p,
.news-card p,
.ver-card p,
.transparency-card p,
.portal-muted {
    color: var(--portal-muted);
    line-height: 1.6;
}

.portal-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--portal-blue-mid);
}

.portal-mini-link:hover {
    color: var(--portal-blue-mid);
    text-decoration: underline;
}

.news-card {
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.news-media {
    height: 190px;
    background: linear-gradient(135deg, var(--portal-blue-dark), var(--portal-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 3rem;
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(var(--portal-primary-rgb), 0.1);
    color: var(--portal-blue-mid);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-date {
    color: var(--portal-muted);
    font-size: 0.82rem;
}

.ver-card {
    height: 100%;
    padding: 24px 20px;
    text-decoration: none;
    color: inherit;
}

.ver-card-compact {
    padding: 18px 14px;
    min-height: auto;
}

.ver-card-compact .ver-avatar {
    width: 72px;
    height: 72px;
    margin-bottom: 10px;
}

.ver-card-compact h3 {
    font-size: 0.94rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.ver-card-compact p {
    font-size: 0.8rem;
    line-height: 1.45;
}

.ver-card-directory {
    padding: 18px 14px;
    min-height: auto;
}

.ver-card-directory .ver-avatar {
    width: 108px;
    height: 108px;
    margin-bottom: 12px;
}

.ver-card-directory h3 {
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.ver-card-directory p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.ver-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 14px;
    border: 3px solid rgba(var(--portal-primary-rgb), 0.18);
    background: linear-gradient(135deg, #edf4ff, #d5e2fa);
}

.ver-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--portal-blue-dark);
}

.ver-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(var(--portal-secondary-rgb), 0.12);
    color: var(--portal-green);
    font-size: 0.74rem;
    font-weight: 700;
}

.ver-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    color: var(--portal-muted);
    font-size: 0.86rem;
}

.feature-grid-card {
    height: 100%;
    padding: 22px;
}

.feature-grid-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--portal-blue-dark);
    margin-bottom: 14px;
}

.feature-grid-card ul {
    padding-left: 18px;
    margin-bottom: 0;
    color: var(--portal-muted);
}

.feature-grid-card li + li {
    margin-top: 10px;
}

.cta-banner {
    margin-top: 18px;
    background: linear-gradient(135deg, var(--portal-blue-dark), var(--portal-blue-mid));
    color: #fff;
    overflow: hidden;
}

.cta-banner .portal-card-body {
    padding: 28px 30px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cta-banner h3 {
    margin: 14px 0 8px;
    font-family: "Merriweather", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-banner p {
    max-width: 720px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-header {
    padding: 28px 0 12px;
}

.page-header-card {
    padding: 28px 30px;
}

.page-header-card h1 {
    margin: 10px 0 8px;
    font-family: "Merriweather", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--portal-blue-dark);
}

.page-header-card p {
    margin-bottom: 0;
    color: var(--portal-muted);
    max-width: 780px;
}

.portal-breadcrumb {
    margin-bottom: 0;
}

.portal-breadcrumb .breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
}

.portal-breadcrumb .breadcrumb-item,
.portal-breadcrumb .breadcrumb-item a {
    color: var(--portal-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.portal-breadcrumb .breadcrumb-item.active {
    color: var(--portal-blue-mid);
    font-weight: 700;
}

.portal-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(102, 112, 133, 0.42);
}

.portal-main-content {
    padding-bottom: 16px;
}

.portal-page-content > .d-flex.justify-content-center.mb-2:first-child {
    display: none;
}

.portal-page-content .card {
    border: 1px solid var(--portal-border);
    border-radius: 24px;
    box-shadow: var(--portal-shadow);
}

.portal-page-content .card-header {
    background: linear-gradient(180deg, rgba(var(--portal-primary-rgb), 0.06), rgba(var(--portal-primary-rgb), 0.02));
    border-bottom: 1px solid rgba(var(--portal-primary-rgb), 0.1);
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
}

.portal-page-content .list-group-item {
    border-color: var(--portal-border);
}

.portal-page-content .table {
    margin-bottom: 0;
    vertical-align: middle;
}

.portal-page-content .table thead th {
    border-bottom: 0;
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.portal-page-content .table td,
.portal-page-content .table th {
    padding: 0.82rem 0.78rem;
    border-color: rgba(var(--portal-primary-rgb), 0.1);
}

.portal-page-content .table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(var(--portal-primary-rgb), 0.02);
}

.portal-page-content .table-hover > tbody > tr:hover > * {
    background-color: rgba(var(--portal-primary-soft-rgb), 0.06);
}

.portal-page-content .form-control,
.portal-page-content .form-select,
.portal-search-input {
    min-height: 46px;
    border-color: rgba(var(--portal-primary-rgb), 0.14);
    border-radius: 14px;
    box-shadow: none;
}

.portal-page-content textarea.form-control {
    min-height: 140px;
}

.portal-page-content .form-control:focus,
.portal-page-content .form-select:focus,
.portal-search-input:focus {
    border-color: rgba(var(--portal-primary-rgb), 0.34);
    box-shadow: 0 0 0 0.18rem rgba(var(--portal-primary-rgb), 0.12);
}

.portal-page-content .btn-primary,
.portal-page-content .btn-secondary,
.portal-page-content .btn-outline-primary,
.portal-page-content .btn-outline-secondary,
.portal-page-content .btn-outline-success,
.portal-page-content .btn-outline-info {
    min-height: 42px;
    border-radius: 14px;
    font-weight: 700;
}

.portal-page-content .btn-primary,
.dt-buttons .btn {
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    border-color: transparent;
}

.portal-page-content .btn-primary:hover,
.dt-buttons .btn:hover {
    background: linear-gradient(135deg, var(--portal-primary-strong), var(--portal-primary-soft));
    border-color: transparent;
}

.portal-page-content .btn-secondary {
    background: #eef3fb;
    color: var(--portal-blue-dark);
    border-color: rgba(var(--portal-primary-rgb), 0.12);
}

.portal-page-content .btn-secondary:hover {
    background: #dfe8f7;
    color: var(--portal-blue-dark);
    border-color: rgba(var(--portal-primary-rgb), 0.18);
}

.portal-page-content .pagination {
    margin-top: 26px;
}

.portal-page-content .pagination .pagination {
    gap: 8px;
}

.portal-pagination-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
}

.portal-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.portal-pagination .page-item {
    list-style: none;
}

.portal-page-content .page-link {
    border-radius: 12px;
    border-color: rgba(var(--portal-primary-rgb), 0.12);
    color: var(--portal-blue-mid);
}

.portal-pagination .page-link {
    min-width: 46px;
    min-height: 46px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.12);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--portal-blue-mid);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(var(--portal-primary-strong-rgb), 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.portal-pagination .page-link:hover {
    color: var(--portal-blue-mid);
    text-decoration: none;
    background: #fff;
    border-color: rgba(var(--portal-primary-rgb), 0.2);
    box-shadow: 0 16px 28px rgba(var(--portal-primary-strong-rgb), 0.1);
    transform: translateY(-2px);
}

.portal-pagination .page-link-control {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
}

.portal-page-content .page-item.active .page-link {
    background: var(--portal-blue-mid);
    border-color: var(--portal-blue-mid);
}

.portal-pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    border-color: transparent;
    box-shadow: 0 14px 26px rgba(var(--portal-primary-rgb), 0.22);
}

.portal-pagination .page-item.disabled .page-link {
    color: #98a2b3;
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(152, 162, 179, 0.18);
    box-shadow: none;
    pointer-events: none;
}

.portal-page-content .badge {
    border-radius: 999px;
    padding: 0.45rem 0.72rem;
}

.portal-sidebar-card {
    padding: 22px;
}

.portal-sidebar-card h3 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--portal-blue-dark);
}

.portal-sidebar-card .list-group-item {
    border-radius: 16px !important;
    margin-bottom: 10px;
    border: 1px solid var(--portal-border);
}

.portal-sidebar-card .list-group-item:last-child {
    margin-bottom: 0;
}

.portal-sidebar-card .list-group-item a {
    text-decoration: none;
    color: var(--portal-blue-dark);
    font-weight: 600;
}

.portal-sidebar-video {
    overflow: hidden;
}

.portal-sidebar-video img {
    width: 100%;
    border-radius: 18px;
}

.portal-sidebar-video .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 4rem;
}

.portal-search-hero {
    padding: 28px 0;
}

.portal-search-card {
    padding: 30px;
    background: linear-gradient(135deg, var(--portal-blue-dark), var(--portal-blue-mid));
    color: #fff;
}

.portal-search-card p {
    color: rgba(255, 255, 255, 0.82);
}

.portal-search-card .input-group {
    overflow: hidden;
    border-radius: 16px;
}

.portal-search-card .portal-search-input {
    border: 0;
    border-radius: 0;
}

.portal-search-card .btn {
    min-height: 46px;
    border-radius: 0;
    border: 0;
    background: var(--portal-secondary);
    color: var(--portal-secondary-ink);
    font-weight: 700;
}

.transparency-group-title {
    margin: 0 0 16px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--portal-muted);
}

.transparency-card {
    display: block;
    height: 100%;
    padding: 22px 18px;
    text-decoration: none;
    color: inherit;
}

.portal-footer {
    background: linear-gradient(180deg, var(--portal-blue-dark), var(--portal-primary-strong));
    color: rgba(255, 255, 255, 0.8);
}

.portal-footer-top {
    padding: 34px 0 18px;
}

.portal-footer h4,
.portal-footer h5 {
    color: #fff;
    font-weight: 700;
}

.portal-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.portal-footer a:hover {
    color: #fff;
}

.portal-footer .portal-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.portal-footer .portal-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.portal-footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.portal-footer-brand .portal-brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.portal-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-footer-list li + li {
    margin-top: 10px;
}

.portal-footer-bottom {
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.portal-map-shell {
    margin-top: 22px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-map-frame,
#portal-map {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}

.portal-satisfaction {
    background: linear-gradient(135deg, rgba(var(--portal-secondary-rgb), 0.14), rgba(255, 255, 255, 0.86));
    border-top: 1px solid rgba(var(--portal-primary-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--portal-primary-rgb), 0.08);
}

.portal-satisfaction .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.portal-satisfaction-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--portal-blue-dark);
}

.portal-satisfaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-satisfaction-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.16);
    border-radius: 50%;
    background: #fff;
    font-size: 1.3rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.portal-satisfaction-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--portal-primary-rgb), 0.32);
}

.portal-accessibility-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    color: #fff;
    box-shadow: 0 18px 28px rgba(var(--portal-primary-strong-rgb), 0.24);
    z-index: 1051;
}

.portal-accessibility-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: min(320px, calc(100vw - 32px));
    padding: 18px;
    display: none;
    z-index: 1050;
}

.portal-accessibility-panel.is-open {
    display: block;
}

.portal-accessibility-panel h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--portal-blue-dark);
}

.portal-accessibility-panel p {
    color: var(--portal-muted);
    font-size: 0.86rem;
}

.portal-accessibility-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.portal-accessibility-actions .btn {
    min-height: 42px;
    border-radius: 14px;
    font-weight: 700;
}

.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1052;
    display: none;
    padding: 18px;
}

.cookie-consent p {
    margin-bottom: 14px;
    color: var(--portal-muted);
}

.cookie-consent .btn {
    min-height: 42px;
    border-radius: 14px;
    font-weight: 700;
}

.portal-empty {
    padding: 34px 20px;
    text-align: center;
    color: var(--portal-muted);
}

.portal-grid-gap {
    row-gap: 24px;
}

.document-showcase {
    padding: 24px;
}

.document-showcase-primary {
    background:
        radial-gradient(circle at top right, rgba(var(--portal-secondary-rgb), 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.document-showcase-header h3 {
    margin: 14px 0 8px;
    font-family: "Merriweather", serif;
    font-size: 1.35rem;
    color: var(--portal-blue-dark);
}

.document-showcase-header p {
    margin-bottom: 0;
    color: var(--portal-muted);
    line-height: 1.6;
}

.document-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.document-chip.blue {
    background: rgba(var(--portal-primary-rgb), 0.1);
    color: var(--portal-blue-mid);
}

.document-chip.green {
    background: rgba(var(--portal-secondary-rgb), 0.12);
    color: var(--portal-green);
}

.document-chip.gold {
    background: rgba(var(--portal-secondary-rgb), 0.14);
    color: #ba7d00;
}

.document-showcase-lead {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(var(--portal-primary-rgb), 0.06), rgba(var(--portal-primary-soft-rgb), 0.02));
    border: 1px solid rgba(var(--portal-primary-rgb), 0.1);
}

.document-lead-type {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--portal-blue-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.document-lead-title {
    display: block;
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--portal-blue-dark);
    text-decoration: none;
}

.document-lead-title:hover {
    color: var(--portal-blue-mid);
}

.document-showcase-lead p {
    margin-bottom: 14px;
    color: var(--portal-muted);
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--portal-muted);
    font-size: 0.84rem;
}

.document-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.document-list,
.document-stack {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.document-list-item,
.document-stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.09);
    background: rgba(255, 255, 255, 0.84);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.document-list-item:hover,
.document-stack-item:hover,
.edition-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--portal-primary-rgb), 0.18);
    box-shadow: 0 16px 24px rgba(var(--portal-primary-strong-rgb), 0.08);
}

.document-list-item strong,
.document-stack-item strong {
    display: block;
    color: var(--portal-blue-dark);
    font-size: 0.95rem;
}

.document-list-item span,
.document-stack-item span {
    color: var(--portal-muted);
    font-size: 0.82rem;
}

.document-stack-icon,
.edition-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(var(--portal-primary-rgb), 0.1);
    color: var(--portal-blue-mid);
}

.edition-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.edition-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 148px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.92));
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.edition-card strong {
    color: var(--portal-blue-dark);
    line-height: 1.4;
}

.edition-card span:last-child {
    color: var(--portal-muted);
    font-size: 0.84rem;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.thead-dark th {
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light)) !important;
    color: #fff !important;
}

.commission-card {
    padding: 28px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.commission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(var(--portal-primary-strong-rgb), 0.14);
    border-color: rgba(37, 99, 200, 0.24);
    text-decoration: none;
}

.commission-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.commission-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(30, 79, 160, 0.08);
    color: var(--portal-blue-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.commission-title {
    margin-bottom: 12px;
    color: var(--portal-blue-dark);
    font-family: 'Merriweather', serif;
    font-size: 1.18rem;
    line-height: 1.35;
}

.commission-summary {
    margin-bottom: 18px;
    min-height: 76px;
}

.commission-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.commission-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--portal-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.commission-meta i {
    color: var(--portal-blue-mid);
}

.commission-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(30, 79, 160, 0.12);
}

.commission-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(var(--portal-secondary-rgb), 0.1);
    color: var(--portal-green);
    font-size: 0.8rem;
    font-weight: 700;
}

.session-document-card,
.vote-session-card,
.vote-detail-card {
    padding: 28px;
}

.session-document-card h3,
.vote-session-card h3,
.vote-detail-title {
    margin-bottom: 12px;
    color: var(--portal-blue-dark);
    font-family: 'Merriweather', serif;
    font-size: 1.18rem;
    line-height: 1.35;
}

.session-document-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.session-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.session-document-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    margin-top: 20px;
    border-top: 1px solid rgba(30, 79, 160, 0.12);
}

.vote-session-counter {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    margin-top: 6px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(var(--portal-primary-rgb), 0.08), rgba(var(--portal-secondary-rgb), 0.08));
}

.vote-session-counter strong {
    color: var(--portal-blue-dark);
    font-size: 1.5rem;
    line-height: 1;
}

.vote-session-counter span {
    color: var(--portal-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.vote-session-topics {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--portal-muted);
}

.vote-session-topics li + li {
    margin-top: 8px;
}

.vote-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.vote-summary-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(var(--portal-primary-rgb), 0.08);
}

.vote-summary-box strong {
    font-size: 1.4rem;
    line-height: 1;
}

.vote-summary-box span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vote-summary-box.success {
    background: rgba(var(--portal-secondary-rgb), 0.1);
    color: var(--portal-green);
}

.vote-summary-box.danger {
    background: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.vote-summary-box.warning {
    background: rgba(var(--portal-secondary-rgb), 0.12);
    color: #a96c00;
}

.vote-summary-box.neutral {
    background: rgba(102, 112, 133, 0.08);
    color: var(--portal-muted);
}

.vote-table thead th {
    background: linear-gradient(135deg, var(--portal-blue-mid), var(--portal-blue-light));
    color: #fff;
    border: none;
}

@media (max-width: 991.98px) {
    .portal-header-has-cover {
        min-height: 0;
    }

    .portal-header-cover {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.82) 100%),
            linear-gradient(180deg, rgba(var(--portal-primary-rgb), 0.12), rgba(var(--portal-primary-strong-rgb), 0.16)),
            var(--portal-header-cover) center/cover no-repeat;
    }

    .portal-header-panel {
        min-height: 148px;
    }

    .hero-panel {
        padding: 24px;
    }

    .portal-nav-shell .nav-link {
        padding: 12px 14px !important;
    }
}

@media (max-width: 767.98px) {
    .portal-topbar .container,
    .portal-satisfaction .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .portal-header .container {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .portal-header-panel {
        min-height: 0;
    }

    .portal-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .portal-brand-mark {
        width: 74px;
        height: 74px;
    }

    .portal-brand-title {
        font-size: clamp(1.55rem, 7vw, 2.05rem);
    }

    .portal-brand-subtitle {
        font-size: 0.9rem;
    }

    .portal-topbar a {
        margin-right: 12px;
    }

    .page-header-card,
    .portal-search-card,
    .portal-footer-top {
        padding-left: 0;
        padding-right: 0;
    }

    .portal-accessibility-toggle {
        right: 14px;
        bottom: 14px;
    }

    .portal-accessibility-panel {
        right: 12px;
        bottom: 80px;
    }

    .edition-grid {
        grid-template-columns: 1fr;
    }

    .portal-pagination {
        gap: 8px;
    }

    .portal-pagination .page-link {
        min-width: 42px;
        min-height: 42px;
        padding: 0.68rem 0.85rem;
        font-size: 0.85rem;
    }

    .portal-pagination .page-link-control span {
        display: none;
    }

    .commission-card {
        padding: 24px;
    }

    .commission-summary {
        min-height: 0;
    }

    .session-document-card,
    .vote-session-card,
    .vote-detail-card {
        padding: 24px;
    }

    .vote-summary-grid {
        grid-template-columns: 1fr;
    }
}



