/* Shared, quiet surfaces for the site's reading and portfolio pages. */
:root, html[data-theme="dark"] {
  --global-bg-color: var(--paper);
  --global-text-color: var(--ink);
  --global-text-color-light: var(--muted);
  --global-theme-color: var(--ink);
  --global-hover-color: var(--ink);
  --global-hover-text-color: var(--paper);
  --global-card-bg-color: var(--paper);
  --global-divider-color: var(--line);
  --global-footer-bg-color: var(--paper);
  --global-footer-text-color: var(--muted);
  --global-footer-link-color: var(--ink);
}
html { min-height: 100%; }
body { padding: 0; font-size: 15px; line-height: 1.75; font-weight: 400; }
a:hover { color: var(--ink); }
.site-main, .site-footer-inner { width: calc(100% - 96px); max-width: var(--page-width); margin: 0 auto; }
.site-main { flex: 1; padding: 72px 0 100px; }
.site-main .post { width: 100%; margin: 0; }
.post-header { margin-bottom: 52px; }
.post-header .post-title { margin: 0; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.055em; line-height: 1.08; font-weight: 600; }
.post-header .post-description, .post-header .desc { color: var(--muted); font-size: 17px; line-height: 1.65; letter-spacing: -.2px; margin: 18px 0 0; max-width: 740px; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 500; }
h2 { font-size: 25px; letter-spacing: -.6px; }
h3 { font-size: 20px; letter-spacing: -.4px; }
strong, b, .font-weight-bold { font-weight: 600 !important; }
.font-weight-light { font-weight: 400 !important; }
p { margin-bottom: 20px; }
article > h2 { margin: 48px 0 22px; }
article > h3 { margin: 32px 0 18px; }
article > ul, article > ol { padding-left: 22px; }
article > ul > li, article > ol > li { margin-bottom: 10px; }
.post article a, .about-biography a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.post article a:hover, .about-biography a:hover { text-decoration-color: var(--ink); }
.post figure { margin: 0 0 24px; }
.post figure img { display: block; max-width: 100%; height: auto; }
.post img.rounded, .post .z-depth-1 { border-radius: 0 !important; box-shadow: none !important; }
figcaption, .caption { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 12px; }
blockquote { margin: 24px 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; background: none; }
blockquote p:last-child { margin-bottom: 0; }
hr { border-color: var(--line); margin: 36px 0; }
.card, .hoverable:hover { box-shadow: none !important; border-color: var(--line); border-radius: 0; background: var(--paper); }
.btn, .btn:hover { box-shadow: none !important; border-radius: 0; text-transform: none; }
.page-action { flex-shrink: 0; margin: 14px 0 0 24px; font-size: 13px; font-weight: 400; line-height: 1.6; letter-spacing: 0; }
.page-action a, a.page-action { color: var(--muted); }
.page-action a:hover, a.page-action:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer { position: static; background: var(--paper); color: var(--muted); padding: 0; margin: 0; width: 100%; }
.site-footer-inner { border-top: 1px solid var(--line); padding: 27px 0 35px; display: flex; justify-content: space-between; gap: 24px; font-size: 11px; }
.site-footer-meta { margin-left: auto; text-align: right; }
.site-footer a { color: inherit; }
/* About: generous type, an uncropped photograph, and restrained text links. */
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) 32%; column-gap: 8%; row-gap: 30px; align-items: start; padding-bottom: 26px; }
.about-hero .post-header { grid-column: 1 / -1; margin: 0; }
.about-hero .desc { font-size: 14px; line-height: 1.8; max-width: 600px; }
.about-biography { font-size: 16px; line-height: 1.85; }
.about-biography p:last-child { margin-bottom: 0; }
.about-hero .about-portrait { margin: 0; }
.about-portrait img { width: 100%; height: auto; aspect-ratio: 4/3; background: var(--placeholder); }
.contact-links { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 28px; font-size: 13px; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-note { color: var(--muted); font-size: 12px; margin-top: 16px; }
.home-section { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }
.home-section > h2 { margin: 0 0 28px; font-size: 22px; }
.home-section > h2 a { color: inherit; }
.news { margin: 0; }
.news .table { margin: 0; color: var(--ink); font-size: 14px; background: none; }
.news .table tr { background: transparent; }
.news .table td, .news .table th { padding: 10px 0; vertical-align: baseline; background: transparent; }
.news .table th { width: 160px !important; padding-right: 24px; color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
.visitor-map-section { max-width: 650px; margin: 72px auto 0; }
.visitor-map-embed { width: 100%; overflow: hidden; }
#visitor-map-widget { width: 100%; min-height: 180px; }
.visitor-map-section > p { font-size: 11px; text-align: center; color: var(--muted); margin-top: 16px; }
/* Publications: a clear reading order with understated, usable controls. */
.bibsearch-form-input { width: 100%; max-width: 440px; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); margin: 0 0 20px; }
.bibsearch-form-input:focus { outline: none; border-color: var(--ink); box-shadow: none; }
.bibsearch-form-input::placeholder { color: var(--muted); }
.publications { margin-top: 0; }
.publications h2.bibliography { text-align: left; color: var(--muted); font-size: 14px; font-weight: 400; border-top: 1px solid var(--line); margin: 20px 0 0; padding: 24px 0 0; }
.publications ol.bibliography { margin: 0; }
.publications ol.bibliography > li { padding: 30px 0; margin: 0; border-bottom: 1px solid var(--line); }
.publications ol.bibliography > li:last-child { border-bottom: 0; }
.publications ol.bibliography > li > .row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; margin: 0; }
.publications ol.bibliography > li > .row > div { width: 100%; max-width: none; padding: 0; min-width: 0; }
.publications ol.bibliography > li > .row > div:only-child { grid-column: 1/-1; }
.publications ol.bibliography li .abbr { margin: 0; align-self: start; }
.publications ol.bibliography li .abbr figure { margin: 0; }
.publications ol.bibliography li .abbr img { width: 100%; height: auto; }
.publications ol.bibliography li .abbr abbr { position: static !important; display: inline-block; color: var(--muted) !important; background: transparent !important; padding: 0; font-size: 11px; font-weight: 500; margin-bottom: 12px; border-radius: 0 !important; }
.publications ol.bibliography li .abbr abbr a { color: inherit; }
.publications ol.bibliography li .title { font-size: 19px; line-height: 1.5; letter-spacing: -.3px; font-weight: 500; margin: 0 0 10px; }
.publications ol.bibliography li .author, .publications .periodical { font-size: 13px; line-height: 1.8; color: var(--muted); }
.publications ol.bibliography li .author > em { color: var(--ink); font-weight: 500; border: 0; }
.publications ol.bibliography li .author a { color: inherit; border-color: var(--line); }
.publications ol.bibliography li .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 15px; }
.publications ol.bibliography li .links a.btn { border: 0; padding: 0; margin: 0; font-size: 12px; line-height: 1.8; text-transform: lowercase; background: transparent; text-decoration: none; }
.publications ol.bibliography li .links a.btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.publications ol.bibliography li .hidden { text-align: left; }
.publications ol.bibliography li div.abstract.hidden, .publications ol.bibliography li div.award.hidden { border: 0; }
.publications ol.bibliography li .hidden.open { margin-top: 20px; background: var(--placeholder); }
.publications ol.bibliography li .hidden p { margin: 18px 22px; line-height: 1.8; }
/* Projects: photographs and text, without raised card frames. */
.project-category + .project-category { margin-top: 70px; }
.projects h2.category { margin: 0 0 30px; padding: 24px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); font-weight: 400; text-align: left; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 48px; }
.project-item { min-width: 0; }
.post article .project-link { display: block; color: var(--ink); text-decoration: none; }
.project-image { aspect-ratio: 16/10; background: var(--placeholder); overflow: hidden; margin-bottom: 22px; }
.project-image figure, .project-image picture { display: block; height: 100%; margin: 0; }
.project-image img { width: 100%; height: 100% !important; object-fit: contain; transition: opacity .2s ease; }
.project-link:hover img { opacity: .88; }
.project-item h3 { font-size: 20px; font-weight: 500; margin: 0 0 9px; letter-spacing: -.4px; line-height: 1.4; }
.project-item p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; max-width: 520px; }
.post article a.project-code { display: inline-block; margin-top: 15px; font-size: 12px; color: var(--muted); text-decoration: none; }
.post article a.project-code:hover { color: var(--ink); text-decoration: underline; }
.project-detail .site-main { max-width: 960px; }
.project-detail .post-title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.13; max-width: 820px; }
.project-detail article { font-size: 16px; line-height: 1.85; }
.project-detail article > .col-sm-8 { width: 100%; max-width: 100%; flex: none; padding: 0; margin: 24px 0 44px; }
.project-detail article > .col-sm-8 img { max-height: 740px; object-fit: contain; object-position: left; }
/* CV: flat sections with readable dates and a light contents rail. */
.reading-layout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 64px; }
.reading-sidebar { padding-top: 7px; }
#toc-sidebar { position: sticky; top: calc(var(--site-header-height) + 32px); max-height: calc(100vh - var(--site-header-height) - 64px); overflow-y: auto; }
nav[data-toggle="toc"] .nav > li > a, #toc-sidebar .nav > li > a { padding: 7px 0; margin: 0; border: 0; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.5; }
nav[data-toggle="toc"] .nav > .active > a, #toc-sidebar .nav > .active > a { color: var(--ink); font-weight: 500; border: 0; }
nav[data-toggle="toc"] .nav .nav { padding-left: 12px; }
.reading-content { min-width: 0; }
.reading-layout-right { grid-template-columns: minmax(0, 1fr) 160px; }
.reading-layout-right .reading-sidebar { order: 2; }
.cv-section { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.cv-section > h3 { margin: 0 0 25px; font-size: 21px; letter-spacing: -.4px; }
.cv .list-group-item { padding: 20px 0; background: transparent; border: 0; }
.cv .list-group-item:first-child { padding-top: 0; }
.cv .list-group-item:last-child { padding-bottom: 0; }
.cv .list-group-item > .row { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 24px; margin: 0; }
.cv .list-group-item > .row > div { max-width: none; width: 100%; padding: 0; }
.cv .date-column { text-align: left !important; }
.cv .badge { background: transparent !important; color: var(--muted) !important; padding: 0; white-space: normal; text-align: left; font-size: 11px; line-height: 1.65; font-weight: 400 !important; text-transform: none !important; }
.cv .location { margin: 7px 0 0; font-size: 11px; color: var(--muted); white-space: normal; }
.cv .iconlocation { display: none; }
.cv h6.ml-1 { margin-left: 0 !important; margin-bottom: 8px; line-height: 1.6; }
.cv h6.title { font-size: 16px; }
.cv h6:not(.title) { color: var(--muted); font-style: normal !important; font-size: 13px !important; }
.cv ul.items { padding-left: 18px; margin: 14px 0 0; font-size: 13px; line-height: 1.8; }
.cv ul.items li { margin-bottom: 7px; }
.cv .table { color: var(--ink); font-size: 13px; }
.cv .table td { line-height: 1.9; }
.cv .table td.text { overflow-wrap: anywhere; }
.cv .table-hover tbody tr:hover { background: transparent; color: inherit; }
.cv .list-group-category { font-size: 14px; color: var(--ink); }
.cv .list-group-name { color: var(--muted); font-size: 13px; }
.cv .list-group-name b { font-weight: 400 !important; }
.cv .list-group-category-icon { display: none; }
.cv a { text-decoration: none !important; }
.cv a:hover { text-decoration: underline !important; }
@media (max-width: 1000px) {
  .reading-layout, .reading-layout-right { gap: 36px; grid-template-columns: 130px minmax(0, 1fr); }
  .reading-layout-right { grid-template-columns: minmax(0, 1fr) 130px; }
  .cv .list-group-item > .row { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 800px) {
  .site-main, .site-footer-inner { width: calc(100% - 56px); }
  .site-main { padding-top: 54px; padding-bottom: 72px; }
  .about-hero { grid-template-columns: minmax(0, 1fr) 32%; column-gap: 6%; }
  .about-biography { font-size: 15px; }
  .about-hero .post-title { font-size: 44px; }
  .publications ol.bibliography > li > .row { grid-template-columns: 170px minmax(0, 1fr); gap: 25px; }
  .project-grid { column-gap: 28px; }
  .reading-layout, .reading-layout-right { display: flex; flex-direction: column; gap: 30px; }
  .reading-sidebar, .reading-layout-right .reading-sidebar { order: 0; padding: 0; }
  #toc-sidebar { position: static; max-height: none; }
  #toc-sidebar > ul { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 22px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  #toc-sidebar > ul > li { flex-shrink: 0; }
  #toc-sidebar > ul > li > ul { display: none; }
}
@media (max-width: 600px) {
  .site-main, .site-footer-inner { width: calc(100% - 40px); }
  .site-main { padding: 42px 0 56px; }
  .post-header { margin-bottom: 36px; }
  .post-header .post-description { font-size: 15px; margin-top: 14px; }
  .about-hero { display: flex; flex-direction: column; gap: 30px; padding-bottom: 0; }
  .about-hero .about-portrait { order: 1; width: 100%; margin: 0; }
  .about-hero .about-copy { order: 2; }
  .about-hero .post-title { font-size: 40px; }
  .about-hero .desc { font-size: 13px; }
  .home-section { margin-top: 42px; padding-top: 23px; }
  .home-section > h2 { font-size: 20px; margin-bottom: 20px; }
  .news .table th { width: 104px !important; padding-right: 16px; font-size: 10px; white-space: normal; }
  .news .table { font-size: 13px; }
  .publications ol.bibliography > li > .row { grid-template-columns: 1fr; gap: 20px; }
  .publications ol.bibliography li .abbr { max-width: 100%; }
  .publications ol.bibliography li .abbr img { max-height: 240px; object-fit: contain; object-position: left; }
  .publications ol.bibliography li .title { font-size: 18px; }
  .project-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .project-category + .project-category { margin-top: 44px; }
  .project-image { margin-bottom: 18px; }
  .project-item h3 { font-size: 19px; }
  .page-action { margin-top: 8px; margin-left: 16px; font-size: 11px; }
  .cv .list-group-item > .row { grid-template-columns: 1fr; gap: 10px; }
  .cv .date-column .table-cv tbody { display: flex; gap: 12px; }
  .cv .date-column .location { margin: 0; }
  .cv .date-column + div { margin-top: 0 !important; }
  .site-footer-inner { padding: 23px 0 28px; gap: 12px; font-size: 10px; }
  .visitor-map-section { margin-top: 44px; }
}
@media print {
  .site-header, .site-footer, .reading-sidebar, .page-action, .visitor-map-section { display: none; }
  .site-main { width: 100%; padding: 0; }
  .reading-layout { display: block; }
  .cv-section, .cv .list-group-item { break-inside: avoid; }
}
/* Secondary reading pages use the same type scale and neutral dividers. */
.header-bar { padding: 0 0 40px; margin: 0; border: 0; text-align: left; }
.header-bar h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
.header-bar h2 { color: var(--muted); font-size: 17px; line-height: 1.65; margin-top: 18px; }
.post-list > li { border-bottom-color: var(--line); padding: 28px 0; }
.post-list .post-title { font-size: 26px; letter-spacing: -.6px; }
.post-meta, .post-tags, .archive-date { color: var(--muted); font-size: 12px; }
.post .card-body { padding: 24px; }
.post .card .card-title { font-weight: 500; }
nav.tag-category-list { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; padding-bottom: 28px; }
