/* The supplied founder story is typeset as one continuous, readable article. */
.founder-content{background:#fcfaf5}
.origin-section > .story-section-heading{margin-inline:auto}
.founder-intro{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  align-items:center;
  gap:28px;
  max-width:760px;
  margin:0 auto 28px;
  padding-bottom:28px;
  border-bottom:1px solid var(--line);
}
.founder-intro .founder-kicker{
  margin:0 0 8px;
  color:var(--wine);
  font-size:.82rem;
  font-weight:800;
  letter-spacing:.09em;
}
.founder-intro h2{margin:0;font-size:clamp(1.8rem,3.6vw,2.8rem);line-height:1.13;letter-spacing:-.04em}
.founder-intro .story-portrait{width:260px;max-width:100%;padding:7px;order:0;border-radius:18px;box-shadow:0 10px 24px rgba(27,47,39,.1)}
.founder-intro .story-portrait img{height:auto;aspect-ratio:auto;border-radius:11px;object-fit:contain}
.founder-story{max-width:760px;margin:auto;overflow-wrap:break-word}
.founder-story p,.founder-story li{font-size:clamp(1rem,1.2vw,1.1rem);line-height:1.75;font-weight:450;color:var(--ink-soft)}
.founder-story p{margin:0}
.founder-story p + p{margin-top:16px}
.founder-story h3{margin:42px 0 18px;padding-top:26px;border-top:1px solid var(--line);color:var(--forest);font:750 clamp(1.35rem,2.3vw,1.8rem)/1.25 var(--sans);letter-spacing:-.035em}
.founder-story h4{margin:30px 0 14px;color:var(--forest);font:750 clamp(1.1rem,1.7vw,1.25rem)/1.35 var(--sans);letter-spacing:-.02em}
.founder-story ul{margin:16px 0 24px;padding-left:24px}
.founder-story li + li{margin-top:9px}
.founder-story strong{font-weight:800;color:var(--forest)}
.founder-story blockquote{margin:24px 0;padding:18px 22px;border-left:3px solid var(--gold-deep);background:#f5ecda;border-radius:0 12px 12px 0}
.founder-story a{color:var(--wine);text-decoration-thickness:1px;text-underline-offset:4px}
.founder-story a:hover{text-decoration-thickness:2px}
.founder-story a:focus-visible{outline:3px solid var(--wine);outline-offset:4px}

/* Keep all section destinations in the existing bottom dock. On narrow screens
   the labelled strip scrolls horizontally instead of taking over the page. */
body.story-dock-visible .intro{padding-bottom:calc(var(--story-dock-height,140px) + 44px)}
.story-dock{bottom:max(10px,env(safe-area-inset-bottom))}
.story-dock-shell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;padding:12px 16px}
.story-dock-sections{
  display:flex;
  grid-column:1/-1;
  gap:7px;
  min-width:0;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#a79365 transparent;
  padding:2px 2px 10px;
  border-bottom:1px solid rgba(238,219,161,.22);
}
.story-dock-section{
  flex:none;
  min-height:40px;
  padding:9px 12px;
  border:1px solid rgba(238,219,161,.34);
  border-radius:9px;
  background:rgba(255,253,248,.05);
  color:#fffaf0;
  font:700 .82rem/1.2 var(--sans);
  white-space:nowrap;
}
.story-dock-section:hover{background:rgba(255,253,248,.14);border-color:#dfc788}
.story-dock-section[aria-current="location"]{background:#f1dfb7;border-color:#f1dfb7;color:#183c31}
.story-dock-section:focus-visible{outline:3px solid #fff5cf;outline-offset:-3px}
.story-nav .story-nav-button[aria-current="location"]{border-color:var(--forest);box-shadow:inset 0 0 0 1px var(--forest)}
.story-dock-path{font-size:.92rem}
.story-dock-button:disabled{opacity:.4;cursor:default;transform:none;box-shadow:none}
.story-dock .story-dock-consultation{
  gap:10px;
  padding:5px 16px 5px 6px;
  border:1px solid #ffe1a0;
  border-radius:12px;
  background:#efc760;
  box-shadow:0 3px 0 #987223,0 4px 12px #0002;
  color:#163c30;
  min-height:48px;
}
.story-dock .story-dock-consultation:hover{background:#ffdc82;box-shadow:0 3px 0 #987223,0 6px 16px #0003}
.story-dock-target{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:#173e33;color:#f6d784}
.story-dock-target svg{display:block;width:28px;height:28px}
.story-card,.dream-story,.framework-card{scroll-margin-bottom:calc(var(--story-dock-height,140px) + 30px)}
@media(max-width:980px){
  .story-dock-shell{grid-template-columns:minmax(0,1fr);gap:8px}
  .story-dock-actions{justify-content:flex-end}
  .story-dock-path{font-size:.84rem}
}
@media(max-width:760px){
  .founder-intro{grid-template-columns:minmax(0,1fr);gap:22px;padding-bottom:22px;margin-bottom:22px}
  .founder-intro .story-portrait{width:min(100%,260px);padding:6px;justify-self:center}
  .founder-intro h2{font-size:1.7rem}
  .founder-story p,.founder-story li{font-size:1rem;line-height:1.7}
  .founder-story blockquote{padding:16px}
  .story-dock-shell{gap:8px;width:calc(100% - 16px);padding:9px;border-radius:14px}
  .story-dock-sections{gap:6px;padding-bottom:8px}
  .story-dock-section{min-height:40px;font-size:.78rem;padding:9px 10px}
  .story-dock-path{padding:0 2px;font-size:.78rem}
  .story-dock-actions{grid-template-columns:auto auto minmax(0,1fr);gap:6px}
  .story-dock-button{font-size:.73rem;padding:0 9px;min-height:44px}
  .story-dock .story-dock-consultation{grid-column:auto;font-size:.76rem;min-height:44px;gap:7px;padding:5px 9px 5px 5px;line-height:1.15}
  .story-dock-target{width:29px;height:29px}
  .story-dock-target svg{width:25px;height:25px}
}
@media(max-width:370px){
  .story-dock-button{padding:0 6px;font-size:.7rem}
  .story-dock .story-dock-consultation{gap:5px;padding-right:6px;font-size:.73rem}
}
@media(prefers-reduced-motion:reduce){
  .story-dock-button,.story-dock-consultation{transition:none}
  .story-dock-button:hover,.story-dock-consultation:hover{transform:none}
}

/* In-article wayfinding stays available throughout the founder story. */
#o-mne{overflow:clip}
.stage-nav{position:sticky;top:8px;z-index:5;display:flex;gap:6px;flex-wrap:wrap;margin:26px 0 0;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fcfaf5;box-shadow:0 4px 16px #173e3314}
.founder-story .stage-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:8px;text-decoration:none;font-size:13px;font-weight:700;color:var(--forest)}
.founder-story .stage-nav a:hover,.founder-story .stage-nav a[aria-current="location"]{background:#eee0bc}
.stage-nav a:focus-visible,.back-to-top:focus-visible{outline:3px solid var(--wine);outline-offset:3px}
.founder-story h3[id],#prehlad-etap{scroll-margin-top:125px}
.back-to-top{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:35;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #d8bd80;border-radius:50%;background:#f2d68d;color:#173e33;font:700 26px/1 var(--sans);box-shadow:0 4px 14px #173e3326;cursor:pointer}
.back-to-top[hidden],body.roadmap-open .back-to-top{display:none}
body.story-dock-visible .back-to-top{bottom:calc(var(--story-dock-height,140px) + 24px)}
@media(max-width:620px){.stage-nav{gap:3px;padding:6px}.founder-story .stage-nav a{padding:7px 9px;font-size:12px}.back-to-top{right:14px}}

/* Navigation back to the beginning stays in the document flow. */
.reading-return-wrap { display:flex; justify-content:center; max-width:760px; margin:26px auto 0; padding-top:18px; border-top:1px solid #bfa47755; }
.reading-return { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 18px; border:1px solid #bfa477; border-radius:8px; color:var(--gold); background:transparent; text-align:center; text-decoration:none; font:500 14px/1.6 var(--sans); }
.story-card .reading-return { color:#684524; background:#fcf4df; }
.reading-return:hover { text-decoration:underline; text-underline-offset:4px; }
.reading-return:focus-visible { outline:3px solid #b58b44; outline-offset:4px; }
