/* Personal research homepage.
   Content stays in assets/js/data.js. No font download, UI library, or build step.
   Width, text, and link colors can be changed here. */
:root {
  --bg: #fff;
  --ink: #252a30;
  --muted: #616770;
  --line: #e4e6e8;
  --accent: #285e8b;
  --surface: #f6f7f8;
  --max-width: 980px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.8 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
button, input, select { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; }
img { display: block; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: #dce8f1; color: #172735; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; 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: 16px; top: -100px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.demo-notice { border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.demo-inner { max-width: var(--max-width); padding: 8px 24px; margin: auto; display: flex; gap: 12px; }
.demo-inner strong { white-space: nowrap; }

/* Plain navigation, not a product masthead. */
.site-header { background: var(--bg); }
.header-inner { max-width: var(--max-width); padding: 0 24px; min-height: 74px; margin: auto; display: flex; align-items: center; gap: 26px; border-bottom: 1px solid var(--line); }
.brand { margin-right: auto; flex-shrink: 0; color: var(--ink); }
.brand-name { font-size: 14px; font-weight: 600; }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.primary-nav a { font-size: 13px; color: var(--muted); padding: 10px 0; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.language-switch { display: flex; align-items: center; gap: 5px; margin-left: 2px; flex-shrink: 0; }
.language-switch button { border: 0; background: none; color: var(--muted); font-size: 12px; min-height: 40px; padding: 4px; }
.language-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.language-switch span { color: #858a90; font-size: 11px; }
.menu-toggle { display: none; }

/* A name, a few paragraphs, and a photograph. */
.site-layout { max-width: var(--max-width); padding: 52px 24px 0; margin: auto; }
.intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 56px; align-items: start; padding-bottom: 44px; }
.about-section { min-width: 0; }
.name-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 17px; }
.name-line h1 { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.3; }
html[lang="en"] .name-line h1 { font-family: var(--serif); font-size: 39px; font-weight: 400; letter-spacing: -.025em; }
.secondary-name { color: var(--muted); font-size: 17px; }
.intro-affiliation { margin-top: 9px; color: var(--muted); font-size: 14px; }
.intro-affiliation a { color: inherit; }
.about-copy { margin-top: 24px; }
.about-copy p { font-size: 15px; line-height: 1.95; word-break: keep-all; }
html[lang="en"] .about-copy p { line-height: 1.8; word-break: normal; }
.about-copy p + p { margin-top: 12px; }
.profile-rail { padding-top: 5px; }
.portrait-frame { width: 100%; aspect-ratio: 336 / 396; background: var(--surface); }
.profile-photo { width: 100%; height: 100%; object-fit: contain; }
.portrait-monogram { display: grid; place-items: center; height: 100%; font: 48px var(--serif); color: var(--muted); }
.profile-location { color: var(--muted); font-size: 11px; margin-top: 9px; text-align: center; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 21px; font-size: 13px; }
.profile-email { overflow-wrap: anywhere; }
.interest-block { margin-top: 22px; font-size: 12px; color: var(--muted); }
.interest-block h2 { display: inline; margin-right: 9px; font-size: inherit; font-weight: 600; }
.interest-list { display: inline; }
.interest-list li { display: inline; }
.interest-list li + li::before { content: " · "; white-space: pre; }

/* Sections use the same document rhythm, without card wrappers. */
.main-column { min-width: 0; }
.main-column > .section { border-top: 1px solid var(--line); padding: 30px 0 34px; scroll-margin-top: 24px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
html[lang="en"] .section-heading h2 { font: 400 26px/1.3 var(--serif); letter-spacing: -.02em; }
.section-description { font-size: 13px; color: var(--muted); margin-top: 6px; }
.inline-link { text-underline-offset: 3px; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent); font-size: inherit; line-height: inherit; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 13px; min-height: 38px; border: 1px solid #bcc5ce; border-radius: 2px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.5; }
.button:hover { background: var(--surface); }
.empty-state { padding: 24px 0; color: var(--muted); font-size: 14px; }
.empty-state .text-button { margin-top: 10px; }

/* News: date + one paragraph, with supporting links underneath. */
.news-list { display: grid; gap: 16px; }
.news-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.news-list time { color: var(--muted); font-size: 12px; line-height: 1.95; white-space: nowrap; font-variant-numeric: tabular-nums; }
.news-list p { font-size: 14px; line-height: 1.8; word-break: keep-all; }
html[lang="en"] .news-list p { word-break: normal; }
.news-resources { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; margin-top: 2px; }
.news-resources:empty { display: none; }
.news-toggle { margin: 19px 0 0 116px; font-size: 12px; }

/* Filters are available, but do not dominate a short publication list. */
#publications { position: relative; }
#publications-intro { padding-right: 145px; }
.publication-tools { margin: -46px 0 26px; }
.publication-tools > summary { display: list-item; width: max-content; margin-left: auto; color: var(--muted); font-size: 12px; cursor: pointer; min-height: 28px; padding: 4px 0; }
.publication-tools > summary:hover { color: var(--accent); }
.publication-filters { margin-top: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) 116px 130px; gap: 9px; }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid #c6ccd2; border-radius: 2px; padding: 0 11px; }
.search-field svg { flex-shrink: 0; color: var(--muted); }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: none; padding: 9px 0; background: none; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.select-field select { width: 100%; height: 42px; border: 1px solid #c6ccd2; border-radius: 2px; background: #fff; color: var(--ink); font-size: 13px; padding: 0 8px; }
.filter-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.checkbox-field { display: flex; align-items: center; gap: 7px; }
.checkbox-field input { accent-color: var(--accent); }
.publication-year-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.publication-year-group + .publication-year-group { margin-top: 27px; }
.year-heading { padding-top: 2px; color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.paper-list { min-width: 0; }
.paper-list > li + li { margin-top: 26px; }
.paper { min-width: 0; }
.paper-title { font-size: 16px; font-weight: 600; letter-spacing: -.012em; line-height: 1.55; }
.paper-title a { color: var(--ink); }
.paper-title a:hover { color: var(--accent); }
.paper-authors { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.author-me { color: var(--ink); font-weight: 600; }
.paper-venue { margin-top: 3px; color: var(--muted); font-size: 13px; font-style: italic; line-height: 1.75; }
.paper-note { margin-left: 10px; font-style: normal; }
.paper-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 5px; font-size: 12px; }
.paper-actions:empty { display: none; }
.resource-link { display: inline; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; line-height: 1.8; }
.resource-link:hover, .resource-link[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.publication-panel { margin-top: 12px; padding: 12px 16px; border-left: 2px solid #b6c5d1; background: var(--surface); color: var(--ink); font-size: 13px; }
.bib-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; }
.bib-panel pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.7 var(--mono); }

/* Honors and projects, written as records rather than scorecards. */
.challenge-list { display: grid; gap: 22px; }
.challenge-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.challenge-year { color: var(--muted); font-size: 13px; padding-top: 1px; }
.challenge-content { min-width: 0; }
.challenge-row h3 { font-size: 15px; font-weight: 600; line-height: 1.6; }
.challenge-description { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 3px 0; }
.challenge-row .inline-link { font-size: 12px; }
.challenge-certificate { display: block; width: 90px; }
.challenge-certificate img { width: 90px; height: auto; border: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.project-card { min-width: 0; }
.project-card h3 { font-size: 15px; font-weight: 600; line-height: 1.6; }
.project-card > p { color: var(--muted); font-size: 13px; line-height: 1.85; margin-top: 7px; word-break: keep-all; }
html[lang="en"] .project-card > p { word-break: normal; }
.project-bottom { margin-top: 10px; font-size: 12px; }
.project-status { color: var(--muted); }
.project-bottom > div { margin-top: 3px; }

/* Actual photographs do the visual work. Thumbnails do not crop the originals. */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gallery-item { margin: 0; min-width: 0; }
.gallery-image { width: 100%; height: 170px; padding: 0; border: 0; background: transparent; }
.gallery-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-image:hover { opacity: .9; }
.gallery-item figcaption { padding-top: 12px; }
.gallery-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.gallery-meta span { white-space: nowrap; }
.gallery-item h3 { font-size: 13px; font-weight: 600; line-height: 1.65; margin-top: 6px; }
.gallery-item h3 a { color: inherit; }
.gallery-item p { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 4px; }
.gallery-item small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.photo-dialog { width: min(1000px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); }
.photo-dialog::backdrop { background: #17222ed9; }
body:has(.photo-dialog[open]) { overflow: hidden; }
.photo-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.photo-dialog-header h2 { font-size: 16px; font-weight: 600; }
.photo-dialog-header .button { flex-shrink: 0; }
#photo-dialog-image { width: 100%; height: min(63dvh, 740px); object-fit: contain; }
#photo-dialog-caption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 12px; }
.photo-dialog-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; }
#photo-dialog-count { min-width: 42px; text-align: center; font-size: 12px; }

/* Academic record and practical contact information. */
.experience-block + .experience-block { margin-top: 26px; }
.subsection-heading { margin-bottom: 13px; color: var(--muted); font-size: 13px; font-weight: 600; }
.timeline, .award-list { display: grid; gap: 17px; }
.timeline li, .award-list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.timeline-period, .award-list li > span { color: var(--muted); font-size: 12px; line-height: 2; }
.timeline h3, .timeline h4, .award-list h3, .award-list h4 { font-size: 14px; font-weight: 600; line-height: 1.7; }
.timeline-institution, .timeline-description, .award-list p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.closing-row { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.closing-row .section-heading { margin-bottom: 10px; }
.closing-row .section-heading h2 { font-size: 17px; }
html[lang="en"] .closing-row .section-heading h2 { font-size: 21px; }
.contact-section > p { color: var(--muted); font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 5px; font-size: 13px; }
.copy-email { font-size: 11px; color: var(--muted); }
.site-footer { max-width: calc(var(--max-width) - 48px); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.site-footer > div { display: flex; gap: 20px; align-items: center; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 10px 16px; background: var(--ink); color: #fff; font-size: 13px; z-index: 80; }
.clipboard-helper { position: fixed; left: -9999px; top: 0; }
.noscript-message { max-width: 800px; margin: 24px auto; padding: 24px; border: 1px solid var(--line); }
.example-label { color: #6e5340; font-size: 11px; }

/* The CV uses the same content, with a paper-like layout and print styles. */
.cv-toolbar { gap: 22px; }
.back-link { color: var(--muted); font-size: 13px; }
.cv-sheet { max-width: 900px; margin: 44px auto 54px; padding: 0 24px; }
.cv-title-block { display: flex; justify-content: space-between; align-items: start; gap: 32px; border-bottom: 1px solid var(--ink); padding-bottom: 24px; }
.eyebrow { font-size: 12px; color: var(--muted); }
.cv-title-block h1 { font-size: 32px; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; }
html[lang="en"] .cv-title-block h1 { font: 400 38px/1.3 var(--serif); }
.cv-secondary-name { font-size: 14px; color: var(--muted); margin-top: 5px; }
.cv-contact { text-align: right; font-size: 12px; line-height: 1.85; color: var(--muted); max-width: 52%; }
.cv-social { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; margin-top: 16px; }
.cv-social:empty { display: none; }
.cv-section { margin-top: 28px; }
.cv-section > h2 { font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 15px; }
html[lang="en"] .cv-section > h2 { font-family: var(--serif); font-size: 21px; font-weight: 400; }
.cv-section > p { font-size: 13px; }
.cv-publications > li + li { margin-top: 22px; }
.paper-meta { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.paper-compact .paper-title { font-size: 14px; }
.paper-compact .paper-authors, .paper-compact .paper-venue { font-size: 12px; }
.cv-project + .cv-project { margin-top: 16px; }
.cv-project h3 { font-size: 14px; font-weight: 600; }
.cv-project p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.cv-update { font-size: 11px; color: var(--muted); margin-top: 34px; }

@media (max-width: 900px) {
  .header-inner { gap: 18px; }
  .primary-nav { gap: 16px; }
  .intro-layout { grid-template-columns: minmax(0, 1fr) 156px; gap: 32px; }
  .gallery-grid { gap: 18px; }
  .gallery-image { height: 150px; }
}
@media (max-width: 760px) {
  .header-inner { padding: 0 20px; min-height: 64px; gap: 18px; position: relative; flex-wrap: wrap; }
  .brand-name { font-size: 13px; }
  .menu-toggle { display: block; order: 2; padding: 6px 0; min-height: 40px; border: 0; background: none; color: var(--muted); font-size: 12px; }
  .primary-nav { display: none; flex-basis: 100%; order: 3; gap: 4px 22px; padding: 0 0 15px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { font-size: 13px; }
  .language-switch { margin-left: 0; }
  .site-layout { padding: 34px 20px 0; }
  .intro-layout { grid-template-columns: minmax(0, 1fr) 124px; gap: 24px; padding-bottom: 32px; }
  .name-line h1 { font-size: 30px; }
  html[lang="en"] .name-line h1 { font-size: 34px; }
  .secondary-name { font-size: 14px; }
  .about-copy { margin-top: 20px; }
  .about-copy p { font-size: 14px; }
  .profile-links { margin-top: 17px; gap: 4px 15px; }
  .interest-block { margin-top: 18px; }
  .main-column > .section { padding: 26px 0 30px; }
  .section-heading h2 { font-size: 21px; }
  .news-list li, .publication-year-group, .timeline li, .award-list li { grid-template-columns: 78px minmax(0, 1fr); gap: 16px; }
  .news-list p { font-size: 13px; }
  .news-list time { font-size: 11px; }
  .news-toggle { margin-left: 94px; }
  .challenge-row { grid-template-columns: 78px minmax(0, 1fr); gap: 12px 16px; }
  .challenge-certificate { grid-column: 2; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .gallery-image { height: 210px; }
  .site-footer { margin: 0 20px; max-width: none; }
  .cv-sheet { padding: 0 20px; margin-top: 30px; }
  .cv-toolbar { gap: 12px; }
  .cv-toolbar .back-link { display: none; }
}
@media (max-width: 540px) {
  .intro-layout { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 0 18px; position: relative; }
  .about-section { display: contents; }
  .name-line { grid-column: 1; align-self: end; display: block; padding-top: 14px; }
  .name-line h1 { font-size: 30px; }
  html[lang="en"] .name-line h1 { font-size: 32px; }
  .secondary-name { display: block; margin-top: 5px; }
  .intro-affiliation { grid-column: 1; align-self: start; font-size: 12px; margin-top: 9px; }
  .profile-rail { grid-column: 2; grid-row: 1 / 3; padding-top: 0; }
  .profile-location { font-size: 10px; margin-top: 6px; }
  .about-copy, .profile-links, .interest-block { grid-column: 1 / -1; }
  .about-copy { margin-top: 24px; }
  .profile-links { font-size: 12px; gap: 4px 17px; }
  .profile-email { flex-basis: 100%; }
  .interest-block { font-size: 11px; line-height: 1.9; }
  .interest-block h2 { display: block; margin-bottom: 3px; }
  .news-list { gap: 18px; }
  .news-list li { grid-template-columns: 68px minmax(0, 1fr); gap: 13px; }
  .news-list time { font-size: 10px; padding-top: 1px; }
  .news-resources { font-size: 11px; gap: 2px 12px; margin-top: 4px; }
  .news-toggle { margin-left: 81px; }
  #publications-intro { padding-right: 120px; }
  .publication-tools { margin-top: -44px; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .publication-year-group { grid-template-columns: 1fr; gap: 14px; }
  .year-heading { font-size: 12px; }
  .paper-title { font-size: 15px; }
  .paper-authors, .paper-venue { font-size: 12px; }
  .paper-list > li + li { margin-top: 25px; }
  .paper-actions { gap: 4px 18px; }
  .resource-link { padding: 4px 0; }
  .challenge-row { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .challenge-row h3 { font-size: 14px; }
  .challenge-year { font-size: 12px; }
  .challenge-description { font-size: 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { gap: 24px 18px; }
  .gallery-image { height: 174px; }
  .gallery-meta { font-size: 10px; }
  .gallery-item h3 { font-size: 12px; }
  .gallery-item p, .gallery-item small { font-size: 11px; }
  .timeline li, .award-list li { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .timeline h3, .timeline h4, .award-list h3, .award-list h4 { font-size: 13px; }
  .timeline-period, .award-list li > span { font-size: 11px; }
  .timeline-institution, .timeline-description, .award-list p { font-size: 12px; }
  .closing-row { grid-template-columns: 1fr; gap: 22px; padding-bottom: 28px; }
  .site-footer { display: block; font-size: 10px; }
  .site-footer > div + div { margin-top: 7px; justify-content: space-between; }
  .photo-dialog { padding: 14px; }
  .photo-dialog-header h2 { font-size: 14px; }
  .photo-dialog-controls { gap: 10px; }
  .photo-dialog-controls .button { font-size: 12px; padding: 6px 9px; }
  #photo-dialog-caption { font-size: 12px; }
  .cv-toolbar .button { font-size: 11px; padding: 5px 8px; }
  .cv-toolbar .brand-name { font-size: 12px; }
  .cv-toolbar { gap: 10px; }
  .cv-title-block { display: block; }
  .cv-contact { max-width: none; text-align: left; margin-top: 18px; }
  .cv-title-block h1 { font-size: 28px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 12px; padding: 0 16px; }
  .site-layout { padding-left: 16px; padding-right: 16px; }
  .intro-layout { grid-template-columns: minmax(0, 1fr) 94px; gap: 0 14px; }
  html[lang="en"] .name-line h1 { font-size: 28px; }
  .gallery-grid { gap: 20px 14px; }
  .gallery-image { height: 150px; }
  .site-footer { margin-left: 16px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  body { color: #111; background: white; font-size: 10pt; }
  .site-header, .skip-link, .site-footer, .toast, .paper-actions, .publication-tools, .news-toggle, .photo-dialog, .photo-preview { display: none !important; }
  .cv-sheet { max-width: none; margin: 0; padding: 0; }
  .cv-title-block { display: flex; padding-bottom: 16px; }
  .cv-contact { max-width: 52%; text-align: right; margin: 0; }
  .cv-section { margin-top: 20px; }
  .cv-section > h2 { break-after: avoid; font-size: 12pt; }
  .cv-title-block h1, html[lang="en"] .cv-title-block h1 { font-size: 25pt; }
  .cv-contact, .paper-authors, .paper-venue { font-size: 9pt; }
  .paper, .timeline li, .award-list li, .cv-project, .gallery-item { break-inside: avoid; }
  .cv-publications > li + li { margin-top: 16px; }
  .site-layout { max-width: none; padding: 0; }
  .section-heading { break-after: avoid; }
  .main-column > .section { padding: 18px 0; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-image { height: 100px; }
  .profile-rail { display: block; }
  a { color: inherit; }
}

/* Prominent results within the otherwise restrained awards list. */
.challenge-ranking { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.challenge-rank { color: var(--accent); font: 600 46px/1.1 var(--font); letter-spacing: -.04em; }
.challenge-rank-word { font-size: 27px; letter-spacing: -.02em; }
@media (max-width: 760px) { .challenge-rank { font-size: 38px; } .challenge-rank-word { font-size: 24px; } }
@media (max-width: 540px) { .challenge-row { grid-template-columns: 68px minmax(0, 1fr); } .challenge-rank { font-size: 34px; } .challenge-rank-word { font-size: 22px; } }
