/* holders page styles (Binder). Theme variables only, see inject/theme.css. */
[data-sw-page="holders"] { --hd-mono: var(--f-mono, var(--sw-mono)); }
[data-sw-page="holders"] main,
[data-sw-page="holders"] section { min-width: 0; }

/* ── hero stats ─────────────────────────────────────── */
.hd-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 880px;
  margin: 22px 0 0;
}
@media (min-width: 768px) { .hd-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hd-stat {
  min-width: 0;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
.hd-stat dt {
  font: 700 9.5px/1.2 var(--hd-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hd-stat dd {
  margin: 6px 0 0;
  font-family: var(--f-display, var(--sw-display));
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.hd-stat dd small {
  display: block;
  margin-top: 4px;
  font: 600 10px/1.3 var(--hd-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hd-skel {
  display: inline-block;
  width: 70%;
  height: 0.9em;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cream-2), var(--cream-3), var(--cream-2));
  background-size: 200% 100%;
  animation: hd-shimmer 1.3s linear infinite;
  vertical-align: middle;
}
@keyframes hd-shimmer { to { background-position: -200% 0; } }

/* ── table header: picker + search ──────────────────── */
.hd-head { min-width: 0; max-width: 100%; }
.hd-ctx {
  margin-top: 6px;
  font: 600 10.5px/1.6 var(--hd-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  overflow-wrap: anywhere;
}
.hd-ctx:empty { display: none; }
.hd-ctx a { color: var(--red); font-weight: 800; }
.hd-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  align-items: stretch;
}
@media (min-width: 900px) { .hd-controls { width: auto; flex-wrap: nowrap; } }
.hd-pick {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  min-width: 0;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  box-shadow: 2px 2px 0 var(--ink);
}
.hd-pick__label {
  flex: none;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-right: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: 700 9.5px/1 var(--hd-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hd-pick select {
  flex: 1;
  min-width: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 30px 8px 10px;
  color: var(--ink);
  font: 700 11.5px/1.2 var(--hd-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
  outline: none;
  text-overflow: ellipsis;
}
.hd-pick::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.75px solid var(--ink-mute);
  border-bottom: 1.75px solid var(--ink-mute);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.hd-pick:focus-within { background: var(--cream-3); }
.hd-search { flex: 1 1 260px; min-width: 0; }
@media (min-width: 900px) { .hd-pick { flex: 0 1 320px; } .hd-search { flex: 0 1 360px; } }

/* ── table ──────────────────────────────────────────── */
.hd-scroll { max-width: 100%; }
.hd-table td, .hd-table th { white-space: nowrap; }
.hd-table tr.hd-x td { color: var(--ink-mute); }
.hd-table tr.hd-x td:first-child { color: var(--ink-mute); }
.hd-table tr.hd-me { background: rgba(var(--red-rgb), 0.08); box-shadow: inset 3px 0 0 var(--red); }
.hd-addr { font-weight: 800; font-size: 12px; color: var(--ink); }
.hd-x .hd-addr { color: var(--ink-mute); }
.hd-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  vertical-align: middle;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
}
.hd-copy:hover, .hd-copy:focus-visible { border-color: var(--ink); background: var(--cream); color: var(--red); }
/* keyboard focus: visible ring on every control */
.hd-copy:focus-visible, .hd-btn:focus-visible, .hd-ctx a:focus-visible, #excluded a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hd-pick:has(select:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.hd-search:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.hd-you, .hd-label {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 3px;
  font: 700 9px/1.2 var(--hd-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hd-you { background: var(--red); color: var(--cream); }
.hd-label { border: 1px solid var(--ink-faint); color: var(--ink-mute); }
.hd-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--ink-faint);
  font: 700 9.5px/1.3 var(--hd-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hd-tag--x { border-style: dashed; }
.hd-sub { display: none; }

@media (max-width: 639px) {
  .hd-sm-hide { display: none; }
  .hd-table { font-size: 11.5px; }
  .hd-table th { letter-spacing: 0.08em; }
  .hd-table th [data-hd-unit] { display: none; }
  .hd-table th, .hd-table td { padding-left: 4px; padding-right: 4px; }
  .hd-tag { padding: 1px 4px; font-size: 8.5px; letter-spacing: 0.06em; }
  .hd-addr { font-size: 11.5px; }
  .hd-table th:first-child, .hd-table td:first-child { padding-left: 2px; }
  .hd-sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-mute);
  }
  .hd-label { display: none; }
  .hd-copy { margin-left: 2px; }
}

/* ── states ─────────────────────────────────────────── */
.hd-state {
  margin-top: 14px;
  padding: 18px 16px;
  border: 1.5px dashed var(--ink-faint);
  border-radius: 4px;
  text-align: center;
  font: 600 11px/1.6 var(--hd-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hd-state[hidden] { display: none; }
.hd-state--error { border-color: var(--red); color: var(--red); }
.hd-dots {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: hd-pulse 1s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes hd-pulse { 50% { opacity: 0.25; transform: scale(0.7); } }
.hd-more { display: flex; justify-content: center; margin-top: 14px; }
.hd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 700 10.5px/1 var(--hd-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.hd-btn:hover { background: var(--cream-3); }
.hd-btn:active { transform: translate(1px, 1px); box-shadow: none; }
.hd-btn[hidden] { display: none; }
.hd-btn--inline { margin-left: 8px; padding: 5px 10px; }
.hd-foot { max-width: 980px; line-height: 1.7; }

/* ── exclusions ─────────────────────────────────────── */
#excluded a { color: var(--red); font-weight: 600; }
.hd-ex {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .hd-ex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hd-ex { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hd-ex li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 15px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--cream);
}
.hd-ex li b {
  font: 800 11px/1.3 var(--hd-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.hd-ex li b::before { content: "✕ "; color: var(--red); }
.hd-ex li > span { font: 400 13px/1.55 var(--f-body, var(--sw-body)); color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .hd-skel, .hd-dots { animation: none; }
}
