/* A prompt, a printed source and the resulting checklist, all set in live text. */
.pg-notebook {
  container-type: inline-size;
  margin-block: .65rem .4rem;
  isolation: isolate;
}
.pg-notebook-prompt {
  position: relative;
  margin: 0 0 .95rem 5%;
  padding: .75rem 1rem .85rem;
  border: 1px solid #65949f;
  border-radius: .95rem .95rem .95rem .18rem;
  background: linear-gradient(115deg, #153e4a, #18354a);
  box-shadow: inset 0 1px 0 #d5fff312, 0 7px 20px -14px #041a27;
}
.pg-notebook-label {
  display: block;
  font: 700 clamp(.74rem, 3cqi, .96rem)/1.2 "Segoe UI", system-ui, sans-serif;
  letter-spacing: .015em;
}
.pg-notebook-prompt .pg-notebook-label { display: flex; align-items: center; gap: .55em; color: #acebdf; }
.pg-notebook-prompt p { margin-top: .35em; color: #f4faff; font-size: clamp(1rem, 4cqi, 1.48rem); line-height: 1.33; }
.pg-notebook-spread {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  isolation: isolate;
  border-radius: .8rem;
  background: #608786;
  box-shadow: 0 2px 0 #c6d3ca, 0 4px 0 #788f94, 0 7px 0 #26544f, 0 19px 31px -16px #020e1a;
}
.pg-notebook-page {
  min-width: 0;
  padding: clamp(.8rem, 4.8cqi, 1.8rem) clamp(.78rem, 4cqi, 1.65rem);
}
.pg-notebook-page .pg-notebook-label { padding-bottom: .58em; margin-bottom: .85em; border-bottom: 1px solid #a9b5ac; }
.pg-notebook-source {
  color: #253e46;
  border-radius: .7rem .18rem .18rem .7rem;
  background: linear-gradient(90deg, transparent 88%, #3e514518), linear-gradient(125deg, #fffdf5, #f2efe3);
}
.pg-notebook-source .pg-notebook-label { color: #465959; }
.pg-notebook-source p {
  font: 400 clamp(1.12rem, 5.1cqi, 2.05rem)/1.25 Georgia, "Times New Roman", serif;
  letter-spacing: -.026em;
}
.pg-notebook-result {
  color: #123d41;
  border-radius: .18rem .7rem .7rem .18rem;
  background: linear-gradient(90deg, #2a67591f, transparent 8%), linear-gradient(120deg, #e4f5eb, #f0fbf5);
}
.pg-notebook-result .pg-notebook-label { color: #20605a; border-color: #a0c8b6; }
.pg-notebook-result ul { display: grid; gap: .55em; list-style: none; padding: 0; margin: 0; }
.pg-notebook-result li { color: #123d41; margin: 0; }
.pg-notebook-result li .pg-marker { vertical-align: baseline; }
.pg-notebook-result li, .pg-notebook-gap {
  position: relative;
  padding-left: 1.32em;
  font-size: clamp(.94rem, 3.75cqi, 1.42rem);
  line-height: 1.26;
}
.pg-notebook-result li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .19em;
  width: .81em;
  height: .81em;
  border: 1.5px solid #39776e;
  border-radius: .15em;
  background: #fcfffa;
}
.pg-notebook-result .pg-notebook-gap { margin-top: .72em; padding-top: .6em; border-top: 1px dashed #9cbdaf; color: #32564e; }
.pg-notebook-gap > span { position: absolute; left: 0; top: .87em; width: 1.1em; height: 1.1em; border: 1px solid currentColor; border-radius: 50%; text-align: center; font: 700 .76em/1 "Segoe UI", sans-serif; }
.pg-notebook-binding { position: absolute; z-index: 1; inset: 0 auto 0 50%; width: clamp(.7rem, 3.8cqi, 1.45rem); transform: translateX(-50%); pointer-events: none; }
.pg-notebook-binding::before, .pg-notebook-binding::after {
  content: "";
  position: absolute;
  inset: 26% 0 auto;
  height: clamp(3px, 1cqi, 5px);
  border-radius: 40%;
  background: linear-gradient(#5c7377, #e2ece8 44%, #7a9795 78%, #415658);
  box-shadow: 0 2px 1px #30483c55;
}
.pg-notebook-binding::after { top: 74%; }
.pg-marker {
  --marker: #f4d382;
  background: linear-gradient(var(--marker), var(--marker)) left 88% / 0% .45em no-repeat;
  animation: pg-mark-pair 8s ease-in-out infinite;
}
.pg-marker--next { --marker: #a8ddd4; animation-delay: -4s; }
@keyframes pg-mark-pair {
  0%, 6%, 50%, 100% { background-size: 0% .45em; }
  20%, 42% { background-size: 100% .45em; }
}
@container (min-width: 26rem) {
  .pg-notebook-prompt { margin-bottom: 1.3rem; padding: 1rem 1.35rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-marker { animation: none; background-size: 100% .45em; }
}

/* The remaining illustrations share paper, ink and moving guide lines. */
.pg-illustration {
  --plate-ink: #12324a;
  --plate-line: #45677c;
  --beam: #087b76;
  --beam-bed: #a2c7c9;
  --beam-blue: #3269ae;
  --beam-blue-bed: #a8bfdc;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.pg-illustration text {
  fill: var(--plate-ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.45px;
}

.pg-illustration .pg-draw-small {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -.2px;
}

.pg-draw-edge, .pg-draw-rule, .pg-draw-thin, .pg-draw-index, .pg-draw-arrow, .pg-draw-connector, .pg-draw-symbol,
.pg-draw-track, .pg-draw-flow, .pg-draw-tick {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-illustration .pg-draw-index { stroke: #6c9ca9; stroke-width: 1; opacity: .48; }
.pg-illustration .pg-draw-tick { stroke: #4f7f89; stroke-width: 1.2; }
.pg-illustration .pg-draw-edge { stroke: #55788b; stroke-width: 1.4; }
.pg-illustration .pg-draw-arrow { stroke: var(--beam); stroke-width: 2; }
.pg-illustration .pg-draw-connector { stroke: #39787d; stroke-width: 2.2; }
.pg-illustration .pg-draw-symbol { stroke: #1c5961; stroke-width: 1.9; }
.pg-illustration .pg-draw-rule { stroke: var(--plate-line); stroke-width: 2.9; }
.pg-illustration .pg-draw-thin { stroke: var(--plate-line); stroke-width: 1.4; }
.pg-illustration .pg-draw-paper { fill: var(--paper); stroke: #69899c; stroke-width: 1.4; stroke-linejoin: round; }
.pg-illustration .pg-draw-glass { fill: var(--glass); stroke: #5b97a6; stroke-width: 1.4; stroke-linejoin: round; }
.pg-illustration .pg-draw-metal { fill: var(--metal); stroke: #386274; stroke-width: 1.35; stroke-linejoin: round; }
.pg-illustration .pg-draw-track { stroke: var(--beam-bed); stroke-width: 2.4; }
.pg-illustration .pg-draw-flow {
  stroke: var(--beam);
  stroke-width: 3;
  stroke-dasharray: 15 85;
  animation: pg-optical-travel 4.8s linear infinite;
}
.pg-illustration .pg-draw-route--secondary .pg-draw-track { stroke: var(--beam-blue-bed); }
.pg-illustration .pg-draw-route--secondary .pg-draw-flow { stroke: var(--beam-blue); animation-delay: -2.4s; }
.pg-illustration--use-cases text,
.pg-illustration--booking-example text { font-size: 21px; }
.pg-illustration .pg-draw-booking-detail { font-size: 18px; }
.pg-illustration--workflow text { font-size: 24px; }
.pg-illustration .pg-lesson-label { fill: #2a5056; font-size: 21px; font-weight: 650; letter-spacing: -.4px; }
.pg-illustration .pg-lesson-value { font-size: 22px; font-weight: 650; }
.pg-illustration .pg-lesson-quote, .pg-illustration .pg-lesson-date {
  fill: #223e49;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.25px;
}
.pg-illustration .pg-lesson-date { font-size: 27px; }
.pg-quote-mark { fill: #91d5c2; animation: pg-pass-quote 6.6s ease-in-out infinite; }
.pg-quote-mark--checked { animation-delay: -4.4s; }
.pg-quote-mark--final { animation-delay: -2.2s; }
.pg-date-mark { fill: #f0cf77; animation: pg-pass-quote 5s ease-in-out infinite; }
@keyframes pg-pass-quote {
  0%, 8%, 47%, 100% { opacity: .28; }
  18%, 34% { opacity: .94; }
}

.pg-illustration .pg-glint { animation: pg-optical-glint 6.2s ease-in-out infinite alternate; }
.pg-illustration .pg-draw-orbit {
  transform-box: view-box;
  transform-origin: 210px 120px;
  animation: pg-orbit 17s linear infinite;
}
@keyframes pg-optical-travel { to { stroke-dashoffset: -100; } }
@keyframes pg-optical-glint { from { opacity: .37; } to { opacity: .9; } }
@keyframes pg-orbit { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pg-illustration .pg-draw-flow, .pg-illustration .pg-glint, .pg-illustration .pg-draw-orbit,
  .pg-quote-mark, .pg-date-mark { animation: none; }

  .pg-illustration--few-shot .pg-lesson-value,
  .pg-illustration--prompt-chaining .pg-lesson-quote,
  .pg-illustration--prompt-repair .pg-lesson-date {
    animation: pg-lesson-ink 16s ease-in-out infinite alternate;
  }
  @keyframes pg-lesson-ink {
    from { fill: #254349; }
    to { fill: #315952; }
  }
}

