/* ==========================================================================
   rssnews.io workspace feed rows (js/rows.js)
   Workspace redesign phase 2 (2026-10-31). Spec WORKSPACE-PHASE2-SPEC.md §3;
   brief REDESIGN-BRIEF-2026-10-31-workspace.md §4.3-§4.5, §9, §11; mockup
   mockups/workspace-2026-10-31.webp ("Τελευταίες δημοσιεύσεις").

   Load after editorial.css and workspace.css: colours, type and radii are their
   tokens (--ink --muted --rule --rule-strong --field --signal --accent --hover
   --surface --paper --fav-plate --font-* --r-*; --sec-* from workspace.css), so
   :root.dark needs nothing here.

   Row anatomy: a grid. Clock and timeline dot in two narrow columns, the text
   column, the picture on the right spanning the text rows plus one 1fr filler
   row (a picture taller than the text grows the filler, never the gaps between
   headline, meta and excerpt). An open group's publications run full width
   under both.
     >= 768px  headline 16px, picture 112x84, meta and excerpt beside it
     <  768px  phones (2026-11-01, MOBILE-ROWS-SPEC-2026-11-01.md): a story
               with a picture is a card, every other row a compact row with
               a one-line kicker; see "Phones" at the end
   ========================================================================== */

.ws-rows {
  --ws-row-pad: 20px;
  --ws-row-when: 46px;
  --ws-row-dotcol: 14px;
  --ws-row-thumb-w: 112px;
  --ws-row-thumb-h: 84px;
  --ws-row-head-lh: 22px;
  margin: 0;
  padding: 0 var(--ws-row-pad);
  list-style: none;
  font-family: var(--font-ui);
  color: var(--ink);
}

/* custom.css sets every p/li/span/div to 1rem/1.6; here they follow the row.
   :where() keeps this at element specificity, so the class rules below win. */
:where(.ws-rows) :is(p, li, span, div) {
  font-size: inherit;
  line-height: inherit;
}

/* The hidden attribute must beat the display rules below (closed groups,
   failed pictures, the sources note) */
.ws-rows [hidden] { display: none !important; }

.ws-row-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Row ----- */
.ws-row {
  display: grid;
  grid-template-columns: var(--ws-row-when) var(--ws-row-dotcol) minmax(0, 1fr) auto;
  /* min-content, not auto: the clamped excerpt is a scroll container whose
     automatic minimum is 0, which let the picture's height leak into the
     filler row and open a gap under short rows */
  grid-template-rows: min-content min-content min-content min-content 1fr auto;
  grid-template-areas:
    "when dot head  thumb"
    ".    .   meta  thumb"
    ".    .   exc   thumb"
    ".    .   grp   thumb"
    ".    .   .     thumb"
    ".    .   mem   mem";
  position: relative;
  /* 8px of the list's side padding belong to the row: content-visibility (below)
     clips a row's paint to its box, and focus rings, the 44px touch targets and
     j/k's ring on a publication reach up to 8px past the text */
  margin: 0 -8px;
  /* 15px on top: 1px for the separator line drawn in it (::before) */
  padding: 15px 8px 14px;
  font-size: 13px;
  line-height: 1.45;
  /* Off-screen rows skip style, layout and paint until they near the viewport.
     Measured 390x4 CPU, 150 rows: Back from an article 208 -> 56 ms, a 50-row
     page append frame 250 -> 83-100 ms, full style recalc 57 -> 21 ms. The
     placeholder is the measured median row (2026-10-31, real feed, 150-250
     rows per width) minus the padding, since it sizes the content box: 143px
     for an article (768-1440 alike), 179px for a group; phones below.
     "auto" then keeps each row's real height once drawn, so Back and
     scrolling up land exactly where they were. */
  content-visibility: auto;
  contain-intrinsic-height: auto 114px;
}
.ws-row.is-group { contain-intrinsic-height: auto 150px; }
/* view.layoutAll(): every row laid out for two frames, so a scrollY restored on a
   list drawn anew lands on real heights (and the browser remembers them) */
.ws-rows-full > .ws-row { content-visibility: visible; }
/* The separator, inset back to the text width (the row box is 8px wider) */
.ws-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  border-top: 1px solid var(--rule); /* a border, so forced colours keep it */
}
.ws-row:first-child::before { content: none; }
.ws-row:first-child { padding-top: 14px; }

/* Clock: Athens HH:MM, the column the eye runs down (mockup). The relative
   label beside the source is the accessible one. */
.ws-row-clock {
  grid-area: when;
  align-self: start;
  font-size: 12.5px;
  line-height: var(--ws-row-head-lh);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}

