:root {
    --background: #091218;
    --surface: #111f27;
    --surface-2: #172a34;
    --line: #26424c;
    --text: #e6efe9;
    --muted: #91a9a6;
    --accent: #54d6a6;
    --accent-2: #39a7d2;
    --warning: #f6c65b;
    --danger: #ef826c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
}

.site-header, main, .navigation, footer {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 38px 0 26px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: .22em;
    margin: 0 0 9px;
}

h1 { font-size: clamp(28px, 4vw, 45px); font-weight: 550; margin: 0; }
h2 { font-size: 21px; font-weight: 550; margin: 0 0 5px; }

.status, .caption, .section-head p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 19px 0 27px;
}
.nav-group { }
.nav-group-title {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: 550;
    letter-spacing: 0.12em;
    padding: 0;
    text-transform: uppercase;
}
.nav-group-title:hover { color: var(--text); }
.nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}
.nav-items a {
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
}
.nav-items a:hover { color: var(--accent); }
.nav-items a.active { color: var(--accent); }

@media (max-width: 820px) {
    .navigation { display: none; flex-direction: column; gap: 0; }
    .navigation.nav-open { display: flex; }
    .nav-group-title { width: 100%; text-align: left; padding: 10px 0; }
    .nav-group-title::after { content: " ▶"; font-size: 10px; }
    .nav-group.open .nav-group-title::after { content: " ▼"; }
    .nav-items { display: none; padding-left: 12px; }
    .nav-group.open .nav-items { display: flex; }
}
section { margin-bottom: 26px; }
.section-head { margin-bottom: 17px; }

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

