/* Bootstrap 5.3.8 with the existing HU page and form geometry. */
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
.row.g-0 { --bs-gutter-x: 0; }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.navbar .nav-link { font-size: 1rem; font-weight: 700; }
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
small, .small { font-size: 80%; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.navbar .nav-link:hover, .btn:hover { text-decoration: none; }
.form-group { margin-bottom: 1rem; }
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.btn-block { display: block; width: 100%; }
.btn-close { flex-shrink: 0; }
.faq-item .card-body { padding: 20px; }
.faq-item button { width: 100%; text-align: left; }
.faq-item button, .faq-item button:hover, .faq-item button:focus { text-decoration: none; }

/* Existing Bootstrap 4 utilities used by the theme. */
.mt-n3 { margin-top: -1rem !important; }
.input-group-prepend, .input-group-append { display: flex; }
.input-group-prepend { margin-right: -1px; }
.input-group-append { margin-left: -1px; }
.border-left { border-left: 1px solid var(--bs-border-color) !important; }
.border-right { border-right: 1px solid var(--bs-border-color) !important; }

.rounded-3 { border-radius: .3rem !important; }

/* Long reference URLs must fit inside article footnotes on phones. */
.row.small > p, p.small, .fact { overflow-wrap: anywhere; }

/* Keep the existing desktop columns and read facts in order on a phone. */
@media (max-width: 767.98px) {
    .facts-columns {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-inline: 0;
    }
    .facts-columns > .col-6 { display: contents; }
    .facts-columns .fact {
        order: var(--fact-order);
        margin-inline: 0;
        min-width: 0;
    }
}

/* Keep the thank-you packshot inside its column on narrow screens. */
.img-small > img.packshot { max-width: 100%; height: auto; }
