/* Scoped editorial components; existing page components retain their own styles. */
body main .cr-article section.cv-chapter, body main section.cv-home, body main section.cv-method {
 box-sizing:border-box; margin:2rem auto; padding:clamp(1rem,3vw,2.2rem); border:1px solid #52616c;
 border-radius:14px; background:#121b24; color:#e8edf1; width:100%; max-width:1080px; text-align:left;
}
body main section.cv-home {width:calc(100% - 2rem)}
.cv-chapter h2,.cv-home h2,.cv-method h2 {font-size:clamp(1.45rem,2.5vw,2rem);line-height:1.3;color:#fff;margin:0 0 1rem}
.cv-chapter h3 {font-size:1.15rem;line-height:1.4;color:#fff;margin:1.65rem 0 .6rem}
.cv-chapter p,.cv-home p,.cv-method p {font-size:1rem;line-height:1.85;max-width:78ch;margin:.7rem 0;color:#e0e6ec;overflow-wrap:anywhere}
.cv-chapter a,.cv-home a,.cv-method a,.cv-related a {color:#9bd9ff;text-decoration:underline;text-underline-offset:3px}
.cv-label {font-size:.78rem!important;text-transform:uppercase;letter-spacing:.08em;color:#9bd9ff!important}
.cv-table-scroll {max-width:100%;overflow-x:auto;margin:1.4rem 0;overscroll-behavior-x:contain}
.cv-chapter table {border-collapse:collapse;width:100%;min-width:440px;font-size:.94rem;text-align:left}
.cv-chapter caption {text-align:left;font-weight:700;color:#fff;padding:.6rem 0}
.cv-chapter th,.cv-chapter td {border:1px solid #52616c;padding:.8rem;vertical-align:top;line-height:1.7;white-space:normal;overflow-wrap:anywhere;color:#e8edf1}
.cv-chapter th {background:#203342;font-weight:700}
.cv-chapter .cv-example {border-left:3px solid #8cccf0;padding-left:1rem}
.cv-sources {border-top:1px solid #52616c;margin-top:1.5rem;padding-top:1rem}
.cv-sources ul,.cv-home ol {padding-left:1.3rem;line-height:1.9}
.cv-home li {margin:1rem 0;color:#e0e6ec}
.cv-home details,.cv-chapter details {border-top:1px solid #52616c;padding:.8rem 0}
.cv-home summary,.cv-chapter summary {cursor:pointer;font-weight:700;color:#fff;line-height:1.6}
.cv-related {padding:1rem 0;border-top:1px solid #52616c;margin-top:1.5rem;line-height:1.8}
.cv-chapter form {margin:1.2rem 0;padding:1rem;border:1px solid #52616c;border-radius:8px;background:#172530}
.cv-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.cv-fields label {display:flex;flex-direction:column;gap:.45rem;font-size:.95rem;color:#fff;line-height:1.5}
.cv-fields input,.cv-fields select {box-sizing:border-box;min-width:0;width:100%;padding:.65rem;border:1px solid #8394a0;border-radius:5px;background:#fff;color:#111;font:inherit}
.cv-buttons {display:flex;gap:.7rem;flex-wrap:wrap;margin-top:1rem}
.cv-buttons button {min-height:44px;padding:.65rem 1rem;border:1px solid #9bd9ff;border-radius:5px;color:#111;background:#9bd9ff;font:inherit;font-weight:700;cursor:pointer}
.cv-buttons button[type=reset] {color:#fff;background:transparent}
.cv-chapter output {display:block;white-space:pre-line;line-height:1.8;padding:1rem;margin-top:1rem;background:#243b48;border-radius:5px;color:#fff;overflow-wrap:anywhere}
.cv-chapter output[hidden] {display:none}
.cv-chapter :focus-visible,.cv-home :focus-visible {outline:3px solid #ffd078;outline-offset:4px}
@media(max-width:600px){.cv-fields {grid-template-columns:1fr}.cv-chapter th,.cv-chapter td {padding:.6rem}.cv-chapter table {min-width:420px}}
/* Site themes contain stronger heading and mobile-table rules. Keep this
   component legible without changing tables elsewhere on the site. */
body main section.cv-chapter h2,body main section.cv-chapter h3,
body main section.cv-home h2,body main section.cv-method h2 {color:#fff!important}
body main section.cv-chapter .cv-table-scroll table {display:table!important;table-layout:fixed;width:100%!important;min-width:600px;max-width:none!important}
body main section.cv-chapter .cv-table-scroll caption {display:table-caption!important;width:auto!important;text-align:left!important}
body main section.cv-chapter .cv-table-scroll thead {display:table-header-group!important}
body main section.cv-chapter .cv-table-scroll tbody {display:table-row-group!important}
body main section.cv-chapter .cv-table-scroll tr {display:table-row!important}
body main section.cv-chapter .cv-table-scroll th,body main section.cv-chapter .cv-table-scroll td {display:table-cell!important;position:static!important;width:auto!important;max-width:none!important;text-align:left!important;white-space:normal!important;padding:.8rem!important;color:#e8edf1!important}
body main section.cv-chapter .cv-table-scroll td::before {display:none!important}
.cv-table-hint {display:none}
@media(max-width:600px){body main section.cv-chapter .cv-table-hint {display:block;font-size:.88rem;color:#9bd9ff}}
