/* css/workshops.css — the Workshops page (/workshops) and workshop sections on
   other pages, both drawn by js/workshops.js. Built only on the site's tokens
   from css/style.css, so both themes and the Design tab's overrides apply.
   Everything is prefixed wks- so it cannot leak into the rest of the site. */

/* Small print (a past workshop's date, an address). --muted is too faint for
   text on the light theme's near-white (about 3.4:1), so there it steps up to
   --ink-2. Both still follow the Design tab. */
:root { --wks-quiet: var(--muted); }
:root[data-theme="light"] { --wks-quiet: var(--ink-2); }

/* ---------- The page section ---------- */
.workshops {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
    position: relative;
}
.workshops::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 85% 0%, var(--glow-soft), transparent 60%);
    pointer-events: none;
}
.workshops .section-inner { position: relative; z-index: 1; }
.workshops .section-head { margin-bottom: 1.75rem; }

.wks-intro {
    max-width: 760px;
    margin: 0 0 3.5rem;
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.8;
}
.wks-intro[hidden] { display: none; }
.wks-intro p,
.wks-intro ul,
.wks-intro ol { margin: 0 0 1rem; }
.wks-intro > :last-child { margin-bottom: 0; }
.wks-intro ul,
.wks-intro ol { padding-inline-start: 1.4rem; }
.wks-intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wks-intro strong { color: var(--ink); font-weight: 600; }

.wks-root { min-height: 4rem; }
.wks-loading {
    color: var(--wks-quiet);
    font-family: var(--font-mono);
    font-size: 13px;
}
.wks-preview-note {
    margin: 0 0 2rem;
    padding: 0.8rem 1rem;
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
    background: var(--bg-3);
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.55;
}
.wks-preview-note strong { color: var(--ink); }

/* ---------- Groups: Coming up / Past workshops ---------- */
.wks-group + .wks-group { margin-top: 4.5rem; }
.wks-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}
.wks-group-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: var(--ink);
}
.wks-count {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--bg-3);
    color: var(--ink-2);
}

/* ---------- Shared bits ---------- */
.wks-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}
html[dir="rtl"] .wks-icon-arrow,
html[dir="rtl"] .wks-icon-prev,
html[dir="rtl"] .wks-icon-next { transform: scaleX(-1); }

.wks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.wks-btn .wks-icon { width: 15px; height: 15px; }
.wks-btn-primary {
    background: var(--cta-bg);
    border-color: var(--cta-bg);
    color: var(--cta-text);
}
.wks-btn-primary:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color: var(--cta-text);
}
.wks-btn-secondary {
    background: var(--bg-2);
    border-color: var(--line-2);
    color: var(--ink);
    font-weight: 500;
}
.wks-btn-secondary:hover {
    background: var(--bg-3);
    border-color: var(--focus-border);
    color: var(--ink);
}
.wks-btn-quiet {
    background: transparent;
    color: var(--ink-2);
    font-weight: 500;
    padding-inline: 0.7rem;
}
.wks-btn-quiet:hover { background: var(--bg-3); color: var(--ink); }
.wks-toggle .wks-icon { transition: transform 0.2s ease; }
.wks-toggle[aria-expanded="true"] .wks-icon { transform: rotate(180deg); }

.wks-btn:focus-visible,
.wks-past:focus-visible,
.wks-thumb:focus-visible,
.wks-sheet-close:focus-visible,
.wks-lb-close:focus-visible,
.wks-lb-nav:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.wks-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.wks-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}
.wks-flag {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.wks-flag.is-soon { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.wks-flag.is-full { border-color: var(--ink-2); color: var(--ink); }
.wks-flag.is-cancelled { border-color: var(--danger); color: var(--danger); }
.wks-flag.is-hidden { border-style: dashed; white-space: normal; text-align: start; }

/* A picture in a frame; the frame shows a quiet camera when there is no
   picture, or none of its candidates load. */
.wks-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--img-frame);
}
.wks-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wks-media.is-missing img { display: none; }
.wks-media.is-missing::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--muted);
    opacity: 0.45;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3.2L9 6h6l1.8 2.5H20V19H4z'/%3E%3Ccircle cx='12' cy='13.3' r='3.3'/%3E%3C/svg%3E") center / 36px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3.2L9 6h6l1.8 2.5H20V19H4z'/%3E%3Ccircle cx='12' cy='13.3' r='3.3'/%3E%3C/svg%3E") center / 36px no-repeat;
}

