/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

.profile-name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

/* news and timeline */

.timeline-section {
  padding: 4px 20px 18px;
}

.research-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 2px 20px 16px;
}

.research-section-title {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.research-section-header p {
  margin: 0;
  color: #555;
  font-size: 12px;
}

.timeline-details {
  border-top: 1px solid #e5e7e9;
  border-bottom: 1px solid #e5e7e9;
}

.timeline-details summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}

.timeline-details summary::-webkit-details-marker {
  display: none;
}

.timeline-summary-title {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
}

.timeline-summary-latest {
  min-width: 0;
  overflow: hidden;
  color: #555;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-summary-action {
  flex: 0 0 auto;
  margin-left: auto;
  color: #1772d0;
  font-size: 12px;
}

.timeline-summary-action::after {
  content: ' ↓';
}

.timeline-details[open] .timeline-summary-action::before {
  content: 'Hide';
  font-size: 0;
}

.timeline-details[open] .timeline-summary-action {
  font-size: 0;
}

.timeline-details[open] .timeline-summary-action::after {
  content: 'Hide ↑';
  font-size: 12px;
}

.timeline-content {
  padding: 4px 0 16px;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
  color: #555;
  font-size: 12px;
}

.timeline-filter {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #555;
  background: transparent;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.timeline-filter:hover {
  background: #f1f3f5;
}

.timeline-filter.active {
  color: #1772d0;
  background: #edf5fd;
}

.timeline-filter:focus-visible {
  outline: 2px solid rgba(23, 114, 208, 0.2);
  outline-offset: 1px;
}

.timeline-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  color: #1772d0;
  background: transparent;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.timeline-view-toggle:hover,
.timeline-view-toggle:focus {
  color: #1772d0;
  background: #edf5fd;
}

.timeline-view-toggle:focus-visible {
  outline: 2px solid rgba(23, 114, 208, 0.2);
  outline-offset: 1px;
}

.timeline-globe-view {
  overflow: hidden;
  border-radius: 12px;
}

.timeline-globe-view[hidden] {
  display: none;
}

.timeline-globe-intro {
  margin: 0 0 10px;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

.timeline-globe-frame {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
}

.legend-symbol {
  margin-right: 4px;
  font-style: normal;
}

.legend-symbol.career,
.timeline-item.career .timeline-marker {
  color: #1772d0;
}

.legend-symbol.award,
.timeline-item.award .timeline-marker {
  color: #7b3fa1;
}

.legend-symbol.event,
.timeline-item.event .timeline-marker {
  color: #d97706;
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 18px 1fr;
  gap: 8px;
  padding-bottom: 15px;
}

.timeline-item > div { min-width: 0; padding-right: 66px; }

.timeline-entry-logo {
  position: absolute;
  top: -3px;
  right: 0;
  box-sizing: border-box;
  width: 54px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 2px;
  background: transparent;
  transform-origin: top right;
  cursor: zoom-in;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.timeline-entry-logo:hover,
.timeline-entry-logo:focus-visible {
  z-index: 3;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 15px rgba(20, 28, 34, .18);
  transform: scale(1.35);
}

.timeline-entry-logo:focus-visible { outline: 2px solid #1772d0; }

.timeline-entry-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.timeline-logo-dialog {
  --logo-dialog-inset: clamp(12px, 2.5vw, 18px);
  width: min(700px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  border: 1px solid #dce2e7;
  border-radius: 14px;
  padding: 0;
  color: #25282b;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 28, 34, .25);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.timeline-logo-dialog::backdrop { background: rgba(20, 28, 34, .55); }

.timeline-logo-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--logo-dialog-inset);
}

.timeline-logo-dialog-heading h2 { margin: 0; font-size: 15px; line-height: 1.4; }
.timeline-logo-dialog-heading p { margin: 4px 0 0; color: #737b83; font-size: 12px; }

.timeline-logo-dialog-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #dce2e7;
  border-radius: 50%;
  color: #25282b;
  background: #f7f9fa;
  font: 24px/1 'Lato', Verdana, Helvetica, sans-serif;
  cursor: pointer;
}

.timeline-logo-dialog-close:focus-visible { outline: 2px solid #1772d0; outline-offset: 3px; }

.timeline-logo-dialog-viewer {
  height: min(440px, calc(100dvh - 150px), 75vw);
  margin: 0 var(--logo-dialog-inset) var(--logo-dialog-inset);
  background: #fff;
}

.timeline-logo-dialog-image { display: block; width: 100%; height: 100%; object-fit: contain; }

.timeline-item.is-hidden,
.timeline-item[hidden] {
  display: none;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  bottom: 0;
  left: 84px;
  width: 1px;
  background: #e1e4e8;
}

.timeline-item.last-visible::after {
  display: none;
}

.timeline-item time {
  padding-top: 1px;
  color: #777;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.timeline-marker {
  position: relative;
  z-index: 1;
  text-align: center;
}

.timeline-item strong {
  font-size: 13px;
}

.timeline-item p {
  margin: 2px 0 0;
  color: #555;
  font-size: 12px;
}

.timeline-item a {
  font-size: 12px;
  font-weight: 400;
}

.timeline-event-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 5px;
}

.timeline-event-heading a {
  font-size: 12px;
  font-weight: 400;
}

.timeline-event-heading .separator {
  color: #999;
  font-size: 11px;
}

@media (max-width: 520px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    display: block;
    width: 100% !important;
    table-layout: fixed;
  }

  .site-shell > tbody,
  .site-shell > tbody > tr,
  .site-shell > tbody > tr > td,
  .profile-table,
  .profile-table > tbody,
  .profile-table > tbody > tr,
  .profile-copy {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .profile-copy {
    padding: 20px !important;
    overflow-wrap: break-word;
  }

  .profile-photo {
    display: none;
  }

  .profile-name {
    font-size: 28px;
  }

  .research-section-header {
    flex-direction: column;
    gap: 4px;
  }

  .research-section-header p {
    overflow-wrap: break-word;
  }

  .timeline-summary-latest {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 62px 16px 1fr;
  }

  .timeline-item > div { padding-right: 50px; }
  .timeline-entry-logo { width: 42px; height: 34px; }

  .timeline-item:not(:last-child)::after {
    left: 76px;
  }
}


/* everything below this line is for tags */

.paper-tags {
  margin-top: 8px;
}

.paper-tag {
  display: inline-block;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #1772d0;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  padding: 3px 9px;
  margin: 0 6px 6px 0;
  cursor: pointer;
  vertical-align: middle;
}

.paper-tag:hover {
  background: #eaeef2;
}

.publications-section {
  min-height: 500px;
}

.publication-filter-block {
  margin-top: 0px;
}

.publication-filter-title {
  display: flex;
  align-items: center;
  align-self: stretch;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  color: #555;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.publication-filter-title::after {
  content: '';
  width: 1px;
  height: 16px;
  margin-left: 10px;
  background: #d8dde2;
}

.filter-reset {
  margin-left: auto;
  min-height: 28px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  padding: 0 11px;
  color: #1772d0;
  background: #f6f8fa;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-reset:hover,
.filter-reset:focus {
  border-color: #f09228;
  color: #f09228;
  background: #fff8f0;
}

.filter-reset:disabled {
  border-color: #e1e5e8;
  color: #9aa1a8;
  background: transparent;
  cursor: default;
}

.filter-reset:disabled:hover,
.filter-reset:disabled:focus {
  border-color: #e1e5e8;
  color: #9aa1a8;
  background: transparent;
}

.publication-filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.filter-menu {
  position: relative;
  flex: 0 1 170px;
  width: 170px;
  min-width: 0;
}

.filter-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 1px solid #d0d7de;
  border-radius: 999px;
  padding: 0 10px;
  color: #1772d0;
  background: #f6f8fa;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.filter-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.filter-menu summary:hover,
.filter-menu[open] summary {
  border-color: #b6c2cd;
  background: #eef2f5;
}

.filter-menu summary:focus-visible {
  border-color: #1772d0;
  outline: 2px solid rgba(23, 114, 208, 0.15);
  outline-offset: 1px;
}

.filter-name {
  color: #555;
}

.filter-value {
  max-width: 150px;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-menu.has-value summary {
  border-color: #1772d0;
  color: #1772d0;
  background: #edf5fd;
}

.filter-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: max-content;
  max-width: 380px;
  padding: 12px;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}

.filter-menu:last-child .filter-popover {
  right: 0;
  left: auto;
  max-width: 320px;
}

.filter-option {
  border: 1px solid #d0d7de;
  border-radius: 999px;
  padding: 4px 10px;
  color: #1772d0;
  background: #f6f8fa;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-option:hover {
  background: #eaeef2;
}

.filter-option:disabled {
  border-color: #e5e7e9;
  color: #9aa1a8;
  background: #fafafa;
  cursor: default;
  opacity: 0.7;
}

.filter-option.active {
  border-color: #1772d0;
  color: #fff;
  background: #1772d0;
}

@media (max-width: 520px) {
  .filter-menu {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }

  .filter-menu summary {
    box-sizing: border-box;
    width: 100%;
  }

  .publication-filter-title {
    flex: 0 0 100%;
    align-self: auto;
  }

  .publication-filter-title::after {
    display: none;
  }

  .filter-popover,
  .filter-menu:last-child .filter-popover {
    right: auto;
    left: 0;
    max-width: min(320px, calc(100vw - 60px));
  }

  .publications-section table,
  .publications-section tbody,
  .publications-section tbody > tr:first-child,
  .publications-section tbody > tr:first-child > td,
  .publication-row,
  .paper-media-cell,
  .paper-info-cell {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }

  .publication-filter-controls {
    width: 100%;
  }

  .paper-media-cell {
    padding: 14px 20px 0;
  }

  .paper-info-cell {
    padding: 14px 20px 24px;
  }

  .paper-media {
    margin: 0 auto;
  }
}

.profile-links {
  margin-bottom: 0;
}

/* for the footer*/


html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
  padding: 20px 0;
  text-align: center;
}

/* standarize publication rows */

.paper-media-cell {
  padding: 20px;
  width: 25%;
  vertical-align: middle;
}

.paper-info-cell {
  padding: 20px;
  width: 75%;
  vertical-align: middle;
}

.paper-media {
  position: relative;
  width: 160px;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paper-media img,
.paper-media video {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}

.paper-media .two {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ==========================================================
   Two-column layout: fixed sidebar (photo + links), scrolling content
   ========================================================== */
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 0 32px;
}

.sidebar {
  position: sticky;
  top: 0;
  flex: 0 0 260px;
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto;
  padding: 48px 0 32px;
}

.sidebar-photo {
  display: block;
  width: 200px;
  height: 200px;
  border: 4px solid #edf5fd;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-name {
  margin: 22px 0 4px;
  color: #1b2733;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-role {
  margin: 0;
  color: #555;
  font-size: 13px;
}

.sidebar-divider {
  margin: 20px 0 12px;
  border: 0;
  border-top: 2px solid #e5e7e9;
}

.sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #25282b;
  font-size: 15px;
}

.sidebar-links a:hover,
.sidebar-links a:focus {
  color: #1772d0;
}

.sidebar-links svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  fill: #1772d0;
}

.content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 800px;
  padding: 36px 0 0;
}

.bio {
  padding: 0 20px 8px;
}

.bio p {
  line-height: 1.6;
}

@media (max-width: 860px) {
  .page-layout {
    display: block;
    padding: 0 16px;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 28px 0 8px;
    text-align: center;
  }

  .sidebar-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }

  .sidebar-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 20px;
  }

  .content {
    padding-top: 8px;
  }

  .bio {
    padding: 0 4px 8px;
  }
}

