/* Client resources page composition. Placement only: every block is a shared
   component from base.css on the shared grid, and every value comes from
   tokens.css. Order: one of Matt's photos beside the title and the link
   list (Matt's reference, Arcadia's Client Login page), the footer. */

/* ---- Photo and links: the title and the links over 7-12, the text
   centered on the photo. The photo runs from column 1 to 80px short of
   the text, close to it the way Arcadia's is (Matt's reference), cropped
   4:5 from the bottom so it's wider without getting taller: the crown's
   top fronds run off the edge, the small palm stays whole (Luke,
   2026-10-19: bigger, closer to the text, not super tall; then a little
   smaller, 48px from the text was too close). The text sets the photo's
   height (Luke, 2026-10-26: the links card's foot missed the photo's by a
   few px): the photo stretches from the eyebrow's capitals to the card's
   foot (contain: size, so it doesn't size the row), still cropped from the
   bottom, about 4:5 at desktop widths.
   Below desktop the photo goes wide and the text follows it. --------- */
.resources__frame { padding-block: var(--intro-y); }
.resources__photo { aspect-ratio: 2 / 3; border-radius: var(--radius-m); background: var(--mist-200); }   /* Matt's palm, its whole frame */
.resources__photo > img { object-position: var(--pos, 50% 50%); }
.resources__body .links { margin-top: var(--space-7); }
@media (min-width: 1024px) {
  .resources__grid { align-items: start; }
  .resources__photo { grid-column: 1 / span 6; grid-row: 1; align-self: stretch; aspect-ratio: auto; contain: size; margin-right: calc(var(--space-8) + var(--space-4) - var(--gutter)); }   /* 80px from the text; as tall as the text */
  .resources__photo > img { object-position: 50% 100%; }   /* the 4:5 crop from the bottom (stacked, the wide crop keeps --pos) */
  .resources__body { grid-column: 7 / -1; grid-row: 1; }
}
/* Tablets from 768px: the palm beside the text as on desktop, over the
   first three columns, as tall as the text (2026-11-16, the mobile build:
   stacked, it stood 500px tall above the links) */
@media (min-width: 768px) and (max-width: 1023px) {
  .resources__grid { align-items: start; }
  .resources__photo { grid-column: 1 / span 3; grid-row: 1; align-self: stretch; aspect-ratio: auto; contain: size; margin-right: var(--space-5); }
  .resources__photo > img { object-position: 50% 100%; }
  .resources__body { grid-column: 4 / -1; grid-row: 1; }
}
/* Stacked: the title, the palm, then the links (Luke, 2026-11-16: the
   page opened on the photo) */
@media (max-width: 767px) {
  .resources__body { display: contents; }
  .resources__body > *, .resources__photo { grid-column: 1 / -1; }
  .resources__body > .intro__copy { grid-row: 1; }
  .resources__photo { grid-row: 2; aspect-ratio: 3 / 2; margin-top: var(--space-7); }
  .resources__body > .links { grid-row: 3; }
}
/* Phones: the palm at 4:3, tall enough to read as the palm, short enough that the links follow soon */
@media (max-width: 639px) {
  .resources__photo { aspect-ratio: 4 / 3; margin-top: var(--space-6); }   /* 4:3, not 2:1 (Luke, 2026-11-16: the tall palm cut to a thin band looked odd) */
  .resources__body .links { margin-top: var(--space-6); }
}
