/* ==========================================================================
   How We Test — fidelity: mockups/pages/how-we-test/index.html (hwt-* styles)
   Scoped under .drc-hwt
   ========================================================================== */

.drc-hwt {
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.drc-hwt h1,
.drc-hwt h2,
.drc-hwt h3,
.drc-hwt h4 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.drc-hwt h1,
.drc-hwt h2 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.drc-hwt .ic {
  width: 18px;
  height: 18px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.drc-hwt .ic-sm {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */
.drc-hwt .hwt-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}
.drc-hwt .hwt-eyebrow {
  font: 600 13px/1.2 var(--font-ui);
  color: var(--rust-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.drc-hwt .hwt-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  max-width: 820px;
}
.drc-hwt .hwt-dek {
  font: 400 18px/1.55 var(--font-ui);
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 20px;
}
.drc-hwt .hwt-summary {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 20px 24px;
  max-width: 760px;
  margin: 0 0 20px;
}
.drc-hwt .hwt-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.drc-hwt .hwt-summary strong {
  color: var(--forest);
}
.drc-hwt .hwt-hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Layout + TOC ---------- */
.drc-hwt .hwt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}
@media (min-width: 1024px) {
  .drc-hwt .hwt-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
  }
}
.drc-hwt .hwt-toc {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
@media (min-width: 1024px) {
  .drc-hwt .hwt-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    border: 0;
    padding: 32px 0 0;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow: auto;
  }
}
.drc-hwt .hwt-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: 600 14px/1.2 var(--font-ui);
  color: var(--forest);
  cursor: pointer;
}
.drc-hwt .hwt-toc-toggle .ic {
  transition: transform 0.15s;
}
.drc-hwt .hwt-toc[data-open="true"] .hwt-toc-toggle .ic {
  transform: rotate(180deg);
}
@media (min-width: 1024px) {
  .drc-hwt .hwt-toc-toggle {
    display: none;
  }
}
.drc-hwt .hwt-toc-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .drc-hwt .hwt-toc-list {
    margin: 16px 0 0;
  }
}
.drc-hwt .hwt-toc[data-open="false"] .hwt-toc-list {
  display: none;
}
@media (min-width: 1024px) {
  /* Desktop: list is always visible regardless of toggle state. */
  .drc-hwt .hwt-toc[data-open="false"] .hwt-toc-list {
    display: block;
  }
}
.drc-hwt .hwt-toc-list a {
  display: block;
  padding: 7px 0 7px 12px;
  font: 500 14px/1.3 var(--font-ui);
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.drc-hwt .hwt-toc-list a:hover {
  color: var(--forest);
}
.drc-hwt .hwt-toc-list a.is-active {
  color: var(--forest);
  border-left-color: var(--rust);
  font-weight: 600;
}

/* ---------- Main column ---------- */
.drc-hwt .hwt-main {
  min-width: 0;
  max-width: 760px;
}
.drc-hwt .hwt-sec {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.drc-hwt .hwt-sec:last-child {
  border-bottom: 0;
}
.drc-hwt .hwt-sec h2 {
  font-size: 26px;
  margin: 0 0 6px;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.drc-hwt .hwt-sec .hwt-lede {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 15px;
}
.drc-hwt .hwt-sec p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.drc-hwt .hwt-sec h3 {
  font: 600 17px var(--font-ui);
  margin: 24px 0 8px;
}
.drc-hwt .hwt-sec ul.hwt-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.drc-hwt .hwt-sec ul.hwt-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
}
.drc-hwt .hwt-sec ul.hwt-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}

/* ---------- Status tags ---------- */
.drc-hwt .hwt-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--font-ui);
  padding: 5px 10px;
  border-radius: 99px;
  margin: 0 6px 6px 0;
}
.drc-hwt .hwt-tag-confirmed {
  background: var(--forest-soft, #e8efeb);
  color: var(--forest);
}
.drc-hwt .hwt-tag-proposed {
  background: var(--warm);
  color: var(--rust-deep);
  border: 1px solid color-mix(in srgb, var(--latte) 40%, var(--stone));
}

/* ---------- Evidence cards ---------- */
.drc-hwt .hwt-ev-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}
@media (min-width: 640px) {
  .drc-hwt .hwt-ev-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.drc-hwt .hwt-ev-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
  background: var(--milk);
}
.drc-hwt .hwt-ev-card h4 {
  margin: 10px 0 6px;
  font: 600 15px var(--font-ui);
}
.drc-hwt .hwt-ev-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}
.drc-hwt .ev {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 12.5px/1 var(--font-ui);
  padding: 6px 10px;
  border-radius: 99px;
}
.drc-hwt .ev .ic {
  width: 14px;
  height: 14px;
}
.drc-hwt .ev-hands {
  background: #e8f3ec;
  color: #1e6b3e;
}
.drc-hwt .ev-research {
  background: var(--forest-soft, #e8efeb);
  color: var(--forest);
}
.drc-hwt .ev-none {
  background: #f1eee7;
  color: #6b6155;
}

/* ---------- Process steps ---------- */
.drc-hwt .hwt-steps {
  counter-reset: hwt-step;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.drc-hwt .hwt-step {
  position: relative;
  padding: 0 0 22px 44px;
  border-left: 2px solid var(--line);
  margin-left: 14px;
}
.drc-hwt .hwt-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.drc-hwt .hwt-step::before {
  counter-increment: hwt-step;
  content: counter(hwt-step);
  position: absolute;
  left: -15px;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font: 700 13px/28px var(--font-ui);
  text-align: center;
}
.drc-hwt .hwt-step h4 {
  margin: 0 0 4px;
  font: 600 15.5px var(--font-ui);
}
.drc-hwt .hwt-step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Scoring ---------- */
.drc-hwt .hwt-weight-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 18px 0;
}
.drc-hwt .hwt-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--rust) 0 85%, var(--line) 85% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.drc-hwt .hwt-ring-in {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--milk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.drc-hwt .hwt-ring-in b {
  font: 700 24px/1 var(--font-display);
  color: var(--forest);
}
.drc-hwt .hwt-ring-in span {
  font-size: 11px;
  color: var(--muted);
}
.drc-hwt .hwt-sec .hwt-ring-note {
  margin: 0;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--muted);
}
.drc-hwt .hwt-crit {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.drc-hwt .hwt-crit:first-of-type {
  border-top: 0;
}
.drc-hwt .hwt-crit-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.drc-hwt .hwt-crit-top b {
  font-size: 15px;
  color: var(--ink);
}
.drc-hwt .hwt-crit-top span {
  font: 600 13px/1 var(--font-ui);
  color: var(--rust-deep);
  white-space: nowrap;
}
.drc-hwt .meter-track {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.drc-hwt .meter-track span {
  display: block;
  height: 100%;
  background: var(--forest);
  border-radius: 99px;
}
.drc-hwt .hwt-sec .hwt-crit-note {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.drc-hwt .hwt-formula {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin: 18px 0;
  font: 500 14.5px/1.6 var(--font-ui);
}
.drc-hwt .hwt-formula strong {
  color: var(--forest);
}
.drc-hwt .wtable {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.drc-hwt .wtable th,
.drc-hwt .wtable td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.drc-hwt .wtable thead th {
  color: var(--muted);
  font: 600 12px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.drc-hwt .wtable tbody tr:last-child th,
.drc-hwt .wtable tbody tr:last-child td {
  border-bottom: none;
  font-weight: 700;
}

/* ---------- Category table ---------- */
.drc-hwt .hwt-table-wrap {
  overflow-x: auto;
}
.drc-hwt .hwt-cat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  min-width: 520px;
}
.drc-hwt .hwt-cat-table th,
.drc-hwt .hwt-cat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.drc-hwt .hwt-cat-table thead th {
  color: var(--muted);
  font: 600 12px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Limits / info cards ---------- */
.drc-hwt .hwt-info-card {
  display: flex;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin: 14px 0;
  background: var(--milk);
}
.drc-hwt .hwt-info-card svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--rust-deep);
  margin-top: 2px;
}
.drc-hwt .hwt-sec .hwt-info-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.drc-hwt .faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.drc-hwt .faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font: 600 15px/1.4 var(--font-ui);
  list-style: none;
}
.drc-hwt .faq summary::-webkit-details-marker {
  display: none;
}
.drc-hwt .faq summary svg {
  transition: transform 0.15s;
}
.drc-hwt .faq details[open] summary svg {
  transform: rotate(180deg);
}
.drc-hwt .hwt-sec .faq p {
  margin: 10px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.drc-hwt .hwt-links-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