/* Timeline dot: a ring; filled red for a story told by several publications */
.ws-row-dot {
  grid-area: dot;
  align-self: start;
  justify-self: center;
  width: 8px;
  height: 8px;
  margin-top: calc((var(--ws-row-head-lh) - 8px) / 2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}
.ws-row.is-group .ws-row-dot {
  background: var(--signal);
  box-shadow: none;
}

/* ----- Headline ----- */
.ws-row-head {
  grid-area: head;
  margin: 0;
  font-family: var(--font-headline);
  font-size: 16px;
  line-height: var(--ws-row-head-lh);
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.ws-title {
  color: inherit;
  text-decoration: none;
}
.ws-title[href]:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Read (production's .read, from localStorage readArticles): a quieter headline.
   --muted on --surface 5.02:1 light, 6.86:1 dark; on --paper 4.73:1 and 7.48:1
   (WCAG 2 formula, computed 2026-10-31). Weight 500 is a second, non-colour cue;
   screen readers get the visually hidden ", διαβασμένο" (span.ws-read-hint). */
.ws-row.is-read .ws-title {
  color: var(--muted);
  font-weight: 500;
}

/* ----- Meta line: favicon, source, time, section, open at the source ----- */
.ws-row-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* No "·" separators: they dangled at line ends when the line wrapped.
     Weight and colour tell source (ink, 500) from time (muted) apart. */
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
  /* 5px: the source link's 24px box stays clear of a one-line headline's
     24px target circle (WCAG 2.5.8 spacing) */
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted);
}
.ws-row-fav {
  flex: none;
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.ws-row-meta .ws-row-fav { margin-right: -4px; } /* icon sits close to its name */
.ws-row-fav:empty { display: none; }
.ws-favicon {
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
  border-radius: 3px;
  background: var(--fav-plate);
  object-fit: contain;
}
.ws-favicon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--rule);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.ws-row-source {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.ws-time { white-space: nowrap; }
.ws-row-section {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.ws-row-section::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.ws-row-section[data-sec="politics"]::before { background: var(--sec-politics, var(--muted)); }
.ws-row-section[data-sec="greece"]::before { background: var(--sec-greece, var(--muted)); }
.ws-row-section[data-sec="world"]::before { background: var(--sec-world, var(--muted)); }
.ws-row-section[data-sec="business"]::before { background: var(--sec-business, var(--muted)); }
.ws-row-section[data-sec="sports"]::before { background: var(--sec-sports, var(--muted)); }
.ws-row-section[data-sec="tech"]::before { background: var(--sec-tech, var(--muted)); }
.ws-row-section[data-sec="education"]::before { background: var(--sec-education, var(--muted)); }
.ws-row-section[data-sec="lifestyle"]::before { background: var(--sec-lifestyle, var(--muted)); }

/* Icon link, 24px target (WCAG 2.5.8) inside an 18px line */
.ws-source-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: -3px 0 -3px -2px;
  border-radius: var(--r-ui);
  color: var(--muted);
  text-decoration: none;
}
.ws-source-link:hover {
  color: var(--ink);
  background: var(--hover);
}
/* In the meta line it follows the source name it opens, close to it */
.ws-row-meta .ws-source-link { margin-left: -9px; }
.ws-row-icon {
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

/* ----- Excerpt: two lines at most ----- */
.ws-row-excerpt {
  grid-area: exc;
  margin: 6px 0 0;
  font-family: var(--font-reading);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ----- Picture: reserved 4:3 box, only when the entry has one ----- */
.ws-row-thumb {
  grid-area: thumb;
  align-self: start;
  width: var(--ws-row-thumb-w);
  height: var(--ws-row-thumb-h);
  margin: 2px 0 0 16px;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
}
.ws-row-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* ----- Story group: "N δημοσιεύσεις" toggle and the publications ----- */
.ws-row-group {
  grid-area: grp;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 8px;
}
.ws-group-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0;
  padding: 3px 8px 3px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-ui);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
}
.ws-group-toggle:hover,
.ws-group-toggle[aria-expanded="true"] {
  border-color: var(--field);
  background: var(--hover);
}
.ws-group-toggle .ws-row-icon {
  color: var(--muted);
  transition: transform 0.15s ease;
}
.ws-group-toggle[aria-expanded="true"] .ws-row-icon { transform: rotate(180deg); }
/* The phone control's favicon stack and "Το γράφουν M πηγές" (below 768px);
   display: none also keeps the stack's lazy favicons from loading here */
.ws-group-favs,
.ws-group-label { display: none; }
.ws-group-sources {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted);
}

/* One column grid for every publication (subgrid), so a wider "χθες 21:40"
   or "28 Οκτ 14:05" moves all titles together instead of one */
.ws-members {
  --ws-member-cols: max-content 16px minmax(0, 8.5em) minmax(0, 1fr) auto;
  grid-area: mem;
  display: grid;
  grid-template-columns: var(--ws-member-cols);
  column-gap: 8px;
  margin: 10px 0 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--rule);
  list-style: none;
}
.ws-member {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--ws-member-cols);
  align-items: start;
  column-gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 19px;
}
@supports (grid-template-columns: subgrid) {
  .ws-member { grid-template-columns: subgrid; }
}
.ws-member + .ws-member { border-top: 1px solid var(--rule); }
.ws-member-time {
  grid-column: 1;
  min-width: 38px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.ws-member .ws-row-fav {
  grid-column: 2;
  margin-top: 1.5px;
}
.ws-member-source {
  grid-column: 3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted);
}
.ws-member-title {
  grid-column: 4;
  min-width: 0;
  color: var(--ink);
  font-size: 13.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.ws-member.is-read .ws-member-title { color: var(--muted); } /* same ratios as above */
.ws-member-title[href]:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.ws-member .ws-source-link {
  grid-column: 5;
  margin: -2.5px 0;
}

/* ----- Bookmark: icon toggle at the right end of the meta line and of each
   publication line. Saving changes the fill (.is-saved), never the size.
   Icon: --muted 5.0:1 / 6.9:1 (light / dark surface); saved --accent 6.9:1 /
   5.3:1 (WCAG 1.4.11 needs 3:1). ----- */
.ws-bookmark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  margin: -3px 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-ui);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}
.ws-row-meta .ws-bookmark { margin-left: auto; }
.ws-bookmark .ws-row-icon { width: 16px; height: 16px; }
.ws-bookmark:hover { color: var(--ink); background: var(--hover); }
/* State from the class, not aria-pressed: the saved view's button has none */
.ws-bookmark.is-saved .ws-row-icon { color: var(--accent); }
.ws-bookmark.is-saved .ws-row-icon path { fill: currentColor; }
/* Saved view: icon plus a word; both words share one cell, so "Αφαίρεση" and
   "Επαναφορά" (after removing, to undo) take the same width */
