/* The walkthrough is one short film. Its controls stay in place as the policy moves. */
#one-system .system-layout { width: min(1160px,calc(100% - 2 * var(--site-pad))); padding-block: clamp(16px,4svh,54px); }
#one-system .system-descriptor { margin-block: 10px clamp(18px,3svh,32px); }
#policy-story {
  --motion-state: paused;
  --chapter-fill: 0%;
  color: #162b46;
  background: #f4f6f8;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 14px 48px -35px #31465c;
  isolation: isolate;
}
#policy-story [hidden] { display:none !important; }
.story-stage {
  display:grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: stretch;
  background: linear-gradient(116deg,#fafbfc 0%,#f2f4f7 35%,#e2e7ec 73%,#cdd7e0 100%);
  overflow:hidden;
}
.story-caption {
  display:grid;
  grid-template-areas:"subject" "beat";
  align-self:center;
  padding: 24px 4% 24px clamp(25px,3.7vw,58px);
  position:relative;
  z-index:1;
}
.story-subject {
  grid-area:subject;
  margin:0 0 clamp(14px,2.3vh,24px);
  font:600 clamp(12px,1vw,15px)/1.3 var(--site-font);
  color:#43596c;
  letter-spacing:.005em;
}
/* Size the caption to its longest chapter, keeping the set still between cuts. */
.story-beat { grid-area:beat; }
#policy-story .story-beat[hidden] { display:block !important; visibility:hidden; pointer-events:none; }
.story-beat:not([hidden]) { animation: story-enter .26s ease-out both; animation-play-state:var(--motion-state, running); }
#policy-story.story-static .story-beat { animation:none; }
.story-beat h3 {
  font:600 clamp(35px,3.35vw,52px)/1.04 var(--site-display);
  letter-spacing:-.038em;
  text-wrap:balance;
  margin:0;
  color:#142b46;
}
.story-beat p { max-width:34ch; margin:16px 0 0; font:400 clamp(15px,1.23vw,18px)/1.49 var(--site-font); letter-spacing:-.013em; color:#405367; text-wrap:pretty; }
.story-art {
  position:relative;
  container-type:size;
  min-width:0;
  height:clamp(260px,47svh,430px);
  overflow:hidden;
}
.story-controls {
  display:flex; align-items:center; gap:clamp(12px,2vw,28px);
  padding:12px clamp(16px,2.5vw,34px);
  background:#fafbfc;
}
#policy-story button { font-family:var(--site-font); cursor:pointer; -webkit-tap-highlight-color:transparent; }
#policy-story button:focus-visible { outline:2px solid #365d87; outline-offset:2px; }
.story-play, .story-skip button {
  width:42px; height:42px; flex:0 0 auto;
  display:grid; place-items:center; border:none; border-radius:50%; padding:0;
}
.story-play { background:#142f50; color:#fff; }
.story-play:hover { background:#274769; }
.story-play svg, .story-play span, .story-skip svg { display:block; width:19px; height:19px; }
.story-chapters { flex:1; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap: clamp(4px,1vw,13px); min-width:0; }
.story-chapter {
  padding:6px 1px; min-height:44px;
  display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:7px;
  border:0; background:transparent; text-align:left;
  font-size:clamp(11px,.9vw,13px); font-weight:500; line-height:1.2; color:#4b6074;
}
.chapter-track { position:relative; height:3px; border-radius:2px; background:#d7dee4; overflow:hidden; }
.chapter-track::after { position:absolute; content:""; inset:0; width:0; background:#47627d; border-radius:inherit; }
.story-chapter.is-past .chapter-track::after { width:100%; }
.story-chapter[aria-current="step"] { color:#102e50; font-weight:700; }
.story-chapter[aria-current="step"] .chapter-track { background:#aab7c5; }
.story-chapter[aria-current="step"] .chapter-track::after { width:var(--chapter-fill); background:#142f50; }
.story-chapter:hover { color:#0e2d55; }
.story-skip { display:flex; gap:2px; }
.story-skip button { background:transparent; color:#243d57; }
.story-skip button:hover:enabled { background:#e6ebf0; }
.story-skip button:disabled { opacity:.32; cursor:default !important; }
.story-transcript { margin:0; padding:18px 35px; background:white; line-height:1.7; }
@keyframes story-enter { from { transform:translateY(3px); } to { transform:none; } }

@media (max-width:760px) and (min-height:460px) {
  #one-system .system-layout { width:min(100% - 30px,560px); }
  .story-stage { grid-template-columns:1fr; }
  .story-caption { padding:18px 23px 10px; align-self:stretch; }
  .story-subject { font-size:12px; margin-bottom:7px; }
  .story-beat h3 { font-size:clamp(26px,6.8vw,37px); }
  .story-beat p { font-size:14px; line-height:1.37; max-width:46ch; margin-top:6px; min-height:2.74em; }
  .story-art { height:clamp(200px,min(40svh,78vw),345px); }
  .story-controls { gap:12px; padding:5px 13px; }
  .story-chapters { gap:4px; }
  .story-chapter { font-size:clamp(10px,2.6vw,11px); }
  .story-play { width:38px; height:38px; }
  .story-skip { display:none; }
}
@media (max-height:600px) and (min-width:761px) {
  #one-system .system-layout { padding-block:10px; }
  #one-system .system-descriptor { margin-block:4px 10px; }
  .story-art { height:clamp(182px,54svh,275px); }
  .story-controls { padding-block:4px; }
}
@media (max-height:459px) and (orientation:landscape) {
  #one-system .system-layout { width:min(100% - 28px,980px); padding-block:5px; }
  #one-system .system-layout > h2 { font-size:clamp(22px,5.7svh,31px); }
  #one-system .system-descriptor { font-size:12px; margin:3px 0 7px; line-height:1.25; }
  .story-art { height:clamp(140px,calc(100svh - 120px),290px); }
  .story-caption { padding:8px 3% 8px 18px; }
  .story-subject { margin:0 0 6px; font-size:11px; }
  .story-beat h3 { font-size:clamp(23px,3.5vw,32px); }
  .story-beat p { font-size:13px; line-height:1.32; margin-top:7px; }
  .story-controls { padding:1px 13px; gap:12px; }
  .story-play { height:33px; width:33px; }
  .story-skip { display:none; }
  .story-chapter { min-height:37px; font-size:10px; gap:4px; }
}
@media (max-width:370px) and (orientation:portrait) {
  #one-system .system-layout { padding-block:10px; width:calc(100% - 24px); }
  #one-system .system-descriptor { margin:6px 0 12px; font-size:14px; }
  .story-caption { padding:14px 15px 7px; }
  .story-art { height:clamp(168px,37svh,225px); }
  .story-controls { gap:8px; padding-inline:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .story-beat:not([hidden]) { animation:none; }
}
.review-reminder {
  display:flex; align-items:center; gap:.48em; margin-top:clamp(6px,1.2vw,16px);
  color:#41566d; font:500 clamp(12px,1.05vw,15px)/1.25 var(--site-font);
}
.review-reminder svg { flex:none; }
.review-reminder-state { display:grid; }
.review-reminder-state > span { grid-area:1/1; }
.renewal-confirmed { opacity:0; }
#policy-story[data-step="1"]:not(.story-static) .renewal-choice { animation:renewal-choice .22s 4.94s both; }
#policy-story[data-step="1"]:not(.story-static) .renewal-confirmed { animation:renewal-confirmed .22s 4.94s both; }
#policy-story .review-reminder-state > span { animation-play-state:var(--motion-state,running) !important; }
@keyframes renewal-choice { from {opacity:1;} to {opacity:0;} }
@keyframes renewal-confirmed { from {opacity:0;} to {opacity:1;} }
.share-scope {
  display:block; max-width:32ch; text-wrap:pretty; margin-top:clamp(6px,1.2vw,16px);
  color:#41566d; font:500 clamp(12px,1.05vw,15px)/1.25 var(--site-font);
}

/* Introduce the optional reminder when the corresponding app prompt appears. */
#policy-story[data-step="1"]:not(.story-static) .review-reminder {
  animation:show-reminder-offer .2s 3.18s ease-out both;
  animation-play-state:var(--motion-state,running);
}
@keyframes show-reminder-offer { from {opacity:0;} to {opacity:1;} }

#policy-story[data-step="0"]:not(.story-static) [data-beat="0"] h3 {
  animation:leave-capture-title .13s .87s ease-in both;
  animation-play-state:var(--motion-state,running);
}
#policy-story.review-entry[data-step="1"]:not(.story-static) [data-beat="1"] h3 {
  animation:enter-review-title .18s ease-out both;
  animation-play-state:var(--motion-state,running);
}
@keyframes leave-capture-title { from {opacity:1;} to {opacity:0;} }
@keyframes enter-review-title { from {opacity:0;} to {opacity:1;} }

@media (max-width:760px) {
  .story-chapters {grid-template-columns:1fr .98fr .91fr 1.25fr .81fr .65fr;}
}
