/* =========================================================
   Randy Hill — Academic Website
   ========================================================= */


/* ---------- Site foundation ---------- */
html {
  overflow-y: scroll;
}

body {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 30px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.6;

  color: #222;
  background: #fff;
}

p {
  margin-top: 0;
}


/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  gap: 36px;

  margin: 0 0 2.5rem 0;
  padding: 0.75rem 0 0 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  color: #0C234B;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #AB0520;
}

.site-nav a.active {
  color: #AB0520;
  font-weight: bold;
}


/* ---------- Homepage ---------- */

.hero-image {
  width: 100%;
  overflow: hidden;
}

.home-photo,
.interior-photo {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.home-photo {
  object-position: center 50%;
}

.interior-photo {
  object-position: center 60%;
}

.home {
  max-width: 900px;
}

.intro-text {
  max-width: 690px;
}

.intro-text h1 {
  margin: 0 0 0.7rem 0;

  font-weight: normal;
  line-height: 1.1;
}

.affiliation {
  margin: 0 0 1.5rem 0;

  font-size: 1rem;
  line-height: 1.5;
}

.fields { 
  margin: 0 0 0.35rem 0; 
  color: #0C234B; 
  font-size: 1rem; 
  line-height: 1.5; 
  letter-spacing: 0.02em; 
} 
 
.research-interests { 
  margin: 0 0 1.25rem 0;
  font-size: 0.95rem; 
}

.research-intro {
  max-width: 620px;
  margin: 0;
  padding-left: 1rem;

  border-left: 3px solid #AB0520;

  font-size: 1.15rem;
  line-height: 1.7;
}



/* ---------- Site-wide typography ---------- */

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #0C234B;
}

h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;

  font-size: 3.1rem;
  font-weight: normal;
  line-height: 1.15;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.35rem;

  font-size: 1.35rem;
  border-bottom: 1px solid #ddd;
}

h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.25rem;

  font-size: 1.15rem;
}


/* ---------- Research and publication content ---------- */

.paper-status {
  margin-bottom: 0.7rem;

  color: #AB0520;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
}

.paper-description,
.publication-authors,
.publication-citation {
  margin-bottom: 0.5rem;
}

details {
  margin-top: 0.5rem;
}

/* ---------- Research and publication content ---------- */

.paper-status {
  margin-bottom: 0.7rem;

  color: #AB0520;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
}

.paper-description,
.publication-authors,
.publication-citation {
  margin-bottom: 0.5rem;
}

.abstract-details {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Turns the summary into a inline alignment row */
.abstract-details summary {
  display: inline-flex;
  align-items: center;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  cursor: default; /* Keeps the pointer clean across the row block */
}

/* Custom list-style arrow configuration (removes default behavior issues) */
.abstract-details summary::-webkit-details-marker {
  color: #0C234B;
  margin-right: 4px;
  cursor: pointer;
}
.abstract-details summary {
  list-style-type: disclosure-closed;
}
.abstract-details[open] summary {
  list-style-type: disclosure-open;
}

/* Independent hover configurations for the Abstract label */
.abstract-details summary .summary-trigger {
  color: #0C234B;
  cursor: pointer;
}

.abstract-details summary .summary-trigger:hover {
  color: #AB0520;
}

/* Structural grey layout divider pipe symbol styling */
.abstract-details summary .divider {
  color: #999;
  margin: 0 10px;
  user-select: none;
}

/* Independent PDF Link element typography styling - matches your main nav rules */
.abstract-details summary .paper-pdf-link {
  color: #0C234B;
  text-decoration: none;
  cursor: pointer;
}

/* Applies your precise academic crimson brand accent color on link hovering */
.abstract-details summary .paper-pdf-link:hover,
.abstract-details summary .paper-pdf-link:focus {
  color: #AB0520;
}

/* Cleans up internal indent paragraph layout readability under open drawers */
.abstract-details p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: #333;
}

/* Hard reset to strip out the browser's native disclosure arrows everywhere */
.abstract-details summary::-webkit-details-marker,
summary::-webkit-details-marker {
  display: none !important;
}

.abstract-details summary,
summary {
  list-style: none !important;
  list-style-type: none !important;
}

/* ---------- Teaching content ---------- */

.course-meta {
  margin-top: 0;
  margin-bottom: 0.4rem;

  color: #555;
  font-size: 0.95rem;
}

.teaching-role {
  color: #AB0520;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
}

.course-links {
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}

.course-links a {
  color: #0C234B;
  text-decoration: none;
}

.course-links a:hover,
.course-links a:focus {
  color: #AB0520;
}

.ta-course {
  margin: 0 0 0.55rem 0;
  line-height: 1.5;
}

/* ---------- Mobile layout ---------- */

@media (max-width: 700px) {

  body {
    margin: 30px auto;
    padding: 0 22px;
  }

  .home-photo,
.interior-photo {
  height: 170px;
}

  .site-nav {
    gap: 18px;
    margin-bottom: 2.5rem;
    font-size: 0.7rem;
  }

  h1 {
  font-size: 2.5rem;
}
}
