/* ============================================================
   bilArabi — Page 2 (برنامج بالعربي)
   Design artboard: 1920 x 8049  |  uses --u from home.css
   ============================================================ */

@font-face {
  font-family: 'NotoNaskh';
  src: url('../fonts/NotoNaskhArabic-Bold.woff2') format('woff2'), url('../fonts/NotoNaskhArabic-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'AvenirBlk';
  src: url('../fonts/Avenir-Black.woff2') format('woff2'), url('../fonts/Avenir-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- transparent header over the banner ---------- */
body.p2 header { background: transparent; transition: background 0.3s; }
body.p2 header.scrolled { background: #fff; }
body.p2 #content:before { display: none; }
body.p2 header .logo img { filter: none; }
/* white logo over the banner, original coloured logo once the header turns solid */
body.p2 header .logo .lgc { display: none; }
body.p2 header.scrolled .logo .lgw { display: none; }
body.p2 header.scrolled .logo .lgc { display: block; }

/* ============================================================
   BANNER
   ============================================================ */
.P2Banner {
  direction: rtl;
  position: relative;
  height: calc(var(--u) * 382);
  background: var(--cyan);
  overflow: hidden;
}
.P2Banner .art {
  position: absolute;
  /* client: no blue gap on the left — the art starts at the viewport edge,
     keeping its design proportions, so the blue area grows on the right */
  top: 0; left: 0;
  width: calc(var(--u) * 1040);
  height: calc(var(--u) * 386);
  background: url('../images/p2-banner.jpg') center / 100% 100% no-repeat;
  clip-path: polygon(0 0, calc(var(--u) * 857) 0, calc(var(--u) * 1027) 100%, 0 100%);
}
.P2Banner .btitle {
  position: absolute;
  /* client: the title sits under the tab menu (illustrator position) */
  top: calc(var(--u) * 225);
  right: calc(var(--u) * 639);
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--u) * 61.8);
  line-height: 1.55;
  white-space: nowrap;
}
/* client round 4 (slide 2): "nzabit l line tahet l text same as all the pages"
   — the loose lime bar is replaced by the same dark-teal underline every other
   banner uses. Source p2.ai draws it at y294.5..302.1 in #005D69. */
.P2Banner .btitle span {
  padding: 0 calc(var(--u) * 7) 0 calc(var(--u) * 14);
  background-image: linear-gradient(var(--teal), var(--teal));
  background-repeat: no-repeat;
  background-size: calc(100% + var(--u) * 5) calc(var(--u) * 12);
  background-position: right calc(var(--u) * -9) bottom calc(var(--u) * 29);
}

/* ============================================================
   SHARED PAGE-2 BITS
   ============================================================ */
.p2sec { direction: rtl; position: relative; }
.p2sub {
  font-family: var(--fB);
  font-weight: 700;
  font-size: calc(var(--u) * 35);
  line-height: calc(var(--u) * 55);
  color: var(--teal);
  text-align: center;
}
.p2parag {
  position: relative;
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 30);
  line-height: calc(var(--u) * 40);
  color: #000;
  text-align: right;
}
.p2parag b { font-weight: 700; }

/* ============================================================
   INTRO  (منهاج شامل لتعليم اللغة العربية)
   ============================================================ */
.P2Intro .sectitle {
  padding-top: calc(var(--u) * 70);
  margin: 0 calc(var(--u) * 383);
}
.P2Intro .p2sub {
  margin: calc(var(--u) * 20) calc(var(--u) * 393) 0 calc(var(--u) * 493);
  text-align: right;
}
/* dark ribbon with logo badge */
.P2Intro .ribbon {
  position: relative;
  margin: calc(var(--u) * 46) 0 0;
  height: calc(var(--u) * 97);
}
.P2Intro .ribbon .bar {
  position: absolute;
  top: 0; bottom: 0;
  right: calc(var(--u) * 483);
  /* client round 4 (slide 2): the bar must run behind the badge so its square
     left edge never shows. Source p2.ai ends the rectangle at artboard x212.5,
     i.e. 15u inside the circle, covered by the badge's white halo. */
  left: calc(var(--u) * 452);
  /* illustrator: flat teal strip with a darker cap where the badge sits */
  background: linear-gradient(90deg, #004b56 0, var(--teal) calc(var(--u) * 18), var(--teal) 100%);
  border-radius: 0 calc(var(--u) * 16) calc(var(--u) * 16) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--u) * 25);
  padding-bottom: calc(var(--u) * 4);
}
.P2Intro .ribbon .badge {
  position: absolute;
  top: 50%; transform: translateY(calc(-50% - var(--u) * 4));
  left: calc(var(--u) * 316);
  width: calc(var(--u) * 153);
  height: calc(var(--u) * 153);
  border-radius: 100%;
  background: #fff;
  border: calc(var(--u) * 3) solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.P2Intro .ribbon .badge img { width: 70%; height: 70%; object-fit: contain; display: block; }
/* illustrator: white halo outside the lime ring … */
.P2Intro .ribbon .badge { box-shadow: 0 0 0 calc(var(--u) * 8) #fff; }
/* … and a gray disc behind both the badge and the strip, so only the
   top-right crescent shows */
.P2Intro .ribbon:before {
  display: block; content: '';
  position: absolute;
  left: calc(var(--u) * 321);
  top: 50%;
  margin-top: calc(var(--u) * -98.5);
  width: calc(var(--u) * 164);
  height: calc(var(--u) * 164);
  border-radius: 100%;
  background: var(--gray);
}

/* callout boxes (illustrator: x224-1637, h164, triangle tucked into the box edge) */
.callouts { margin: calc(var(--u) * 54) calc(var(--u) * 282) 0 calc(var(--u) * 224); }
.callout {
  position: relative;
  min-height: calc(var(--u) * 164);
  border: calc(var(--u) * 3) solid var(--teal);
  border-radius: calc(var(--u) * 10);
  background: linear-gradient(250deg, #eef3fa 0%, #fdfeff 90%);
  /* client: text pushed inside so it clears the triangle (illustrator insets) */
  padding: calc(var(--u) * 8) calc(var(--u) * 39) calc(var(--u) * 8) calc(var(--u) * 33);
  margin-bottom: calc(var(--u) * 33);
  display: flex;
  align-items: center;
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 30);
  line-height: calc(var(--u) * 40);
  color: #000;
  text-align: right;
}
.callout .ctxt { display: block; flex: 1 1 auto; min-width: 0; max-width: 100%; }
.callout b, .callout .ctxt b { display: inline !important; font-weight: 700; }
.callout .num { font-family: 'AvenirBlk', var(--fN); font-weight: 900; font-size: calc(var(--u) * 27); }
.callout .arw {
  position: absolute;
  right: calc(var(--u) * -43);
  top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-top: calc(var(--u) * 37.5) solid transparent;
  border-bottom: calc(var(--u) * 37.5) solid transparent;
  border-right: calc(var(--u) * 63) solid var(--teal);
}
.callout.lime { border-color: var(--lime); }
.callout.lime .arw { border-right-color: var(--lime); }
.callout.cyan { border-color: var(--cyan); }
.callout.cyan .arw { border-right-color: var(--cyan); }
/* client: "we removed the red from the whole website" — this box is teal now */
.callout.dark { border-color: var(--teal); }
.callout.dark .arw { border-right-color: var(--teal); }

/* ============================================================
   TRACKS  (يتوفر البرنامج بثلاثة مسارات)
   ============================================================ */
.Tracks .sectitle {
  padding-top: calc(var(--u) * 51);
  margin: 0 calc(var(--u) * 383);
}
.Tracks .cols {
  position: relative;
  margin-top: calc(var(--u) * 65);
  padding-right: calc(var(--u) * 392);
  display: flex;
  gap: calc(var(--u) * 135);
  z-index: 1;
}
.Tracks .cols:before {
  display: block; content: '';
  position: absolute;
  /* round 5: the source band is y2352-2832 (cols top = y2047) */
  top: calc(var(--u) * 292);
  height: calc(var(--u) * 480);
  left: calc(50% - 50vw);
  width: 100vw;
  background: var(--strip);
  z-index: -1;
}
.Tracks .tcol {
  width: calc(var(--u) * 304);
  display: flex;
  flex-direction: column;
}
.Tracks .ttitle {
  text-align: center;
  color: var(--teal);
  font-weight: 700;
  font-size: calc(var(--u) * 40);
  height: calc(var(--u) * 82);
}
.Tracks .tcard {
  height: calc(var(--u) * 397);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 400;
  font-size: calc(var(--u) * 40);
  padding-bottom: calc(var(--u) * 55);
}
/* client round 5: all three booklets use the new 2643x3000 canvases.
   Source places each canvas at 497.955 x 565.215 design units, y2056-2621
   (the card top is y2142, so top = -86); canvas x is 1094 / 660 / 226, i.e.
   -130 / -125 / -120u from the left edge of its column (see the desktop block
   at the end of this file). The card is 428u tall so the list starts where the
   source list does (first line ~y2586). */
.Tracks .tcard.book {
  position: relative;
  background: none;
  padding: 0;
  height: calc(var(--u) * 428);
}
.Tracks .tcard.book img {
  position: absolute;
  top: calc(var(--u) * -86);
  left: calc(var(--u) * -130);
  margin-left: 0;
  width: calc(var(--u) * 497.955);
  height: calc(var(--u) * 565.215);
  /* styles.css sets a global img{max-width:100%}; without this the 720u canvas
     is clamped to the 304u column while the offset keeps assuming 720u */
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.Tracks .tlist {
  margin-top: calc(var(--u) * 16);
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 23);
  line-height: calc(var(--u) * 36);
  color: #000;
  text-align: right;
  min-height: calc(var(--u) * 163);
  /* client: the lists have different lengths — let them fill so the buttons line up */
  flex: 1 1 auto;
}
.Tracks .tlist div { position: relative; padding-right: calc(var(--u) * 22); }
.Tracks .tlist div:before { content: '-'; position: absolute; right: 0; top: 0; }
.Tracks .pillbtn {
  margin: calc(var(--u) * 52) auto 0;
  height: calc(var(--u) * 68);
  border-radius: calc(var(--u) * 38);
  min-width: calc(var(--u) * 183);
  font-size: calc(var(--u) * 26);
}

/* ============================================================
   AUTHOR  (عن المؤلفة الرئيسية)
   ============================================================ */
.Author .sectitle {
  padding-top: calc(var(--u) * 124);
  margin: 0 calc(var(--u) * 383);
}
.Author .p2sub {
  margin: calc(var(--u) * 17) calc(var(--u) * 383) 0 calc(var(--u) * 390);
  text-align: right;
}
.Author .cols {
  position: relative;
  margin-top: calc(var(--u) * 60);
}
.Author .bio {
  margin-right: calc(var(--u) * 768);
  margin-left: calc(var(--u) * 383);
}
.Author .bio .itm {
  position: relative;
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 30);
  line-height: calc(var(--u) * 40);
  color: #000;
  text-align: right;
  padding-right: calc(var(--u) * 46);
  margin-top: calc(var(--u) * 20);
}
.Author .bio .itm:before {
  display: block; content: '';
  position: absolute;
  top: calc(var(--u) * 10);
  right: 0;
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 29);
  background: var(--lime);
}
.Author .bio .itm:after {
  display: block; content: '';
  position: absolute;
  top: calc(var(--u) * 13);
  right: calc(var(--u) * 26);
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 23);
  background: var(--cyan);
}
.Author .card {
  position: absolute;
  top: calc(var(--u) * 27);
  right: calc(var(--u) * 409);
  width: calc(var(--u) * 297);
  padding: calc(var(--u) * 20) calc(var(--u) * 20) calc(var(--u) * 14);
  background: linear-gradient(160deg, #2f9097 0%, #0b6570 100%);
  border-radius: calc(var(--u) * 26);
  text-align: center;
}
.Author .card img {
  width: 100%;
  display: block;
  border: calc(var(--u) * 3) solid var(--lime);
}
.Author .card .nm {
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--u) * 30);
  padding: calc(var(--u) * 8) 0 calc(var(--u) * 2);
}

