/* Float the headshot left on the home page */
img[alt="Jericho Cain"] {
  float: left;
  margin: 0 1rem 1rem 0;
  max-width: 200px;          /* tweak size here */
  border-radius: 0;        /* circle crop */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Make sure content below clears the float */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

.gearset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .gearset { grid-template-columns: 1fr 1fr; }
}
.gear-item { padding: 1rem; border-left: 4px solid #888; background: #f9f9f9; }
.gear-item h3 { margin: 0 0 .5rem; font-size: 1.15rem; }

/* Base list reset for teaching page */
.teaching ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* If you truly want centered lists sometimes, use a class */
.teaching .list-center {
  text-align: center;
}

.teaching li {
  margin: 0.5rem 0;
}

.teaching .philosophy {
  max-width: 62ch;     /* nice reading width */
  margin: 0 auto 2.5rem auto;
  text-align: left;
  line-height: 1.65;
}

.teaching .philosophy h2 {
  text-align: center;  /* header can stay centered */
  margin-bottom: 1rem;
}

.teaching .course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
}

.teaching .course-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.teaching .course-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
}

.teaching .course-meta {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.teaching .course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.teaching .btn {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.18);
  text-decoration: none;
  font-size: 0.95rem;
}

.teaching .btn:hover {
  border-color: rgba(0,0,0,0.35);
}

.teaching .taught-list {
  columns: 2;
  column-gap: 2rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
}

@media (max-width: 640px) {
  .teaching .taught-list { columns: 1; }
}

.teaching .taught-list li {
  break-inside: avoid;
  margin: 0.35rem 0;
}

/* ===== Course pages ===== */
.course {
  max-width: 1000px;
  margin: 0 auto;
}

.course .course-lede {
  max-width: 70ch;
  margin: 0 auto 1.5rem auto;
  text-align: left;
  line-height: 1.65;
}

.course .quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 1rem 0 2rem 0;
}

.course .pill {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  text-decoration: none;
  font-size: 0.95rem;
}

.course .pill:hover {
  border-color: rgba(0,0,0,0.35);
}

.course .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.course .resource-card {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.course .resource-card h2 {
  margin: 0 0 0.75rem 0;
  text-align: left;
  font-size: 1.15rem;
}

.course .resource-card .muted {
  opacity: 0.75;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.course .resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course .resource-list li {
  margin: 0.5rem 0;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
}

.course .resource-num {
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.course details {
  margin-top: 0.75rem;
}

.course summary {
  cursor: pointer;
  opacity: 0.85;
}



.schedule table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.schedule th,
.schedule td {
  border: 1px solid #ccc;
  padding: 0.6rem 0.8rem;
  vertical-align: top;
}

.schedule th {
  background: #f5f5f5;
  font-weight: 600;
  text-align: left;
}

.schedule tr:nth-child(even) {
  background: #fafafa;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
}

.blog img {
  max-width: 100%;
  border: 1px solid #ddd;
}

/* ===== Research page ===== */
.research {
  max-width: 1080px;
  margin: 0 auto;
}

.research-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 2rem;
  align-items: start;
  margin: 0 0 2.5rem 0;
}

.research-kicker {
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c2d12;
}

.research-lede {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.8;
  max-width: 60ch;
}

.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.research .btn {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid #8b5e3c;
  background: #8b5e3c;
  color: #fff;
  text-decoration: none;
  font-size: 0.96rem;
}

.research .btn:hover {
  background: #72472a;
  border-color: #72472a;
}

.research .btn-secondary {
  background: transparent;
  color: #8b5e3c;
}

.research-photo {
  margin: 0;
  background: linear-gradient(180deg, #f8f1e8 0%, #f4ede4 100%);
  border: 1px solid rgba(76, 58, 43, 0.12);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(76, 58, 43, 0.08);
}

.research-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.research-photo figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.72);
}

.research-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 3rem 0;
}

