/* J4 ink: the scrapbook journal in paper, greys and dark ink, with one yellow.
   After the Figma section "Paper and ink journal, round 1" (138:9821). Loads after css/j4.css and
   styles/j4-paper.css and changes their colours; the pages themselves are in styles/j4-ink.js.
   Yellow means "in view": the flag of the open section, the highlighter behind a heading or a
   phrase, the light on the client's chair. Nothing else is coloured, bar the tape on her photo. */

.theme-j4 {
  --desk: #F4F2EE;
  --cover: #E6E2DA;
  --cover-inside: #D8D4CD;
  --leaf: #D6D1C7;
  --cocoa: #44352E;
  --mocha: #6A6864;
  --ink: #44352E;
  --paper: #F7F6F3;
  --card: #FFFFFF;
  --yellow: #F3E1A8;
  --butter: #F3E1A8;
  --strip: #EAE7E0;
  --ring-a: #6A6864;
  --ring-b: #3A3936;
  --ring-c: #262523;
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- surfaces ---------- */
.theme-j4 .bg { background-color: var(--desk); background-image: var(--t-paper); background-size: 512px; }
.theme-j4 .board-right,
.theme-j4 .coverface { background-color: var(--cover); }
.theme-j4 .coverface.inside { background-color: var(--cover-inside); }
.theme-j4 .oak { fill: var(--leaf); }
.theme-j4 .cover-label { background-color: #EFEDE8; }
.theme-j4 .mail-strip { background-color: var(--strip); }
.theme-j4 .tape.tape.tape.tape { background-color: rgba(230, 226, 218, 0.9); }
.theme-j4 .pasted,
.theme-j4 .note-card { background-color: var(--card); }
.theme-j4 .pull { border-left-color: var(--mocha); padding-left: 26px; }
.theme-j4 .training li::before { background: var(--mocha); }
.theme-j4 .chips span { background-color: #EAE7E0; }
.theme-j4 .chips span:nth-child(2) { background-color: #E0DDD5; }
.theme-j4 .chips span:nth-child(3) { background-color: #E6E2DA; }
.theme-j4 mark { background: var(--yellow); color: inherit; padding: 0 3px; margin: 0 -3px; }

/* ---------- flags: white and greys at rest, yellow for the section in view ---------- */
.theme-j4 .tabs button { transition: transform 0.5s var(--ease), background-color 0.5s ease; }
.theme-j4 .tabs button:nth-child(1) { background-color: #FFFFFF; }
.theme-j4 .tabs button:nth-child(2) { background-color: #EFEDE8; }
.theme-j4 .tabs button:nth-child(3) { background-color: #E0DDD5; }
.theme-j4 .tabs button:nth-child(4) { background-color: #CFCBC2; }
.theme-j4 .tabs button:nth-child(5) { background-color: #F7F6F3; }
.theme-j4 .tabs button[aria-current]:nth-child(n) { background-color: var(--yellow); }

/* ---------- beside the closed journal ---------- */
.theme-j4 .flip .hero { justify-content: flex-start; padding-top: 193.8px; }
.theme-j4 .hero h1 { margin-bottom: 24.6px; }
.theme-j4 .hero .lede { max-width: 480px; }
.theme-j4 .hero-cred { margin: 42.5px 0 0; }
.theme-j4 .hero-cred strong { display: block; font: 700 20px/26px var(--font-head); }
.theme-j4 .hero-cred span { display: block; font-size: 16px; line-height: 26.56px; color: var(--mocha); }

/* ---------- things placed on a page by hand ----------
   css/j4.css lifts every child of a page above the oak print with position: relative. The trail,
   the photos, the waypoints and the chairs are placed by their Figma coordinates instead, so
   this has to outweigh that rule. Stacked, they fall back into the flow of the page. */
.theme-j4 .flip .page > .abs.abs.abs.abs { position: absolute; }
.theme-j4 .print.abs { --z: 1; --pos: 50% 50%; --zo: 50% 50%; max-width: none; }

/* the trail: one pen line through About me */
.theme-j4 .trail { left: 0; top: 0; width: var(--pw); height: var(--ph); z-index: 0; fill: none; stroke: var(--cocoa); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.theme-j4 .flip .page > .trail.abs.abs.abs { z-index: 0; }
.theme-j4 .way { margin: 0; display: flex; align-items: center; gap: 9.5px; font: 500 13px/16px var(--font-body); color: var(--cocoa); white-space: nowrap; transition: opacity 0.6s ease; }
.theme-j4 .way.rev { flex-direction: row-reverse; }
.theme-j4 .way i { flex: none; width: 11px; height: 11px; border: 2px solid var(--cocoa); border-radius: 50%; background: var(--paper); }
.theme-j4 .way.pre { opacity: 0; }
.theme-j4 .stack .trail,
.theme-j4 .stack .way { display: none; }

/* ---------- page 1: the headline that does not sit straight ---------- */
.theme-j4 .crooked { margin: 10px 0 73.4px; font: 700 56px/53px var(--font-head); letter-spacing: -0.02em; color: var(--cocoa); }
.theme-j4 .crooked .l { display: block; white-space: nowrap; }
.theme-j4 .crooked .in1 { margin-left: 59px; }
.theme-j4 .crooked .in2 { margin-left: 106px; }
.theme-j4 .crooked i { display: inline-block; font-style: normal; transform: translateY(var(--y)) rotate(var(--r)); transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1); transition-delay: calc(var(--n) * 32ms); }
/* before its turn the last word stands upright; then it comes loose, letter by letter */
.theme-j4 .crooked.pre i { transform: none; }

/* ---------- page 2: her photo, inside the loop ---------- */
.theme-j4 .ph-about { left: 165.4px; top: 132.45px; --w: 307.5px; --ar: 1 / 1; padding: 14.35px; transform: rotate(4deg); }
.theme-j4 .ph-about .tape.tape.tape.tape { width: 123.6px; height: 37.4px; margin-left: -61.8px; top: -21.5px; transform: rotate(-4deg); background-color: rgba(235, 179, 193, 0.72); }

/* ---------- page 3 and 4 ---------- */
.theme-j4 .flip .p-about-3 > p:not(.way) { margin-top: 132px; }
.theme-j4 .p-about-3 .pull { margin: 43px 0 26px; }
.theme-j4 .p-about-3 .print.ph-tree { margin-top: 60px; }
.theme-j4 .p-about-4 .note-card { margin-top: 62.9px; }

/* ---------- my approach ---------- */
.theme-j4 .p-approach-1 .chips { margin: 0 0 36px !important; }
.theme-j4 .flip .p-approach-2 .pull.big { margin-top: 104px; }
.theme-j4 .chairs { left: 155px; top: 379.7px; width: 295px; height: 271px; overflow: visible; }
.theme-j4 .chairs .pen { fill: none; stroke: var(--cocoa); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.theme-j4 .chairs .beam { fill: var(--yellow); fill-opacity: 0.55; }
.theme-j4 .chairs .pool { fill: var(--yellow); }
.theme-j4 .stack .chairs { display: block; max-width: 100%; margin: 32px auto 0; }

/* ---------- clinical experience: three prints from her placement ---------- */
.theme-j4 .flip .trio { left: 0; top: 0; width: 0; height: 0; }
.theme-j4 .flip .trio .print { position: absolute; }
.theme-j4 .trio .print { --w: 196.6px; --ar: 172.1 / 143.1; padding: 12px 12.5px 10.7px 12px; }
.theme-j4 .trio .tape.tape.tape.tape { width: 84px; height: 26px; margin-left: -37.6px; top: -17.5px; transform: rotate(-4deg); }
.theme-j4 .ph-a { left: 63.1px; top: 538px; transform: rotate(-13deg); }
.theme-j4 .ph-b { left: 356px; top: 588.4px; }
.theme-j4 .ph-b .tape.tape.tape.tape { margin-left: -27.7px; top: -18.5px; transform: rotate(-1.9deg); }
.theme-j4 .ph-c { left: 204.2px; top: 552.5px; transform: rotate(9deg); }
.theme-j4 .flip .ph-b { z-index: 1; }
.theme-j4 .flip .ph-c { z-index: 2; }
.theme-j4 .stack .trio { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 10px; margin-top: 30px; }
.theme-j4 .stack .trio .print { --w: 136px; }

/* ---------- clinical interests ---------- */
.theme-j4 .p-int-1 .hl { margin: 2.7px 0 40px; line-height: 47px; transform: rotate(-0.4deg); }
.theme-j4 .p-int-1 .hl span { display: inline-block; }
.theme-j4 .flip .int-lede { width: 253px; margin: 0; }
.theme-j4 .ph-table { left: 339.7px; top: 190.1px; --w: 203.7px; --ar: 187.4 / 207.4; padding: 8.15px 8.15px 7.65px; transform: rotate(6deg); }
.theme-j4 .ph-table .tape.tape.tape.tape { width: 57.1px; height: 17.7px; margin-left: -28.5px; top: -10.2px; transform: rotate(-4deg); }
.theme-j4 .list-card { width: 492px; max-width: 100%; padding: 33px 33px 30px; transform: rotate(-1.2deg); }
.theme-j4 .list-card > .tape.tape.tape.tape { transform: rotate(-3deg); }
.theme-j4 .list-card h3 { margin: 0; font: 400 17px/28.22px var(--font-body); }
.theme-j4 .list-card ul { list-style: none; margin: 0 0 28.22px; padding: 0; }
.theme-j4 .list-card ul:last-child { margin-bottom: 0; }
.theme-j4 .list-card li { line-height: 28.22px; }
.theme-j4 .list-card li::before { content: "\2022\00a0"; }
.theme-j4 .p-int-1 .list-card { left: 54.1px; top: 482.1px; }
.theme-j4 .p-int-2 .list-card { left: 54.45px; top: 90px; padding: 34px 32px; transform: rotate(1.2deg); }
/* stacked, nothing keeps its Figma coordinates: every hand-placed piece sits in the flow */
.theme-j4 .stack .page .abs,
.theme-j4 .stack .page .trio .print,
.theme-j4 .stack .page .list-card { left: auto; top: auto; }
.theme-j4 .stack .print.abs { display: block; margin: 24px auto; max-width: 100%; }
.theme-j4 .stack .p-about-2 .print.abs { margin: 30px auto 14px; }
.theme-j4 .stack .p-about-3 .print.ph-tree { --w: min(300px, 100% - 24px); margin: 44px auto 0; }
.theme-j4 .stack .page .list-card { width: auto; margin-top: 30px; padding: 26px 22px 24px; }
.theme-j4 .stack .p-int-2 .list-card { margin-top: 14px; }

/* ---------- stacked: the headline at a size a narrow page can hold ---------- */
.theme-j4 .stack .crooked { font-size: 34px; line-height: 34px; margin-bottom: 28px; }
.theme-j4 .stack .crooked .l { white-space: normal; }
.theme-j4 .stack .crooked .in1 { margin-left: 28px; }
.theme-j4 .stack .crooked .in2 { margin-left: 52px; }
.theme-j4 .stack .hero-cred { margin-top: 26px; }