/* ============================================================
   GOALS  (أهداف البرنامج)
   ============================================================ */
.Goals .sectitle {
  padding-top: calc(var(--u) * 104);
  margin: 0 calc(var(--u) * 383);
}
.Goals .rows { margin-top: calc(var(--u) * 67); }
.Goals .grow {
  position: relative;
  height: calc(var(--u) * 202);
  margin-top: calc(var(--u) * 32);
}
.Goals .gbar {
  position: absolute;
  top: calc(var(--u) * 40);
  right: calc(var(--u) * 430);
  left: calc(var(--u) * 641);
  height: calc(var(--u) * 122);
  background: linear-gradient(250deg, #eef3fa 0%, #ffffff 90%);
  box-shadow: calc(var(--u) * -8) calc(var(--u) * 10) 0 rgba(10, 55, 60, 0.12);
  border-radius: calc(var(--u) * 6);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: calc(var(--u) * 220);
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 33);
  line-height: calc(var(--u) * 40);
  color: #000;
  text-align: right;
}
.Goals .gbar:before {
  /* colored accent tab at the left end */
  display: block; content: '';
  position: absolute;
  left: calc(var(--u) * -30);
  top: calc(var(--u) * -4);
  bottom: calc(var(--u) * -4);
  width: calc(var(--u) * 30);
  border-radius: calc(var(--u) * 8) 0 0 calc(var(--u) * 8);
  background: var(--lime);
}
.Goals .grow.dark .gbar:before { background: var(--teal); }
.Goals .grow:nth-child(4) .gbar:before { background: var(--lime); }
.Goals .gnum {
  position: absolute;
  top: 0;
  right: calc(var(--u) * 396);
  width: calc(var(--u) * 202);
  height: calc(var(--u) * 202);
  border-radius: 100%;
  background: #fff;
  border: calc(var(--u) * 14) solid var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'AvenirBlk', var(--fN);
  font-weight: 900;
  font-size: calc(var(--u) * 90);
  color: #000;
  z-index: 2;
}
.Goals .grow.dark .gnum { border-color: var(--teal); }

