/* Shared site utilities — prefer these over inline styles */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.hint-text {
  text-align: center;
  font-size: 75%;
  opacity: 0.75;
  margin: 0.35rem 0 1rem;
}

.form-wrap {
  width: 75%;
  margin: 0 auto;
}

.topnav,
.navbar-print,
.botnav {
  text-align: center;
}

#content {
  text-align: left;
}

.page-title-wrap {
  text-align: center;
}

.topnav .logo img,
.navbar-print img {
  vertical-align: middle;
  height: 25px;
  width: 25px;
}

/* Images in long-form notes / page layout */
#content img:not(.logo):not(.preview-narrow) {
  max-width: 75%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#content img.logo {
  height: 25px;
  width: 25px;
  display: inline;
  vertical-align: middle;
}

#content img.preview-narrow {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0.5rem auto;
}

.home-photo {
  text-align: center;
}

.home-photo img {
  width: 300px;
  max-width: 90%;
  height: auto;
}

.error-illustration {
  text-align: center;
}

.error-illustration img {
  width: 200px;
  height: 200px;
}

.button-stack {
  text-align: center;
}

.button-stack button {
  display: block;
  margin: 0 auto 1rem;
}

.button-row {
  text-align: center;
}

.choices-list.centered,
.choices-list.filter-bar {
  justify-content: center;
}

.blog-list {
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
  display: block;
  text-align: left;
}

.blog-date {
  color: #888;
}

.advisor-line {
  text-align: right;
}

/* Resume / CV left–right rows from <hfill> */
.hfill {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.15em 1rem;
  width: 100%;
}

p.hfill,
div.hfill,
li.hfill {
  margin: 0.85em 0 0.25em;
}

li.hfill {
  display: flex;
}

.hfill-start {
  flex: 1 1 auto;
  min-width: 0;
}

.hfill-end {
  flex: 0 1 auto;
  margin-left: auto;
  text-align: right;
  color: var(--text-color);
  opacity: 0.9;
}

/* Inline right-aligned tags inside list items (semesters, GPA, etc.) */
li:has(> .hfill-end-inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1rem;
  row-gap: 0.15em;
}

.hfill-end-inline {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  opacity: 0.9;
  white-space: nowrap;
}

.block-container.is-single {
  display: block;
}

.resume-name {
  font-size: 1.45em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

button {
  position: relative;
}

textarea.tall {
  font-size: 16px;
  height: 39px;
}
