/* What the sound study prints (Panel 05, /solar/). Classes sd-. Uses the site's Night Ledger tokens only.
   Works without JavaScript; sound-study.js only turns the numbered map pins into buttons with a pop-up note. */
.sd { max-width: 72rem; margin-top: 1.7rem; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.sd-head { max-width: 62rem; }
.sd-title { margin: 0; color: var(--ink); font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.sd-sub, .sd-how { margin: .35rem 0 0; color: var(--muted); font-size: .8125rem; }
.sd-how strong { color: var(--ink-2); }
.sd-grid { display: grid; gap: 1.6rem; margin-top: 1.2rem; }
@media (min-width: 60rem) { .sd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }

/* ---- chart: one dBA scale, 0-100 ---- */
.sd-plot { position: relative; }
.sd-limhead { position: relative; height: 1.4rem; }
.sd-limlab { position: absolute; top: 0; color: var(--accent-text); font-family: ui-monospace, monospace; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.sd-limlab-township { right: calc(100% - var(--p)); padding-right: .35rem; }
.sd-limlab-state { left: var(--p); padding-left: .35rem; }
.sd-rows { margin: 0; padding: 0; list-style: none; }
.sd-row { padding-block: .4rem .5rem; }
.sd-label { margin: 0 0 .35rem; color: var(--ink-2); font-size: .8125rem; line-height: 1.38; }
.sd-label strong { color: var(--ink); }
.sd-cite { color: var(--muted); }
.sd-track {
  position: relative; height: 2.1rem;
  background: linear-gradient(to right, var(--line-soft) 1px, transparent 1px), var(--paper-2);
  background-size: 10% 100%;
}
.sd-lim { position: absolute; z-index: 1; top: -.25rem; bottom: -.25rem; left: var(--p); border-left: 2px dashed var(--accent-text); }
.sd-lim-state { margin-left: -1px; border-left: 3px dotted var(--accent-text); }
/* an upper bound: an open bar with a solid cap and a "less than" chevron at the bound, dashed sides, no start */
.sd-bar {
  position: absolute; top: .3rem; bottom: .3rem; left: 0; width: var(--p);
  border: 2px dashed var(--lake); border-left: 0; border-right: 3px solid var(--lake);
  background: linear-gradient(to right, transparent, var(--lake-soft) 45%);
}
.sd-bar::after {
  position: absolute; top: 50%; right: .3rem; width: .55rem; height: .55rem;
  border-bottom: 2px solid var(--lake); border-left: 2px solid var(--lake);
  transform: translateY(-50%) rotate(45deg); content: "";
}
.sd-dia {
  position: absolute; z-index: 2; top: 50%; left: var(--p); width: .85rem; height: .85rem;
  border: 2px solid var(--paper); background: var(--ink); transform: translate(-50%, -50%) rotate(45deg);
}
.sd-val {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--p) + .4rem); display: flex; align-items: center;
  color: var(--ink); font-family: ui-monospace, monospace; font-size: .8125rem; font-weight: 800;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sd-level .sd-val { right: calc(100% - var(--p) + .75rem); left: auto; }
.sd-axis { position: relative; height: 2.7rem; margin-top: .3rem; color: var(--muted); font-family: ui-monospace, monospace; font-size: .8125rem; }
.sd-axis span { position: absolute; top: 0; left: var(--p); transform: translateX(-50%); white-space: nowrap; }
.sd-axis span:first-child { transform: none; }
.sd-axis span:nth-last-child(2) { transform: translateX(-100%); }
.sd-axis .sd-unit { top: 1.3rem; right: 0; left: auto; transform: none; }
.sd-limits { display: grid; gap: .7rem; margin: .6rem 0 0; font-size: .8125rem; }
.sd-limits dt { color: var(--ink); font-weight: 700; }
.sd-limits dd { margin: .15rem 0 0; color: var(--ink-2); }
.sd-linekind { color: var(--muted); font-weight: 400; }
.sd-key-line { display: inline-block; width: 1.7rem; margin-right: .45rem; vertical-align: middle; border-top: 2px dashed var(--accent-text); }
.sd-limit-state .sd-key-line { border-top: 3px dotted var(--accent-text); }

/* ---- Figure 3-1, rendered from the record ---- */
.sd-fig { margin: 0; }
.sd-map { position: relative; border: 1px solid var(--line); line-height: 0; }
.sd-map img { display: block; width: 100%; height: auto; }
.sd-pin { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.sd-ring {
  position: absolute; left: -.55rem; top: -.55rem; width: 1.1rem; height: 1.1rem; border: 2px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 1.5px #000, inset 0 0 0 1px #000; pointer-events: none;
}
.sd-badge {
  position: absolute; left: var(--dx); top: var(--dy); display: flex; width: 2.75rem; height: 2.75rem; padding: 0;
  align-items: center; justify-content: center; border: 0; background: transparent; transform: translate(-50%, -50%);
  font: inherit; line-height: 1;
}
.sd-disc {
  display: flex; width: 1.65rem; height: 1.65rem; align-items: center; justify-content: center;
  border: 2px solid #fff; border-radius: 50%; background: #0a1316; box-shadow: 0 0 0 1.5px #000;
  color: #fff; font-size: .8125rem; font-weight: 800;
}
button.sd-badge { cursor: pointer; }
button.sd-badge:focus-visible { outline: none; }
button.sd-badge:focus-visible .sd-disc { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 1.5px #000, 0 0 0 7px #000; }
button.sd-badge[aria-expanded="true"] .sd-disc { width: 1.9rem; height: 1.9rem; background: #f2a638; color: #0a1316; }
.sd-figcap { margin-top: .5rem; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.sd-callouts { margin: .6rem 0 0; padding-left: 1.4rem; font-size: .8125rem; }
.sd-callouts li { padding: .2rem .35rem; border-left: 3px solid transparent; }
.sd-callouts li + li { margin-top: .25rem; }
.sd-callouts strong { color: var(--ink); }
.sd-callouts li.sd-on { border-left-color: var(--accent-text); background: var(--accent-soft); }
.sd-bubble {
  position: absolute; z-index: 5; width: min(19rem, calc(100% - 1rem)); padding: .6rem .75rem;
  border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
  color: var(--ink); font-size: .8125rem; line-height: 1.42; opacity: 1; transition: opacity .12s ease-out; pointer-events: none;
}
.sd-bubble[hidden] { display: none; }
.sd-bubble.sd-flow { position: static; pointer-events: auto; width: auto; margin-top: .45rem; box-shadow: none; border-left: 3px solid var(--accent-text); }

/* ---- note, table, source ---- */
.sd-note { max-width: 62rem; margin: 1.4rem 0 0; padding: .85rem 1rem .85rem 1.1rem; border-left: .28rem solid var(--lake); background: var(--lake-soft); color: var(--ink-2); }
.sd-note strong, .sd-required { color: var(--ink); }
.sd-data { margin-top: 1rem; }
.sd-data > summary { display: flex; min-height: 2.75rem; align-items: center; color: var(--ink); font-weight: 700; cursor: pointer; }
.sd-data > summary { list-style: none; }
.sd-data > summary::-webkit-details-marker { display: none; }
.sd-data > summary::before {
  flex: none; width: 0; height: 0; margin-right: .55rem; border-top: .32rem solid transparent; border-bottom: .32rem solid transparent;
  border-left: .45rem solid currentColor; content: ""; transition: transform .12s ease-out;
}
.sd-data[open] > summary::before { transform: rotate(90deg); }
.sd-data > summary:focus-visible { outline: .18rem solid var(--accent); outline-offset: .2rem; }
.sd-scroll { overflow-x: auto; }
.sd-table { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.sd-table caption { padding-bottom: .4rem; color: var(--muted); text-align: left; }
.sd-table th, .sd-table td { padding: .45rem .55rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.sd-table thead th { color: var(--ink); font-weight: 700; border-bottom-color: var(--line); }
.sd-table tbody th { color: var(--ink); font-family: ui-monospace, monospace; font-weight: 700; }
.sd-table td { color: var(--ink-2); }
.sd-also, .sd-src { margin: .7rem 0 0; color: var(--muted); font-size: .8125rem; }
.sd a { color: var(--lake); }
/* narrow: each figure becomes a stacked block (explicit ARIA roles in the markup keep it a table for screen readers) */
@media (max-width: 40rem) {
  .sd-table thead tr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sd-table tbody tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); }
  .sd-table tbody th, .sd-table tbody td { display: block; padding: .1rem 0; border: 0; }
  .sd-table tbody td:last-child { color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .sd *, .sd *::before, .sd *::after { transition: none !important; animation: none !important; } }