/* light-blue background for the right (content) column, extended to the viewport edge */
.content {
  min-height: 100vh;
  box-sizing: border-box;
  padding-left: 12px;
  padding-right: 12px;
  background: #e8f4fc;
  box-shadow: 0 0 0 100vmax #e8f4fc;
  clip-path: inset(0 -100vmax 0 0);
}

@media (max-width: 860px) {
  .content {
    min-height: 0;
    padding-left: 4px;
    padding-right: 4px;
    clip-path: inset(0 -100vmax -100vmax -100vmax);
  }
}

/* ---- two-tone background: left #BDE7FA, right #E8F4FC ---- */
body {
  background: #bde7fa;
}

.sidebar-photo { border-color: #ffffff; }
.sidebar-name { color: #0f2a4a; }
.sidebar-role { color: #17324f; }
.sidebar-divider { border-top-color: rgba(255, 255, 255, 0.7); }
.sidebar-links a { color: #0f2a4a; }
.sidebar-links svg { fill: #0f2a4a; }
.sidebar-links a:hover,
.sidebar-links a:focus { color: #135ea8; }
.sidebar-links a:hover svg,
.sidebar-links a:focus svg { fill: #135ea8; }

/* keep links and small grey text readable on the light-blue column */
.content a { color: #135ea8; }
.content a:hover,
.content a:focus { color: #c76a00; }
.content .timeline-item time { color: #4f5b66; }



/* ---- duck families walking up and down the left and right edges (duck.js) ---- */
.duck {
  position: fixed;
  top: 0;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.duck-left { left: 2px; }
.duck-right { right: 2px; }

.duck svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.duck-body { fill: #ffd43b; }
.duck-wing { fill: #f2b705; }
.duck-beak { fill: #f08a24; }
.duck-eye { fill: #1b2733; }

/* ducklings: paler and fluffier */
.duckling .duck-body { fill: #ffe98a; }
.duckling .duck-wing { fill: #ffd84d; }

.duck-leg path {
  fill: none;
  stroke: #f08a24;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duck-waddle {
  width: 100%;
  height: 100%;
  animation: duck-waddle 0.45s ease-in-out infinite alternate;
}

.duck-leg-a { transform-origin: 27px 49px; animation: duck-step 0.45s ease-in-out infinite alternate; }
.duck-leg-b { transform-origin: 35px 49px; animation: duck-step 0.45s ease-in-out infinite alternate-reverse; }

/* ducklings take quicker little steps */
.duckling .duck-waddle,
.duckling .duck-leg-a,
.duckling .duck-leg-b { animation-duration: 0.3s; }

.duck.is-resting .duck-waddle,
.duck.is-resting .duck-leg-a,
.duck.is-resting .duck-leg-b {
  animation-play-state: paused;
}

@keyframes duck-waddle {
  from { transform: rotate(-6deg); }
  to { transform: rotate(6deg); }
}

@keyframes duck-step {
  from { transform: rotate(-18deg); }
  to { transform: rotate(18deg); }
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .duck { display: none; }
}
