:root {
    font-family: "Helvetica Neue", sans-serif;

    --color-primary: #000;
    --color-accent: #0800ff;
    --color-accent-light: #0800ffb8;
}

body {
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2rem;
    max-width: 1100px;

}

h1 {
    font-size: 3.9rem;
    font-weight: 400;
    letter-spacing: -0.05rem;
    cursor: default;
}

@property --stroke-width {
    syntax: '<length>';
    inherits: true;
    initial-value: 0px;
}

.letter {
    --stroke-width: 0px;
    -webkit-text-stroke-width: var(--stroke-width);
    -webkit-text-stroke-color: currentColor;
    transition: --stroke-width 150ms ease;
}

.letter:hover {
    --stroke-width: 20px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.03rem;
}

.meta-container {
    display: grid;
    grid-template-columns: 500px auto;
    margin-bottom: 5rem;
}

.weekly-row {
    margin-top: 8rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, 500px);
    height: 220px;
    /* pick whatever fits your tallest normal content */

    grid-auto-flow: column;
    /* Force column widths to respect the 500px size */
    grid-auto-columns: 500px;
    /* Enable horizontal scrolling */
    overflow-x: auto;
    margin-bottom: 5rem;
    padding-bottom: 2rem;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;


}

.weekly-row>* {
    scroll-snap-align: none;

    animation: fadeOnScroll linear both;
    animation-timeline: view(inline);
    /* Adjust these percentages to control exactly when the fade happens */
    animation-range: entry 0% entry 100%, exit 0% exit 100%;
}

.weekly-row>*:nth-child(odd) {
    scroll-snap-align: start;

}

@keyframes fadeOnScroll {
    0% {
        opacity: 0.3;
        /* Faded when it is just a 'tad' on screen */
    }

    100% {
        opacity: 1;
        /* Fully bright when it scrolls into active view */
    }
}

.weekly-scroll-wrap {
    position: relative;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity 0.2s;
    z-index: 5;
}

.scroll-hint-next {
    right: -5rem;
}

.scroll-hint-prev {
    left: -5rem;
}

.scroll-hint:hover {
    opacity: 1;
    stroke-width: 1.9;

}


.scroll-hint:disabled {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}

.scroll-hint:disabled:hover {
    transform: translateY(-50%);
    /* cancel hover shift when disabled */
}

/* .current-week      { grid-column: 1; grid-row: 1;}
.current-homework  { grid-column: 2; grid-row: 1;}
.next-week         { grid-column: 3; grid-row: 1; } */

.meta {
    font-size: 0.9rem;
    display: flex;
    gap: 2rem;
}

.weekly-list>ul {
    line-height: 145%;
    font-size: 0.9rem;
}

.date {
    color: var(--color-accent);
    font-weight: 300;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: var(--color-accent)
}

.class-title {
    color: var(--color-accent)
}

/* Width and height of the scrollbar track */
.weekly-row::-webkit-scrollbar {
    height: 10px;
}

/* The background track underneath the slider */
.weekly-row::-webkit-scrollbar-track {
    background: #f0f0f0;
    /* Soft gray track so the white thumb stands out */
    border-radius: 10px;
}

/* The actual draggable slider handle (white with black border) */
.weekly-row::-webkit-scrollbar-thumb {
    background-color: #ffffff;
    /* White fill */
    border: 1px solid #000000;
    /* Crisp black outline */
    border-radius: 10px;
}

/* Darken slightly when clicked/hovered for accessibility */
.weekly-row::-webkit-scrollbar-thumb:hover {
    background-color: #eeeeee;
}

.weekly-row::-webkit-scrollbar-track {
    background: transparent;
    /* Makes the track background invisible */
}

.weekly-row a {
    color: inherit;
}

.weekly-row a::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--color-accent);
    vertical-align: -3px;
    margin-left: 0.3em;
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48bGluZSB4MT0iNyIgeTE9IjE3IiB4Mj0iMTciIHkyPSI3Ij48L2xpbmU+PHBvbHlsaW5lIHBvaW50cz0iNyA3IDE3IDcgMTcgMTciPjwvcG9seWxpbmU+PC9zdmc+");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48bGluZSB4MT0iNyIgeTE9IjE3IiB4Mj0iMTciIHkyPSI3Ij48L2xpbmU+PHBvbHlsaW5lIHBvaW50cz0iNyA3IDE3IDcgMTcgMTciPjwvcG9seWxpbmU+PC9zdmc+");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.weekly-row a:hover {
    color: var(--color-accent)
}

.weekly-row section {
    width: 500px; /* match your grid-auto-columns */
    min-width: 0; /* critical — overrides grid's default content-based sizing */
    padding-right: 10rem;
    box-sizing: border-box; /* padding stays inside the 500px, doesn't expand it */
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.weekly-row section::-webkit-scrollbar {
    display: none;
}

summary {
    list-style: none;
    /* Removes the arrow in modern browsers */
}

summary::-webkit-details-marker {
    display: none;
    /* Removes the arrow in Safari and older WebKit browsers */
}

summary>li::after {
    content: ' +';
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1.3em;
    /* scale relative to the surrounding text */

}

details[open] summary>li:after {
    content: " -";
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1.3em;
    /* scale relative to the surrounding text */
}

.submission-link {
    padding: 4px 12px;
    border-radius: 10px;
    background-color: var(--color-accent-light);
    color: white;
    cursor: pointer;
}

.submission-link:hover {
    background-color: var(--color-accent);
}

li:has(.submission-link) {
    margin-top: 8px;
}

a {
    color: var(--color-accent)
}

.link-arrow {
    color: var(--color-accent)
}