:root {
    --ink: #16202b;
    --muted: #5b6b7a;
    --paper: #f3f7fb;
    --paper-2: #ffffff;
    --brand: #d36b2b;
    --brand-strong: #b8561f;
    --accent: #1a6b68;
    --line: #d6e2f0;
    --shadow: 0 12px 28px rgba(18, 42, 74, 0.08);
}

/* Custom Styling for Body and Navbar */
body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    position: relative;
    min-height: 100vh;
}

.page-logo {
    width: min(60%, 420px);
    height: auto;
    padding: 10px;
}

.page-illustration {
    width: min(60%, 360px);
    height: auto;
}

body::before {
    content: none;
}

h1, h2, h3, h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    letter-spacing: 0.1px;
}

.section-title-icon {
    font-size: 0.8em;
    margin-right: 6px;
    color: #6b7f97;
}

p, li, span {
    color: var(--ink);
}

.text-muted {
    color: var(--muted) !important;
}

.navbar.bg-dark {
    background: linear-gradient(90deg, #1e1e1e, #2c2c2c) !important;
    box-shadow: none;
}

.navbar .nav-link {
    padding: 6px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar .nav-link {
    color: #f1ede6 !important;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    color: #ffffff !important;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 6px 12px;
}

.navbar-brand {
    font-weight: 500;
    letter-spacing: 0.2px;
}

.navbar .nav-link.nav-link-muted {
    color: rgba(241, 237, 230, 0.75) !important;
    font-size: 0.9rem;
}

.navbar .nav-link.nav-link-muted:hover {
    color: #ffffff !important;
}

.footer-custom {
    background-color: #212529 !important; /* Match Bootstrap .bg-dark */
    color: #ffffff !important;
    border-top: none;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    padding: 18px 0;
}

.footer-custom .container {
    color: #ffffff !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 12px;
    background: #ffffff;
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    z-index: 1200;
    transition: top 0.2s ease;
}

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

@media (max-width: 575px) {
    .navbar .nav-link {
        padding: 6px 10px;
    }

    .navbar .nav-link.dropdown-toggle {
        max-width: 92px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.hero-section {
    padding: 50px 0 20px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.hero-title {
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    margin-top: 10px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    margin-top: 12px;
}

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

.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-beta-note {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 680px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(176, 126, 25, 0.28);
    border-left: 3px solid #b7791f;
    border-radius: 6px;
    background: #fff8e8;
    color: #5f4316;
    font-size: 0.94rem;
    line-height: 1.45;
}

.hero-beta-note i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #9a6700;
}

.hero-beta-note strong {
    color: #4f3400;
    font-weight: 700;
}

.hero-meta {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero-links {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-links a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
}

.hero-links a:hover {
    color: var(--brand);
}

.hero-logo {
    padding: 8px;
    display: inline-block;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.quick-band {
    padding: 30px 0 10px;
}

.band-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.band-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-card {
    background: #ffffff;
    border: 1px solid #e5eef9;
    border-radius: 16px;
    padding: 16px;
    box-shadow: none;
}

.quick-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.catalog-section {
    padding: 20px 0 30px;
    --sidebar-width: 240px;
}

.catalog-panel {
    background: #ffffff;
    border: 1px solid #e5eef9;
    border-radius: 18px;
    padding: 16px;
    box-shadow: none;
    position: relative;
    padding-bottom: 46px;
}

@media (min-width: 992px) {
    .catalog-section .catalog-sidebar,
    .catalog-section .catalog-main {
        display: flex;
        align-items: stretch;
    }

    .catalog-section .sticky-panel,
    .catalog-section .catalog-panel {
        flex: 1 1 auto;
    }
}

.sticky-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f7faff;
    border: 1px solid #e5eef9;
    border-radius: 18px;
    padding: 16px;
    box-shadow: none;
}

.filters-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.filter-count {
    font-size: 0.85rem;
    color: var(--muted);
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d6e2f0;
    font-weight: 400;
}

.meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 14px;
    box-shadow: none;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--muted);
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.view-toggle {
    display: inline-flex;
    gap: 6px;
}

.view-toggle .btn.active {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.dataset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.dataset-card {
    border: 1px solid #e5eef9;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.dataset-card-header {
    font-weight: 600;
    margin-bottom: 8px;
}

.dataset-card-header a {
    color: var(--ink);
}

.dataset-card-header a:hover {
    color: var(--brand);
}

.dataset-card-tags {
    margin-bottom: 10px;
}

.dataset-card-tags .tag {
    display: inline-block;
    margin: 4px 4px 0 0;
    font-size: 0.8rem;
}

.dataset-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
}

.report-section {
    padding-bottom: 20px;
}

.filter-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
}

.filter-section .d-flex {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-section .filter-label {
    flex: 0 0 100%;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

.filter-group {
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #dfe9f6;
    margin-bottom: 16px;
    border-left: 3px solid #c9daee;
    padding-left: 12px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-glossary {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.filter-clear-link {
    margin-top: 10px;
    align-self: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #dfe9f6;
    background: #ffffff;
    color: var(--ink);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(18, 42, 74, 0.06);
    width: 100%;
    justify-content: center;
}

.filter-clear-link:hover {
    color: #ffffff;
    background: var(--brand);
    border-color: var(--brand);
    text-decoration: none;
}

.filter-section .d-flex.flex-column {
    min-width: 140px;
}

.filter-section .form-range {
    width: 140px;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.size-control {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.size-control label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    font-weight: 400;
}

.size-control .size-control-label--small {
    font-size: 0.75rem;
    letter-spacing: 0.55px;
}

.size-grid .form-range {
    width: 100%;
}

.size-grid .highlight-label {
    font-weight: 400;
}

.table-legend {
    margin-top: 6px;
}

.size-hint {
    margin: 6px 0 10px;
}

.legend-dot {
    margin: 0 6px;
}

.table-legend strong {
    font-weight: 600;
    color: var(--ink);
}

.d-flex {
    display: flex;
}

.filter-label {
    font-weight: 400;
    font-size: 1rem;
    white-space: nowrap; /* Prevent label from breaking into multiple lines */
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: center;
    margin-top: 10px;
}

.filter-row .tag {
    width: 100%;
    justify-content: center;
    text-align: center;
}

.filter-row .tag-span {
    grid-column: 1 / -1;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.meta-strip .filter-summary {
    justify-content: flex-start;
    flex: 1 1 220px;
}

.filter-chip {
    background-color: #fff4ea;
    border: 1px solid #f5c7a4;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
    color: var(--brand-strong);
}

.tag:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.tag-glossary div {
    margin-bottom: 6px;
}

.tag-glossary div:last-child {
    margin-bottom: 0;
}

.recently-added-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.recently-added {
    background: #f7faff;
    border: 1px solid #e5eef9;
    border-radius: 18px;
    padding: 16px;
    box-shadow: none;
}

.recently-added h3 {
    font-size: 1.1rem;
}

.recently-added-card {
    border: 1px solid #e5eef9;
    border-radius: 14px;
    padding: 12px 14px;
    background-color: #ffffff;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.horizontal-card-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
}

.horizontal-card-row .recently-added-title {
    flex-wrap: nowrap;
}

.horizontal-card-row .recently-added-title a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.horizontal-card-row .recently-added-title .badge {
    flex: 0 0 auto;
}

.horizontal-card-row .recently-added-card {
    flex: 0 0 240px;
}

.recently-added-card::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-strong));
}

.recently-added-title {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    font-weight: 600;
    margin-top: 4px;
}

.recently-added-title a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.recently-added-title .badge {
    flex: 0 0 auto;
}

.easy-access-meta,
.easy-access-legend {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.easy-access-meta {
    justify-content: flex-end;
}

.easy-access-legend {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.8rem;
    padding: 0.25rem 0.55rem;
}

.easy-access-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted);
    white-space: nowrap;
}

.easy-access-legend .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.loader-snippet {
    background: #ffffff;
    border: 1px solid #e5eef9;
    border-radius: 16px;
    padding: 16px;
    box-shadow: none;
}

.recently-added-tags .tag {
    display: inline-block;
    margin: 4px 4px 0 0;
    font-size: 0.8rem;
}

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.btn-outline-secondary {
    border-color: var(--line);
    color: var(--ink);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.btn-dark {
    background-color: var(--ink);
    border-color: var(--ink);
}

.btn-dark:hover {
    background-color: var(--brand);
    border-color: var(--brand);
}

.btn-github {
    background-color: #1f1f1f;
    border-color: #1f1f1f;
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-github:hover {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-github span,
.btn-github svg {
    color: #ffffff;
}

.btn-github:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-github-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.card-title {
    font-weight: 600;
}

.chart-container {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5eef9;
    border-radius: 16px;
    box-shadow: none;
}

.chart-container-left {
    margin-left: 0;
    margin-right: auto;
}

.chart-subtitle {
    margin: -6px 0 12px;
    color: #7c92ac;
    font-size: 0.9rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5eef9;
}

.custom-table th {
    background-color: var(--brand);
    color: #ffffff;
    padding: 10px;
    text-align: left;
}

.custom-table td {
    padding: 10px;
    border-bottom: 1px solid #e5eef9;
}

.custom-table tr:hover {
    background-color: #fdf0e6;
}

.custom-metadata-table {
    border: 1px solid #e5eef9;
    border-bottom: 3px solid var(--brand);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    table-layout: fixed;
}

.custom-metadata-table th {
    background-color: var(--brand);
    color: #ffffff;
    text-align: left;
    padding: 10px;
}

.custom-metadata-table td {
    border-bottom: 1px solid #e5eef9;
    padding: 10px;
}

.custom-metadata-table tr:hover {
    background-color: #fdf0e6;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(6px);
    z-index: 1100;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--brand);
    border-color: var(--brand);
}

.tag {
    background-color: #ffffff;
    border: 1px solid #dfe9f6;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.85rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    line-height: 1;
    color: var(--brand);
    font-size: 0.85rem;
}

.tag.active .tag-icon {
    color: #ffffff;
}

.filter-row button {
    margin-left: 5px;
}

.me-3 {
    margin-right: 1rem; /* Adds space between label and buttons */
}



button.tag,
a.tag {
    cursor: pointer;
}

button.tag.active {
    background-color: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

button.tag:hover,
a.tag:hover {
    background-color: #fff3e9;
    transform: translateY(-1px);
}

.tag-link {
    text-decoration: none;
    color: inherit;
}

/* Table Styling */
table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse; /* Prevent double borders */
    font-size: 0.95rem;
}

td {
    padding: 14px;
    text-align: left;
    background-color: #ffffff; /* Default background color for cells */
}

th {
    padding: 14px;
    text-align: left;
    background-color: #fffdf9;
    color: var(--ink);
}

table,
th,
td {
    border: none;
}

tbody tr:nth-child(odd) {
    background-color: #fbf7f2;
}

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

tbody tr:hover {
    background-color: #fdf0e6;
}

/* Footer */
.footer-custom {
    background-color: #212529 !important; /* Match Bootstrap .bg-dark */
    color: #ffffff !important;
    text-align: center;
    padding: 18px 0;
    margin-top: 30px;
    border-top: none;
}

.footer-custom p,
.footer-custom li,
.footer-custom span,
.footer-custom a {
    color: inherit !important;
}

.footer-custom #footerYear {
    color: #ffffff !important;
}


/* Search bar styling */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

#searchInput {
    box-shadow: none; /* Remove shadow */
    border-radius: 25px; /* Softer rounded corners */
    border: 1px solid #ccc; /* Light gray border */
    padding: 12px 20px; /* Increased padding for comfort */
    width: 100%; /* Full width */
    font-size: 16px; /* Larger font size */
    transition: border-color 0.3s ease, background-color 0.3s ease; /* Smooth transition */
    background: linear-gradient(to right, #f0f0f0, #eaeaea); /* Subtle gradient background */
}

#searchInput::placeholder {
    color: #aaa; /* Placeholder color */
    opacity: 1; /* Ensures visibility */
}

#searchInput:focus {
    outline: none; /* Remove outline */
    border-color: #888; /* Change border color on focus */
    background: #fff; /* Change background color on focus */
}

.related-datasets-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.related-group {
    margin-bottom: 18px;
}

.related-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #486486;
    margin-bottom: 8px;
}

.related-card {
    --related-accent: var(--brand);
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.related-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--related-accent), var(--related-accent));
}

.related-card-meta {
    font-size: 0.82rem;
    color: #6b7f97;
    margin: 4px 0 6px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d7e2f1;
    background: #f6f9ff;
    color: #2a527d;
    text-decoration: none;
    font-size: 0.92rem;
}

.back-link:hover {
    background: #eaf2ff;
    color: #204768;
}

.dataset-title {
    margin: 8px 0 10px;
    text-align: center;
    padding: 0;
}

.dataset-top-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 18px;
}

