/* Bootstrap 5 with MyWeb's Bootstrap 3 look.

   Pages that set ViewData["Bootstrap"] = 5 load this file instead of Bootstrap 3 (see _Layout).
   Bootstrap 5 is imported into a cascade layer, so every unlayered stylesheet - this file,
   style.css, radio.css, inline <style> blocks - wins over it regardless of specificity, the way
   style.css won over Bootstrap 3 by loading after it.

   The rules below put back the Bootstrap 3 values that style.css was written against, and the
   Bootstrap 3 classes MyWeb still uses that Bootstrap 5 dropped. This file is the "keep the current
   look" layer: replace it when the new branding lands.

   The Bootstrap 3 pages load lib/bootstrap/dist/css/bootstrap.min.css, which is not stock: it is
   Bootstrap 3.3.7, un-minified and hand-edited. Values here follow that copy. Its edits are:
     label: not bold                       .btn:hover/:focus: no #333 text colour
     .navbar: min-height 90px              .navbar-toggle: margin-top 15px
     .navbar-default: border #ebecee, box-shadow 0 2px 4px rgba(0,0,0,.08)
     .navbar-default .navbar-nav > .active > a: color #7ac043, no background
     .breadcrumb: no background            .nav > li > a: padding 12px 15px, no hover background
     .nav-pills active: color #7ac043, 2px #7ac043 bottom border, no background, no radius
     .nav-justified > li > a: color #a3acb3
     .table cell borders: #ebecee          .pagination: #a3acb3 links, green active
     .panel-body: padding 25px             .panel-default and its heading: #ebecee border/background
   Only the ones the converted pages use so far are reproduced below.

   Add a Bootstrap 3 rule here only when a converted page needs it. */

@import url("../lib/bootstrap5/css/bootstrap.min.css") layer(bootstrap);
@import url("glyphicons.css");

/* ---------- Scaffolding ---------- */

/* style.css sizes text in rem against Bootstrap 3's 10px root (2rem = 20px). */
html {
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}

button,
input,
optgroup,
select,
textarea {
    color: inherit;
    font: inherit;
    margin: 0;
}

a {
    color: #337ab7;
    text-decoration: none;
}

    a:hover,
    a:focus {
        color: #23527c;
        text-decoration: underline;
    }

    a:focus {
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

b,
strong {
    font-weight: 700;
}

small,
.small {
    font-size: 85%;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 30px; }
h3, .h3 { font-size: 24px; }
h4, .h4 { font-size: 18px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

p {
    margin: 0 0 10px;
}

ul,
ol {
    margin-top: 0;
    margin-bottom: 10px;
    padding-left: 40px;
}

    ul ul,
    ol ol,
    ul ol,
    ol ul {
        margin-bottom: 0;
    }

.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.list-inline {
    padding-left: 0;
    margin-left: -5px;
    list-style: none;
}

    .list-inline > li {
        display: inline-block;
        padding-right: 5px;
        padding-left: 5px;
    }

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
}

fieldset {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

legend {
    display: block;
    float: none;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 21px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ---------- Grid ----------
   Bootstrap 3 widths and 30px gutters. Bootstrap 5's breakpoints sit one tier lower than
   Bootstrap 3's, so converted pages map col-sm-* to col-md-*, col-md-* to col-lg-* and
   col-lg-* to col-xl-*. Gutter utilities (g-*, gx-*) are overridden by the .row rule below.
   Bootstrap 5's spacing utilities are in rem, so they scale with the 10px root: px-4 (1.5rem) is
   15px, Bootstrap 3's column padding, and mb-3 (1rem) is 10px. */

.container,
.container-fluid {
    --bs-gutter-x: 30px;
    width: 100%;
    max-width: none;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container { width: 750px; }
}

@media (min-width: 992px) {
    .container { width: 970px; }
}

@media (min-width: 1200px) {
    .container { width: 1170px; }
}

.row {
    --bs-gutter-x: 30px;
}

    /* Bootstrap 3 columns are positioned and at least 1px tall, so an empty column still adds 1px. */
    .row > [class*="col-"] {
        position: relative;
        min-height: 1px;
    }

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 15px;
}

.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

    .form-control:focus {
        border-color: #66afe9;
        outline: 0;
        box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    }

    .form-control::placeholder {
        color: #999;
        opacity: 1;
    }

    .form-control[disabled],
    .form-control[readonly],
    fieldset[disabled] .form-control {
        background-color: #eee;
        opacity: 1;
    }

textarea.form-control,
select[multiple].form-control {
    height: auto;
}

/* Bootstrap 5 dropped .form-inline and .form-horizontal. */

@media (min-width: 768px) {
    .form-inline .form-group {
        display: inline-block;
        margin-bottom: 0;
        vertical-align: middle;
    }

    .form-inline .form-control {
        display: inline-block;
        width: auto;
        vertical-align: middle;
    }
}

.form-horizontal .form-group {
    margin-right: -15px;
    margin-left: -15px;
}

    .form-horizontal .form-group::before,
    .form-horizontal .form-group::after {
        content: " ";
        display: table;
    }

    .form-horizontal .form-group::after {
        clear: both;
    }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    user-select: none;
}

    .btn:hover,
    .btn:focus {
        text-decoration: none;
    }

    .btn:focus,
    .btn:active:focus {
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }

    .btn:active,
    .btn.active {
        background-image: none;
        outline: 0;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    }

/* ---------- Navbar ---------- */

.navbar {
    display: block;
    position: relative;
    min-height: 90px;
    padding: 0;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

    .navbar > .container,
    .navbar > .container-fluid {
        display: block;
    }

    .navbar::before, .navbar::after,
    .navbar > .container::before, .navbar > .container::after,
    .navbar-header::before, .navbar-header::after {
        content: " ";
        display: table;
    }

    .navbar::after,
    .navbar > .container::after,
    .navbar-header::after {
        clear: both;
    }

.navbar-default {
    background-color: #f8f8f8;
    border-color: #ebecee;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    border-width: 0 0 1px;
}

.container > .navbar-header {
    margin-right: -15px;
    margin-left: -15px;
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 15px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

    .navbar-toggle:focus {
        outline: 0;
    }

    .navbar-toggle .icon-bar {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 1px;
    }

        .navbar-toggle .icon-bar + .icon-bar {
            margin-top: 4px;
        }

.navbar-default .navbar-toggle {
    border-color: #ddd;
}

    .navbar-default .navbar-toggle .icon-bar {
        background-color: #888;
    }

@media (min-width: 768px) {
    .navbar {
        border-radius: 4px;
    }

    .navbar-fixed-top {
        border-radius: 0;
    }

    .navbar-header {
        float: left;
    }

    .container > .navbar-header {
        margin-right: 0;
        margin-left: 0;
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-right {
        float: right !important;
        margin-right: -15px;
    }

        .navbar-right ~ .navbar-right {
            margin-right: 0;
        }
}

/* ---------- Breadcrumb ----------
   The breadcrumb tag helper renders Bootstrap 3 markup (no .breadcrumb-item). */

.breadcrumb {
    display: block;
    padding: 8px 15px;
    margin-bottom: 20px;
    list-style: none;
    background-color: transparent;
    border-radius: 4px;
}

    .breadcrumb > li {
        display: inline-block;
    }

        .breadcrumb > li + li::before {
            padding: 0 5px;
            color: #ccc;
            content: "/\00a0";
        }

    .breadcrumb > .active {
        color: #777;
    }
