:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #1a2330;
  --muted: #5b6875;
  --border: #dde3ea;
  --accent: #0b5fff;
  --ok: #1a8f4a;
  --warn: #c98a00;
  --bad: #c9302c;
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 1.5em; }
p { margin: 0 0 1em; }

.container { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); }
.lang-switch { margin-inline-start: auto; }

main.container { padding-block: 24px 48px; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding-block: 24px; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.muted { color: var(--muted); }
.small { font-size: .875rem; }

@media (max-width: 600px) {
  body { font-size: 15px; }
}

/* --- layout blocks --- */
.hero { margin-bottom: 24px; }
.lead { font-size: 1.05rem; max-width: 760px; }
.strait-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.strait-card { display: block; color: inherit; }
.strait-card:hover { text-decoration: none; border-color: var(--accent); }
.strait-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.strait-card-title { font-size: 1.1rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.stat-row dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.stat-row dd { margin: 0; font-size: 1.4rem; font-weight: 600; }
.explainer { margin-top: 32px; max-width: 760px; }
.explainer li { margin-bottom: 8px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #e3f5ea; color: var(--ok); }
.badge-info { background: #e5eeff; color: var(--accent); }
.badge-warn { background: #fff4d6; color: var(--warn); }
.badge-bad { background: #fde5e4; color: var(--bad); }
.badge-neutral { background: #eceff3; color: var(--muted); }

.freshness { font-size: .9rem; margin: 8px 0 0; color: var(--muted); }
.freshness .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; background: var(--muted); }
.freshness-live .dot { background: var(--ok); }
.freshness-delayed .dot { background: var(--warn); }
.freshness-unavailable .dot { background: var(--bad); }

.breadcrumb { margin-bottom: 8px; color: var(--muted); }
.status-block { margin-bottom: 16px; }
.status-main { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-sentence { margin: 0; font-size: 1.05rem; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; }
.kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.kpi-label { font-size: .85rem; color: var(--muted); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.card + .card, .two-col + .card, .card + .prose { margin-top: 16px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: start; font-weight: 500; padding: 6px 0; }
.data-table td { padding: 6px 0 6px 12px; text-align: end; font-variant-numeric: tabular-nums; }
.data-table td.bar-cell { width: 40%; text-align: start; }
.bar { display: inline-block; height: 10px; border-radius: 5px; background: var(--muted); min-width: 2px; }
.bar-tanker { background: #c9302c; } .bar-cargo { background: #1a8f4a; } .bar-container { background: #0b5fff; }
.bar-lng_lpg { background: #c98a00; } .bar-passenger { background: #8e44ad; } .bar-other { background: #5b6875; }

.chart-wrap { position: relative; height: 220px; width: 100%; }
.map { height: 420px; border-radius: var(--radius); overflow: hidden; background: #e9eef3; }
.map-section { position: relative; }
.vessel-marker { background: none; border: none; }
.vessel-card { position: absolute; top: 60px; inset-inline-end: 24px; width: min(300px, calc(100% - 48px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 1000; font-size: .9rem; }
.vessel-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 8px 0 0; }
.vessel-card dt { color: var(--muted); }
.vessel-card dd { margin: 0; }
.vessel-card-head { display: flex; justify-content: space-between; align-items: center; }
.vessel-card-close { border: none; background: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }

.prose { max-width: 760px; }

@media (max-width: 600px) {
  .map { height: 320px; }
  .kpi-value { font-size: 1.6rem; }
  .stat-row dd { font-size: 1.2rem; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lang-switch select { font: inherit; padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
