/* Two workflow stories, with the complete blueprint and member card between. */
.registry-story-page-content {
  --story-green: #2d6246;
  --story-ink: #202823;
  --story-muted: #68766d;
  --story-line: #d8dfd4;
  --story-paper: #faf8f3;
  width: 100%;
  overflow: clip;
}

.registry-story {
  width: min(calc(100% - 96px), 1440px);
  margin-inline: auto;
  padding-block: 42px 38px;
  scroll-margin-top: 96px;
}
.registry-story + .registry-story { border-top: 1px solid var(--story-line); padding-top: 48px; }
.story-layout { display: grid; grid-template-columns: minmax(0, .71fr) minmax(0, 1.29fr); gap: clamp(24px, 3.2vw, 52px); align-items: center; }
.story-copy-stack { min-width: 0; padding-block: 24px; }
.story-copy { max-width: 475px; }
.registry-story .story-copy :is(h1, h2, h3) {
  margin: 0 0 23px;
  color: var(--story-ink);
  font-family: var(--font, sans-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.1vw, 61px);
  line-height: 1.09;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.registry-story .story-copy :is(h1, h2, h3) em {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
}
.registry-story .story-description { color: #617066; font-size: 18px; line-height: 1.68; margin: 0; max-width: 440px; text-wrap: pretty; }
.registry-story .story-context { margin: 17px 0 0; color: #778078; font-size: 15px; line-height: 1.65; max-width: 425px; text-wrap: pretty; }
.story-association-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; margin-top: 23px; }
.story-association-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--story-green); font-size: 12px; font-weight: 550; }
.story-association-links img { display: block; width: 31px; height: 31px; object-fit: contain; }
.story-association-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Grid overlap reserves the tallest chapter's text space. Visibility and inert
   keep inactive copy unavailable to focus and assistive technology. */
