/* V107 · compact four-up recap desk.
 *
 * Browser sidebars and display scaling commonly leave a laptop with only
 * ~1024 CSS px even when the screenshot itself is much wider.  The recap
 * index therefore reaches a useful three-up desk at 1024px and its intended
 * four-up reading desk at 1400px, rather than treating 1680 CSS px as the
 * first "desktop" width or crushing complete notes into 236px slivers.
 *
 * The lower steps deliberately preserve useful card widths:
 *   1400+      four columns
 *   1024–1399 three columns
 *   720–1023  two columns
 *   <720    one column (the existing mobile composition)
 */

@media (min-width: 1024px) {
  .notes-screen .notes-index[data-notes-layout="grid"] .curated-notes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1400px) {
  .notes-screen .notes-index[data-notes-layout="grid"] .curated-notes__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__media-frame,
  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__media--portrait .curated-note__media-frame {
    width: min(100%, 320px);
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__media-source-pill {
    bottom: 6px;
    left: 6px;
    max-width: calc(100% - 12px);
    min-height: 20px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__identity {
    margin: 9px clamp(10px, .82vw, 14px) 0;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__meta {
    margin-bottom: 5px;
    gap: 4px;
    font-size: clamp(8px, .58vw, 9px);
    letter-spacing: .025em;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__identity h2 {
    margin-bottom: 3px;
    font-size: clamp(15px, 1.12vw, 19px);
    line-height: 1.3;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__identity .curated-note__byline {
    margin-bottom: 7px;
    font-size: clamp(9.5px, .68vw, 11px);
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__verdict {
    margin: 0 clamp(10px, .82vw, 14px) 7px;
    padding: 7px 8px 8px;
    gap: 3px;
    border-radius: 7px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__verdict > span {
    font-size: 8px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__verdict > strong {
    font-size: clamp(10.75px, .77vw, 12.5px);
    line-height: 1.44;
    overflow-wrap: anywhere;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__summary {
    display: block;
    margin: 0 clamp(10px, .82vw, 14px) 7px;
    overflow: visible;
    font-size: clamp(10.75px, .77vw, 12.5px);
    line-height: 1.5;
    -webkit-line-clamp: unset;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__bottom {
    margin: 0 clamp(10px, .82vw, 14px) 6px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__tags {
    margin-bottom: 5px;
    gap: 3px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__tags li {
    padding: 2px 5px;
    font-size: clamp(7.5px, .54vw, 8.5px);
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__footer {
    min-height: 38px;
    padding-top: 3px;
    gap: 7px;
  }

  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__read,
  .notes-screen .notes-index[data-notes-layout="grid"] .curated-note__source {
    font-size: clamp(8.75px, .64vw, 10px);
  }
}
