/*
Theme Name: Kun Portal
Theme URI: https://lilingkun.com
Author: Lingkun Li
Description: 昆昆的小站个人学术、教学与博客主题。
Version: 4.3.0
License: GNU General Public License v2 or later
Text Domain: kun-portal
*/

:root {
    --text: #252b31;
    --heading: #182c3d;
    --link: #285f86;
    --link-dark: #174765;
    --muted: #68737c;
    --line: #e1e5e8;
    --soft: #f6f7f8;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-dark); text-decoration: underline; }
button, input { font: inherit; }
img { height: auto; max-width: 100%; }
::selection { background: #dfeaf1; color: var(--heading); }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.narrow-shell { width: min(900px, calc(100% - 48px)); }
.article-shell { width: min(800px, calc(100% - 48px)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 10000; padding: 8px 14px; background: #fff; color: var(--link); border: 1px solid var(--link); }
.skip-link:focus { top: 20px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #8eafc4; outline-offset: 3px; }

.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.site-brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--heading); }
.site-brand:hover { text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.4; }
.brand-copy strong { font-size: 21px; font-weight: 650; letter-spacing: .03em; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.brand-logo img { display: block; width: 40px; height: 40px; }
.primary-navigation { margin-left: auto; }
.primary-navigation ul { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.primary-navigation a { color: #46525b; font-size: 14px; }
.primary-navigation a:hover, .primary-navigation .current-menu-item a { color: var(--link); text-decoration: none; }
.menu-toggle { display: none; }

.home-intro { padding: 44px 0 40px; border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.intro-main h1 { margin: 0 0 8px; color: var(--heading); font-size: 32px; font-weight: 650; line-height: 1.4; letter-spacing: .02em; }
.intro-position { margin: 0 0 20px; color: #435461; font-size: 17px; }
.intro-main > p:not(.intro-position) { max-width: 700px; margin: 0 0 12px; color: #3f484f; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 14px; }
.intro-aside { padding-left: 24px; border-left: 2px solid #dbe4ea; }
.intro-aside h2 { margin: 2px 0 14px; color: var(--heading); font-size: 16px; font-weight: 650; }
.intro-aside ul { margin: 0; padding-left: 18px; color: #4c565e; font-size: 13px; }
.intro-aside li { margin-bottom: 12px; }
.intro-aside li:last-child { margin-bottom: 0; }

.home-section { padding: 38px 0 44px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 12px; border-bottom: 1px solid #cfd6db; }
.section-title h2 { margin: 0; color: var(--heading); font-size: 24px; font-weight: 650; line-height: 1.4; }
.section-title > a { flex-shrink: 0; font-size: 13px; }
.section-summary { max-width: 850px; margin: 18px 0 8px; color: #515c64; }
.research-list { margin-top: 10px; }
.research-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.research-item h3 { margin: 0; color: var(--heading); font-size: 17px; font-weight: 650; line-height: 1.55; }
.research-item p { margin: 0 0 8px; color: #3d474e; font-size: 14px; }
.research-item .research-links { margin: 0; font-size: 12px; }
.publications-block { margin-top: 34px; }
.publications-block > h3, .courses-block > h3 { margin: 0 0 12px; color: var(--heading); font-size: 19px; font-weight: 650; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication-list li { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid #edf0f2; font-size: 13px; line-height: 1.65; }
.publication-list li > span { color: var(--muted); font-size: 11px; font-weight: 600; }
.publication-list a { color: #2c4659; }
.publication-list a:hover { color: var(--link); }
.section-more { margin: 16px 0 0; font-size: 13px; }

.teaching-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; margin-top: 26px; }
.teaching-notes article { padding-top: 16px; border-top: 2px solid #dbe4ea; }
.teaching-notes h3 { margin: 0 0 10px; color: var(--heading); font-size: 17px; font-weight: 650; line-height: 1.55; }
.teaching-notes p { margin: 0 0 10px; color: #4b555d; font-size: 14px; }
.teaching-notes a { font-size: 12px; }
.courses-block { margin-top: 38px; }
.course-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.course-list a { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); color: var(--text); }
.course-list a:hover { text-decoration: none; }
.course-list strong { color: var(--heading); font-size: 15px; font-weight: 650; }
.course-list span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.course-list small { margin-top: 6px; color: #5b656c; font-size: 12px; }
.course-list a:hover strong { color: var(--link); text-decoration: underline; }

.journal-section { border-bottom: 0; }
.journal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; margin-top: 10px; }
.latest-post { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.latest-post > time { padding-top: 3px; color: var(--muted); font-size: 11px; }
.latest-post h3 { margin: 0; color: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.55; }
.latest-post h3 a { color: inherit; }
.latest-post h3 a:hover { color: var(--link); }
.latest-post p { margin: 6px 0; color: #5b656c; font-size: 12px; line-height: 1.75; }
.latest-post span, .latest-post span a { color: var(--muted); font-size: 11px; }
.journal-aside { padding-top: 20px; }
.journal-aside h3 { margin: 0 0 8px; color: var(--heading); font-size: 15px; font-weight: 650; }
.journal-aside > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.journal-aside .search-form { margin-bottom: 30px; }
.search-form { display: flex; margin-top: 20px; }
.search-form input { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #cbd3d8; border-right: 0; border-radius: 0; background: #fff; color: var(--text); font-size: 12px; }
.search-form button { flex-shrink: 0; padding: 0 15px; border: 1px solid var(--link); background: #fff; color: var(--link); font-size: 12px; cursor: pointer; }
.search-form button:hover { background: var(--soft); }
.category-list { margin: 10px 0 0; padding: 0; list-style: none; }
.category-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #edf0f2; font-size: 12px; }
.category-list span { color: var(--muted); }

.site-footer { padding: 30px 0 22px; background: var(--soft); border-top: 1px solid var(--line); color: var(--muted); }
.footer-main { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 22px; }
.footer-identity strong { color: var(--heading); font-size: 16px; font-weight: 650; }
.footer-identity p { margin: 2px 0 0; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px; }
.footer-bottom p { margin: 0; }

.page-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero h1, .single-header h1, .not-found h1 { margin: 0; color: var(--heading); font-size: 36px; font-weight: 650; line-height: 1.45; }
.page-hero .narrow-shell > p:last-child { margin: 12px 0 0; color: var(--muted); }
.archive-description { color: var(--muted); }
.archive-section { padding-top: 12px; }
.archive-post { display: grid; grid-template-columns: 125px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.archive-date { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; color: var(--muted); font-size: 11px; }
.archive-date time { font-size: 12px; }
.archive-copy h2 { margin: 0; color: var(--heading); font-size: 22px; font-weight: 650; line-height: 1.5; }
.archive-copy h2 a { color: inherit; }
.archive-copy h2 a:hover { color: var(--link); }
.archive-excerpt { margin: 10px 0 12px; color: var(--muted); font-size: 14px; }
.archive-excerpt p { margin: 0; }
.read-more { font-size: 12px; }
.navigation.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 7px; }
.page-numbers { display: inline-grid; min-width: 36px; height: 36px; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-size: 12px; }
.page-numbers.current, .page-numbers:hover { border-color: var(--link); color: var(--link); text-decoration: none; }
.empty-state { padding: 40px 0; }

.single-header { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; color: var(--muted); font-size: 11px; }
.single-header h1 { font-size: 34px; }
.entry-content { padding: 34px 0 24px; font-size: 16px; line-height: 2; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.8em 0 .7em; color: var(--heading); font-weight: 650; line-height: 1.5; }
.entry-content h2 { font-size: 25px; }
.entry-content h3 { font-size: 21px; }
.entry-content h4 { font-size: 18px; }
.entry-content a { text-decoration: underline; text-decoration-color: #b5c4cf; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin: 1.8em 0; padding: 14px 22px; border-left: 3px solid #cbd9e2; background: var(--soft); color: #505c64; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow-x: auto; padding: 18px; background: #202a32; color: #edf2f5; font-size: 13px; line-height: 1.7; }
.entry-content code { padding: .1em .3em; background: #eef1f3; font-family: "SFMono-Regular", Consolas, monospace; font-size: .88em; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--soft); }
.entry-content hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--line); }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: 0 22px 14px 0; }
.entry-content .alignright { float: right; margin: 0 0 14px 22px; }
.entry-footer { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.entry-footer p { margin: 10px 0 0; }
.tag-list a { display: inline-block; margin: 0 8px 8px 0; }
.tag-list span { margin-right: 12px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.post-navigation > div:last-child { text-align: right; }
.post-navigation a { display: flex; flex-direction: column; }
.post-navigation a span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.comments-area { padding: 28px 0 56px; border-top: 1px solid var(--line); }
.comments-area > h2 { color: var(--heading); font-size: 22px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .comment-body { margin-bottom: 16px; padding: 18px; border: 1px solid var(--line); }
.comment-list .children { list-style: none; }
.comment-meta, .comment-metadata { font-size: 12px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 13px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 9px; border: 1px solid var(--line); background: #fff; }
.comment-form .submit { padding: 8px 18px; border: 1px solid var(--link); background: #fff; color: var(--link); cursor: pointer; }
.not-found { padding-top: 70px; padding-bottom: 70px; }
.not-found > p { color: var(--muted); }
.not-found .search-form { max-width: 540px; margin-top: 30px; }
.hero-actions { display: flex; gap: 18px; margin-top: 24px; }

@media (max-width: 860px) {
    .shell, .narrow-shell, .article-shell { width: calc(100% - 40px); }
    .header-inner { min-height: 68px; justify-content: space-between; }
    .menu-toggle { display: block; margin-left: auto; padding: 5px 0 5px 12px; border: 0; background: transparent; color: var(--link); font-size: 13px; cursor: pointer; }
    .primary-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 10; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
    .primary-navigation.is-open { display: block; }
    .primary-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
    .primary-navigation li { border-bottom: 1px solid var(--line); }
    .primary-navigation li:last-child { border: 0; }
    .primary-navigation a { display: block; padding: 9px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 28px; }
    .intro-aside { padding: 20px 0 0; border-top: 1px solid var(--line); border-left: 0; }
    .research-item { grid-template-columns: 155px minmax(0, 1fr); gap: 20px; }
    .journal-layout { grid-template-columns: 1fr; gap: 24px; }
    .journal-aside { padding-top: 0; }
}

@media (max-width: 600px) {
    .shell, .narrow-shell, .article-shell { width: calc(100% - 32px); }
    .brand-copy strong { font-size: 19px; }
    .brand-copy small { display: none; }
    .home-intro { padding: 32px 0; }
    .intro-main h1 { font-size: 28px; }
    .intro-position { font-size: 15px; }
    .home-section { padding: 30px 0 34px; }
    .section-title h2 { font-size: 22px; }
    .research-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
    .publication-list li { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
    .teaching-notes, .course-list { grid-template-columns: 1fr; }
    .teaching-notes { gap: 24px; }
    .latest-post { grid-template-columns: 1fr; gap: 4px; }
    .footer-main, .footer-bottom { flex-direction: column; gap: 14px; }
    .footer-links { justify-content: flex-start; }
    .archive-post { grid-template-columns: 1fr; gap: 10px; }
    .archive-date { flex-direction: row; flex-wrap: wrap; }
    .single-header h1 { font-size: 28px; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-navigation > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}


:root {
    --heading: #14384e;
    --link: #215f82;
    --link-dark: #123f59;
    --portal-brand: #14384e;
}

.site-header { background: var(--portal-brand); border-bottom: 0; }
.header-inner { min-height: 82px; }
.site-brand, .primary-navigation a { color: #fff; }
.brand-copy strong { font-size: 23px; }
.brand-copy small { color: #cfdae0; }
.primary-navigation a:hover, .primary-navigation .current-menu-item a { color: #d7e6ee; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { color: #fff; }

.portal-strip { background: #f1f4f6; border-bottom: 1px solid var(--line); }
.portal-strip .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.portal-strip p { margin: 0; color: #59676f; font-size: 12px; }
.portal-strip a { font-size: 12px; }
.lead-section { padding: 38px 0 40px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 48px; align-items: start; }
.section-label { margin: 0 0 12px; color: var(--link); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.lead-story { padding-top: 10px; }
.lead-story h1 { margin: 0 0 18px; color: var(--heading); font-size: 34px; font-weight: 650; line-height: 1.45; }
.lead-story h1 a, .research-feature h2 a, .news-story h3 a, .research-note h3 a, .research-text-note h3 a, .teaching-story h3 a { color: inherit; }
.lead-story h1 a:hover, .research-feature h2 a:hover, .news-story h3 a:hover, .research-note h3 a:hover, .research-text-note h3 a:hover, .teaching-story h3 a:hover { color: var(--link); }
.lead-excerpt { margin: 0 0 18px; color: #455159; font-size: 16px; line-height: 1.9; }
.story-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }
.story-link { display: inline-block; margin-top: 20px; padding-bottom: 2px; border-bottom: 1px solid var(--link); font-size: 13px; }
.research-feature { padding-bottom: 20px; border: 1px solid var(--line); }
.research-feature .feature-image { display: block; margin-bottom: 20px; overflow: hidden; }
.research-feature img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.research-feature .section-label, .research-feature h2, .research-feature > p:last-child { margin-inline: 22px; }
.research-feature h2 { margin-top: 0; margin-bottom: 10px; color: var(--heading); font-size: 21px; font-weight: 650; line-height: 1.5; }
.research-feature > p:last-child { margin-bottom: 0; color: #56626a; font-size: 13px; }

.latest-section { padding: 0 0 42px; }
.latest-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.news-story { padding-top: 14px; border-top: 3px solid var(--portal-brand); }
.news-story > time, .teaching-story > time { color: var(--muted); font-size: 11px; }
.news-story h3 { margin: 8px 0 10px; color: var(--heading); font-size: 18px; font-weight: 650; line-height: 1.55; }
.news-story p { margin: 0 0 10px; color: #59656c; font-size: 13px; }
.news-story > span, .news-story > span a { color: var(--muted); font-size: 11px; }

.topics-section { padding: 38px 0 44px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.topics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; }
.research-note { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-bottom: 1px solid #d9dfe3; }
.research-note img { display: block; width: 145px; height: 105px; object-fit: cover; background: #fff; }
.research-note h3, .research-text-note h3, .teaching-story h3 { margin: 0 0 7px; color: var(--heading); font-size: 16px; font-weight: 650; line-height: 1.55; }
.research-note p, .research-text-note p, .teaching-story p { margin: 0; color: #5b666d; font-size: 12px; line-height: 1.75; }
.research-text-note { padding: 20px 0; border-bottom: 1px solid #d9dfe3; }
.teaching-story { padding: 17px 0; border-bottom: 1px solid #d9dfe3; }
.teaching-story h3 { margin-top: 5px; font-size: 17px; }

.portal-resources { padding: 36px 0 40px; }
.resources-grid { display: grid; grid-template-columns: 1fr 330px; gap: 64px; }
.resources-grid h2 { margin: 0 0 10px; color: var(--heading); font-size: 20px; font-weight: 650; }
.resources-grid p { color: var(--muted); font-size: 13px; }
.resource-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 20px; font-size: 13px; }
.portal-search { padding-left: 28px; border-left: 1px solid var(--line); }
.portal-search .search-form { margin-top: 16px; }
.resources-grid .about-site { margin-top: 22px; font-size: 12px; line-height: 1.8; }

@media (max-width: 860px) {
    .site-header { background: var(--portal-brand); }
    .brand-copy small { color: #cfdae0; }
    .primary-navigation { background: #fff; }
    .primary-navigation a { color: #46525b; }
    .primary-navigation a:hover { color: var(--link); }
    .lead-grid { grid-template-columns: 1fr; gap: 30px; }
    .research-feature { max-width: 600px; }
    .topics-grid { grid-template-columns: 1fr; gap: 38px; }
    .resources-grid { grid-template-columns: 1fr; gap: 30px; }
    .portal-search { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 600px) {
    .header-inner { min-height: 68px; }
    .brand-copy strong { font-size: 20px; }
    .portal-strip p { max-width: 240px; line-height: 1.5; }
    .lead-section { padding: 28px 0 32px; }
    .lead-story h1 { font-size: 28px; }
    .lead-excerpt { font-size: 15px; }
    .latest-news-grid { grid-template-columns: 1fr; gap: 24px; }
    .research-note { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
    .research-note img { width: 110px; height: 90px; }
    .resource-links { grid-template-columns: 1fr; }
}


.site-header { background: #f4f7f9; border-bottom: 1px solid #dce4e9; }
.site-brand, .primary-navigation a, .menu-toggle { color: var(--heading); }
.brand-copy small { color: var(--muted); }
.primary-navigation a:hover, .primary-navigation .current-menu-item a { color: var(--link); }
.research-text-note .research-note-image { display: block; width: 100%; height: auto; margin: 18px 0 14px; background: #fff; border: 1px solid #d9dfe3; }

@media (max-width: 860px) {
    .site-header { background: #f4f7f9; }
    .brand-copy small { color: var(--muted); }
}


.course-hero { padding: 36px 0; background: #f4f7f9; border-bottom: 1px solid var(--line); }
.course-hero-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.course-back { display: inline-block; margin-bottom: 16px; font-size: 12px; }
.course-code { margin: 0 0 6px; color: var(--link); font-size: 12px; font-weight: 650; letter-spacing: .08em; }
.course-hero h1 { margin: 0 0 10px; color: var(--heading); font-size: 32px; font-weight: 650; line-height: 1.45; }
.course-hero-grid > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.course-site-button { flex-shrink: 0; padding: 9px 16px; border: 1px solid var(--link); color: var(--link); font-size: 13px; }
.course-site-button:hover { background: #fff; text-decoration: none; }
.course-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 54px; padding-top: 34px; padding-bottom: 42px; }
.course-main .entry-content { padding: 0; }
.course-cover { margin-bottom: 30px; background: var(--soft); }
.course-cover img { display: block; width: 100%; max-height: 390px; object-fit: cover; }
.course-section { margin-bottom: 32px; }
.course-section h2, .course-note h2 { margin: 0 0 14px; color: var(--heading); font-size: 22px; font-weight: 650; }
.course-section > p { color: #46525a; }
.learning-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.learning-points > div { padding-top: 12px; border-top: 2px solid #d9e2e8; }
.learning-points h3 { margin: 0 0 8px; color: var(--heading); font-size: 16px; }
.learning-points p { margin: 0; color: var(--muted); font-size: 13px; }
.course-resource-list { border-top: 1px solid var(--line); }
.course-resource-list a { display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--line); }
.course-resource-list strong { color: var(--heading); font-size: 14px; font-weight: 650; }
.course-resource-list span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.book-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.book-item { display: flex; gap: 16px; }
.book-item img { width: 86px; height: 126px; object-fit: contain; }
.book-item h3 { margin: 0 0 8px; color: var(--heading); font-size: 15px; line-height: 1.5; }
.book-item p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.book-item a { font-size: 12px; }
.course-note { margin-bottom: 32px; padding: 18px 20px; background: var(--soft); border-left: 3px solid #b9cbd6; }
.course-note h2 { font-size: 18px; }
.course-note p { margin: 0; color: #4c5961; font-size: 13px; }
.course-sidebar { padding-top: 4px; }
.course-sidebar h2 { margin: 0 0 10px; color: var(--heading); font-size: 17px; }
.course-sidebar > a { display: flex; flex-direction: column; padding: 13px 0; border-top: 1px solid var(--line); color: var(--heading); font-size: 13px; }
.course-sidebar > a span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.course-related { padding: 32px 0 38px; background: var(--soft); border-top: 1px solid var(--line); }
.course-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 20px; }
.course-related-grid article { padding-top: 12px; border-top: 2px solid #cbd8df; }
.course-related-grid time { color: var(--muted); font-size: 11px; }
.course-related-grid h3 { margin: 7px 0 8px; color: var(--heading); font-size: 16px; line-height: 1.55; }
.course-related-grid h3 a { color: inherit; }
.course-related-grid p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
    .course-body-grid { grid-template-columns: 1fr; gap: 20px; }
    .course-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
    .course-sidebar h2 { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    .course-hero-grid { align-items: flex-start; flex-direction: column; gap: 20px; }
    .course-hero h1 { font-size: 27px; }
    .learning-points, .book-list, .course-related-grid { grid-template-columns: 1fr; }
    .course-sidebar { grid-template-columns: 1fr; }
}


.research-note img.research-figure-fit { object-fit: contain; }
.course-sidebar .course-sidebar-subheading { margin-top: 26px; }


:root {
    --text: #353b3e;
    --heading: #304550;
    --link: #638a9b;
    --link-dark: #456d7e;
    --muted: #808b90;
    --line: #e7ebec;
    --soft: #fafbfb;
    --portal-brand: #ffffff;
}
body { color: var(--text); font-weight: 400; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-brand, .primary-navigation a, .menu-toggle { color: var(--heading); }
.brand-copy strong { font-size: 21px; font-weight: 550; }
.brand-copy small { display: none; }
.primary-navigation a { color: #626f75; font-size: 13px; font-weight: 400; }
.primary-navigation a:hover, .primary-navigation .current-menu-item a { color: var(--link-dark); text-decoration: none; }
.portal-strip { background: #fff; }
.portal-strip p, .portal-strip a { color: #879196; font-weight: 400; }
.lead-section { padding: 42px 0 38px; }
.section-label { color: #83959f; font-weight: 400; letter-spacing: .03em; }
.lead-story h1 { color: var(--heading); font-size: 32px; font-weight: 550; line-height: 1.5; }
.lead-excerpt { color: #6b767b; font-size: 15px; font-weight: 400; }
.story-meta { color: #8a9498; font-weight: 400; }
.story-link { border-bottom-color: #c7d5db; font-weight: 400; }
.research-feature { border: 0; }
.research-feature img { border-radius: 5px; }
.research-feature h2 { color: var(--heading); font-size: 20px; font-weight: 550; }
.research-feature > p:last-child { color: #7a858a; font-weight: 400; }
.section-title { border-bottom-color: #e9edee; }
.section-title h2 { color: var(--heading); font-size: 22px; font-weight: 550; }
.section-title > a { color: #82939b; font-weight: 400; }
.latest-news-grid { gap: 38px; }
.news-story { padding-top: 16px; border-top: 0; border-bottom: 1px solid var(--line); }
.news-story h3 { color: var(--heading); font-size: 17px; font-weight: 550; }
.news-story p, .news-story > span, .news-story > span a { color: #808b90; font-weight: 400; }
.topics-section { background: #fff; border-top-color: var(--line); border-bottom-color: var(--line); }
.topics-grid { gap: 60px; }
.research-note, .research-text-note, .teaching-story { border-bottom-color: #e9edee; }
.research-note img { border-radius: 5px; }
.research-note h3, .research-text-note h3, .teaching-story h3 { color: var(--heading); font-weight: 550; }
.research-note p, .research-text-note p, .teaching-story p { color: #818b90; font-weight: 400; }
.resources-grid h2 { color: var(--heading); font-weight: 550; }
.resource-links a, .category-list a { font-weight: 400; }
.footer-identity strong { font-weight: 550; }
.site-footer { background: #fafbfb; }

.page-hero h1, .single-header h1, .not-found h1, .archive-copy h2 { font-weight: 550; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 550; }
.course-hero { background: #fafbfb; }
.course-hero h1, .course-section h2, .course-note h2, .course-sidebar h2 { font-weight: 550; }
.course-site-button { border-color: #c7d5db; font-weight: 400; }
.course-site-button:hover { background: #fff; }
.learning-points > div { border-top-color: #e5eaec; }
.learning-points h3, .course-resource-list strong, .book-item h3, .course-related-grid h3 { font-weight: 550; }
.course-note { border-left-color: #dce5e9; }
.course-related { background: #fafbfb; }
.course-related-grid article { border-top-color: #e3e9eb; }

@media (max-width: 600px) {
    .lead-story h1 { font-size: 28px; }
    .latest-news-grid { gap: 22px; }
}