.story-enhanced .story-copy-stack { display: grid; align-items: center; }
.story-enhanced .story-copy { grid-area: 1 / 1; }
.story-enhanced .story-copy[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
html:not(.story-enhanced) .story-copy + .story-copy { margin-top: 42px; }

.story-media { position: relative; min-width: 0; height: clamp(430px, 39vw, 580px); isolation: isolate; }
.story-posters { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .25s ease; }
.story-poster { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; }
.story-poster[hidden] { display: none; }
.story-poster > :is(img, svg) { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-player { position: absolute; z-index: 2; display: block; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.story-media[data-ready="true"] .story-player { opacity: 1; }
.story-media[data-ready="true"] .story-posters { opacity: 0; }
.story-media[data-kind="workflow"] .story-player { inset: 50% 0 auto; height: auto; aspect-ratio: 16 / 9; transform: translateY(-50%); }
.story-media[data-kind="lanyard"] .story-player { width: min(100%, 450px); left: 50%; transform: translateX(-50%); }
.story-media[data-kind="lanyard"] .story-poster > :is(img, svg) { max-width: 450px; }
.story-pause {
  position: absolute; right: 4px; bottom: 6px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #b7c6b69c; border-radius: 50%;
  color: #42624b; background: #fcfbf7e8;
  box-shadow: 0 3px 12px #29463305;
  padding: 0; transition: background .18s ease, border-color .18s ease;
}
.story-pause svg { display: block; width: 17px; height: 17px; }
.story-pause:hover { background: #fffef9; border-color: #6e8b72; }
.story-pause:disabled { opacity: .45; cursor: default; }

.story-navigation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 17px; margin-top: 8px; border-top: 1px solid var(--story-line); }
.story-tabs { display: flex; align-items: stretch; flex-wrap: wrap; gap: 5px; min-width: 0; }
.story-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; padding: 10px 15px; color: #66746a; font-size: 14px; line-height: 1.4; font-weight: 500; transition: color .18s ease, background .18s ease; }
.story-tab[aria-selected="true"] { color: #265b3d; background: #e4eadf; }
.story-tab[aria-selected="true"]::after { content: ''; position: absolute; height: 2px; width: 18px; border-radius: 2px; background: var(--story-green); inset: auto auto 4px 50%; transform: translateX(-50%); }
.story-tab:hover { color: #265b3d; background: #e9ede5; }
.story-arrows { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.story-prev, .story-next { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--story-line); border-radius: 50%; color: var(--story-green); transition: background .18s ease, border-color .18s ease; }
.story-prev:hover, .story-next:hover { background: #e7ecdf; border-color: #b9c9b6; }
.story-prev svg, .story-next svg { width: 18px; height: 18px; }
.story-count { color: #738076; font-size: 13px; line-height: 1; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.registry-story :is(button, a):focus-visible { outline: 2px solid var(--story-green); outline-offset: 4px; }

/* Readable immediately; only the chapter the visitor selected enters. */
.story-copy.is-entering :is(h1, h2, h3) { animation: story-heading-enter .26s cubic-bezier(.2,.6,.3,1) both; }
.story-copy.is-entering :is(h1, h2, h3) em { animation: story-script-enter .3s cubic-bezier(.2,.6,.3,1) both; }
.story-copy.is-entering :is(.story-description, .story-context, .story-association-links) { animation: story-copy-enter .28s ease-out both; }
@keyframes story-heading-enter { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes story-script-enter { from { opacity: .55; transform: translateX(-4px); } to { opacity: 1; transform: translateX(0); } }
@keyframes story-copy-enter { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .registry-story { padding-block: 48px 42px; }
  .story-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .registry-story .story-description { font-size: 19px; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .registry-story { width: calc(100% - 64px); padding-block: 34px 30px; }
  .story-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 20px; }
  .registry-story .story-copy :is(h1, h2, h3) { font-size: clamp(34px, 4.2vw, 46px); }
  .registry-story .story-description { font-size: 16px; line-height: 1.65; }
  .registry-story .story-context { font-size: 14px; }
  .story-media { height: 445px; }
  .story-association-links { gap: 5px 12px; }
  .story-association-links a { font-size: 11px; }
  .story-association-links img { width: 26px; height: 26px; }
  .story-tab { padding-inline: 12px; font-size: 13px; }
}
@media (max-width: 760px) {
  .registry-story { width: calc(100% - 40px); padding-block: 30px 30px; scroll-margin-top: 90px; }
  .registry-story + .registry-story { padding-top: 34px; }
  .story-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .story-copy-stack { padding-block: 0 8px; }
  .story-enhanced .story-copy-stack { align-items: start; }
  .story-copy { max-width: 560px; }
  .registry-story .story-copy :is(h1, h2, h3) { font-size: clamp(36px, 8.8vw, 48px); line-height: 1.08; letter-spacing: -.05em; margin-bottom: 17px; }
  .registry-story .story-description { font-size: 16px; line-height: 1.65; max-width: 560px; }
  .registry-story .story-context { margin-top: 11px; font-size: 14px; line-height: 1.55; max-width: 560px; }
  .story-association-links { gap: 6px 16px; margin-top: 15px; }
  .story-association-links a { font-size: 11px; }
  .story-association-links img { width: 27px; height: 27px; }
  .story-media { width: min(100%, 480px); height: clamp(420px, 116vw, 540px); margin-inline: auto; }
  .story-media[data-kind="workflow"] .story-player { aspect-ratio: 36 / 41; max-height: 100%; }
  .story-media[data-kind="lanyard"] .story-player { width: 100%; }
  .story-pause { bottom: 5px; right: 0; }
  .story-navigation { align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 9px; padding-top: 12px; }
  .story-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .registry-story[data-story="records"] .story-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-tab { padding: 9px 6px; font-size: 13px; line-height: 1.35; text-align: center; }
  .story-arrows { width: 100%; justify-content: flex-end; gap: 10px; }
  .story-count { margin-right: auto; text-align: left; }
}
@media (max-width: 370px) {
  .registry-story { width: calc(100% - 32px); }
  .registry-story .story-copy :is(h1, h2, h3) { font-size: 34px; }
  .story-tab { font-size: 12px; padding-inline: 3px; }
  .story-media { height: 415px; }
  .story-association-links { gap: 5px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .registry-story *, .registry-story *::before, .registry-story *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.story-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.registry-story button{font-family:inherit;cursor:pointer;background-color:transparent;border:0}
.registry-story button.story-tab[aria-selected=true]{background:#e4eadf}
.registry-story button.story-pause{background:#fcfbf7e8;border:1px solid #b7c6b69c}
.registry-story button.story-prev,.registry-story button.story-next{border:1px solid var(--story-line)}
.story-pause[hidden]{display:none}
.story-reduced .registry-story *, .story-reduced .registry-story *::before,.story-reduced .registry-story *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Keep long chapter titles balanced with the reading column. */
@media(min-width:1101px){.registry-story .story-copy[role="tabpanel"] h2{font-size:clamp(40px,3.55vw,54px)}}
@media(max-width:760px){
 .registry-story{display:flex;flex-direction:column}
 .story-navigation{order:1;margin:0 0 24px;padding:0 0 12px;border-top:0;border-bottom:1px solid var(--story-line)}
 .story-layout{order:2}
 .story-announcement{order:3}
}

@media(min-width:761px) and (max-width:960px){
 .story-layout{grid-template-columns:1fr;gap:16px}
 .story-copy{max-width:680px}
 .story-copy-stack{padding:12px 0}
 .registry-story .story-description,.registry-story .story-context{max-width:660px}
 .story-media{height:445px}
 .registry-story .story-copy[role="tabpanel"] h2{font-size:42px}
}
.story-audit-control{position:fixed;bottom:8px;left:8px;z-index:999;padding:9px 12px;border-radius:6px;background:#fff;border:1px solid #bbb;font-size:12px;color:#222}

/* Standalone illustrations retain their own complete narrative and controls. */
.story-visual { min-width: 0; }
.registry-story[data-standalone="true"] { padding-block: 36px; }
.registry-story[data-standalone="true"] .story-navigation { display: none !important; }
@media (min-width: 1101px) { .registry-story[data-standalone="true"] .story-copy h2 { font-size: clamp(40px, 3.55vw, 54px); } }
.registry-story[data-story="blueprint"] .story-media { height: auto; aspect-ratio: 800 / 620; }
.registry-story[data-story="blueprint"] .story-pause { right: 8px; bottom: 8px; }
.registry-story[data-story="blueprint"] .story-copy :is(h2,h3) { font-size: clamp(38px, 3.55vw, 54px); }
.story-blueprint-footer { padding-top: 12px; }
.story-blueprint-caption { min-height: 96px; padding-bottom: 14px; }
.registry-story .story-blueprint-caption h3 { margin: 0 0 6px; color: #294c38; font-family: var(--font, sans-serif); font-size: 20px; font-weight: 550; letter-spacing: -.025em; line-height: 1.3; }
.registry-story .story-blueprint-caption p { margin: 0; color: #78847a; font-size: 15px; line-height: 1.6; max-width: 680px; }
.story-blueprint-scenes { display: flex; flex-wrap: wrap; align-items: stretch; gap: 3px; padding-top: 10px; border-top: 1px solid var(--story-line); }
.registry-story .story-blueprint-scenes button { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 44px; padding: 8px 9px; border-radius: 4px; color: #748176; font-size: 12px; line-height: 1.35; font-weight: 450; transition: color .18s ease, background .18s ease; }
.registry-story .story-blueprint-scenes button:hover { color: var(--story-green); background: #e9ede5; }
.registry-story .story-blueprint-scenes button:is(.is-current,[aria-pressed="true"],[aria-current="true"]) { color: var(--story-green); background: #e0e8da8f; font-weight: 600; }
.story-blueprint-dot { flex: none; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; }
.story-blueprint-scenes button:is(.is-current,[aria-pressed="true"],[aria-current="true"]) .story-blueprint-dot { background: currentColor; }
@media (min-width: 761px) and (max-width: 1100px) {
  .registry-story[data-story="blueprint"] .story-copy :is(h2,h3) { font-size: 40px; }
  .registry-story .story-blueprint-caption h3 { font-size: 18px; }
  .registry-story .story-blueprint-caption p { font-size: 14px; }
}
@media (max-width: 760px) {
  .registry-story[data-standalone="true"] { padding-block: 28px; }
  .registry-story[data-story="blueprint"] .story-copy :is(h2,h3) { font-size: clamp(34px, 8.8vw, 46px); }
  .registry-story[data-story="blueprint"] .story-media { width: min(100%, 400px); height: auto; aspect-ratio: 360 / 640; }
  .story-blueprint-footer { width: min(100%, 480px); margin-inline: auto; padding-top: 8px; }
  .story-blueprint-caption { min-height: 119px; padding-bottom: 12px; }
  .registry-story .story-blueprint-caption h3 { font-size: 19px; }
  .registry-story .story-blueprint-caption p { font-size: 14px; line-height: 1.6; }
  .story-blueprint-scenes { gap: 3px; }
  .registry-story .story-blueprint-scenes button { padding-inline: 8px; font-size: 12px; }
  .registry-story[data-story="people"] .story-tabs,
  .registry-story[data-story="records"] .story-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html.story-reduced{scroll-behavior:auto}
.story-blueprint-caption{display:grid}
.story-blueprint-caption>div{grid-area:1/1}
.story-blueprint-caption-size{visibility:hidden;pointer-events:none}
