/*
 * Base element styles the interface was designed against.
 *
 * These rules replace the parts of Bootstrap 5.3's "Reboot" (and its .card, .table,
 * and .visually-hidden classes) that the pages relied on, so the ~230 KB Bootstrap
 * download is no longer needed (audit item F5). Load this file before style.css,
 * which sets the project's own colors, fonts, and components.
 */

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

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 1200px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol, ul {
    padding-left: 2rem;
}

ol, ul, dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

dt { font-weight: 700; }

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

b, strong { font-weight: bolder; }

small { font-size: 0.875em; }

sub, sup {
    position: relative;
    font-size: 0.75em;
    line-height: 0;
    vertical-align: baseline;
}

sup { top: -0.5em; }
sub { bottom: -0.25em; }

img, svg { vertical-align: middle; }

table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead, tbody, tfoot, tr, td, th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

label { display: inline-block; }

button { border-radius: 0; }

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, select { text-transform: none; }

select { word-wrap: normal; }

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
[role="button"] {
    cursor: pointer;
}

summary {
    display: list-item;
    cursor: pointer;
}

[hidden] { display: none !important; }

/* Cards stack their children vertically; style.css supplies their look. */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
}

/* The Country details data table: full width with padded rows. */
.table {
    width: 100%;
    margin-bottom: 1rem;
    vertical-align: top;
}

.table > :not(caption) > * > * {
    padding: 0.5rem;
    background-color: #fff;
}

/* Text that screen readers announce but sighted users do not see. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The panel container is a positioning context, as Bootstrap's .carousel made it. */
.carousel { position: relative; }
