/* Shared editorial components. Scoped to articles, not tools or laboratory. */
.article-v2-card { --editorial-accent:#286b94; --editorial-tint:#edf5fa; }
.article-v2-card.ct-orange { --editorial-accent:#a4432d; --editorial-tint:#fff3ec; }
.article-v2-card.ct-green { --editorial-accent:#287054; --editorial-tint:#edf7f1; }
.article-v2-card.ct-purple { --editorial-accent:#60409a; --editorial-tint:#f4effa; }
.article-v2-card.ct-red { --editorial-accent:#a43b4a; --editorial-tint:#fff0f2; }
.article-v2-card.ct-yellow { --editorial-accent:#785c10; --editorial-tint:#fff8df; }
.article-v2-content { min-width:0; overflow-wrap:break-word; }
.article-v2-content h2 { margin-top:2.6rem; padding-bottom:.4rem; border-bottom:2px solid #e5eaf0; }
.article-v2-content h3 { margin-top:1.75rem; }
.article-v2-content .editorial-table-wrap { max-width:100%; overflow-x:auto; margin:1.35rem 0 1.65rem; border:1px solid #cbd5df; border-radius:8px; background:#fff; }
.article-v2-content table { width:100%; max-width:100%; border-collapse:collapse; border-spacing:0; margin:1.35rem 0; border:1px solid #cbd5df; color:#253748; font-size:.91em; line-height:1.5; text-align:left; }
.article-v2-content .editorial-table-wrap table { margin:0; border:0; }
.article-v2-content th,.article-v2-content td { padding:.75rem .85rem; border:1px solid #d5dee6; text-align:left; vertical-align:top; overflow-wrap:normal; }
.article-v2-content th { background:var(--editorial-accent); color:#fff; font-weight:700; border-color:rgba(255,255,255,.35); }
.article-v2-content th a { color:inherit; }
.article-v2-content td { background:#fff; }
.article-v2-content tbody tr:nth-child(even) td { background:#f3f6f8; }
.article-v2-content tbody tr:hover td { background:var(--editorial-tint); }
.article-v2-content .align-right { text-align:right; font-variant-numeric:tabular-nums; }
.article-v2-content .align-center { text-align:center; }
.article-v2-content caption { padding:.65rem .85rem; color:#526475; font-size:.93em; text-align:left; }
.article-v2-content .editorial-table-wrap:focus-visible,
.article-v2-content .editorial-action:focus-visible,
.editorial-image-dialog button:focus-visible { outline:3px solid #286b94; outline-offset:3px; }
.article-v2-content .editorial-callout { --callout-color:#286b94; --callout-bg:#eaf3f9; --callout-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23286b94%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%2F%3E%3Cpath%20d%3D%22M12%2011v5%22%2F%3E%3Cpath%20d%3D%22M12%207h.01%22%2F%3E%3C%2Fsvg%3E"); --callout-pad-y:.9rem; --callout-pad-x:1rem; --callout-icon-size:1.5rem; --callout-icon-gap:.65rem; position:relative; margin:1.5rem 0; padding:var(--callout-pad-y) var(--callout-pad-x) var(--callout-pad-y) calc(var(--callout-pad-x) + var(--callout-icon-size) + var(--callout-icon-gap)); border:0; border-radius:6px; background:var(--callout-bg); color:#263748; }
.article-v2-content .editorial-callout::before { content:""; position:absolute; top:calc(var(--callout-pad-y) + .25rem); left:var(--callout-pad-x); width:var(--callout-icon-size); height:var(--callout-icon-size); background:var(--callout-icon) center / contain no-repeat; }
.article-v2-content .editorial-callout--tip { --callout-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23287054%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M9%2018h6m-5%204h4M8%2015c-1.6-1.3-2.5-3-2.5-5a6.5%206.5%200%200%201%2013%200c0%202-.9%203.7-2.5%205-.7.6-1%201-1%202H9c0-1-.3-1.4-1-2Z%22%2F%3E%3C%2Fsvg%3E"); }
.article-v2-content .editorial-callout--warning,.article-v2-content .editorial-callout--important { --callout-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23946018%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10.3%204.2%202.8%2017.5A1.7%201.7%200%200%200%204.3%2020h15.4a1.7%201.7%200%200%200%201.5-2.5L13.7%204.2a2%202%200%200%200-3.4%200Z%22%2F%3E%3Cpath%20d%3D%22M12%209v4m0%203h.01%22%2F%3E%3C%2Fsvg%3E"); }
.article-v2-content .editorial-callout--example { --callout-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2360409a%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%2216%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%208h8m-8%204h8m-8%204h5%22%2F%3E%3C%2Fsvg%3E"); }
.article-v2-content .editorial-callout--tip { --callout-color:#287054; --callout-bg:#edf7f1; }
.article-v2-content .editorial-callout--warning,.article-v2-content .editorial-callout--important { --callout-color:#946018; --callout-bg:#fff5e5; }
.article-v2-content .editorial-callout--example { --callout-color:#60409a; --callout-bg:#f4effa; }
.article-v2-content .editorial-callout p { padding:.25rem 0; margin:0; }
.article-v2-content .editorial-callout .editorial-callout-title { color:#263748; font-weight:700; line-height:var(--callout-icon-size); padding:.25rem 0; }
.article-v2-content .editorial-code-wrap { margin:1.35rem 0 1.65rem; border:1px solid #d5dee6; border-radius:8px; overflow:hidden; min-width:0; background:#f7f9fb; }
.article-v2-content .editorial-code-toolbar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.55rem .8rem; background:var(--editorial-tint); color:var(--editorial-accent); font-size:.87em; font-weight:700; }
.article-v2-content .editorial-action,.editorial-image-dialog button { appearance:none; border:1px solid #b8c6d3; border-radius:5px; background:#fff; color:#253748; padding:.45rem .7rem; font:inherit; font-size:.85rem; font-weight:600; line-height:1.25; cursor:pointer; min-height:36px; }
.article-v2-content .editorial-action:hover,.editorial-image-dialog button:hover { background:#edf2f6; }
.article-v2-content .editorial-code-wrap pre { margin:0; border-radius:0; max-width:100%; overflow:auto; }
.article-v2-content pre.editorial-prompt { margin:1.25rem 0; background:#f7f9fb; color:#253748; border:1px solid #d5dee6; border-radius:6px; padding:1rem; white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:.94em; line-height:1.6; }
.article-v2-content .editorial-code-wrap pre.editorial-prompt { margin:0; border:0; border-radius:0; }
.article-v2-content pre.editorial-prompt code { font:inherit; white-space:inherit; background:none; color:inherit; padding:0; }
.article-v2-content .editorial-figure { margin:1.5rem 0; padding:.65rem; border:1px solid #d5dee6; border-radius:8px; background:#f7f9fb; }
.article-v2-content .editorial-figure img { display:block; max-width:100%; width:auto; height:auto; margin:0 auto; border-radius:4px; }
.article-v2-content .editorial-figure figcaption { margin:.65rem .25rem .25rem; font-size:.86em; color:#526475; line-height:1.5; }
.article-v2-content .editorial-figure-tools { display:flex; justify-content:flex-end; padding:.5rem .15rem 0; }
.editorial-image-dialog { border:0; border-radius:10px; padding:0; width:min(94vw,1400px); max-width:94vw; max-height:94vh; background:#fff; color:#253748; overflow:auto; box-shadow:0 12px 40px #0005; }
.editorial-image-dialog::backdrop { background:#132232d9; }
.editorial-image-dialog .editorial-dialog-bar { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 1rem; border-bottom:1px solid #d5dee6; }
.editorial-image-dialog img { display:block; max-width:100%; max-height:78vh; width:auto; height:auto; object-fit:contain; margin:0 auto; }
.editorial-image-dialog .editorial-dialog-caption { font-size:.9rem; padding:.65rem 1rem; margin:0; }
@media (max-width:720px) {
  .article-v2-content table { font-size:.85em; }
  .article-v2-content th,.article-v2-content td { padding:.6rem .65rem; }
  .article-v2-content .editorial-table-wrap table { min-width: min(460px, 100vw + 30px); max-width:none; }
  .article-v2-content table:not(.editorial-table-wrap table) { display:block; overflow-x:auto; }
  .article-v2-content .editorial-callout { --callout-pad-y:.75rem; --callout-pad-x:.8rem; --callout-icon-gap:.55rem; }
  .article-v2-content .editorial-code-toolbar { flex-wrap:wrap; }
}
@media print {
  .article-v2-content .editorial-action,.article-v2-content .editorial-figure-tools,.editorial-image-dialog { display:none !important; }
  .article-v2-content .editorial-table-wrap { overflow:visible; }
  .article-v2-content table { display:table; min-width:0; font-size:9pt; }
  .article-v2-content th { background:#eee !important; color:#111 !important; }
  .article-v2-content tr { break-inside:avoid; }
  .article-v2-content .editorial-callout,.article-v2-content .editorial-figure { break-inside:avoid; }
}
