/* ===========================================================
   1. Reset & HTML5 Element Display
   =========================================================== */

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

/* Reset hidden elements and basic element defaults */
[hidden] {
    display: none;
}

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font: normal 112.5%/1.65 serif;
    background-color: #ffffff;
    font-size: 90%;
    color: #333332;
}

body {
    margin: 0;
    word-wrap: normal;
}

/* ===========================================================
   2. Media Elements & SVG
   =========================================================== */

audio,
canvas,
video {
    display: inline-block;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

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

/* ===========================================================
   3. Basic Typography & Elements
   =========================================================== */

/* Links & Focus States */
a:focus {
    outline: thin dotted;
    color: #343434;
}

a:active,
a:hover {
    outline: 0;
    color: #1a1a1a;
}

a,
a:visited {
    text-decoration: none;
    color: #343434;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #333332;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    padding-left: 0;
    line-height: 1;
    text-rendering: optimizeLegibility;
    text-align: left;
}

h1 {
    font-size: 60px;
    font-size: 3.3333333333333335rem;
    margin-bottom: 0.4em;
    margin-top: -0.4em;
}

h2 {
    font-size: 48px;
    font-size: 2.6666666666666665rem;
    margin-bottom: 0.61875rem;
}

h3 {
    font-size: 36px;
    font-size: 2rem;
    margin-bottom: 0.825rem;
}

h4 {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
}

h5 {
    font-size: 21px;
    font-size: 1.1666666666666667rem;
    margin-bottom: 1.4142857142857141rem;
}

h6 {
    font-size: 18px;
    font-size: 1rem;
    margin-bottom: 1.65rem;
    font-weight: 400;
}

/* Paragraphs & Inline Text */
p {
    /* margin: 0 0 1.5em; */
    margin: 0 0 1.5em 0em;
    font-family: 'Merriweather', serif;
}

p+p {
    text-indent: 0;
    margin-top: 0;
}

abbr[title] {
    border-bottom: 1px dotted;
}

abbr {
    font-variant: small-caps;
    font-weight: 400;
    text-transform: lowercase;
    color: #333332;
}

acronym,
blockquote,
code,
dir,
kbd,
listing,
plaintext,
q,
samp,
tt,
var,
xmp {
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    -o-hyphens: none;
    hyphens: none;
}

q {
    quotes: "\201C" "\201D" "\2018" "\2019";
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sup {
    top: -0.5em;
}

sub {
    bottom: -0.25em;
}

dfn {
    font-style: italic;
}

mark {
    background: #ff0;
    color: #000;
}

/* Code Elements */
code,
kbd,
pre,
samp {
    font-family: monospace, serif;
    font-size: 1em;
}

pre {
    white-space: pre-wrap;
}

pre code {
    word-wrap: normal;
    white-space: -moz-pre-wrap;
    white-space: pre-wrap;
}

code {
    white-space: pre;
    font-family: monospace;
}

/* Horizontal Rules */
hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    display: block;
    margin: 1em 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #fff;
}

/* Figures */
figure {
    margin: 0;
}

figcaption {
    margin-top: 0.75em;
    line-height: 1.25;
    font-size: 18px;
    font-size: 1rem;
    margin-bottom: 1.65rem;
    font-family: 'PT Sans Narrow', sans-serif;
    counter-increment: captions;
}

figcaption:before {
    font-weight: 700;
    text-transform: uppercase;
    content: "Figure " counter(captions) ": ";
}

/* ===========================================================
   4. Form Elements & Interactive Controls
   =========================================================== */

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

button,
input {
    line-height: normal;
}

button,
select {
    text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

input[type="search"] {
    -webkit-appearance: textfield;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;
    padding: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
    resize: vertical;
    height: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 1.5em;
}

/* Form Field Styling */
form {
    margin: 0 0 5px 0;
}

form fieldset {
    margin-bottom: 5px;
    padding: 0;
    border-width: 0;
}

form legend {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    /* *margin-left: -7px; */
    padding: 0;
    color: #333332;
    border: 0;
    border-bottom: 1px solid #cccccc;
    white-space: normal;
}

form p {
    margin-bottom: 2.5px;
}

form ul {
    list-style-type: none;
    margin: 0 0 5px 0;
    padding: 0;
}

form br {
    display: none;
}

label,
input,
button,
select,
textarea {
    vertical-align: baseline;
    /* *vertical-align: middle; */
}

input,
button,
select,
textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

label {
    display: block;
    margin-bottom: 1.25px;
    font-weight: bold;
    color: #333332;
    cursor: pointer;
}

label input,
label textarea,
label select {
    display: block;
}

input,
textarea,
select {
    display: inline-block;
    width: 100%;
    padding: 4px;
    margin-bottom: 1.25px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #333332;
}

input:hover,
textarea:hover,
select:hover {
    border-color: #808080;
}

.input-mini {
    width: 60px;
}

.input-small {
    width: 90px;
}

input[type="image"],
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 3px 0;
    /* *margin-top: 0; */
    line-height: normal;
    cursor: pointer;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    border: 0 \9;
}

input[type="image"] {
    border: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

input[type="file"] {
    width: auto;
    padding: initial;
    line-height: initial;
    border: initial;
    background-color: transparent;
    background-color: initial;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

input[type="button"],
input[type="reset"],
input[type="submit"] {
    width: auto;
    height: auto;
    cursor: pointer;
    /* *overflow: visible; */
}

select {
    width: auto;
    background-color: #ffffff;
}

select[multiple],
select[size] {
    height: auto;
}

input[type="hidden"] {
    display: none;
}

/* Radio and Checkbox Inline Styles */
.radio,
.checkbox {
    padding-left: 18px;
    font-weight: normal;
}

.radio input[type="radio"],
.checkbox input[type="checkbox"] {
    float: left;
    margin-left: -18px;
}

.radio.inline,
.checkbox.inline {
    display: inline-block;
    padding-top: 5px;
    margin-bottom: 0;
    vertical-align: middle;
}

.radio.inline+.radio.inline,
.checkbox.inline+.checkbox.inline {
    margin-left: 10px;
}

/* Disabled / Readonly States */
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
    -webkit-opacity: 0.5;
    -moz-opacity: 0.5;
    opacity: 0.5;
    cursor: not-allowed;
}

input:focus,
textarea:focus {
    border-color: #000000;
    outline: 0;
    outline: thin dotted \9;
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
select:focus {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/* Help Text */
.help-block,
.help-inline {
    color: #808080;
}

.help-block {
    display: block;
    margin-bottom: 1em;
    line-height: 1em;
}

.help-inline {
    display: inline-block;
    vertical-align: middle;
    padding-left: 5px;
}

/* Inline Forms */
.form-inline input,
.form-inline textarea,
.form-inline select {
    display: inline-block;
    margin-bottom: 0;
}

.form-inline label {
    display: inline-block;
}

.form-inline .radio,
.form-inline .checkbox,
.form-inline .radio {
    padding-left: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
    float: left;
    margin-left: 0;
    margin-right: 3px;
}

/* Search Form */
.form-search input,
.form-search textarea,
.form-search select {
    display: inline-block;
    margin-bottom: 0;
}

.form-search .search-query {
    padding-left: 14px;
    padding-right: 14px;
    margin-bottom: 0;
    -webkit-border-radius: 14px;
    -moz-border-radius: 14px;
    border-radius: 14px;
}

.form-search label {
    display: inline-block;
}

.form-search .radio,
.form-search .checkbox,
.form-inline .radio {
    padding-left: 0;
    margin-bottom: 0;
    vertical-align: middle;
}

.form-search .radio input[type="radio"],
.form-search .checkbox input[type="checkbox"] {
    float: left;
    margin-left: 0;
    margin-right: 3px;
}

/* ===========================================================
   5. Utility Classes
   =========================================================== */

.all-caps {
    text-transform: uppercase;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

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

.clearfix:after {
    clear: both;
}

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

.unstyled-list li {
    list-style-type: none;
}

.breakword {
    word-wrap: break-word;
}

.normal-wrap {
    word-wrap: normal;
}

.inherit-wrap {
    word-wrap: auto;
}

.drop-cap:first-letter {
    float: left;
    margin: inherit;
    padding: inherit;
    font-size: 4em;
    font-family: inherit;
    line-height: 1;
    text-indent: 0;
    background: transparent;
    color: inherit;
}

/* ===========================================================
   6. Font Size Scale Classes
   =========================================================== */

.tera {
    font-size: 117px;
    font-size: 6.5rem;
    margin-bottom: 0.25384615384615383rem;
}

.giga {
    font-size: 90px;
    font-size: 5rem;
    margin-bottom: 0.33rem;
}

.mega {
    font-size: 72px;
    font-size: 4rem;
    margin-bottom: 0.4125rem;
}

.alpha {
    font-size: 60px;
    font-size: 3.3333333333333335rem;
    margin-bottom: 0.495rem;
}

.beta {
    font-size: 48px;
    font-size: 2.6666666666666665rem;
    margin-bottom: 0.61875rem;
}

.gamma {
    font-size: 36px;
    font-size: 2rem;
    margin-bottom: 0.825rem;
}

.delta {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
}

.epsilon {
    font-size: 21px;
    font-size: 1.1666666666666667rem;
    margin-bottom: 1.4142857142857141rem;
}

.zeta {
    font-size: 18px;
    font-size: 1rem;
    margin-bottom: 1.65rem;
}

/* ===========================================================
   7. Additional Typography
   =========================================================== */

.lining dt,
.lining dd {
    display: inline;
    margin: 0;
}

.lining dt+dt:before,
.lining dd+dt:before {
    content: "\A";
    white-space: pre;
}

.lining dd+dd:before {
    content: ", ";
}

.lining dd:before {
    content: ": ";
    margin-left: -0.2rem;
}

.dictionary-style dt {
    display: inline;
    counter-reset: definitions;
}

.dictionary-style dt+dt:before {
    content: ", ";
    margin-left: -0.2rem;
}

.dictionary-style dd {
    display: block;
    counter-increment: definitions;
}

.dictionary-style dd:before {
    content: counter(definitions, decimal) ". ";
}

/* ===========================================================
   8. Tabs, Quotes & Miscellaneous
   =========================================================== */

.stats-tabs {
    padding: 0;
}

.stats-tabs li {
    display: inline-block;
    margin: 0 0.625rem 0 0;
    padding: 0 0.625rem 0 0;
    border-right: 0.125rem solid #cccccc;
}

.stats-tabs li:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.stats-tabs li a {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: bold;
}

.stats-tabs li a b {
    display: block;
    margin: 0.125rem 0 0 0;
    font-size: 0.875rem;
    font-weight: normal;
}

.cite {
    display: block;
    font-size: 0.875em;
    text-align: right;
}

.pull-quote {
    position: relative;
    padding: 1em;
}

.pull-quote:before,
.pull-quote:after {
    height: 1em;
    opacity: 0.15;
    position: absolute;
    font-size: 4em;
}

.pull-quote:before {
    content: '“';
    top: 0em;
    left: 0em;
}

.pull-quote:after {
    content: '”';
    bottom: 0em;
    right: 0em;
}

/* ===========================================================
   9. Link & List Decorations
   =========================================================== */

ul li {
    list-style-type: none !important;
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.8em;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #151515;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
    top: 0.1em;
}

ol li {
    list-style-type: upper-roman;
}

p>a,
li>a,
em>a,
a>em,
footer a {
    text-decoration: none;
    border-bottom: 1px dotted #b3b3b1;
}

p>a:hover,
li>a:hover,
em>a:hover,
footer a:hover {
    text-decoration: none;
    border-bottom: 1px solid #b3b3b1;
}

/* ===========================================================
   10. Syntax Highlighting
   =========================================================== */

/* General Syntax Highlighting */
.tt,
code,
kbd,
samp,
pre {
    font-family: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
}

p code {
    font-size: 80%;
    white-space: nowrap;
    margin: 0 2px;
    padding: 0 5px;
    border: 1px solid #e6e6e6;
    background-color: #f2f2f2;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.highlight {
    background-color: #efefef;
    font-family: Monaco, "Courier New", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", monospace;
    font-size: 80%;
    color: #333332;
    margin-bottom: 1.5em;
}

.highlight pre {
    margin: 0;
    padding: 1em;
}

.hll {
    background-color: #ffffcc;
}

/* Specific Syntax Classes */
.c {
    color: #999988;
    font-style: italic;
}

.err {
    color: #a61717;
    background-color: #e3d2d2;
}

.k,
.o,
.kc,
.kd,
.kn,
.kp,
.kr,
.gs {
    color: #000000;
    font-weight: bold;
}

.cm {
    color: #999988;
    font-style: italic;
}

.cp {
    color: #999999;
    font-weight: bold;
    font-style: italic;
}

.c1 {
    color: #999988;
    font-style: italic;
}

.cs {
    color: #999999;
    font-weight: bold;
    font-style: italic;
}

.gd {
    color: #000000;
    background-color: #ffdddd;
}

.ge {
    color: #000000;
    font-style: italic;
}

.gr {
    color: #aa0000;
}

.gh {
    color: #999999;
}

.gi {
    color: #000000;
    background-color: #ddffdd;
}

.go {
    color: #888888;
}

.gp {
    color: #555555;
}

.gu {
    color: #aaaaaa;
}

.gt {
    color: #aa0000;
}

.kt {
    color: #445588;
    font-weight: bold;
}

.m,
.mf,
.mh,
.mi,
.mo,
.il {
    color: #009999;
}

.s,
.sb,
.sc,
.sd,
.s2,
.se,
.sh,
.si,
.sx,
.s1 {
    color: #d01040;
}

.na {
    color: #008080;
}

.nb {
    color: #0086b3;
}

.nc {
    color: #445588;
    font-weight: bold;
}

.no {
    color: #008080;
}

.nd {
    color: #3c5d5d;
    font-weight: bold;
}

.ni {
    color: #800080;
}

.ne,
.nf,
.nl,
.nn {
    color: #990000;
    font-weight: bold;
}

.nt {
    color: #000080;
}

.nv {
    color: #008080;
}

.ow {
    color: #000000;
    font-weight: bold;
}

.w {
    color: #bbbbbb;
}

.sr {
    color: #009926;
}

.ss {
    color: #990073;
}

.bp {
    color: #999999;
}

.vc,
.vg,
.vi {
    color: #008080;
}

/* ===========================================================
   11. Visibility Helpers
   =========================================================== */

.hidden {
    display: none;
    visibility: hidden;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    position: static;
    clip: auto;
    height: auto;
    width: auto;
    margin: 0;
    overflow: visible;
}

.visible-phone {
    display: none !important;
}

.visible-tablet {
    display: none !important;
}

.hidden-desktop {
    display: none !important;
}

/* ===========================================================
   12. Responsive Visibility (Updated 28 Aug 2023 by Hanlin)
   =========================================================== */

@media (max-width: 1100px) {
    .visible-phone {
        display: inherit !important;
    }

    .hidden-phone {
        display: none !important;
    }

    .hidden-desktop {
        display: inherit !important;
    }

    .visible-desktop {
        display: none !important;
    }
}

@media (min-width: 1100px) and (max-width: 1300px) {
    .visible-tablet {
        display: inherit !important;
    }

    .hidden-tablet {
        display: none !important;
    }

    .hidden-desktop {
        display: inherit !important;
    }

    .visible-desktop {
        display: none !important;
    }
}

/* ===========================================================
   13. Images & Figures
   =========================================================== */

article img {
    max-width: 100%;
    height: auto;
    border-width: 0;
    vertical-align: middle;
    -ms-interpolation-mode: bicubic;
}

.half {
    margin: 0 auto;
    width: 100%;
}

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

.half:after {
    clear: both;
}

.half img {
    display: inline;
    float: left;
    width: 50%;
}

.half figcaption {
    display: inline;
    float: left;
    width: 100%;
}

.third {
    margin: 0 auto;
    width: 100%;
}

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

.third:after {
    clear: both;
}

.third img {
    display: inline;
    float: left;
    width: 33.333333333333336%;
}

.third figcaption {
    display: inline;
    float: left;
    width: 100%;
}

img.floatpic {
    float: right;
    margin-left: 1em;
    width: 33%;
}

/* ===========================================================
   14. Buttons & Call-to-Action
   =========================================================== */

.btn {
    display: inline-block;
    /* *display: inline; *zoom: 1; */
    padding: 12px 24px;
    margin-bottom: 2em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    border: 4px double #333332;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    cursor: pointer;
    /* *margin-left: .3em; */
    -webkit-transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -ms-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    transition: 0.4s linear;
}

.btn:visited {
    border: 4px double #4e4e4e;
}

.btn:hover {
    border: 4px double #1a1a1a;
}

.btn-inverse {
    border: 4px double #ffffff;
    color: #ffffff;
    background-color: #000000;
}

.btn-inverse:visited {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-inverse:hover {
    color: #ffffff;
    border-color: #ffffff;
}

.btn-small {
    font-size: 60%;
    padding: 6px 12px;
}

/* ===========================================================
   15. Containers & Well
   =========================================================== */

.well {
    min-height: 20px;
    padding: 19px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* ===========================================================
   16. Icon Fonts (Icomoon)
   =========================================================== */

@font-face {
    font-family: 'icomoon';
    src: url('../fonts/icomoon.eot');
    src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'),
        url('../fonts/icomoon.woff') format('woff'),
        url('../fonts/icomoon.ttf') format('truetype'),
        url('../fonts/icomoon.svg#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
}

[data-icon]:before {
    font-family: 'icomoon';
    content: attr(data-icon);
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.icon-instagram,
.icon-facebook,
.icon-twitter,
.icon-google-plus,
.icon-feed,
.icon-feed-2,
.icon-linkedin,
.icon-tumblr,
.icon-lastfm,
.icon-mail,
.icon-github {
    font-family: 'icomoon';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.icon-instagram:before {
    content: "\e004";
}

.icon-facebook:before {
    content: "\e003";
}

.icon-twitter:before {
    content: "\e007";
}

.icon-google-plus:before {
    content: "\e00a";
}

.icon-feed:before {
    content: "\e00b";
}

.icon-feed-2:before {
    content: "\e00c";
}

.icon-linkedin:before {
    content: "\e001";
}

.icon-tumblr:before {
    content: "\e002";
}

.icon-lastfm:before {
    content: "\e005";
}

.icon-mail:before {
    content: "\e006";
}

.icon-github:before {
    content: "\e000";
}

/* ===========================================================
   17. Navigation & Layout Containers
   =========================================================== */

.navigation-wrapper {
    margin: 0 auto;
    width: 100%;
    padding: 2em 0 3em;
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.site-name {
    display: none !important;
}

.top-navigation {
    position: fixed !important;
    top: 15px;
    right: 15px;
    z-index: 9999;
    width: auto !important;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.top-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-navigation li {
    list-style-type: none;
    display: inline;
    margin-right: 25px;
}

.top-navigation li a {
    text-decoration: none;
    border-bottom: 0 solid transparent;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.top-navigation-current {
    text-decoration: overline;
}

#main {
    counter-reset: captions;
    margin: 0 auto;
    width: 100%;
    clear: both;
    margin-top: 1em;
}

#main:before,
#main:after {
    display: table;
    content: "";
}

#main:after {
    clear: both;
}

#index {
    margin: 0 auto;
    width: 100%;
    display: inline;
    float: left;
    width: 90%;
    margin-left: 8.333333333333334%;
    margin-right: 8.333333333333334%;
    margin-bottom: 2em;
}

#index article h2 {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
    margin-bottom: 0;
}

#index article p+p {
    text-indent: 0;
}

/* Image & Headline Wrappers */
.image-wrap {
    position: relative;
    margin-bottom: 2em;
}

.image-wrap:after {
    content: " ";
    display: block;
    position: absolute;
    bottom: -1px;
    left: 8%;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-bottom-color: #ffffff;
}

.image-wrap img {
    width: 100%;
    height: auto;
    -ms-interpolation-mode: bicubic;
}

.image-wrap .headline-wrap {
    position: absolute;
    bottom: 25px;
    margin-left: 8.333333333333334%;
}

.image-wrap .headline-wrap h1,
.image-wrap .headline-wrap h2 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.headline-wrap h1 {
    font-size: 48px;
    font-size: 2.6666666666666665rem;
    margin-bottom: 0.61875rem;
}

.headline-wrap h2 {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
    text-transform: uppercase;
}

.article-wrap h2 {
    font-size: 36px;
    font-size: 2rem;
    margin-top: 2em;
    margin-bottom: 0.825rem;
}

.article-wrap h3 {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
}

.byline {
    clear: both;
    font-size: 80%;
}

.article-author-top h4,
.article-author-bottom h4 {
    margin-bottom: 0.6em;
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
}


.article-author-top p,
.article-author-bottom p {
    font-size: 0.95rem;
    font-style: normal;
    color: #374151;
    line-height: 1.4;
    margin-bottom: 0.6em;
}

.article-author-top p:has(a) {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.article-author-top a,
.article-author-bottom a {
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.article-author-top a:hover,
.article-author-bottom a:hover {
    color: #007aff !important;
    transform: translateX(4px);
}

.article-author-top a i,
.article-author-top a img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px !important;
    width: 20px !important;
    height: auto;
    text-align: center;
}

.article-author-top img.bio-photo,
.article-author-bottom img.bio-photo {
    width: 95% !important;
    max-width: 180px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin: 0 auto 3em;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-author-top {
    display: block !important;
    margin-bottom: 2.5em;
}

/* Table of Contents */
.toc {
    display: none;
    font-size: 95%;
    -webkit-opacity: 0.7;
    -moz-opacity: 0.7;
    opacity: 0.7;
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
}

.toc:hover {
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1;
}

.toc header {
    background: #1a1a1a;
}

.toc h3 {
    margin: 0;
    padding: 5px 10px;
    color: #ffffff;
}

.toc h3:hover {
    cursor: pointer;
}

.toc ul {
    margin: 2px 0 0;
    padding: 0;
    background: #4d4d4d;
    line-height: 1;
}

.toc li {
    display: block;
    margin: 0;
    padding: 0;
    font-family: 'PT Sans Narrow', sans-serif;
    border-bottom: 1px solid #808080;
}

.toc li:last-child {
    border-bottom: 0 solid transparent;
}

.toc li a,
.toc li a:hover {
    color: #ffffff;
    border-bottom: 0 solid transparent;
}

.toc li a {
    padding: 10px;
    display: block;
}

.toc li ul {
    margin: 0;
    border-top: 1px solid #808080;
}

/* Image & Recent Grids */
.image-grid {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.image-grid:before,
.image-grid:after {
    display: table;
    content: "";
}

.image-grid:after {
    clear: both;
}

.image-grid li {
    display: inline;
    float: left;
    width: 50%;
}

.recent-grid {
    list-style: none;
    margin: 1em 0;
}

.recent-grid:before,
.recent-grid:after {
    display: table;
    content: "";
}

.recent-grid:after {
    clear: both;
}

.recent-grid li {
    display: inline;
}

.recent-grid li a {
    border-bottom: 0 solid transparent;
}

.recent-grid li a:hover {
    border-bottom: 0 solid transparent;
}

.recent-grid img {
    width: 19%;
    margin-bottom: 1%;
}

.holder {
    font-family: 'PT Sans Narrow', sans-serif;
}

.holder a {
    cursor: pointer;
    margin: 0 5px;
}

.holder a.jp-previous {
    margin-left: 0;
    margin-right: 15px;
}

.holder a.jp-next {
    margin-left: 15px;
    margin-right: 0;
}

.holder a.jp-current {
    font-weight: bold;
}

.holder a.jp-current,
.holder a.jp-current:hover,
.holder a.jp-disabled,
.holder a.jp-disabled:hover {
    cursor: default;
    background: none;
}

.holder span {
    margin: 0 5px;
}

/* Footer */
.footer-wrap {
    margin: 0 auto;
    width: 100%;
    clear: both;
    margin-top: 1em;
    padding-top: 2em;
    padding-bottom: 3em;
    background-color: #000000;
}

.footer-wrap:before,
.footer-wrap:after {
    display: table;
    content: "";
}

.footer-wrap:after {
    clear: both;
}

.footer-wrap a,
.footer-wrap a:active,
.footer-wrap a:visited,
.footer-wrap p,
.footer-wrap h4,
.footer-wrap h5,
.footer-wrap h6 {
    color: #bfbfbf;
}

.footer-wrap a {
    border-bottom: 0 solid transparent;
}

.footer-wrap a:hover {
    color: #ffffff;
    border-bottom: 0 solid transparent;
}

.footer-wrap footer {
    display: inline;
    float: left;
    width: 83.33333333333334%;
    margin-left: 8.333333333333334%;
    margin-right: 8.333333333333334%;
}

.related-articles {
    display: inline;
    float: left;
    width: 83.33333333333334%;
    margin-left: 8.333333333333334%;
    margin-right: 8.333333333333334%;
}

.related-articles h4 {
    font-size: 21px;
    font-size: 1.1666666666666667rem;
    margin-bottom: 1.4142857142857141rem;
    text-transform: uppercase;
    margin-bottom: 0;
}

.related-articles li {
    margin-bottom: 0;
    color: #ffffff;
}

.footer-icons li {
    display: inline-block;
    padding-right: 5px;
}

.footer-icons li a {
    font-size: 24px;
    font-size: 1.3333333333333333rem;
    margin-bottom: 1.2375rem;
    color: #9a9a9a;
    -webkit-transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -ms-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    transition: 0.4s linear;
}

.footer-icons li a:hover {
    text-decoration: none;
    border-bottom: none;
}

.footer-icons li a:hover .icon-twitter,
.footer-icons li a:hover .icon-twitter-sign {
    color: #2aa9df;
}

.footer-icons li a:hover .icon-facebook,
.footer-icons li a:hover .icon-facebook-sign {
    color: #3a5a98;
}

.footer-icons li a:hover .icon-instagram,
.footer-icons li a:hover .icon-instagram-sign {
    color: #306088;
}

.footer-icons li a:hover .icon-google-plus,
.footer-icons li a:hover .icon-google-plus-sign {
    color: #b63324;
}

.footer-icons li a:hover .icon-lastfm,
.footer-icons li a:hover .icon-lastfm-sign {
    color: #d80049;
}

.footer-icons li a:hover .icon-github {
    color: #4183c4;
}

/* ===========================================================
   18. Chrome Frame Notice
   =========================================================== */

.chrome-frame {
    background: #000;
    margin: 0 0 2em 0;
    padding: 10px;
    text-align: center;
    color: #ffffff;
}

.chrome-frame a {
    color: #ffffff;
    border-bottom: 1px dotted #ffffff;
    text-decoration: none;
}

.chrome-frame a:hover {
    border-bottom: 1px solid #ffffff;
}

/* ===========================================================
   19. Magnific Popup Styles
   =========================================================== */

.mfp-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 502;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.mfp-wrap {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 503;
    position: fixed;
    outline: none !important;
    -webkit-backface-visibility: hidden;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.mfp-container:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 505;
}

.mfp-inline-holder .mfp-content,
.mfp-ajax-holder .mfp-content {
    width: 100%;
    cursor: auto;
}

.mfp-inline-holder .mfp-content:after,
.mfp-ajax-holder .mfp-content:after {
    content: '';
    display: block;
    width: auto;
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.mfp-ajax-cur {
    cursor: progress;
}

.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: -moz-zoom-out;
    cursor: -webkit-zoom-out;
    cursor: zoom-out;
}

.mfp-zoom,
.image-popup {
    cursor: pointer;
    cursor: -webkit-zoom-in;
    cursor: -moz-zoom-in;
    cursor: zoom-in;
}

.mfp-auto-cursor .mfp-content {
    cursor: auto;
}

.mfp-close,
.mfp-arrow,
.mfp-preloader,
.mfp-counter {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.mfp-loading.mfp-figure {
    display: none;
}

.mfp-hide {
    display: none !important;
}

.mfp-preloader {
    color: #cccccc;
    position: absolute;
    top: 50%;
    width: auto;
    text-align: center;
    margin-top: -0.8em;
    left: 8px;
    right: 8px;
    z-index: 504;
}

.mfp-preloader a {
    color: #cccccc;
}

.mfp-preloader a:hover {
    color: white;
}

.mfp-s-ready .mfp-preloader {
    display: none;
}

.mfp-s-error .mfp-content {
    display: none;
}

button.mfp-close,
button.mfp-arrow {
    overflow: visible;
    cursor: pointer;
    border: 0;
    -webkit-appearance: none;
    display: block;
    padding: 0;
    z-index: 506;
}

button.mfp-close {
    background: transparent;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

.mfp-close {
    width: 44px;
    height: 44px;
    line-height: 44px;
    position: absolute;
    right: 0;
    top: 0;
    text-decoration: none;
    text-align: center;
    opacity: 0.65;
    padding: 0 0 18px 10px;
    color: white;
    font-style: normal;
    font-size: 28px;
    font-family: Arial, Baskerville, monospace;
}

.mfp-close:hover,
.mfp-close:focus {
    opacity: 1;
}

.mfp-close:active {
    top: 1px;
}

.mfp-close-btn-in .mfp-close {
    color: #333333;
}

.mfp-image-holder .mfp-close,
.mfp-iframe-holder .mfp-close {
    color: white;
    right: -6px;
    text-align: right;
    padding-right: 6px;
    width: 100%;
}

.mfp-counter {
    position: absolute;
    top: 0;
    right: 0;
    color: #cccccc;
    font-size: 12px;
    line-height: 18px;
}

.mfp-arrow {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    top: 0;
    opacity: 0.65;
    margin: 0;
    top: 50%;
    margin-top: -55px;
    padding: 0;
    width: 90px;
    height: 110px;
    background-color: #000000;
    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    -ms-transition: opacity 0.2s ease-in-out;
    -o-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.mfp-arrow:active {
    margin-top: -54px;
}

.mfp-arrow:hover,
.mfp-arrow:focus {
    opacity: 1;
}

.mfp-arrow:before,
.mfp-arrow:after,
.mfp-arrow .mfp-b,
.mfp-arrow .mfp-a {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
    margin-top: 35px;
    margin-left: 35px;
    border: solid transparent;
}

.mfp-arrow:after,
.mfp-arrow .mfp-a {
    opacity: 0.8;
    border-top-width: 12px;
    border-bottom-width: 12px;
    top: 8px;
}

.mfp-arrow:before,
.mfp-arrow .mfp-b {
    border-top-width: 20px;
    border-bottom-width: 20px;
}

.mfp-arrow-left {
    left: 0;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 0;
    -webkit-border-top-left-radius: 0;
    -moz-border-radius-topright: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 0;
    -moz-border-radius-topleft: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
}

.mfp-arrow-left:after,
.mfp-arrow-left .mfp-a {
    border-right: 12px solid #fff;
    left: 5px;
}

.mfp-arrow-left:before,
.mfp-arrow-left .mfp-b {
    border-right: 20px solid #fff;
}

.mfp-arrow-right {
    right: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -moz-border-radius-topright: 0;
    -moz-border-radius-bottomright: 0;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-topleft: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
}

.mfp-arrow-right:after,
.mfp-arrow-right .mfp-a {
    border-left: 12px solid #fff;
    left: 3px;
}

.mfp-arrow-right:before,
.mfp-arrow-right .mfp-b {
    border-left: 20px solid #fff;
}

.mfp-iframe-holder {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px;
}

.mfp-iframe-scaler {
    width: 100%;
    height: 0;
    overflow: hidden;
    padding-top: 56.25%;
}

.mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: black;
}

.mfp-iframe-holder .mfp-close {
    top: -40px;
}

img.mfp-img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    line-height: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 40px 0 40px;
    margin: 0 auto;
}

.mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.mfp-figure {
    line-height: 0;
}

.mfp-bottom-bar {
    margin-top: -36px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

.mfp-title {
    text-align: left;
    line-height: 18px;
    color: #f3f3f3;
}

.mfp-figure small {
    color: #bdbdbd;
    display: block;
    font-size: 12px;
    line-height: 14px;
}

.mfp-image-holder .mfp-content {
    max-width: 100%;
}

.mfp-gallery .mfp-image-holder .mfp-figure {
    cursor: pointer;
}

@media screen and (max-width: 800px) and (orientation: landscape),
screen and (max-height: 300px) {
    .mfp-img-mobile .mfp-image-holder {
        padding-left: 0;
        padding-right: 0;
    }

    .mfp-img-mobile img.mfp-img {
        padding: 0;
    }

    .mfp-img-mobile .mfp-figure:after {
        top: 0;
        bottom: 0;
    }

    .mfp-img-mobile .mfp-bottom-bar {
        background: rgba(0, 0, 0, 0.6);
        bottom: 0;
        margin: 0;
        top: auto;
        padding: 3px 5px;
        position: fixed;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .mfp-img-mobile .mfp-bottom-bar:empty {
        padding: 0;
    }

    .mfp-img-mobile .mfp-counter {
        right: 5px;
        top: 3px;
    }

    .mfp-img-mobile .mfp-close {
        top: 0;
        right: 0;
        width: 35px;
        height: 35px;
        line-height: 35px;
        background: rgba(0, 0, 0, 0.6);
        position: fixed;
        text-align: center;
        padding: 0;
    }

    .mfp-img-mobile .mfp-figure small {
        display: inline;
        margin-left: 5px;
    }
}

@media all and (max-width: 800px) {
    .mfp-arrow {
        -webkit-transform: scale(0.75);
        transform: scale(0.75);
    }

    .mfp-arrow-left {
        -webkit-transform-origin: 0;
        transform-origin: 0;
    }

    .mfp-arrow-right {
        -webkit-transform-origin: 100%;
        transform-origin: 100%;
    }

    .mfp-container {
        padding-left: 6px;
        padding-right: 6px;
    }
}

.mfp-fade .zoom-anim-dialog {
    opacity: 0;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.mfp-fade.mfp-ready .zoom-anim-dialog {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.mfp-fade.mfp-removing .zoom-anim-dialog {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
    opacity: 0;
}

.mfp-fade.mfp-bg {
    opacity: 0;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -ms-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.mfp-fade.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-fade.mfp-removing.mfp-bg {
    opacity: 0;
}

/* ===========================================================
   20. Print Styles
   =========================================================== */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
        -ms-filter: none !important;
        position: static !important;
    }

    @page {
        margin: 0.5cm;
    }

    h2,
    h3 {
        orphans: 3;
        widows: 3;
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }

    pre,
    blockquote {
        border: 1px solid #333;
        page-break-inside: avoid;
        padding: 1em;
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

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

    a[href]:after {
        content: " (" attr(href) ")";
    }

    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
    }
}

/* ===========================================================
   21. Responsive Media Queries
   =========================================================== */
@media only screen and (max-width: 37.49em) {
    .top-navigation {
        top: 10px !important;
        right: 5px !important;
        left: 5px !important;
        width: auto;
        max-width: calc(100% - 10px);
        padding: 5px 10px !important;
        box-sizing: border-box;
    }

    .article-author-top {
        display: block !important;
        padding: 50px 20px 10px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .article-author-top img.bio-photo {
        width: 100px !important;
        float: left !important;
        margin: 0 15px 5px 0 !important;
        border-radius: 10px !important;
        display: inline !important;
    }

    .article-author-top p {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 0.9rem !important;
    }

    .article-author-top p:has(a),
    .article-author-top a {
        display: inline-flex !important;
        margin-right: 10px !important;
        margin-bottom: 5px !important;
        vertical-align: middle;
    }

    #main article {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
        clear: both;
    }

    .sidebar-text {
        clear: both !important;
        margin: 20px 0 !important;
        padding: 15px !important;
    }

    /* Mobile heading spacing fix */
    .article-wrap h2 {
        margin-top: 1.5em !important;
        padding-top: 0.5em !important;
    }

    .article-wrap h2:first-child {
        margin-top: 1em !important;
    }
}

@media only screen and (min-width: 30em) {
    .image-grid li {
        width: 33.333333%;
    }
}

@media only screen and (min-width: 37.5em) {
    html {
        font-size: 95%;
    }

    .site-name {
        display: none !important;
    }

    .article-author-top {
        display: inline;
        float: left;
        width: 24%;
        margin-left: 3%;
        margin-right: 2%;
    }

    .article-author-bottom {
        display: none;
    }

    #main article,
    #index {
        display: inline;
        float: left;
        width: 66%;
        margin-left: 0;
    }

    .footer-wrap footer,
    .related-articles {
        display: inline;
        float: left;
        width: 70%;
        margin-left: 26%;
    }
}

@media only screen and (min-width: 48em) {
    html {
        font-size: 100%;
    }

    .image-grid li {
        width: 20%;
    }

    .top-navigation {
        padding: 10px 18px !important;
        top: 20px !important;
        right: 20px !important;
    }

    .top-navigation li a {
        font-size: 1rem !important;
    }

    .top-navigation li {
        margin-right: 15px !important;
    }
}

@media only screen and (min-width: 62em) {
    html {
        font-size: 112.5%;
    }

    .image-grid li {
        width: 16.666666666%;
    }
}

@media only screen and (min-width: 86.375em) {
    .article-author-top {
        width: 20% !important;
        margin-left: 8% !important;
        margin-right: 2% !important;
        float: left !important;
    }

    #main article {
        width: 60% !important;
        float: left !important;
        margin-left: 2% !important;
    }

    .top-navigation {
        top: 30px !important;
        right: 45px !important;
        padding: 13px 25px !important;
    }

    .top-navigation li a {
        font-size: 1.15rem !important;
    }

    .top-navigation li {
        margin-right: 25px !important;
    }

    #index,
    .related-articles,
    .footer-wrap footer {
        width: 65% !important;
        margin-left: 30% !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    /* Hi-DPI specific rules can go here */
}

/* ===========================================================
   22. Sidebar & News List
   =========================================================== */

.sidebar-text {
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    color: #222;
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-text h3 {
    text-align: left;
    font-size: 16px;
    color: #111;
    margin-bottom: 10px;
}

.news-list {
    text-align: left;
    font-size: 13px;
    font-weight: normal;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    list-style: none;
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 10px;
    position: relative;
}

.news-list li:before {
    content: "•";
    color: #444;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 3px;
}

.video-grid-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 20px 0 !important;
}

.video-grid-container iframe {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 8px !important;
    border: none !important;
}

@media only screen and (max-width: 37.49em) {
    .video-grid-container {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================================================
   HCI Modern Design System
   A refined, professional design for academic portfolios
   =========================================================== */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-accent: #0ea5e9;
    --color-text: #1e293b;
    --color-text-secondary: #475569;
    --color-text-muted: #64748b;
    --color-background: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- Base Typography --- */
html,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* --- Heading Styles --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.025em;
    color: var(--color-text);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 2.5em;
    margin-bottom: 1em;
    position: relative;
}

/* Decorative accent for h2 */
.article-wrap h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

h3 {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

/* --- Paragraph & Body Text --- */
p {
    font-family: 'Inter', sans-serif;
    margin: 0 0 1.5em 0 !important;
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* --- Enhanced Link Styles --- */
a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: all var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
    background-color: transparent;
}

/* Links within paragraphs */
p>a,
li>a {
    border-bottom: 1.5px solid rgba(37, 99, 235, 0.3);
    padding-bottom: 1px;
}

p>a:hover,
li>a:hover {
    border-bottom-color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.05);
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
}

/* --- Navigation Enhancement --- */
.top-navigation {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-md) !important;
}

.top-navigation li a {
    font-weight: 500 !important;
    color: var(--color-text-secondary) !important;
    transition: all var(--transition-fast) !important;
    position: relative;
}

.top-navigation li a:hover {
    color: var(--color-primary) !important;
}

.top-navigation li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 1px;
}

.top-navigation li a:hover::after {
    width: 100%;
}

/* --- Profile/Author Section --- */
.article-author-top img.bio-photo {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 3px solid var(--color-background) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal) !important;
}

.article-author-top img.bio-photo:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.article-author-top h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    margin-bottom: 0.5em !important;
}

.article-author-top p {
    font-size: 0.9rem !important;
    color: var(--color-text-muted) !important;
}

.article-author-top a {
    color: var(--color-text-secondary) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    border-bottom: none !important;
    transition: all var(--transition-fast) !important;
}

.article-author-top a:hover {
    color: var(--color-primary) !important;
    transform: translateX(4px) !important;
}

.article-author-top a i,
.article-author-top a img {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.article-author-top a:hover i,
.article-author-top a:hover img {
    opacity: 1;
}

/* --- General Card Styles for article paragraphs --- */
.article-wrap p {
    position: relative;
    padding: 1.25rem 1.5rem !important;
    margin: 0 0 1rem 0 !important;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.article-wrap p:hover {
    background: var(--color-background);
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* --- Override: No card styles inside .pub-list --- */
.pub-list p,
.pub-list p:hover {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --- Publication List Layout --- */
.pub-list {
    margin: 0.5rem 0 1.5rem 0;
}

.pub-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.pub-venue {
    flex-shrink: 0;
    width: 160px;
    min-width: 160px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 10px;
    border-radius: 4px;
    text-align: center;
    line-height: 1.4;
    margin-top: 2px;
    white-space: nowrap;
}

.pub-details {
    flex: 1;
    min-width: 0;
}

.pub-details a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text) !important;
    line-height: 1.5;
    border-bottom: none !important;
    transition: color 0.2s ease;
}

.pub-details a:hover {
    color: var(--color-primary) !important;
    border-bottom: none !important;
    background: transparent !important;
}

.pub-details br {
    display: block;
    content: '';
    margin-top: 0.25em;
}

/* Author names in publications */
.pub-details {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- About Section: No card styles --- */
.about-section p,
.about-section p:hover {
    padding: 0 !important;
    margin: 0 0 1.5em 0 !important;
    background: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --- Accent text: color only, no bg --- */
.accent {
    color: var(--color-primary);
    font-weight: 500;
}

/* --- Advisor link: elegant style --- */
.advisor-link,
.advisor-link:visited {
    color: var(--color-primary) !important;
    font-weight: 500 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: color var(--transition-fast) !important;
}

.advisor-link:hover {
    color: var(--color-primary-dark) !important;
    border-bottom: 1.5px solid var(--color-primary) !important;
    background: none !important;
}

/* --- Sidebar News Section --- */
.sidebar-text {
    background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%) !important;
    border: 1px solid var(--color-border-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 1.25rem !important;
}

.sidebar-text h3 {
    text-transform: uppercase !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.12em !important;
    color: var(--color-text-muted) !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--color-border-light) !important;
}

.news-list li {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.6 !important;
    color: var(--color-text-secondary) !important;
    padding-left: 1rem !important;
    position: relative !important;
}

.news-list li::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.5em !important;
    width: 4px !important;
    height: 4px !important;
    background: var(--color-primary) !important;
    border-radius: 50% !important;
    font-size: inherit !important;
}

/* --- Footer Enhancement --- */
.footer-wrap {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

.footer-wrap a:hover {
    color: var(--color-accent) !important;
}

/* --- Grid/Layout Tweaks for Better Spacing --- */
.article-wrap {
    padding-top: 1rem;
}

/* --- Smooth Page Transitions --- */
* {
    scroll-behavior: smooth;
}

/* --- Selection Styling --- */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--color-text);
}

::-moz-selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: var(--color-text);
}

/* --- Video Grid Enhancement --- */
.video-grid-container {
    gap: 1.5rem !important;
}

.video-grid-container iframe {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal) !important;
}

.video-grid-container iframe:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* --- Button Refinements --- */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    border: 2px solid var(--color-text) !important;
    border-radius: var(--radius-md) !important;
    transition: all var(--transition-fast) !important;
}

.btn:hover {
    background: var(--color-text) !important;
    color: var(--color-background) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* --- Responsive Fine-tuning --- */
@media only screen and (max-width: 37.49em) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .article-wrap p {
        padding: 1rem !important;
        margin: 0 0 0.75rem 0 !important;
    }

    /* Publication list: stack on mobile */
    .pub-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .pub-venue {
        width: auto;
        min-width: auto;
        align-self: flex-start;
    }

    .article-wrap h2::after {
        width: 30px;
        height: 2px;
    }
}