/* ============================================================
   CONTENT  (محتوى البرنامج)
   ============================================================ */
.P2Content {
  margin-top: calc(var(--u) * 114);
  background: var(--strip);
  padding-bottom: calc(var(--u) * 55);
}
.P2Content .sectitle {
  padding-top: calc(var(--u) * 44);
  margin: 0 calc(var(--u) * 383);
}
.P2Content .p2parag {
  /* client round 4 (slide 3): "fix this bullets with the text" — the copy sat
     15u above the source, so the lime/cyan marker fell between line 1 and 2.
     Source: line1 ink y5178, marker y5172. */
  margin: calc(var(--u) * 45) calc(var(--u) * 383) 0 calc(var(--u) * 390);
}
.P2Content .p2parag .deco { top: 0; }
.P2Content .p2parag { margin-right: calc(var(--u) * 401); margin-left: calc(var(--u) * 373); }
/* client: keep the bullet marks, indent the first line so the text clears them */
.P2Content .p2parag, .Chars .p2sub { text-indent: calc(var(--u) * 80); }
.sidbubble {
  position: absolute;
  top: calc(var(--u) * 148);
  left: calc(50vw - var(--u) * 916);
  width: calc(var(--u) * 294);
  height: calc(var(--u) * 272);
  /* client: "change the color of this" — teal instead of the red */
  background: var(--teal);
  /* illustrator: half-ellipse ("D") on the outer side, white outline all round */
  border-radius: 0 calc(var(--u) * 119) calc(var(--u) * 119) 0 / 0 50% 50% 0;
  border: calc(var(--u) * 4) solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--u) * 23);
  line-height: calc(var(--u) * 42);
  padding-left: 0;
  padding-right: calc(var(--u) * 35);
  z-index: 2;
}
/* illustrator: lime pennant with a white outline sitting on the bubble */
.sidbubble:before, .sidbubble:after {
  display: block; content: '';
  position: absolute;
  clip-path: polygon(88% 0, 100% 100%, 0 100%);
}
.sidbubble:before {
  top: calc(var(--u) * -48);
  left: calc(var(--u) * 6);
  width: calc(var(--u) * 107);
  height: calc(var(--u) * 43);
  background: #fff;
}
.sidbubble:after {
  top: calc(var(--u) * -44);
  left: calc(var(--u) * 10);
  width: calc(var(--u) * 99);
  height: calc(var(--u) * 35);
  background: var(--lime);
}

