/* Features page: the feature list in two columns from tablet width, with the diary and quotes cards
   full width and their phone pictures beside the text (Paul, 11 Nov 2026). Phones (760 px and below)
   keep one column; the pictures sit under the text. */
.feature-shot { margin: 18px 0 0; }
.feature-index-inline { display: none; }
.feature-shot img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 22px; border: 1px solid #d2dcce; box-shadow: 0 10px 30px rgba(12, 80, 62, 0.12); }
.feature-shot figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--muted); max-width: 260px; }

@media (min-width: 761px) {
  .workspace-section .workspace-grid { grid-template-columns: 1fr; gap: 40px; }
  .workspace-section .feature-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
  .workspace-section .feature-list article:nth-child(2) { padding-top: 0; }
  .workspace-section .feature-list article.feature-wide { grid-column: 1 / -1; }
  /* The text sits in the middle of the picture's height: rows 1 and 4 share the spare space. */
  .workspace-section .feature-wide > div { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 44px; }
  /* Every card's text starts at the same edge: a fixed number column (22 px + the 23 px gap). On the wide
     rows the number moves beside its heading, so it stays with the text when the text is centred. */
  .workspace-section .feature-list .feature-index { flex: none; width: 22px; }
  .workspace-section .feature-wide > .feature-index { visibility: hidden; }
  .workspace-section .feature-wide .feature-index-inline { display: block; grid-column: 1; grid-row: 3; margin: 7px 0 0 -45px; width: 22px; }
  .workspace-section .feature-wide > div > h3 { grid-column: 1; grid-row: 3; }
  .workspace-section .feature-wide > div > p { grid-column: 1; grid-row: 4; }
  .workspace-section .feature-wide .feature-shot { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  /* Alternate sides: the second pictured card has its picture on the left. */
  .workspace-section .feature-wide.picture-left > div { grid-template-columns: 260px minmax(0, 1fr); }
  .workspace-section .feature-wide.picture-left .feature-index-inline,
  .workspace-section .feature-wide.picture-left > div > h3,
  .workspace-section .feature-wide.picture-left > div > p { grid-column: 2; }
  .workspace-section .feature-wide.picture-left .feature-shot { grid-column: 1; }
}

@media (min-width: 1001px) {
  .workspace-section .workspace-grid { gap: 44px; }
  .workspace-section .feature-list { column-gap: 64px; }
  .workspace-section .feature-wide > div { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 72px; }
  .workspace-section .feature-wide.picture-left > div { grid-template-columns: 280px minmax(0, 1fr); }
  .workspace-section .feature-wide .feature-shot img,
  .workspace-section .feature-wide .feature-shot figcaption { max-width: 280px; }
}
