/* The theme's base stylesheet, in place of Bootstrap 3.4.1, which Beautiful Hugo was built on. It holds just what the
 * theme's markup used of Bootstrap - found by matching Bootstrap's every rule against every page of the sites built
 * with the theme - written out plainly: a reset after normalize.css, the base typography, the centred column of the
 * grid, the navigation bar and the few components the theme's templates name. Left out are Bootstrap's styling of
 * form controls, e.g. its `margin: 4px 0 0` on checkboxes and its `cursor: not-allowed` on disabled ones, its hacks for
 * old browsers, and its printing of each link's URL after it.
 * Linked by beautifulWend.document before main.css, as Bootstrap was */

/* --- Reset --- */

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

html {
    font-family: sans-serif;
    font-size: 10px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
    background-color: #fff;
}

article, aside, figcaption, figure, footer, header, main, nav, section {
    display: block;
}

figure {
    margin: 0;
}

img {
    border: 0;
    vertical-align: middle;
}

svg:not(:root) {
    overflow: hidden;
}

hr {
    box-sizing: content-box;
    height: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

b, strong {
    font-weight: 700;
}

sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
    top: -0.5em;
}

sub {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
    bottom: -0.25em;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    background-color: transparent;
}

td, th {
    padding: 0;
}

th {
    text-align: left;
}

/* Form controls take the text around them, and are otherwise left as the browser draws them */
button, input, select, textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button {
    overflow: visible;
    text-transform: none;
    cursor: pointer;
}

select {
    text-transform: none;
}

textarea {
    overflow: auto;
}

label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
}

input[type=checkbox], input[type=radio] {
    padding: 0;
    vertical-align: -0.125em;
}

input[type=range] {
    display: block;
    width: 100%;
}

[role=button] {
    cursor: pointer;
}

/* --- Typography --- */

a {
    color: #337ab7;
    text-decoration: none;
    background-color: transparent;
}

a:hover, a:focus {
    color: #23527c;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, h5, h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 14px;
}

h6 {
    font-size: 12px;
}

p {
    margin: 0 0 10px;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 10px;
}

ul ul, ul ol, ol ul, ol ol {
    margin-bottom: 0;
}

blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

blockquote p:last-child, blockquote ul:last-child, blockquote ol:last-child {
    margin-bottom: 0;
}

code, pre {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

code {
    padding: 2px 4px;
    font-size: 90%;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 4px;
}

pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    overflow-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
    background-color: transparent;
    border-radius: 0;
}

.small, small {
    font-size: 85%;
}

.text-muted {
    color: #777;
}

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

.list-inline {
    padding-left: 0;
    margin-left: -5px;
    list-style: none;
}

.list-inline > li {
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px;
}

/* Hidden but for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* --- The centred column - the only layout of the grid which the theme uses: `container`, holding a `row` holding one
 * column, `col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1` --- */

.container, .container-fluid {
    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 {
    margin-right: -15px;
    margin-left: -15px;
}

.container::before, .container::after, .container-fluid::before, .container-fluid::after, .row::before, .row::after {
    display: table;
    content: " ";
}

.container::after, .container-fluid::after, .row::after {
    clear: both;
}

.col-md-10, .col-lg-8 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .col-md-10 {
        float: left;
        width: 83.33333333%;
    }

    .col-md-offset-1 {
        margin-left: 8.33333333%;
    }
}

@media (min-width: 1200px) {
    .col-lg-8 {
        float: left;
        width: 66.66666667%;
    }

    .col-lg-offset-2 {
        margin-left: 16.66666667%;
    }
}

/* --- The navigation bar --- */

.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.navbar::before, .navbar::after {
    display: table;
    content: " ";
}

.navbar::after {
    clear: both;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    border-width: 0 0 1px;
}

.navbar-default {
    background-color: #f8f8f8;
    border-color: #e7e7e7;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav > li {
    position: relative;
    display: block;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
    line-height: 20px;
}

.nav > li > a:hover, .nav > li > a:focus {
    text-decoration: none;
    background-color: transparent;
}

.navbar-default .navbar-nav > li > a {
    color: #777;
}

.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    color: #333;
}

