/* Shared, scoped presentation for practical guide tools. */
.article-body .advice-tool, .advice-tool { padding: 28px; border: 1px solid var(--line,#d8d8d8); border-top: 3px solid #b5590a; border-radius: 8px; background: #fafafa; margin-block: 30px; }
.advice-tool h3 { margin: 0 0 16px; line-height: 1.4; font-size: 1.3rem; }
.advice-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-block: 24px 16px; }
.advice-tool button, .advice-tool-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.5; padding: 12px 18px; border: 1px solid var(--charcoal,#353535); border-radius: 4px; background: #fff; color: var(--ink,#353535); cursor: pointer; text-decoration: none; }
.advice-tool button { background: var(--charcoal,#353535); color: #fff; }
.advice-tool [hidden] { display: none !important; }
.advice-tool button:hover { background: #202020; }
.advice-tool-actions a:hover { background: #eee; }
.advice-tool button:focus-visible, .advice-tool-actions a:focus-visible, .advice-tool summary:focus-visible { outline: 2px solid #994500; outline-offset: 4px; }
.advice-tool [data-copy-status] { font-size: .875rem; color: var(--ink,#353535); line-height: 1.7; margin-block: 12px; }
.advice-tool details { border-top: 1px solid var(--line,#d8d8d8); padding-top: 14px; margin-top: 20px; }
.advice-tool summary { min-height: 44px; cursor: pointer; font-weight: 700; line-height: 1.6; padding-block: 10px; }
.advice-template { white-space: pre-wrap; overflow-wrap: anywhere; font: .875rem/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 22px; background: #fff; border: 1px solid var(--line,#d8d8d8); color: #353535; border-radius: 4px; max-width: 100%; }
.advice-note { border-left: 3px solid #b5590a; padding: 16px 20px; background: #f4f4f4; line-height: 1.8; }
.advice-example { border: 1px solid var(--line,#d8d8d8); border-radius: 8px; padding: 28px; margin-block: 28px; background: #fafafa; }
.advice-example h3 { margin-top: 0; line-height: 1.4; }
.advice-example dl, .advice-annotations { margin: 0; }
.advice-example dt, .advice-annotations dt { font-weight: 700; margin-top: 22px; line-height: 1.5; }
.advice-example dd, .advice-annotations dd { margin: 8px 0 0; line-height: 1.8; color: var(--muted,#666); }
.advice-example blockquote { margin: 20px 0; border-left: 3px solid #b5590a; padding-left: 20px; }
.advice-comparison { margin-block: 26px; }
.advice-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9375rem; line-height: 1.7; text-align: left; }
.advice-comparison caption { text-align: left; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.advice-comparison th, .advice-comparison td { padding: 16px 12px; border: 1px solid var(--line,#d8d8d8); vertical-align: top; overflow-wrap: break-word; }
.advice-comparison thead { background: #353535; color: #fff; }
.advice-comparison tbody th { background: #f3f3f3; }
.advice-comparison td { color: var(--muted,#666); }
@media (max-width: 650px) {
  .article-body .advice-tool, .advice-tool, .advice-example { padding: 22px 18px; }
  .advice-template { padding: 16px; font-size: .8125rem; }
  .advice-tool-actions { align-items: stretch; }
  .advice-tool-actions > * { flex: 1 1 100%; }
}
/* The sidebar also narrows the article on intermediate desktop widths. */
@media (max-width: 650px), (min-width: 801px) and (max-width: 1100px) {
  .advice-comparison table, .advice-comparison tbody, .advice-comparison tr, .advice-comparison th, .advice-comparison td { display: block; width: auto; }
  .advice-comparison caption { display: block; width: 100%; }
  .advice-comparison thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .advice-comparison tbody tr { margin-bottom: 20px; border: 1px solid var(--line,#d8d8d8); border-radius: 6px; overflow: hidden; }
  .advice-comparison tbody th { background: #353535; color: #fff; }
  .advice-comparison th, .advice-comparison td { border: 0; padding: 16px; }
  .advice-comparison td + td { border-top: 1px solid var(--line,#d8d8d8); }
  .advice-comparison td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--ink,#353535); margin-bottom: 6px; }
}
@media print {
  .advice-tool button, .advice-tool-actions, [data-copy-status] { display: none !important; }
  .advice-tool, .advice-example { background: #fff; border-color: #888; }
  .advice-template { white-space: pre-wrap; }
  .advice-comparison { break-inside: avoid; }
}
