/* THIS IS FLORIDA: Free Retirement Savings Calculator (additions to app.css) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-note { margin: 0 0 1rem; padding: .6rem .85rem; border-left: 4px solid var(--brand); background: #e6f2ec; max-width: 70ch; }
.rs-save { margin: 0 0 1rem; padding: .6rem .85rem; border: 2px solid var(--bad); border-radius: .5rem; background: #fbeeed; color: #7a1f1a; font-weight: 700; max-width: 70ch; }
.rs-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.rs-editor { flex: 1 1 340px; min-width: 0; max-width: 560px; }
.rs-side { flex: 999 1 380px; min-width: 0; }
.rs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; align-items: end; }
@media (max-width: 420px) { .rs-row2 { grid-template-columns: 1fr; } }
.editor .rs-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.editor .rs-check input { width: 24px; height: 24px; min-height: 0; flex: 0 0 24px; margin: 0; accent-color: var(--brand); }
.editor input[aria-invalid="true"] { border-color: var(--bad); background: #fbeeed; }
.rs-lead { margin: 0 0 .5rem; font-weight: 700; }
.rs-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .6rem; }
.rs-stat { flex: 1 1 150px; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .6rem .9rem; }
.rs-stat .k { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.rs-stat .v { margin: .1rem 0 0; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rs-stat.is-main { flex-basis: 100%; border-color: var(--brand); background: #e6f2ec; }
.rs-stat.is-main .v { font-size: 1.9rem; }
.rs-stat.is-bad .v { color: var(--bad); }
.rs-msg { margin: 0 0 .6rem; padding: .5rem .8rem; border-left: 4px solid #c9a227; background: #fdf6e3; }
.rs-msg.is-bad { border-left-color: var(--bad); background: #fbeeed; color: #7a1f1a; font-weight: 700; }
.rs-h2 { font-size: 1.25rem; margin: 1.2rem 0 .4rem; }
.rs-bars { list-style: none; margin: 0; padding: 0; }
.rs-bars li { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) 7.4em; gap: .5rem; align-items: center; padding: .2rem 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.rs-bar { display: flex; height: 18px; background: #eef3f0; border-radius: 4px; overflow: hidden; }
.rs-bar .put { background: var(--brand); }
.rs-bar .gr { background: #8cc7ae; }
.rs-bar-v { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.rs-tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); }
.rs-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.rs-tbl th, .rs-tbl td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.rs-tbl thead th { background: #eef3f0; position: sticky; top: 0; }
.rs-tbl .n { text-align: right; }
.rs-tbl tfoot th, .rs-tbl tfoot td { border-top: 2px solid var(--ink); font-weight: 700; }
.rs-foot { margin-top: .5rem; }
.tips h2 { margin-top: 1.4rem; }
.tips ol { padding-left: 1.3rem; }

/* the one-page printed sheet (only shown when printing) */
#print-sheet { display: none; }
.ps { font-family: Arial, Helvetica, sans-serif; color: #111; font-size: 9pt; line-height: 1.25; }
.ps h2 { margin: 0 0 .1rem; font-size: 15pt; }
.ps h3 { margin: .3rem 0 .15rem; font-size: 10.5pt; }
.ps-d { margin: .1rem 0 .4rem; color: #444; font-size: 8pt; }
.ps-cols { display: flex; gap: 1.2rem; }
.ps-cols > div { flex: 1 1 0; }
.ps-kv { border-collapse: collapse; width: 100%; }
.ps-kv th { text-align: left; font-weight: 400; padding: .05rem .8rem .05rem 0; }
.ps-kv td { text-align: right; font-weight: 700; padding: .05rem 0; }
.ps-t { width: 100%; border-collapse: collapse; font-size: 8pt; }
.ps-t th, .ps-t td { border-bottom: 1px solid #ccc; padding: 0 .3rem; text-align: left; line-height: 1.2; }
.ps-t .n { text-align: right; white-space: nowrap; }
.ps-t thead th { border-bottom: 2px solid #222; }
.ps-t tfoot th, .ps-t tfoot td { border-top: 2px solid #222; font-weight: 700; }
.ps-t tr { break-inside: avoid; }

@media print {
  body[data-print="retire"] #print-sheet { display: block !important; }
  body[data-print="retire"] #panel-calc, body[data-print="retire"] #panel-help { display: none !important; }
  body[data-print="retire"] .ps-t thead { display: table-header-group; }
}