.ws-bookmark.is-labelled { width: auto; padding: 0 6px; }
.ws-bookmark-words { display: grid; }
.ws-bookmark-words > span { grid-area: 1 / 1; white-space: nowrap; }
.ws-bookmark.is-saved .ws-bookmark-off,
.ws-bookmark:not(.is-saved) .ws-bookmark-on { visibility: hidden; }

.ws-rows-bookmarks .ws-members {
  --ws-member-cols: max-content 16px minmax(0, 8.5em) minmax(0, 1fr) auto auto;
}
.ws-member .ws-bookmark {
  grid-column: 6;
  margin: -2.5px 0;
}

/* ----- Focus: visible on every control ----- */
.ws-rows a:focus-visible,
.ws-rows button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.ws-rows .ws-source-link:focus-visible,
.ws-rows .ws-group-toggle:focus-visible,
.ws-rows .ws-bookmark:focus-visible {
  outline-offset: 1px;
  border-radius: var(--r-ui);
}

/* ----- Touch: larger targets without growing the lines ----- */
@media (pointer: coarse) {
  .ws-group-toggle { min-height: 36px; padding-inline: 12px 10px; }
  /* 32x30: larger would reach into the headline above */
  .ws-source-link { width: 32px; height: 30px; margin: -6px -4px -6px -6px; }
  .ws-row-meta { margin-top: 6px; }
  .ws-row-meta .ws-source-link { margin-left: -13px; }
  .ws-member .ws-source-link { margin: -5.5px -4px; }
  .ws-member { padding: 8px 0; }
  /* Bookmark 44x44; with -6px margins it takes 32px of layout, and the meta
     line reserves those 32px whether the article is saved or not */
  .ws-bookmark { width: 44px; height: 44px; margin: -6px -6px -6px 0; }
  .ws-bookmark.is-labelled { width: auto; min-width: 44px; padding: 0 12px; }
  .ws-rows-bookmarks .ws-row-meta { min-height: 32px; }
  .ws-member .ws-bookmark { margin: -6px -6px -6px 0; }
}

