/* Sessions & Records page only (/features/records). Linked by the build on that page alone; everything is scoped to .fp-page.k4. */
html[data-look="hearth"] .fp-page.k4 {
  /* ---- telehealth row: the other kinds of call, three pictures under the main one */
  & .rc-kinds { margin-top: 72px; padding-top: 34px; border-top: 1px solid var(--line); }
  & .rc-kinds-label { margin: 0; font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.012em; color: var(--text); text-wrap: balance; }
  & .rc-kinds-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
  & .rc-kind { margin: 0; }
  & .rc-kind-shot { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 22px 44px -26px rgba(60, 40, 10, .5); }
  & .rc-kind-shot img { display: block; width: 100%; height: auto; }
  & .rc-kind-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(60, 40, 10, .12); pointer-events: none; }
  & .rc-kind-who { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(255, 252, 246, .94); color: var(--text);
    font: 700 12.5px/1 var(--sans); letter-spacing: .01em; box-shadow: 0 6px 14px -8px rgba(30, 20, 5, .6); }
  & .rc-kind h3 { margin: 18px 0 0; font: 500 23px/1.2 var(--display); letter-spacing: -.012em; color: var(--text); }
  & .rc-kind p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--text-2); max-width: 34ch; }

  /* ---- notes row: two buttons side by side */
  & .rc-links { display: flex; flex-wrap: wrap; gap: 10px; }

  /* ---- the client record: the full record with the pop-over panel on its corner */
  & .fp-stack.is-record { padding-bottom: 84px; padding-right: 12%; }
  & .fp-stack.is-record > .fp-stack-top { width: 33%; max-width: 230px; }

  /* ---- client portal: the client's phone, with the email that carries the link on its corner */
  & .rc-portal { position: relative; display: grid; justify-items: end; padding: 0 9% 0 0; max-width: 520px; width: 100%; justify-self: center; }
  & .rc-portal > .fp-shot.is-phone { width: 58%; max-width: 290px; }
  & .rc-portal > .rc-portal-link { position: absolute; left: 0; bottom: 11%; width: 46%; max-width: 250px; z-index: 2; }
  & .rc-portal > .rc-portal-link .fp-shot-frame { box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -24px rgba(60, 40, 10, .5); }

  /* ---- goals: the call with the goals open, the outcome measure over its corner */
  & .fp-stack.is-callgoals { padding-bottom: 64px; padding-right: 9%; }

  /* ---- body charts + home programmes, side by side on pine */
  & .rc-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
  & .rc-duo-item { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; }
  & .rc-duo .fp-stack { align-self: end; margin-bottom: 34px; padding-right: 6%; }
  & .rc-duo .fp-stack.is-body { padding-bottom: 54px; }
  & .rc-duo .fp-stack.is-prog { padding-bottom: calc(54px + 4.4%); }
  & .rc-duo .fp-stack.is-body > .fp-stack-top { width: 62%; max-width: 330px; }
  & .rc-duo .fp-stack.is-prog > .fp-stack-top { width: 60%; max-width: 320px; }
  & .rc-duo h2 { margin-top: 0; font-size: clamp(28px, 2.8vw, 36px); letter-spacing: -.02em; text-wrap: balance; color: #fbf7ef; }
  & .rc-duo .fp-feat-lede { max-width: 30em; }
  & .rc-duo .fp-ticks { margin-top: 20px; align-self: start; }
  & .rc-duo + .fp-credit { margin-top: 34px; }

  /* ---- intro: six cards, each as wide as its words; and 16 tiles never sit three to a row (that leaves one over) */
  @media (min-width: 1101px) {
    & .fp-onpage-list { grid-auto-columns: auto; justify-content: space-between; gap: 2px; }
    & .fp-onpage-text b, & .fp-onpage-text em { white-space: nowrap; }
  }
  @media (min-width: 1001px) and (max-width: 1100px) { & .fp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 1000px) {
    & .rc-kinds { margin-top: 56px; }
    & .rc-kinds-list { gap: 18px; }
    & .rc-kind h3 { font-size: 21px; }
    & .rc-duo { gap: 40px; }
  }
  @media (max-width: 760px) {
    & .rc-kinds { margin-top: 48px; padding-top: 28px; }
    & .rc-kinds-list { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
    & .rc-kind p { max-width: none; }
    & .fp-stack.is-record, & .fp-stack.is-callgoals { padding: 0; }
    & .rc-portal { padding: 0; max-width: 400px; }
    & .rc-portal > .fp-shot.is-phone { width: 60%; max-width: 240px; }
    & .rc-portal > .rc-portal-link { width: 48%; bottom: 8%; }
    & .fp-stack.is-record > .fp-stack-top { width: 46%; margin-top: -64px; }
    & .rc-duo { grid-template-columns: 1fr; gap: 64px; }
    & .rc-duo-item { display: block; }
    & .rc-duo .fp-stack, & .rc-duo .fp-stack.is-body, & .rc-duo .fp-stack.is-prog { padding: 0; margin-bottom: 30px; }
  }
}

/* colour (round 7): the three kinds of call each get an accent label (shared palette, feature-pages.css) */
html[data-look="hearth"] .fp-page.k4 {
  & .rc-kind:nth-child(1) .rc-kind-who { background: var(--fp-ochre); color: #4a340a; }
  & .rc-kind:nth-child(2) .rc-kind-who { background: var(--fp-sky); color: #173f58; }
  & .rc-kind:nth-child(3) .rc-kind-who { background: var(--fp-blush); color: #6d2433; }
}
