/* ---------- Reboot ----------
   Bootstrap shipped a Reboot layer that normalised bare elements, and the
   Monoline stylesheet depends on it without restating it — most visibly
   `body { margin: 0 }`, without which browsers apply their default 8px.

   This sits first so style.css still overrides it, matching Bootstrap's own
   ordering. */

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

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    margin: 0;
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    margin-block-start: 0;
    margin-block-end: 0.5rem;
}

p { margin-block: 0 1rem; }

ol, ul, dl { margin-block: 0 1rem; }
ol ol, ul ul, ol ul, ul ol { margin-block-end: 0; }

blockquote { margin: 0 0 1rem; }

figure { margin: 0 0 1rem; }

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-block-start: 1px solid;
    opacity: 0.25;
}

img, svg { vertical-align: middle; }

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

label { display: inline-block; }

button { border-radius: 0; }

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

button, select { text-transform: none; }

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) { cursor: pointer; }

textarea { resize: vertical; }

fieldset {
    min-inline-size: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

[hidden] { display: none !important; }

/* Vanilla replacement for the Bootstrap grid and utility classes that the
   Monoline markup uses. Covers the 37 distinct classes present across the
   template; nothing else from Bootstrap is required.

   Breakpoints and container widths follow Bootstrap's so the ported markup
   keeps its intended proportions. */

:root {
    --bs-gutter: 15px;
}

/* ---------- Containers ---------- */

.container,
.container-fluid {
    inline-size: 100%;
    margin-inline: auto;
    padding-inline: var(--bs-gutter);
}

@media (min-width: 576px) { .container { max-inline-size: 540px; } }
@media (min-width: 768px) { .container { max-inline-size: 720px; } }
@media (min-width: 992px) { .container { max-inline-size: 960px; } }
@media (min-width: 1200px) { .container { max-inline-size: 1140px; } }
@media (min-width: 1400px) { .container { max-inline-size: 1320px; } }

/* ---------- Row ---------- */

.row {
    display: flex;
    flex-wrap: wrap;
    margin-inline: calc(var(--bs-gutter) * -1);
}

.row > * {
    inline-size: 100%;
    padding-inline: var(--bs-gutter);
}

.no-gutters {
    margin-inline: 0;
}
.no-gutters > * {
    padding-inline: 0;
}

/* ---------- Columns ----------
   A shared 12-column basis. `col-xs-*` is Bootstrap 3 syntax that Monoline
   still carries; it is treated as the base (all widths), which is what the
   markup intends, with larger breakpoints overriding it. */

.col-xs-1 { inline-size: 8.333333%; }
.col-xs-12 { inline-size: 100%; }
.col-6 { inline-size: 50%; }
.col-12 { inline-size: 100%; }

@media (min-width: 576px) {
    .col-sm-4 { inline-size: 33.333333%; }
    .col-sm-6 { inline-size: 50%; }
    .col-sm-8 { inline-size: 66.666667%; }
    .col-sm-12 { inline-size: 100%; }
}

@media (min-width: 768px) {
    .col-md-6 { inline-size: 50%; }
    .col-md-10 { inline-size: 83.333333%; }
    .col-md-12 { inline-size: 100%; }
}

@media (min-width: 992px) {
    .col-lg-2 { inline-size: 16.666667%; }
    .col-lg-3 { inline-size: 25%; }
    .col-lg-4 { inline-size: 33.333333%; }
    .col-lg-5 { inline-size: 41.666667%; }
    .col-lg-6 { inline-size: 50%; }
    .col-lg-7 { inline-size: 58.333333%; }
    .col-lg-8 { inline-size: 66.666667%; }
    .col-lg-10 { inline-size: 83.333333%; }
    .col-lg-12 { inline-size: 100%; }

    .offset-lg-1 { margin-inline-start: 8.333333%; }
    .offset-lg-2 { margin-inline-start: 16.666667%; }
}

@media (min-width: 1200px) {
    .col-xl-2 { inline-size: 16.666667%; }
}

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

@media (min-width: 992px) {
    .d-lg-block { display: block; }
    .d-lg-none { display: none; }
}

@media (min-width: 1200px) {
    .d-xl-block { display: block; }
    .d-xl-none { display: none; }
}

.mb-0 { margin-block-end: 0; }
.mt-3 { margin-block-start: 1rem; }
.py-3 { padding-block: 1rem; }
.w-100 { inline-size: 100%; }

/* ---------- Carousel ----------
   slider.css supplies the Ken Burns transforms and the control styling, but
   the base show/hide rules came from Bootstrap's carousel component. These
   are those rules, and nothing more. carousel.js drives the .active class. */

.carousel { position: relative; }

.carousel-inner {
    position: relative;
    inline-size: 100%;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    display: none;
    float: left;
    inline-size: 100%;
    margin-inline-end: -100%;
    backface-visibility: hidden;
}

.carousel-item.active { display: block; }

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    inset-block: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 15%;
    padding: 0;
    color: #fff;
    text-align: center;
    background: none;
    border: 0;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.carousel-control-prev { inset-inline-start: 0; }
.carousel-control-next { inset-inline-end: 0; }

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible { opacity: 0.9; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    inline-size: 2rem;
    block-size: 2rem;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: 100% 100%;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.visually-hidden {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* (Reboot moved to the top of this file.) */

/* Utility classes the Monoline markup uses that are not part of the grid. */
.img-fluid { max-inline-size: 100%; block-size: auto; }
.float-right { float: right; }
.no-padding { padding: 0; }
.position-relative { position: relative; }
.mr-auto { margin-inline-end: auto; }
