body {
    font-family: Optima, Candara, Calibri, Arial, sans-serif;
    margin-top: 20px;
    /* font-family: 'Tangerine', serif; */
}

code {
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 85%;
}

a {
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    color: #00A0FF;
    text-decoration: underline;
}

.title {
    font-size: 38px;
    font-weight: 400;
    /* color: #8C1515; */
    /* center */
    text-align: center;
}

.title2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}


.section {
    /* margin-bottom: 24px; */
    margin-top: 24px;
    display: block;
}

.subsection{
    margin-top: 16px;
    margin-bottom: 32px;
}

#overview .subsection{
    margin-bottom: 12px;
}

.para-heading-inline {
    font-weight: 600;
    font-size: 16px;
}

.site-header nav {
    background-color: #8C1515 !important;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.site-header nav .container-fluid {
    padding-left: 0;
}

.navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: stretch;
}

.seas-logo-header {
    height: 64px;
    width: auto;
    padding: 6px 10px;
    background-color: white;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 16px 16px !important;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active {
    color: white !important;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.header-spacer {
    height: 24px;
}

h1 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 16px;
    color: #8C1515;
}

h2 {
    /* font-family: 'Fira Sans', sans-serif; */
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 16px;
    margin-top: 24px;
}

h3 {
    /* font-family: 'Fira Sans', sans-serif; */
    font-weight: 300;
    font-size: 18px;
}

h4 {
    /* font-family: 'Fira Sans', sans-serif; */
    font-weight: 200;
    font-size: 18px;
}

h5 {
    /* font-family: 'Fira Sans', sans-serif; */
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 4px;
    margin-top: 22px;
}

p {
    font-size: 17px;
    margin-bottom: 10px;
}

#schedule table th:nth-child(2),
#schedule table td:nth-child(2) {
    min-width: 108px;
    width: 108px;
}

#schedule table th:nth-child(3),
#schedule table td:nth-child(3) {
    min-width: 200px;
    width: 200px;
}

#schedule table th:nth-child(6),
#schedule table td:nth-child(6) {
    max-width: 160px;
    width: 160px;
}

#schedule tr.schedule-break td {
    color: #555;
}