.wks-facts {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1rem;
}
.wks-facts dd {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.45;
}
.wks-facts dd > span { min-width: 0; overflow-wrap: anywhere; }
.wks-facts .wks-icon { color: var(--muted); margin-top: 0.12em; }
.wks-address {
    display: block;
    color: var(--wks-quiet);
    font-size: 0.875rem;
}

.wks-summary {
    max-width: 64ch;
    margin: 0 0 1.25rem;
    color: var(--ink-2);
    line-height: 1.7;
    white-space: pre-line;
}
.wks-note { margin: 0 0 1rem; color: var(--ink-2); }

/* Text written in the admin's editor. */
.wks-prose {
    max-width: 68ch;
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.75;
}
.wks-prose p,
.wks-prose ul,
.wks-prose ol,
.wks-prose blockquote { margin: 0 0 1rem; }
.wks-prose > :last-child { margin-bottom: 0; }
.wks-prose ul,
.wks-prose ol { padding-inline-start: 1.4rem; }
.wks-prose li { margin-bottom: 0.25rem; }
.wks-prose h1,
.wks-prose h2,
.wks-prose h3,
.wks-prose h4 {
    margin: 1.4rem 0 0.6rem;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.wks-prose strong { color: var(--ink); font-weight: 600; }
.wks-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wks-prose blockquote {
    padding: 0.2rem 1rem;
    border-inline-start: 3px solid var(--line-2);
    font-style: italic;
}
.wks-prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ---------- Coming up: one card per workshop ---------- */
/* The date on the left, the words in the middle, the cover and the buttons
   on the right; "More details" opens across the bottom. */
.wks-list { display: grid; gap: 1rem; }
.wks-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "when main actions"
        ".    more more";
    column-gap: 1.75rem;
    align-items: start;
    padding: 1.5rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.25);
    scroll-margin-top: calc(var(--header-h) + 1.25rem);
    transition: border-color 0.15s ease;
}
.wks-card.has-cover {
    grid-template-columns: auto minmax(0, 1fr) minmax(200px, 280px);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "when main cover"
        "when main actions"
        ".    more more";
}
.wks-card:hover { border-color: var(--line-2); }
.wks-card.is-hidden { border-style: dashed; }
.wks-card > .wks-actions {
    grid-area: actions;
    flex-direction: column;
    align-items: stretch;
    min-width: 190px;
}
.wks-card.has-cover > .wks-actions { margin-top: 0.9rem; }
.wks-card.is-target { animation: wks-target 2.6s ease-out 1; }
@keyframes wks-target {
    0%, 35% { border-color: var(--ink); box-shadow: 0 0 0 4px var(--glow-strong); }
    100% { border-color: var(--line); box-shadow: 0 0 0 0 transparent; }
}

