/* Exact editorial examples; scoped to the six selected article pages. */
.editorial-case-v5 { margin: 2.1rem 0; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--br); border-top: 4px solid var(--pri); border-radius: .8rem; background: var(--bg); scroll-margin-top: 5rem; }
.editorial-case-v5 h2 { margin-top: .5rem; line-height: 1.3; letter-spacing: -.015em; }
.editorial-case-v5 h3 { font-size: 1.08rem; line-height: 1.45; margin-top: 1.2rem; }
.editorial-case-v5 .ecv-kicker { margin: 0 0 .6rem; font-size: .72rem; line-height: 1.6; font-weight: 800; letter-spacing: .065em; color: var(--pri); }
.ecv-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ecv-source { padding: 1rem 1.15rem; margin: 1rem 0; border: 1px solid var(--br); border-left: 4px solid var(--pri); background: var(--card); border-radius: .5rem; min-width: 0; }
.ecv-source h3 { margin-top: 0; }
.ecv-source > :last-child { margin-bottom: 0; }
.ecv-source blockquote { margin: 0; border: 0; padding: 0; font-style: normal; }
.ecv-source blockquote p { margin: 0; }
.ecv-attempt { padding: .2rem 0 .5rem; }
.ecv-attempt h3 { color: var(--tx); }
.ecv-solution { border: 1px solid var(--br); border-radius: .65rem; margin: 1rem 0; padding: 0 1rem; background: var(--card); }
.ecv-solution summary { padding: 1rem 0; font-weight: 750; cursor: pointer; line-height: 1.5; }
.ecv-solution summary:focus-visible, .editorial-case-v5 a:focus-visible, .ecv-table-wrap:focus-visible { outline: 3px solid var(--pri); outline-offset: 4px; }
.ecv-solution[open] { padding-bottom: 1rem; }
.ecv-corrected { border-left: 4px solid var(--acc, #08916f); padding: .8rem 1rem; margin: 1.1rem 0; background: var(--bg); border-radius: .35rem; }
blockquote.ecv-corrected { font-style: normal; }
.ecv-corrected p { margin: 0; }
.ecv-table-wrap { max-width: 100%; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--br); border-radius: .5rem; }
.ecv-table-wrap table { width: 100%; min-width: 530px; border-collapse: collapse; margin: 0; font-size: .88rem; line-height: 1.55; }
.ecv-table-wrap caption { padding: .8rem; text-align: left; font-weight: 700; background: var(--bg); }
.ecv-table-wrap th, .ecv-table-wrap td { padding: .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--br); overflow-wrap: anywhere; }
.ecv-table-wrap thead { background: var(--bg); }
.ecv-table-wrap tbody tr:last-child > * { border-bottom: 0; }
.ecv-table-wrap tbody th { min-width: 7rem; }
.editorial-case-v5 .ecv-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-left: 1.6rem; }
.ecv-checks { padding-left: 1.5rem; }
.ecv-checks li { padding-left: .2rem; margin: .7rem 0; }
.ecv-diagram { margin: 1.2rem 0; }
.ecv-diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--br); border-radius: .6rem; background: #fff; }
.ecv-diagram figcaption, .ecv-note { color: var(--mut); font-size: .82rem; line-height: 1.6; }
.ecv-diagram figcaption { margin-top: .6rem; }
.ecv-next { margin-top: 1.2rem; }
.ecv-note { border-top: 1px solid var(--br); padding-top: .9rem; margin-bottom: 0; }
.editorial-case-v5 pre { overflow-x: auto; border: 1px solid var(--br); border-radius: .55rem; padding: 1rem; background: var(--card); color: var(--tx); font-size: .88rem; line-height: 1.65; white-space: pre; }
.editorial-case-v5 pre code { background: none; padding: 0; color: inherit; }
@media (max-width: 640px) {
  .ecv-source-grid { grid-template-columns: 1fr; gap: 0; }
  .editorial-case-v5 .ecv-options { grid-template-columns: repeat(2, 1fr); }
  .ecv-solution { padding-left: .8rem; padding-right: .8rem; }
  .ecv-table-wrap table { min-width: 500px; }
}
@media print {
  .editorial-case-v5 { border-color: #999; background: #fff; }
  .ecv-table-wrap { overflow: visible; }
  .ecv-table-wrap table { min-width: 0; font-size: 8pt; }
  .ecv-diagram { break-inside: avoid; }
}
