/* Shared design for Minah Kim's website. Edit this file to change appearance. */
:root {
  color-scheme: light;
  --text: #333;
  --heading-blue: #3b628c;
  --link-blue: #486b92;
  --page-width: 800px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Lato, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--link-blue); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

/* Sticky positioning lets the mobile header grow without covering the content. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: #fff;
  font-family: "Trebuchet MS", Arial, sans-serif;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  border-bottom: 4px solid var(--text);
}
.site-name {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1px;
}
.site-name a { color: inherit; text-decoration: none; }
nav ul {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 5px;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
}
nav a:hover { outline: 3px solid var(--text); text-decoration: none; }
nav a[aria-current="page"] { font-weight: 700; }

main {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 24px auto 0;
  padding-bottom: 32px;
  overflow-wrap: break-word;
}
main:focus { outline: none; }
section { margin-bottom: 2rem; }
h2 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}
h3 {
  margin: 0 0 .5em;
  color: var(--heading-blue);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}
p { margin: .3em 0 .8em; }
main a { text-decoration: none; }
#profile-section { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
#profile-picture { flex: 0 0 160px; }
#profile-picture img { width: 160px; height: auto; }
#research-statement { flex: 1; min-width: 0; }
.home-section-content { margin-left: 1rem; padding-left: 1.25rem; }
.home-bullet-list { margin: 0; padding-left: 1.15rem; }
.home-bullet-list > li { margin-bottom: .45rem; }
.home-bullet-list > li:last-child { margin-bottom: 0; }
.education-list > li { margin-bottom: 1rem; }
.education-detail-list { margin: .25rem 0 0; padding-left: 1.35rem; list-style: circle; }
.education-detail-list li { margin-bottom: .1rem; }
.research-paper { margin-bottom: 2.5rem; }
.paper-status { color: #666; font-size: .9rem; font-style: italic; }
.publication-entry { margin-bottom: 1.5rem; }
.publication-entry h3 a { color: inherit; text-decoration: underline; }

/* Teaching evaluation table and the original student feedback layout. */
.instructor-evaluation-context { margin: 1rem 0 1.25rem; padding: .9rem 1rem; background: #f5f7f9; }
.summary-section { margin-bottom: 1rem; overflow-x: auto; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { padding: 6px; border-bottom: 1px solid #ddd; text-align: left; }
.summary-table th { background: var(--heading-blue); color: #fff; font-weight: 700; }
.summary-table th:last-child, .summary-table td:last-child { width: 210px; text-align: center; }
.summary-table tbody tr:hover { background: #f5f5f5; }
.feedback-section { font-family: "Trebuchet MS", Arial, sans-serif; }
.feedback-section h3 { margin-top: 1.5rem; color: #555; }
.feedback-section ul { margin: 0; padding: 0; list-style: none; }
.feedback-section li { margin-bottom: 1.5rem; padding: 1rem; background: #f9f9f9; }
.feedback-section blockquote { margin: 0; font-style: italic; }
.feedback-section cite { display: block; margin-top: .5rem; color: #666; font-size: .9rem; }

/* Only the CV PDF uses an iframe. */
.cv-heading { border-bottom: 0; }
.cv-intro { margin-bottom: 1.25rem; }
.cv-viewer { display: block; width: 100%; height: 1100px; border: 1px solid #ddd; }

@media (max-width: 768px) {
  .header-container { flex-wrap: wrap; gap: 8px; }
  .site-name { font-size: 28px; line-height: 1.15; }
  nav ul { flex-wrap: wrap; gap: 12px; }
  nav a { padding: 8px 10px; font-size: 18px; }
  #profile-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  #profile-picture { flex-basis: auto; }
  #research-statement p { font-size: 1.05rem; }
  .home-section-content { margin-left: .25rem; padding-left: 1rem; }
}
@media (max-width: 600px) {
  .header-container { display: block; }
  nav ul { justify-content: space-between; gap: 2px; margin-top: 8px; }
  nav a { padding: 6px 7px; font-size: 16px; }
  .cv-viewer { height: 750px; }
  .summary-table th:last-child, .summary-table td:last-child { width: 120px; }
  html { scroll-padding-top: 125px; }
}
