/* Votrix — long-form article layout: question navigator + prose components.
   Used by /solutions and /guides articles built by content-build/build.py. */
/* base prose (same as blog posts) */
:root { --cream:#f0ece6; --green-pale:#d2eadb; --green-bg:#eef6f1; --border:#e4dfd8; }
.badge-green { background:var(--green-bg); color:var(--green); border:1px solid var(--green-pale); font-size:.7rem; font-weight:600; padding:.2rem .7rem; border-radius:99px; letter-spacing:.02em; }
    .reveal { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
    .reveal.visible { opacity:1; transform:none; }
    .prose-v h2 { font-family:'Playfair Display',Georgia,serif; font-style:italic; font-weight:700; font-size:1.9rem; color:#111827; margin:3rem 0 1rem; line-height:1.25; }
    .prose-v h3 { font-weight:600; font-size:1.15rem; color:#1a1a1a; margin:2rem 0 .6rem; }
    .prose-v p { color:#4b5563; line-height:1.75; margin-bottom:1rem; font-size:.975rem; }
    .prose-v a { color:var(--green); font-weight:500; text-decoration:underline; text-decoration-color:var(--green-pale); text-underline-offset:3px; }
    .prose-v a:hover { text-decoration-color:var(--green); }
    .prose-v ul, .prose-v ol { color:#4b5563; line-height:1.75; margin:0 0 1rem 1.25rem; font-size:.975rem; }
    .prose-v ul { list-style:disc; } .prose-v ol { list-style:decimal; }
    .prose-v li { margin-bottom:.4rem; }
    .prose-v strong { color:#1a1a1a; font-weight:600; }
    table.data { width:100%; border-collapse:collapse; margin:1.25rem 0 1.75rem; background:#fff; font-size:.85rem; }
    table.data th { background:var(--green); color:#fff; text-align:left; padding:.6rem .8rem; font-weight:600; }
    table.data td { padding:.6rem .8rem; border-bottom:1px solid var(--border); color:#4b5563; vertical-align:top; }
    table.data tr:nth-child(even) td { background:#faf8f4; }
    .callout { background:var(--green-bg); border-left:4px solid var(--green); border-radius:0 .75rem .75rem 0; padding:1rem 1.25rem; margin:1.5rem 0; }
    .callout p { margin:0; color:#234a36; font-size:.925rem; }

/* layout */
body .post-hero { padding-bottom: 8px; }
    body .post-grid {
      max-width: 1200px; margin: 0 auto; padding: 0 32px;
      display: grid; grid-template-columns: 264px minmax(0, 720px); column-gap: 72px; justify-content: center;
    }
    body .post-hero .post-grid > .hero-main, body .post-body .post-grid > article { grid-column: 2; }
    body .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--muted); }
    body .meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
    body .dek { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; max-width: 640px; }
    body .cover { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 20px; margin: 36px 0 8px; box-shadow: 0 30px 60px -36px rgba(27,38,32,.45); }

    /* ── Question navigator (desktop rail) ── */
    body .qrail { grid-column: 1; grid-row: 1; }
    body .qnav { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 4px 4px 24px 0; scrollbar-width: thin; }
    body .qnav-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
    body .qnav-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
    body .qnav-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
    body .qnav-bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .15s linear; }
    body .qlist, body .qsub { list-style: none; margin: 0; padding: 0; }
    body .qlist > li { position: relative; }
    body .qlink {
      display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 9px 10px 9px 12px;
      border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--muted);
      transition: background .2s, color .2s;
    }
    body .qlink::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
    body .qlink:hover { color: var(--ink); background: rgba(27,38,32,.04); }
    body .qlink .qn { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; transition: color .2s; }
    body .qlist > li.done > .qlink .qn { color: var(--green); }
    body .qlist > li.on > .qlink { color: var(--ink); font-weight: 500; background: var(--card); }
    body .qlist > li.on > .qlink::before { background: var(--green); }
    body .qlist > li.on > .qlink .qn { color: var(--green); }
    body .qsub-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
    body .qsub-wrap > .qsub { overflow: hidden; }
    body .qlist > li.on > .qsub-wrap, body .qlist > li.peek > .qsub-wrap { grid-template-rows: 1fr; }
    body .qsub { margin: 2px 0 6px 38px; border-left: 1px solid var(--line); }
    body .qsub a { display: block; padding: 5px 10px 5px 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
    body .qsub a:hover { color: var(--ink); }
    body .qsub a.on { color: var(--green); border-left-color: var(--green); }
    body .qnav-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
    body .qnav-top { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); display: inline-flex; gap: 6px; align-items: center; }
    body .qnav-top:hover { color: var(--ink); }
    body .ask-card { display: flex; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, transform .3s var(--ease); }
    body .ask-card:hover { border-color: var(--green); transform: translateY(-2px); }
    body .ask-card img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center top; flex: none; }
    body .ask-card b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
    body .ask-card span { font-size: 12px; color: var(--muted); }

    /* ── Mobile question bar (hidden on desktop) ── */
    body .qbar { display: none; }

    /* ── Article components ── */
    body .prose-v h2, body .prose-v h3 { scroll-margin-top: 100px; }
    body .prose-v > p:first-of-type { font-size: 19px; line-height: 1.7; color: var(--ink); }
    body .prose-v h2 { margin-top: 4rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
    body .prose-v h2 .h-q { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
    body .prose-v figure { margin: 2.4rem 0; }
    body .prose-v figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; }
    body .prose-v figcaption { font-size: 13px; color: var(--faint); margin-top: 10px; }
    body .prose-v code { font-family: var(--mono); font-size: .86em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; color: var(--ink); }

    body .answer { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 0 0 2rem; }
    body .answer .label { margin-bottom: 8px; }
    body .answer p { margin: 0 !important; color: var(--ink) !important; }

    body .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 1.6rem 0 1.8rem; }
    body .stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 18px; display: flex; flex-direction: column; }
    body .stat .v { font-family: var(--serif); font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--green); }
    body .stat .v small { font-size: 22px; color: var(--muted); letter-spacing: -.01em; }
    body .stat .k { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 10px 0 12px; }
    body .stat .src { margin-top: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--faint); }
    body .prose-v .stat .src a { color: var(--faint); font-weight: 400; text-decoration-color: var(--line-2); }

    body .flow { list-style: none !important; margin: 1.6rem 0 2rem !important; padding: 0; counter-reset: flow; }
    body .flow li { position: relative; padding: 0 0 22px 52px; margin: 0; counter-increment: flow; }
    body .flow li::before { content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--night); color: var(--paper); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
    body .flow li::after { content: ''; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 1px; background: var(--line-2); }
    body .flow li:last-child { padding-bottom: 0; }
    body .flow li:last-child::after { display: none; }
    body .flow li b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; padding-top: 4px; }

    body .levers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.4rem 0; }
    body .lever { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
    body .lever .label { margin-bottom: 10px; }
    body .lever p { font-size: 15px !important; margin: 0 !important; line-height: 1.65 !important; }

    body .prose-v h3.tactic { display: flex; gap: 14px; align-items: baseline; font-size: 21px; margin-top: 2.8rem; }
    body .prose-v h3.tactic .n { font-family: var(--mono); font-size: 12px; color: var(--green); background: var(--green-soft); border-radius: 8px; padding: 4px 8px; flex: none; position: relative; top: -2px; }

    body .example { margin: 1.4rem 0 1.6rem; background: var(--night); color: var(--paper); border-radius: 18px; padding: 22px 24px; }
    body .example .label { color: rgba(242,237,228,.6); margin-bottom: 10px; }
    body .example .label::before { background: var(--mint); }
    body .example p { color: var(--paper) !important; margin: 0 !important; font-size: 16px !important; }
    body .example strong { color: #fff !important; }

    body .nolist { list-style: none !important; margin-left: 0 !important; padding: 0; }
    body .nolist li { position: relative; padding-left: 34px; margin-bottom: .9rem; }
    body .nolist li::before { content: ''; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 6px; background: #f4e3dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0452a' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }

    body .numsteps { list-style: none !important; margin: 1.2rem 0 1.6rem !important; padding: 0; display: grid; gap: 10px; }
    body .numsteps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0; }
    body .numsteps .n { font-family: var(--mono); font-size: 12px; color: var(--green); border: 1px solid var(--line-2); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; margin-top: 2px; }

    body .team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 1.4rem 0 1.6rem; }
    body .mate { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
    body .mate.lead { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
    body .mate img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center top; margin: 0 auto 8px; }
    body .mate b { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
    body .mate span { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); }

    body .weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.4rem 0 1.4rem; }
    body .week { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
    body .week .label { margin-bottom: 6px; }
    body .week h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.015em; margin: 0 0 8px; color: var(--ink); }
    body .week p { font-size: 15px !important; line-height: 1.6 !important; margin: 0 !important; }

    body .prose-v .faq { margin: 1.2rem 0 1rem; }
    body .prose-v .faq-q { font-size: 17px; padding: 20px 0; }
    body .prose-v .faq-a p { padding-right: 48px; font-size: 16px; color: var(--ink-2); }
    body .prose-v .faq-item { scroll-margin-top: 110px; }

    body .endcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; margin-top: 3.5rem; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
    body .endcard img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center top; }
    body .endcard h3 { margin: 0 0 6px !important; font-family: var(--serif) !important; font-weight: 400 !important; font-size: 26px !important; letter-spacing: -.015em; }
    body .endcard p { margin: 0 0 16px !important; font-size: 15px !important; color: var(--muted) !important; }
    body .prose-v .endcard a.btn { color: var(--paper); text-decoration: none; }
    body .prose-v .endcard a.btn-ghost { color: var(--ink); }
    body .endcard .acts { display: flex; flex-wrap: wrap; gap: 8px; }

    body .related { max-width: 1200px; margin: 0 auto; padding: 72px 32px 24px; }
    body .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
    body .related a.card { overflow: hidden; display: block; }
    body .related a.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
    body .related a.card div { padding: 18px 20px 22px; }
    body .related a.card h3 { margin: 8px 0 0; }

    /* ── Responsive ── */
    @media (max-width: 1080px) {
      body .post-grid { grid-template-columns: minmax(0, 720px); column-gap: 0; }
      body .post-hero .post-grid > .hero-main, body .post-body .post-grid > article { grid-column: 1; }
      body .prose-v h2, body .prose-v h3 { scroll-margin-top: 130px; }
      body .prose-v .faq-item { scroll-margin-top: 140px; }
      body .qbar {
        display: block; position: sticky; top: 68px; z-index: 40; margin-bottom: 8px;
        background: rgba(242,237,228,.92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
        border-bottom: 1px solid var(--line);
      }
      body .qbar button { width: 100%; max-width: 784px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 12px; text-align: left; }
      body .qbar .qn { font-family: var(--mono); font-size: 12px; color: var(--green); flex: none; }
      body .qbar .qt { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      body .qbar svg { flex: none; transition: transform .25s var(--ease); }
      body .qbar.open svg { transform: rotate(180deg); }
      body .qbar .qnav-bar { margin: 0; border-radius: 0; }
      body .qrail {
        position: fixed; left: 0; right: 0; top: 117px; z-index: 39; grid-row: auto;
        background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(27,38,32,.35);
        opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
      }
      body .qrail.open { opacity: 1; transform: none; pointer-events: auto; }
      body .qnav { position: static; max-height: calc(100vh - 140px); max-width: 784px; margin: 0 auto; padding: 16px 32px 24px; }
      body .qnav .qnav-head, body .qnav > .qnav-bar { display: none; }
    }
    @media (max-width: 640px) {
      body .post-grid, body .related { padding-left: 20px; padding-right: 20px; }
      body .qbar button, body .qnav { padding-left: 20px; padding-right: 20px; }
      body .dek { font-size: 17px; }
      body .prose-v h2 { font-size: 28px; }
      body .stats, body .levers, body .weeks { grid-template-columns: 1fr; }
      body .team { grid-template-columns: 1fr 1fr; }
      body .stat .v { font-size: 38px; }
      body .endcard { grid-template-columns: 1fr; padding: 24px; }
      body .related-grid { grid-template-columns: 1fr; }
      body .example, body .answer { padding: 18px 20px; }
    }

/* ── Title block lives in the article column, so the question navigator sits beside it
      from the top of the page and the short answer is on the first screen. ── */
body section.post-body.page-hero { padding-top: 104px !important; overflow: clip; }  /* clip, not hidden: hidden makes this a scroll container and breaks the sticky navigator */
body .art-head { margin-bottom: 8px; }
body .art-head .crumbs { font-size: 12px; color: var(--faint); margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
body .art-head .crumbs a { color: var(--faint); text-decoration: none; font-weight: 400; }
body .art-head .crumbs a:hover { color: var(--ink); }
body .art-head .crumbs .here { color: var(--muted); }
body .art-head .badge-green { margin-bottom: 14px; }
body .prose-v .art-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); margin: 0 0 14px; }
body .art-head .meta-row { font-size: 13px; margin-bottom: 18px; }

/* the short answer: first thing under the title, bold, on a tinted card */
body .prose-v .art-head .answer { background: var(--green-soft); border: 0; border-radius: 16px; padding: 18px 22px 18px 24px; margin: 0 0 22px; position: relative; }
body .prose-v .art-head .answer::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--green); }
body .prose-v .art-head .answer .label { color: var(--green); margin-bottom: 6px; }
body .prose-v .art-head .answer p { font-size: 17.5px !important; line-height: 1.6 !important; font-weight: 600; color: #1f4331 !important; }
body .prose-v .art-head .answer p strong { color: inherit; }

/* smaller cover, same 16:9 */
body .prose-v .art-head .cover { width: 100%; max-width: 560px; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px; margin: 0; box-shadow: 0 24px 50px -34px rgba(27,38,32,.45); }
body .prose-v .art-head + h2, body .prose-v .art-head ~ h2:first-of-type { margin-top: 2.6rem; }

/* navigator: a visible card from the first screen */
body .qnav { top: 88px; max-height: calc(100vh - 108px); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 12px 18px 10px; box-shadow: 0 18px 40px -32px rgba(27,38,32,.35); }
body .qnav-head { padding: 0 4px 0 12px; }
body .qnav-head .label { color: var(--ink); font-weight: 500; }
body .qnav > .qnav-bar { margin: 0 4px 12px 12px; }
body .qlist > li.on > .qlink { background: var(--green-soft); }
body .qnav-foot { margin-left: 12px; margin-right: 4px; }

@media (max-width: 1080px) {
  body section.post-body.page-hero { padding-top: 68px !important; }
  body .qnav { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
  body .qbar { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  body .prose-v .art-head h1 { font-size: 30px; }
  body .prose-v .art-head .answer p { font-size: 16.5px !important; }
  body .prose-v .art-head .cover { max-width: 100%; }
}
