/* ══════════════════════════════════════════════════════════════════
   Cavmir /data/ — STR permit data hub
   Editorial data pages: full-bleed jewel-tone bands, giant serif
   numbers, hairline-divided index rows, CSS bar charts. No card grids.
   ══════════════════════════════════════════════════════════════════ */

.dh-wide {
  width: 100%;               /* stay full-width even as a flex item (hero) */
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: clamp(24px, 6.5vw, 128px);
}
.dh-measure { max-width: 760px; }

/* ── Hero ── */
.dh-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212,175,55,0.14), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(0,0,0,0.35), transparent 55%),
    linear-gradient(160deg, #571a3d 0%, #6B214B 55%, #4a1634 100%);
  color: #fff;
  padding: calc(var(--nav-h) + 48px) 0 72px;
}
.dh-hero__eyebrow {
  font-family: var(--font-primary);
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 28px;
}
.dh-hero h1 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  line-height: 1.04;
  margin: 0 0 18px;
  max-width: 18ch;
}
.dh-hero__number {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(4.6rem, 13vw, 13rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
  display: block;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
}
.dh-hero__sub {
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  max-width: 62ch;
}
.dh-hero__sub a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(212,175,55,0.5); }

/* ── Stat strip ── */
.dh-stats {
  background: #1a1118;
  color: #fff;
  padding: clamp(40px, 5vw, 72px) 0;
}
.dh-stats__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}
.dh-stat {
  padding: 8px clamp(18px, 2.4vw, 44px);
  border-left: 1px solid rgba(212,175,55,0.28);
}
.dh-stat:first-child { border-left: none; }
.dh-stat__n {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  line-height: 1.05;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.dh-stat__l {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Generic bands ── */
.dh-band { padding: var(--section-pad) 0; }
.dh-band--cream { background: var(--off-white); }
.dh-band--white { background: #fff; }
.dh-band--jet   { background: #14090f; color: #fff; }
.dh-band--burgundy { background: linear-gradient(155deg, #5d1c41, #6B214B 60%, #521a3a); color: #fff; }
.dh-eyebrow {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #9a3b6d;
  display: block;
  margin-bottom: 18px;
}
.dh-band--jet .dh-eyebrow, .dh-band--burgundy .dh-eyebrow { color: var(--gold); }
.dh-band h2 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 24ch;
}
.dh-band p { max-width: 68ch; }
.dh-gold-rule {
  width: 72px; height: 2px; background: var(--gold);
  margin: 22px 0 30px;
}

/* ── Ranked index rows (states / cities) ── */
.dh-index { margin-top: clamp(28px, 3vw, 52px); }
.dh-row {
  display: grid;
  grid-template-columns: 3.2rem minmax(150px, 340px) 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-top: 1px solid rgba(107,33,75,0.16);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.dh-band--jet .dh-row, .dh-band--burgundy .dh-row { border-top-color: rgba(255,255,255,0.14); }
.dh-row:last-child { border-bottom: 1px solid rgba(107,33,75,0.16); }
a.dh-row:hover { background: rgba(212,175,55,0.07); }
.dh-row__rank {
  font-family: var(--font-primary);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #9a3b6d;
}
.dh-band--jet .dh-row__rank { color: var(--gold); }
.dh-row__name {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.8rem);
  line-height: 1.15;
}
.dh-row__name small {
  display: block;
  font-family: var(--font-primary);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(20,9,15,0.55);
  margin-top: 3px;
}
.dh-band--jet .dh-row__name small { color: rgba(255,255,255,0.55); }
.dh-row__bar { height: 10px; background: rgba(107,33,75,0.1); border-radius: 99px; overflow: hidden; }
.dh-band--jet .dh-row__bar { background: rgba(255,255,255,0.1); }
.dh-row__bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #8d2c63, var(--gold));
  border-radius: 99px;
  width: var(--w, 4%);
}
.dh-row__n {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 5.2ch;
}
.dh-row__n small {
  display: block;
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(20,9,15,0.5);
}
.dh-band--jet .dh-row__n small { color: rgba(255,255,255,0.5); }

/* ── Findings ── */
.dh-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(28px, 3.4vw, 64px);
  margin-top: clamp(28px, 3vw, 52px);
}
.dh-finding { border-top: 2px solid var(--gold); padding-top: 22px; }
.dh-finding__n {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  line-height: 1;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}
.dh-band--jet .dh-finding__n, .dh-band--burgundy .dh-finding__n { color: var(--gold); }
.dh-finding h3 {
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  margin: 12px 0 10px;
  line-height: 1.2;
}
.dh-finding p { font-size: 15.5px; line-height: 1.7; }
.dh-band--jet .dh-finding p { color: rgba(255,255,255,0.78); }

/* ── Registry / methodology list ── */
.dh-reglist {
  columns: 2; column-gap: clamp(32px, 4vw, 80px);
  margin-top: 26px; padding: 0; list-style: none;
}
.dh-reglist li {
  break-inside: avoid;
  padding: 12px 0;
  border-top: 1px solid rgba(107,33,75,0.14);
  font-size: 15px; line-height: 1.55;
}
.dh-band--jet .dh-reglist li { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.82); }

/* ── FAQ ── */
.dh-faq { margin-top: clamp(24px, 3vw, 44px); }
.dh-faq details {
  border-top: 1px solid rgba(107,33,75,0.18);
  padding: 6px 0;
}
.dh-faq details:last-child { border-bottom: 1px solid rgba(107,33,75,0.18); }
.dh-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-editorial);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  padding: 16px 0;
}
.dh-faq summary::-webkit-details-marker { display: none; }
.dh-faq summary::after {
  content: '+';
  font-family: var(--font-primary);
  font-size: 1.5rem; color: var(--gold); flex-shrink: 0;
  transition: transform var(--transition);
}
.dh-faq details[open] summary::after { transform: rotate(45deg); }
.dh-faq details > div { padding: 0 0 20px; max-width: 70ch; line-height: 1.7; }

