/* Hueman-inspired skin for the Elegant Pelican theme. */
@font-face {
    font-family: "Titillium Local";
    font-style: normal;
    font-weight: 300;
    src: url("fonts/titillium-light-webfont.woff") format("woff");
}

@font-face {
    font-family: "Titillium Local";
    font-style: normal;
    font-weight: 400;
    src: url("fonts/titillium-regular-webfont.woff") format("woff");
}

@font-face {
    font-family: "Titillium Local";
    font-style: normal;
    font-weight: 600;
    src: url("fonts/titillium-semibold-webfont.woff") format("woff");
}

:root {
    --hu-container: 1240px;
    --wp-bg: #e5e5e5;
    --wp-panel: #ffffff;
    --wp-text: #444444;
    --wp-muted: #999999;
    --wp-line: #dddddd;
    --wp-blue: #16cfc1;
    --wp-blue-dark: #0faea3;
    --wp-green: #16cfc1;
    --wp-ink: #121d30;
    --hu-header: #454e5c;
    --hu-accent-yellow: #efb93f;
    --hu-sidebar: #f0f0f0;
}

html {
    background: var(--wp-bg);
}

body {
    background: var(--wp-bg);
    color: var(--wp-text);
    font-family: "Titillium Local", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.65;
}

a {
    color: var(--wp-blue);
    cursor: pointer;
    font-weight: 500;
}

a:hover,
a:focus {
    color: var(--wp-blue-dark);
    text-decoration: underline;
}

a:focus,
button:focus,
input:focus {
    outline: 3px solid rgba(0, 115, 170, .28);
    outline-offset: 2px;
}

.skip-link {
    background: var(--wp-blue);
    color: #fff;
    left: 12px;
    padding: 10px 14px;
    position: absolute;
    top: -48px;
    z-index: 1000;
}

.skip-link:focus {
    color: #fff;
    top: 12px;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#content {
    min-height: calc(100vh - 140px);
}

.navbar,
.navbar-inner {
    background: var(--wp-ink);
    border: 0;
    box-shadow: none;
}

.navbar .container-fluid {
    max-width: var(--hu-container);
    margin: 0 auto;
}

.navbar .nav.pull-right {
    float: left;
}

.navbar .brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-shadow: none;
}

.navbar .brand .site-name {
    color: #fff;
}

.navbar .brand:hover,
.navbar .brand:focus,
.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus,
.navbar .nav > .active > a {
    color: #fff;
    background: var(--wp-blue);
    text-shadow: none;
}

.navbar .nav > li > a {
    color: #f0f0f1;
    font-weight: 600;
    min-height: 24px;
    padding-bottom: 13px;
    padding-top: 13px;
    text-shadow: none;
}

@media (min-width: 980px) {
    .navbar .brand {
        display: none;
    }
}

.hueman-masthead {
    background: var(--hu-header);
    color: #fff;
}

.hueman-masthead-inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: var(--hu-container);
    min-height: 114px;
    padding: 32px 24px;
}

.hueman-site-title {
    color: #fff;
    display: inline-block;
    font-size: 42px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

.hueman-site-title:hover {
    color: #fff;
    text-decoration: none;
}

.hueman-site-description {
    color: rgba(255, 255, 255, .58);
    display: inline-block;
    font-size: 15px;
    font-style: italic;
    margin-left: 20px;
    vertical-align: middle;
}

.hueman-topicbar {
    background: var(--hu-header);
}

.hueman-topicbar-inner {
    background: rgba(18, 29, 48, .16);
    border: 1px solid rgba(18, 29, 48, .25);
    border-bottom: 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: var(--hu-container);
}

.hueman-topicbar a {
    color: rgba(255, 255, 255, .82);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    min-height: 48px;
    padding: 0 20px;
    align-items: center;
}

.hueman-topicbar a:hover,
.hueman-topicbar a:focus {
    background: rgba(0, 0, 0, .16);
    color: #fff;
    text-decoration: none;
}

.navbar-search .search-query,
.form-search .search-query {
    border: 1px solid var(--wp-line);
    border-radius: 3px;
    box-shadow: none;
    min-height: 30px;
}

.navbar-search .search-query {
    background: #fff;
    color: var(--wp-text);
}

.btn,
a.btn,
button,
input[type="submit"] {
    background: var(--wp-blue);
    border: 1px solid var(--wp-blue-dark);
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    text-shadow: none;
}

.btn:hover,
a.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--wp-blue-dark);
    color: #fff;
}

.wp-home-hero {
    border-bottom: 1px solid var(--wp-line);
    margin: 0 auto 32px;
    max-width: 1180px;
    padding: 52px 0 34px;
}

