/* Practical guides extend the existing Manrope / Lora theme. */
.guide-banner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 28px 32px; margin: 0 0 40px; border: 1px solid #cbd3c1; border-left: 4px solid #68795b; background: #edf0e7; }
.guide-banner h2 { font-size: clamp(24px, 2.5vw, 31px); margin: 0 0 8px; }
.guide-banner p { margin: 0; font-size: 16px; }
.guide-banner .button { white-space: normal; }
.guide-banner .eyebrow { margin-bottom: 12px; }
.guide-banner.home-guide { margin-top: -25px; margin-bottom: 60px; }
.route-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 25px; }
.route-link { display: block; border: 1px solid var(--border); padding: 24px; background: #fff; }
.route-link:hover { border-color: #68795b; background: #f3f5ef; }
.route-link strong { display: block; font-family: var(--font-editorial), Georgia, serif; font-size: 23px; font-weight: 500; line-height: 1.4; margin-bottom: 10px; }
.route-link span { display: block; font-size: 16px; color: #56624f; }
.route-link small { display: block; margin-top: 18px; color: #465b47; font-size: 14px; font-weight: 700; }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-block: 24px; }
.guide-actions .button { min-height: 44px; font: inherit; cursor: pointer; }
.guide-actions [hidden] { display: none; }
/* Match the reset's layer so its !important hidden rule cannot collapse the
   print control's space while its script initializes. */
@layer base {
  .guide-actions [data-print-guide][hidden] { display: inline-flex !important; visibility: hidden; }
}
.article-body a:not(.button):not(.route-link) { text-decoration: underline; text-underline-offset: 4px; }
.article-body .guide-list { padding-left: 24px; margin: 18px 0 24px; }
.guide-list li { font-size: 16px; line-height: 1.8; padding-left: 4px; margin-bottom: 12px; }
.guide-list strong { color: #303b33; }
.guide-note { border-left: 3px solid #68795b; padding: 18px 22px; background: #f0f2eb; margin-block: 22px; }
.article-body .guide-note p { margin: 0; font-size: 16px; }
.guide-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 16px; line-height: 1.7; text-align: left; }
.guide-table caption { text-align: left; font-size: 14px; color: #56624f; padding-bottom: 12px; }
.guide-table th, .guide-table td { padding: 16px 14px; border-bottom: 1px solid #d6dccf; vertical-align: top; overflow-wrap: break-word; word-break: normal; }
.guide-table thead th { color: #fff; background: #465b47; font-size: 14px; font-weight: 600; }
.guide-table tbody tr:nth-child(even) { background: #f0f2eb; }
.guide-table tbody th { font-weight: 600; }
.guide-table thead th:first-child, .guide-table tbody th:first-child { width: 20%; min-width: 160px; }
.guide-table .amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide-table tfoot th, .guide-table tfoot td { background: #e3e9da; font-weight: 700; border-top: 2px solid #68795b; }
.balance-equation { padding: 22px; background: #465b47; color: #fff; font-size: 20px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.document-checklist { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.document-checklist legend { font-family: var(--font-editorial), Georgia, serif; font-size: 24px; margin-bottom: 18px; }
.document-checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 16px; line-height: 1.7; }
.document-checklist input { width: 21px; height: 21px; margin: 4px 0 0; flex: 0 0 auto; accent-color: #465b47; }
.document-checklist strong { display: block; margin-bottom: 4px; }
.document-checklist input:checked + span { color: #58694e; }
.document-checklist input:checked + span strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.document-flow { display: grid; gap: 0; counter-reset: step; padding: 0; margin: 24px 0; list-style: none; }
.document-flow li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.document-flow li::before { content: counter(step, decimal-leading-zero); color: #68795b; font-size: 16px; padding-top: 3px; }
.document-flow h3 { font-size: 22px; line-height: 1.45; margin-bottom: 8px; }
.document-flow p { margin: 0; }
.review-section { background: #edf0e7; }
.review-section .prepare-grid { align-items: start; }
.review-section h2 { font-size: clamp(30px, 3.5vw, 43px); }
.review-section p { font-size: 16px; margin: 20px 0; }
.review-section ol { margin: 0; padding-left: 24px; }
.review-section li { padding: 0 0 22px 5px; font-size: 16px; }
.review-section li strong { display: block; margin-bottom: 6px; }
.guide-next { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 25px; }
.guide-next p { margin: 0 0 12px; }
.article-body section[id], .review-section[id] { scroll-margin-top: 120px; }
.route-link:focus-visible, .guide-actions a:focus-visible, .guide-actions button:focus-visible, .document-checklist input:focus-visible { outline: 3px solid #465b47; outline-offset: 5px; }
.print-only { display: none; }
@media (max-width: 760px) {
  .guide-banner { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .guide-banner.home-guide { margin-top: 0; margin-bottom: 35px; }
  .route-links { grid-template-columns: 1fr; }
  .guide-table.responsive-table caption { display: block; width: 100%; }
  .guide-table.responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .guide-table.responsive-table, .guide-table.responsive-table tbody, .guide-table.responsive-table tr { display: block; width: 100%; }
  .guide-table.responsive-table tr { border: 1px solid #d6dccf; margin-bottom: 18px; }
  .guide-table.responsive-table td, .guide-table.responsive-table tbody th { display: block; padding: 12px 16px; border: 0; }
  .guide-table.responsive-table td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 700; color: #465b47; margin-bottom: 5px; }
  .guide-table.responsive-table tbody th { width: auto; min-width: 0; background: #e3e9da; }
  .guide-table .amount { padding-inline: 8px; }
  .balance-equation { font-size: 17px; padding: 18px; }
}
@media print {
  @page { margin: 18mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .header, .skip-link, .breadcrumb, .article-toc, .related-section, .article-cta, .contact-section, footer, .guide-actions, .no-print { display: none !important; }
  .shell { width: 100%; max-width: none; }
  .article-layout { display: block; }
  .article-heading { margin: 0 0 22px; max-width: none; }
  .article-heading h1 { font-size: 25pt; }
  .article-heading .eyebrow { display: none; }
  .article-intro, .article-body p, .document-checklist label { font-size: 11pt; line-height: 1.5; }
  .article-body h2 { font-size: 17pt; break-after: avoid; }
  .document-checklist label, .guide-table tr { break-inside: avoid; }
  .document-checklist input { appearance: auto; width: 15px; height: 15px; }
  .print-only { display: block; }
  .article-body > section { margin-bottom: 25px; }
  .article-sources a { font-size: 9pt; overflow-wrap: anywhere; }
  .article-sources a::after { content: " (" attr(href) ")"; }
}
