/* Priority chapters on the final strategy page. */
.srw-chapters {
  font-size: var(--sr-body);
  line-height: 1.55;
}
.srw-chapters .wide {
  width: min(calc(100% - 2 * var(--gutter)), var(--wide));
  margin-inline: auto;
}
.srw-chapters h2 { text-wrap: balance; }

.srw-chapters .chapter-cover {
  --chapter-rate: .19;
  --chapter-entry-window: min(45vh, 27vw, 30rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 50vw, 735px);
  background: #07172c;
}
@media (min-width: 96rem) {
  .srw-chapters .chapter-cover {
    min-height: max(735px, min(38vw, 73vh, 72rem));
  }
}
.srw-chapters .chapter-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.srw-chapters .feature-picture,
.srw-chapters .feature-picture img {
  display: block;
  width: 100%;
  height: 100%;
}
.srw-chapters .feature-picture img {
  object-fit: cover;
  object-position: 50% var(--chapter-focus-y, 0%);
}
.srw-chapters .chapter-cover.grow { --srw-photo-origin: 64% 10%; }
/* Keep the player's head and the raised Saltire in frame as these photos enter. */
.srw-chapters .chapter-cover.excel,
.srw-chapters .chapter-cover.inspire {
  --chapter-entry-window: min(45vh, 15vw, 13rem);
  --srw-photo-origin: 54% 0%;
}
.srw-chapters .chapter-cover.sustain {
  /* The presenter's head is close to the top edge of the photograph. */
  --chapter-entry-window: min(45vh, 8vw, 8rem);
  --srw-photo-origin: 57% 0%;
}
@media (max-width: 700px) {
  .srw-chapters .chapter-cover.sustain { --srw-photo-origin: 80% 0%; }
}
.srw-chapters .chapter-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #04152cdb, #06182b3a 50%, #091c2905 80%),
              linear-gradient(90deg, #071c3066, transparent 65%);
}
.srw-chapters .chapter-cover-words { padding-block: var(--space-2xl); }
.srw-chapters .priority-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: var(--space-m);
}
.srw-chapters .chapter-cover h2 {
  font-size: var(--sr-step-12);
  line-height: .99;
}
.srw-chapters .chapter-cover h2 strong { display: block; font-weight: inherit; }
.srw-chapters .chapter-cover h2 span { display: block; font-size: .63em; }

.srw-chapters .chapter-actions { padding-block: var(--space-3xl); }
.srw-chapters .chapter-actions,
.srw-chapters .action-plans { background-color: #092647; }
.srw-chapters .action-title { max-width: 58rem; margin-bottom: var(--space-xl); }
.srw-chapters .action-title .eyebrow {
  width: fit-content;
  margin-bottom: var(--space-s);
  padding: var(--space-2xs) var(--space-s);
  border-radius: 8px;
  background-color: var(--priority-accent);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
}
.srw-chapters .action-title h2 { font-size: var(--sr-step-6); line-height: 1.08; }
.srw-chapters .action-details {
  scroll-margin-top: calc(var(--srw-host-header-height, 0px) + var(--nav-h) + .75rem);
}
.srw-chapters .action-details + .action-details { border-top: 1px solid var(--srw-border-color); }
.srw-chapters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  padding-block: var(--space-m);
  list-style: none;
  cursor: pointer;
  font: 700 var(--sr-step-4)/1.15 Nohemi, Arial, sans-serif;
  letter-spacing: var(--srw-display-tracking);
}
.srw-chapters summary::-webkit-details-marker { display: none; }
.srw-chapters summary:focus-visible { outline: 3px solid #8dd3ff; outline-offset: -3px; }
.srw-chapters summary .sentence { display: block; text-transform: lowercase; }
.srw-accordion-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--priority-accent);
  color: var(--ink);
}
.srw-accordion-icon::before, .srw-accordion-icon::after {
  content: "";
  grid-area: 1 / 1;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.srw-accordion-icon::after { transform: rotate(90deg); }
.srw-chapters details[open] > summary { color: var(--priority-accent); }
.srw-chapters details[open] > summary .srw-accordion-icon::after { display: none; }
.srw-chapters .action-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-2xl);
  padding: 0 var(--space-xl) var(--space-l) 0;
}
.srw-chapters .action-body h4 {
  margin: 0 0 var(--space-s);
  color: var(--mist);
  font: 700 .81rem/1.3 "Mona Sans", Arial, sans-serif;
}
.srw-chapters .outcome-word p { font-size: var(--sr-step-2); font-weight: 600; line-height: 1.4; }
.srw-chapters .action-words ul { margin: 0; padding-inline-start: 1.02em; color: var(--srw-prose-color); }
.srw-chapters .action-words li::marker { color: var(--priority-accent); }
.srw-chapters .action-words li + li { margin-top: .64em; }

@media (min-width: 48rem) {
  .srw-chapters .action-details:first-child > summary { padding-block-start: 0; }
  .srw-chapters .action-details:last-child:not([open]) > summary,
  .srw-chapters .action-details:last-child .action-body { padding-block-end: 0; }
}
@media (max-width: 47.99rem) {
  .srw-chapters .chapter-cover {
    --chapter-rate: .16;
    --chapter-entry-window: min(25vh, 13rem);
    min-height: clamp(385px, 83vw, 540px);
  }
  .srw-chapters .chapter-cover-words { padding-block: var(--space-l); }
  .srw-chapters .chapter-actions { padding-block: var(--space-2xl); }
  .srw-chapters .action-body { grid-template-columns: 1fr; gap: var(--space-m); padding-right: 0; }
}

/* Limit the initial crop. Once the header reaches the top, further motion can
   use the part of the photograph that has already passed above the viewport. */
@media (prefers-reduced-motion: no-preference) {
  .srw-chapters .chapter-photo .feature-picture {
    height: calc(100% + var(--chapter-entry-window) * var(--chapter-rate));
  }
  @supports (view-timeline-inset: 0 50%) and (view-timeline-name: --srw-chapter) and (animation-timeline: view()) {
    .srw-chapters .chapter-cover {
      view-timeline-name: --srw-chapter;
      view-timeline-inset: 0 calc(100% - var(--chapter-entry-window));
    }
    .srw-chapters .chapter-photo {
      animation: srw-chapter-pan 1s linear both;
      animation-timeline: --srw-chapter;
    }
  }
}
@keyframes srw-chapter-pan {
  from { transform: translateY(calc(-1 * var(--chapter-entry-window) * var(--chapter-rate))); }
  to { transform: translateY(calc(100% * var(--chapter-rate))); }
}