.wks-card-main { grid-area: main; min-width: 0; }
.wks-card-main > :last-child { margin-bottom: 0; }
.wks-card-cover {
    grid-area: cover;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.wks-card-title {
    margin: 0 0 0.8rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* The date, at a glance. The same date is written out in the card for
   screen readers, so this is hidden from them. */
.wks-when {
    grid-area: when;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 84px;
    padding: 0.85rem 0.4rem 0.8rem;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: calc(var(--radius) * 1.25);
    text-align: center;
    line-height: 1;
}
.wks-when-month,
.wks-when-week {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    white-space: nowrap;
}
.wks-when-week { color: var(--wks-quiet); letter-spacing: 0.06em; }
.wks-when-day {
    padding: 0.1rem 0;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.wks-when-tbc {
    padding: 0.3rem 0 0.15rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.wks-card.is-cancelled .wks-card-title { color: var(--ink-2); }
.wks-card.is-cancelled .wks-when,
.wks-card.is-cancelled .wks-card-cover { opacity: 0.5; filter: grayscale(1); }

.wks-more {
    grid-area: more;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.wks-more[hidden] { display: none; }

.wks-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}
.wks-more > .wks-thumbs:first-child { margin-top: 0; }
.wks-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--img-frame);
    cursor: zoom-in;
}
.wks-thumb .wks-media { aspect-ratio: 1; }
.wks-thumb img { transition: transform 0.5s var(--ease), opacity 0.2s ease; }
.wks-thumb:hover img { transform: scale(1.04); opacity: 0.92; }

/* ---------- Nothing coming up ---------- */
.wks-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 2rem;
    background: var(--bg-2);
    border: 1px dashed var(--line-2);
    border-radius: calc(var(--radius) * 1.5);
}
.wks-empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--bg-3);
    border: 1px solid var(--line-2);
    border-radius: calc(var(--radius) * 1.5);
    color: var(--ink-2);
}
.wks-empty-icon .wks-icon { width: 24px; height: 24px; }
.wks-empty-title {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.wks-empty-body > p:not(.wks-empty-title) {
    max-width: 62ch;
    margin: 0 0 1.25rem;
    color: var(--ink-2);
    line-height: 1.7;
}
.wks-empty-body > p:last-child { margin-bottom: 0; }
.wks-empty-body a:not(.wks-btn) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.wks-empty.is-compact { padding: 1.25rem 1.5rem; }
.wks-empty.is-compact .wks-empty-icon { width: 44px; height: 44px; }

/* ---------- Past workshops: a grid of covers ---------- */
.wks-past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.wks-past {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.wks-past:hover { border-color: var(--line-2); transform: translateY(-2px); color: inherit; }
.wks-past.is-hidden { border-style: dashed; }
.wks-past-cover {
    aspect-ratio: 4 / 3;
    border-bottom: 1px solid var(--line);
}
.wks-past-cover img { transition: transform 0.7s var(--ease); }
.wks-past:hover .wks-past-cover img { transform: scale(1.03); }
.wks-past-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.15rem 1.15rem;
}
.wks-past-date {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--wks-quiet);
}
.wks-past-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.wks-past-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-2);
    font-size: 13px;
}
.wks-past-meta .wks-icon { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Dialogs: a past workshop, and its photos full screen ---------- */
html.wks-locked {
    overflow: hidden;
    padding-inline-end: var(--wks-scrollbar, 0px);
}
.wks-sheet,
.wks-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
}

