/* The CNSS / AMO guide shares the social-worker guide's visual system. */
.cnssamo-guide .sw-search-panel { margin-bottom: 0; }
.cnssamo-guide .sw-page-num-pill { max-width: 78%; white-space: normal; }
.cnssamo-guide .sw-page-time { flex-shrink: 0; }
.cnssamo-guide .sw-sidebar-list { list-style: none; }
.cnssamo-guide .sw-prose, .cnssamo-guide .sw-detail-main, .cnssamo-guide .sw-main-col { min-width: 0; overflow-wrap: anywhere; }
.cnssamo-guide .sw-prose .sw-section-heading { display: block; }
.cnssamo-guide .sw-prose bdi[lang="fr"] { white-space: nowrap; }
.cnssamo-guide .sw-prose strong { font-weight: 750; color: #12233f; }
.cnssamo-related { margin-top: 24px; }
.cnssamo-related > h2 { font-size: 1.12rem; margin: 0 0 14px; color: #12233f; }
.cnssamo-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cnssamo-related-card { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 18px; border: 1px solid #d5e1f2; border-radius: 14px; background: #fff; color: #12233f; text-decoration: none; }
.cnssamo-related-card:hover { border-color: #a5bfe6; background: #f5f8ff; }
.cnssamo-related-icon { color: #2b59c3; font-size: 1.1rem; }
.cnssamo-related-card > strong { font-size: .95rem; line-height: 1.5; }
.cnssamo-related-card > p { margin: 0; font-size: .85rem; line-height: 1.65; color: #43536b; }
.cnssamo-related-cta { margin-top: auto; color: #2b59c3; font-size: .82rem; font-weight: 700; }
.cnssamo-update-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 24px; padding: 15px 0; border-top: 1px solid #d7e0ee; color: #43536b; font-size: .8rem; line-height: 1.7; }
.cnssamo-update-footer a { color: #194685; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cnssamo-update-date { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cnssamo-guide .sw-prose .cnssamo-template-note { margin: 14px 0; padding: 13px 15px; border: 1px solid #f1d47b; border-inline-start: 4px solid #d5a62f; border-radius: 10px; background: #fff9e9; }
.cnssamo-guide .sw-prose .cnssamo-template-note h3 { margin: 0 0 6px; font-size: .94rem; line-height: 1.5; color: #594413; }
.cnssamo-guide .sw-prose .cnssamo-template-note p { margin: 0; font-size: .86rem; line-height: 1.65; }
.cnssamo-template-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 9px; font-size: .82rem; }
.cnssamo-guide .sw-prose .cnssamo-letter-example { padding: 18px; margin: 16px 0 24px; border: 1px solid #d5e1f2; border-radius: 12px; background: #f8faff; font-size: .92rem; }
.cnssamo-guide .sw-prose .cnssamo-letter-example > p { margin-bottom: 10px; }
.cnssamo-guide .sw-prose .cnssamo-letter-example > p:last-child { margin-bottom: 0; }
.cnssamo-guide .sw-prose blockquote { margin-inline: 0; padding: 12px 18px; border-inline-start: 3px solid #2b59c3; background: #f4f8ff; border-radius: 8px; }
.cnssamo-guide .cnssamo-related-title { font-size: 1.05rem; margin-top: 0; }
.cnssamo-guide .sw-sidebar-card > p { font-size: .9rem; line-height: 1.65; }
.cnssamo-useful-links { display: grid; gap: 8px; }
.cnssamo-useful-links a { display: flex; align-items: center; gap: 10px; padding: 11px 9px; border: 1px solid #e1e9f5; border-radius: 10px; color: #194685; text-decoration: none; }
.cnssamo-useful-links a:hover { background: #f1f6ff; border-color: #b9cff0; }
.cnssamo-useful-links a > i:first-child { width: 22px; flex-shrink: 0; text-align: center; }
.cnssamo-useful-links a > span { flex: 1; min-width: 0; }
.cnssamo-useful-links strong, .cnssamo-useful-links small { display: block; }
.cnssamo-useful-links strong { font-size: .84rem; line-height: 1.5; }
.cnssamo-useful-links small { margin-top: 3px; font-size: .77rem; line-height: 1.55; color: #43536b; }
.cnssamo-useful-arrow { font-size: .7rem; }
html[dir="rtl"] .cnssamo-useful-arrow { transform: scaleX(-1); }
.cnssamo-guide .cnssamo-toc { padding: 0; margin-bottom: 16px; }
.cnssamo-guide .cnssamo-toc > summary { display: flex; gap: 10px; margin: 0; padding: 11px 14px; border: 0; cursor: pointer; list-style: none; }
.cnssamo-guide .cnssamo-toc > summary::-webkit-details-marker { display: none; }
.cnssamo-guide .cnssamo-toc > summary:focus-visible { outline: 2px solid #2b59c3; outline-offset: 3px; border-radius: 12px; }
.cnssamo-toc-title { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; }
.cnssamo-guide .cnssamo-toc .sw-toc-count { margin-inline-start: auto; font-size: .75rem; }
.cnssamo-toc-chevron { font-size: .75rem; transition: transform .15s ease; }
.cnssamo-toc[open] .cnssamo-toc-chevron { transform: rotate(180deg); }
.cnssamo-guide .cnssamo-toc .sw-toc-list { padding: 0 14px 14px; margin: 0; gap: 6px; }
.cnssamo-guide .cnssamo-toc .sw-toc-link { padding: 7px 9px; font-size: .82rem; }
.cnssamo-guide .cnssamo-toc .sw-toc-num { width: 23px; height: 23px; font-size: .73rem; }
@media (max-width: 600px) {
  .cnssamo-related-grid { grid-template-columns: 1fr; }
  .cnssamo-guide .sw-prose .cnssamo-letter-example { padding: 13px; }
  .cnssamo-guide .sw-prose .table-wrap { overflow: visible; border: 0; background: transparent; border-radius: 0; box-shadow: none; }
  .cnssamo-guide .sw-prose table { display: block; min-width: 0; width: 100%; border: 0; background: transparent; }
  .cnssamo-guide .sw-prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .cnssamo-guide .sw-prose tbody { display: grid; gap: 12px; }
  .cnssamo-guide .sw-prose tbody tr { display: block; padding: 0; border: 1px solid #d5e1f2; border-radius: 12px; overflow: hidden; background: #fff; }
  .cnssamo-guide .sw-prose tbody td { display: block; width: auto; padding: 10px 12px; text-align: start; border: 0; font-size: .88rem; line-height: 1.6; }
  .cnssamo-guide .sw-prose tbody td + td { border-top: 1px solid #e7edf6; }
  .cnssamo-guide .sw-prose tbody td:first-child { background: #eff5ff; color: #12233f; font-weight: 700; }
  .cnssamo-guide .sw-prose tbody td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #435a78; font-size: .74rem; line-height: 1.5; font-weight: 600; }
}
