@import url("./module-palette.css");

.fachblock { display: block; min-width: 0; }
@scope (.fach-content) {
:scope { min-width: 0; }
:scope > section { width: 100%; margin: 0; padding: 0; border: 0; }
:scope .wrap { width: 100%; max-width: none; margin-inline: 0; }
:scope .section-title h2 { font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.1; }
:scope .section-title p:not(.eyebrow), .chart-disclaimer, .facility-note { font-size: .875rem; }
:host a:focus-visible, :host button:focus-visible, :host input:focus-visible { outline-offset: 3px; }
:scope .network-workbench { margin-top: 0; border-radius: 10px; overflow: hidden; }
.network-workbench .network-main { min-height: 0; }
.network-workbench .network-map, .network-workbench .network-map svg { min-height: 0; height: clamp(420px, 62vh, 720px); }
.network-workbench:fullscreen .network-map, .network-workbench:fullscreen .network-map svg { height: calc(100dvh - 62px); }
:scope .network-live-stack { display: flex; flex-wrap: wrap; margin: 1rem 0; gap: .5rem; min-width: 0; }
.network-section .network-kpis { border-radius: 8px; overflow: hidden; }
.blueeye-product-card img { max-width: 100%; }
:scope .history-section, :scope .matrix-section { min-width: 0; }
:scope .facility-block { margin-top: 0; }
:scope .facility-row { font-size: .83rem; }
:scope .facility-row small { font-size: .75rem; }
:scope small { line-height: 1.45; }
@media (max-width: 720px) {
  .network-workbench .network-map, .network-workbench .network-map svg { height: clamp(360px, 58vh, 490px); }
  :scope .network-live-stack { gap: .3rem; }
  :scope .section-title h2 { font-size: 1.65rem; }
}
@media print {
  :scope .network-map { break-inside: avoid; }
}

.network-toolbar { gap: .65rem; flex-wrap: wrap; }
.network-toolbar > div { flex-wrap: wrap; }
.network-toolbar button { font: 600 .85rem/1.2 var(--font-sans); padding: .45rem .7rem; min-height: 40px; }
.network-search label, .network-kpis small, .network-live-stack span { font-size: .76rem; }
.network-kpis span, .network-legend, .network-storage-key { font-size: .82rem; }
.network-search input { font-size: 1rem; }
.network-search input::placeholder { opacity: 1; }
.network-search-results b, .network-search-results button, .network-detail dl div, .network-detail dd,
.network-detail > span, .network-detail > a, .overview-detail > p:not(.eyebrow), .network-count-note { font-size: .875rem; }
.network-search-results small, .network-search-results span, .network-storage-key > span { font-size: .75rem; }
.section-title .eyebrow, .facility-head .eyebrow { font-size: .75rem; }
.forecast-cases small, .price-kpis small, .price-kpis span, .route-row small, .reference-breakdown small,
.chart-head > span, .curve-head span, .method-note-wide, .source-grid small, .quality-source-note { font-size: .78rem; }
.reference-intro, .facility-empty, .facility-note, .panel .chart-disclaimer,
:scope .reference-caveat, .balance-source-strip p, .method-note-wide p, .reference-winter-card p,
.quality-section-title p, .method-section .section-title p, .method-note-wide,
.network-method-strip p, .author-section a, .blueeye-actions a { font-size: .875rem; line-height: 1.5; }
@media (max-width: 600px) {
  .network-toolbar { gap: .45rem; }
  .network-toolbar button, .network-toolbar > div:first-child button { min-height: 44px; font-size: .81rem; }
  .network-kpis article { padding: .75rem; }
}
}
@scope (.fach-content) {
  .network-workbench.window-map { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; z-index: 200; overflow: auto; border-radius: 0; }
  .network-workbench.window-map .network-map, .network-workbench.window-map .network-map svg { height: calc(100dvh - 70px); }
  @media(max-width:720px) {
    .network-workbench.window-map .network-map, .network-workbench.window-map .network-map svg { height: 65dvh; }
  }
}

@scope (.fach-content) {
  .network-toolbar button, .network-touch-toggle { border-radius: 6px; }
  .network-search input { border-radius: 7px; }
  .network-legend span, .network-storage-key > span { font: 600 .81rem/1.45 var(--font-sans); }
  .network-legend { gap: .65rem .9rem; }
  .network-storage-key small, .network-count-note,
  .overview-balance small, .overview-balance span { font-size: .78rem; line-height: 1.5; }
  .overview-balance strong i { font-size: .83rem; }
  .network-map-hint, .osm-attribution { font: 550 .75rem/1.35 var(--font-sans); border-radius: 5px; }
  .network-map-hint { bottom: 2.4rem; max-width: calc(100% - 2rem); }
  .network-map .city-layer text { font-size: 11px; }
  .network-map .water-label { font-size: 12px; letter-spacing: .12em; }
  .network-map .flow-code { font-size: 9px; }
  .network-map .flow-value { font-size: 13px; }
  .network-map .storage-move { font-size: 10px; }
  @media (max-width: 600px) {
    .network-map .city-layer text { font-size: 12px; }
    .network-storage-key small, .network-legend span { font-size: .78rem; }
  }
}
