:root {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #17283e;
    background: #fff;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a {
    color: #1754a3;
    text-underline-offset: .2em;
}

a:hover {
    text-decoration-thickness: .15em;
}

:focus-visible {
    outline: 3px solid #1754a3;
    outline-offset: 3px;
}

.content-width {
    width: min(100% - 2rem, 70rem);
    margin-inline: auto;
}

.site-header,
.site-footer {
    background: #f5f7fb;
}

.site-header {
    border-bottom: 1px solid #d5dce5;
}

.site-nav,
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
}

.site-nav {
    justify-content: space-between;
    padding-block: 1rem;
}

.site-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding-block: .4rem;
}

.brand {
    font-weight: 700;
}

main {
    flex: 1;
    min-width: 0;
    padding-block: 2rem;
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin-top: 0;
    font-size: 2rem;
}

h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.account-details {
    display: grid;
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
    gap: .75rem 1.5rem;
    margin-block: 1.5rem;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-block: 1rem;
}

th,
td {
    padding: .75rem;
    border-bottom: 1px solid #d5dce5;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

textarea {
    width: 100%;
    padding: .75rem;
    border: 1px solid #64748b;
    border-radius: .25rem;
    font: inherit;
    resize: vertical;
}

.error-message {
    color: #b42318;
}

.muted,
.site-footer {
    color: #526174;
}

.site-footer {
    padding-block: 1rem;
    border-top: 1px solid #d5dce5;
}

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    padding: .5rem 1rem;
    background: #fff;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

@media (max-width: 36rem) {
    .account-details {
        grid-template-columns: minmax(0, 1fr);
        gap: .25rem;
    }

    .account-details dd {
        margin-bottom: .75rem;
    }
}
