/* Base */
html {
    scroll-behavior: smooth;
    width: fit-content;
}

body {
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
}

ul {
    margin: 0;
    margin-top: .25rem;
    font-weight: normal;
}

ul li {
    margin-bottom: .25rem;
    list-style-type: disc;
}

/* Headings */
h1 {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Layout */
section {
    margin: 0;
    padding: 2rem 1rem;
    background-color: grey;
    justify-items: center;
    border-top: 2px solid #3f4550;
}

#intro {
    background-color: lightgrey;
    margin: 0;
}

/* Links Panel */
#links {
    display: flex;
    flex-direction: column;
    max-width: 85ch;
    border: 2px solid black;
    background-color: #f2f2f5;
}

#links h2 {
    margin: 0 0 .5rem;
    padding: .5rem 1rem;
    border-bottom: 2px solid black;
    background-color: #54546c;
    color: ghostwhite;
}

#links ul {
    padding-left: 3rem;
    padding-bottom: 1rem;
}

#links p {
    margin: 0;
    margin-bottom: .5rem;
    padding-left: 2rem;
}

#linksFootnote {
    margin: 0;
    padding: 1rem;
    border-top: 1px solid black;
}

/* Table */
table {
    border-collapse: collapse;
    border: 2px solid black;
}

.title-col {
    font-size: 1.5rem;
}

td,
th {
    font-weight: bold;
    border: 2px solid black;
    padding: 0.5rem;
}

thead {
    background-color: #54546c;
    color: ghostwhite;
    font-size: 1.1rem;
}

td {
    background-color: #f8f9fa;
    color: black;

}

/* Alignment helpers */
td.week-col {
    text-align: center;
    padding-inline: calc(.5rem + 1ch);
    white-space: nowrap;
}

td.topic-col,
td.module-col,
td.assessment-col {
    text-align: center;
    white-space: nowrap;
}

td.skills-col {
    text-align: left;
}

/* Zebra stripes and states */
.stripe-A>* {
    background-color: #f2f2f5;
}

.stripe-B>* {
    background-color: #e7edea;
}

td.empty {
    background-color: #f7f3d6;
    text-align: center;
}

/* Links */
a {
    color: blue;
    text-decoration: none;
}

a:visited {
    color: blue;
}

a.pending {
    color: grey;
    /* pointer-events: ; */
    cursor: not-allowed;
    text-decoration: none;
}