:root {
    --ijsln-ink: #2f251f;
    --ijsln-brown: #5b2f22;
    --ijsln-red: #8b2f24;
    --ijsln-gold: #b88938;
    --ijsln-paper: #f7f1e6;
    --ijsln-cream: #fffaf1;
    --ijsln-line: #e3d5bf;
}

.profile-data-list {
    margin-left: 0;
    margin-right: 0;
}

.profile-data-row {
    border-bottom: 1px solid rgba(92, 45, 31, 0.12);
    margin-left: 0;
    margin-right: 0;
    padding: 10px 0;
}

.profile-data-row:first-child {
    padding-top: 0;
}

.profile-data-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.profile-data-row dt,
.profile-data-row dd {
    margin-bottom: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background: var(--ijsln-paper);
    color: var(--ijsln-ink);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 16px;
}

h1,
h2,
h3,
.navbar-brand strong {
    font-family: "Libre Baskerville", Georgia, serif;
    letter-spacing: 0;
}

a {
    color: var(--ijsln-red);
}

a:hover {
    color: var(--ijsln-brown);
}

.site-navbar {
    background: var(--ijsln-brown);
    border-bottom: 4px solid var(--ijsln-gold);
    box-shadow: 0 8px 24px rgba(47, 37, 31, 0.12);
}

.app-topbar {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto 1fr;
    min-height: 76px;
    padding: 12px 24px;
}

.topbar-spacer {
    min-width: 1px;
}

.topbar-user {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.topbar-user-name {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    justify-content: center;
    margin: 0;
}

.site-brand small {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}

.site-brand-logo {
    display: block;
    height: auto;
    max-width: 100px;
    width: 100px;
}

.site-brand-mark,
.brand-mark {
    align-items: center;
    background: var(--ijsln-gold);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.content-wrap {
    padding: 28px 0;
}

.card {
    border: 1px solid var(--ijsln-line);
    border-radius: 6px;
}

.card-footer {
    background: #fbf6ec;
    border-top-color: var(--ijsln-line);
}

.btn {
    border-radius: 4px;
    font-weight: 700;
}

.btn-primary {
    background: var(--ijsln-red);
    border-color: var(--ijsln-red);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--ijsln-brown);
    border-color: var(--ijsln-brown);
}

.btn-outline-primary {
    border-color: var(--ijsln-red);
    color: var(--ijsln-red);
}

.btn-outline-primary:hover {
    background: var(--ijsln-red);
    border-color: var(--ijsln-red);
}

.form-control {
    border-color: #d6c6ae;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--ijsln-gold);
    box-shadow: 0 0 0 0.2rem rgba(184, 137, 56, 0.18);
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    border-color: #d6c6ae;
    border-radius: 4px;
    height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057;
    line-height: calc(1.5em + 0.75rem);
    padding-left: 0.75rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + 0.75rem);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--ijsln-gold);
    box-shadow: 0 0 0 0.2rem rgba(184, 137, 56, 0.18);
}

.table thead th {
    border-bottom-color: var(--ijsln-line);
    color: #6c5848;
    font-size: 13px;
    text-transform: uppercase;
}

.table-actions {
    white-space: nowrap;
}

.auth-page {
    background:
        radial-gradient(circle at top left, rgba(184, 137, 56, 0.28), transparent 34%),
        linear-gradient(135deg, rgba(91, 47, 34, 0.96), rgba(47, 37, 31, 0.98));
    background-color: var(--ijsln-brown);
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

.auth-wrap {
    min-height: 100vh;
    padding-bottom: 32px;
    padding-top: 32px;
}

.auth-shell {
    align-items: center;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    min-height: calc(100vh - 64px);
}

.auth-shell-wide {
    grid-template-columns: minmax(260px, 360px) minmax(0, 760px);
    justify-content: center;
}

.auth-form-only {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 64px);
}

.auth-form-only .auth-card {
    max-width: 760px;
    width: 100%;
}

.auth-intro {
    color: #fff;
    max-width: 520px;
}

.auth-logo {
    display: block;
    height: auto;
    max-width: 288px;
    width: 100%;
}

.auth-intro h1 {
    font-size: 48px;
    margin: 18px 0 12px;
}

.auth-intro p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.5;
}

.auth-card {
    background: var(--ijsln-cream);
}

.auth-card .card-body {
    padding: 30px;
}

.auth-link {
    border-top: 1px solid var(--ijsln-line);
    color: #756556;
    line-height: 1.35;
    margin-top: 22px;
    padding-top: 18px;
    text-align: center;
}

.auth-link span {
    color: #756556;
    margin-right: 4px;
}

.association-consent {
    background: #fbf6ec;
    border: 1px solid var(--ijsln-line);
    border-radius: 6px;
    color: #5f5145;
    line-height: 1.35;
    padding: 14px 14px 14px 38px;
}

@media (max-width: 767.98px) {
    body {
        width: 100%;
    }

    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .content-wrap {
        overflow-x: hidden;
        padding-top: 24px;
    }

    .content-wrap > .d-flex {
        display: block !important;
    }

    .content-wrap h1 {
        font-size: 34px;
        overflow-wrap: anywhere;
    }

    .content-wrap .row {
        margin-left: 0;
        margin-right: 0;
    }

    .content-wrap .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .content-wrap .card {
        margin-left: 0;
        margin-right: 0;
    }

    .page-heading {
        align-items: flex-start !important;
        gap: 14px;
    }

    .page-heading .btn {
        margin-top: 6px;
    }

    .action-footer {
        display: block !important;
        padding-left: 12px;
        padding-right: 12px;
        text-align: initial !important;
    }

    .action-button {
        display: block;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    .action-button + .action-button {
        margin-top: 8px;
    }

    .auth-shell,
    .auth-shell-wide {
        display: block;
    }

    .auth-intro {
        margin-bottom: 24px;
        max-width: none;
        text-align: center;
    }

    .auth-intro h1 {
        font-size: 36px;
    }

    .auth-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .site-brand small {
        display: none;
    }

    .app-topbar {
        gap: 10px;
        grid-template-columns: 1fr auto 1fr;
        min-height: 68px;
        padding: 10px 12px;
    }

    .site-brand-logo {
        max-width: 86px;
        width: 86px;
    }

    .topbar-user {
        gap: 8px;
    }

    .topbar-user-name {
        display: none;
    }

    .topbar-logout {
        align-items: center;
        display: inline-flex;
        height: 34px;
        justify-content: center;
        padding-left: 8px;
        padding-right: 8px;
        width: 34px;
    }

    .topbar-logout-text {
        display: none;
    }
}