.card, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.card { padding: 18px; }
.card-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 10px; }
.card-title { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.card-body { }
.card-value { font-size: 30px; line-height: 1.1; }
.card-unit { color: var(--muted); font-size: 14px; margin-left: 4px; }
.card-level { margin-left: 10px; vertical-align: middle; }
.card-interp { color: var(--text); font-size: 14px; line-height: 1.45; margin: 8px 0 0; }
.card-footer { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card-time { color: var(--muted); font-size: 12px; }
.card-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.card-status.ok { background: #17392e; color: var(--accent); }
.card-status.delayed { background: #443820; color: var(--warning); }
.card-status.unavailable { background: #49241f; color: var(--danger); }
.card-status.unprocessed { background: #2a2a3a; color: #91a9a6; }
.card.low .card-value { color: var(--accent); }
.card.moderate .card-value { color: var(--warning); }
.card.high .card-value { color: var(--danger); }

.panel { padding: 22px; }
.page-intro { width: min(1240px, calc(100% - 48px)); margin: 0 auto 27px; }
.page-intro h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 9px; }
.page-intro p { color: var(--muted); line-height: 1.55; margin: 0 auto; max-width: 820px; }
.notice {
    background: var(--surface-2);
    border-left: 3px solid var(--accent-2);
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 14px 0 22px;
    padding: 12px 15px;
}
.controls { align-items: start; display: flex; justify-content: space-between; }
label { color: var(--muted); display: grid; font-size: 12px; gap: 6px; }
select {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font-size: 14px;
    padding: 8px;
}

canvas {
    display: block;
    height: clamp(210px, 28vw, 280px);
    max-height: 280px;
    max-width: 100%;
    width: 100%;
}
.caption { margin-top: 13px; }
.columns { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.columns.three { grid-template-columns: repeat(3, 1fr); }
.span-two { grid-column: span 2; }

table { border-collapse: collapse; font-size: 14px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 5px; text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: normal; text-transform: uppercase; }
.pill { border-radius: 100px; display: inline-block; font-size: 12px; padding: 4px 9px; }
.pill.low, .pill.excellent { background: #17392e; color: var(--accent); }
.pill.moderate { background: #443820; color: var(--warning); }
.pill.high { background: #49241f; color: var(--danger); }
.table-wrap { max-height: 470px; overflow: auto; }
.empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.metric-grid .card { min-height: 95px; }
.metric-grid .card .value { font-size: 24px; }

.documentation { max-width: 1240px; }
.doc-highlights {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}
.doc-highlight {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}
.doc-highlight h3 {
    color: var(--accent);
    font-size: 17px;
    font-weight: 550;
    margin: 0 0 9px;
}
.doc-highlight p, .doc-section li, .doc-note {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}
.doc-section { margin-bottom: 18px; }
.pipeline {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}
.pipeline li {
    background: var(--surface-2);
    border-radius: 9px;
    min-height: 126px;
    padding: 14px;
}
.pipeline strong {
    color: var(--text);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}
.pipeline span { display: block; }
.doc-table { max-height: none; overflow-x: auto; }
.doc-table th:nth-child(1) { min-width: 112px; }
.doc-table th:nth-child(2) { min-width: 160px; }
.doc-table th:nth-child(3), .doc-table th:nth-child(4) { min-width: 270px; }
.doc-table td { line-height: 1.48; vertical-align: top; }
.doc-table a { color: var(--accent-2); text-decoration: none; }
.doc-table a:hover { text-decoration: underline; }
.doc-note {
    border-top: 1px solid var(--line);
    margin: 14px 0 0;
    padding-top: 14px;
}
.doc-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}
.doc-list strong { color: var(--text); font-weight: 550; }
.warning-list li {
    border-left: 2px solid var(--warning);
    padding-left: 12px;
}

footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    margin-top: 20px;
    padding: 25px 0 38px;
}

@media (max-width: 820px) {
    .site-header, .controls, .hero-actions { align-items: start; display: grid; gap: 17px; }
    .columns, .columns.three { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .doc-highlights, .pipeline { grid-template-columns: 1fr; }
    .pipeline li { min-height: auto; }
    .domain-grid { grid-template-columns: 1fr; }
    .source-blocks { grid-template-columns: 1fr; }
    .sitemap { grid-template-columns: 1fr 1fr; }
    .faq-item { margin: 0; }
    .metrics-row { grid-template-columns: 1fr 1fr; }
    .reading-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { padding: 24px 18px; }
    .scale-guide { padding: 18px; }
    .limitations { padding: 18px; }
    .site-header { padding: 20px 0 16px; }
    .btn { width: 100%; text-align: center; }
    .metrics-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .sitemap { grid-template-columns: 1fr; }
}

/* =============================================
   Hero section
   ============================================= */
.hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    margin: 0 auto 26px;
    padding: 40px 36px;
    width: min(1240px, calc(100% - 48px));
}
.hero h1 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 550;
    margin: 0 0 12px;
}
.hero-subtitle {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 12px;
    max-width: 780px;
}
.hero-notice {
    color: var(--warning);
    font-size: 14px;
    font-weight: 550;
    margin: 0 0 22px;
}
.hero-actions {
    display: flex;
    gap: 12px;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
    font-weight: 550;
    padding: 10px 22px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
    background: var(--accent);
    color: var(--background);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

/* =============================================
   Location bar
   ============================================= */
.location-bar {
    align-items: center;
    display: flex;
    gap: 18px;
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.location-bar .status { margin: 0; }

/* =============================================
   Scale guide
   ============================================= */
.scale-guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0 auto 26px;
    padding: 26px 30px;
    width: min(1240px, calc(100% - 48px));
}
.scale-guide h2 { margin-bottom: 7px; }
.scale-guide > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 780px;
}
.scale-list {
    display: grid;
    gap: 8px 18px;
    grid-template-columns: auto 1fr;
    margin: 0;
    max-width: 600px;
}
.scale-list dt { align-self: center; }
.scale-list dd {
    align-self: center;
    color: var(--text);
    font-size: 14px;
    margin: 0;
}

/* =============================================
   Domain grid
   ============================================= */
.domain-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.domain-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}
.domain-card h3 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 550;
    margin: 0 0 8px;
}
.domain-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 6px;
}
.domain-question {
    color: var(--text);
    font-style: italic;
    font-size: 13px;
}
.domain-link {
    color: var(--accent-2);
    display: inline-block;
    font-size: 13px;
    margin-top: 8px;
    text-decoration: none;
}
.domain-link:hover { text-decoration: underline; }

/* =============================================
   Example card
   ============================================= */
.example-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto 12px; }
.card.example {
    margin: 0 auto 26px;
    max-width: 660px;
    width: min(1240px, calc(100% - 48px));
}
.example-header {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 16px;
    margin-bottom: 14px;
}
.example-location, .example-time { color: var(--muted); }
.example-body > div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.example-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    width: 120px;
}
.example-value {
    font-size: 26px;
}
.example-text {
    color: var(--text);
    font-size: 14px;
}
.example-notice {
    background: var(--surface-2);
    border-left: 3px solid var(--warning);
    border-radius: 6px;
    color: var(--warning);
    font-size: 12px;
    margin: 14px 0 10px;
    padding: 10px 13px;
}

/* =============================================
   Source blocks
   ============================================= */
.source-blocks {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, 1fr);
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.source-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
}
.source-block h3 {
    color: var(--accent);
    font-size: 15px;
    font-weight: 550;
    margin: 0 0 8px;
}
.source-block p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 6px;
}
.source-block strong { color: var(--text); }
.source-block a { color: var(--accent-2); }

