/* Existing paper/ink/keep tokens retain the calculator's selected design. */
.income-rank {border-top:1px solid var(--rule);margin-top:20px;padding-top:20px;}
.income-rank[hidden],.income-rank [hidden] {display:none!important;}
.income-rank h3 {font-family:var(--f-doc);font-size:21px;line-height:1.5;letter-spacing:.02em;margin:0 0 8px;padding:0;border:0;text-indent:0;}
.income-rank p {font-size:12px;line-height:1.75;margin:6px 0;color:var(--ink-2);}
.income-rank .rank-amount {font-size:14px;color:var(--ink);}
.rank-amount strong {font-variant-numeric:tabular-nums;}
.rank-age-field {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0 8px;}
.rank-age-field label {font-size:13px;font-weight:700;}
.rank-age-field input {width:88px;min-height:44px;font-size:18px;}
.rank-age-field .rank-unit {font-size:13px;}
.income-rank .rank-status {min-height:3.5em;font-size:12px;}
.rank-table {width:100%;table-layout:fixed;border-collapse:collapse;margin:12px 0;}
.rank-table caption {text-align:left;font-size:12px;color:var(--ink-2);padding-bottom:6px;}
.rank-table th,.rank-table td {border:0;border-bottom:1px solid var(--rule);padding:12px 5px;vertical-align:top;}
.rank-table thead th {font-size:12px;font-weight:400;color:var(--ink-2);text-align:right;}
.rank-table thead th:first-child {width:23%;text-align:left;}
.rank-table tbody th {text-align:left;font-size:12px;font-weight:700;}
.rank-table tbody td {text-align:right;font-size:17px;font-weight:700;color:var(--keep);font-variant-numeric:tabular-nums;line-height:1.5;}
.rank-table small {display:block;font-size:11px;font-weight:400;color:var(--ink-3);line-height:1.65;margin-top:4px;}
.rank-table small:empty {display:none;}
.rank-method {font-size:12px;margin-top:10px;}
.rank-method summary {cursor:pointer;min-height:44px;padding:10px 0;color:var(--keep);text-decoration:underline;text-underline-offset:3px;}
.income-rank .rank-source {font-size:11px;color:var(--ink-3);}
@media(max-width:480px) {
  .income-rank h3 {font-size:20px;}
  .rank-table th,.rank-table td {padding:10px 3px;}
  .rank-table tbody td {font-size:16px;}
}