/* The button showing the menu on a narrow screen, which it opens as a popover - see beautifulWend.navbar */
.navbar-toggle {
    position: relative;
    align-items: center;
    padding: 9px 10px;
    margin: 8px 15px 8px 0;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.navbar-toggle:hover, .navbar-toggle:focus {
    background-color: #ddd;
}

/* The menu - on a wide screen, in the bar, to the right; on a narrow one, a popover beneath the bar, opened by the
 * button, and closed by it, by pressing Escape, or by clicking elsewhere. Since it is a popover, the browser hides it
 * while it is closed, and on a wide screen it is shown regardless, and placed as an ordinary element */
.navbar-collapse {
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 767px) {
    .navbar-collapse:popover-open {
        position: fixed;
        inset: 72px 0 auto 0;
        width: auto;
        max-height: calc(100vh - 72px);
        margin: 0;
        padding: 7.5px 15px;
        overflow-y: auto;
        color: inherit;
        background: #f5f5f5;
        border: 0;
        border-bottom: 1px solid #eaeaea;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 767px) and (prefers-color-scheme: dark) {
    .navbar-collapse:popover-open {
        background: #505050;
        border-bottom-color: #aaa;
    }
}

/* A browser without popovers, e.g. Chrome before 114, would show the menu always, since it knows no `popover` to hide
 * it by. There it is hidden, and shown while the button has the focus, which a click on it gives it, and then while
 * the pointer is over it or one of its own links has the focus, so that a click on a link follows it - a click
 * elsewhere takes the focus, and closes it. These
 * rules are kept apart from those naming :popover-open, which such a browser would discard whole */
@supports not selector(:popover-open) {
    @media (max-width: 767px) {
        .navbar-collapse {
            display: none;
        }

        .navbar-toggle:focus ~ .navbar-collapse, .navbar-collapse:focus-within, .navbar-collapse:hover {
            position: fixed;
            top: 72px;
            right: 0;
            left: 0;
            display: block;
            max-height: calc(100vh - 72px);
            padding: 7.5px 15px;
            overflow-y: auto;
            background: #f5f5f5;
            border-bottom: 1px solid #eaeaea;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
    }

    @media (max-width: 767px) and (prefers-color-scheme: dark) {
        .navbar-toggle:focus ~ .navbar-collapse, .navbar-collapse:focus-within, .navbar-collapse:hover {
            background: #505050;
            border-bottom-color: #aaa;
        }
    }
}

@media (min-width: 768px) {
    .navbar-collapse, .navbar-collapse[popover] {
        position: static;
        display: block;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        color: inherit;
        background: transparent;
        border: 0;
    }

    .navbar-toggle {
        display: none;
    }

    .navbar-nav {
        float: left;
        margin: 0;
    }

    .navbar-nav > li {
        float: left;
    }

    .navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .navbar-right {
        float: right;
        margin-right: -15px;
    }
}

/* --- Pager, between a post and its neighbours, and a list's pages --- */

.pager {
    padding-left: 0;
    margin: 20px 0;
    text-align: center;
    list-style: none;
}

.pager::before, .pager::after {
    display: table;
    content: " ";
}

.pager::after {
    clear: both;
}

.pager li {
    display: inline;
}

.pager li > a {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px;
}

.pager li > a:hover, .pager li > a:focus {
    text-decoration: none;
    background-color: #eee;
}

.pager .next > a {
    float: right;
}

.pager .previous > a {
    float: left;
}

/* --- Panels, list groups and badges, of the tags page --- */

.panel-group {
    margin-bottom: 20px;
}

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-group .panel {
    margin-bottom: 0;
}

.panel-default {
    border-color: #ddd;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-group .panel-heading {
    border-bottom: 0;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}

.panel-body {
    padding: 15px;
}

.panel-body::before, .panel-body::after {
    display: table;
    content: " ";
}

.panel-body::after {
    clear: both;
}

.list-group {
    padding-left: 0;
    margin-bottom: 20px;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid #ddd;
}

.list-group-item:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.list-group-item:last-child {
    margin-bottom: 0;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

a.list-group-item {
    color: #555;
}

a.list-group-item:hover, a.list-group-item:focus {
    color: #555;
    text-decoration: none;
    background-color: #f5f5f5;
}

.badge {
    display: inline-block;
    min-width: 10px;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 10px;
}

.list-group-item > .badge {
    float: right;
}

/* --- Printing --- */

@media print {
    *, ::before, ::after {
        color: #000 !important;
        text-shadow: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    a, a:visited {
        text-decoration: underline;
    }

    pre, blockquote {
        border: 1px solid #999;
        break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr, img {
        break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p, h2, h3 {
        orphans: 3;
        widows: 3;
    }

    h2, h3 {
        break-after: avoid;
    }

    .navbar {
        display: none;
    }
}