.site-footer {
    background-color: #8C1515;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

.site-footer p {
    margin: 2px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a {
    color: white;
    text-decoration: underline;
}

.site-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer .footer-copyright {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* FAQ List Styling */
.faq-list {
    margin-top: 16px;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
    margin-top: 0;
}

.faq-item p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0;
}

/* Discussion Schedule Styling - Inline Version */
.discussion-schedule-inline {
    margin: 16px 0;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
}

.schedule-row {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
}

.schedule-cell {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.schedule-cell:hover {
    background-color: #e9ecef;
    border-color: #8C1515;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.schedule-cell .duration {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #8C1515;
    margin-bottom: 8px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #8C1515;
}

.schedule-cell .activity {
    font-size: 13px;
    line-height: 1.3;
    color: #333;
}

/* Responsive Design for Schedule - Mobile */
@media (max-width: 768px) {
    .discussion-schedule-inline {
        padding: 12px;
    }

    .schedule-row {
        gap: 8px;
    }

    .schedule-cell {
        min-width: 120px;
        padding: 8px;
    }

    .schedule-cell .duration {
        font-size: 12px;
        padding: 3px 6px;
        margin-bottom: 6px;
    }

    .schedule-cell .activity {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .schedule-cell {
        min-width: 100px;
        padding: 6px;
    }

    .schedule-cell .activity {
        font-size: 11px;
    }
}

/* Lead paragraph styling */
.lead {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Paper Reading Strategy Styling - Compact */
.reading-passes {
    margin: 16px 0;
}

.reading-pass {
    margin-bottom: 16px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.reading-pass:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.pass-header {
    background: linear-gradient(135deg, #8C1515, #a8322e);
    color: white;
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
}

.pass-header h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.pass-goal {
    font-size: 15px;
    font-style: italic;
    opacity: 0.9;
    margin: 0;
}

.pass-content {
    padding: 16px;
}

.pass-content h4 {
    color: #8C1515;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 2px;
}

.pass-content h4:first-child {
    margin-top: 0;
}

.pass-content ul {
    margin-bottom: 12px;
}

.pass-content li {
    margin-bottom: 4px;
    line-height: 1.5;
    font-size: 16px;
}

.tip {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 12px 0;
    border-left: 3px solid #f39c12;
    font-size: 15px;
}

.tip strong {
    color: #d68910;
}

.evaluation-lens {
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px 12px;
    margin: 12px 0;
    border-left: 3px solid #17a2b8;
    font-size: 15px;
}

.evaluation-lens h4 {
    color: #17a2b8;
    margin-top: 0;
    border: none;
    padding: 0;
    font-size: 15px;
}

.strategy-summary {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
    border-left: 3px solid #28a745;
}

.strategy-summary p {
    margin: 0 0 12px 0;
    font-size: 16px;
    line-height: 1.5;
}

.strategy-summary strong {
    color: #28a745;
}

.reference-links {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.reference-links h4 {
    color: #8C1515;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

.reference-links ul {
    margin: 0;
    padding: 0;
}

.reference-links li {
    margin-bottom: 8px;
    list-style: none;
    padding-left: 0;
}

.reference-links a {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.reference-links a:hover {
    background-color: #8C1515;
    color: white;
    border-color: #8C1515;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(140, 21, 21, 0.3);
}

/* Responsive Design for Reading Strategy - Compact */
@media (max-width: 768px) {
    .pass-header {
        padding: 10px 12px;
    }

    .pass-header h3 {
        font-size: 17px;
    }

    .pass-content {
        padding: 12px;
    }

    .tip, .evaluation-lens {
        padding: 8px 10px;
    }

    .strategy-summary {
        padding: 12px;
    }
}

/* Policy Page Styling */
.policy-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.policy-toc a {
    display: inline-block;
    padding: 6px 14px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.policy-toc a:hover {
    background-color: #8C1515;
    color: white;
    border-color: #8C1515;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(140, 21, 21, 0.3);
}

.policy-grade-table {
    max-width: 500px;
}

.policy-grade-table td:last-child,
.policy-grade-table th:last-child {
    text-align: right;
    width: 100px;
}

/* Discussion Questions Callout */
.discussion-questions {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #8C1515;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 16px 0;
}

.discussion-questions h4 {
    color: #8C1515;
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 12px;
    border: none;
    padding: 0;
}

.discussion-questions ul {
    margin-bottom: 0;
}

.discussion-questions li {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 16px;
}

/* Rubric Table */
.rubric-table {
    font-size: 14px;
}

.rubric-table td,
.rubric-table th {
    vertical-align: top;
}

.rubric-table td.rubric-weight,
.rubric-table th.rubric-weight {
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    width: 70px;
}

@media (max-width: 768px) {
    .rubric-table {
        font-size: 12px;
    }
}

/* ============================================================
   Lecture Notes
   Used by public/notes/*.html. Generated from notes/*.md.
   ============================================================ */

.note-body {
    max-width: 860px;
}

.note-body p,
.note-body li {
    line-height: 1.65;
}

.note-body h2 {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 23px;
    color: #8C1515;
    margin-top: 34px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ececec;
}

.note-body h3 {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-top: 24px;
    margin-bottom: 8px;
}

.note-body table {
    font-size: 15px;
}

/* Date + readings header */
.note-meta {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #8C1515;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 20px 0 24px;
    font-size: 15px;
}

.note-meta p {
    font-size: 15px;
    margin-bottom: 6px;
}

.note-meta p:last-child {
    margin-bottom: 0;
}

.note-meta ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.note-meta li {
    margin-bottom: 5px;
    font-size: 15px;
}

.badge-required,
.badge-optional {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 1px 7px;
    border-radius: 3px;
    vertical-align: 1px;
    margin-right: 6px;
}

.badge-required {
    background-color: #8C1515;
    color: #fff;
}

.badge-optional {
    background-color: #e9ecef;
    color: #555;
    border: 1px solid #dee2e6;
}

/* On-page contents */
.note-toc {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 24px;
}

.note-toc h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8C1515;
    margin: 0 0 8px;
}

.note-toc ol {
    margin: 0;
    padding-left: 22px;
    font-size: 15px;
    columns: 2;
    column-gap: 28px;
}

.note-toc li {
    margin-bottom: 4px;
    break-inside: avoid;
}

@media (max-width: 700px) {
    .note-toc ol {
        columns: 1;
    }
}

/* Instructor-only block (collapsed by default) */
.instructor-note {
    background-color: #fdf4f4;
    border: 1px dashed #c98b8b;
    border-left: 3px solid #8C1515;
    border-radius: 6px;
    padding: 0;
    margin: 18px 0;
    font-size: 15px;
}

.instructor-note > summary {
    cursor: pointer;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #8C1515;
    list-style: none;
}

.instructor-note > summary::-webkit-details-marker {
    display: none;
}

.instructor-note > summary::before {
    content: "\25B8\00a0\00a0";
    font-size: 11px;
}

.instructor-note[open] > summary::before {
    content: "\25BE\00a0\00a0";
}

.instructor-note > summary:hover {
    color: #a8322e;
    text-decoration: underline;
}

.instructor-note .instructor-body {
    padding: 0 14px 12px;
}

.instructor-note p {
    font-size: 15px;
    margin-bottom: 7px;
}

.instructor-note ul {
    margin-bottom: 7px;
}

.instructor-note li {
    font-size: 15px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.instructor-note table {
    font-size: 14px;
    background-color: #fff;
}

.instructor-note :last-child {
    margin-bottom: 0;
}

/* Display formula */
.formula {
    font-family: "Lucida Console", Monaco, monospace;
    font-size: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
}

/* Worked back-of-envelope calculation */
.worked {
    background-color: #eef4ff;
    border: 1px solid #ccdcf7;
    border-left: 3px solid #0b5ed7;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 18px 0;
    font-size: 16px;
}

.worked h4 {
    color: #0b5ed7;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
}

.worked p,
.worked li {
    font-size: 16px;
    margin-bottom: 6px;
}

.worked .formula {
    background-color: #fff;
    border-color: #ccdcf7;
    margin: 10px 0;
}

.worked :last-child {
    margin-bottom: 0;
}

/* Key takeaways */
.takeaway {
    background-color: #f1f8f3;
    border: 1px solid #cfe7d6;
    border-left: 3px solid #28a745;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 18px 0;
}

.takeaway p,
.takeaway li {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 8px;
}

.takeaway :last-child {
    margin-bottom: 0;
}

/* Self-check questions */
.selfcheck {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #8C1515;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 18px 0;
}

.selfcheck ol {
    margin-bottom: 0;
    padding-left: 22px;
}

.selfcheck li {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.selfcheck li:last-child {
    margin-bottom: 0;
}

.selfcheck .answer {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    color: #555;
}

.selfcheck .answer strong {
    color: #8C1515;
}

/* Prev / next navigation */
.note-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.note-nav a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    max-width: 46%;
}

.note-nav a:hover {
    background-color: #8C1515;
    color: #fff;
    border-color: #8C1515;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(140, 21, 21, 0.3);
}

.note-nav .nav-spacer {
    flex: 1;
}

@media (max-width: 600px) {
    .note-nav a {
        max-width: 100%;
    }
}

/* Notes index page */
.notes-list {
    margin-top: 8px;
}

.note-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-left: 3px solid #8C1515;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 12px;
    color: inherit;
    transition: all 0.2s ease;
}

.note-card:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    border-left-color: #a8322e;
}

.note-card .note-card-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8C1515;
}

.note-card .note-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 2px 0 4px;
}

.note-card .note-card-summary {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Assignments: the five parts of one system, laid out as a path */
.notes-grid {
    counter-reset: assign;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 60px;
}

.notes-grid .note-card {
    position: relative;
    counter-increment: assign;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 22px 24px 20px;
    background: #FBF6F3;
    border: 1px solid #E9DCD7;
    border-top: 3px solid #8C1515;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
                box-shadow 0.25s ease,
                background-color 0.25s ease,
                border-color 0.25s ease;
}

.notes-grid .note-card:hover {
    color: inherit;
    text-decoration: none;
    background: #FCEFE9;
    border-color: #D8C4BB;
    border-top-color: #a8322e;
    box-shadow: 0 12px 28px -10px rgba(140, 21, 21, 0.28);
    transform: translateY(-2px);
}

/* Ghost index numeral ("01" - "05") in the top-right corner */
.notes-grid .note-card::before {
    content: counter(assign, decimal-leading-zero);
    position: absolute;
    top: 6px;
    right: 14px;
    font-size: 54px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(140, 21, 21, 0.09);
    pointer-events: none;
}

/* Keep the tile text above the ghost numeral */
.notes-grid .note-card > * {
    position: relative;
    z-index: 1;
}

#assignment-1 {
    grid-column: 1 / -1;
}

.notes-grid .note-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8C1515;
}

.notes-grid .note-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    color: #2F2A27;
    margin: 8px 0 8px;
    max-width: 82%;
}

.notes-grid .note-card-summary {
    font-size: 15px;
    line-height: 1.55;
    color: #6B5A53;
    flex-grow: 1;
    margin: 0;
}

/* Order arrows between the tiles */
#assignment-1::after {
    content: "\2193";
    position: absolute;
    bottom: -34px;
    left: 50%;
    margin-left: -8px;
    color: #8C1515;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

#assignment-2::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -21px;
    margin-top: -8px;
    color: #8C1515;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

#assignment-3::after {
    content: "\2193";
    position: absolute;
    bottom: -34px;
    left: -21px;
    color: #8C1515;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

#assignment-4::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: -21px;
    margin-top: -8px;
    color: #8C1515;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 620px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .notes-grid .note-card {
        padding: 18px 20px 16px;
    }

    .notes-grid .note-card::before {
        font-size: 42px;
    }

    #assignment-2::after,
    #assignment-3::after,
    #assignment-4::after {
        content: none;
    }
}

/* Tile grid without the ghost index numerals (computing environments) */
.notes-grid-plain .note-card::before {
    content: none;
}

.notes-grid-plain .note-card-title {
    max-width: 100%;
}

/* Print: drop chrome, expand instructor blocks, show link targets */
@media print {
    .site-header,
    .site-footer,
    .note-nav,
    .note-toc {
        display: none !important;
    }

    body {
        margin-top: 0;
    }

    .note-body {
        max-width: none;
    }

    .instructor-note {
        break-inside: avoid;
    }

    .instructor-note > summary {
        list-style: none;
    }

    .worked,
    .takeaway,
    .selfcheck,
    .formula,
    table {
        break-inside: avoid;
    }

    .note-body h2 {
        break-after: avoid;
    }
}

/* ============================================================
   Readings
   Used by public/readings.html.
   ============================================================ */

.badge-extra {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 1px 7px;
    border-radius: 3px;
    vertical-align: 1px;
    margin-right: 6px;
    background-color: #fff;
    color: #8a8a8a;
    border: 1px dashed #ced4da;
}

.readings-table {
    font-size: 15px;
}

.readings-table td,
.readings-table th {
    vertical-align: top;
}

.readings-table th:nth-child(2),
.readings-table td:nth-child(2) {
    width: 62px;
    min-width: 62px;
    text-align: center;
    color: #666;
}

.readings-table th:nth-child(3),
.readings-table td:nth-child(3) {
    width: 46%;
    color: #333;
}

.readings-table td:first-child {
    min-width: 250px;
}

/* Topic group header inside a meeting's reading table. The custom properties
   are how Bootstrap 5.3 paints row backgrounds (an inset box-shadow), so they
   have to be overridden rather than `background-color`. */
.readings-table tr.reading-topic > th {
    --bs-table-bg-type: #f3ecec;
    --bs-table-bg-state: #f3ecec;
    background-color: #f3ecec;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8C1515;
}

.overview-table {
    font-size: 15px;
}

.overview-table td,
.overview-table th {
    vertical-align: top;
}

.overview-table th:first-child,
.overview-table td:first-child {
    width: 26%;
}

.overview-table th:nth-child(2),
.overview-table td:nth-child(2) {
    width: 26%;
}

.overview-table tr.overview-meeting > td {
    border-top: 2px solid #8C1515;
}

.overview-table .overview-none {
    color: #777;
}

.reading-led {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #8C1515;
    border: 1px solid #e4c7c7;
    border-radius: 3px;
    padding: 0 5px;
    margin-left: 6px;
    white-space: nowrap;
}

#part-1 .subsection,
#part-2 .subsection,
#part-3 .subsection,
#not-scheduled .subsection {
    scroll-margin-top: 90px;
}

/* One class meeting per block, separated hard from the next. `.reading-more`
   is a continuation of the meeting above it, so it gets a lighter rule. */
.reading-meeting {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 40px;
    padding-bottom: 16px;
    border-top: 3px solid #e0d3d3;
}

.section > .reading-meeting:first-of-type {
    padding-top: 8px;
    border-top: none;
}

.reading-more {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 24px;
    padding-bottom: 16px;
}

.reading-more > h2 {
    font-style: italic;
}

.reading-date {
    display: inline-block;
    min-width: 74px;
    color: #8C1515;
    font-variant-numeric: tabular-nums;
}

.reading-date::after {
    content: "\00b7";
    color: #c9c9c9;
    margin-left: 8px;
}

.reading-notes {
    font-size: 14px;
    margin-top: -6px;
}

.reading-also {
    display: inline-block;
    font-size: 12px;
    line-height: 1.5;
    color: #777;
    white-space: normal;
}

@media (max-width: 767px) {
    .readings-table {
        font-size: 14px;
    }

    .overview-table {
        font-size: 14px;
    }

    .reading-meeting {
        padding-top: 28px;
    }
}

/* ============================================================
   Staff photos
   Used by public/index.html (#staff).
   ============================================================ */

.staff-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 8px 0 20px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.staff-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.staff-name {
    font-size: 16px;
    font-weight: 600;
}

.staff-name a {
    color: #333;
}

.staff-name a:hover {
    color: #8C1515;
}

.staff-role {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #8C1515;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .staff-card {
        min-width: 100%;
    }
}

.sponsor-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 30px 36px;
    margin: 26px 0 22px;
}

.sponsor {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 1 240px;
    max-width: 280px;
}

.sponsor-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    width: 100%;
}

/* The anchor is the flex item, not the image. Its height is auto, so a
   percentage max-height on the image inside it resolves to none and the
   mark overflows; every cap below is therefore absolute. */
.sponsor-mark a {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: 100%;
}

.sponsor-mark img {
    max-height: 56px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Sponsor marks arrive at unrelated optical weights; the per-sponsor
       overrides below bring them to a common visual size. */
}

.sponsor-fas .sponsor-mark img {
    max-height: 50px;
}

.sponsor-aws .sponsor-mark img {
    max-height: 46px;
}

.sponsor-madsys .sponsor-mark img {
    max-height: 54px;
}

.sponsor-blurb {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin: 12px 0 0;
}

.sponsor-blurb a {
    color: #8C1515;
}

@media (max-width: 575px) {
    .sponsor-logos {
        gap: 26px;
    }

    .sponsor {
        flex-basis: 100%;
    }
}