/* =============================================
   Limitations
   ============================================= */
.limitations {
    background: var(--surface-2);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--warning);
    border-radius: 14px;
    margin: 0 auto 26px;
    padding: 26px 30px;
    width: min(1240px, calc(100% - 48px));
}
.limitations h2 { color: var(--warning); margin-bottom: 10px; }
.limitations-strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.55;
    margin: 0 0 14px;
}
.limitations ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.limitations li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    padding: 3px 0 3px 16px;
    position: relative;
}
.limitations li::before {
    color: var(--warning);
    content: "·";
    font-weight: bold;
    left: 0;
    position: absolute;
}

/* =============================================
   System status table
   ============================================= */
.system-status { width: min(1240px, calc(100% - 48px)); margin: 0 auto 26px; }

/* =============================================
   Sitemap
   ============================================= */
.sitemap {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.sitemap-group h3 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 550;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.sitemap-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sitemap-group li { margin-bottom: 4px; }
.sitemap-group a {
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}
.sitemap-group a:hover { color: var(--accent); }

/* =============================================
   FAQ
   ============================================= */
.faq-list {
    margin: 0 auto 26px;
    max-width: 780px;
    width: min(1240px, calc(100% - 48px));
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 0 18px;
}
.faq-item summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 550;
    padding: 14px 0;
}
.faq-item summary::-webkit-details-marker { color: var(--muted); }
.faq-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 14px;
    padding: 0;
}
.faq-item a { color: var(--accent-2); }

/* =============================================
   Footer
   ============================================= */
