/* Teaching pages — two-column layout matching the academicpages main site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clark:   #c8102e;
  --clark-d: #8a0a1f;
  --text:    #494e52;
  --muted:   #7a8288;
  --border:  #f2f3f3;
  --border2: #e6e6e6;
  --bg:      #ffffff;
}

html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--clark); text-decoration: none; }
a:hover { color: var(--clark-d); text-decoration: underline; }

/* Masthead — top bar (mirrors minimal-mistakes / academicpages) */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.masthead__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.site-title { font-weight: 700; font-size: 1.2rem; color: #1a1a1a; }
.site-title:hover { color: #1a1a1a; text-decoration: none; }
.site-nav a { color: #494e52; font-size: .95rem; margin-left: 1.5rem; }
.site-nav a:hover { color: var(--clark); text-decoration: none; }

/* Two-column wrapper: left author sidebar + right content */
.wrap {
  max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem;
  display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem;
}
@media (max-width: 760px) {
  .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  .sidebar { text-align: center; }
}

/* Author sidebar */
.sidebar { font-size: .9rem; }
.sidebar .avatar {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border2); background: #f7f7f7; display: block; margin-bottom: .9rem;
}
@media (max-width: 760px) { .sidebar .avatar { margin: 0 auto .9rem; } }
.sidebar .name { font-size: 1.15rem; font-weight: 700; color: #1a1a1a; }
.sidebar .role { color: var(--muted); margin: .15rem 0 .9rem; }
.sidebar .links { list-style: none; }
.sidebar .links li { padding: .25rem 0; }
.sidebar .links a { color: #494e52; }
.sidebar .links a:hover { color: var(--clark); text-decoration: none; }

/* Content */
.content { min-width: 0; }
.page__title { font-size: 2rem; font-weight: 700; color: #1a1a1a; line-height: 1.2; }
.page__lead { color: var(--muted); margin-top: .35rem; font-size: 1.02rem; }

h2.section { font-size: 1.3rem; color: #1a1a1a; margin: 2rem 0 1rem;
             padding-bottom: .4rem; border-bottom: 1px solid var(--border2); }
h2.section:first-of-type { margin-top: 1.5rem; }

.list { list-style: none; }
.list > li { padding: .85rem 0; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: none; }
.item-title { font-weight: 700; color: #1a1a1a; font-size: 1.05rem; }
a.item-title:hover { color: var(--clark); }
.item-desc { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.badge { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
         color: #fff; background: var(--muted); border-radius: 3px; padding: .08rem .4rem;
         margin-left: .4rem; vertical-align: middle; }
.muted { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { max-width: 1100px; margin: 1rem auto 0; padding: 1.5rem;
               border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--clark); }
