/* The Land Quality page (src/quality/land-twin.js). It wears the Water Quality page's classes (wqx-*, in wq-twin.css)
   so the two read as one; only what that page does not have is here. Colour comes from tokens only. Open or closed
   is a shape (filled or hollow), never a colour on its own. */

.lqx-clean { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--guide-color-bg-1); color: var(--guide-color-ink-soft); }
.lqx-clean b { color: var(--guide-color-ink); }
.lqx-clean i, .lqx-clean svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.lqx-term { margin-left: 6px; opacity: .8; }
.lqx-term::before { content: '('; } .lqx-term::after { content: ')'; }
.lqx-h4 { margin: 18px 0 8px; font-size: var(--guide-fs-sm); color: var(--guide-color-ink-muted); font-weight: 600; }
.lqx-lede { margin: 0 0 12px; font-size: var(--guide-fs-md); line-height: 1.5; }
.lqx .wqx-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lqx .wqx-table td small { margin-top: 2px; }
.lqx .wqx-callout { margin: 12px 0 0; }

/* the hub gives every label in a panel small capitals; this page's labels are sentences */
.lqx .wqx-scope label { font-size: var(--guide-fs-xs); }

/* the status mark: shape carries open or closed */
.lqx-mark-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-sizing: border-box; background: var(--c, var(--guide-color-ink-soft)); border: 2px solid var(--c, var(--guide-color-ink-soft)); vertical-align: -1px; margin-right: 6px; }
.lqx-mark-dot.is-closed { background: transparent; }
.lqx-mark-dot.is-other { background: transparent; border-style: dashed; }
.lqx-mark-dot.is-place { border-radius: 2px; background: transparent; border-color: var(--guide-color-ink-muted); }
.lqx-swatch-area { display: inline-block; width: 14px; height: 10px; margin-right: 6px; border-radius: 2px; background: color-mix(in srgb, var(--guide-color-series-3) 22%, transparent); border: 1px solid var(--guide-color-series-3); vertical-align: -1px; }
.lqx-badge.is-closed::before { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.lqx-badge.is-other::before { background: transparent; box-shadow: inset 0 0 0 2px var(--guide-color-neutral-400); }

/* map */
.lqx-map .lqx-dot { cursor: pointer; stroke-width: 1; }
.lqx-map .lqx-dot.is-open { stroke: var(--guide-color-paper); stroke-width: .6; }
.lqx-map .lqx-dot.is-dim { opacity: .14; }
.lqx-map .lqx-dot:hover { stroke: var(--guide-color-ink); stroke-width: 1.6; }
.lqx-map .lqx-dot.is-sel { stroke: var(--guide-color-ink); stroke-width: 2.2; }
.lqx-area { fill: color-mix(in srgb, var(--guide-color-series-3) 16%, transparent); stroke: var(--guide-color-series-3); stroke-width: .8; cursor: pointer; }
.lqx-area.is-sel { stroke: var(--guide-color-ink); stroke-width: 1.8; }
.lqx-here { fill: var(--guide-color-ink); stroke: var(--guide-color-paper); stroke-width: 1.5; }
.lqx-here-ring { fill: none; stroke: var(--guide-color-ink); stroke-width: 1.2; stroke-dasharray: 4 3; }
.lqx-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 10px; }
.lqx label.lqx-chip { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--guide-color-ink); display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--guide-color-border-strong); font-size: var(--guide-fs-sm); cursor: pointer; background: var(--guide-color-paper); }
.lqx-chip i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lqx-chip b { font-variant-numeric: tabular-nums; color: var(--guide-color-ink-muted); font-weight: 600; }
.lqx-chip input { margin: 0; accent-color: var(--guide-color-charcoal); }
.lqx .wqx-chartkey > span { display: inline-flex; align-items: center; }

/* one-line rows: lists of records */
.lqx-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.lqx-rows li + li { border-top: 1px solid var(--guide-color-border-subtle); }
.lqx-row { width: 100%; display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 6px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.lqx-row:hover, .lqx-row:focus-visible { background: var(--guide-color-bg-1); }
.lqx-row .lqx-mark-dot { margin: 0; }
.lqx-row-main { min-width: 0; }
.lqx-row-main b { display: block; font-size: var(--guide-fs-md); font-weight: 600; overflow-wrap: anywhere; }
.lqx-row-fig { text-align: right; font-size: var(--guide-fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lqx-row-fig em { display: block; font-style: normal; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.lqx-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; font-size: var(--guide-fs-sm); }
.lqx label.lqx-sort { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: var(--guide-fs-sm); display: inline-flex; align-items: center; gap: 8px; color: var(--guide-color-ink-muted); }
.lqx-sort select { font: inherit; color: var(--guide-color-ink); padding: 6px 8px; border-radius: 8px; border: 1px solid var(--guide-color-border-default); background: var(--guide-color-paper); }
.lqx .wqx-tabs button span { color: var(--guide-color-ink-muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.lqx .wqx-tabs button.is-on span { color: var(--guide-color-on-dark-3); }

/* time to close */
.lqx-median { stroke: var(--guide-color-ink-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.lqx-mark { stroke: var(--guide-color-ink); stroke-width: 1.4; }
.lqx-mark-lbl { fill: var(--guide-color-ink); font-size: var(--guide-fs-xs); font-weight: 700; }
.lqx-cohs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lqx-coh { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: var(--guide-fs-sm); }
.lqx-coh-name em { display: block; font-style: normal; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.lqx-coh-track { position: relative; height: 14px; border-radius: 7px; background: var(--guide-color-bg-2); }
.lqx-coh-range { position: absolute; top: 5px; height: 4px; border-radius: 2px; background: var(--guide-color-series-1); opacity: .45; }
.lqx-coh-dot { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--guide-color-series-1); box-shadow: 0 0 0 2px var(--guide-color-paper); }
.lqx-coh-fig { min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; }
.lqx-coh-none { grid-column: 2 / 4; font-size: var(--guide-fs-xs); color: var(--guide-color-ink-muted); }
.lqx-coh-scale { display: flex; justify-content: space-between; margin: 4px 0 0; padding-left: calc(30% + 10px); padding-right: calc(5.5em + 10px); color: var(--guide-color-ink-muted); font-size: var(--guide-fs-xs); }

/* one record */
.lqx-facts { margin: 12px 0 0; display: grid; gap: 0; }
.lqx-facts > div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--guide-color-border-subtle); font-size: var(--guide-fs-sm); }
.lqx-facts dt { color: var(--guide-color-ink-muted); }
.lqx-facts dd { margin: 0; overflow-wrap: anywhere; }
.lqx-todo { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--guide-fs-sm); line-height: 1.5; }
.lqx-record .wqx-next + .lqx-facts { margin-top: 14px; }

@media (max-width: 560px) {
  .lqx-row { grid-template-columns: 12px minmax(0, 1fr); }
  .lqx-row-fig { grid-column: 2; text-align: left; white-space: normal; }
  .lqx-row-fig em { display: inline; margin-left: 6px; }
  .lqx-coh { grid-template-columns: 1fr auto; }
  .lqx-coh-track { grid-column: 1 / -1; grid-row: 2; }
  .lqx-coh-none { grid-column: 1 / -1; }
  .lqx-coh-scale { padding-left: 0; padding-right: 0; }
  .lqx-facts > div { grid-template-columns: 1fr; gap: 2px; }
}

@media print {
  .lqx-chips, .lqx-filters, .lqx .wqx-pager, .lqx-clean { display: none !important; }
  .lqx-row { padding: 4px 0; }
}