/* ==========================================================================
   Phones, below 768px: MOBILE-ROWS-SPEC-2026-11-01.md, direction ΣΤ "mixed"
   (mockups/mobile-rows-2026-11-01/chosen-ST-mixed-390.png). From 768px up
   nothing here applies. Same DOM, two kinds of row:
     card     .is-card, a story with a picture: the 16:9 picture on top, a
              kicker (favicon, source · relative time, bookmark), 18.5px/700
              headline, two-line excerpt, the full-width "Το γράφουν M πηγές"
              control; its publications open inside the card
     compact  every other row: one kicker line (clock, favicon, source,
              section, bookmark), then the 16.5px/600 headline with a 64x64
              picture on the right; no excerpt (the reading view has it)
   Gone here: the clock and dot columns, the source-link icon and the second
   time (time.ws-time stays for screen readers; a card shows it instead of
   the clock). Read rows keep the muted 500 headline from above.
   ========================================================================== */
@media (max-width: 767px) {
  .ws-rows {
    --ws-row-thumb-w: 64px;
    --ws-row-thumb-h: 64px;
    --ws-card-pad: 14px;
    /* Full bleed: the content column's 8px gutter (.ws-content, px-2 below
       768px) is the rows' own, as in the mockup */
    margin: 0 -8px;
    padding: 0;
    /* The canvas shows only around the cards; compact rows are surface.
       flow-root keeps a first or last card's margin inside the list. */
    display: flow-root;
    background: var(--paper);
  }
  .ws-rows[hidden] { display: none; }

  /* ----- Compact row ----- */
  .ws-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: none;
    grid-template-areas:
      "when meta meta"
      "head head thumb"
      "exc  exc  exc"
      "grp  grp  grp"
      "mem  mem  mem";
    margin: 0;
    /* 13px on top: 1px for the separator drawn in it */
    padding: 13px 16px 12px;
    background: var(--surface);
    /* The placeholder (see .ws-row above): measured medians at 390px
       (2026-11-01, live feed, 50 rows) minus padding and border. A compact
       row is 116px, a card 448px (+12px margin); a story without a picture
       is estimated (none in the sample): a row plus the 54px control. */
    contain-intrinsic-height: auto 91px;
  }
  .ws-row.is-group { contain-intrinsic-height: auto 145px; }
  /* Narrower phones: the headline takes one more line. Measured median at
     360px 139px (2026-11-17, live feed), minus the same 25px. */
  @media (max-width: 374px) {
    .ws-row:not(.is-group) { contain-intrinsic-height: auto 114px; }
  }
  /* 13px also on the first row (no separator there): a touch bookmark reaches
     13px above its line, and the row clips its paint at its edge */
  .ws-row:first-child { padding-top: 13px; }
  .ws-row::before { left: 0; right: 0; }
  /* The paper around a card already parts it from the next row */
  .ws-row.is-card + .ws-row::before { content: none; }

  .ws-row-dot { display: none; }
  /* Kicker: the clock leads, bold, ink, tabular (aria-hidden: time.ws-time
     says it) */
  .ws-row-clock {
    align-self: center;
    margin-right: 6px;
    font-size: 12.5px;
    line-height: 18px;
    font-weight: 700;
    color: var(--ink);
  }
  .ws-row-clock:empty { display: none; }
  .ws-row-meta {
    flex-wrap: nowrap;
    column-gap: 6px;
    min-width: 0;
    margin-top: 0;
  }
  .ws-row-meta .ws-row-fav { margin-right: 0; }
  .ws-row-fav,
  .ws-favicon,
  .ws-favicon-fallback { width: 14px; height: 14px; }
  .ws-favicon-fallback { font-size: 9.5px; }
  .ws-row-source { flex: 0 1 auto; }
  .ws-row-section { flex: none; gap: 4px; }
  .ws-source-link { display: none; }
  /* One visible time per row: a compact row shows the clock; the relative
     time stays for screen readers (with its datetime and the full date as
     its title). An undated row keeps "χωρίς ώρα δημοσίευσης" in view. */
  .ws-row:not(.is-card) .ws-time:not(.is-undated) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .ws-row-meta .ws-bookmark { margin: -3px -4px -3px auto; }

  .ws-row-head {
    margin-top: 5px;
    font-size: 16.5px;
    line-height: 1.38;
  }
  .ws-row-thumb {
    margin: 5px 0 0 12px;
    border-radius: 8px;
  }
  .ws-row:not(.is-card) .ws-row-excerpt { display: none; }

  /* ----- Card: a story with a picture ----- */
  .ws-row.is-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "thumb" "meta" "head" "exc" "grp" "mem";
    margin: 12px;
    padding: 0 var(--ws-card-pad) var(--ws-card-pad);
    border: 1px solid var(--rule); /* a border, so forced colours keep it */
    border-radius: 12px;
    contain-intrinsic-height: auto 432px;
  }
  .ws-row.is-card::before { content: none; }
  .ws-row.is-card .ws-row-clock,
  .ws-row.is-card .ws-row-section { display: none; }
  /* The card's full width, 16:9, reserved before it loads */
  .ws-row.is-card .ws-row-thumb {
    width: calc(100% + 2 * var(--ws-card-pad));
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 calc(-1 * var(--ws-card-pad));
    border-radius: 11px 11px 0 0;
  }
  .ws-row.is-card .ws-row-meta { margin-top: 12px; }
  .ws-row.is-card .ws-time::before {
    content: "·";
    content: "·" / "";
    margin-right: 6px;
  }
  .ws-row.is-card .ws-row-head {
    margin-top: 6px;
    font-size: 18.5px;
    line-height: 1.33;
    font-weight: 700;
  }
  .ws-row.is-card .ws-row-excerpt {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.5;
  }

  /* ----- Group control: full width, favicons of the outlets, the label ----- */
  .ws-row-group {
    display: block;
    margin-top: 10px;
  }
  .ws-row.is-card .ws-row-group { margin-top: 12px; }
  .ws-group-sources { display: none; }
  .ws-group-toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    gap: 8px;
    padding: 0 10px;
    border-color: var(--rule);
    border-radius: 8px;
    background: var(--paper);
    font-size: 13.5px;
    line-height: 1.3;
    text-align: left;
  }
  .ws-group-toggle .ws-row-count { display: none; }
  .ws-group-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ws-group-toggle .ws-row-icon { width: 16px; height: 16px; }
  .ws-group-favs {
    display: inline-flex;
    flex: none;
  }
  .ws-group-favs:empty { display: none; }
  .ws-group-fav {
    box-sizing: border-box;
    display: block;
    width: 20px;
    height: 20px;
    margin-left: -6px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface);
  }
  .ws-group-fav:first-child { margin-left: 0; }
  .ws-group-fav .ws-favicon,
  .ws-group-fav .ws-favicon-fallback {
    width: 16px;
    height: 16px;
    border-radius: 50%;
  }

  /* ----- Publications of an open story: a kicker (favicon, source, clock,
     bookmark) above each title ----- */
  .ws-members {
    display: block;
    margin: 10px 0 0;
    padding: 0 0 0 12px;
  }
  .ws-member {
    grid-template-columns: auto minmax(0, max-content) auto minmax(0, 1fr) auto;
    grid-template-areas:
      "fav src time . bm"
      "ttl ttl ttl  ttl ttl";
    column-gap: 6px;
    row-gap: 3px;
    align-items: center;
    padding: 8px 0;
    font-size: 12.5px;
    line-height: 18px;
  }
  .ws-member .ws-row-fav { grid-area: fav; margin-top: 0; }
  .ws-member-source {
    grid-area: src;
    color: var(--ink);
    font-weight: 500;
  }
  .ws-member-time { grid-area: time; min-width: 0; }
  .ws-member-title {
    grid-area: ttl;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
  }
  .ws-member .ws-bookmark { grid-area: bm; margin: -3px -4px -3px 0; }
}

