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 {
    margin-bottom: 0px;
    margin-top: 24px;
    font-weight: 600;
    font-size: 20px;
}

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

.top {
    padding-top: 40px;
}

.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;
}

.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-title {
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.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;
}

.total-time {
    text-align: center;
    margin-top: 12px;
    padding: 8px 12px;
    background-color: #e7f3ff;
    border-radius: 4px;
    border-left: 3px solid #0066cc;
}

.total-time time {
    font-weight: 600;
    color: #0066cc;
    font-size: 14px;
}

/* 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;
}

/* 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;
    }
}
