/* Latin Modern document typography and responsive layouts. */
@font-face { font-family: 'Latin Modern'; src: url('/assets/fonts/lmroman10-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Latin Modern'; src: url('/assets/fonts/lmroman10-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Latin Modern'; src: url('/assets/fonts/lmroman10-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Latin Modern Caps'; src: url('/assets/fonts/lmromancaps10-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --ink: #000; --muted: #000; --blue: #303030; --line: #dedede; --wash: #f6f6f6; --body: 'Latin Modern', 'Times New Roman', serif; --heading: 'Latin Modern Caps', 'Times New Roman', serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: #fff; color: var(--ink); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #191919; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 940px; padding: 0 32px; margin: auto; }
.skip { position: absolute; left: 16px; top: -90px; z-index: 10; padding: 10px; background: white; }
.skip:focus { top: 10px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-weight: 400; font-family: var(--heading); }
h1 { font-weight: 700; font-family: var(--body); }
h1 { font-size: 44px; line-height: 1.3; }
h2 { font-size: 40px; line-height: 1.35; }
h3 { font: 700 20px/1.5 var(--body); }
p + p { margin-top: 18px; }
.masthead { padding-top: 40px; }
.brand { text-align: center; padding-bottom: 20px; }
.wordmark { display: block; color: #000; text-decoration: none; text-transform: none; font: 700 48px/1.2 var(--heading); }
.brand-subtitle { font-size: 19px; line-height: 1.6; color: #000; margin-top: 7px; font-style: italic; }
.brand-note { font-size: 15px; margin-top: 4px; color: #000; }
.nav-band { background: white; }
nav.wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0 24px; padding-top: 6px; padding-bottom: 6px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); max-width: 876px; }
nav a { font-size: 16px; line-height: 30px; min-height: 40px; padding: 5px 0; color: #262626; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current='page'] { color: var(--blue); }
nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
main { min-height: 60vh; }
.hero { padding: 32px 0 12px; }
.hero h1 { text-align: left; font-size: 26px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); margin-bottom: 24px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 215px; gap: 40px; max-width: 876px; margin: auto; align-items: start; }
.intro-grid p { font-size: 18px; }
.portrait img { object-fit: cover; object-position: 50% 34%; }
.portrait figcaption { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 21px; font-size: 14px; }
.links a { min-height: 34px; display: inline-flex; align-items: center; }
.meta { color: var(--muted); font: 14px/1.75 var(--body); }
.section { padding: 36px 0 14px; }
.section-title { text-align: left; margin-bottom: 22px; border-bottom: 1px solid var(--ink); padding-bottom: 5px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-title h2 { text-transform: none; font-size: 26px; }
.section-title > a { font-size: 14px; }
.feature-row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 876px; margin: 0 auto 30px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row > figure, .feature-row > .work-image { display: flex; align-items: center; justify-content: center; margin: 0; min-width: 0; }
.feature-row > figure img { width: 100%; height: auto; max-height: 350px; object-fit: contain; }
.feature-row > div { background: white; padding: 16px 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.feature-row h3 { margin-bottom: 10px; font-size: 21px; font-weight: 700; }
.feature-row .meta { margin-bottom: 10px; font-size: 13px; }
.feature-row p { font-size: 18px; }
.feature-row .links { margin-top: 22px; }
.feature-row .links a { border-radius: 0; text-decoration: none; font: 14px/1.8 var(--body); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.print-button { border: 1px solid #303030; border-radius: 0; padding: 6px 17px; min-height: 40px; color: #262626; text-decoration: none; font: 14px/1.8 var(--body); background: transparent; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.print-button:hover { color: white; background: #303030; }
.work-image img { width: 100%; height: 230px; object-fit: contain; }
.work-image.photo img { object-fit: cover; }
.software-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 30px; max-width: 876px; margin: 0 auto; padding: 25px 0; }
.software-row + .software-row { border-top: 1px solid var(--line); }
.software-row h3 { font-size: 20px; }
.software-row .links { margin-top: 10px; }
.pub-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pub-row h2, .pub-row h3 { font: 700 19px/1.45 var(--body); }
.pub-row .meta { padding-top: 4px; }
.pub-row .authors, .pub-row .venue { font-size: 15px; line-height: 1.8; margin-top: 8px; }
.pub-row .authors { color: var(--muted); }
.pub-row .venue { color: var(--blue); }
summary { cursor: pointer; width: fit-content; }
.pub-row[hidden] { display: none; }
.page-head { max-width: 876px; margin: auto; padding: 36px 0 24px; text-align: left; }
.page-head h1 { margin: 10px 0 18px; font-family: var(--body); font-size: 38px; line-height: 1.2; text-wrap: pretty; overflow-wrap: break-word; }
.page-head .lead { font-size: 18px; line-height: 1.8; }
.page-head .links { justify-content: flex-start; }
.page-head .archive-note { margin-top: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 18px 22px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.filters label { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.filters input { background: white; border: 1px solid #888; border-radius: 0; padding: 10px 12px; font: 15px/1.5 var(--body); min-width: 260px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-buttons button { padding: 8px 12px; border: 1px solid #aaa; border-radius: 0; background: white; font: 13px/1.8 var(--body); color: #303030; cursor: pointer; min-height: 40px; transition: background-color 200ms ease, color 200ms ease; }
.filter-buttons button[aria-pressed='true'] { background: #303030; border-color: #303030; color: white; }
.result-count { margin-top: 18px; font-size: 13px; color: var(--muted); }
.empty { padding: 36px 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: 42px; }
.prose { width: 100%; max-width: 780px; margin: 0 auto; overflow-wrap: anywhere; }
.prose p { margin-bottom: 19px; }
.prose h2 { margin: 34px 0 20px; }
.prose h3 { margin: 26px 0 16px; }
.figure-wide { margin: 10px 0 30px; }
.figure-wide img { max-height: 530px; width: 100%; object-fit: contain; }
.figure-wide figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
.note, .source-note { font-size: 13px; line-height: 1.85; color: var(--muted); }
.note { margin: 0 auto 24px; padding: 16px 0; border-top: 1px solid var(--line); max-width: 840px; text-align: left; }
.source-note { max-width: 876px; margin: 18px auto; overflow-wrap: anywhere; }
.archive-note { max-width: 700px; margin: 0 auto 24px; font-size: 14px; line-height: 1.8; color: var(--muted); text-align: center; }
.timeline-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 30px; max-width: 876px; margin: 0 auto 30px; }
.timeline-row h3 { font-size: 19px; margin-bottom: 9px; }
.timeline-row p { font-size: 15px; }
.background-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; max-width: 876px; margin: auto; }
.background-grid h3 { margin: 10px 0 14px; }
.background-grid ul { padding-left: 20px; }
.project-note { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; max-width: 876px; margin: 0 auto 38px; }
.project-note h3 { font-size: 18px; }
.project-note p { font-size: 15px; }
.course-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.course-row:first-of-type { margin-top: 30px; }
.course-row p + p { margin-top: 15px; }
.course-row .course-title { font: 400 19px/1.6 var(--body); text-transform: none; }
.course-highlights { color: #575757; }
.course-detail { overflow-wrap: anywhere; }
.course-detail ul { padding-left: 18px; margin: 0; }
.course-detail li { margin-bottom: 7px; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.photo-grid img { width: 100%; height: auto; }
.photo-grid.slides { margin: 0 auto 24px; }
.footer { margin-top: 64px; padding: 48px 0 27px; border-top: 1px solid var(--line); text-align: center; }
.footer h2 { text-transform: none; margin-bottom: 22px; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; }
.contact-links a { min-height: 40px; display: inline-flex; align-items: center; }
.footer-note { font-size: 14px; margin-top: 30px; }
.site-credit { font-size: 12px; margin-top: 24px; color: var(--muted); }
.print-button { cursor: pointer; }
.cv .section { padding: 30px 0 10px; }
.cv .section-title { text-align: left; max-width: 876px; margin: 0 auto 28px; }
.cv > .section > p { max-width: 876px; margin-left: auto; margin-right: auto; }
.cv .print-controls { justify-content: center; margin-bottom: 20px; }
.no-js { font-size: 14px; }
@view-transition { navigation: auto; types: SlideHorizontal; }
::view-transition-old(root) { animation: page-out 600ms cubic-bezier(.83, 0, .17, 1) both; }
::view-transition-new(root) { animation: page-in 600ms cubic-bezier(.83, 0, .17, 1) both; }
@keyframes page-out { 0% { transform: translateX(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }
@keyframes page-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 760px) {
  .wrap { padding: 0 23px; }
  .masthead { padding-top: 19px; }
  .brand { padding-bottom: 22px; }
  .wordmark { font-size: 42px; line-height: 1.35; }
  .brand-subtitle { font-size: 21px; }
  .brand-note { font-size: 13px; }
  nav.wrap { gap: 0 20px; padding-top: 5px; padding-bottom: 5px; }
  nav a { font-size: 13px; min-height: 40px; }
  .hero { padding: 27px 0 20px; }
  .hero h1 { margin-bottom: 26px; }
  .intro-grid { grid-template-columns: minmax(0, 1fr) 155px; gap: 25px; }
  h2 { font-size: 33px; }
  .section-title { margin-bottom: 25px; }
  .feature-row h3 { font-size: 19px; }
  .pub-row { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .pub-row h2, .pub-row h3 { font-size: 16px; }
  .two-col { gap: 28px; }
  .page-head { padding: 32px 0 28px; }
  .page-head h1 { font-size: 36px; overflow-wrap: anywhere; }
  .page-head .lead { font-size: 16px; }
  .course-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 18px 28px; }
  .course-title { grid-column: 1 / -1; }
  .timeline-row { grid-template-columns: 125px minmax(0, 1fr); gap: 25px; }
  .project-note { grid-template-columns: 180px minmax(0, 1fr); gap: 25px; }
}
@media (max-width: 550px) {
  .wrap { padding: 0 20px; }
  nav a { min-height: 42px; }
  .intro-grid { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 23px; }
  .portrait { display: grid; align-items: center; width: 100%; }
  .portrait figcaption { margin: 0; font-size: 13px; max-width: 175px; }
  .intro-grid .links { margin-top: 15px; }
  .background-grid { gap: 0; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .photo-grid { grid-template-columns: 1fr; }
  .feature-row { margin-bottom: 28px; }
  .feature-row > figure img { max-height: 290px; }
  .background-grid > div + div { margin-top: 28px; }
  .software-row, .timeline-row, .project-note { gap: 9px; }
  .software-row { padding: 23px 0; }
  .pub-row { grid-template-columns: 1fr; gap: 7px; padding: 23px 0; }
  .pub-row .meta { font-size: 13px; padding: 0; }
  .pub-row h2, .pub-row h3 { font-size: 17px; }
  .pub-row .authors { font-size: 13px; }
  .filters { gap: 17px; }
  .filters label { width: 100%; display: block; }
  .filters input { display: block; width: 100%; min-width: 0; margin-top: 8px; }
  .filter-buttons { gap: 8px; }
  .filter-buttons button { font-size: 13px; min-height: 43px; }
  .course-row { gap: 16px; padding: 28px 0; }
  .course-row .course-title { font-size: 20px; }
  .course-highlights { padding: 16px 18px; background: var(--wash); }
  .photo-grid { gap: 22px; }
  .footer { margin-top: 40px; }
  .contact-links { gap: 5px 22px; }
  .contact-links a:first-child { justify-content: center; }
  .footer-note { margin: 26px auto 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  body { font: 11px/1.5 var(--body); }
  .wrap { max-width: none; padding: 0; }
  header, .footer, .skip, .print-controls { display: none !important; }
  main { min-height: 0; }
  .cv h1 { font-size: 34px; }
  .cv .page-head { padding: 0 0 14px; text-align: left; }
  .cv .page-head h1 { margin: 5px 0 10px; }
  .cv .page-head .lead { font-size: 12px; }
  .cv .page-head .links { margin-top: 8px; justify-content: flex-start; }
  .cv .links a { min-height: 0; }
  .cv .section { break-inside: avoid; }
  .cv .section-title h2 { margin: 0; }
  .cv .timeline-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
  .cv .timeline-row h3 { font: 13px/1.5 var(--body); margin-bottom: 4px; }
  .cv .timeline-row p, .cv .links, .cv .meta { font: 11px/1.5 var(--body); }
  .cv p { font-size: 11px; }
  a { color: inherit; text-decoration: none; }
}
.feature-row .links a { justify-content: center; color: black; border-color: black; }
.figure-zoom { display: block; text-decoration: none; }
.figure-zoom img { border: 1px solid #e3e3e3; }
.figure-hint { display: block; margin-top: 9px; text-align: center; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.lightbox { border: 0; padding: 22px; width: min(1280px, calc(100vw - 40px)); max-height: calc(100dvh - 40px); background: white; color: black; }
.lightbox::backdrop { background: rgb(0 0 0 / 72%); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; font-size: 15px; }
.lightbox-bar button { font: 14px var(--body); padding: 10px 18px; min-height: 44px; border: 1px solid black; border-radius: 0; background: white; cursor: pointer; }
.lightbox > img { width: 100%; max-height: calc(100dvh - 195px); object-fit: contain; }
.original-image { display: block; width: fit-content; margin: 12px auto 0; font-size: 13px; }
@media (max-width: 550px) {
  .lightbox { padding: 14px; width: calc(100vw - 24px); }
  .lightbox-bar { font-size: 13px; }
}
.hero .intro-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; }
.portrait img { width: 180px; height: 205px; }
.feature-row .links a { min-width: 0; min-height: 32px; border: 0; border-bottom: 1px solid; padding: 0; background: transparent; }
.feature-row .links a:hover { background: transparent; color: #555; }
.feature-row > figure, .feature-row > .work-image { padding: 0; }
.personal-section .prose { text-align: left; max-width: none; }
.personal-section .links { justify-content: flex-start; }
.footer h2 { font-size: 28px; }
.cv .section-title { margin-bottom: 18px; }
.cv .section-title h2 { font-size: 26px; }
@media (max-width: 760px) {
  nav.wrap { margin: 0 23px; padding-left: 0; padding-right: 0; }
  .hero h1, .section-title h2 { font-size: 25px; }
  .section { padding: 28px 0 12px; }
  .feature-row { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .feature-row > div { padding: 12px 0; }
  .feature-row p, .intro-grid p { font-size: 17px; }
  .work-image img { height: 210px; }
  .section-title { flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 550px) {
  body { font-size: 17px; line-height: 1.65; }
  .wordmark { font-size: 35px; }
  .brand-subtitle { font-size: 18px; }
  .masthead { padding-top: 24px; }
  nav.wrap { margin: 0 20px; column-gap: 20px; }
  nav a { font-size: 15px; }
  .hero h1, .section-title h2 { font-size: 24px; }
  .hero .intro-grid { gap: 22px; }
  .portrait img { width: 112px; height: 125px; }
  .page-head h1 { font-size: 30px; overflow-wrap: break-word; }
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
  .work-image img { height: auto; max-height: 310px; }
  .feature-row > figure, .feature-row > .work-image { padding: 0; }
  .feature-row > div { padding: 8px 0; }
  .footer-note { max-width: none; }
}
@media print {
  .cv .section-title h2 { font-size: 20px; }
  .cv .page-head h1 { font-size: 32px; }
}
.npj-paper .page-head h1 { max-width: 850px; font-size: 36px; }
@media (max-width: 650px) {
  .npj-paper .page-head h1 { font-size: 29px; }
}
@media print {
  html { scroll-behavior: auto; }
  .filters, .no-js, .figure-hint, .lightbox { display: none !important; }
  .pub-row { break-inside: avoid; }
  h1, h2, h3, .section-title { break-after: avoid; }
  figure { break-inside: avoid; }
  .figure-wide img { max-height: 180mm !important; width: auto; max-width: 100%; margin: auto; }
  .npj-paper .page-head h1 { font-size: 25px; }
}
.wordmark, .section-title h2, .contact-links a, .course-title, .course-highlights { overflow-wrap: anywhere; min-width: 0; }
.section-title > a { flex-shrink: 1; overflow-wrap: anywhere; }
.course-row > *, .timeline-row > *, .background-grid > *, .feature-row > *, .project-note > * { min-width: 0; }
@media (max-width: 550px) {
  .course-row, .timeline-row, .software-row, .project-note, .background-grid { grid-template-columns: minmax(0, 1fr); }
  .course-row, .project-note p, .timeline-row p { font-size: 16px; }
}
.lightbox-bar > p { min-width: 0; overflow-wrap: anywhere; }
.lightbox-bar form { flex-shrink: 0; }
@media (max-width: 550px) {
  .lightbox-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lightbox-bar form { grid-row: 1; justify-self: end; margin: 0; }
}
.course-index { margin: 26px 0 12px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course-index summary { font-size: 17px; text-underline-offset: 4px; }
.course-index summary:hover { text-decoration: underline; }
.course-index ol { columns: 2; column-gap: 44px; padding-left: 24px; font-size: 16px; margin-bottom: 0; }
.course-index li { break-inside: avoid; padding-left: 4px; margin: 0 0 10px; }
@media (max-width: 650px) {
  .course-index ol { columns: 1; }
}
@media print {
  .course-index { display: none; }
  p { orphans: 3; widows: 3; }
  .pub-row { padding: 12px 0; grid-template-columns: 65px minmax(0, 1fr); gap: 16px; }
  .pub-row h2, .pub-row h3 { font-size: 14px; line-height: 1.4; }
  .pub-row .authors, .pub-row .venue, .pub-row .meta { font-size: 12px; line-height: 1.5; }
  .pub-row .authors, .pub-row .venue { margin-top: 6px; }
}
.identity-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 16px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 16px; }
.identity-line li { display: inline-flex; align-items: center; gap: 16px; }
.identity-line li + li::before, .contact-links a + a::before, .cv .page-head .links a + a::before { content: ''; display: inline-block; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.contact-links a { gap: 20px; }
.cv .page-head .links a { gap: 18px; }
.timeline-row h3, .software-row h3, .project-note h3 { font-weight: 700; }
.hub-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; padding: 0; margin: 0; }
.hub-links a { display: inline-block; padding: 7px 0; overflow-wrap: anywhere; }
.cv-details { margin: 10px 0 0; padding-left: 18px; }
.cv-details li + li { margin-top: 6px; }
/* Screen annotations stay at 16 px; smaller document sizes above apply to print. */
@media screen {
  .meta, .links, .pub-row .authors, .pub-row .venue, .portrait figcaption, .figure-wide figcaption, .note, .source-note, .archive-note, .footer-note, .site-credit, .filter-buttons button, .result-count, .figure-hint, .original-image, .section-title > a, .feature-row .meta, .feature-row .links a, .contact-links, .no-js { font-size: 16px; color: #000; }
  .filter-buttons button[aria-pressed='true'] { color: #fff; }
  .pub-row .meta, .filters label, .filters input, nav a { font-size: 16px; }
  .course-row, .course-highlights, .project-note p, .timeline-row p { font-size: 17px; color: #000; }
  .course-row .course-title { font-size: 20px; font-weight: 700; }
  .portrait figcaption { line-height: 1.55; }
}
@media (max-width: 550px) {
  .identity-line { gap: 6px 12px; }
  .identity-line li { gap: 12px; }
  .hub-links { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .contact-links a:first-child { width: auto; }
  .portrait { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
}
@media print {
  .cv .section { padding: 7px 0; }
  .cv .section-title { margin-bottom: 6px; }
  .cv .timeline-row { margin-bottom: 7px; }
  .cv .timeline-row h3 { font-weight: 700; }
  .cv .page-head { padding-bottom: 8px; }
  .cv-details { margin-top: 6px; font-size: 11px; line-height: 1.4; }
  .cv-details li + li { margin-top: 4px; }
  .cv .cv-detail { margin-top: 6px; }
}
@media (max-width: 550px) {
  .identity-line { display: grid; grid-template-columns: max-content max-content; column-gap: 16px; text-align: left; }
  .identity-line li:nth-child(odd)::before { display: none; }
}
@media screen {
  .print-button, .lightbox-bar, .lightbox-bar button { font-size: 16px; color: #000; }
}
.paper-files { margin-top: 8px; font-size: 16px; }

/* Keep the original travel-photo order: landscape, two portraits, two landscapes. */
.travel-gallery > figure:first-child { grid-column: 1 / -1; }
