/* style.css - Datasets Maker
   Design tokens are injected as CSS custom properties via site_tokens_css(). */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-top: var(--header-height, 72px);
    background: var(--color-bg, #fff);
    color: var(--color-text, #1a1a1a);
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 1rem;
    line-height: 1.65;
}

h1, h2, h3, h4 {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

a {
    color: var(--color-accent, #3b6df6);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-strong, #2452d9);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 0;
}

/* ── Header ────────────────────────────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 72px);
    background: #ffffff;
    border-bottom: 1px solid var(--color-border, #e3e7f0);
    z-index: 100;
}

.site-header__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-logo a {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--color-text, #131a2c);
    white-space: nowrap;
}

.site-logo span:last-child {
    color: var(--color-accent, #3b6df6);
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
    margin-left: auto;
    height: 100%;
    display: flex;
    align-items: center;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text, #131a2c);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
    color: var(--color-accent, #3b6df6);
}

.site-nav__item--has-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-chevron::after {
    content: ' \25BE';
    font-size: 0.75em;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-small, 8px);
    padding: 0.5rem 0;
    min-width: 280px;
    list-style: none;
    margin: 0;
    box-shadow: var(--shadow-card-strong, 0 12px 32px rgba(8,14,40,0.35));
    z-index: 200;
}

/* CSS-hover is a progressive-enhancement fallback; nav.js drives the
   reliable open/close behavior with a close-intent delay so the dropdown
   does not vanish while the cursor crosses from the link into the panel. */
.site-nav__item--has-dropdown:hover .nav-dropdown,
.site-nav__item--has-dropdown.is-open .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.6rem 1.1rem;
    white-space: normal;
    font-size: 0.9rem;
    text-decoration: none;
}

.nav-dropdown li a:hover {
    background: var(--color-panel, #f0f3f9);
}

.nav-dropdown__label {
    font-weight: 600;
    color: var(--color-text, #131a2c);
}

.nav-dropdown__desc {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted, #5b6478);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border, #e3e7f0);
}

.header-action {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-action--text {
    color: var(--color-text, #131a2c);
}

.header-action--primary {
    background: var(--color-accent, #3b6df6);
    color: #fff;
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-small, 8px);
}

.header-action--primary:hover {
    background: var(--color-accent-strong, #2452d9);
    color: #fff;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: auto;
}

.nav-hamburger__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-hamburger__bars span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text, #131a2c);
    border-radius: 2px;
}

.nav-hamburger__label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted, #5b6478);
}

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.page-wrapper {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.page-wrapper--page,
.page-wrapper--dataset,
.page-wrapper--article,
.page-wrapper--category,
.page-wrapper--directory_category,
.page-wrapper--directory_listing,
.page-wrapper--glossary_term {
    padding-top: 2.5rem;
}

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

.content-layout--single {
    max-width: 820px;
    margin: 0 auto;
}

.content-main {
    min-width: 0;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────────── */

.breadcrumbs {
    max-width: var(--content-width, 1240px);
    margin: 0 auto 1rem;
    padding: 0 1.5rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted, #5b6478);
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin-right: 0.5rem;
}

.breadcrumbs__item.is-current {
    color: var(--color-text, #131a2c);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
    background: linear-gradient(160deg, var(--color-hero-bg-start, #0a1128), var(--color-hero-bg-end, #172657));
    color: var(--color-hero-text, #eef1fb);
    padding: 4.5rem 1.5rem 5rem;
    margin: -2.5rem -1.5rem 0;
    text-align: center;
}

.hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-hero-glow, #4f7dfa);
    margin-bottom: 1rem;
}

.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-hero-text-muted, #a7b0d6);
    margin-bottom: 2rem;
}

.hero__search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 1.75rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-medium, 12px);
    padding: 0.35rem;
}

.hero__search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
}

.hero__search input::placeholder {
    color: var(--color-hero-text-muted, #a7b0d6);
}

.hero__search input:focus {
    outline: none;
}

.hero__search button {
    background: var(--color-accent, #3b6df6);
    color: #fff;
    border: none;
    border-radius: var(--radius-small, 8px);
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.hero__cta-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

.hero__badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero__badges li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.8rem;
}

.hero__badge-label {
    font-weight: 600;
    color: #fff;
}

.hero__badge-detail {
    color: var(--color-hero-text-muted, #a7b0d6);
}

/* ── Stats bar ─────────────────────────────────────────────────────────────── */

.stats-bar {
    background: var(--color-surface-strong, #0b1330);
    color: #fff;
    padding: 2rem 1.5rem;
    margin: 0 -1.5rem;
}

.stats-bar__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}

.stats-bar__value {
    font-size: 1.9rem;
    font-weight: 300;
    font-family: var(--font-display);
}

.stats-bar__label {
    font-size: 0.8rem;
    color: var(--color-hero-text-muted, #a7b0d6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.section {
    padding: 4rem 1.5rem;
    margin: 0 -1.5rem;
}

.section__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
}

.section__inner--narrow {
    max-width: 720px;
    text-align: center;
}

.section__title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-muted, #5b6478);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.section__lead {
    color: var(--color-text-muted, #5b6478);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.section__subhead {
    font-size: 1.2rem;
    margin-top: 2.5rem;
}

.section--categories {
    background: var(--color-surface, #f6f8fc);
}

.section--compat {
    padding: 2.5rem 1.5rem;
}

.section--datasets {
    background: var(--color-surface, #f6f8fc);
}

/* ── Category grid ─────────────────────────────────────────────────────────── */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    background: #fff;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text, #131a2c);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--card-accent, #3b6df6);
    transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-strong);
}

.category-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-small, 8px);
    background: var(--card-accent, #3b6df6);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.category-card__title {
    font-weight: 600;
    font-size: 1rem;
}

.category-card__count {
    font-size: 0.78rem;
    color: var(--color-text-muted, #5b6478);
}

.category-card__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted, #5b6478);
    flex: 1;
}

.category-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent, #3b6df6);
}

/* ── Compatible-with strip ────────────────────────────────────────────────── */

.compat__label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted, #5b6478);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.compat__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--color-text-muted, #5b6478);
}

/* ── Checklist ─────────────────────────────────────────────────────────────── */

.checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.checklist li {
    padding-left: 1.6rem;
    position: relative;
}

.checklist li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent, #3b6df6);
    font-weight: 700;
}

/* ── Dataset cards ─────────────────────────────────────────────────────────── */

.dataset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.dataset-card {
    background: #fff;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--color-text, #131a2c);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s, box-shadow 0.15s;
}

.dataset-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-strong);
}

.dataset-card__name {
    font-weight: 600;
    font-size: 1.05rem;
}

.dataset-card__summary {
    font-size: 0.88rem;
    color: var(--color-text-muted, #5b6478);
    flex: 1;
}

.dataset-card__formats {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted, #5b6478);
}

.dataset-card__price {
    font-weight: 700;
    color: var(--color-accent, #3b6df6);
}

/* ── Page header ───────────────────────────────────────────────────────────── */

.page-header {
    margin-bottom: 1.5rem;
}

.page-header__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.page-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-small, 8px);
    background: var(--card-accent, #3b6df6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.page-header__excerpt {
    color: var(--color-text-muted, #5b6478);
    font-size: 1.05rem;
}

.page-header__meta {
    color: var(--color-text-muted, #5b6478);
    font-size: 0.85rem;
}

.prose h2 {
    margin-top: 2rem;
}

.prose ul {
    padding-left: 1.2rem;
}

/* ── Dataset detail ────────────────────────────────────────────────────────── */

.dataset-detail {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
    margin-top: 1.5rem;
}

.dataset-detail__card {
    background: var(--color-surface, #f6f8fc);
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height, 72px) + 1.5rem);
}

.dataset-detail__card h3 {
    font-size: 0.95rem;
    margin-top: 1.25rem;
}

.dataset-detail__price {
    font-size: 1.6rem;
    font-weight: 300;
    font-family: var(--font-display);
    color: var(--color-accent, #3b6df6);
    margin-bottom: 1rem;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.pricing-card--highlighted {
    border-color: var(--color-accent, #3b6df6);
    box-shadow: var(--shadow-card-strong);
}

.pricing-card__price {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 300;
    margin-top: 0.5rem;
}

.pricing-card__period {
    color: var(--color-text-muted, #5b6478);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.pricing-card__description {
    margin-bottom: 1rem;
}

/* ── Lists: articles, glossary, directory ─────────────────────────────────── */

.article-list,
.directory-listing-list,
.directory-category-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-list__item,
.directory-listing-card,
.directory-category-card {
    display: block;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--color-text, #131a2c);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.article-list__item:hover,
.directory-listing-card:hover,
.directory-category-card:hover {
    border-color: var(--color-accent, #3b6df6);
    box-shadow: var(--shadow-card);
}

.article-list__title,
.directory-listing-card__title,
.directory-category-card__title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.article-list__excerpt,
.directory-listing-card__desc,
.directory-category-card__excerpt {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted, #5b6478);
}

.directory-listing-card__best-for,
.directory-category-card__count {
    display: block;
    font-size: 0.78rem;
    color: var(--color-accent, #3b6df6);
    margin-top: 0.4rem;
}

.glossary-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.glossary-list__item a {
    font-weight: 600;
    text-decoration: none;
}

.glossary-list__item p {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: var(--color-text-muted, #5b6478);
}

.related-terms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.related-terms a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */

.faq-list {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-medium, 12px);
    padding: 1rem 1.25rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-item p {
    margin: 0.75rem 0 0;
    color: var(--color-text-muted, #5b6478);
}

/* ── Library search ───────────────────────────────────────────────────────── */

.library-search {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.library-search input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-small, 8px);
    font-size: 0.95rem;
}

.library-search button {
    background: var(--color-accent, #3b6df6);
    color: #fff;
    border: none;
    border-radius: var(--radius-small, 8px);
    padding: 0.7rem 1.4rem;
    font-weight: 600;
    cursor: pointer;
}

.library-section {
    margin-top: 2rem;
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */

.contact-form {
    display: grid;
    gap: 1.1rem;
    max-width: 520px;
    margin-top: 1.5rem;
}

.form-field {
    display: grid;
    gap: 0.4rem;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
}

.form-field input,
.form-field textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border, #e3e7f0);
    border-radius: var(--radius-small, 8px);
    font-size: 0.95rem;
    font-family: inherit;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small, 8px);
    margin-bottom: 1rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--color-border, #e3e7f0);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    background: var(--color-surface-strong, #0b1330);
    color: #cdd4ec;
}

.site-footer__inner {
    max-width: var(--content-width, 1240px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.site-footer__brand-name {
    font-family: var(--font-display, system-ui, sans-serif);
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.site-footer__tagline {
    margin: 0 0 0.6rem;
    color: #9aa4c8;
    font-size: 0.9rem;
}

.site-footer__contact a {
    color: #9aa4c8;
    font-size: 0.9rem;
}

.site-footer__col-heading {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7e89b3;
    margin-bottom: 0.9rem;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.site-footer__links a {
    color: #cdd4ec;
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: #7e89b3;
}

/* ── Utility ─────────────────────────────────────────────────────────────────── */

.text-muted {
    color: var(--color-text-muted, #5b6478);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-small, 8px);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn--large {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.6rem;
}

.btn--primary {
    background: var(--color-accent, #3b6df6);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-accent-strong, #2452d9);
    color: #fff;
}

.btn--outline {
    border: 1px solid var(--color-accent, #3b6df6);
    color: var(--color-accent, #3b6df6);
    background: transparent;
}

.btn--outline-light {
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}

.btn--outline-light:hover {
    border-color: #fff;
    color: #fff;
}

/* ── Error page ─────────────────────────────────────────────────────────────── */

.error-page {
    text-align: center;
    padding: 5rem 1rem;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 200;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted, #5b6478);
}

.error-page p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-page .btn {
    margin: 0 0.4rem;
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dataset-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-height, 72px);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        overflow-y: auto;
        background: #ffffff;
        border-bottom: 1px solid var(--color-border, #e3e7f0);
        padding: 1.25rem 1.5rem 2rem;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        height: auto;
    }

    .site-nav__item {
        border-bottom: 1px solid var(--color-border, #e3e7f0);
    }

    .site-nav__item--has-dropdown {
        height: auto;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__list a {
        padding: 0.9rem 0;
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0.5rem 1rem;
        min-width: 0;
    }

    .site-nav__item--has-dropdown:hover .nav-dropdown {
        display: none;
    }

    .site-nav__item--has-dropdown.is-open .nav-dropdown {
        display: block;
    }

    .site-nav__actions {
        margin: 1rem 0 0;
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid var(--color-border, #e3e7f0);
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .header-action--primary {
        text-align: center;
    }

    .category-grid,
    .dataset-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .dataset-detail {
        grid-template-columns: 1fr;
    }

    .dataset-detail__card {
        position: static;
    }

    .glossary-list {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.25rem 3.5rem;
    }

    .hero__badges {
        gap: 1rem;
    }

    /* Footer: single column, all text and links at 2x size on mobile */
    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .site-footer__brand-name {
        font-size: 2.2rem;
    }

    .site-footer__tagline,
    .site-footer__contact a {
        font-size: 1.8rem;
    }

    .site-footer__col-heading {
        font-size: 1.5rem;
    }

    .site-footer__links a {
        font-size: 1.8rem;
    }

    .site-footer__bottom {
        font-size: 1.5rem;
        text-align: center;
    }
}
