/* Personal-site additions on top of fluent.css (this site's copy of the lab design). */

/* Three equal buttons (Research, Teaching, Talks) that fill the row at every width */
.profile .button-row.three { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row; }

/* Links line in the contact list (CV, Google Scholar, GitHub) */
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* News on the homepage uses the same column width as everything else */
.profile .news li { grid-template-columns: 6.5rem 1fr; }

/* Teaching page uses the same column width as the homepage */
.profile-section { max-width: 920px; }

/* Longer name in the header: a little smaller than the lab logo so it fits beside the menu */
.wordmark { font-size: clamp(1.45rem, 4.1vw, 2.9rem); }

/* Teaching: course name, institution, then its semesters as bullets */
.course-list { list-style: none; margin: 0; padding: 0; }
.course-list > li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.offerings { margin: 6px 0 0; padding-left: 1.3em; list-style: disc; }
.offerings li { padding: 2px 0; }

/* Talks with slides instead of a video: first slide in the same 16:9 frame, linking to the PDF */
.slides-thumb { position: absolute; inset: 0; display: block; }
.slides-thumb img { width: 100%; height: 100%; object-fit: contain; }
.slides-badge {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px;
  background: var(--blue); color: #fff; font-size: 0.85rem; font-weight: 700;
}
.slides-thumb:hover .slides-badge, .slides-thumb:focus-visible .slides-badge { background: var(--maize); color: var(--blue); }
.slides-thumb:hover { text-decoration: none; }