/* The /conversions page: two rate converters, each an input and its tables. */

@layer reset, tokens, base, layout, components, pages, utilities;

@layer pages {
    .converter__entry {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--space-2) var(--space-3);
        margin-block: var(--space-4);
        color: var(--teal-700);
        font-size: var(--text-md);
    }

    /* 16px text, so a phone does not zoom in on focus. */
    .converter__input {
        width: 5.5em;
        padding: var(--space-1) var(--space-2);
        border: 1px solid var(--gray-5);
        border-radius: var(--radius-sm);
        font-size: var(--text-base);
    }

    .converter__button {
        padding: var(--space-2) var(--space-4);
    }

    /* Fixed, so every table's value column is the same width. */
    .converter__table {
        max-width: 26rem;
        margin-block-end: var(--space-5);
        table-layout: fixed;
    }

    .converter__table tbody th {
        font-weight: normal;
    }

    .converter__table :is(th, td):last-child {
        width: 7.5em;
        overflow-wrap: anywhere;
        text-align: end;
    }
}
