/* Base styles inherited from the previous course site (with small readability upgrades). */

.members_wrapper {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: space-evenly;
  gap: 12px;
}

.member_figure {
  margin: 0;
  min-width: 200px;
  max-width: 200px;
}

.member_image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 120px;
  height: 120px;
  border-radius: 80%;
}

.member_image_caption {
  text-align: center;
  font-size: 100%;
  line-height: 150%;
  padding: 4px;
}

body > .container { max-width: 1080px; font-family: "Roboto", sans-serif; font-weight: 300; }

/* Keep UMN maroon branding from the prior class */
.navbar { background-color: #7a0019; border-radius: 0; margin-bottom: 0; padding: 7px 0; font-weight: 300; }
.navbar .container { background-color: transparent; }
.navbar-header { float: none; text-align: center; margin: 10px 0 5px; }
.navbar-brand, .navbar-brand:visited, .navbar-brand:active { float: none; color: white; font-size: 1.2em; line-height: 1.5em; }
.navbar-brand:hover { color: white; text-decoration: none; }

.post-content h4 { margin: 20px 0 15px; font-size: 22px; }
.post-content p { font-size: 15px; line-height: 24px; }

body, table, dt, dd { font-size: 15px; line-height: 24px; }
body { background-color: #EFEFEF; }
.container { background-color: #EFEFEF; padding: 0; }

.card:nth-of-type(1) { margin-top: -10px; }
.card {
  background-color: white;
  margin-top: 20px;
  padding: 10px 22px 22px;
  -webkit-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  -moz-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  border-radius: 6px;
}

/* Readability upgrades */
header.hero {
  padding: 18px 10px 0;
}
header.hero h1 { font-weight: 400; letter-spacing: 0.2px; }
header.hero .lead { margin-bottom: 8px; }

.nav-pills .nav-link {
  border-radius: 999px;
  margin: 4px 6px;
  padding: 8px 14px;
  background: rgba(122,0,25,0.06);
  color: #7a0019;
}
.nav-pills .nav-link:hover { background: rgba(122,0,25,0.10); }
.nav-pills .nav-link.active {
  background-color: #7a0019;
  color: #ffffff;
}

.section-note {
  background: rgba(241, 196, 15, 0.12);
  border-left: 4px solid rgba(241, 196, 15, 0.7);
  padding: 10px 12px;
  border-radius: 6px;
}

.kv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 768px) {
  .kv-grid { grid-template-columns: 1fr 1fr; }
}

.kv {
  background: rgba(0,0,0,0.03);
  padding: 12px 12px;
  border-radius: 6px;
}
.kv .k { font-weight: 400; color: #333; }
.kv .v { margin-top: 2px; }

.content { padding: 0 0 20px; }

table { table-layout: fixed; border-spacing: 2px; text-indent: initial; }

table td {
  overflow: hidden;
  width: 75px;
  padding: 10px;
  border: 1px solid #222;
  border-collapse: collapse;
  vertical-align: top;
}

@media (min-width:768px) { .container { padding: 0 } table td { width: 180px; } }
@media (min-width:960px) { table td { width: 230px; } }

thead { font-weight: bold; }

table ul { padding: 0 0 0 20px; margin: 0; }

.schedule-meta { font-size: 14px; color: #444; }
.schedule-meta strong { font-weight: 400; }

footer { text-align: center; padding: 18px 10px; color: white; background-color: #7a0019; margin-top: 20px; }

.light-danger td { background-color: rgba(231, 76, 60, 0.1); }
.light-success td { background-color: rgba(46, 204, 113, 0.1); }
.light-mod0 td { background-color: white; }
.light-mod1 td { background-color: rgba(52, 152, 219, 0.1); }
.light-mod2 td { background-color: rgba(231, 76, 60, 0.1); }
.light-mod3 td { background-color: rgba(241, 196, 15, 0.1); }
.light-mod4 td { background-color: rgba(155, 89, 182, 0.1); }
.light-mod6 td { background-color: rgba(0, 128, 0, 0.1); }
.light-mod5 td { background-color: rgba(26, 188, 156, 0.1); }
.light-mod7 td { background-color: rgba(128,128,128,0.3); }

.table-hover .light-danger:hover { background-color: rgba(231, 76, 60, 0.15); }

/* Prevent icon wrapping glitches from the legacy stylesheet */
.fa-regular, .far { white-space: nowrap; }

/* Small additions for the updated schedule table */
.muted { color: #666; font-size: 13px; }

/* Improve link contrast inside colored rows */
table a { color: #0b4f79; text-decoration: none; }
table a:hover { text-decoration: underline; }

/* Better mobile readability for the schedule */
@media (max-width: 576px) {
  table td { padding: 8px; }
  .schedule-meta { font-size: 13px; }
}


    body { background: #fafafa; }
    .navbar { background: #111827; }
    .navbar .navbar-brand { font-weight: 600; }
    .hero { padding: 1.25rem 1rem; }
    .hero .display-4 { font-weight: 700; letter-spacing: -0.02em; }
    .card { border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 1px 2px rgba(0,0,0,0.04); border-radius: 12px; padding: 1.25rem 1.25rem; margin-bottom: 1rem; }
    .card h3 { margin-bottom: 0.75rem; }
    .nav-pills .nav-link { border-radius: 999px; margin: 0.2rem 0.25rem; }
    .nav-pills .nav-link.active { background: #111827; }
    .section-note { background: #f3f4f6; border: 1px solid rgba(0,0,0,0.06); border-radius: 12px; padding: 0.9rem 1rem; margin-top: 0.75rem; }
    .muted { color: #6b7280; }
    table.table td { vertical-align: top; }
    table.table ul { padding-left: 1.1rem; margin-bottom: 0; }
    a[target="_blank"] { text-decoration-thickness: 1px; }
    footer { padding: 2rem 1rem; color: #6b7280; text-align: center; }
    .tight-list li { margin-bottom: 0.25rem; }
    code.inline { padding: 0.1rem 0.3rem; background: #f3f4f6; border-radius: 6px; }