.research .focus-card,
.research .project-card {
  background: #fffdfa;
  border: 1px solid rgba(76, 58, 43, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(76, 58, 43, 0.06);
}

.research .focus-card {
  padding: 1.25rem 1.2rem;
}

.research .focus-card h2 {
  margin: 0 0 0.55rem 0;
  font-size: 1.08rem;
  text-align: left;
}

.research .focus-card p {
  margin: 0;
  line-height: 1.65;
}

.research-projects {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.research .project-card {
  padding: 1.35rem 1.35rem 1.15rem 1.35rem;
}

.research .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.research .project-tag,
.research .project-status {
  display: inline-block;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.research .project-tag {
  background: #efe4d5;
  color: #5f442d;
}

.research .project-status {
  background: #f7efe5;
  color: #7c2d12;
}

.research .project-card h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1.28rem;
  line-height: 1.3;
  text-align: left;
}

.research .project-card h3 a,
.research .project-links a,
.research-footer a,
.research .project-note a {
  text-decoration: none;
}

.research .project-card h3 a:hover,
.research .project-links a:hover,
.research-footer a:hover,
.research .project-note a:hover {
  text-decoration: underline;
}

.research .project-links,
.research .project-note {
  margin: 0 0 0.9rem 0;
  font-size: 0.95rem;
}

.research .project-card p {
  margin-top: 0;
  line-height: 1.72;
}

.research-footer {
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .research-hero,
  .research-focus-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Publications page ===== */
.publications {
  max-width: 1080px;
  margin: 0 auto;
}

.pub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.pub-kicker {
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7c2d12;
}

.pub-lede {
  margin: 0 0 0.5rem 0;
  max-width: 58ch;
  font-size: 1.12rem;
  line-height: 1.75;
}

.pub-note {
  margin: 0;
  color: rgba(0, 0, 0, 0.68);
}

.pub-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.pub-stat,
.pub-year-heading,
.pub-card {
  background: #fffdfa;
  border: 1px solid rgba(76, 58, 43, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(76, 58, 43, 0.06);
}

.pub-stat {
  padding: 1rem 1.1rem;
}

.pub-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.pub-stat span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.68);
}

.pub-year-block {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.pub-year-heading {
  position: sticky;
  top: 1rem;
  padding: 1rem 0.85rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #5f442d;
}

.pub-year-list {
  display: grid;
  gap: 0.9rem;
}

.pub-card {
  padding: 1.1rem 1.2rem;
}

.pub-card h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1.12rem;
  line-height: 1.4;
  text-align: left;
}

.pub-card h3 a,
.pub-links a,
.publications-footer a {
  text-decoration: none;
}

.pub-card h3 a:hover,
.pub-links a:hover,
.publications-footer a:hover {
  text-decoration: underline;
}

.pub-authors,
.pub-meta,
.pub-links {
  margin: 0;
  line-height: 1.6;
}

.pub-authors {
  margin-bottom: 0.35rem;
}

.pub-meta {
  color: rgba(0, 0, 0, 0.72);
  font-size: 0.96rem;
}

.pub-sep {
  margin: 0 0.55rem;
  color: rgba(0, 0, 0, 0.38);
}

.pub-links {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.pub-year {
  font-weight: 600;
}

.publications-footer {
  margin-top: 2rem;
}

@media (max-width: 960px) {
  .pub-hero,
  .pub-year-block {
    grid-template-columns: 1fr;
  }

  .pub-year-heading {
    position: static;
    text-align: left;
  }
}

.blog-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.blog-header h1{
  margin-bottom: 0.5rem;
}

.blog-intro{
  margin: 0.5rem 0 1.5rem 0;
}

.blog-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-item{
  padding: 1rem 0;
  border-top: 1px solid #e6e6e6;
}

.blog-link{
  font-size: 1.25rem;
  text-decoration: none;
}

.blog-meta{
  font-size: 0.95rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.blog-summary{
  margin: 0.6rem 0 0 0;
}

/* Force the main content wrapper to truly center */
main .nested-copy-line-height {
  max-width: 950px !important;
  width: 100% !important;
}

/* Hard-center any direct child wrapper inside main */
main > div,
main > section,
main > article {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 950px !important;
  width: 100% !important;
}