/* From 600px a 16:9 picture would pass 320px */
@media (min-width: 600px) and (max-width: 767px) {
  .ws-row.is-card .ws-row-thumb { max-height: 320px; }
}

/* Phone with touch: 44x44 bookmarks. In a kicker line the button keeps the
   line at 18px (-13px above and below; z-index over a picture it reaches);
   a publication's takes 32px of its line and the 6px gap to the title keeps
   the two targets apart. The focus ring is drawn inside the button, since
   a row clips its paint at its edges (content-visibility). */
@media (pointer: coarse) and (max-width: 767px) {
  .ws-rows-bookmarks .ws-row-meta { min-height: 18px; }
  .ws-row-meta .ws-bookmark {
    position: relative;
    z-index: 1;
    margin: -13px -12px -13px auto;
  }
  .ws-member .ws-bookmark { margin: -6px -12px -6px 0; }
  .ws-rows-bookmarks .ws-member { row-gap: 6px; }
  .ws-rows .ws-bookmark:focus-visible { outline-offset: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-group-toggle .ws-row-icon { transition: none; }
}

/* Windows high contrast: the dot is a colour only; keep it visible */
@media (forced-colors: active) {
  .ws-row-dot,
  .ws-row.is-group .ws-row-dot { forced-color-adjust: none; background: CanvasText; box-shadow: none; }
  .ws-row-section::before { forced-color-adjust: none; background: CanvasText; }
  /* The stack's rings part the icons; on Canvas, not a forced line */
  .ws-group-fav { border-color: Canvas; }
}
