html,
body {
    height: 100%;
}

body {
    background-color: #fff;
    font-family: Nunito, Arial, Helvetica, sans-serif;
    padding-top: 52px;
}

a {
    color: #0069a3;
}

a:hover,
a:focus {
    color: #004b75;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -62px;
    padding: 0 0 62px;
}

.wrap > .container {
    padding: 20px 15px;
}

#mainmenu {
    background-color: #025f92;
    background-image: linear-gradient(to bottom, #045987, #0069a3);
    border: 1px solid transparent;
    box-shadow: inset 0 0 5px #fff;
    padding-top: 0;
    padding-bottom: 0;
}

#mainmenu .navbar-brand {
    color: #f5f4ff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    font-style: italic;
    padding-top: 12px;
    padding-bottom: 12px;
}

#mainmenu .navbar-nav .nav-link {
    color: #f5f4ff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
    padding: 12px 20px;
}

#mainmenu .navbar-nav .nav-link:hover,
#mainmenu .navbar-nav .nav-link:focus,
#mainmenu .navbar-nav .nav-link.active {
    color: #fff;
    background-color: #0069a3;
    box-shadow: inset 0 0 5px #fff;
}

#mainmenu .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

#header {
    height: 150px;
    width: 100%;
    border-bottom: 1px solid #1f6fb2;
    margin-bottom: 20px;
}

#logo {
    display: block;
    height: 150px;
    width: 100%;
    max-width: 950px;
    background: url('/css/img/logo.png') no-repeat left bottom;
    background-size: contain;
}

.breadcrumb {
    font-size: 0.9rem;
    background-color: transparent;
    padding-left: 0;
}

/* Sidebar */

.portlet {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 4px;
    overflow: hidden;
}

.portlet-decoration {
    padding: 10px 8px;
    background-image: linear-gradient(to bottom, #007aaf, #005394);
    box-shadow: inset 0 0 5px #fff;
}

.portlet-title {
    font-size: 14pt;
    font-weight: bold;
    color: #f5f4ff;
}

.portlet-content {
    padding: 10px;
}

.list-group-root {
    border-radius: 0;
    margin-bottom: 0;
}

.list-group-root > .list-group-item {
    border-radius: 0;
    border-width: 1px 0 0 0;
}

.list-group-root > .list-group-item:first-child {
    border-top-width: 0;
}

.list-group-nested .list-group-item {
    border-radius: 0;
    border-width: 1px 0 0 0;
    padding-left: 30px;
    font-size: 0.92rem;
}

.list-group-nested .list-group-nested .list-group-item {
    padding-left: 45px;
}

#archive_blog .list-group-item {
    border-left: 0;
    border-right: 0;
}

#archive_blog .list-group-item:first-child {
    border-top: 0;
}

#tags_cloud {
    padding: 12px;
    line-height: 2.1;
}

#tags_cloud .tag a {
    text-decoration: none;
}

/* Post lists */

.items-list .item,
.item {
    border-bottom: 1px solid #ededed;
    padding: 24px 0 21px;
    position: relative;
}

.item .title {
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.item .title a {
    color: #464646;
    text-decoration: none;
}

.item .title a:hover {
    color: #0069a3;
}

.item .title a:visited {
    color: #999;
}

.item-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.75rem;
}

.item-excerpt {
    margin-bottom: 1rem;
}

.item-taxonomy .badge,
.post .item-taxonomy .badge {
    font-size: 0.85rem;
    font-weight: normal;
    text-decoration: none;
    margin: 0 4px 4px 0;
    display: inline-block;
}

/* Post body */

.post-body {
    line-height: 1.65;
    overflow-wrap: break-word;
}

.post-body img {
    max-width: 100%;
    height: auto;
}

.post-body iframe {
    max-width: 100%;
}

.post-body table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.post-body th,
.post-body td {
    border: 1px solid #dee2e6;
    padding: 0.4rem 0.6rem;
    vertical-align: top;
}

.post-body blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    color: #555;
    margin: 1rem 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.post-body hr {
    margin: 1.5rem 0;
}

.post-body code {
    font-family: SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.875em;
    color: #c7254e;
    background-color: #f7f7f9;
    padding: 0.12em 0.35em;
    border-radius: 4px;
}

.post-body .highlight {
    margin-bottom: 1.25rem;
}

.post-body pre {
    margin-bottom: 0;
}

.post-body pre[data-lang],
.post-body .highlight pre {
    background-color: #1b2426;
    color: #e0e0e0;
    padding: 1rem 1.1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    tab-size: 4;
}

.post-body .highlight pre {
    margin-bottom: 0;
}

.post-body pre code {
    display: block;
    color: inherit;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: pre;
    font-size: inherit;
}

/* Code highlight tokens (tempest/highlight) */

.hl-keyword {
    color: #f97583;
}

.hl-property {
    color: #7ee787;
}

.hl-attribute {
    color: #ffab70;
    font-style: italic;
}

.hl-type {
    color: #ffa657;
}

.hl-generic {
    color: #d2a8ff;
}

.hl-value {
    color: #a5d6ff;
}

.hl-literal {
    color: #a5d6ff;
}

.hl-number {
    color: #79c0ff;
}

.hl-variable {
    color: #ffab70;
}

.hl-comment {
    color: #8b949e;
}

.hl-addition {
    display: inline-block;
    min-width: 100%;
    background-color: rgba(0, 255, 0, 0.13);
}

.hl-deletion {
    display: inline-block;
    min-width: 100%;
    background-color: rgba(255, 0, 0, 0.07);
}

.hl-gutter {
    display: inline-block;
    font-size: 0.9em;
    color: #555;
    padding: 0 1ch;
    margin-right: 1ch;
    user-select: none;
}

/* Legacy markup kept in imported post bodies */

.fa {
    font-family: "bootstrap-icons";
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

.fa-calendar::before {
    content: "\f214";
}

.fa-user::before {
    content: "\f4e1";
}

.badge-info {
    background-color: #0dcaf0;
    color: #000;
}

.badge-success {
    background-color: #198754;
    color: #fff;
}

.badge-lg {
    font-size: 1em;
    padding: 0.35em 0.6em;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.highlight {
    margin-bottom: 1rem;
}

/* Footer */

#footer {
    min-height: 62px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding: 20px 0;
    font-size: 0.92rem;
    color: #555;
}

@media (max-width: 767.98px) {
    #header,
    #logo {
        height: 100px;
    }

    #header {
        margin-bottom: 10px;
    }
}
