/* List Size V2.1: the geography navigator and State of the Nation's tabs. Builds on explore.v1.css (lsx-*) and the
 * tool's tokens (monthly.v1.css). Links styled as tabs, never ARIA tab roles; the current one carries aria-current. */

/* Navigator: month and search on the first row, the four geography lists and Open on the second. */
.lsx-nav { padding: 16px 18px; }
.lsx-nav-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 28px; }
.lsx-nav-month { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.lsx-nav-search { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1 1 380px; max-width: 640px; margin-left: auto; }
.lsx-nav-month label, .lsx-field label, .lsx-nav-search label, .lsx-window label {
  display: block; flex-basis: 100%; margin: 0 0 2px; font-size: 12px; font-weight: 700; color: var(--lsx-mut); }
.lsx-nav select, .lsx-nav input[type="search"], .lsx-window select {
  border: 1px solid #94a3b8; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13.5px;
  background: #fff; color: var(--ls-ink); max-width: 100%; min-width: 0; }
.lsx-nav-search input[type="search"] { flex: 1 1 220px; }
.lsx-nav-search .lsx-foot { flex-basis: 100%; margin: 2px 0 0; }
.lsx-nav-search .lsx-foot:empty { display: none; }
.lsx-nav-results { flex-basis: 100%; }
.lsx-nav-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13.5px; max-height: 320px; overflow-y: auto; }
.lsx-find-list { max-height: none; columns: 2 300px; column-gap: 24px; }
.lsx-nav-list li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid #eef2f7; }
.lsx-nav-list a { color: #1d4ed8; font-weight: 600; }
.lsx-nav-list .lsx-code { display: block; }
.lsx-nav-more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ls-border); }
.lsx-nav-more > summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #1d4ed8; }
.lsx-nav-more > summary:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.lsx-nav-geo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px 12px; align-items: end; }
.lsx-field { display: flex; flex-direction: column; min-width: 0; }
.lsx-field select { width: 100%; }
.lsx-nav select:disabled { background: #f1f5f9; color: var(--lsx-mut); cursor: not-allowed; }
.lsx-nav select:focus-visible, .lsx-nav input:focus-visible, .lsx-window select:focus-visible,
.lsx-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.lsx-nav .lsx-foot a, .lsx-entry a { color: #1d4ed8; }
@media (min-width: 761px) {
  .lsx-nav-more > summary { display: none; }  /* always open where there is room */
}

/* Tabs */
.lsx-tabs { margin: 18px 0 16px; border-bottom: 1px solid var(--ls-border); overflow-x: auto; }
.lsx-tabs ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0 2px; min-width: max-content; }
.lsx-tabs a { display: block; padding: 10px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0;
  color: #334155; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lsx-tabs a:hover { background: #f1f5f9; color: var(--ls-ink); }
.lsx-tabs a:focus-visible { outline: 3px solid #1d4ed8; outline-offset: -3px; }
.lsx-tabs a[aria-current="true"] { position: relative; background: #fff; border-color: var(--ls-border); color: #1d4ed8; }
.lsx-tabs a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #1d4ed8; }
.lsx-panel-h { margin: 0 0 12px; font-size: 1.2rem; font-weight: 800; color: var(--ls-ink); }
.lsx-panel-h:focus { outline: none; }
.lsx-panel-h:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }

/* Panels */
.lsx-map-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  border-left: 4px solid #1d4ed8; }
.lsx-map-link > div { flex: 1 1 420px; min-width: 0; }
.lsx-map-link .ls-sub { margin: 0; }
.lsx-map-btn { display: inline-block; text-decoration: none; padding: 9px 16px; }
.lsx-nation .lsx-grid2 { margin-bottom: 18px; }
.lsx-nation .lsx-grid2 > .ls-card { margin-bottom: 0; }
.lsx-controls-card { padding: 14px 18px; }
.lsx-controls-card .lsx-foot { margin-top: 8px; }
.lsx-window { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.lsx-window label { flex-basis: 100%; margin-bottom: 0; }
.lsx-entry { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.7; }

@media (max-width: 1100px) {
  .lsx-nav-geo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lsx-nav-geo .lsx-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .lsx-nav-search { margin-left: 0; max-width: none; }
  .lsx-nav-more[open] > summary { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .lsx-nav { padding: 14px 12px; }
  .lsx-nav-geo { grid-template-columns: minmax(0, 1fr); }
  .lsx-nav-geo .lsx-btn { justify-self: stretch; }
  .lsx-tabs { overflow-x: visible; }
  .lsx-tabs ul { flex-wrap: wrap; min-width: 0; gap: 4px; padding-bottom: 6px; }
  .lsx-tabs a { padding: 7px 10px; font-size: 13px; border: 1px solid var(--ls-border); border-radius: 99px; }
  .lsx-tabs a[aria-current="true"]::after { display: none; }
  .lsx-tabs a[aria-current="true"] { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
}
