/* Research journey and the dedicated teaching section. */
.site-nav { gap: 17px; }
.research-journey { margin-bottom: 45px; }
.research-journey-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 35px; margin-bottom: 25px; }
.research-journey-heading h3, .project-collection-heading { font: 30px/1.25 var(--serif); letter-spacing: -.6px; color: var(--paper); }
.research-journey-heading p { max-width: 405px; color: #c3d0b9; font-size: 12px; line-height: 1.85; }
.research-journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.research-journey-card { min-width: 0; padding: 26px; background: #244a40; border: 1px solid #526e57; border-radius: 5px; }
.research-journey-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.research-journey-top > span:last-child { font: 9px/1.6 var(--mono); color: #ced8c4; text-align: right; }
.academic-brand { display: inline-flex; align-items: center; justify-content: center; width: 135px; height: 52px; flex-shrink: 0; padding: 9px 12px; border: 1px solid #d7ddce; background: #fcfcf5; border-radius: 3px; }
.academic-brand img { width: 100%; height: 100%; object-fit: contain; }
.academic-brand.dark { background: var(--green); border-color: var(--green); }
.research-journey-kind { font-size: 9px; color: #c2d1b7; line-height: 1.8; margin-bottom: 12px; }
.research-journey-card h4 { font: 25px/1.24 var(--serif); color: var(--paper); margin: 0 0 17px; letter-spacing: -.4px; }
.research-journey-question { font-size: 12px; line-height: 1.9; color: #e0e6d6; }
.research-journey-details { margin-top: 24px; border-block: 1px solid #58705a; }
.research-journey-details summary, .teaching-details summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; min-height: 47px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; }
.research-journey-details summary { color: #e1ebd6; }
.research-journey-details summary::-webkit-details-marker, .teaching-details summary::-webkit-details-marker { display: none; }
.research-journey-details summary svg, .teaching-details summary svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .18s; }
.research-journey-details[open] summary svg, .teaching-details[open] summary svg { transform: rotate(180deg); }
.research-journey-details summary:focus-visible { outline: 2px solid #e2ecd1; outline-offset: 3px; }
.research-journey-body { padding: 8px 0 22px; }
.research-journey-body .research-reference-title { font: 17px/1.55 var(--serif); color: #eff0dc; margin-bottom: 24px; }
.research-journey-body dl { margin: 0; }
.research-journey-body dl > div + div { margin-top: 20px; }
.research-journey-body dt { color: #d6e4c7; font-size: 10px; font-weight: 600; margin-bottom: 7px; }
.research-journey-body dd, .research-journey-body li { color: #d6dfcd; font-size: 12px; line-height: 1.85; }
.research-journey-body dd { margin: 0; }
.research-journey-body ul { margin: 0; padding-left: 16px; }
.research-journey-body li + li { margin-top: 8px; }
.research-journey-source { margin-top: 24px; padding-top: 18px; border-top: 1px solid #526e57; color: #bfceb5; font-size: 10px; line-height: 1.8; }
.academic-source-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.academic-source-links a { display: inline-flex; gap: 7px; align-items: center; min-height: 32px; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.research-journey-status { display: block; margin-top: 17px; font: 9px/1.4 var(--mono); color: #bbd0a7; }
.project-collection-heading { margin-bottom: 23px; }

.teaching-section { background: #eef1e5; border-block: 1px solid #d5dccb; }
.teaching-section .section-heading > p { max-width: 345px; font-size: 13px; }
.teaching-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cbd5bd; border-radius: 4px; margin-bottom: 30px; background: #f8f9f0; }
.teaching-facts > div { display: flex; align-items: center; gap: 18px; padding: 19px 25px; }
.teaching-facts > div + div { border-left: 1px solid #cbd5bd; }
.teaching-facts strong { font: 30px/1.2 var(--serif); color: var(--green); }
.teaching-facts span { font-size: 11px; color: var(--muted); }
.teaching-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 25px; }
.teaching-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.teaching-filters button { border: 1px solid #c8d2bb; border-radius: 3px; padding: 9px 15px; min-height: 44px; background: #f8f9f0; color: var(--green); font-size: 11px; }
.teaching-filters button.active { background: var(--green); color: var(--paper); border-color: var(--green); }
.teaching-filters button:not(.active):hover { background: #dfe7d3; }
.teaching-count { font-size: 10px; color: var(--muted); }
.teaching-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.teaching-card { min-width: 0; padding: 25px; background: #fcfcf6; border: 1px solid #ccd5bf; border-radius: 5px; }
.teaching-card.planned { background: #e5ebd9; border: 1px dashed #90a379; }
.teaching-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.teaching-card .academic-brand { width: 125px; height: 49px; }
.teaching-status { font-size: 8px; line-height: 1.5; padding: 5px 7px; color: var(--green-mid); background: #e8eedc; border-radius: 3px; text-align: center; }
.teaching-status.current { color: var(--paper); background: var(--green); }
.teaching-status.planned { border: 1px solid #aab997; background: #f2f5e9; }
.teaching-institution { font-size: 10px; font-weight: 600; color: var(--green-mid); }
.teaching-role { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 5px; }
.teaching-period { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 21px; font: 9px/1.6 var(--mono); color: var(--muted); }
.teaching-period > span { color: var(--green-mid); }
.teaching-card h3 { font: 25px/1.25 var(--serif); letter-spacing: -.5px; color: var(--green); margin: 13px 0 17px; overflow-wrap: break-word; }
.teaching-description { font-size: 12px; line-height: 1.85; color: var(--muted); }
.teaching-details { margin-top: 23px; border-top: 1px solid #d4dcc9; }
.teaching-details summary { color: var(--green); padding-bottom: 2px; }
.teaching-details summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.teaching-details-body { padding: 19px 0 0; }
.teaching-delivery { color: var(--green-mid); font-size: 10px; font-weight: 600; margin-bottom: 12px; }
.teaching-details-body ul { margin: 0 0 18px; padding-left: 17px; }
.teaching-details-body li, .teaching-details-body p:not(.teaching-delivery) { font-size: 12px; line-height: 1.85; color: var(--muted); }
.teaching-details-body li + li { margin-top: 7px; }
.teaching-recognition { margin-top: 36px; padding-top: 30px; border-top: 1px solid #cbd5bd; }
.teaching-recognition h3 { font: 29px/1.3 var(--serif); letter-spacing: -.5px; margin-bottom: 21px; }
.teaching-awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.teaching-award { display: flex; gap: 20px; align-items: center; padding: 22px 25px; background: #f8f9f0; border: 1px solid #cbd5bd; border-radius: 4px; }
.teaching-award-year { font: 24px/1.2 var(--serif); color: var(--green-mid); }
.teaching-award h4 { font-size: 12px; line-height: 1.65; margin: 0 0 5px; }
.teaching-award p { font-size: 10px; color: var(--muted); }
.teaching-award-arrow { margin-left: auto; color: var(--green-mid); }

@media (max-width: 1100px) {
  .site-nav { gap: 13px; }
  .research-journey-grid { grid-template-columns: 1fr; }
  .research-journey-card { padding: 26px 30px; }
  .research-journey-question, .research-journey-body { max-width: 790px; }
  .teaching-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaching-facts > div { padding: 18px 20px; gap: 13px; }
}
@media (max-width: 900px) {
  .site-nav { gap: 6px; }
  .teaching-awards { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  .research-journey { margin-bottom: 33px; }
  .research-journey-heading { display: block; margin-bottom: 22px; }
  .research-journey-heading h3, .project-collection-heading { font-size: 27px; }
  .research-journey-heading p { margin-top: 14px; font-size: 12px; }
  .research-journey-card { padding: 23px; }
  .research-journey-card h4 { font-size: 26px; }
  .research-journey-question { font-size: 12px; }
  .teaching-section .section-heading > p { max-width: 100%; }
  .teaching-facts > div { flex-direction: column; gap: 7px; align-items: flex-start; padding: 17px 15px; }
  .teaching-facts strong { font-size: 28px; }
  .teaching-facts span { font-size: 9px; line-height: 1.7; }
  .teaching-toolbar { align-items: flex-start; gap: 15px; }
  .teaching-filters { width: 100%; }
  .teaching-filters button { flex: 1; min-height: 44px; padding: 8px 10px; font-size: 10px; }
  .teaching-grid { grid-template-columns: 1fr; gap: 14px; }
  .teaching-card { padding: 24px; }
  .teaching-card h3 { font-size: 26px; }
  .teaching-role, .teaching-institution { font-size: 10px; }
  .teaching-status { font-size: 9px; }
  .teaching-award { padding: 19px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .research-journey-details summary svg, .teaching-details summary svg { transition: none; }
}
@media print {
  .research-journey-heading, .research-journey-grid, .teaching-grid, .teaching-awards { display: block; }
  .research-journey-heading p { margin-top: 10px; color: #333; }
  .research-journey-heading h3, .project-collection-heading { color: #111; }
  .research-journey-card, .teaching-card { padding: 18px; margin-bottom: 15px; background: white; border-color: #ccc; }
  .research-journey-card, .research-journey-card * { color: #222; }
  .research-journey-top, .teaching-card-top .academic-brand, .teaching-toolbar { display: none; }
  .research-journey-card h4, .teaching-card h3 { font-size: 20px; }
  .research-journey-details > summary, .teaching-details > summary { display: none; }
  .research-journey-body, .teaching-details-body { display: block; padding-block: 10px; }
  .research-journey-body dl > div { break-inside: avoid; }
  .teaching-section, .teaching-facts, .teaching-award { background: white; }
  .teaching-award { margin-bottom: 10px; }
  .teaching-details-body, .teaching-description { font-size: 10px; }
}