.wks-sheet[open] {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4rem 1.5rem;
}
.wks-sheet::backdrop {
    background: var(--overlay-modal);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.wks-sheet-panel {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 2.25rem 2rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * 1.5);
}
.wks-sheet-panel:focus { outline: none; }
.wks-sheet-close {
    position: fixed;
    top: 1.25rem;
    inset-inline-end: 1.25rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: var(--bg-2);
    color: var(--ink);
}
.wks-sheet-close:hover { background: var(--bg-3); }
.wks-kicker {
    margin: 0 0 0.75rem;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.wks-sheet-title {
    margin: 0 0 1.1rem;
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.wks-sheet-panel > .wks-summary { color: var(--ink); font-size: 1.05rem; }
.wks-sheet-panel > .wks-prose { margin-bottom: 2rem; }
.wks-sheet-photos-head { margin-top: 2rem; }
.wks-sheet-panel .wks-thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wks-sheet-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.wks-sheet-cta p { margin: 0; color: var(--ink-2); }

/* The lightbox is dark in both themes: photographs read best on black. Its
   backdrop is nearly opaque so a workshop open underneath does not show
   through (the light theme's own overlay token lets it). */
.wks-lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    padding: 3.75rem 4.75rem 1.25rem;
    color: #fff;
    touch-action: pan-y;
}
.wks-lightbox::backdrop {
    background: rgba(6, 6, 6, 0.97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.wks-lb-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0;
}
.wks-lb-img {
    min-height: 0;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    max-height: calc(100dvh - 10rem);
    object-fit: contain;
    border-radius: calc(var(--radius) / 2);
}
.wks-lb-img.is-missing { visibility: hidden; }
.wks-lb-caption {
    max-width: 70ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}
.wks-lb-count {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.wks-lb-close,
.wks-lb-nav {
    position: fixed;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(18, 18, 18, 0.66);
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.wks-lb-close:hover,
.wks-lb-nav:hover { background: rgba(48, 48, 48, 0.85); border-color: rgba(255, 255, 255, 0.4); }
.wks-lb-close:focus-visible,
.wks-lb-nav:focus-visible { outline-color: #fff; }
.wks-lb-close .wks-icon,
.wks-lb-nav .wks-icon { width: 20px; height: 20px; }
.wks-lb-close { top: 1rem; inset-inline-end: 1rem; }
.wks-lb-nav { top: 50%; transform: translateY(-50%); }
.wks-lb-prev { inset-inline-start: 1rem; }
.wks-lb-next { inset-inline-end: 1rem; }
.wks-lightbox.is-single .wks-lb-nav,
.wks-lightbox.is-single .wks-lb-count { display: none; }

/* ---------- On other pages (Workshops.render) ---------- */
.wks-embed { display: block; }
.wks-embed-heading {
    margin: 0 0 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.wks-embed .wks-group + .wks-group { margin-top: 3rem; }
.wks-embed-more { margin: 1.5rem 0 0; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
    .workshops { padding: 4rem 1rem; }
    .wks-intro { margin-bottom: 3rem; }
}

@media (max-width: 760px) {
    .wks-card,
    .wks-card.has-cover {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas:
            "when main"
            "actions actions"
            "more more";
        column-gap: 1rem;
        padding: 1.1rem;
    }
    .wks-card.has-cover {
        grid-template-areas:
            "cover cover"
            "when main"
            "actions actions"
            "more more";
    }
    .wks-card > .wks-actions,
    .wks-card.has-cover > .wks-actions {
        flex-direction: row;
        align-items: center;
        min-width: 0;
        margin-top: 1.1rem;
    }
    .wks-card-cover { aspect-ratio: 16 / 9; margin-bottom: 1rem; }
    .wks-when { width: 66px; padding: 0.7rem 0.3rem 0.65rem; }
    .wks-when-month,
    .wks-when-week { font-size: 11px; }
    .wks-when-day { font-size: 1.85rem; }
    .wks-when-tbc { font-size: 1.1rem; }
    .wks-group + .wks-group { margin-top: 3.5rem; }
    .wks-sheet[open] { padding: 0; }
    .wks-sheet-panel {
        min-height: 100%;
        padding: 4.25rem 1.25rem 2rem;
        border: 0;
        border-radius: 0;
    }
    .wks-lightbox[open] { padding: 3.75rem 0.75rem 5rem; }
    .wks-lb-nav { top: auto; bottom: 1rem; transform: none; }
    .wks-lb-count {
        position: fixed;
        bottom: 1.85rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 520px) {
    .wks-actions .wks-btn { flex: 1 1 100%; }
    .wks-actions .wks-btn-quiet { border-color: var(--line-2); }
    .wks-empty { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem; }
    .wks-empty.is-compact { padding: 1.25rem; }
    .wks-past-grid { grid-template-columns: minmax(0, 1fr); }
    .wks-sheet-panel .wks-thumbs,
    .wks-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .wks-card,
    .wks-past,
    .wks-past-cover img,
    .wks-thumb img,
    .wks-btn { transition: none; }
    .wks-past:hover { transform: none; }
    .wks-past:hover .wks-past-cover img,
    .wks-thumb:hover img { transform: none; }
    .wks-card.is-target { animation: none; border-color: var(--ink); }
}
