/* ==========================================================================
   Chroknowlogy Theme — main.css
   ========================================================================== */

/* --- Fonts --- */
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('../fonts/AtkinsonHyperlegibleNext-VF.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Atkinson Hyperlegible Next';
    src: url('../fonts/AtkinsonHyperlegibleNext-Italic-VF.woff2') format('woff2');
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Andada Pro';
    src: url('../fonts/AndadaProVF.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Andada Pro';
    src: url('../fonts/AndadaPro-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Andada Pro';
    src: url('../fonts/AndadaPro-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text';
    src: url('../fonts/CMUTypewriter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text';
    src: url('../fonts/CMUTypewriter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text';
    src: url('../fonts/CMUTypewriter-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text';
    src: url('../fonts/CMUTypewriter-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text VW';
    src: url('../fonts/CMUTypewriterVW-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CMU Typewriter Text VW';
    src: url('../fonts/CMUTypewriterVW-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Inconsolata';
    src: url('../fonts/Inconsolata-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inconsolata';
    src: url('../fonts/Inconsolata-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 1.15rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Atkinson Hyperlegible Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #302422;
    background: #fff;
}

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

a {
    color: #1f4880;
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 0.1em;
    transition: color 0.15s, background-color 0.15s;
}

a:hover,
a:focus {
    color: #302422;    
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Atkinson Hyperlegible Next", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #302422;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 { font-size: 1.625rem; }
h2 { font-size: 1.5275rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }

p {
    margin: 0 0 1.5em;
}

blockquote {
    margin: 1.5em 0;
    padding: 0 0 0 1.25em;
    border-left: 3px solid #1f4880;
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 600;
    /* font-style: italic; */
}

blockquote cite {
    font-style: normal;
    font-size: 0.875rem;
}

hr {
    border: 0;
    border-top: 1px solid #918a88;
    margin: 2em 0;
}

code {
    font-family: Inconsolata, "Fira Mono", "Adwaita Mono", monospace;
    background-color: #f8f8f8;
    border: 1px solid #E3E3E3;
    border-radius: 2px;
    padding: 0.1em 0.3em;
    font-size: 0.9em;
}

pre {
    font-family: "CMU Typewriter Text", Inconsolata, "Courier Prime", monospace;
    background-color: #f8f8f8;
    border: 1px solid #E3E3E3;
    border-radius: 3px;
    padding: 1em 1.25em;
    overflow-x: auto;
    line-height: 1.4;
    margin: 1.5em 0;
}

pre code {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

mark {
    background-color: #eeeeee;
    padding: 0.1em 0.2em;
}

abbr[title] {
    border-bottom: 1px dotted #1f4880;
    text-decoration: none;
    cursor: help;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5em 0;
}

th, td {
    text-align: left;
    padding: 0.5em 0.75em;
    border-bottom: 1px solid #eeeeee;
}

th {
    font-weight: 700;
    border-bottom-color: #918a88;
}

ul, ol {
    padding-left: 1.5em;
    margin: 0 0 1.5em;
}

li {
    margin-bottom: 0.25em;
}

/* --- Screen Reader --- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* --- Header --- */
.site-header {
    background-color: #193A67;
    text-align: center;
}

.site-header-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1em 2em;
}

.site-branding {
    display: block;
    text-decoration: none;
}

.site-branding:hover {
    text-decoration: none;
}

.site-logo-title {
    position: relative;
    display: inline-block;
}

.site-logo {
    display: block;
    margin: 0 auto;
    height: 140px;
    width: auto;
}

.site-title {
    font-family: "CMU Typewriter Text VW", "CMU Typewriter Text", Inconsolata, "Courier Prime", monospace;
    font-size: 2.5rem;
    font-weight: 400;
    /* letter-spacing: 0.06em; */
    color: #ffffff;
    text-shadow: #302422 1px 1px 1px;
    margin: 0;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.site-description {
    font-family: "CMU Typewriter Text VW", "CMU Typewriter Text", Inconsolata, "Courier Prime", monospace;
    font-size: 0.945rem;
    font-weight: 400;
    color: #FEFEFE;
    margin: 0.5em 0 0;
    line-height: 1.4;
    max-width: 80em;
    margin-left: auto;
    margin-right: auto;
}

/* --- Navigation --- */
.site-navigation {
    text-align: center;
    background: #fff;
    padding: 0.5em 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #48302C;
    color: #48302C;
    padding: 0.4em 1em;
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    margin: 0.5em auto;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item a {
    display: block;
    padding: 0.5em 1em;
    margin-left: 3px;
    margin-right: 3px;
    color: #48302C;
    /* text-decoration: none; */
    font-size: 0.9125rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    /* text-transform: uppercase; */
    text-decoration: none;
    text-shadow: #bfd5f2 1px 1px 1px;
    transition: color 0.15s, background-color 0.15s;
}

.nav-item.nav-active a {
    color: #48302C; 
    text-shadow: #bfd5f2 1px 1px 1px;
    /* transition: color 0.15s, background-color 0.15s; */
}

.nav-item a:hover {
    color: #fff;
    background-color: #1f4880;
    text-shadow: #bfd5f2;
    border-radius: 2px;
}

/* --- Decorative HR --- */
.decorative-hr {
	display: flex;
	align-items: center;
  justify-content: center;
	border: none;
	height: 0.05rem;
	padding: 0 2em;
	margin-bottom: 6px;
	max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  	/* overflow: visible;
	position: relative; */
}

.decorative-hr-line {
    flex: 1;
    height: 0;
    border-top: 1px solid #918a88;
    position: relative;
}

.decorative-hr-line:first-child::after {
    content: '';
    position: absolute;
    display: block;
    top: calc(50% - .5rem);
    right: -1px;
    /* width: 12px; */
    height: 1rem;
    border: none;
    border-right: 1px solid #918a88;
    transform: rotate(22.5deg);
    	/* right: calc(2% - 1.15rem); */
}

.decorative-hr-line:last-child::before {
    content: '';
    position: absolute;
    top: calc(50% - .5rem);
    left: -1px;
    /* width: 12px; */
    height: 1rem;
    border: none;
    border-right: 1px solid #918a88;
    transform: rotate(22.5deg);
    	/* left: calc(2% - 1.7rem); */
}

.decorative-hr-gap {
    width: 20px;
    flex-shrink: 0;
}

/* --- Main Content --- */
.site-main {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1.5em 2em;
}

/* --- Single Column Layout --- */
.content-single {
    max-width: 750px;
}

.content-single .page-article {
    line-height: 1.66;
}

/* --- Centred Page Layout (no sidebar) --- */
.content-centred {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.content-centred .page-article {
    line-height: 1.66;
}

/* --- Page with Left Sidebar --- */
.content-page-sidebar {
    flex-direction: row;
}

.page-sidebar {
    width: 30%;
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.page-sidebar figure {
    margin: 0;
    width: 100%;
}

.page-sidebar img {
    max-width: 90%;
    height: auto;
    display: block;
    border-radius: 2%;
    /* border: 1px solid #CAC7C7; */
    box-shadow: 0 0 12px 2px rgba(202, 199, 199, 0.2);
}

.content-page-sidebar .content-main {
    flex: 1;
    min-width: 0;
}

.content-page-sidebar .page-article {
    line-height: 1.66;
}

/* --- Two Column Layout --- */
.content-two-column {
    display: flex;
    gap: 3em;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* --- Page Article --- */
.page-article h1:first-child,
.post-title {
    margin-top: 0;
}

.post-meta {
    font-size: 0.6875rem;
    letter-spacing: 0.1818em;
    color: #302422;
    margin-bottom: 1.5em;
}

.page-article img {
    border-radius: 2%;
}

/* --- Post Card --- */
.post-card {
    margin-bottom: 2.5em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eeeeee;
}

.post-card:last-child {
    border-bottom: none;
}

.post-card-title {
    font-size: 1.5rem;
    margin: 0 0 0.25em;
}

.post-card-title a {
    color: #302422;
    /* text-decoration: none; */
}

.post-card-title a:hover {
    color: #1f4880;
}

.post-card-meta {
    font-size: 0.6875rem;
    letter-spacing: 0.1818em;
    /* text-transform: uppercase; */
    color: #666666;
    margin-bottom: 0.75em;
}

.post-card-date {
    color: #666666;
}

.post-card-topics {
    margin-left: 0.5em;
}

.post-card-excerpt {
    margin: 0 0 0.75em;
    color: #302422;
}

.continue-reading {
    font-size: 0.875rem;
    font-weight: 700;
    /* text-decoration: none; */
}

.continue-reading:hover {
    text-decoration: underline;
}

/* --- Topic Badge --- */
.topic-badge {
    display: inline-block;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    /* text-transform: uppercase; */
    text-decoration: none;
    color: #1f4880;
    background: #f0f4fa;
    padding: 0.15em 0.5em;
    border-radius: 2px;
    margin-right: 0.25em;
}

.topic-badge:hover {
    background: #1f4880;
    color: #fff;
}

/* --- Post Topics & Tags (on single pages) --- */
.post-topics {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #eeeeee;
}

.post-tags {
    margin-top: 1em;
    padding-top: 0.5em;
    margin-left: 4px;
}

.tag-link {
    display: inline-block;
    font-size: 0.8125rem;
    /* text-decoration: none; */
    color: #666666;
    margin-right: 0.5em;
    margin-bottom: 0.25em;
}

.tag-link:hover {
    color: #1f4880;
}

/* --- Post Navigation --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
    margin-top: 1em;
    padding-top: 1em;
    /* border-top: 1px solid #eeeeee; */
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: 1em 1.25em;
    border: 1px solid #eeeeee;
    border-radius: 3px;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-family: "CMU Typewriter Text", Inconsolata, "Courier Prime", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666666;
    margin-bottom: 0.35em;
}

.nav-prev a,
.nav-next a {
    font-size: 0.875rem;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid #eeeeee;
}

.pagination-prev,
.pagination-next {
    display: inline-block;
    padding: 0.4em 1em;
    background: #bfd5f2;
    color: #302422;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.875rem;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #1f4880;
    color: #fff;
}

.pagination-info {
    font-size: 0.8125rem;
    color: #666666;
}

/* --- Breadcrumb --- */
.breadcrumb {
    font-size: 0.75rem;
    color: #666666;
    margin-bottom: 1.5em;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: #666666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1f4880;
}

.breadcrumb-sep {
    margin: 0 0.35em;
    color: #918a88;
}

.breadcrumb-current {
    color: #302422;
}

/* --- Sidebar --- */
.sidebar {
    width: 30%;
    flex-shrink: 0;
    font-size: 0.833rem;
}

.sidebar-widget {
    margin-bottom: 2em;
}


.widget-title {
    font-family: "CMU Typewriter Text", Inconsolata, "Courier Prime", monospace;
    font-size: 0.975rem;
    font-weight: 600;
    letter-spacing: 0.1818em;
    /* text-transform: uppercase; */
    margin: 0 0 0.75em;
    color: #302422;
}

.mundaneum-wrap {
    position: relative;
}

.mundaneum-img {
    width: 100%;
    display: block;
    border-radius: 2%;
    box-shadow: 2px 2px 8px rgba(80, 80, 80, 0.3);
}

.mundaneum-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 239, 239, 0.49);
    color: #302422;
    text-align: center;
    text-shadow: #255699 0px 0px 1px;
    padding: 0.5em 0.75em;
    font-size: 0.8rem;
    margin: 0;
}

.mundaneum-img.category-img {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0;
    box-shadow: none;
}

.category-caption {
    color: #302422;
    text-align: center;
    font-style: italic;
    padding: 0.5em 0;
    font-size: 0.8rem;
    margin: 0;
}

.decorative-hr-small {
    max-width: 60%;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.topic-list,
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.archive-list li {
    margin-bottom: 0.3em;
}

.topic-list a,
.archive-list a {
    /* text-decoration: none; */
    color: #1f4880;
}

.topic-list a:hover,
.archive-list a:hover {
    color: #302422;
    text-decoration: none;
}

.count {
    color: #666666;
    font-size: 0.8em;
}

.tag-cloud {
    line-height: 1.4;
}

.footer-widget-tagcloud .tag-cloud {
    line-height: 1.3;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links li {
    margin-bottom: 0.3em;
}

.social-links a {
    /* text-decoration: none; */
    color: #1f4880;
}

.social-links a:hover {
    color: #302422;
}

/* --- Sidebar Search --- */
.sidebar-search .searchContainer {
    margin: 0;
}

.sidebar-search .searchContainer input {
    height: 40px;
    font-size: 0.9rem;
    border-color: #979190;
    transition: border-color 0.15s;
}

.sidebar-search .searchContainer input:focus {
    border-color: #193A67;
    outline: none;
    border-style: solid;
    border-width: 2px;
}

.sidebar-search .searchContainer button {
    height: 40px;
    width: 40px;
    margin-left: -40px;
    background: #193A67;
}

/* --- Collapsible Sections --- */
.collapsible-section summary.widget-title {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5em;
}

.collapsible-section summary.widget-title:focus {
    outline: none;
}

.collapsible-section summary.widget-title::before {
    content: '▸';
    font-size: 0.75em;
    transition: transform 0.2s;
}

.collapsible-section[open] summary.widget-title::before {
    transform: rotate(90deg);
}

.collapsible-section summary.widget-title::-webkit-details-marker {
    display: none;
}

/* --- Footer --- */
.site-footer {
    background-color: #193A67;
    color: #fff;
    margin-top: 3em;
}

.footer-widgets {
    max-width: 1250px;
    margin: 0 auto;
    padding: 2em;
    display: flex;
    gap: 2em;
}

.footer-col {
    flex: 1;
    background: #fff;
    border-radius: 5px;
    padding: 1.25em;
    color: #302422;
}

.footer-col .widget-title {
    font-size: 0.833rem;
    margin-bottom: 0.5em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.2em;
}

.footer-col a {
    color: #666666;
    text-decoration: none;
    font-size: 0.833rem;
}

.footer-col a:hover {
    color: #1f4880;
    text-decoration: underline;
}

.footer-collapsible {
    margin: 0;
    padding: 0;
}

.footer-collapsible summary.widget-title {
    margin-top: 0;
}

.footer-widget-tagcloud {
    font-size: .75rem;
    margin-top: 1.25rem;
}

.site-info {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1em 2em;
    text-align: center;
    font-size: 0.75rem;
    color: #bfd5f2;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.site-info a {
    color: #bfd5f2;
    /* text-decoration: none; */
}

.site-info a:hover {
    color: #fff;
}

.site-info-name {
    display: block;
    margin-bottom: 0.5em;
}

.site-info-license {
    display: block;
}

/* --- Details / Collapsible --- */
details {
    margin: 1.5em 0;
    /* border: 1px solid #eeeeee;
    border-radius: 3px; */
    padding: 0;
}

details summary {
    padding: 0.75em 1em;
    cursor: pointer;
    font-weight: 700;
    background: #f8f8f8;
    border-radius: 3px;
}

details[open] summary {
    border-bottom: 1px solid #eeeeee;
    border-radius: 3px 3px 0 0;
}

details > *:not(summary) {
    padding: 0 1em;
}

/* --- Footnotes --- */
.footnotes {
    font-size: 0.875rem;
    border-top: 1px solid #eeeeee;
    margin-top: 2em;
    padding-top: 1em;
}

sup a {
    text-decoration: none;
    font-weight: 700;
}

/* --- Print --- */
@media print {
    .site-header,
    .site-navigation,
    .decorative-hr,
    .site-footer,
    .sidebar,
    .post-navigation,
    .pagination,
    .breadcrumb {
        display: none;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    .content-two-column {
        display: block;
    }
    .site-main {
        max-width: 100%;
        padding: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 48em) {
    .content-two-column {
        flex-direction: column;
    }
    .sidebar,
    .page-sidebar {
        width: 100%;
    }
    .footer-widgets {
        flex-direction: column;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .site-title {
        font-size: 1.4rem;
    }
    .site-logo {
        height: 110px;
    }
    .site-description {
        font-size: 0.7rem;
    }
    .site-main {
        padding: 1em;
    }
    .site-header-inner {
        padding: 1em;
    }
    .footer-widgets {
        padding: 1em;
    }
}

@media (min-width: 48em) {
    .nav-item a {
        font-size: 0.75rem;
    }
    .site-main {
        padding: 2em 3em;
    }
    .site-header-inner {
        padding: 1.5em 3em;
    }
}

.page-sidebar a[href*="badgecheck"] {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: bold;
    padding: 0.35em 1em;
    border: 1px solid #302422;
    border-radius: 4px;
    text-decoration: none;
    color: #302422;
}
.page-sidebar a[href*="badgecheck"]:hover {
    background: #302422;
    color: #fff;
}

/* --- ORCID Works plugin output --- */
.orcid-works {
    margin: 1em 0 2em;
}

.orcid-works h3 {
    margin: 1.75em 0 0.75em;
    font-size: 0.8125rem;
    letter-spacing: 0.1818em;
    text-transform: uppercase;
    color: #666666;
    font-weight: 600;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 0.4em;
}

.orcid-works h3:first-child {
    margin-top: 0.5em;
}

.orcid-works__item {
    margin: 0 0 1em;
    padding-left: 2em;
    text-indent: -2em;
    line-height: 1.55;
}

.orcid-works__item a {
    word-break: break-word;
}

.orcid-works--empty {
    color: #666666;
    font-style: italic;
}