/* ============================================================
   CHARACTERS  (شخصيات البرنامج)
   ============================================================ */
.Chars .sectitle {
  padding-top: calc(var(--u) * 113);
  margin: 0 calc(var(--u) * 383);
}
.Chars .p2sub {
  /* wide enough to keep the illustrator's single line next to the bullet */
  margin: calc(var(--u) * 20) calc(var(--u) * 401) 0 calc(var(--u) * 250);
  text-align: right;
  /* 401 (not 383) so the bullet mark lines up with the two paragraph marks above */
  text-indent: calc(var(--u) * 75);
  white-space: nowrap;
}
.Chars .stage {
  position: relative;
  margin: calc(var(--u) * 46) calc(var(--u) * 323) 0;
  height: calc(var(--u) * 654);
}
.Chars .strip {
  position: absolute;
  top: 0;
  height: calc(var(--u) * 611);
  border-radius: calc(var(--u) * 12);
  background-image: url('../images/chars.jpg');
  background-size: calc(var(--u) * 1275) calc(var(--u) * 611);
  background-repeat: no-repeat;
}
/* strip x offsets relative to the 1275-wide group image (design x323-1597) */
.Chars .strip.s1 { right: calc(var(--u) * 1);    width: calc(var(--u) * 83);  background-position: calc(var(--u) * -1190) 0; }
.Chars .strip.s2 { right: calc(var(--u) * 101);  width: calc(var(--u) * 197); background-position: calc(var(--u) * -976) 0; }
.Chars .strip.s3 { right: calc(var(--u) * 315);  width: calc(var(--u) * 199); background-position: calc(var(--u) * -760) 0; }
.Chars .strip.s4 { right: calc(var(--u) * 531);  width: calc(var(--u) * 203); background-position: calc(var(--u) * -540) 0; }
.Chars .strip.s5 { right: calc(var(--u) * 751);  width: calc(var(--u) * 159); background-position: calc(var(--u) * -364) 0; }
.Chars .strip.s6 { right: calc(var(--u) * 927);  width: calc(var(--u) * 241); background-position: calc(var(--u) * -106) 0; }
.Chars .strip.s7 { right: calc(var(--u) * 1185); width: calc(var(--u) * 90);  background-position: 0 0; }
.Chars .chip {
  position: absolute;
  z-index: 3;
  background: linear-gradient(250deg, #eef3fa 0%, #ffffff 90%);
  border-radius: calc(var(--u) * 12);
  color: var(--teal);
  font-weight: 700;
  font-size: calc(var(--u) * 30);
  line-height: 1;
  padding: calc(var(--u) * 12) calc(var(--u) * 22) calc(var(--u) * 16);
  cursor: pointer;
  white-space: nowrap;
}
.Chars .chip i {
  font-style: normal;
  position: relative;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% calc(var(--u) * 12);
  background-position: center 100%;
}
.Chars .chip.active { color: #000; }
/* chip positions (design px -> relative to stage right edge x1597) */
.Chars .chip.haya    { right: calc(var(--u) * 1085); top: calc(var(--u) * 418); }
.Chars .chip.fares   { right: calc(var(--u) * 792);  top: calc(var(--u) * 418); }
.Chars .chip.adam    { right: calc(var(--u) * 649);  top: calc(var(--u) * 418); }
.Chars .chip.dailin  { right: calc(var(--u) * 378);  top: calc(var(--u) * 418); }
.Chars .chip.rosy    { right: calc(var(--u) * 197);  top: calc(var(--u) * 418); }
.Chars .bar {
  position: absolute;
  right: calc(var(--u) * -25);
  left: calc(var(--u) * -26);
  top: calc(var(--u) * 595);
  height: calc(var(--u) * 69);
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: calc(var(--u) * 36.8);
  padding-bottom: calc(var(--u) * 6);
  z-index: 2;
}
/* client: no empty white band until a name is clicked — the strip expands on demand */
.Chars .cards {
  position: relative;
  margin: 0 calc(var(--u) * 323);
  height: 0;
  transition: height 0.35s ease, margin-top 0.35s ease;
}
.Chars.open .cards, html.qa .Chars .cards {
  margin-top: calc(var(--u) * 42);
  height: calc(var(--u) * 362);
}
.Chars .ccard {
  position: absolute;
  top: 0;
  background: linear-gradient(250deg, #eef3fa 0%, #ffffff 90%);
  border: calc(var(--u) * 3) solid var(--lime);
  border-radius: calc(var(--u) * 16);
  box-shadow: calc(var(--u) * 6) calc(var(--u) * 8) 0 rgba(10, 55, 60, 0.14);
  font-family: var(--fB);
  font-weight: 400;
  font-size: calc(var(--u) * 23.7);
  line-height: calc(var(--u) * 36);
  color: #000;
  text-align: center;
  padding: calc(var(--u) * 16) calc(var(--u) * 14);
  width: calc(var(--u) * 210);
  height: calc(var(--u) * 362);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
}
.Chars .ccard:before {
  /* tail up */
  display: block; content: '';
  position: absolute;
  top: calc(var(--u) * -14);
  right: 50%;
  transform: translateX(50%) rotate(-45deg);
  width: calc(var(--u) * 26);
  height: calc(var(--u) * 26);
  background: #fbfdff;
  border-top: calc(var(--u) * 3) solid var(--lime);
  border-right: calc(var(--u) * 3) solid var(--lime);
  border-top-right-radius: calc(var(--u) * 8);
}
.Chars .ccard.show, html.qa .Chars .ccard { opacity: 1; visibility: visible; }
.Chars .ccard.haya   { right: calc(var(--u) * 1021); }
.Chars .ccard.fares  { right: calc(var(--u) * 783); }
.Chars .ccard.adam   { right: calc(var(--u) * 545); }
.Chars .ccard.dailin { right: calc(var(--u) * 307); }
.Chars .ccard.rosy   { right: calc(var(--u) * 57); }

/* ============================================================
   SAMPLES on page 2 (books block reused)
   ============================================================ */
body.p2 .Samples .sectitle { padding-top: calc(var(--u) * 123); }
body.p2 .Samples .bookpic { height: calc(var(--u) * 433); }
body.p2 .Samples .bookpic img { width: calc(var(--u) * 498); top: calc(var(--u) * -100); left: calc(var(--u) * -152); }
body.p2 .Samples .pillbtn { margin-top: calc(var(--u) * 36); }
body.p2 footer { margin-top: calc(var(--u) * 189); }

/* ============================================================
   ISLAND on page 2 (7 items)
   ============================================================ */
body.p2 .island .box { height: calc(var(--u) * 579); }
body.p2 .island .itm { font-size: calc(var(--u) * 18); line-height: 1.35; }
body.p2 .island .arrow.up { margin-bottom: calc(var(--u) * 16); }
body.p2 .island .arrow.down { margin-top: calc(var(--u) * 18); }
html.qa body.p2 .floatstack { top: calc(var(--u) * 3070); right: calc(var(--u) * 292); }
html.qa body.p2 .contactfab { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024.9px) {
  .P2Banner { height: auto; min-height: 210px; }
  .P2Banner .art { position: relative; left: auto; width: 100%; height: 200px; clip-path: none; background-size: cover; }
  .P2Banner .btitle { position: relative; top: auto; right: auto; text-align: center; font-size: 30px; padding: 18px 0 24px; white-space: normal; }
  /* program.html does not load pages.css, so the banner underline needs the
     same mobile treatment the other six banners get there */
  .P2Banner .btitle span {
    display: inline;
    padding: 0 4px 6px;
    background-size: 100% 6px;
    background-position: right bottom 2px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .P2Intro .sectitle, .Tracks .sectitle, .Author .sectitle,
  .Goals .sectitle, .P2Content .sectitle, .Chars .sectitle { padding-top: 50px; margin: 0 20px; }
  .p2sub { font-size: 19px; line-height: 32px; margin: 20px !important; text-align: center !important; white-space: normal; text-indent: 0; }
  /* client round 4 (slide 3): the marker must sit with the first line on mobile
     too — reserve a strip for it and scale it to the 17px body copy */
  .P2Content .p2parag { text-indent: 0; padding-right: 42px; }

  .P2Intro .ribbon { height: auto; margin-top: 26px; }
  .P2Intro .ribbon .bar {
    position: relative; right: auto !important; left: auto !important;
    border-radius: 14px;
    margin: 0 16px;
    font-size: 16px;
    padding: 14px 18px;
    text-align: center;
  }
  .P2Intro .ribbon .badge { display: none; }

  .callouts { margin: 30px 40px 0 20px; }
  .callout { min-height: 0; padding: 14px 16px 14px 20px; font-size: 17px; line-height: 29px; margin-bottom: 30px; }
  .callout .arw {
    right: -28px;
    border-top-width: 20px; border-bottom-width: 20px; border-right-width: 28px;
  }

  .Tracks .cols { flex-direction: column; padding: 0 20px; gap: 40px; align-items: center; margin-top: 30px; }
  .Tracks .cols:before { display: none; }
  .Tracks .tcol { width: 100%; max-width: 340px; }
  .Tracks .ttitle { font-size: 24px; height: auto; margin-bottom: 12px; }
  .Tracks .tcard { height: 300px; font-size: 26px; padding-bottom: 30px; }
  /* round 5: the booklet canvases are 2643x3000 with the artwork inside
     x10-90% / y17-87%; show the canvas at column width and trim the empty
     margins with negative margins so the book is centred over its column */
  .Tracks .tcard.book { height: auto; padding: 0; background: none; }
  .Tracks .tcard.book img,
  .Tracks .tcol:nth-child(2) .tcard.book img,
  .Tracks .tcol:nth-child(3) .tcard.book img {
    position: relative;
    top: auto; left: auto; margin: -10% 0 -8%;
    width: 100%; height: auto;
    transform: none;
    display: block;
  }
  .Tracks .tlist { font-size: 16px; line-height: 28px; min-height: 0; }
  .Tracks .pillbtn { height: 56px; }

  .Author .bio { margin: 0 20px; }
  .Author .bio .itm { font-size: 17px; line-height: 29px; padding-right: 34px; margin-top: 20px; }
  .Author .bio .itm:before { width: 18px; height: 15px; top: 7px; }
  .Author .bio .itm:after { width: 5px; height: 13px; right: 18px; top: 9px; }
  .Author .card { position: relative; top: auto; right: auto; margin: 26px auto 0; width: min(300px, 80%); }
  .Author .card .nm { font-size: 22px; }

  .Goals .grow { height: auto; margin-top: 26px; padding-right: 0; }
  .Goals .gnum {
    position: relative; right: auto; top: auto;
    width: 92px; height: 92px;
    border-width: 8px;
    font-size: 44px;
    margin: 0 auto;
  }
  .Goals .gbar {
    position: relative; top: auto; right: auto; left: auto;
    height: auto;
    margin: -14px 20px 0;
    padding: 26px 22px 18px;
    font-size: 17px; line-height: 29px;
    justify-content: center;
    text-align: center;
  }
  .Goals .gbar:before { display: none; }

  /* .Chars .p2sub (desktop nowrap + 80u indent) outranks the generic .p2sub reset above */
  .Chars .p2sub { white-space: normal; text-indent: 0; padding-right: 42px; text-align: right !important; }
  .Chars .p2sub .deco { right: 0; top: 6px; }
  .Chars .p2sub .deco .sq.lime { width: 15px; height: 17px; }
  .Chars .p2sub .deco .sq.cyan { width: 20px; height: 13px; }
  .P2Content { margin-top: 60px; padding-bottom: 30px; }
  .P2Content .p2parag { margin: 22px 20px 0 !important; font-size: 17px; line-height: 30px; padding-top: 40px; }
  /* the marker rides with the first line on mobile too; the paragraph reserves
     a 42px strip for it and it is scaled down to the 17px body copy */
  .P2Content .p2parag .deco { right: 0; top: 46px; }
  .P2Content .p2parag .deco .sq.lime { width: 15px; height: 17px; }
  .P2Content .p2parag .deco .sq.cyan { width: 20px; height: 13px; }
  /* keep the illustrator "D" shape on mobile too — only the flow changes */
  .sidbubble { position: relative; top: auto; left: auto; margin: 26px auto 0 0; width: min(300px, 84%); height: auto; min-height: 210px; padding: 22px 46px 22px 22px; font-size: 17px; line-height: 30px; }

  body.p2 .Samples .bookpic { height: auto; }
  body.p2 .Samples .bookpic img { width: 100%; top: 0; left: 0; }
  body.p2 footer { margin-top: 90px; }

  .Chars .stage { margin: 20px 12px 0; height: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .Chars .strip { position: relative; right: auto !important; height: 320px; background-size: auto 320px; width: 104px !important; }
  .Chars .strip.s1, .Chars .strip.s7 { display: none; }
  .Chars .strip.s2 { background-position: -511px 0; width: 103px !important; }
  .Chars .strip.s3 { background-position: -398px 0; width: 104px !important; }
  .Chars .strip.s4 { background-position: -283px 0; width: 106px !important; }
  .Chars .strip.s5 { background-position: -191px 0; width: 83px !important; }
  .Chars .strip.s6 { background-position: -56px 0; width: 126px !important; }
  .Chars .chip { position: relative; right: auto !important; top: auto !important; font-size: 18px; padding: 8px 14px 10px; margin: 4px; }
  .Chars .chipsrow { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
  .Chars .bar { position: relative; top: auto; height: auto; padding: 12px 16px; font-size: 18px; margin-top: 14px; }
  .Chars .cards { margin: 0 20px; height: 0; }
  .Chars.open .cards, html.qa .Chars .cards { margin-top: 16px; height: 380px; }
  .Chars .ccard {
    position: absolute;
    right: auto !important;
    left: 50%;
    transform: translateX(-50%);
    width: 100% !important;
    max-width: 340px;
    height: 360px;
    margin: 0;
    font-size: 16px;
    line-height: 28px;
    display: flex;
  }
}

/* ============================================================
   CLIENT ROUND 5 — desktop only (mobile keeps its own rules above)
   ============================================================ */
@media (min-width: 1025px) {
  .Tracks .tcol:nth-child(2) .tcard.book img { left: calc(var(--u) * -125); }
  .Tracks .tcol:nth-child(3) .tcard.book img { left: calc(var(--u) * -120); }
  .Tracks .pillbtn { margin-top: calc(var(--u) * 36); }
  .Tracks .ttitle { white-space: nowrap; }
  /* both lead paragraphs are two lines in the source (ink x270-1527 / x309-1528) */
  .P2Intro .p2sub { margin-left: calc(var(--u) * 262); margin-bottom: calc(var(--u) * 101); }
  .Author .p2sub { margin-left: calc(var(--u) * 300); }
  .Author .sectitle { padding-top: calc(var(--u) * 109); }

  /* source card: rect x1198-1527, y3264-3751 (329 x 487), top radius ~80, bottom ~42;
     photo 293 wide at +17.7 / +22.6; name 28.7u on one line */
  .Author .cols { display: flow-root; margin-top: calc(var(--u) * 95.5); min-height: calc(var(--u) * 490); }
  .Author .card {
    top: 0;
    right: calc(var(--u) * 393);
    width: calc(var(--u) * 329);
    padding: calc(var(--u) * 22) calc(var(--u) * 16) 0;
    border-radius: calc(var(--u) * 80) calc(var(--u) * 80) calc(var(--u) * 42) calc(var(--u) * 42);
  }
  .Author .card .nm {
    display: flex; align-items: center; justify-content: center;
    height: calc(var(--u) * 85);
    padding: 0;
    font-size: calc(var(--u) * 28.7);
    white-space: nowrap;
  }
  /* source list: text x309-1106 (797u wide), five bullets, spacing set per item */
  .Author .bio { margin-left: calc(var(--u) * 309); }
  .Author .bio .itm:nth-child(1) { margin-top: calc(var(--u) * 40); }
  .Author .bio .itm:nth-child(2) { margin-top: calc(var(--u) * 14); }
  .Author .bio .itm:nth-child(3) { margin-top: calc(var(--u) * 34); }
  .Author .bio .itm:nth-child(4) { margin-top: calc(var(--u) * 28); }
  .Author .bio .itm:nth-child(5) { margin-top: calc(var(--u) * 35); }
}
@media (max-width: 1024.9px) {
  .Author .card .nm { white-space: nowrap; font-size: 22px; }
}
