﻿/* Site theme, layered after Bulma. System mode also works without JavaScript. */
:root {
    color-scheme: light;
    --page: #f4f6fa;
    --surface: #ffffff;
    --soft: #eef2f8;
    --text: #19263b;
    --muted: #53627a;
    --border: #dce3ee;
    --accent: #345bd6;
    --accent-hover: #2446b0;
    --accent-soft: #eaf0ff;
    --shadow: 0 12px 40px rgba(30, 48, 80, .05);
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #0e1523;
    --surface: #151f30;
    --soft: #1c293e;
    --text: #e8eef9;
    --muted: #a8b7ce;
    --border: #2d3c53;
    --accent: #a3bcff;
    --accent-hover: #c4d4ff;
    --accent-soft: #22345b;
    --shadow: 0 12px 40px rgba(0, 0, 0, .12);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) {
        color-scheme: dark;
        --page: #0e1523;
        --surface: #151f30;
        --soft: #1c293e;
        --text: #e8eef9;
        --muted: #a8b7ce;
        --border: #2d3c53;
        --accent: #a3bcff;
        --accent-hover: #c4d4ff;
        --accent-soft: #22345b;
        --shadow: 0 12px 40px rgba(0, 0, 0, .12);
    }
}
html { background: var(--page); scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { background: var(--page); color: var(--text); font-family: Inter, "Segoe UI", system-ui, sans-serif; line-height: 1.7; min-height: 100vh; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent) !important; outline-offset: 4px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1160px; margin: auto; padding: 1.15rem 2rem; display: flex; align-items: center; gap: 2rem; }
.site-brand { display: flex; gap: .7rem; align-items: center; color: var(--text); font-size: 1.35rem; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.site-brand:hover { color: var(--text); }
.brand-symbol { display: grid; place-items: center; height: 38px; width: 38px; background: #345bd6; color: white; border-radius: 11px; font-size: 1.6rem; line-height: 1; padding-bottom: 4px; }
.brand-suffix { color: var(--accent); }
.site-nav { display: flex; gap: 1.3rem; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: .9rem; font-weight: 600; padding: .5rem 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px var(--accent); }
.theme-control { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--muted); }
.theme-control select { font: inherit; background: var(--soft); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .45rem; min-height: 44px; cursor: pointer; }
.section { padding: 3.5rem 2rem; }
.container { max-width: 1096px !important; }
.page-surface { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.25rem, 4vw, 3rem); box-shadow: var(--shadow); }
.title, .subtitle, .content, .content h1, .content h2, strong, .table th, .table thead td { color: var(--text); }
.title { font-weight: 750; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.15; letter-spacing: -.045em; max-width: 790px; margin-bottom: 1.4rem !important; overflow-wrap: anywhere; }
.title + .subtitle { margin-top: 0; }
.subtitle { color: var(--muted); font-size: 1.08rem; line-height: 1.75; max-width: 820px; }
h2 { font-weight: 700; letter-spacing: -.025em; color: var(--text); margin-bottom: .6rem; line-height: 1.3; }
p { overflow-wrap: anywhere; }
.hero-intro { padding: .5rem 0 2.5rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; color: var(--accent); margin-bottom: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }
.button.is-info { background: #345bd6; border-color: transparent; color: #fff; border-radius: 9px; font-weight: 600; min-height: 46px; gap: .75rem; }
.button.is-info:hover { background: #2446b0; color: white; }
.domain-count { color: var(--muted); font-size: .9rem; }
.domain-count strong { color: var(--text); }
.browse-panel { background: var(--soft); border: 1px solid var(--border); padding: 1.5rem; border-radius: 14px; margin: .5rem 0 2.75rem; }
.browse-panel > p { font-size: .9rem; color: var(--muted); }
.letter-navigation { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.letter-navigation li { margin: 0; }
.letter-navigation a { display: block; border-radius: 8px; }
.letter-navigation .tag { display: inline-flex; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 1rem !important; min-height: 44px; min-width: 44px; padding: .5rem .7rem; font-weight: 600; }
.letter-navigation a:hover .tag { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
#domain-releases .eyebrow { margin-bottom: .5rem; }
#domain-releases h2 { margin-top: 0 !important; }
#domain-releases > p:not(.eyebrow) { color: var(--muted); font-size: .92rem; }
.table-container { border: 1px solid var(--border); border-radius: 12px; margin-top: 1.25rem; overflow-x: auto; }
.table { width: 100%; background: var(--surface); color: var(--text); margin: 0; font-size: .95rem; }
.table thead { background: var(--soft); }
.table thead th { font-size: .76rem; color: var(--muted); font-weight: 650; padding: 1rem 1.25rem; white-space: nowrap; border-width: 0 0 1px; }
.table td { padding: .85rem 1.25rem; vertical-align: middle; }
.table td, .table th { border-color: var(--border); }
.table td:first-child { overflow-wrap: anywhere; }
.table td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table a { font-weight: 600; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.guide-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); }
.guide-card h2 { font-size: 1.15rem !important; margin-top: 0 !important; }
.guide-card p { font-size: .92rem; color: var(--muted); }
.source-note { font-size: .78rem; color: var(--muted); margin-top: 1.5rem; }
.footer { background: transparent; padding: 0 2rem 2.5rem; }
.footer .content { max-width: 800px; margin: auto; color: var(--muted); font-size: .82rem; }
.breadcrumb a, .breadcrumb .has-text-dark { color: var(--accent) !important; }
.breadcrumb li.is-active a, .breadcrumb [aria-current] a { color: var(--muted) !important; }
.breadcrumb ul, .breadcrumb ol { flex-wrap: wrap; }
.breadcrumb li { overflow-wrap: anywhere; }
.input, .textarea, .select select { color: var(--text); background: var(--surface); border-color: var(--border); border-radius: 8px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .textarea:hover { border-color: var(--accent); }
.field.has-addons .control:first-child { flex: 1; min-width: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 20; padding: .75rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.extra-margin-top { margin-top: 2em; }
@media (max-width: 720px) {
    .header-inner { padding: 1rem; flex-wrap: wrap; gap: .75rem; }
    .site-brand { font-size: 1.2rem; }
    .theme-control { margin-left: auto; }
    .theme-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .site-nav { order: 3; width: 100%; margin: 0; gap: 1.5rem; }
    .site-nav a { min-height: 44px; display: flex; align-items: center; }
    .section { padding: 1.25rem .75rem; }
    .page-surface { border-radius: 14px; }
    .browse-panel { padding: 1rem; }
    .guide-grid { grid-template-columns: 1fr; }
    .table td, .table thead th { padding: .8rem; }
    .subtitle { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }