html[data-theme="dark"] {
  --global-bg-color: #fff !important;
  --global-text-color: #000 !important;
  background: #fff !important;
  color: #000 !important;
}

#theme-toggle { display: none !important; }

/* =========================
   1) Profile photo border
========================= */
.author__avatar img,
.author__avatar .u-photo {
  border: 4px solid #BF5700 !important;   /* UT burnt orange */
  border-radius: 50%;
  padding: 2px;
  box-shadow: none !important;
}
html[data-theme="dark"] .author__avatar img,
html[data-theme="dark"] .author__avatar .u-photo {
  border: 4px solid #BF5700 !important;
}

/* =========================
   2) NAV LINKS
========================= */
.masthead .greedy-nav .visible-links > li > a,
.masthead .greedy-nav .hidden-links > li > a,
.masthead .site-title a,
.masthead .site-title a:visited {
  color: #BF5700 !important;
}
.masthead .greedy-nav .visible-links > li > a:hover,
.masthead .greedy-nav .hidden-links > li > a:hover,
.masthead .greedy-nav .visible-links > li.active > a,
.masthead .greedy-nav .hidden-links > li.active > a {
  color: #9B4500 !important;
  text-decoration: none;
}
html[data-theme="dark"] .masthead .greedy-nav .visible-links > li > a,
html[data-theme="dark"] .masthead .greedy-nav .hidden-links > li > a,
html[data-theme="dark"] .masthead .site-title a,
html[data-theme="dark"] .masthead .site-title a:visited {
  color: #BF5700 !important;
}

/* =========================
   3) TOP & BOTTOM LINES
========================= */
.masthead { border-bottom: 2px solid #BF5700 !important; }
.greedy-nav { box-shadow: none !important; border-bottom: 0 !important; background-image: none !important; }
.page__footer { border-top: 2px solid #BF5700 !important; }
html[data-theme="dark"] .masthead { border-bottom: 2px solid #BF5700 !important; }
html[data-theme="dark"] .greedy-nav { box-shadow: none !important; border-bottom: 0 !important; background-image: none !important; }
html[data-theme="dark"] .page__footer { border-top: 2px solid #BF5700 !important; }

/* =========================
   4) Research titles (clickable, no underline)
   Publications stay clickable; WP/WIP are plain via custom markup.
========================= */
.archive__item-title a,
.archive__item-title a:visited,
.archive__item-title a:hover,
.archive__item-title a:focus {
  text-decoration: none !important;
  box-shadow: none !important;      /* Minimal Mistakes uses box-shadow for underline */
  border-bottom: none !important;
  color: inherit;
}

/* =========================
   5) Hide page title on Research page (backup)
========================= */
.page.hide-title .page__title { display: none; }

/* =========================
   6) Hide published date + icon ON ARCHIVE PAGES ONLY
========================= */
.archive .page__meta,
.archive .page__meta time,
.archive .page__meta .fas.fa-fw.fa-calendar-alt {
  display: none !important;
}
.archive .page__meta { margin: 0 !important; padding: 0 !important; }

/* =========================
   7) (Legacy) If a section is wrapped in .nolink-titles, disable title clicks there
========================= */
.nolink-titles .archive__item-title a {
  pointer-events: none;
  cursor: default;
}

/* =========================
   8) Normalize font size in Working Papers / WIP excerpts
========================= */
.archive__item .archive__item-excerpt,
.archive__item .archive__item-excerpt p,
.archive__item .archive__item-excerpt li {
  font-size: 1rem !important;   /* match body text */
  line-height: 1.6;
}

/* =========================
   9) Restore the same gap under titles for WP & WIP as Publications
   (our custom sections in research.md are wrapped with .wp-section / .wip-section)
========================= */
.wp-section .archive__item-title + .archive__item-excerpt,
.wip-section .archive__item-title + .archive__item-excerpt {
  margin-top: 0.5rem !important;   /* adjust if you want tighter/looser */
  padding-top: 0 !important;
}
