/* ─────────────────────────────────────────────────────────────
 * asset-repositioning.css — layout unique to Asset Repositioning
 * ─────────────────────────────────────────────────────────────
 * The page uses the shared calculator shell (calculators.css:
 * calc, calc-section, calc-table) and the app's standard input
 * (scenario-settings__input), so it matches the other calculator
 * tabs. These rules only cover what those tabs don't have: inputs,
 * an account picker, notes and a link inside table cells, and the
 * 30-year table with a header row that scrolls sideways on narrow
 * screens. Surface tokens only, so every theme works.
 * ───────────────────────────────────────────────────────────── */

/* Inline inputs: the standard input, sized for a value column */
.ar-table .scenario-settings__input {
    width: 120px;
    text-align: right;
}

/* The account picker shows the account's name and value. A percentage width
   lets the table narrow it on small screens; max-content keeps it no wider
   than its longest option. */
.ar-table select.scenario-settings__input {
    width: 100%;
    max-width: max-content;
    text-align: left;
}

/* A value with a small note beside it */
.ar-cell {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-8);
}

/* A note with nothing to say takes no room */
.ar-note:empty {
    display: none;
}

/* "Add an account in Assets": the same look as Social Security's text links */
.ar-link {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 500;
    color: var(--brand-primary);
    cursor: pointer;
}

.ar-link:hover,
.ar-link:focus-visible {
    text-decoration: underline;
}

/* The 30-year table: the wrapper is the card and scrolls sideways when narrow */
.ar-years-scroll {
    overflow-x: auto;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-12);
}

.ar-years {
    min-width: 480px;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* Column headings, like the header rows on My Paycheck's tables */
.ar-years th {
    padding: var(--space-8) var(--space-16);
    text-align: right;
    font-size: var(--content-small-size);
    font-weight: 600;
    color: var(--surface-text);
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--surface-border);
}

.ar-years th:first-child {
    text-align: left;
}

/* Swift leaves the year column's heading blank; keep it for screen readers */
.ar-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
