/* Shared layout repairs. Tables scroll locally; page content stays in view. */
.site-header { flex-wrap:wrap; gap:12px; }
.site-header nav { flex-wrap:wrap; min-width:0; }
main h1, main h2, main h3 { overflow-wrap:anywhere; }
.skip-link:not(:focus) { top:0; transform:translateY(-100%); }
.skip-link:focus { top:0; transform:none; }
.legacy-table-scroll { max-width:100%; overflow-x:auto; margin:1rem 0; }
.legacy-table-scroll:focus-visible { outline:3px solid #0f6e56; outline-offset:3px; }
.legacy-table-scroll th, .legacy-table-scroll td { overflow-wrap:anywhere; min-width:8rem; vertical-align:top; }
.state-comparison th, .state-comparison td { padding:10px 12px; border-bottom:1px solid #e5e7eb; vertical-align:top; }
.article-card { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:20px; overflow-wrap:anywhere; }
.article-card-spaced { margin-bottom:16px; }
.article-card h2 { font-size:20px; margin:0 0 8px; }
.article-card a { color:#0f6e56; }
.article-card h2 a { text-decoration:none; }
.article-card a:focus-visible, .scard a:focus-visible { outline:3px solid #0f6e56; outline-offset:3px; }
.scard h3 a { color:inherit; text-decoration:none; }
.scard p a { color:#0f6e56; text-decoration:underline; }
#quiz .option-btn { display:flex; align-items:flex-start; gap:12px; line-height:1.5; }
#quiz .option-btn .check { flex:0 0 22px; margin-right:0; top:0; }

/* Keep essential notices legible on both the light and green footer variants. */
.site-footer .disclaimer { color:inherit; font-size:.875rem; line-height:1.6; }
/* Translucent language controls reduced contrast on the lighter green header. */
.site-header nav a[href] { opacity:1; min-height:24px; display:inline-flex; align-items:center; }
.site-header nav a.lang-switch { background:#075443; color:#fff; opacity:1; min-height:44px; line-height:1.4; padding:8px 10px; }
/* The two rings remain visible against both white and green header backgrounds. */
.site-header a:focus-visible { outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 6px #173a32; border-radius:2px; }

@media print {
  /* Screen tables scroll locally; print must fit their columns onto the paper. */
  .legacy-table-scroll, .reviewed-article .article-table { overflow:visible; max-width:none; }
  .legacy-table-scroll table, .reviewed-article .article-table table { table-layout:fixed; width:100%; }
  .legacy-table-scroll th, .legacy-table-scroll td,
  .reviewed-article .article-table th, .reviewed-article .article-table td { min-width:0; padding:4pt; font-size:9pt; overflow-wrap:anywhere; }
  .legacy-table-scroll thead, .reviewed-article .article-table thead { display:table-header-group; }
  .legacy-table-scroll tr, .reviewed-article .article-table tr { break-inside:avoid; }
}

/* Home-page nesting should not consume a quarter of a narrow screen. */
.payoff-home-intro { padding:20px; }
@media(max-width:480px) {
  .payoff-home-hero { padding-inline:16px; }
  .payoff-home-hero > .wrap, .payoff-home-intro { padding-inline:0; }
}
