/* ----------------------------------------------------------
   GLOBAL ELEMENTS
---------------------------------------------------------- */

figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.25rem auto;        /* 20 px */
  padding: 0;
  text-align: center;
}

figcaption {
  margin-top: 0.25rem;         /* 4 px */
  font-size: 0.9rem;
  color: #555;
}

.home-figure {
  display: block !important;   /* disable flex for this figure */
  text-align: left;            /* align to left edge */
  margin: 1.25rem 0;
  padding: 0;
}

/* ----------------------------------------------------------
   HEADER  (logo + horizontal nav)
---------------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 1rem 0;
}

.flex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 100px;
  width: auto;
  vertical-align: middle;
}

.site-nav .nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav .nav-list a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
}

.site-nav .nav-list a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   FOOTER  (two-line layout)
---------------------------------------------------------- */

.footer-top {
  padding: 0.6rem 0;
  font-size: 1.1rem;           /* larger line */
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.footer-icons a {
  text-decoration: none;
}

.footer-icons a:not(:first-child) {   /* spacing between icons */
  margin-left: 0.8rem;
}

.footer-icon {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.footer-icons a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   IMAGES USED IN TABLES
---------------------------------------------------------- */

.home-photo {
  float: left;
  height: 250px;          /* fixed desktop height */
  width: auto;
  margin: 0 1rem 1rem 0;  /* space to right and below */
  object-fit: cover;
  border-radius: 0px;       /* square corners */
}

@media (max-width: 768px) {
  .home-photo {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    height: auto;
    max-width: 100%;
    border-radius: 0px;
  }
}

.home-photo + p {
  text-align: left;
}

.people-photo {
  height: 100px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0px;
}

.public-engagement-photo {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  width: auto;
  padding: 10px;
  border-radius: 0px;
  object-fit: contain;
}

.news-photo {
  max-width: 100%;
  max-height: 250px;
  height: auto;
  width: auto;
  padding: 10px;
  border-radius: 0px;
  object-fit: contain;
}

/* ----------------------------------------------------------
   TABLE HELPERS
---------------------------------------------------------- */

table.photo-table td {
  vertical-align: top;
}

/* People table layout */
.page-content .people-table,
.post-content .people-table {
  width: 100%;
  border-collapse: collapse;
}

/* First column (photos) */
.page-content table.people-table td:first-child,
.page-content table.people-table th:first-child,
.post-content table.people-table td:first-child,
.post-content table.people-table th:first-child {
  width: 130px;
  min-width: 130px;
  max-width: 150px;
  text-align: center !important;      /* center first column */
  vertical-align: middle !important;  /* middle align first column */
}

/* Center all cells */
.page-content .people-table td,
.page-content .people-table th,
.post-content .people-table td,
.post-content .people-table th {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 8px;
}

/* Profile photos in people table */
.page-content .people-table .people-photo,
.post-content .people-table .people-photo {
  height: 100px;
  width: 80px;              /* fixed width for uniformity */
  object-fit: cover;
  border-radius: 0px;
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Flags */
.flag-icon {
  width: 75%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 5px;
}

.flag-icon + .flag-icon {
  margin-left: 6px; /* space between multiple flags */
}



/* ----------------------------------------------------------
   PUBLICATIONS PAGE
---------------------------------------------------------- */

#publications-page h2,
#publications-page h3 {
  margin: 2.2rem 0 0.6rem;
}

#publications-page ol {
  margin: 0 0 2rem;
  padding-left: 1.4rem;
}
