/* The Ultimate Guide to Customer Success in HubSpot — online chapters.
   Built by guide-src/build.py. Values mirror the "Panora Guide - Chapter 1" design template. */

:root {
  --ink: #1B1E2E;
  --body: #4A5164;
  --muted: #8A90A2;
  --muted-2: #9AA0B1;
  --line: #EEF0F4;
  --hair: #E8ECF0;
  --accent: #F26545;
  --accent-deep: #E14E32;
  --accent-soft: #FFF4F1;
  --accent-border: #FBD3C8;
  --display: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 66px;
  --bar-h: 52px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: #ffffff; color: var(--body); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-top: var(--nav-h); }
body::before {
  content: ''; position: fixed; inset: 0; opacity: 0.018; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMjU2IDI1NicgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPSc0JyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 200px;
}
::selection { background: #FBD3C8; }
img { max-width: 100%; }

/* ───────── Site nav + footer (copied from the homepage by build.py) ───────── */
.site-chrome, .site-chrome a { font-family: 'Instrument Sans', -apple-system, sans-serif; text-decoration: none; }
.site-chrome a { color: #E86833; }
[data-navlinks] > a:not(:last-child):hover { color: #1A1A18 !important; }
[data-navlinks] > a:last-child:hover { background: #E86833 !important; color: #FFFFFF !important; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(232,104,51,0.25); }
footer.site-chrome a:hover { color: #E86833 !important; }
@media (max-width: 700px) {
  [data-navlinks] { display: none !important; }
  [data-navtoggle] { display: block !important; }
  [data-navpanel="true"] { display: flex !important; }
  [data-nav] { top: 0.7rem !important; left: 0.7rem !important; right: 0.7rem !important; padding: 0.55rem 0 !important; border: 1px solid #E6E3DC !important; border-radius: 16px; background: rgba(255,255,255,0.92) !important; box-shadow: 0 6px 24px rgba(0,0,0,0.07); }
  [data-navinner] { padding: 0 0.5rem 0 1.1rem !important; }
  [data-navinner] > a:first-child > svg { width: 100px; height: 27px; }
  :root { --nav-h: 68px; }
}

/* ───────── Guide chrome ───────── */
.edge { position: fixed; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, #FF7452 0%, #F26545 50%, #DE4A33 100%); z-index: 60; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 28px 0 34px; }

.chapbar { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #E8ECF0; }
.chapbar .wrap { height: var(--bar-h); display: flex; align-items: center; gap: 14px; }
.chapbar .book { flex: 0 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapbar .slash { flex: 0 0 auto; color: #C7CBD6; }
.chapbar .here { flex: 1 1 auto; min-width: 0; font-size: 13.5px; color: #6B7286; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapbar .here b { color: var(--accent); font-weight: 700; }
.chapbar .getpdf { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--accent-border); background: var(--accent-soft); color: var(--accent-deep); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.chapbar .getpdf:hover { background: #FFE9E2; color: var(--accent-deep); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.progress > div { height: 2px; background: var(--accent); width: 0; transition: width 120ms linear; }
@media (max-width: 560px) { .chapbar .book, .chapbar .slash { display: none; } }

.hero { background: #ffffff; border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; }
.hero-inner { max-width: 820px; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.kicker .dot { color: #C7CBD6; }
.kicker .grp { color: var(--muted); }
.hero h1 { margin: 18px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -1.5px; color: var(--ink); text-wrap: balance; }
.hero .sub { margin: 24px 0 0; max-width: 640px; font-size: 20px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.hero .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 32px; font-size: 13px; color: var(--muted); }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 700px) { .hero .wrap { padding-top: 48px; padding-bottom: 44px; } .hero .sub { font-size: 18px; } }

.layout { display: flex; gap: 56px; align-items: flex-start; }

/* Left: book contents */
.toc { flex: 0 0 248px; position: sticky; top: calc(var(--nav-h) + var(--bar-h)); max-height: calc(100vh - var(--nav-h) - var(--bar-h)); overflow-y: auto; padding: 40px 0; }
.rail-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.toc .grp { margin-bottom: 14px; }
.toc .grp-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); padding: 10px 0 6px; }
.toc a.item { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; margin: 0 -10px; border-radius: 6px; text-decoration: none; color: var(--body); font-size: 13.5px; line-height: 1.4; font-weight: 500; }
.toc a.item:hover { background: #F4F6FA; color: var(--body); }
.toc a.item.on { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.toc .n { flex: 0 0 18px; font-size: 12px; font-weight: 700; color: var(--accent); }
.toc .t { flex: 1 1 auto; }
.toc .parts { display: flex; gap: 10px; padding: 0 0 4px 28px; font-size: 11.5px; font-weight: 500; color: var(--muted-2); }
.toc .parts a { color: var(--muted-2); text-decoration: none; }
.toc .parts a:hover { color: var(--ink); }
.toc .parts a.on { color: var(--accent-deep); font-weight: 700; }

/* Right: on this page + capture */
.rail { flex: 0 0 272px; position: sticky; top: calc(var(--nav-h) + var(--bar-h)); padding: 40px 0; display: flex; flex-direction: column; gap: 28px; }
.rail .rail-label { color: var(--muted-2); margin-bottom: 10px; }
.rail .onpage a { display: flex; gap: 10px; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); font-size: 13.5px; line-height: 1.4; color: #6B7286; text-decoration: none; }
.rail .onpage a:hover { color: var(--ink); }
.rail .onpage a.on { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }
.rail .onpage .n { color: var(--accent); font-weight: 700; font-size: 12px; flex: 0 0 auto; min-width: 22px; }
.railform { border: 1px solid var(--hair); border-radius: 14px; padding: 20px; background: #ffffff; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.railform .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.railform .title { font-family: var(--display); font-weight: 800; font-size: 16px; line-height: 1.25; color: var(--ink); }
.railform .small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.railform .fine { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; line-height: 1.45; }
.railform .fine a { color: var(--muted); }
.minicover { flex: 0 0 48px; height: 64px; position: relative; overflow: hidden; border-radius: 3px; background: #161925; box-shadow: 0 4px 10px rgba(20,22,31,0.25); }
.minicover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #F26A4B 0%, #D9482F 100%); clip-path: polygon(40% 0, 100% 0, 100% 100%, 78% 100%); }
.minicover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }

@media (max-width: 1199px) { .toc { display: none; } }
@media (max-width: 939px) { .rail { display: none; } }

/* ───────── Article ───────── */
.article { flex: 1 1 auto; min-width: 0; max-width: 720px; padding: 48px 0 40px; font-size: 17px; line-height: 1.75; color: var(--body); }
.article a { color: var(--accent-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:hover { color: var(--ink); }
.article p { margin: 0 0 18px; text-wrap: pretty; }
.article strong, .article b { color: var(--ink); font-weight: 700; }
.article em { font-style: italic; }
.article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86em; background: #F4F6FA; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink); }
.article > *:last-child, .article section > *:last-child { margin-bottom: 0; }

.article section { border-top: 1px solid var(--line); padding-top: 48px; margin-bottom: 56px; scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 16px); }
.article h2 { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -0.6px; color: var(--ink); text-wrap: balance; }
.article h2 .num { color: var(--accent); }
.article h3 { margin: 36px 0 12px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.3; letter-spacing: -0.3px; color: var(--ink); scroll-margin-top: calc(var(--nav-h) + var(--bar-h) + 16px); }
.article h4 { margin: 28px 0 10px; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); }
.article h2 + h3, .article h2 + p + h3 { margin-top: 28px; }
.article section > h2 + h3 { margin-top: 0; }
@media (max-width: 700px) { .article { font-size: 16.5px; } .article h2 { font-size: 26px; } .article h3 { font-size: 19px; } }

.list-title { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }

/* Lists: ul.dots (orange, used for "in this chapter") and ul.bullets (default), ol.steps */
.article ul, .article ol { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; }
.article li { position: relative; padding-left: 19px; }
.article ul > li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--body); }
.article ul.dots { gap: 8px; margin-bottom: 36px; }
.article ul.dots > li::before { width: 7px; height: 7px; top: 0.68em; background: var(--accent); }
.article li > ul, .article li > ol { margin: 10px 0 0; gap: 6px; }
.article li > ul > li::before { background: transparent; border: 1.5px solid var(--muted); width: 6px; height: 6px; }
.article ol { counter-reset: step; }
.article ol > li { counter-increment: step; padding-left: 34px; }
.article ol > li::before { content: counter(step); position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.article ul.checks > li::before { content: ''; width: 14px; height: 14px; border-radius: 0; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); top: 0.45em; }
.article ul.checks > li { padding-left: 24px; }

/* Click-path breadcrumbs: <div class="crumbs"><span>Settings</span><span>Properties</span></div> */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); margin: 18px 0 28px; }
.crumbs > span { background: var(--line); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.5; padding: 3px 9px; border-radius: 4px; }
.crumbs > i { font-style: normal; color: var(--accent); font-size: 14px; line-height: 1; }

/* Procedure block: orange rule with crumbs / steps / settings inside */
.procedure { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 28px; display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.6; }
.procedure > .crumbs { border-left: 0; padding: 0; margin: 0; }
.procedure > ul, .procedure > ol, .procedure > p { margin: 0; }
.procedure .aside { font-size: 14px; font-style: italic; color: var(--muted); }

/* Key/value settings: <dl class="config"><div><dt>Record type</dt><dd>Deal</dd></div></dl> */
.config { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.55; }
.article > .config, section > .config, .article > dl.config, section > dl.config { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; margin: 18px 0 28px; }
.config > div { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.config dt { color: #6B7286; font-weight: 500; }
.config dt::after { content: ':'; }
.config dd { color: var(--ink); font-weight: 600; margin: 0; }

/* Callouts: <div class="callout tip|note|important|rec|goal|warn"><div class="label">Pro tip</div>…</div> */
.callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; margin: 24px 0 28px; font-size: 15.5px; line-height: 1.6; }
.callout > svg { flex: 0 0 auto; margin-top: 3px; }
.callout > .body { min-width: 0; }
.callout .label { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 4px; }
.callout p { margin: 0 0 10px; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin: 8px 0 10px; gap: 6px; }
.callout strong { color: inherit; }
.callout.tip { background: #FFF4F1; border: 1px solid #FBD3C8; color: #7A3B2E; }
.callout.tip .label { color: #E14E32; }
.callout.tip ul > li::before { background: #E14E32; }
.callout.important { background: #FFF8EC; border: 1px solid #F7DDA8; color: #7A4F0E; }
.callout.important .label { color: #B7791F; }
.callout.important ul > li::before { background: #B7791F; }
.callout.rec { background: #EFF9F3; border: 1px solid #BFE6CF; color: #22643F; }
.callout.rec .label { color: #1F8A4C; }
.callout.rec ul > li::before { background: #1F8A4C; }
.callout.note { background: #F4F6FA; border: 1px solid #E2E6EE; color: var(--body); }
.callout.note .label { color: #6B7286; }
.callout.goal { background: #EEF0FD; border: 1px solid #CDD1F7; color: #3D3A8C; padding: 22px 24px; margin-bottom: 56px; }
.callout.goal .label { color: #4F46E5; margin-bottom: 0; }
.callout.goal .level { font-weight: 700; color: var(--ink); margin-top: 6px; }
.callout.goal ul > li::before { background: #4F46E5; }
.callout.goal p { margin-top: 12px; }

/* Figures */
.fig { margin: 8px 0 28px; }
.fig .frame { background: #F7F8FB; border: 1px solid #E2E6EE; border-radius: 12px; padding: 24px; display: flex; justify-content: center; align-items: center; }
.fig img { display: block; height: auto; max-width: 100%; border-radius: 8px; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.figrow .fig { margin: 0; }
.figrow .fig .frame { height: 100%; }
@media (max-width: 700px) { .fig .frame { padding: 12px; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 8px 0 28px; border-radius: 8px; border: 1px solid var(--hair); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.table-wrap th { background: var(--ink); color: #ffffff; text-align: left; padding: 14px 16px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; vertical-align: bottom; }
.table-wrap td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.table-wrap tbody tr:nth-child(even) { background: #F8F9FB; }
.table-wrap td:first-child { font-weight: 700; color: var(--ink); }
.table-wrap.plain td:first-child { font-weight: 400; color: inherit; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 8px 0 24px; }
.cards > div { padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; font-size: 15px; line-height: 1.5; color: var(--ink); font-weight: 600; }
.optcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.optcards > div { border: 1px solid var(--hair); border-radius: 12px; padding: 20px; font-size: 15px; line-height: 1.55; }
.optcards h4, .stagecards h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.optcards p { margin: 0 0 10px; font-size: 15px; }
.optcards ul { margin: 0; gap: 8px; }
.badge { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #B45309; background: #FEF3C7; padding: 2px 6px; border-radius: 4px; }

/* Stage lists: <div class="stagecards"><div><div class="cap">Example onboarding stages</div><ol class="stages"><li>…</li></ol></div></div> */
.stagecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 28px; }
.stagecards > div { border: 1px solid var(--hair); border-radius: 12px; padding: 22px; }
.cap { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.article ol.stages { counter-reset: none; gap: 0; margin: 0; }
.article ol.stages > li { padding: 8px 0 8px 20px; border-bottom: 1px solid #F1F3F7; font-size: 15px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; line-height: 1.45; }
.article ol.stages > li:last-child { border-bottom: 0; }
.article ol.stages > li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); top: 50%; transform: translateY(-50%); left: 0; line-height: normal; }
.article ol.stages > li.won::before { background: #10B981; }
.article ol.stages > li.won { color: #047857; }
.article ol.stages > li.lost::before { background: #B91C1C; }
.article ol.stages > li.lost { color: #B91C1C; }
.article ol.stages > li small { font-size: 13.5px; font-weight: 400; color: var(--muted); text-align: right; }

/* Quote / example text */
.quote { border-left: 3px solid #C7CBD6; padding: 6px 0 6px 18px; margin: 18px 0 28px; color: var(--ink); font-style: italic; }
.template { background: #F7F8FB; border: 1px solid #E2E6EE; border-radius: 12px; padding: 20px 22px; margin: 18px 0 28px; font-size: 15px; line-height: 1.65; color: var(--ink); white-space: pre-line; }
.template .cap { white-space: normal; }

/* Prev / next */
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 56px 0 0; }
.pager a { display: block; padding: 20px 22px; border: 1px solid var(--hair); border-radius: 12px; text-decoration: none !important; color: var(--body); transition: border-color 150ms; }
.pager a:hover { border-color: #CBD1DC; background: #FAFBFC; color: var(--body); }
.pager a.next { text-align: right; }
.pager a.next:hover { border-color: var(--accent); background: #FFF9F7; }
.pager .dir { font-size: 12px; font-weight: 600; color: var(--muted); }
.pager a.next .dir { color: var(--accent); }
.pager .ttl { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); margin-top: 6px; }
.pager .spacer { display: block; }

/* ───────── Email capture ───────── */
.field { display: block; width: 100%; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid #D5DAE3; background: #ffffff; color: var(--ink); font: 15px var(--sans); outline: none; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242,101,69,0.18); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--accent); color: #ffffff; font: 600 14.5px var(--sans); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent-deep); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.capture-form { display: flex; flex-wrap: wrap; gap: 8px; }
.capture-form .field { flex: 1 1 220px; min-width: 0; }
.railform .capture-form { flex-direction: column; }
.railform .capture-form .field { flex: 0 0 auto; }
.railform .btn { width: 100%; }
.form-error { font-size: 13px; color: #B91C1C; margin-top: 8px; display: none; }
.form-ok { display: none; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: #ECFDF5; color: #047857; font-size: 13.5px; line-height: 1.45; }
.sent .capture-form, .sent .fine, .sent .form-error { display: none !important; }
.sent .form-ok { display: flex; }
.dark .field { border-color: transparent; }
.dark .form-error { color: #FCA5A5; }
.dark .form-ok { background: rgba(16,185,129,0.14); color: #A7F3D0; font-size: 15px; padding: 12px 14px; }

.inline-cta { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(160deg, #1A1D2B 0%, #12141D 100%); color: #ffffff; padding: 32px; margin: 0 0 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.inline-cta .cover { flex: 0 0 104px; height: 140px; position: relative; overflow: hidden; border-radius: 4px; background: #161925; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
.inline-cta .cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #F26A4B 0%, #D9482F 100%); clip-path: polygon(40% 0, 100% 0, 100% 100%, 78% 100%); }
.inline-cta .cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.inline-cta .cover span { position: absolute; left: 10px; top: 58px; font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.05; color: #ffffff; z-index: 1; }
.inline-cta .cover span i { font-style: normal; color: #FF7A5C; }
.inline-cta .copy { flex: 1 1 300px; min-width: 0; }
.inline-cta .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: #FF7A5C; }
.inline-cta .h { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -0.4px; margin: 8px 0 6px; color: #fff; }
.inline-cta p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,0.7); }
@media (max-width: 560px) { .inline-cta { padding: 24px; } .inline-cta .cover { display: none; } }

.getpdf-band { position: relative; overflow: hidden; background: linear-gradient(160deg, #1A1D2B 0%, #12141D 100%); color: #ffffff; margin-top: 48px; scroll-margin-top: calc(var(--nav-h) + var(--bar-h)); }
.getpdf-band .slab { position: absolute; top: 0; bottom: 0; right: 0; width: 38%; background: linear-gradient(180deg, #F26A4B 0%, #D9482F 100%); clip-path: polygon(34% 0, 100% 0, 100% 100%, 70% 100%); opacity: 0.95; }
.getpdf-band .ring { position: absolute; right: 9%; top: 48px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); }
.getpdf-band .wrap { position: relative; padding-top: 80px; padding-bottom: 88px; }
.getpdf-band .inner { max-width: 600px; }
.getpdf-band .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #FF7A5C; }
.getpdf-band h2 { margin: 16px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; text-wrap: balance; color: #fff; }
.getpdf-band p { margin: 18px 0 28px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.72); text-wrap: pretty; }
.getpdf-band .capture-form { max-width: 520px; gap: 10px; }
.getpdf-band .capture-form .field { flex-basis: 240px; }
.getpdf-band .fine { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 14px; }
.getpdf-band .fine a { color: rgba(255,255,255,0.7); }
@media (max-width: 700px) { .getpdf-band .slab, .getpdf-band .ring { display: none; } .getpdf-band .wrap { padding-top: 56px; padding-bottom: 64px; } }

.mobilebar { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px; background: var(--ink); color: #ffffff; box-shadow: 0 10px 30px rgba(20,22,31,0.3); transition: transform 200ms ease, opacity 200ms ease; }
.mobilebar span { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
.mobilebar a { flex: 0 0 auto; padding: 9px 14px; border-radius: 8px; background: var(--accent); color: #ffffff; font-size: 14px; font-weight: 700; text-decoration: none; }
.mobilebar.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (max-width: 939px) { .mobilebar { display: flex; } footer.site-chrome { padding-bottom: 5.5rem !important; } }

@media print {
  .edge, .chapbar, .toc, .rail, .inline-cta, .getpdf-band, .mobilebar, [data-nav], [data-navpanel] { display: none !important; }
  body { padding-top: 0; }
}
.stagecards p { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: -6px 0 12px; }
.article pre.code { background: #1B1E2E; color: #E6E8EF; border-radius: 12px; padding: 18px 20px; margin: 18px 0 28px; overflow-x: auto; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article pre.code code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* Screenshot zoom: thumbnails link to the full-size image; guide.js opens it in a lightbox */
.fig a.zoom { display: block; cursor: zoom-in; border-radius: 8px; }
.fig a.zoom:focus-visible { outline: 2px solid var(--accent, #F26B3A); outline-offset: 3px; }
.fig a.zoom img { transition: box-shadow .15s ease; }
.fig a.zoom:hover img { box-shadow: 0 6px 20px rgba(16,24,40,.14); }
.lightbox { position: fixed; inset: 0; z-index: 2147483000; background: rgba(12,16,24,.86); display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox button { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 40px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.26); }
