/* Additions for Markdown guides and their discovery links; legacy styling stays scoped out. */
.guide-discovery { width: 100%; margin: 22px 0 34px; padding: 24px; border: 1px solid #dce5ec; border-top: 3px solid #1987bd; background: #f8fafc; box-sizing: border-box; }
.guide-eyebrow { margin: 0 0 8px !important; color: #376681; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.guide-discovery h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.35; }
.guide-discovery > p { margin: 0 0 18px; }
.guide-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-link-card { min-width: 0; padding: 18px; border: 1px solid #e1e7ec; background: #fff; }
.guide-link-card h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.45; }
.guide-link-card h3 a { color: #176b9b; text-decoration: none; }
.guide-link-card h3 a:hover { text-decoration: underline; }
.guide-link-card p { margin: 0; color: #555; font-size: 14px; line-height: 1.65; }
.editorial-content { line-height: 1.8; overflow-wrap: anywhere; }
.editorial-content h2 { margin-top: 42px; line-height: 1.35; font-size: 28px; }
.editorial-content h3 { margin-top: 28px; line-height: 1.4; font-size: 21px; }
.editorial-content :is(h2,h3,h4) { scroll-margin-top: 100px; }
.editorial-content a { text-underline-offset: 3px; }
.editorial-content a:focus-visible, .guide-discovery a:focus-visible, .guide-sidebar a:focus-visible { outline: 2px solid #176b9b; outline-offset: 4px; }
.editorial-content .guide-answer, .editorial-content .guide-note { margin: 0 0 24px; padding: 20px 22px; border-left: 4px solid #1987bd; background: #f0f7fc; color: #263c4a; }
.editorial-content .guide-note { background: #fff8ea; border-color: #c88b2c; }
.editorial-content .guide-answer p, .editorial-content .guide-note p { margin: 0 0 10px; }
.editorial-content .guide-answer p:last-child, .editorial-content .guide-note p:last-child { margin-bottom: 0; }
.editorial-content .guide-checked { margin-bottom: 18px; color: #626b73; font-size: 13px; }
.editorial-content .guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.editorial-content .guide-actions a { display: inline-block; padding: 11px 16px; border: 1px solid #1677a9; background: #1677a9; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.editorial-content .guide-actions a:hover { background: #105d87; }
.editorial-content .guide-actions a + a { background: #fff; color: #176b9b; }
.editorial-content .guide-toc { margin: 24px 0 32px; padding: 20px 24px; border: 1px solid #e0e4e8; background: #fafafa; }
.editorial-content .guide-toc h2 { margin: 0 0 12px; font-size: 19px; }
.editorial-content .guide-toc ol { margin: 0; padding-left: 22px; }
.editorial-content .guide-toc li { margin: 5px 0; }
.editorial-content table { width: 100%; margin: 20px 0 28px; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.editorial-content th, .editorial-content td { padding: 12px 14px; vertical-align: top; border: 1px solid #dfe5ea; text-align: left; overflow-wrap: anywhere; }
.editorial-content th { background: #f1f5f8; color: #263c4a; }
.editorial-content .guide-workflow { margin: 28px 0; }
.editorial-content .guide-workflow ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; counter-reset: workflow; }
.editorial-content .guide-workflow li { margin: 0; padding: 16px; border: 1px solid #dce5ec; background: #f8fafc; font-size: 14px; line-height: 1.6; counter-increment: workflow; }
.editorial-content .guide-workflow li::before { content: counter(workflow, decimal-leading-zero); display: block; margin-bottom: 8px; color: #1987bd; font-weight: 700; }
.editorial-content .guide-workflow strong { display: block; margin-bottom: 6px; }
.editorial-content figcaption { margin-top: 10px; color: #666; font-size: 12px; line-height: 1.6; }
.editorial-content li { margin-bottom: 10px; }
.guide-sidebar { padding: 22px; border: 1px solid #e1e7ec; }
.guide-sidebar > h2 { margin: 0 0 16px; font-size: 19px; line-height: 1.4; }
.guide-sidebar .guide-link-grid { grid-template-columns: 1fr; }
.guide-sidebar .guide-link-card { padding: 0 0 16px; border: 0; border-bottom: 1px solid #e8edf0; }
.guide-sidebar > p { margin: 18px 0 0; font-size: 14px; }
@media (max-width: 767px) {
  .guide-link-grid { grid-template-columns: 1fr; }
  .guide-discovery { padding: 19px; }
  .guide-discovery h2 { font-size: 23px; }
  .editorial-content h2 { font-size: 24px; }
  .editorial-content h3 { font-size: 20px; }
  .editorial-content .guide-answer, .editorial-content .guide-note { padding: 16px; }
  .editorial-content .guide-toc { padding: 18px; }
  .editorial-content .guide-workflow ol { grid-template-columns: 1fr; }
  .editorial-content table, .editorial-content tbody { display: block; }
  .editorial-content thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .editorial-content tbody tr { display: block; margin-bottom: 14px; border: 1px solid #dfe5ea; }
  .editorial-content td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px; border: 0; border-bottom: 1px solid #edf0f3; font-size: 14px; }
  .editorial-content td:last-child { border-bottom: 0; }
  .editorial-content td::before { content: attr(data-label); color: #376681; font-weight: 600; }
  .editorial-content .guide-actions { flex-direction: column; }
  .editorial-content .guide-actions a { text-align: center; }
}