.dataset-mini-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 6px auto 18px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d7e2f1;
    background: #f3f7ff;
}

.dataset-mini-nav .mini-nav-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c92ac;
    padding-right: 2px;
}

.dataset-mini-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    color: #2a527d;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.dataset-mini-nav a:hover {
    background: #e1ecff;
    color: #204768;
    border-color: #c6d7ee;
}

.stats-hero {
    text-align: center;
    margin-bottom: 18px;
}

.stats-hero h1 {
    margin-bottom: 6px;
}

.stats-hero p {
    margin-bottom: 0;
}

.stats-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 10px 0 22px;
}

.stats-inline-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stats-inline-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c92ac;
}

.stats-inline-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #284869;
}

.chart-panel {
    margin-top: 0;
    margin-bottom: 18px;
}

.chart-panel h4 {
    text-align: left;
    margin-bottom: 10px;
}

.related-card--domain {
    --related-accent: #f4a23b;
}

.related-card--type {
    --related-accent: #4f9dd9;
}

.related-card--size {
    --related-accent: #5ba77f;
}

.bibtex-container {
    background-color: #fff7ef;
    padding: 12px;
    border: 1px solid #e5eef9;
    border-bottom: 3px solid var(--brand);
    border-radius: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    position: relative;
    max-width: 700px;
    margin: 12px auto;
    overflow-x: auto;
    white-space: pre-line;
    box-shadow: none;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--brand);
    color: #ffffff;
    border: 1px solid var(--brand);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    border-radius: 999px;
}

