/* RJN Physical Therapy: the only page CSS on top of the kit.
   Every rule is either inside a visual, one height for a picture group, a
   grid-line alignment, or the map frame the brief asks for in every footer. */

/* the client's logo beside the name in the fixed bar */
.nav__logoimg { height: 34px; width: auto; display: block; }

/* the arrow deal draws .btn--secondary as a text link with 8px of inline padding,
   which sets its words 8px inside the container line: take that padding off the
   first one in a row so its label starts on the line, like the text above it */
.btn-row > .btn--secondary:first-child { padding-inline-start: 0; }

/* the side photographs: one height beside the text they sit next to
   (.develop is the picture-develops moment, assets/moments/_demo/in-page-service.html) */
.develop, .proof__photo, .peek__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; height: min(480px, var(--ly-fit)); }
.develop > img, .proof__photo > img, .peek__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the press clippings: one height for the pair, each scan shown whole inside it */
/* two long quotes run past one screen from 1024 up, so that section takes its
   second one there and its photograph grows to fill it */
@media (min-width: 1024px) { #first-course { --h: 2; } }
@media (min-width: 1280px) { #first-course .proof__photo { height: 1000px; } }

.clip { margin: 0; height: 560px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.clip > img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* the portraits fill their tile frame; the roster's names are set like card titles */
.tile__media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile__name { margin: 0; font-size: 18px; line-height: 26px; font-weight: 560; letter-spacing: -0.012em; color: var(--ink); }

/* the maps: one in every footer, one large on the contact page */
.footer__map iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: var(--r-md); filter: grayscale(1) contrast(.92); }
.map__big iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: var(--r-lg); }

/* a short desktop screen (1024x768) leaves 576px of content */
@media (min-width: 1024px) and (max-width: 1279px) {
  .develop, .peek__photo { height: 400px; }
  .proof__photo { height: 330px; }
  .clip { height: 430px; }
  .map__big iframe { height: 330px; }
  #first-course .proof__photo { height: 820px; }
}

/* ---- the splits stack below 1024 ------------------------------------------
   A picture sized by ratio grows with the column and pushes its section past
   its screen, so each one takes a set height here and the sections stay on the
   screen grid. */
@media (max-width: 1023px) {
  .develop, .proof__photo { height: 260px; margin-top: var(--s-7); }
  .peek__photo { height: 220px; margin-top: var(--s-7); }
  #first-course .proof__photo { height: 200px; }
  #team .tile { gap: var(--s-3); }
  #team .btn-row { margin-top: var(--s-5); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  /* three columns and the map across the foot: four side by side are too narrow,
     and two-up makes the footer taller than its screen */
  footer.closing .closing__links > .grid > *:not(.footer__map) { grid-column: span 4; }
  footer.closing .closing__links > .grid > .footer__map { grid-column: 1 / -1; }
  .footer__map iframe { height: 100px; }
  .map__big iframe { height: 300px; }
  .clip { height: 285px; }
  /* the practice section has only this one picture, so it carries the screen */
  .develop { height: 360px; }
  /* #care by id: the moment's own stylesheet is injected after this one */
  #care .mo-pc__visual > img { max-height: 16svh; }
  #team .tile--portrait { --tile-ratio: 4 / 3; }
}

@media (max-width: 639px) {
  footer.closing .closing__links > .grid > * { grid-column: 1 / -1; }
  footer.closing { --hm: 2; }
  /* the footer's content has to end clear of the fixed call bar (64px) on its
     second phone screen, so the map is shallow here */
  .footer__map iframe { height: 96px; }
  .map__big iframe { height: 340px; }
  #getting-here .proof__photo { height: 340px; }
  #rooms .proof__photo { height: 168px; }
  #founder .proof__photo { height: 330px; }
  #centre .develop { height: 420px; }
  #centre-contact .proof__photo { height: 420px; }
  #shoulder .develop { height: 300px; }
  #visit-forms .develop { height: 240px; }
  .clip { height: 420px; }
  .develop, .proof__photo { height: 200px; }
  #first-course { --hm: 2; }
  #first-course .proof__photo { height: 240px; }
  /* the rows fill the first phone screen, so the picture carries the second */
  .peek__photo { height: 420px; }
  /* the address is long: give it the column's full width, not a part-line box */
  .footer__email { display: block; }
  /* three stacked steps need two phone screens; the kit leaves the height to the content */
  main > #care[data-moment]:not(.is-live) { height: calc(2 * 100svh); }
  #team .tile--portrait { --tile-ratio: 8 / 7; }
  #team .tile { gap: var(--s-1); }
  #team .grid { row-gap: var(--s-4); }
  #team .btn-row { margin-top: var(--s-3); }
}

/* at 320 the narrower column makes the testimonial section taller than its one
   screen, so it takes two there and nothing lands on the footer */
@media (max-width: 380px) { #proof { --hm: 2; } }