/* ── Citation block ── */
.dh-cite {
  border: 1px solid rgba(212,175,55,0.55);
  background: rgba(212,175,55,0.06);
  padding: clamp(22px, 2.6vw, 40px);
  margin-top: clamp(28px, 3vw, 48px);
}
.dh-cite__label {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: #9a6d1f; margin-bottom: 12px;
}
.dh-band--jet .dh-cite__label { color: var(--gold); }
.dh-cite p { font-size: 15px; line-height: 1.7; margin: 0; max-width: none; }
.dh-cite code {
  display: block; margin-top: 14px; padding: 14px 16px;
  background: rgba(20,9,15,0.05); font-size: 13.5px; line-height: 1.6;
  word-break: break-word;
}
.dh-band--jet .dh-cite code { background: rgba(255,255,255,0.08); }

/* ── Report prose ── */
.dh-prose { max-width: 760px; }
.dh-prose h2 {
  font-family: var(--font-editorial); font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.15;
  margin: clamp(40px, 5vw, 64px) 0 14px;
}
.dh-prose h3 {
  font-family: var(--font-editorial); font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem); margin: 32px 0 10px;
}
.dh-prose p, .dh-prose li { line-height: 1.75; margin-bottom: 16px; }
.dh-prose ul { padding-left: 22px; }
.dh-prose a { color: var(--burgundy); }
.dh-byline {
  display: flex; align-items: center; gap: 14px;
  margin: 26px 0 0; font-size: 14.5px; color: rgba(20,9,15,0.65);
}
.dh-hero .dh-byline { color: rgba(255,255,255,0.75); }

/* ── Buttons ── */
.dh-btn {
  display: inline-block;
  padding: 17px 38px;
  background: var(--gold);
  color: #14090f;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.dh-btn:hover { background: #e2c04d; transform: translateY(-2px); }
.dh-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ── Small screens ── */
@media (max-width: 720px) {
  .dh-hero { min-height: 72vh; }
  .dh-row { grid-template-columns: 2.2rem 1fr auto; }
  .dh-row__bar { display: none; }
  .dh-reglist { columns: 1; }
  .dh-stat { border-left: none; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dh-faq summary::after { transition: none; }
}
