/* ============================================================================
   WORKSHOP LISTING (app/includes/workshop-list.php)

   The shared listing behind Plan's "Recent workshop agendas", Facilitate's
   "Choose a Workshop" and Synthesize's "Ready to synthesize". Built from the
   Figma "Recent workshops" frames: one chrome (heading, stage chips, view
   switcher, footer link) over four interchangeable views.

   The root paints no background of its own — it sits on whichever surface the
   host page owns, which on /app/ is the drafting-grid paper.

   Every colour, radius and shadow is a platform token. The three variables the
   Figma file carries map exactly: paper #FAF7F2 = --bg-paper, red-dark
   #C73E3E = --phase-learn-dark, red-light #FEE2E2 = --phase-learn-light.
   ============================================================================ */

.wl {
    display: flex;
    flex-direction: column;
    gap: var(--space-5, 20px);
}

/* ---- heading ------------------------------------------------------------ */

.wl__eyebrow {
    margin: 0 0 var(--space-2, 8px);
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--phase-learn-dark, #C73E3E);
}

.wl__title {
    margin: 0;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-bold, 700);
    font-size: var(--text-h1, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-ink, #2C2416);
}

/* Named for screen readers, invisible to the eye: for a list sitting under a
   tab that already says what it is. */
.wl__title--sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wl__sub {
    margin: var(--space-2, 8px) 0 0;
    font-size: var(--text-small, 0.875rem);
    color: var(--color-ink-secondary, #57534E);
}

/* ---- controls: stage chips left, view switcher right -------------------- */

.wl__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4, 16px);
}

.wl__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
}

/* ---- bulk selection bar -------------------------------------------------- */

/* [hidden] takes it fully out of flow, so a check/uncheck cycle still shifts
   the views below it; the animation below only softens its own appearance,
   per motion.md's rule against animating layout properties. */
