/* R33: two compact disclosure rows, with title and scope sharing one rhythm.
   Existing details/summary semantics, disclosure glyphs and study bodies remain. */
body.direction-frontier .results-chapter > .result-studies { margin-bottom: 8px; }

body.direction-frontier .results-chapter > .result-drawer {
  margin: 0;
  border: 0;
}

/* A single separator identifies the second row; no box or closing rule. */
body.direction-frontier .results-chapter > .result-drawer + .result-drawer {
  border-top: 1px solid var(--line);
  border-top-color: color-mix(in srgb, var(--line) 45%, transparent);
}

body.direction-frontier .results-chapter > .result-drawer > summary {
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 22px;
  min-height: 68px;
  padding: 16px 10px 16px 0;
}

body.direction-frontier .results-chapter > .result-drawer > summary > span:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: baseline;
  gap: 32px;
  min-width: 0;
}

body.direction-frontier .results-chapter > .result-drawer > summary strong {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.025em;
}

body.direction-frontier .results-chapter > .result-drawer > summary small {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

body.direction-frontier .results-chapter > .result-drawer > summary:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

body.direction-frontier .results-chapter > .result-drawer > summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Opening reveals a single content gap, rather than stacked wrapper padding. */
body.direction-frontier .results-chapter > .result-drawer > .drawer-body {
  padding-block: 12px 28px;
}

body.direction-frontier .results-chapter > .result-drawer > .drawer-body > .engineering-result {
  padding-top: 0;
}

@media (max-width: 900px) {
  body.direction-frontier .results-chapter > .result-drawer > summary {
    min-height: 0;
    gap: 18px;
    padding-block: 16px;
  }
  body.direction-frontier .results-chapter > .result-drawer > summary > span:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  body.direction-frontier .results-chapter > .result-drawer > summary strong {
    font-size: 21px;
  }
}

@media (max-width: 700px) {
  body.direction-frontier .results-chapter > .result-drawer > summary {
    gap: 14px;
    padding-block: 15px;
  }
  body.direction-frontier .results-chapter > .result-drawer > summary strong {
    font-size: 20px;
    line-height: 1.25;
  }
  body.direction-frontier .results-chapter > .result-drawer > summary small {
    font-size: 11px;
    line-height: 1.55;
  }
  body.direction-frontier .results-chapter > .result-drawer > .drawer-body {
    padding-block: 10px 24px;
  }
}

@media (forced-colors: active) {
  body.direction-frontier .results-chapter > .result-drawer + .result-drawer {
    border-top-color: CanvasText;
  }
}
