/* Compact list styles used by _layouts/home.liquid and _layouts/hp.liquid. Fonts are al-folio's. */

/* Navy accent instead of al-folio's purple/teal (same selectors as al-folio's main.css, loaded after it). */
:root {
  --global-theme-color: #1f4e79;
  --global-hover-color: #12385c;
  --global-code-bg-color: rgba(31, 78, 121, 0.05);
}

html[data-theme="dark"] {
  --global-theme-color: #8db6e2;
  --global-hover-color: #b5d0ee;
}

.post article h2,
.hp-home h2 {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.hp-aside {
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--global-text-color-light) !important;
}

.hp-aside:hover {
  color: var(--global-theme-color) !important;
}

.hp-muted {
  color: var(--global-text-color-light);
}

/* Home: contact links under the photo */

.hp-home .profile {
  width: 30%;
}

.hp-contact {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.hp-contact li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  overflow-wrap: anywhere;
}

.hp-contact i {
  width: 1rem;
  text-align: center;
  color: var(--global-text-color-light);
}

.hp-contact em {
  font-style: normal;
}

/* Date column + text (travel, talks) */

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

.hp-entry {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.3rem 0;
}

/* keep Japanese words such as 京都大学 together when the subtitle wraps */
html[lang="ja"] .hp-home .desc {
  word-break: keep-all;
}

html[lang="ja"] .hp-entry {
  grid-template-columns: 12rem 1fr;
}

.hp-entry-date {
  color: var(--global-text-color-light);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.05rem;
}

.hp-entry-sub {
  color: var(--global-text-color-light);
  font-size: 0.9rem;
}

/* Publications: compact list on top of al-folio's bibliography markup */

.publications h2.bibliography {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--global-text-color-light);
  text-align: left;
  border-top: 0;
  margin: 1.25rem 0 0;
  padding-top: 0;
}

.publications ol.bibliography {
  margin: 0;
}

.publications ol.bibliography li {
  padding: 0.4rem 0;
  margin: 0;
}

.publications ol.bibliography li .row {
  margin: 0;
}

.publications ol.bibliography li .row > div {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  padding: 0;
}

.publications .title {
  font-weight: 500;
}

.publications .author,
.publications .periodical {
  font-size: 0.9rem;
  color: var(--global-text-color-light);
}

.publications ol.bibliography li .author > em {
  border-bottom: 0;
  color: var(--global-text-color);
}

.publications ol.bibliography li .author a {
  border-bottom: 0;
}

.publications ol.bibliography li .links {
  display: none;
}

@media (max-width: 576px) {
  /* photo as a small square with the contact links beside it */
  .hp-home .profile {
    width: 100%;
    float: none !important;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 1rem;
    align-items: start;
    margin: 0 0 1.25rem;
  }

  .hp-home .profile figure {
    margin: 0;
  }

  .hp-home .profile img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    object-position: 18% 35%;
  }

  .hp-contact {
    margin-top: 0;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  /* dates above titles, in both languages */
  .hp-entry,
  html[lang="ja"] .hp-entry {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.hp-subhead {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--global-text-color-light);
  margin: 1rem 0 0.25rem;
}
