:root {
    --brand-blue: #0b2d5c;
    --brand-blue-light: #16457f;
    --brand-gold: #d9aa3c;
    --surface: #f4f7fb;
    --line: #dde5ef;
    --text: #1f2937;
}

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

a {
    text-decoration: none;
}

.public-navbar,
.access-bar {
    background: var(--brand-blue);
}

.site-header {
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.access-bar {
    border-bottom: 3px solid #37b56f;
    color: #fff;
    font-size: .82rem;
    padding: 8px 0;
}

.access-shortcuts,
.access-links,
.brand-actions,
.social-links,
.site-search {
    display: flex;
    align-items: center;
}

.access-shortcuts,
.access-links {
    gap: 10px;
    flex-wrap: wrap;
}

.access-bar a {
    color: #fff;
    font-weight: 700;
}

.access-shortcuts a {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    padding: 4px 10px;
}

.access-shortcuts span {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .18);
}

.brand-bar {
    padding: 24px 0;
}

.brand-logo img {
    width: min(100%, 360px);
    max-height: 96px;
    object-fit: contain;
    display: block;
}

.brand-actions {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links {
    gap: 12px;
}

.social-links a {
    color: var(--brand-blue-light);
    font-size: 1.8rem;
    line-height: 1;
}

.social-links a:hover {
    color: #37b56f;
}

.site-search {
    width: min(100%, 360px);
}

.site-search .form-control {
    border-radius: 5px 0 0 5px;
    min-height: 42px;
}

.site-search .btn {
    background: #f3f6fa;
    border: 1px solid #ced7e2;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    min-height: 42px;
    color: #0b1f3d;
}

.public-navbar {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.public-navbar .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    padding: 14px 18px;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.site-footer {
    background: var(--brand-blue);
    border-top: 4px solid #37b56f;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 28px;
    padding: 32px 0 18px;
}

.footer-logo-box {
    background: rgba(255, 255, 255, .06);
    border-radius: 8px;
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 20px;
}

.footer-logo-box img {
    width: 100%;
    max-width: 250px;
    object-fit: contain;
}

.footer-info {
    display: grid;
    align-content: start;
    gap: 26px;
}

.footer-contact-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    min-height: 124px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    overflow: hidden;
}

.footer-card-label {
    background: #25c95a;
    color: #061b38;
    display: grid;
    place-items: center;
    font-weight: 900;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .04em;
    font-size: .85rem;
}

.footer-card-body {
    padding: 18px;
    display: grid;
    gap: 5px;
    align-content: center;
    font-size: .94rem;
}

.footer-card-body span,
.footer-card-body strong {
    display: block;
}

.footer-inline-link {
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-inline-link:hover {
    color: #37b56f;
}

.footer-social h2,
.footer-apps h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.footer-social-links,
.footer-app-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-social-links a {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.footer-social-links a:hover {
    color: #37b56f;
}

.footer-app-buttons a {
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 182px;
    padding: 11px 16px;
    font-size: .8rem;
    line-height: 1.15;
}

.footer-app-buttons i {
    font-size: 1.75rem;
}

.footer-app-buttons a:hover {
    background: rgba(255, 255, 255, .1);
}

.footer-bottom {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .92rem;
    padding: 14px 0;
    text-align: center;
}

.hero {
    background: linear-gradient(135deg, rgba(11, 45, 92, .92), rgba(22, 69, 127, .78)), url("../img/banner2.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 72px 0 54px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0;
}

.hero-search {
    background: rgba(255, 255, 255, .98);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}

.stat-card,
.document-card,
.filter-panel,
.content-panel,
.login-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    color: var(--brand-blue);
    font-size: 2rem;
    line-height: 1;
}

.admin-stat-card {
    min-height: 154px;
    border: 0;
    border-radius: 18px;
    padding: 28px;
}

.admin-stat-card small {
    color: #8494ad;
    display: block;
    font-weight: 800;
    margin: 16px 0 10px;
}

.admin-stat-card strong {
    color: #07152c;
    font-size: 1.8rem;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1rem;
}

.stat-icon-blue {
    background: #e8f0ff;
    color: #2f73f6;
}

.stat-icon-green {
    background: #e6f9ef;
    color: #14b873;
}

.stat-icon-purple {
    background: #f0e7ff;
    color: #8753f4;
}

.stat-icon-red {
    background: #ffeaea;
    color: #ff4d4d;
}

.admin-panel {
    border: 0;
    border-radius: 18px;
}

.admin-chart-placeholder {
    min-height: 250px;
    border: 1px dashed #d8e2f2;
    border-radius: 14px;
    background: #f8fbff;
    display: grid;
    place-items: center;
    color: #42536a;
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
}

.admin-chart-card {
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 16px;
    padding: 18px;
}

.admin-chart-head h3 {
    color: #07152c;
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 16px;
}

.bar-chart {
    align-items: end;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    min-height: 210px;
}

.bar-chart-item {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.bar-track {
    align-items: end;
    background: #e8f0ff;
    border-radius: 999px;
    display: flex;
    height: 140px;
    overflow: hidden;
    width: 24px;
}

.bar-track span {
    background: linear-gradient(180deg, #37b56f, #2f73f6);
    border-radius: inherit;
    display: block;
    width: 100%;
}

.bar-chart-item strong,
.category-chart-row strong {
    color: #07152c;
}

.bar-chart-item small {
    color: #708199;
    font-size: .72rem;
    font-weight: 800;
}

.category-chart {
    display: grid;
    gap: 14px;
}

.category-chart-row span {
    color: #45576f;
    font-weight: 800;
}

.category-track {
    background: #e8f0ff;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.category-track span {
    background: linear-gradient(90deg, #2f73f6, #37b56f);
    display: block;
    height: 100%;
}

.admin-ranking-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-ranking-card {
    background: #fff;
    border: 1px solid #e0e8f4;
    border-radius: 16px;
    padding: 18px;
}

.admin-ranking-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.admin-ranking-head h3 {
    color: #07152c;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.admin-ranking-head > i {
    align-items: center;
    background: #eef4ff;
    border-radius: 12px;
    color: #2f73f6;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.admin-ranking-row {
    align-items: center;
    border-radius: 12px;
    color: inherit;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
    text-decoration: none;
}

.admin-ranking-row + .admin-ranking-row {
    margin-top: 4px;
}

.admin-ranking-row:hover {
    background: #f8fbff;
}

.admin-ranking-row strong,
.admin-ranking-row span {
    display: block;
}

.admin-ranking-row strong {
    color: #10233f;
    font-size: .9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-ranking-row span {
    color: #708199;
    font-size: .78rem;
    margin-top: 2px;
}

.admin-ranking-row b {
    align-items: center;
    background: #e9f8f0;
    border-radius: 999px;
    color: #15845a;
    display: inline-flex;
    font-size: .82rem;
    justify-content: center;
    min-width: 38px;
    padding: 6px 10px;
}

.admin-ranking-track {
    background: #eef4ff;
    border-radius: 999px;
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
}

.admin-ranking-track span {
    background: linear-gradient(90deg, #37b56f, #2f73f6);
    display: block;
    height: 100%;
}

.pending-list {
    display: grid;
    gap: 10px;
}

.pending-item {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    color: #23344d;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px 1fr auto;
    padding: 10px;
    text-decoration: none;
}

.pending-item:hover {
    background: #eef4ff;
}

.pending-item i {
    color: #2f73f6;
}

.pending-item span {
    font-weight: 800;
}

.pending-item strong {
    background: #fff;
    border-radius: 999px;
    color: #10233f;
    min-width: 34px;
    padding: 4px 8px;
    text-align: center;
}

.version-timeline {
    display: grid;
    gap: 14px;
}

.version-card {
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 14px;
    padding: 18px;
}

.version-card-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.version-card-head h3 {
    color: #10233f;
    font-size: 1rem;
    font-weight: 900;
    margin: 0;
}

.version-card-head strong {
    color: #60718b;
    white-space: nowrap;
}

.version-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.version-files span {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 999px;
    color: #45576f;
    font-size: .82rem;
    font-weight: 800;
    padding: 6px 10px;
}

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

.quick-action {
    min-height: 94px;
    border-radius: 14px;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 12px;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.quick-action:hover {
    color: #fff;
    transform: translateY(-1px);
}

.quick-action i {
    font-size: 1.25rem;
}

.quick-blue {
    background: #3d7dff;
}

.quick-green {
    background: #14b873;
}

.quick-orange {
    background: #f59e0b;
}

.quick-purple {
    background: #8753f4;
}

.admin-notification {
    position: relative;
    padding: 0 0 16px 22px;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.admin-notification::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid #3d7dff;
    border-radius: 50%;
}

.admin-notification strong {
    display: block;
    color: #07152c;
    font-size: .92rem;
}

.admin-notification div {
    color: #65758d;
    font-size: .82rem;
}

.admin-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-page-actions h2,
.admin-settings-hero h2,
.settings-section-head h2 {
    color: #07152c;
    font-weight: 900;
    margin: 0;
}

.admin-eyebrow {
    color: #2f73f6;
    display: block;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.admin-filter-panel,
.admin-table-panel,
.admin-settings-hero,
.settings-section {
    border: 0;
    border-radius: 18px;
}

.admin-filter-panel .form-label,
.admin-crud-modal .form-label,
.admin-settings-layout .form-label {
    color: #72849d;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-filter-panel .form-control,
.admin-filter-panel .form-select,
.admin-crud-modal .form-control,
.admin-crud-modal .form-select,
.admin-settings-layout .form-control,
.admin-settings-layout .form-select {
    border-color: #d8e2f2;
    border-radius: 10px;
    min-height: 44px;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    border-bottom: 1px solid #d9e3f1;
    color: #07152c;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .02em;
    padding: 14px 10px;
    text-transform: uppercase;
}

.admin-table tbody td {
    border-bottom: 1px solid #edf2f7;
    color: #23344d;
    padding: 14px 10px;
}

.admin-count-pill {
    background: #eef4ff;
    border-radius: 999px;
    color: #2f73f6;
    display: inline-flex;
    font-size: .8rem;
    font-weight: 900;
    padding: 4px 10px;
    text-transform: uppercase;
}

.admin-metric-pill {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 999px;
    color: #23344d;
    display: inline-flex;
    gap: 7px;
    font-size: .84rem;
    font-weight: 900;
    padding: 6px 10px;
}

.admin-metric-pill i {
    color: #2f73f6;
}

.admin-file-list {
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 10px;
    color: #45576f;
    font-size: .86rem;
    padding: 10px 12px;
}

.admin-file-list-title {
    color: #10233f;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.admin-file-row {
    align-items: center;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 10px;
}

.admin-file-row + .admin-file-row {
    margin-top: 8px;
}

.admin-file-info {
    min-width: 0;
}

.admin-file-info strong,
.admin-file-info span {
    display: block;
}

.admin-file-info strong {
    color: #10233f;
    overflow-wrap: anywhere;
}

.admin-file-info span {
    color: #6b7b91;
    font-size: .8rem;
    margin-top: 2px;
}

.admin-file-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 6px;
}

.admin-file-primary {
    background: #e9f8f0;
    border-radius: 999px;
    color: #15845a;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    padding: 6px 9px;
    text-transform: uppercase;
}

.btn-soft-primary,
.btn-soft-secondary,
.btn-soft-danger {
    border: 0;
    border-radius: 9px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
}

.btn-soft-primary {
    background: #e8f0ff;
    color: #2f73f6;
}

.btn-soft-secondary {
    background: #eef3f8;
    color: #60718b;
}

.btn-soft-danger {
    background: #ffeaea;
    color: #e54848;
}

.btn-soft-primary:hover,
.btn-soft-secondary:hover,
.btn-soft-danger:hover {
    filter: brightness(.96);
}

.admin-crud-modal .modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(8, 31, 63, .22);
}

.admin-crud-modal .modal-header,
.admin-crud-modal .modal-footer {
    border-color: #edf2f7;
    padding: 22px 26px;
}

.admin-crud-modal .modal-body {
    padding: 24px 26px;
}

.admin-crud-modal .modal-title {
    color: #07152c;
    font-weight: 900;
}

.admin-settings-layout {
    padding-bottom: 28px;
}

.admin-settings-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-settings-hero p,
.settings-section-head p {
    color: #708199;
    margin: 6px 0 0;
}

.settings-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e8f0ff;
    color: #2f73f6;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
}

.settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.settings-toggle-card {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e0e8f4;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 14px 16px;
}

.settings-toggle-card span {
    color: #17243a;
    font-weight: 800;
}

.settings-grid {
    display: grid;
    gap: 18px;
}

.settings-section-head {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.document-card {
    padding: 18px;
    height: 100%;
}

.document-card .category {
    color: var(--brand-blue-light);
    font-weight: 700;
    font-size: .9rem;
}

.document-meta {
    color: #5f6f85;
    font-size: .92rem;
}

.pdf-preview {
    background: #f8fbff;
    border: 1px solid #dce6f3;
    border-radius: 8px;
    padding: 16px;
}

.pdf-preview iframe {
    border: 1px solid #dce6f3;
    border-radius: 8px;
    height: min(68vh, 620px);
    width: 100%;
}

.document-files .list-group-item {
    border-color: #dce6f3;
}

.compact-pdf-preview {
    position: sticky;
    top: 16px;
}

.document-detail-hero {
    background: linear-gradient(135deg, rgba(11, 45, 92, .96), rgba(22, 69, 127, .86)), url("../img/banner2.jpg");
    background-position: center;
    background-size: cover;
    color: #fff;
    padding: 42px 0 56px;
}

.institutional-hero {
    background: linear-gradient(135deg, #0e2e5c, #2f73f6);
    color: #fff;
    padding: 58px 0;
}

.institutional-hero h1 {
    font-weight: 900;
    margin: 0 0 10px;
}

.institutional-hero p {
    color: rgba(255, 255, 255, .82);
    margin: 0;
    max-width: 760px;
}

.institutional-content p {
    color: #45576f;
    font-size: 1rem;
    line-height: 1.8;
}

.institutional-content p:last-child {
    margin-bottom: 0;
}

.accessibility-feature {
    background: #fff;
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    height: 100%;
    padding: 20px;
}

.accessibility-feature i {
    color: #2f73f6;
    font-size: 1.6rem;
}

.accessibility-feature strong {
    color: #10233f;
    font-weight: 900;
}

.accessibility-feature span {
    color: #60718b;
}

.document-detail-hero .breadcrumb a,
.document-detail-hero .breadcrumb-item,
.document-detail-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, .82);
}

.document-detail-title {
    max-width: 920px;
}

.document-detail-title h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.document-detail-title p {
    color: rgba(255, 255, 255, .84);
    font-size: 1.08rem;
    max-width: 760px;
}

.document-side-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    padding: 22px;
    position: sticky;
    top: 18px;
}

.document-side-panel h2 {
    color: var(--brand-blue);
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 18px;
}

.detail-meta-list {
    display: grid;
    gap: 12px;
}

.detail-meta-list div {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 12px;
}

.detail-meta-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.detail-meta-list span,
.detail-meta-list strong {
    display: block;
}

.detail-meta-list span {
    color: #708199;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-meta-list strong {
    color: #17243a;
    margin-top: 3px;
}

.attachment-grid {
    display: grid;
    gap: 14px;
}

.attachment-card {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dce6f3;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 54px 1fr auto;
    padding: 16px;
}

.attachment-icon {
    align-items: center;
    background: #e8f0ff;
    border-radius: 8px;
    color: #2f73f6;
    display: flex;
    font-size: 1.6rem;
    height: 54px;
    justify-content: center;
    width: 54px;
}

.attachment-body h3 {
    color: #17243a;
    font-size: 1rem;
    font-weight: 900;
    margin: 0 0 4px;
    word-break: break-word;
}

.attachment-body p {
    color: #708199;
    margin: 0;
}

.attachment-hash,
.admin-file-hash {
    background: #eef4ff;
    border-radius: 6px;
    color: #42536a;
    display: inline-block;
    font-size: .74rem;
    line-height: 1.45;
    margin: 4px 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 4px 7px;
}

.hash-wrap {
    overflow-wrap: anywhere;
}

.attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pdf-modal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

.pdf-modal iframe {
    border: 0;
    height: min(78vh, 760px);
    width: 100%;
}

.accessibility-button {
    align-items: center;
    background: var(--brand-blue);
    border: 0;
    border-radius: 50%;
    bottom: 22px;
    box-shadow: 0 14px 34px rgba(8, 31, 63, .28);
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 1.8rem;
    height: 60px;
    justify-content: center;
    left: 22px;
    position: fixed;
    transition: transform .2s ease, background-color .2s ease;
    width: 60px;
    z-index: 1060;
}

.accessibility-button:hover,
.accessibility-button:focus-visible {
    background: #37b56f;
    outline: 3px solid rgba(55, 181, 111, .25);
    transform: scale(1.06);
}

.accessibility-menu {
    background: #fff;
    border: 1px solid #dce6f3;
    border-radius: 12px;
    bottom: 92px;
    box-shadow: 0 20px 50px rgba(8, 31, 63, .24);
    left: 22px;
    opacity: 0;
    overflow: hidden;
    position: fixed;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    visibility: hidden;
    width: min(310px, calc(100vw - 44px));
    z-index: 1059;
}

.accessibility-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.accessibility-menu-header {
    align-items: center;
    background: var(--brand-blue);
    color: #fff;
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    padding: 13px 16px;
}

.accessibility-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.accessibility-menu-list {
    display: grid;
}

.accessibility-menu-list button {
    align-items: center;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    color: #23344d;
    display: flex;
    font-weight: 700;
    gap: 11px;
    padding: 12px 16px;
    text-align: left;
}

.accessibility-menu-list button:last-child {
    border-bottom: 0;
}

.accessibility-menu-list button:hover,
.accessibility-menu-list button:focus-visible {
    background: #f4f8ff;
    outline: none;
}

.accessibility-menu-list i {
    color: #2f73f6;
    width: 20px;
}

body.grayscale {
    filter: grayscale(100%);
}

body.negative-contrast {
    filter: invert(100%);
}

body.negative-contrast img,
body.negative-contrast video,
body.negative-contrast iframe {
    filter: invert(100%);
}

body.underline-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

body.readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}

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

body.high-contrast .site-header,
body.high-contrast .brand-bar,
body.high-contrast .content-panel,
body.high-contrast .document-card,
body.high-contrast .filter-panel,
body.high-contrast .stat-card,
body.high-contrast .admin-sidebar,
body.high-contrast .admin-panel,
body.high-contrast .modal-content,
body.high-contrast .accessibility-menu {
    background: #050505 !important;
    border-color: #ffff00 !important;
    color: #fff !important;
}

body.high-contrast .public-navbar,
body.high-contrast .access-bar,
body.high-contrast .site-footer,
body.high-contrast .accessibility-menu-header,
body.high-contrast .accessibility-button {
    background: #000 !important;
    border-color: #ffff00 !important;
    color: #fff !important;
}

body.high-contrast a,
body.high-contrast .nav-link,
body.high-contrast .text-primary,
body.high-contrast .admin-eyebrow {
    color: #ffff00 !important;
}

body.high-contrast .text-secondary,
body.high-contrast .document-meta,
body.high-contrast small,
body.high-contrast p {
    color: #ddd !important;
}

body.high-contrast .btn,
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea,
body.high-contrast .list-group-item {
    background: #111 !important;
    border-color: #ffff00 !important;
    color: #fff !important;
}

body.high-contrast img {
    background: #fff;
}

.btn-primary {
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue-light);
    --bs-btn-hover-border-color: var(--brand-blue-light);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue);
    --bs-btn-hover-border-color: var(--brand-blue);
}

.admin-body {
    background: linear-gradient(120deg, rgba(244, 249, 255, .92), rgba(247, 243, 255, .9)), url("../img/banner2.jpg");
    background-attachment: fixed;
    background-size: cover;
    color: #07152c;
}

.admin-shell {
    min-height: 100vh;
    display: flex;
}

.admin-sidebar {
    width: 250px;
    background: rgba(248, 251, 255, .94);
    border-radius: 0 26px 26px 0;
    box-shadow: 16px 0 44px rgba(11, 45, 92, .1);
    color: #0b2d5c;
    padding: 28px 14px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
}

.admin-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #122747;
    font-weight: 900;
    padding: 22px 8px 34px;
    text-transform: uppercase;
    line-height: 1.05;
}

.admin-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.admin-brand strong {
    color: #2f73f6;
}

.admin-menu {
    display: grid;
    gap: 10px;
}

.admin-menu a {
    color: #8b9ab0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: .9rem;
    font-weight: 800;
}

.admin-menu a i {
    width: 18px;
    text-align: center;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: #dbe8ff;
    color: #2f73f6;
}

.admin-user-card {
    border-top: 1px solid #d9e3f1;
    margin-top: auto;
    padding: 18px 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-avatar {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #2f73f6;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.admin-user-card strong,
.admin-user-card span {
    display: block;
}

.admin-user-card strong {
    font-size: .86rem;
}

.admin-user-card span {
    color: #8b9ab0;
    font-size: .78rem;
}

.admin-main {
    width: 100%;
    margin-left: 250px;
    padding: 22px 28px 34px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.admin-topbar h1 {
    font-size: 1.65rem;
    margin: 2px 0 0;
    color: #07152c;
    font-weight: 900;
}

.admin-topbar p {
    margin: 0;
    color: #53657e;
}

.admin-topbar p strong {
    color: #2f73f6;
}

.admin-search {
    width: min(100%, 320px);
    height: 42px;
    background: rgba(244, 249, 255, .9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: #8aa0ba;
}

.admin-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f1d33;
}

.admin-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #5f728c;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(202, 214, 232, .75);
}

.admin-icon-btn:hover {
    color: #2f73f6;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.login-page {
    min-height: 100vh;
    background: url("../img/banner2.jpg") center / cover no-repeat;
    position: relative;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 25, 65, .96), rgba(11, 45, 92, .78), rgba(9, 21, 37, .74));
    backdrop-filter: blur(3px);
}

.login-layout {
    position: relative;
    width: min(100%, 1120px);
    display: grid;
    grid-template-columns: minmax(460px, 1.25fr) 430px;
    gap: 92px;
    align-items: center;
    z-index: 1;
}

.login-intro {
    color: #fff;
}

.login-kicker {
    display: inline-block;
    color: #37b56f;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 12px;
}

.login-intro h1 {
    font-size: clamp(2.4rem, 5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.login-intro h1 strong {
    color: #3d7dff;
}

.login-intro p {
    max-width: 520px;
    color: rgba(255, 255, 255, .76);
    font-size: 1.05rem;
    font-weight: 700;
}

.login-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.login-tags span {
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
    padding: 8px 18px;
    text-transform: uppercase;
}

.login-tags i,
.login-tip strong {
    color: #37b56f;
}

.login-tip {
    display: inline-block;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: rgba(255, 255, 255, .86);
    padding: 14px 18px;
    font-weight: 700;
}

.login-card {
    width: 100%;
    background: rgba(248, 251, 255, .98);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .24);
    padding: 48px 52px;
}

.login-logo {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(47, 115, 246, .12);
    margin-bottom: 18px;
}

.login-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.login-card h2 {
    color: #17243a;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.login-card p {
    color: #788aa4;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin: 4px 0 0;
}

.login-card .form-label {
    color: #75869e;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #eaf2ff;
    border: 1px solid transparent;
    border-radius: 14px;
    min-height: 56px;
    padding: 0 18px;
}

.login-input:focus-within {
    border-color: #9fc1ff;
    box-shadow: 0 0 0 4px rgba(47, 115, 246, .08);
}

.login-input i {
    color: #2f73f6;
}

.login-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f1d33;
    font-weight: 700;
}

.login-help {
    color: #2f73f6;
    font-size: .82rem;
    font-weight: 800;
}

.login-submit {
    min-height: 54px;
    border-radius: 14px;
    background: #2f73f6;
    border-color: #2f73f6;
    box-shadow: 0 12px 24px rgba(47, 115, 246, .28);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.login-copy {
    color: #a0adc0;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-top: 32px;
    text-align: center;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .login-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .login-intro {
        text-align: center;
    }

    .login-intro p {
        margin-left: auto;
        margin-right: auto;
    }

    .login-tags {
        justify-content: center;
    }

    .login-card {
        padding: 34px 24px;
    }

    .brand-bar {
        padding: 18px 0;
    }

    .brand-logo img {
        max-height: 78px;
    }

    .brand-actions,
    .site-search {
        width: 100%;
    }

    .social-links {
        width: 100%;
        justify-content: center;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
        border-radius: 0 22px 22px 0;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 18px;
    }

    .admin-topbar {
        flex-wrap: wrap;
    }

    .admin-page-actions,
    .admin-settings-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search {
        order: 3;
        width: 100%;
    }

    .settings-toggle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-charts-grid {
        grid-template-columns: 1fr;
    }

    .admin-ranking-grid {
        grid-template-columns: 1fr;
    }

    .attachment-card {
        align-items: start;
        grid-template-columns: 46px 1fr;
    }

    .attachment-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .document-side-panel {
        position: static;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-logo-box {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .settings-toggle-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .admin-table {
        border: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tbody tr {
        background: #fff;
        border: 1px solid #e0e8f4;
        border-radius: 12px;
        margin-bottom: 12px;
        padding: 8px 10px;
    }

    .admin-table tbody td {
        align-items: flex-start;
        border: 0;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 9px 2px;
        text-align: right !important;
    }

    .admin-table tbody td::before {
        color: #708199;
        content: attr(data-label);
        flex: 0 0 42%;
        font-size: .72rem;
        font-weight: 900;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }

    .admin-file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-file-actions {
        flex-wrap: wrap;
    }

    .admin-table-panel {
        padding: 16px !important;
    }
}