.copy-button:hover {
    background-color: var(--brand-strong);
    border-color: var(--brand-strong);
}

.copy-status {
    position: absolute;
    top: 12px;
    right: 90px;
    font-size: 12px;
    color: var(--accent);
    display: none;
}
.related-card .tag {
    display: inline-block;
    margin: 4px 4px 0 0;
    font-size: 0.8rem;
}

.versions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.versions-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid #e5eef9;
    border-radius: 12px;
    background: #ffffff;
}

.version-label {
    font-weight: 500;
    color: var(--ink);
}

.download-size {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--brand);
    text-decoration: underline;
}

a:active {
    color: var(--brand-strong);
}

table.dataTable {
    border-collapse: collapse;
    box-shadow: var(--shadow);
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    table-layout: fixed;
}
table.dataTable th, table.dataTable td {
    padding: 12px 15px;
}
table.dataTable th {
    background-color: #1f1f1f;
    color: #ffffff;
    text-align: center;
}
table.dataTable tbody tr:nth-child(even) {
    background-color: #fbf7f2;
}
table.dataTable tbody tr:hover {
    background-color: #fdf0e6;
}

#datasetsTable tbody td:nth-child(2) .table-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 64px;
    max-height: 64px;
    overflow: hidden;
    align-content: flex-start;
}