.wl-bulkbar {
    display: flex;
    align-items: center;
    gap: var(--space-3, 12px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    margin-bottom: var(--space-4, 16px);
    background: var(--phase-learn-very-light, #FEF2F2);
    border: 1px solid var(--phase-learn-light, #FEE2E2);
    border-radius: var(--radius-lg, 8px);
}

.wl-bulkbar:not([hidden]) {
    animation: wl-bulkbar-in var(--duration-fast, 150ms) var(--ease-out);
}

@keyframes wl-bulkbar-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wl-bulkbar__count {
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-small, 0.875rem);
    color: var(--phase-learn-dark, #C73E3E);
    margin-right: auto;
}

/* ---- selection checkbox --------------------------------------------------- */

.wl-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wl-select__box {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--phase-learn-dark, #C73E3E);
    cursor: pointer;
}

.wl-select__box:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.wl-chip {
    padding: var(--space-2, 8px) var(--space-4, 16px);
    border: 1px solid var(--gray-300, #D6D3D1);
    border-radius: var(--radius-full, 999px);
    background: transparent;
    color: var(--color-ink-secondary, #57534E);
    font: inherit;
    font-size: var(--text-small, 0.875rem);
    font-weight: var(--font-medium, 500);
    cursor: pointer;
    transition: background-color var(--duration-fast, 150ms) var(--ease-out),
                border-color var(--duration-fast, 150ms) var(--ease-out),
                color var(--duration-fast, 150ms) var(--ease-out);
}

.wl-chip:hover { border-color: var(--phase-learn, #E54D4D); color: var(--phase-learn-dark, #C73E3E); }
.wl-chip:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.wl-chip.is-on {
    background: var(--phase-learn-dark, #C73E3E);
    border-color: var(--phase-learn-dark, #C73E3E);
    color: var(--text-inverse, #FFFFFF);
    font-weight: var(--font-semibold, 600);
}

/* The switcher reads as one segmented control: a sunken track, with the active
   view lifted out of it on white. */
/* Pushed right when the row has room, so the chips and the switcher sit at
   opposite ends; it drops under them on a narrow column rather than squashing
   the filters. */
.wl__views {
    display: flex;
    gap: 2px;
    margin-left: auto;
    padding: 3px;
    border-radius: var(--radius-lg, 8px);
    background: var(--bg-paper-dark, #F0EBE3);
}

.wl-view {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5, 6px);
    padding: var(--space-1, 4px) var(--space-2-5, 10px);
    border: 1px solid transparent;
    border-radius: var(--radius-md, 6px);
    background: transparent;
    color: var(--color-ink-muted, #78716C);
    font: inherit;
    font-size: var(--text-meta, 0.8125rem);
    line-height: 1.6;
    cursor: pointer;
    transition: background-color var(--duration-fast, 150ms) var(--ease-out),
                color var(--duration-fast, 150ms) var(--ease-out);
}

/* icon() emits an inline <svg class="icon …">, not a Material Symbols
   ligature span, so sizing hangs off .icon. */
.wl-view .icon { width: 15px; height: 15px; flex-shrink: 0; }
.wl-view:hover { color: var(--color-ink, #2C2416); }
.wl-view:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

.wl-view.is-on {
    background: var(--bg-surface, #FFFFFF);
    border-color: var(--gray-200, #E7E5E4);
    box-shadow: var(--shadow-xs, 0 0.7px 1px rgba(0, 0, 0, 0.04));
    color: var(--color-ink, #2C2416);
    font-weight: var(--font-semibold, 600);
}

/* ---- shared bits -------------------------------------------------------- */

.wl-dot {
    margin: 0 var(--space-1-5, 6px);
    color: var(--color-ink-faint, #A8A29E);
}

/* The stage pill. Carries a dot only where a row has no other stage cue (the
   list table); on cards the pill sits alone at the top and reads without it. */
.wl-stage {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5, 6px);
    padding: var(--space-1, 4px) var(--space-2-5, 10px);
    border-radius: var(--radius-full, 999px);
    background: var(--phase-learn-light, #FEE2E2);
    color: var(--phase-learn-dark, #C73E3E);
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-semibold, 600);
    white-space: nowrap;
}

.wl-stage__dot { display: none; }

.wl-table .wl-stage__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full, 999px);
    background: currentColor;
}

.wl__foot { display: flex; justify-content: center; }

.wl__all {
    color: var(--phase-learn-dark, #C73E3E);
    font-size: var(--text-small, 0.875rem);
    font-weight: var(--font-semibold, 600);
    text-decoration: none;
}

.wl__all:hover { text-decoration: underline; }

.wl__filtered-empty {
    margin: 0;
    padding: var(--space-8, 32px) 0;
    text-align: center;
    color: var(--color-ink-muted, #78716C);
    font-size: var(--text-small, 0.875rem);
}

/* ---- the per-card actions menu ------------------------------------------ */

/* Wherever a card's primary action sits, the menu sits beside it. */
.wl-acts {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
}

.wl-menu { position: relative; }

/* ws_icon_button gives us a ghost .ws-btn--sm; this is only the quieting.
   Ghost carries a border, and fourteen outlined boxes down a kanban column
   read as fourteen buttons rather than as one workshop each. The trigger
   therefore holds no border at rest and takes one on approach. */
.wl-menu__btn {
    border-color: transparent;
    color: var(--color-ink-faint, #A8A29E);
    transition: color var(--duration-fast, 150ms) var(--ease-out),
                border-color var(--duration-fast, 150ms) var(--ease-out),
                background-color var(--duration-fast, 150ms) var(--ease-out);
}

.wl-card:hover .wl-menu__btn,
.wl-kcard:hover .wl-menu__btn,
.wl-tl__row:hover .wl-menu__btn,
.wl-table tbody tr:hover .wl-menu__btn,
.wl-menu__btn:hover,
.wl-menu__btn:focus-visible,
.wl-menu__btn[aria-expanded="true"] {
    color: var(--color-ink-secondary, #57534E);
}

.wl-menu__btn:hover,
.wl-menu__btn[aria-expanded="true"] {
    border-color: var(--gray-300, #D6D3D1);
    background: var(--gray-50, #FAFAF9);
}

/* The popover is moved to <body> while open and placed from the trigger's
   rectangle (see workshop-list-menu.js), so it is never clipped by the list
   view's scrolling table wrap or offset by a card's hover transform. Fixed
   position is therefore the only one that makes sense here. */
.wl-menu__pop {
    position: fixed;
    /* Body-level, so it has to clear the shell's sticky header (--z-header,
       1100). --z-dropdown sits at 100 and would slide under it. */
    z-index: var(--z-modal, 1200);
    min-width: 216px;
    /* Bounded, or the delete confirmation's sentence sets the width and the
       popover grows to a third of the screen instead of wrapping. */
    max-width: 288px;
    padding: var(--space-1-5, 6px);
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-lg, 8px);
    box-shadow: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
}

.wl-menu__pop[hidden] { display: none; }

.wl-menu__list { display: flex; flex-direction: column; }

/* display:flex beats the browser's own [hidden] rule, so the list has to say
   this itself — otherwise the delete confirmation renders under the items it
   is supposed to replace. */
.wl-menu__list[hidden] { display: none; }

.wl-menu__item {
    display: flex;
    align-items: center;
    gap: var(--space-2-5, 10px);
    width: 100%;
    padding: var(--space-2, 8px) var(--space-2-5, 10px);
    border: 0;
    border-radius: var(--radius-md, 6px);
    background: transparent;
    color: var(--color-ink-secondary, #57534E);
    font: inherit;
    font-size: var(--text-small, 0.875rem);
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--duration-fast, 150ms) var(--ease-out),
                color var(--duration-fast, 150ms) var(--ease-out);
}

.wl-menu__item:hover {
    background: var(--bg-paper, #FAF7F2);
    color: var(--color-ink, #2C2416);
    text-decoration: none;
}

.wl-menu__item:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.wl-menu__item[aria-busy="true"] { opacity: 0.55; pointer-events: none; }

.wl-menu__icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--color-ink-muted, #78716C);
}

/* Where the card already is. Named rather than removed, so the menu keeps the
   same shape on every card in the list. */
.wl-menu__item.is-current {
    color: var(--phase-learn-dark, #C73E3E);
    font-weight: var(--font-semibold, 600);
}

.wl-menu__item.is-current .wl-menu__icon { color: var(--phase-learn, #E54D4D); }

.wl-menu__item--danger { color: var(--color-error, #DC2626); }
.wl-menu__item--danger .wl-menu__icon { color: currentColor; }
.wl-menu__item--danger:hover {
    background: var(--phase-learn-very-light, #FEF2F2);
    color: var(--color-error, #DC2626);
}

.wl-menu__sep {
    display: block;
    height: 1px;
    margin: var(--space-1-5, 6px) var(--space-2-5, 10px);
    background: var(--gray-200, #E7E5E4);
}

/* Delete confirms in place: the list is swapped for this rather than a native
   dialog, which cannot be styled and blocks the page. */
.wl-menu__confirm { padding: var(--space-2, 8px) var(--space-2-5, 10px); }
.wl-menu__confirm[hidden] { display: none; }

.wl-menu__confirm-text {
    margin: 0 0 var(--space-3, 12px);
    font-size: var(--text-small, 0.875rem);
    line-height: 1.45;
    color: var(--color-ink-secondary, #57534E);
}

.wl-menu__confirm-acts {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2, 8px);
}

/* ---- grid view ---------------------------------------------------------- */

.wl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5, 20px);
}

.wl-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-3, 12px);
    padding: var(--card-padding, 20px);
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--card-border, #E7E5E4);
    border-radius: var(--card-radius, 12px);
    box-shadow: var(--card-shadow, 0 1px 2px rgba(0, 0, 0, 0.05));
    transition: transform var(--duration-base, 200ms) var(--ease-out),
                box-shadow var(--duration-base, 200ms) var(--ease-out);
}

.wl-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover, 0 4px 6px rgba(0, 0, 0, 0.07));
}

/* Pill left, menu right. The menu is pulled up and out a little so the trigger
   optically aligns with the card's padding rather than its own hit area. */
.wl-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2, 8px);
}

/* Auto margin, not space-between, keeps the checkbox and stage pill paired at
   the start when a third child (the checkbox) is present, and still pins the
   menu to the end when it is the only sibling. */
.wl-card__top .wl-menu { margin: calc(var(--space-1, 4px) * -1) calc(var(--space-2, 8px) * -1) calc(var(--space-1, 4px) * -1) auto; }

.wl-card__name {
    margin: 0;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-h4, 1.125rem);
    line-height: 1.3;
    color: var(--color-ink, #2C2416);
}

.wl-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--text-caption, 0.75rem);
    color: var(--color-ink-muted, #78716C);
}

.wl-card__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: var(--space-1, 4px);
}

/* The journey strip: quiet behind, red at the current stage, hollow ahead. */
.wl-journey {
    display: flex;
    align-items: center;
    gap: var(--space-1, 4px);
    font-size: var(--text-nano, 0.625rem);
    color: var(--color-ink-faint, #A8A29E);
}

.wl-journey__step {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1, 4px);
    white-space: nowrap;
}

.wl-journey__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full, 999px);
    border: 1px solid var(--gray-300, #D6D3D1);
    background: transparent;
}

.wl-journey__step.is-done { color: var(--color-ink-muted, #78716C); }
.wl-journey__step.is-done .wl-journey__dot {
    background: var(--gray-400, #A8A29E);
    border-color: var(--gray-400, #A8A29E);
}

.wl-journey__step.is-now {
    color: var(--phase-learn-dark, #C73E3E);
    font-weight: var(--font-bold, 700);
}
.wl-journey__step.is-now .wl-journey__dot {
    background: var(--phase-learn, #E54D4D);
    border-color: var(--phase-learn, #E54D4D);
}

.wl-journey__bar {
    flex: 1;
    min-width: 10px;
    height: 1px;
    background: var(--gray-300, #D6D3D1);
}

/* ---- list view ---------------------------------------------------------- */

.wl-table-wrap {
    overflow-x: auto;
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-xl, 12px);
}

.wl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small, 0.875rem);
}

.wl-table thead th {
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--bg-paper, #FAF7F2);
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
    text-align: left;
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-muted, #78716C);
    white-space: nowrap;
}

.wl-table td {
    padding: var(--space-4, 16px);
    border-bottom: 1px solid var(--gray-200, #E7E5E4);
    color: var(--color-ink-secondary, #57534E);
    vertical-align: middle;
}

.wl-table tr:last-child td { border-bottom: 0; }
.wl-table tbody tr { transition: background-color var(--duration-fast, 150ms) var(--ease-out); }
.wl-table tbody tr:hover { background: var(--bg-paper, #FAF7F2); }

.wl-table__name {
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-ui, 0.9375rem);
    color: var(--color-ink, #2C2416);
    max-width: 28ch;
}

.wl-table__when { color: var(--color-ink-muted, #78716C); white-space: nowrap; }
.wl-table__act { text-align: right; }
.wl-table__act .wl-acts { justify-content: flex-end; }
.wl-table__select { width: 1%; padding-right: 0; }

/* ---- kanban view -------------------------------------------------------- */

.wl-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5, 20px);
    align-items: start;
}

.wl-kanban__col { display: flex; flex-direction: column; gap: var(--space-3, 12px); }

.wl-kanban__head {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding-bottom: var(--space-1, 4px);
}

.wl-kanban__dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full, 999px);
    background: var(--phase-learn, #E54D4D);
}

.wl-kanban__title {
    margin: 0;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-h4, 1.125rem);
    color: var(--color-ink, #2C2416);
}

.wl-kanban__count {
    margin-left: auto;
    padding: var(--space-0-5, 2px) var(--space-2, 8px);
    border-radius: var(--radius-full, 999px);
    background: var(--gray-100, #F5F5F4);
    color: var(--color-ink-muted, #78716C);
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-semibold, 600);
}

.wl-kanban__empty {
    margin: 0;
    padding: var(--space-4, 16px) 0;
    color: var(--color-ink-faint, #A8A29E);
    font-size: var(--text-caption, 0.75rem);
}

.wl-kcard {
    display: block;
    position: relative;               /* the title link covers the card */
    padding: var(--space-4, 16px);
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-lg, 8px);
    text-decoration: none;
    transition: transform var(--duration-base, 200ms) var(--ease-out),
                box-shadow var(--duration-base, 200ms) var(--ease-out),
                border-color var(--duration-base, 200ms) var(--ease-out);
}

.wl-kcard:hover {
    transform: translateY(-2px);
    border-color: var(--phase-learn, #E54D4D);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
    text-decoration: none;
}

/* Title and menu share the top line; the title takes the slack. */
.wl-kcard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-2, 8px);
}

.wl-kcard__name {
    margin: 0;
    min-width: 0;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-ui, 0.9375rem);
    line-height: 1.3;
    color: var(--color-ink, #2C2416);
}

/* The card was one <a> before the menu arrived. This restores that: the link
   spreads over the whole card, and the menu (z-index 1 below) sits above it. */
.wl-kcard__link { color: inherit; text-decoration: none; }

.wl-kcard__link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 8px);
}

/* The ring belongs on the card, not on the two words of the title: the overlay
   is what the reader is actually about to activate. */
.wl-kcard__link:focus-visible { outline: none; }
.wl-kcard__link:focus-visible::after {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.wl-kcard__head .wl-menu {
    position: relative;
    z-index: 1;
    margin: calc(var(--space-2, 8px) * -1) calc(var(--space-2, 8px) * -1) 0 0;
}

.wl-kcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2, 8px);
}

.wl-kcard__meta {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-caption, 0.75rem);
    color: var(--color-ink-muted, #78716C);
    /* The duration and item count are one reading unit; wrapping them mid-pair
       in a narrow column turns two facts into four lines. */
    white-space: nowrap;
}

.wl-kcard__tag {
    padding: var(--space-0-5, 2px) var(--space-2, 8px);
    border-radius: var(--radius-sm, 4px);
    background: var(--gray-100, #F5F5F4);
    color: var(--color-ink-secondary, #57534E);
    font-size: var(--text-caption, 0.75rem);
    white-space: nowrap;
}

/* ---- timeline view ------------------------------------------------------ */

.wl-timeline { display: flex; flex-direction: column; gap: var(--space-6, 24px); }

.wl-tl__group { display: flex; flex-direction: column; gap: var(--space-2, 8px); }

.wl-tl__head {
    display: flex;
    align-items: center;
    gap: var(--space-2, 8px);
}

.wl-tl__dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full, 999px);
    background: var(--phase-learn, #E54D4D);
}

.wl-tl__title {
    margin: 0;
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-ink-secondary, #57534E);
}

.wl-tl__count {
    color: var(--color-ink-faint, #A8A29E);
    font-size: var(--text-caption, 0.75rem);
    font-weight: var(--font-semibold, 600);
}

/* The rule runs from the group label to the right edge, so the groups read as
   bands without needing a container of their own. */
.wl-tl__rule {
    flex: 1;
    height: 1px;
    background: var(--gray-200, #E7E5E4);
}

.wl-tl__row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    align-items: center;
    gap: var(--space-4, 16px);
    padding: var(--space-3, 12px) var(--space-4, 16px);
    background: var(--bg-surface, #FFFFFF);
    border: 1px solid var(--gray-200, #E7E5E4);
    border-radius: var(--radius-lg, 8px);
    transition: border-color var(--duration-fast, 150ms) var(--ease-out);
}

.wl-tl__row:hover { border-color: var(--gray-400, #A8A29E); }

.wl-tl__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.wl-tl__dow {
    font-size: var(--text-nano, 0.625rem);
    font-weight: var(--font-bold, 700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink-muted, #78716C);
}

.wl-tl__day {
    margin-top: 2px;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-size: var(--text-h3, 1.25rem);
    font-weight: var(--font-bold, 700);
    color: var(--phase-learn-dark, #C73E3E);
}

.wl-tl__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md, 6px);
    background: var(--gray-100, #F5F5F4);
    color: var(--color-ink-muted, #78716C);
}

.wl-tl__icon .icon { width: 18px; height: 18px; }

.wl-tl__body { min-width: 0; }

.wl-tl__name {
    margin: 0;
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-weight: var(--font-semibold, 600);
    font-size: var(--text-ui, 0.9375rem);
    color: var(--color-ink, #2C2416);
}

.wl-tl__meta {
    margin: 2px 0 0;
    font-size: var(--text-caption, 0.75rem);
    color: var(--color-ink-muted, #78716C);
}

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 1080px) {
    .wl-grid   { grid-template-columns: repeat(2, 1fr); }
    .wl-kanban { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .wl-grid   { grid-template-columns: 1fr; }
    .wl-kanban { grid-template-columns: 1fr; }
    .wl__controls { align-items: flex-start; flex-direction: column; }
    .wl-tl__row {
        grid-template-columns: 44px 1fr;
        row-gap: var(--space-2, 8px);
    }
    /* The pill and the action drop under the title rather than squeezing it. */
    .wl-tl__row > .wl-stage,
    .wl-tl__act { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    .wl-card, .wl-kcard { transition: none; }
    .wl-card:hover, .wl-kcard:hover { transform: none; }
}
