/* ==========================================================================
   Editorial Policy — fidelity: mockups/pages/editorial-policy/index.html
   hwt-* rules shared with the How We Test mockup; scoped under .drc-ep.
   ========================================================================== */

.drc-ep {
  /* clip (not hidden) so the sticky TOC keeps working. */
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  scroll-padding-top: calc(var(--header-h, 60px) + 20px);
}

.drc-ep .ic {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.drc-ep .ic-sm {
  width: 16px;
  height: 16px;
}

.drc-ep .text-link {
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: 3px;
}

.drc-ep .text-link:hover {
  color: var(--rust-deep);
}

/* ---------- Hero ---------- */
.drc-ep .hwt-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--line);
}

.drc-ep .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-ep .hwt-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 16px;
  max-width: 820px;
}

.drc-ep .hwt-dek {
  font: 400 18px/1.55 var(--font-ui);
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 20px;
}

.drc-ep .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-ep .hwt-summary p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.drc-ep .hwt-summary strong {
  color: var(--forest);
}

.drc-ep .hwt-hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Layout + TOC ---------- */
.drc-ep .hwt-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

@media (min-width: 1024px) {
  .drc-ep .hwt-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
  }
}

.drc-ep .hwt-toc {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

@media (min-width: 1024px) {
  .drc-ep .hwt-toc {
    position: sticky;
    top: calc(var(--header-h, 60px) + 24px);
    border: 0;
    padding: 32px 0 0;
    max-height: calc(100vh - var(--header-h, 60px) - 48px);
    overflow: auto;
  }
}

.drc-ep .hwt-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  font: 600 14px/1.2 var(--font-ui);
  color: var(--forest);
  cursor: pointer;
}

.drc-ep .hwt-toc-toggle .ic {
  transition: transform 0.2s var(--ease);
}

.drc-ep .hwt-toc[data-open="true"] .hwt-toc-toggle .ic {
  transform: rotate(180deg);
}

@media (min-width: 1024px) {
  .drc-ep .hwt-toc-toggle {
    display: none;
  }
}

.drc-ep .hwt-toc-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .drc-ep .hwt-toc-list {
    margin: 16px 0 0;
  }
}

.drc-ep .hwt-toc[data-open="false"] .hwt-toc-list {
  display: none;
}

.drc-ep .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-ep .hwt-toc-list a:hover {
  color: var(--forest);
}

.drc-ep .hwt-toc-list a.is-active {
  color: var(--forest);
  border-left-color: var(--rust);
  font-weight: 600;
}

/* ---------- Body sections ---------- */
.drc-ep .hwt-body {
  min-width: 0;
  padding: 40px 0 96px;
  max-width: 72ch;
}

.drc-ep .hwt-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.drc-ep .hwt-section:last-child {
  border-bottom: 0;
}

.drc-ep .hwt-section h2 {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-size: 22px;
  margin: 0 0 14px;
  scroll-margin-top: calc(var(--header-h, 60px) + 24px);
}

.drc-ep .hwt-section p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--ink);
}

.drc-ep .hwt-section p:last-child {
  margin-bottom: 0;
}

/* ---------- Editorial policy list + placeholder ---------- */
.drc-ep .ep-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.drc-ep .ep-list li {
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}

.drc-ep .ep-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rust);
}

.drc-ep .ep-placeholder {
  background: var(--warm);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}