#datasetsTable tbody td:nth-child(2) .table-tags .tag {
    margin: 0;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
    font-size: 16px;
}
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    font-weight: 500;
    color: var(--ink);
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 5px 10px;
    margin-left: 10px;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 3px 8px;
    margin-left: 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--line);
    border-radius: 999px;
    margin: 0 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 500;
    background: #ffffff;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    height: 44px;
    scrollbar-width: none;
    position: absolute;
    right: 20px;
    bottom: 12px;
    margin-top: 0;
    background: transparent;
    padding-left: 0;
}

.dataTables_wrapper {
    position: static;
    padding-bottom: 0;
}

.dataTables_wrapper .dataTables_paginate::-webkit-scrollbar {
    display: none;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #ffffff !important;
    border: 1px solid var(--brand);
    background: var(--brand);
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--ink);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
    background: #eef4fb;
    border-color: #c9daee;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: default;
}
.dataTables_wrapper .dataTables_info {
    font-size: 14px;
    margin-top: 10px;
    color: var(--muted);
}


/* Style for the filter labels */
.filter-label {
    font-weight: 400;
    font-size: 1rem;
}

/* Style for the range sliders */
.form-range {
    width: 150px; /* Adjust the width as needed */
    margin-bottom: 5px;
}

/* Style for the labels displaying slider values */
.highlight-label {
    font-weight: 400;
    color: #555;
    transition: color 0.2s, transform 0.2s;
}

/* Optional: Add margin between elements in the filter row */
.d-flex.align-items-center.justify-content-center.mb-3 > div {
    margin: 0 10px;
}


.highlight-label {
    font-weight: 400;
    color: #555; /* Default label color */
    transition: color 0.2s, transform 0.2s;
}

.highlight-label.highlighted {
    color: var(--brand);
    transform: scale(1.1); /* Slightly enlarge the text */
}

/* Remove default styling for input range */
input[type="range"] {
    background: transparent;
    width: 200px;
    margin: 0 5px;
}

/* Track styling */
input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #c9daee;
    border-radius: 999px;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #c9daee;
    border-radius: 999px;
}

/* Thumb styling for Chrome, Safari, and Opera */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    background: var(--brand);
    cursor: pointer;
    border-radius: 50%;
    margin-top: -6px; /* Centers the thumb on the track */
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(18, 42, 74, 0.2);
}

/* Thumb styling for Firefox */
input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: var(--brand);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(18, 42, 74, 0.2);
}

/* Thumb styling for Internet Explorer and Edge */
input[type="range"]::-ms-thumb {
    height: 20px;
    width: 20px;
    background: var(--brand);
    cursor: pointer;
    border: none;
    border-radius: 50%;
}

/* Optional: Remove outline when focused */
input[type="range"]:focus {
    outline: none;
}

@media (max-width: 991px) {
    .meta-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}
#datasetsTable th:nth-child(1),
#datasetsTable td:nth-child(1) {
    width: 28%;
}

#datasetsTable th:nth-child(2),
#datasetsTable td:nth-child(2) {
    width: 42%;
}

#datasetsTable th:nth-child(3),
#datasetsTable td:nth-child(3),
#datasetsTable th:nth-child(4),
#datasetsTable td:nth-child(4),
#datasetsTable th:nth-child(5),
#datasetsTable td:nth-child(5) {
    width: 10%;
}

#datasetsTable tbody td:first-child a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
