.pq-view {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pq-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 185px);
  align-items: start;
  gap: clamp(18px, 5vw, 70px);
}

.pq-opening p { max-width: 72ch; }

.pq-book img {
  display: block;
  width: 100%;
  max-width: 185px;
  max-height: 500px;
  height: auto;
  border: 1px solid var(--border);
}

.pq-book figcaption { margin-top: 0.55em; }

.pq-opening + .pq-panel,
.pq-panel + .pq-panel,
.pq-principles,
.pq-methods { margin-top: clamp(24px, 4vw, 52px); }

.pq-panel header p { max-width: 69ch; color: var(--muted); }

.pq-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1em 0 1.2em;
}

.pq-switch button {
  min-height: 44px;
  color: var(--navy);
}

.pq-switch button[aria-pressed="true"] {
  border-color: var(--royal);
  background: var(--mist);
  color: var(--royal);
}

.pq-case > h3 small {
  margin-inline-start: 0.35em;
  font: 500 0.78rem/1.4 var(--ui);
  white-space: nowrap;
}

.pq-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
}

.pq-comparison > div {
  min-width: 0;
  padding: clamp(12px, 2vw, 22px);
  border-block-start: 2px solid var(--amber);
  background: var(--cream);
}

.pq-comparison > div + div { border-block-start-color: var(--teal); }
.pq-comparison p:last-child { margin-bottom: 0; }
.pq-question { color: var(--navy); font-weight: 650; }

.pq-sojamoon { border-block-start: 3px solid var(--teal); }

.pq-causal,
.pq-effectual {
  padding: clamp(12px, 2.8vw, 28px);
  border-inline-start: 2px solid var(--amber);
  background: var(--cream);
}

.pq-effectual { border-inline-start-color: var(--teal); }
.pq-sojamoon .pq-case > p { max-width: 70ch; }
.pq-sojamoon .pq-case > :last-child { margin-bottom: 0; }

.pq-capital {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4em clamp(10px, 3vw, 30px);
  max-width: 40em;
  margin: 0.8em 0 1em;
}

.pq-capital div {
  padding: 0.55em 0.6em;
  border-block: 1px solid var(--border);
}

.pq-capital strong {
  display: block;
  color: var(--navy);
  font: 500 clamp(1.45rem, 3vw, 2.55rem)/1.04 var(--display);
  font-variant-numeric: lining-nums tabular-nums;
}

.pq-capital span {
  color: var(--muted);
  font: 600 0.78rem/1.35 var(--ui);
}

.pq-options {
  max-width: 75ch;
  padding-inline-start: 1.2em;
}

.pq-options li + li { margin-top: 0.45em; }
.pq-save { min-height: 44px; margin-top: 1em; }

.pq-principle {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 24px);
}

.pq-principle p { margin-top: 0; }
.pq-principle > small { margin-top: auto; }

.pq-practice {
  max-width: 64ch;
  margin: clamp(20px, 3vw, 35px) 0 0;
  padding-inline-start: clamp(12px, 2.4vw, 28px);
  border-inline-start: 2px solid var(--amber);
}

.pq-practice blockquote {
  color: var(--navy);
  font: 400 italic clamp(1.35rem, 2.3vw, 2.05rem)/1.3 var(--display);
}

.pq-practice figcaption { margin-top: 0.6em; }

.pq-method {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 0.85em;
  border-block-start: 1px solid var(--border);
}

.pq-method > p { max-width: 58ch; margin-top: 0; }
.pq-method > a { min-height: 44px; margin-top: auto; }

body.focus .pq-opening,
body.focus .pq-comparison { grid-template-columns: minmax(0, 1fr); }

@media (prefers-reduced-motion: no-preference) {
  .pq-sojamoon .pq-case:not([hidden]) { animation: pq-reveal 190ms ease-out; }
  @keyframes pq-reveal { from { opacity: 0.6; } }
}

@media (max-width: 650px) {
  .pq-opening,
  .pq-comparison { grid-template-columns: minmax(0, 1fr); }
  .pq-book { max-width: 150px; }
}

@media (max-width: 460px) {
  .pq-switch button { width: 100%; }
}
