body.wod-page {
    isolation: isolate;
    background: #23312a;
}

.wod-background {
    position: fixed;
    inset: var(--pf-nav-height) 0 0;
    z-index: -1;
    width: 100%;
    height: calc(100% - var(--pf-nav-height));
    object-fit: cover;
    object-position: 56% center;
    pointer-events: none;
}

.wod-page .page-title-band {
    box-sizing: border-box;
    display: grid;
    align-content: center;
    min-height: clamp(11rem, 24vw, 19rem);
    border: 0;
    background: linear-gradient(0deg, rgb(10 26 26 / 64%), rgb(10 26 26 / 27%));
    color: var(--pf-dark-text);
}

.content-page .wod-main {
    width: min(calc(100% - 2 * var(--pf-gutter)), 52rem);
    display: grid;
    gap: 1.25rem;
    padding-block: clamp(1.5rem, 4vw, 3rem);
}

.wod-day-nav {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, max-content) 2.75rem;
    grid-template-areas: "previous date next";
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 2.5vw, 1rem);
}

.wod-day-nav time {
    grid-area: date;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: var(--pf-dark);
    color: var(--pf-dark-text);
    font-weight: 750;
    text-align: center;
    line-height: 1.25;
}

.wod-day-prev {
    grid-area: previous;
}

.wod-day-next {
    grid-area: next;
}

.content-page main .wod-day-nav a {
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    border: 1px solid var(--pf-line);
    border-radius: 50%;
    background: var(--pf-paper);
    font-size: 1.5rem;
    line-height: 1;
    text-decoration: none;
}

.content-page main .wod-day-nav a:is(:hover, :focus-visible) {
    background: var(--pf-dark);
    color: var(--pf-dark-text);
}

.wod-workout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.wod-media {
    width: min(100%, 14rem);
    justify-self: center;
    margin: 0;
}

.wod-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (min-width: 48rem) {
    .wod-workout:has(.wod-media) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
    }
}

.wod-card {
    min-width: 0;
    padding: clamp(1.1rem, 4vw, 2rem);
    border: 1px solid var(--pf-line);
    border-radius: 12px;
    background: var(--pf-paper);
}

.wod-card :is(h2, h3, p, ol) {
    margin: 0;
}

.wod-card h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.15;
}

.wod-card .wod-meta,
.wod-note {
    color: var(--pf-muted);
    font-size: 0.9rem;
}

.wod-card .wod-meta {
    margin-bottom: 0.55rem;
    font-weight: 700;
}

.wod-card .wod-library-link {
    margin-top: 0.75rem;
}

.wod-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pf-line);
}

.wod-block h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.wod-block ol {
    margin-top: 0.5rem;
    padding-inline-start: 1.35rem;
}

.wod-form {
    display: grid;
    gap: 0.8rem;
    margin-block: 1rem;
}

.wod-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.wod-form :is(input, textarea) {
    width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--pf-line);
    border-radius: 6px;
    color: var(--pf-ink);
    background: var(--pf-paper);
    font: inherit;
}

.wod-form textarea {
    resize: vertical;
}

.wod-form :is(input, textarea):focus-visible {
    outline: 2px solid var(--pf-link);
    outline-offset: 2px;
}

.wod-form button:disabled {
    opacity: 0.65;
    cursor: wait;
}

#wod-comment-status:not(:empty) {
    margin-bottom: 1rem;
}

#wod-comment-status[data-tone="error"] {
    color: #9c2e24;
}

.wod-comments {
    list-style: none;
    padding: 0;
}

.wod-comments li {
    padding-block: 0.85rem;
    border-top: 1px solid var(--pf-line);
    overflow-wrap: anywhere;
}

.wod-comment-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.2rem 0.75rem;
    margin-bottom: 0.3rem;
}

.wod-comment-meta time {
    color: var(--pf-muted);
    font-size: 0.85rem;
}

.wod-comments p {
    white-space: pre-wrap;
}
