/* Refinements confined to LIDO B's filter/catalogue surface and marker explanations. */
.hero-b .network-catalog-content { display: contents; }
.hero-b .network-catalog-content[hidden] { display: none; }
.hero-b .network-header { cursor: pointer; }
.hero-b .network-catalog-toggle {
  display: flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: var(--hero-light-accent);
  font: inherit; font-size: 12px; cursor: pointer;
}
.hero-b .network-panel[data-catalog-open="false"] { height: auto; align-self: start; }
.hero-b .network-panel[data-catalog-open="false"] .network-header {
  min-height: 48px; padding: 2px 14px; border-bottom: 0;
}
.hero-b .network-panel[data-catalog-open="true"] .network-catalog-content > :not([hidden]) {
  animation: catalog-reveal 180ms ease-out;
}
@keyframes catalog-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-b .network-panel[data-catalog-open="true"] .network-catalog-content > :not([hidden]) { animation: none; }
}
.hero-b .network-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-b .network-header {
  flex-shrink: 0;
}
.hero-b .network-panel .station-popover {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.hero-b .observation-filters {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(231, 238, 240, 0.16);
}
/* A long result list must scroll below the search, never compress it out of view. */
.hero-b .network-panel[data-filters-open="false"] .observation-filters {
  flex-shrink: 0;
}
.hero-b .observation-filters [hidden],
.hero-b .network-group[hidden],
.hero-b .globe-marker-hint[hidden] {
  display: none;
}
.hero-b .observation-filters :is(p, fieldset) {
  margin: 0;
}
.hero-b .filter-top {
  display: grid;
  flex-shrink: 0;
  gap: 8px;
  padding: 12px 14px;
}
.hero-b .filter-provenance {
  color: #c5d9dd;
  font-size: 11px;
  line-height: 1.4;
}
.hero-b :is(.filter-search, .filter-criteria > label, .filter-period label) {
  display: grid;
  gap: 4px;
  color: var(--paper);
  font-size: 12px;
  min-width: 0;
}
.hero-b .observation-filters :is(input:not([type="checkbox"]), select) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 36px;
  border: 1px solid rgba(143, 195, 208, 0.45);
  border-radius: 6px;
  padding: 7px 8px;
  background: rgba(7, 25, 31, 0.68);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  color-scheme: dark;
}
.hero-b .observation-filters input::placeholder {
  color: #c0d2d6;
  opacity: 1;
}
.hero-b .observation-filters select {
  text-overflow: ellipsis;
}
.hero-b .observation-filters option {
  background: var(--ink-soft);
  color: var(--paper);
}
.hero-b .observation-filters :is(input, select, summary):focus-visible {
  outline: 2px solid var(--hero-light-accent);
  outline-offset: 2px;
}
.hero-b .filter-actions,
.hero-b .filter-footer {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.hero-b .observation-filters button {
  min-height: 36px;
  border: 1px solid rgba(143, 195, 208, 0.4);
  border-radius: 6px;
  padding: 7px 10px;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.hero-b .observation-filters button:hover:not(:disabled) {
  background: rgba(105, 225, 210, 0.12);
}
.hero-b .observation-filters button:disabled {
  opacity: 0.5;
  cursor: default;
}
.hero-b .filter-actions [aria-expanded="true"] {
  border-color: var(--hero-light-accent);
  color: var(--hero-light-accent);
}
.hero-b .filter-count {
  font-size: 12px;
  line-height: 1.4;
  color: var(--paper);
}
.hero-b .filter-record-count {
  color: var(--hero-light-accent);
  font-size: 12px;
  line-height: 1.4;
}
.hero-b .filter-totals {
  display: grid;
  gap: 3px;
}
.hero-b .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 90px;
  overflow: auto;
  scrollbar-width: thin;
}
.hero-b .filter-chips button {
  max-width: 100%;
  min-height: 30px;
  padding: 5px 7px;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 11px;
  color: var(--hero-light-accent);
}
.hero-b .filter-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 0 14px 12px;
  scrollbar-width: thin;
}
.hero-b .filter-criteria > :is([for="observation-network"], fieldset, details) {
  grid-column: 1 / -1;
}
.hero-b .filter-footer {
  flex-shrink: 0;
  padding: 10px 14px;
  border-top: 1px solid rgba(143, 195, 208, 0.2);
}
.hero-b .filter-footer [data-filter-focus] {
  flex: 1;
}
.hero-b :is(.filter-advanced, .filter-settings) {
  min-width: 0;
}
.hero-b :is(.filter-advanced, .filter-settings) summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-top: 1px solid rgba(143, 195, 208, 0.25);
  font-size: 12px;
  color: var(--paper);
  cursor: pointer;
  list-style: none;
}
.hero-b :is(.filter-advanced, .filter-settings) summary::-webkit-details-marker {
  display: none;
}
.hero-b :is(.filter-advanced, .filter-settings) summary span {
  margin-left: auto;
  color: var(--hero-light-accent);
  font-size: 11px;
}
.hero-b :is(.filter-advanced, .filter-settings) summary i {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border: solid #c5d9dd;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  margin: 0 2px 3px 3px;
}
.hero-b :is(.filter-advanced, .filter-settings)[open] summary {
  margin-bottom: 10px;
}
.hero-b :is(.filter-advanced, .filter-settings)[open] summary i {
  transform: rotate(225deg);
  margin-bottom: 0;
}
.hero-b .filter-advanced[data-active="true"] summary {
  color: var(--hero-light-accent);
}
.hero-b .filter-period {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
}
.hero-b :is(.filter-period, .filter-resources) legend {
  padding: 0 0 6px;
  color: var(--paper);
  font-size: 12px;
}
.hero-b .filter-resources {
  min-width: 0;
  border: 0;
  padding: 0;
}
.hero-b .filter-resources legend small {
  display: inline;
  margin-left: 6px;
  color: #c5d9dd;
  font-size: 11px;
}
.hero-b .filter-resources label {
  min-height: 28px;
}
.hero-b .filter-resources label small:empty {
  display: none;
}
.hero-b :is(.filter-resources label, .filter-demo-toggle) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--paper);
  font-size: 12px;
}
.hero-b .filter-resources label > span {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
}
.hero-b .filter-resources label small {
  margin-left: auto;
  color: #c5d9dd;
  font-size: 10px;
}
.hero-b .filter-resources label[data-disabled="true"] {
  color: #afc2c6;
}
.hero-b .filter-resources label[data-demo="true"] small {
  color: var(--hero-light-accent);
}
.hero-b :is(.filter-resources input, .filter-demo-toggle input) {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--hero-light-accent);
}
.hero-b
  :is(
    .filter-period small,
    .filter-demo-note,
    .filter-error,
    .filter-legend,
    .station-filter-metadata,
    .filter-settings p,
    .filter-settings small,
    [data-filter-resource-note],
    .station-resource-summary
  ) {
  color: #c5d9dd;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hero-b .filter-demo-note {
  color: var(--hero-light-accent);
}
.hero-b [data-filter-resource-note] {
  margin-top: 5px;
}
.hero-b .filter-settings p {
  margin-bottom: 6px;
}
.hero-b .filter-settings > small {
  display: block;
  margin-top: 6px;
}
.hero-b .filter-empty {
  display: grid;
  gap: 5px;
  padding-block: 4px;
  font-size: 12px;
  line-height: 1.4;
}
.hero-b [data-filter-period-error] {
  color: #ffd393;
  font-size: 12px;
  line-height: 1.4;
}
.hero-b .network-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.hero-b .network-panel[data-filters-open="true"] .network-body {
  display: none;
}
.hero-b .network-panel .network-list,
.hero-b .network-panel[data-expanded="true"] .network-list {
  max-height: none;
  overflow: visible;
}
.hero-b .network-row > span {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
}
.hero-b .network-row small {
  overflow-wrap: anywhere;
}
.hero-b .filter-legend {
  margin: 0;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(231, 238, 240, 0.12);
}
.hero-b .network-group {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(231, 238, 240, 0.2);
}
.hero-b .network-group strong {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.hero-b .network-group small {
  color: #c5d9dd;
  font-size: 11px;
  line-height: 1.45;
}
.hero-b .network-group button {
  min-height: 36px;
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: var(--hero-light-accent);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.hero-b .station-filter-metadata {
  margin: 0 0 10px;
  padding-right: 12px;
}
.hero-b .station-resource-summary {
  margin-bottom: 12px;
}
.hero-b .station-resource-summary p {
  margin: 0 0 5px;
}
.hero-b .station-resource-summary a {
  display: block;
  min-height: 36px;
  color: var(--hero-light-accent);
  overflow-wrap: anywhere;
}
.hero-b .globe-marker-hint {
  position: absolute;
  z-index: 7;
  max-width: min(260px, 90%);
  border: 1px solid rgba(143, 195, 208, 0.5);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(7, 25, 31, 0.95);
  color: var(--paper);
  font:
    12px/1.45 var(--font-body);
  pointer-events: none;
}
.hero-b .globe-marker-hint small {
  display: block;
  color: #c5d9dd;
  font-size: 11px;
}

.hero-b .filter-resources label {
  min-height: 28px;
}

@media (max-width: 1280px) {
  .hero-b .filter-criteria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: min(460px, 60dvh);
  }
  .hero-b :is(.filter-resources, .filter-advanced, .filter-settings) {
    grid-column: 1 / -1;
  }
  .hero-b .filter-period {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-b .filter-period :is(small, p) {
    grid-column: 1 / -1;
  }
  .hero-b .observation-filters :is(input:not([type="checkbox"]), select, button),
  .hero-b
    :is(
      .filter-demo-toggle,
      .filter-resources label,
      .filter-advanced summary,
      .filter-settings summary
    ),
  .hero-b .network-group button {
    min-height: 44px;
  }
  .hero-b .network-body {
    max-height: 350px;
  }
}
@media (max-width: 600px) {
  .hero-b .filter-criteria {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-b .filter-period {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-b .filter-top {
    padding: 14px;
    gap: 10px;
  }
  .hero-b .observation-filters :is(input:not([type="checkbox"]), select) {
    font-size: 16px;
  }
  .hero-b .observation-filters button {
    font-size: 13px;
  }
  .hero-b
    :is(
      .filter-search,
      .filter-criteria > label,
      .filter-period label,
      .filter-period legend,
      .filter-count,
      .filter-record-count,
      .filter-resources legend,
      .filter-resources label
    ) {
    font-size: 14px;
  }
  .hero-b
    :is(
      .filter-provenance,
      .filter-demo-note,
      .filter-period small,
      .filter-legend,
      .station-filter-metadata,
      [data-filter-resource-note],
      .filter-resources label small
    ) {
    font-size: 12px;
  }
  .hero-b :is(.filter-advanced, .filter-settings) summary {
    font-size: 14px;
  }
  .hero-b .filter-settings summary span {
    font-size: 11px;
  }
}

/* Reversible station-sheet refinement; the catalogue and map retain their geometry. */
.hero-b .station-popover .station-popover-header {
  margin-right: 0;
}
.hero-b .station-popover .station-popover-label {
  min-block-size: 44px;
  padding-right: 48px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.hero-b .station-popover .station-heading-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-right: 0;
}
.hero-b .station-popover h3 {
  max-width: none;
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.hero-b .station-popover .station-state {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.hero-b .station-popover .station-location {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.hero-b .station-popover .station-measurement {
  font-size: 13px;
  line-height: 1.5;
}
.hero-b .station-popover :is(.station-filter-metadata, .station-resource-summary) {
  font-size: 13px;
  line-height: 1.55;
}
.hero-b .station-popover .station-filter-metadata {
  margin: 10px 0 8px;
  padding-right: 0;
}
.hero-b .station-popover .station-resource-summary p {
  margin: 0 0 10px;
}
.hero-b .station-popover [data-station-verified-details] {
  border-top: 1px solid rgba(231, 238, 240, 0.16);
  padding-top: 12px;
}
.hero-b .station-popover [data-station-verified-status] {
  color: #c5d9dd;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.hero-b .station-popover [data-station-verified-details] > label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--mist);
}
.hero-b .station-popover [data-station-record-select] {
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(231, 238, 240, 0.3);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
  padding: 8px;
  font: inherit;
  font-size: 14px;
}
.hero-b .station-popover [data-station-record-select]:focus-visible {
  outline: 2px solid var(--hero-light-accent);
  outline-offset: 3px;
}
.hero-b .station-popover .station-meta {
  gap: 12px;
  margin-top: 0;
}
.hero-b .station-popover .station-meta > div {
  border-left: 0;
  padding: 0;
}
.hero-b .station-popover .station-meta dt {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.hero-b .station-popover .station-meta dd {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.hero-b .station-popover .station-members {
  font-size: 12px;
  line-height: 1.6;
}
.hero-b .station-popover .station-popover-footer small {
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .hero-b .station-popover [data-station-record-select] {
    font-size: 16px;
  }
  .hero-b .station-popover .station-meta dt {
    font-size: 12px;
  }
}
