/* Where route checks work: the block written by scripts/marine-data/coverage.mjs (home and support pages) */
.cov { --cov-ink: rgba(255,255,255,0.92); --cov-ink-2: rgba(255,255,255,0.64); --cov-ink-3: rgba(255,255,255,0.44); --cov-line: rgba(255,255,255,0.10); color: var(--cov-ink); margin: 12px 0; }

.cov-stats { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; }
.cov-stats li { display: flex; align-items: baseline; gap: 6px; padding: 7px 16px; border: 1px solid var(--cov-line); border-radius: 999px; background: rgba(255,255,255,0.04); color: var(--cov-ink-2); font-size: 14px; }
.cov-stats strong { color: #fff; font-size: 18px; font-weight: 800; }

.cov-layout { display: flex; flex-direction: column; gap: 20px; }

.cov-figure { margin: 0; padding: 18px; border: 1px solid var(--cov-line); border-radius: 20px; background: radial-gradient(120% 90% at 30% 20%, rgba(43,163,181,0.10), transparent 60%), rgba(255,255,255,0.025); }
.cov-map { display: block; width: 100%; height: auto; }
.cov-land { fill: #17305A; stroke: rgba(255,255,255,0.18); stroke-width: 0.6; stroke-linejoin: round; }
.cov-borders { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 0.6; stroke-linejoin: round; }
.cov-coast use { fill: none; stroke: var(--c); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 3px var(--c)); }
.cov-coast { transition: opacity 0.2s; }
.cov-figure[data-active] .cov-coast { opacity: 0.18; }
.cov-figure[data-active="0"] .cov-coast[data-area="0"],
.cov-figure[data-active="1"] .cov-coast[data-area="1"],
.cov-figure[data-active="2"] .cov-coast[data-area="2"],
.cov-figure[data-active="3"] .cov-coast[data-area="3"] { opacity: 1; }
.cov-labels text { font: 600 12px Inter, system-ui, -apple-system, sans-serif; fill: rgba(255,255,255,0.85); paint-order: stroke; stroke: #0B1D3A; stroke-width: 3px; stroke-linejoin: round; }
.cov-dot { fill: #fff; stroke: #0B1D3A; stroke-width: 1.2; }

.cov-side { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.cov-search { grid-column: 1 / -1; }

.cov-search { padding: 16px 18px; border: 1px solid var(--cov-line); border-radius: 16px; background: rgba(255,255,255,0.04); }
.cov-search label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cov-search input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; background: rgba(0,0,0,0.25); color: #fff; font: inherit; font-size: 16px; }
.cov-search input::placeholder { color: var(--cov-ink-3); }
.cov-search input:focus { outline: 2px solid #2BA3B5; outline-offset: 1px; border-color: transparent; }
.cov-result { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cov-ink-2); }
.cov-result:not(:empty) { margin-top: 10px; }
.cov-result .yes { color: #7ED6A7; font-weight: 700; }
.cov-result .no { color: #FF8A70; font-weight: 700; }

.cov-card { margin: 0; border: 1px solid var(--cov-line); border-radius: 16px; background: rgba(255,255,255,0.03); transition: border-color 0.2s, background 0.2s; }
.cov-card:hover, .cov-card[open] { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: rgba(255,255,255,0.05); }
.cov-card summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; min-height: 44px; font-weight: 400; }
.cov-card summary::-webkit-details-marker { display: none; }
.cov-swatch { flex: none; width: 10px; height: 36px; border-radius: 6px; background: var(--c); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 60%, transparent); }
.cov-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cov-card-title strong { font-size: 16px; font-weight: 700; color: #fff; }
.cov-card-title span { font-size: 13px; color: var(--cov-ink-3); }
.cov-count { flex: none; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: 12px; font-weight: 700; }
.cov-chevron { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--cov-ink-3); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.cov-card[open] .cov-chevron { transform: rotate(180deg); }
.cov-card > .cov-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; padding: 4px 18px 18px 42px; }
.cov-region h4 { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--cov-ink); }
.cov-region p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--cov-ink-3); }
.cov-region.hit h4 { color: var(--c); }

.cov-note { display: flex; gap: 8px; align-items: flex-start; max-width: 680px; margin: 18px auto 0; color: var(--cov-ink-3); font-size: 13px; line-height: 1.55; text-align: left; }
.cov-note::before { content: "i"; flex: none; width: 18px; height: 18px; margin-top: 1px; border: 1px solid currentColor; border-radius: 50%; font: italic 700 11px/16px Georgia, serif; text-align: center; }

@media (max-width: 520px) {
  .cov-figure { padding: 10px; }
  .cov-card > .cov-regions { padding-left: 18px; grid-template-columns: 1fr; }
  .cov-side { grid-template-columns: 1fr; }
  .cov-labels { display: none; }
  .cov-coast use { stroke-width: 6; }
}
@media (prefers-reduced-motion: reduce) { .cov-coast, .cov-chevron, .cov-card { transition: none; } }
