/* Reference-specific refinements on top of Bootstrap 5 components. */
:root {
    --bs-primary: #2460ef;
    --bs-primary-rgb: 36, 96, 239;
    --bs-body-font-family: Arial, Helvetica, sans-serif
}

main.container-fluid {
    padding: 22px 2% 72px
}

.header nav.nav-pills .nav-link.active {
    background: #edf0ff;
    color: #2255ed
}

.btn:not(.primary):not(.remove):not(.chip):not(.add) {
    border: 1px solid var(--border);
    background: #fff;
    color: #566175
}

.field .form-control,
.field .form-select {
    font-size: inherit
}

.fields.row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    --bs-gutter-x: 30px;
    --bs-gutter-y: 20px;
    margin-top: calc(-1 * var(--bs-gutter-y))
}

.fields.row>.field {
    flex-direction: column;
    gap: 7px
}

.field .form-label {
    margin-bottom: 0
}

.panel.card,
.inner-card.card {
    display: block;
    color: var(--ink)
}

.panel.job.card {
    display: grid
}

.btn {
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: 7px;
    padding: 10px 19px
}

.btn-primary {
    --bs-btn-bg: #2460ef;
    --bs-btn-border-color: #2460ef;
    --bs-btn-hover-bg: #194bd5;
    --bs-btn-hover-border-color: #194bd5
}

.step {
    text-decoration: none;
    color: #566175
}

.step:hover {
    text-decoration: none
}

.form-check-input {
    float: none
}

.pill.badge {
    line-height: 1.5
}

.header.navbar {
    flex-wrap: nowrap
}

.header .nav {
    padding-left: 0
}

.social .bi {
    font-size: 20px
}

@media(max-width:767.98px) {
    main.container-fluid {
        padding: 18px 14px 35px
    }

    .header.navbar {
        flex-wrap: wrap
    }

    .fields.row {
        --bs-gutter-y: 18px;
        --bs-gutter-x: 20px
    }

    .actions .btn {
        padding: 10px 13px
    }
}

@media print {
    .fields.row {
        display: block
    }

    .resume-controls {
        display: none !important
    }
}

/* HTML-only navigation remains available at every screen size. */
.actions a.primary,
.button-row a.primary {
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #fff;
    border-radius: 7px;
    padding: 12px 25px;
    text-align: center
}

.actions a.btn:not(.primary) {
    background: #fff;
    border: 1px solid var(--border);
    color: #566175;
    padding: 12px 25px
}

@media(max-width:767.98px) {
    .header nav.nav {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 5px
    }

    .header nav a {
        flex: 1;
        text-align: center
    }

    .header.navbar {
        gap: 12px
    }

    .actions a.btn {
        padding: 10px 13px
    }
}

/* Give tablet forms the full content width instead of a narrow sidebar column. */
@media(min-width:768px) and (max-width:991.98px) {
    .header.navbar {
        flex-wrap: wrap;
        gap: 12px
    }

    .header nav.nav {
        width: 100%;
        justify-content: space-between
    }

    .workspace {
        display: block;
        margin: 0
    }

    .steps {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 5px 4px 17px;
        margin-bottom: 8px;
        scrollbar-width: thin
    }

    .steps li {
        min-height: auto;
        flex-shrink: 0
    }

    .steps li:before {
        display: none
    }

    .step {
        gap: 8px;
        border: 1px solid #e1e6ef;
        border-radius: 25px;
        padding: 5px 12px 5px 5px;
        background: #fff;
        font-size: 13px
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 13px
    }

    .step.active .step-number {
        box-shadow: none
    }

    .panel.personal {
        min-height: 0
    }

    .form-column {
        min-height: 0
    }
}

@media(max-width:767.98px) {

    .field .form-control,
    .field .form-select,
    .software-row .form-control,
    .software-row .form-select {
        font-size: 16px;
        min-height: 44px
    }

    .header nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center
    }

    .step {
        min-height: 44px
    }

    .job>div,
    .software-row>* {
        min-width: 0
    }

    .pill.badge {
        white-space: normal;
        text-align: left
    }

    .resume-paper {
        overflow-wrap: anywhere
    }
}

/* Accessibility and browser fallbacks. */
img {
    max-width: 100%;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2453bd;
    outline-offset: 3px;
}

.muted,
.upload-copy p,
.company,
.records-note,
footer {
    color: #626f82;
}

input::placeholder,
textarea::placeholder {
    color: #68758a;
    opacity: 1;
}

.pill.deadline {
    color: #1763b4;
}

.notice {
    color: #925000;
}

.header,
.inner-heading,
.record-row,
.records header {
    min-width: 0;
}

.inner-heading {
    flex-wrap: wrap;
    gap: 12px;
}

.resume-paper {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (forced-colors: active) {

    .step.active,
    .header nav a.active {
        outline: 2px solid Highlight;
    }
}

@media print {
    main.container-fluid {
        padding: 0;
        min-height: 0;
    }

    .resume-paper section {
        page-break-inside: avoid;
    }
}