.wp-kicker {
    color: var(--wp-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.wp-home-hero h1 {
    font-size: 42px;
    line-height: 1.18;
    margin: 0;
    max-width: 880px;
}

.wp-home-hero h1 a {
    color: var(--wp-text);
}

.wp-home-hero h1 a:hover {
    color: var(--wp-blue);
    text-decoration: none;
}

.wp-home-description {
    color: var(--wp-muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 16px 0 0;
    max-width: 720px;
}

.hueman-magazine-label {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    color: #aaa;
    font-size: 14px;
    margin: 0 auto;
    max-width: var(--hu-container);
    padding: 18px 24px;
    text-transform: uppercase;
}

.hueman-magazine-label span {
    color: #555;
    font-weight: 700;
    margin-right: 4px;
}

.hueman-magazine-label strong {
    color: #aaa;
}

.wp-home-layout {
    align-items: start;
    display: grid;
    gap: 0;
    grid-template-columns: 300px minmax(0, 1fr) 260px;
    margin: 0 auto;
    max-width: var(--hu-container);
}

.hueman-left-rail,
.wp-sidebar {
    background: var(--hu-sidebar);
    min-height: 100%;
}

.hueman-left-rail {
    border-right: 1px solid #ddd;
}

.wp-sidebar {
    border-left: 1px solid #ddd;
}

.wp-post-list {
    background: #fff;
    box-sizing: border-box;
    display: grid;
    gap: 0 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 24px;
}

.hueman-follow {
    background: var(--wp-blue);
    color: #fff;
    padding: 18px 24px;
}

.hueman-follow h2,
.hueman-recommended h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.hueman-follow-links {
    display: flex;
    gap: 10px;
}

.hueman-follow-links a {
    align-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.hueman-follow-links a:hover {
    background: rgba(0, 0, 0, .18);
    color: #fff;
    text-decoration: none;
}

.hueman-recommended {
    padding: 24px;
}

.hueman-recommended h2 {
    border-bottom: 2px solid var(--wp-blue);
    color: #555;
    padding-bottom: 12px;
}

.hueman-recommended article {
    border-bottom: 1px solid #ddd;
    display: grid;
    gap: 10px;
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 12px 0;
}

.hueman-recommended-image,
.list-article-thumb,
.archive-article-thumb {
    background: #d8dde3;
    display: block;
    overflow: hidden;
}

.hueman-recommended-image {
    aspect-ratio: 4 / 3;
}

.hueman-recommended-img,
.list-article-thumb-img,
.archive-article-thumb-img,
.wp-post-thumb-img,
.article-hero-img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hueman-recommended a {
    color: #444;
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.hueman-recommended time {
    color: #aaa;
    display: block;
    font-size: 12px;
    margin-top: 4px;
    text-transform: uppercase;
}

.wp-post-list {
    min-width: 0;
}

.wp-section-heading {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.wp-section-heading h2,
.wp-widget h2 {
    color: var(--wp-text);
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.wp-archive-link,
.wp-read-more {
    color: var(--wp-blue);
    font-size: 14px;
    font-weight: 700;
}

.wp-post-card,
.wp-widget {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.wp-post-card {
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    padding: 24px 0;
}

.wp-post-card:nth-of-type(-n+3) {
    padding-top: 10px;
}

.wp-post-thumb {
    aspect-ratio: 16 / 9;
    background: #d8dde3;
    display: block;
    margin-bottom: 14px;
    overflow: hidden;
}

.wp-post-thumb:hover,
.wp-post-thumb:focus,
.hueman-recommended-image:hover,
.hueman-recommended-image:focus,
.list-article-thumb:hover,
.list-article-thumb:focus,
.archive-article-thumb:hover,
.archive-article-thumb:focus {
    filter: saturate(1.08);
    text-decoration: none;
}

.wp-post-card h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.wp-post-card h3 a {
    color: var(--wp-text);
}

.wp-post-card h3 a:hover {
    color: var(--wp-blue);
    text-decoration: none;
}

.wp-post-meta {
    align-items: center;
    color: var(--wp-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    gap: 8px;
    margin-top: 10px;
}

.wp-post-excerpt {
    border-top: 1px solid var(--wp-line);
    margin-top: 18px;
    padding-top: 18px;
}

.wp-post-excerpt p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.wp-read-more {
    display: inline-block;
    margin-top: 8px;
}

.wp-sidebar {
    display: grid;
    gap: 0;
}

.wp-widget {
    padding: 24px;
}

.wp-widget h2 {
    border-bottom: 1px solid #ddd;
    color: #555;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    padding-bottom: 12px;
    text-transform: uppercase;
}

.wp-search-widget form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.wp-search-widget input {
    border: 1px solid var(--wp-line);
    border-radius: 3px;
    box-shadow: none;
    box-sizing: border-box;
    font-size: 16px;
    min-height: 44px;
    padding: 9px 10px;
    width: 100%;
}

.wp-search-widget button {
    background: var(--hu-accent-yellow);
    border-color: #dca82f;
    min-height: 44px;
    width: 100%;
}

.wp-widget-list,
.wp-project-list {
    list-style: none;
    margin: 14px 0 0;
}

.wp-widget-list li {
    align-items: center;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
}

.wp-widget-list li:last-child,
.wp-project-list li:last-child {
    border-bottom: 0;
}

.wp-widget-list span,
.wp-tag-cloud span {
    background: var(--wp-muted);
    border-radius: 999px;
    color: var(--wp-text);
    font-size: 12px;
    font-weight: 700;
    min-width: 18px;
    padding: 1px 6px;
    text-align: center;
}

.wp-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.wp-tag-cloud a {
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: var(--wp-text);
    display: inline-flex;
    gap: 6px;
    min-height: 34px;
    padding: 4px 9px;
}

.wp-tag-cloud a:hover {
    background: var(--wp-blue);
    border-color: var(--wp-blue);
    color: #fff;
    text-decoration: none;
}

.wp-project-list li {
    border-bottom: 1px solid var(--wp-line);
    padding: 12px 0;
}

.wp-project-list p {
    color: var(--wp-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 6px 0 0;
}

.article-content,
.recent-posts,
.blog-archives,
.accordion,
#lunr-search-result,
#article-sidebar,
.table-of-content nav {
    background: var(--wp-panel);
    border: 1px solid var(--wp-line);
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.container-fluid > .row-fluid {
    display: flex;
    justify-content: center;
}

.container-fluid > .row-fluid > .span1 {
    display: none;
}

.container-fluid > .row-fluid > .span10 {
    box-sizing: border-box;
    margin-left: 0;
    max-width: var(--hu-container);
    padding: 28px 0;
    width: 100%;
}

.page-header {
    border-bottom: 1px solid var(--wp-line);
    margin: 0 0 24px;
    padding: 24px 0 16px;
}

.page-header h1,
.page-header h1 a,
header h1,
header h1 a {
    color: var(--wp-text);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}

.page-header h1 a:hover {
    color: var(--wp-blue);
    text-decoration: none;
}

.subtitle,
small.subtitle {
    color: var(--wp-muted);
    display: block;
    font-size: 60%;
    line-height: 1.5;
}

.article-content {
    box-sizing: border-box;
    padding: 30px;
}

.article-hero-image {
    aspect-ratio: 16 / 9;
    background: #d8dde3;
    border: 1px solid var(--wp-line);
    box-sizing: border-box;
    margin: 0 0 26px;
    overflow: hidden;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--wp-text);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin-top: 1.5em;
}

.article-content p,
.article-content li {
    font-size: 17px;
}

.article-content img,
.gallery img {
    border-radius: 3px;
    height: auto;
    max-width: 100%;
}

.article-content blockquote {
    background: #f0f6fc;
    border-left: 4px solid var(--wp-blue);
    color: var(--wp-text);
    margin: 24px 0;
    padding: 14px 18px;
}

.article-content table {
    border-collapse: collapse;
    display: block;
    margin: 24px 0;
    overflow-x: auto;
    width: 100%;
}

.article-content th,
.article-content td {
    border: 1px solid var(--wp-line);
    padding: 10px 12px;
}

.article-content th {
    background: #f0f0f1;
}

pre,
code,
.highlight {
    border-radius: 3px;
}

pre,
.highlight pre {
    border: 1px solid #263238;
    overflow-x: auto;
    padding: 16px;
}

.recent-posts {
    padding: 12px 24px;
}

.recent-posts-article {
    border-bottom: 1px solid var(--wp-line);
    padding: 18px 0;
}

.recent-posts-article:last-child {
    border-bottom: 0;
}

.recent-posts-article > a {
    color: var(--wp-text);
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
}

.recent-posts-posted,
.blog-archives time,
.list-articles-under-tag-category time,
#article-sidebar,
.table-of-content {
    color: var(--wp-muted);
    font-size: 14px;
}

#allposts {
    background: var(--wp-green);
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 13px;
    margin-left: 8px;
    padding: 3px 8px;
    vertical-align: middle;
}

#article-sidebar,
.table-of-content nav {
    box-sizing: border-box;
    padding: 18px;
}

#article-sidebar h4,
.table-of-content h4 {
    color: var(--wp-text);
    font-size: 14px;
    margin: 18px 0 8px;
    text-transform: uppercase;
}

.list-of-tags,
.tags-in-article {
    margin-left: 0;
}

.list-of-tags li,
.tags-in-article li {
    display: inline-block;
    margin: 0 6px 8px 0;
}

.list-of-tags a,
.tags-in-article a,
.category-link {
    background: #f0f0f1;
    border: 1px solid var(--wp-line);
    border-radius: 3px;
    color: var(--wp-text);
    display: inline-block;
    padding: 5px 9px;
}

.list-of-tags a:hover,
.tags-in-article a:hover,
.category-link:hover {
    background: var(--wp-blue);
    border-color: var(--wp-blue);
    color: #fff;
    text-decoration: none;
}

.superscript {
    background: var(--wp-blue);
    border-radius: 10px;
    color: #fff;
    font-size: 11px;
    margin-left: 5px;
    padding: 1px 6px;
    vertical-align: middle;
}

.accordion-group {
    border-color: var(--wp-line);
    border-radius: 3px;
    margin-bottom: 8px;
}

.accordion-heading {
    background: #f0f0f1;
}

.accordion-toggle {
    color: var(--wp-text);
    font-weight: 700;
}

.accordion-inner,
.blog-archives,
#lunr-search-result {
    padding: 18px 24px;
}

.blog-archives h2 {
    border-bottom: 1px solid var(--wp-line);
    color: var(--wp-text);
    font-size: 26px;
    margin-top: 28px;
}

.blog-archive-entry,
.list-articles-under-tag-category li {
    border-bottom: 1px solid var(--wp-line);
    display: grid;
    gap: 12px;
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 10px 0;
}

.archive-article-thumb,
.list-article-thumb {
    aspect-ratio: 16 / 10;
}

.archive-article-body,
.list-article-body {
    min-width: 0;
}

.archive-article-body > a,
.list-article-body > a {
    color: var(--wp-text);
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.archive-article-body time,
.list-article-body time {
    display: block;
    margin-top: 4px;
}

footer {
    background: var(--wp-ink);
    color: #c3c4c7;
    margin-top: 40px;
    padding: 28px 16px;
    text-align: center;
}

footer a {
    color: #72aee6;
}

@media (max-width: 979px) {
    .navbar .brand {
        font-size: 19px;
    }

    .navbar .nav > li > a {
        padding-left: 14px;
    }

    .wp-home-hero {
        padding: 36px 0 24px;
    }

    .wp-home-hero h1 {
        font-size: 34px;
    }

    .wp-home-layout {
        grid-template-columns: 1fr;
    }

    .wp-post-list {
        grid-template-columns: 1fr;
        order: 1;
    }

    .hueman-left-rail {
        border-right: 0;
        order: 2;
    }

    .wp-sidebar {
        border-left: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        order: 3;
    }

    .article-content,
    .recent-posts,
    #article-sidebar,
    .table-of-content nav {
        padding: 20px;
    }

    .page-header h1,
    .page-header h1 a,
    header h1,
    header h1 a {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    body {
        padding-left: 0;
        padding-right: 0;
    }

    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .wp-home-hero {
        margin-bottom: 22px;
        padding-top: 32px;
    }

    .wp-home-hero h1 {
        font-size: 29px;
    }

    .wp-home-description {
        font-size: 16px;
    }

    .hueman-masthead-inner {
        min-height: auto;
        padding: 28px 18px;
    }

    .hueman-site-title {
        display: block;
        font-size: 34px;
    }

    .hueman-site-description {
        display: block;
        margin-left: 0;
        margin-top: 8px;
    }

    .hueman-topicbar-inner {
        border-left: 0;
        border-right: 0;
    }

    .hueman-topicbar a {
        min-height: 42px;
        padding: 0 14px;
    }

    .hueman-magazine-label,
    .wp-post-list {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wp-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .wp-post-card,
    .wp-widget {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
        margin-left: -12px;
        margin-right: -12px;
        padding: 22px 20px;
    }

    .wp-post-card h3 {
        font-size: 24px;
    }

    .hueman-recommended article,
    .blog-archive-entry,
    .list-articles-under-tag-category li {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .wp-sidebar {
        grid-template-columns: 1fr;
    }

    .hueman-left-rail,
    .wp-sidebar {
        margin-left: -12px;
        margin-right: -12px;
    }

    .article-content,
    .recent-posts,
    .blog-archives,
    .accordion,
    #lunr-search-result,
    #article-sidebar,
    .table-of-content nav {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .page-header {
        padding-top: 18px;
    }

    .article-content p,
    .article-content li {
        font-size: 16px;
    }
}
