.masthead [aria-current="page"] {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: .26em;
}

.process-page {
  padding-block: clamp(32px, 6vw, 96px);
}

.process-intro {
  display: grid;
  grid-template-columns: 1fr minmax(230px, .65fr);
  align-items: end;
  gap: 20px 40px;
  margin-bottom: clamp(26px, 4vw, 50px);
}

.process-intro h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7.2vw, 6.25rem);
  line-height: .94;
}

.process-intro h1 span {
  color: var(--red);
}

.process-intro p {
  max-width: 36ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.45;
}

.process-method {
  border-block: 1px solid var(--line);
}

.process-method > summary,
.study-summary {
  display: grid;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  cursor: pointer;
}

.process-method > summary::-webkit-details-marker,
.study-summary::-webkit-details-marker {
  display: none;
}

.process-method > summary {
  grid-template-columns: 1fr auto;
  padding: 15px clamp(12px, 2vw, 24px);
  font-weight: 650;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 6px clamp(12px, 2vw, 24px) 24px;
  list-style: none;
}

.process-steps h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.process-steps p {
  color: var(--muted);
  line-height: 1.45;
}

.study-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 26px 40px;
}

.study-navigation a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.study-navigation a:hover {
  color: var(--red);
  border-color: currentColor;
}

.study-group {
  margin-block: 40px;
  scroll-margin-top: 20px;
}

.study-group h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3.3vw, 3rem);
  line-height: 1.05;
}

.design-study {
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.design-study:last-child {
  border-bottom: 1px solid var(--line);
}

.study-summary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem) auto;
  padding: 15px clamp(12px, 2vw, 24px);
}

.study-summary:hover,
.process-method > summary:hover {
  background: #f6f5f5;
}

.study-summary:focus-visible,
.process-method > summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.study-title {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 650;
  line-height: 1.15;
}

.study-type {
  color: var(--muted);
  font-size: .9rem;
}

.study-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--red);
}

.study-toggle::before,
.study-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.study-toggle::after { transform: rotate(90deg); }
details[open] > summary .study-toggle::after { display: none; }

.design-study[open] > .study-summary {
  background: #222124;
  color: #fff;
  border-radius: 7px 7px 0 0;
}

.design-study[open] > .study-summary .study-type {
  color: #e2dee3;
}

.design-study[open] > .study-summary .study-toggle {
  border-color: #605a62;
  color: #ffc0c6;
}

.study-body {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding: clamp(14px, 3vw, 32px);
  background: #f6f5f5;
}

.study-notes dl {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.study-notes dt {
  font-weight: 650;
}

.study-notes dd {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.study-visuals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 135px), 1fr));
  gap: 10px;
  align-items: start;
}

.study-visuals img {
  display: block;
  max-width: 100%;
  max-height: 430px;
  width: auto;
  height: auto;
  border-radius: 4px;
}

.study-visuals figcaption {
  margin-top: 5px;
  color: var(--muted);
  font-size: .875rem;
}

@media (max-width: 740px) {
  .process-intro,
  .study-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .study-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .study-type { grid-row: 2; }

  .study-summary .study-toggle {
    grid-area: 1 / 2 / 3 / 3;
  }
}