.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    margin: 20px auto 0;
    padding: 25px 0 38px;
    width: min(1240px, calc(100% - 48px));
}
.footer-main {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, 1fr);
}
.footer-col h4 {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.footer-col p, .footer-col li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 4px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a {
    color: var(--accent-2);
    text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }
.footer-notice {
    background: var(--surface-2);
    border-left: 3px solid var(--warning);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 550;
    margin-top: 18px;
    padding: 10px 14px;
}
.footer-copy {
    color: var(--muted);
    font-size: 12px;
    margin-top: 18px;
    text-align: center;
}
@media (max-width: 820px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-main { grid-template-columns: 1fr; }
}

/* =============================================
   Nav toggle (hamburger)
   ============================================= */
.nav-toggle {
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: none;
    font-size: 22px;
    line-height: 1;
    padding: 6px 14px;
    margin: 0 auto;
    width: min(1240px, calc(100% - 48px));
}
.nav-toggle:hover { background: var(--surface); }
@media (max-width: 820px) {
    .nav-toggle { display: block; }
}

/* =============================================
   Reading guide (Jak číst výstupy)
   ============================================= */
.reading-guide {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0 auto 26px;
    padding: 26px 30px;
    width: min(1240px, calc(100% - 48px));
}
.reading-guide h2 { margin-bottom: 7px; }
.reading-guide > p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
    max-width: 780px;
}
.reading-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.reading-item {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}
.reading-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}
.reading-tag {
    border-radius: 4px;
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.12em;
    padding: 3px 8px;
}
.tag-measurement { background: #17392e; color: var(--accent); }
.tag-index { background: #1a3a4a; color: var(--accent-2); }
.tag-scenario { background: #443820; color: var(--warning); }
.tag-prediction { background: #2a2a3a; color: #b8a8e0; }
.tag-warning { background: #49241f; color: var(--danger); }

/* =============================================
   Locations list
   ============================================= */
.locations-list {
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.locations-list h2 { margin-bottom: 5px; }
.locations-list .status { margin-bottom: 10px; }
.location-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    display: inline-block;
    font-size: 13px;
    padding: 6px 14px;
}

/* =============================================
   Audience (Pro koho jsou výstupy určeny)
   ============================================= */
.audience { width: min(1240px, calc(100% - 48px)); margin: 0 auto 12px; }
.audience-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.audience-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
}
.audience-item strong {
    color: var(--accent);
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}
.audience-item span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* =============================================
   Card link (Detail →)
   ============================================= */
.card-link {
    color: var(--accent-2);
    display: inline-block;
    font-size: 12px;
    margin-top: 8px;
    text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* =============================================
   System metrics
   ============================================= */
.system-metrics {
    margin: 0 auto 26px;
    width: min(1240px, calc(100% - 48px));
}
.system-metrics h2 { margin-bottom: 14px; }
.metrics-row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, 1fr);
}
.metrics-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.metrics-number {
    color: var(--accent);
    display: block;
    font-size: 32px;
    font-weight: 550;
    line-height: 1;
    margin-bottom: 6px;
}
.metrics-label {
    color: var(--muted);
    font-size: 12px;
}

/* =============================================
   Header title (p instead of h1)
   ============================================= */
.header-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 550;
    margin: 0;
}

/* =============================================
   Publication status panel
   ============================================= */
.status-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    margin: 0 auto 26px;
    padding: 22px 26px;
    width: min(1240px, calc(100% - 48px));
}
.status-panel.ok { border-left-color: var(--accent); }
.status-panel.delayed { border-left-color: var(--warning); }
.status-panel.unavailable { border-left-color: var(--danger); }
.status-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
}
.status-field { }
.status-label {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}
.status-value {
    font-size: 16px;
    font-weight: 550;
}
.status-badge {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 100px;
}
.status-badge.ok { background: #17392e; color: var(--accent); }
.status-badge.delayed { background: #443820; color: var(--warning); }
.status-badge.unavailable { background: #49241f; color: var(--danger); }
.status-interpretation {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 14px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: 8px;
}
@media (max-width: 820px) {
    .status-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .status-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Sources intro
   ============================================= */
.sources-intro {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 auto 16px;
    max-width: 780px;
    width: min(1240px, calc(100% - 48px));
}

/* =============================================
   dfn tooltip
   ============================================= */
dfn {
    border-bottom: 1px dashed var(--muted);
    cursor: help;
    font-style: normal;
}
dfn:hover { color: var(--accent); }

/* =============================================
   Chart summary
   ============================================= */
.chart-summary {
    background: var(--surface-2);
    border-radius: 8px;
    font-size: 13px;
    margin: 12px 0 0;
    padding: 10px 14px;
}
.chart-summary span {
    color: var(--text);
    font-weight: 550;
}

/* =============================================
   Focus styles (WCAG AA)
   ============================================= */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 4px;
}
.nav-group-title:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
    border-radius: 2px;
}
.card-link:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

/* =============================================
   Header location name
   ============================================= */
#current-location-name {
    color: var(--accent);
}

/* =============================================
   Table horizontal scroll on mobile
   ============================================= */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* =============================================
   Language switcher
   ============================================= */
.lang-switch {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    width: min(1240px, calc(100% - 48px));
    margin: 8px auto 0;
    padding: 0 0 4px;
}
.lang-link {
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
}
.lang-link:hover { color: var(--accent); }
.lang-link.lang-active {
    color: var(--accent);
    font-weight: 550;
}
.lang-sep {
    color: var(--line);
    font-size: 12px;
}

/* =============================================
   Visit counter in footer
   ============================================= */
.footer-visit {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}
#visit-count {
    color: var(--accent-2);
}
