/* Post reading layout and editor. Loaded only where bodies are rendered. */
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body pre { overflow-x: auto; background: var(--bg-tertiary, #172238); padding: 12px; border-radius: 8px; }
.post-body blockquote { border-left: 3px solid var(--accent, #3b82f6); margin: 0; padding-left: 14px; color: var(--text-secondary); }
/* ── The reading layout (the blog outcomes, research-2026-10-30/market/outcomes/blog.md): a 65-character measure at
   18 px, mobile leading at 1.5, a stated read time, the post's own sections as a contents list (a fold under the title
   on phones, a rail to the left of the text from 1100 px), and the series as one line above and its neighbours below. */
body.post-page .page { max-width: 1160px; }
.post-wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.post-main { min-width: 0; width: 100%; max-width: 720px; margin: 0 auto; }
.post-body { font-size: 1.125rem; line-height: 1.65; }
.post-body p, .post-body li, .post-body blockquote { max-width: 65ch; }
.post-body h3[id] { scroll-margin-top: calc(var(--ovnav-real-h, 56px) + 16px); }
.post-body h3:target { color: var(--accent, #3b82f6); }
.read-time { white-space: nowrap; }
.series-line { margin: 4px 0 0; color: var(--text-secondary, #96a7c2); font-size: .95rem; }
.toc-fold, .series-more { margin: 14px 0 4px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; background: var(--bg-secondary, transparent); }
.toc-fold > summary, .series-more > summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; font-weight: 700; cursor: pointer; list-style: none; }
.toc-fold > summary::-webkit-details-marker, .series-more > summary::-webkit-details-marker { display: none; }
.toc-fold > summary::after, .series-more > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; transition: transform .15s; }
.toc-fold[open] > summary::after, .series-more[open] > summary::after { transform: rotate(225deg); }
.toc-fold > summary span, .series-more > summary span { color: var(--text-muted, #7386a3); font-weight: 500; font-size: .88rem; }
.toc-fold ol, .series-more ol { margin: 0; padding: 0 14px 10px 36px; }
.toc-fold li a, .series-more li a { display: block; padding: 9px 0; color: var(--text-secondary, #96a7c2); text-decoration: none; line-height: 1.35; }
.toc-fold li a:hover, .series-more li a:hover { color: var(--text-primary); text-decoration: underline; }
.series-more li[aria-current] { padding: 9px 0; font-weight: 700; color: var(--text-primary); }
.series-more p { margin: 0; padding: 0 14px 12px; }
.series-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 32px 0 0; }
.series-nav a { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border, #1f2d47); border-radius: 12px; color: var(--text-primary); text-decoration: none; }
.series-nav a:hover { border-color: var(--accent, #3b82f6); }
.series-nav a[rel="next"] { grid-column: 2; text-align: right; }
.series-nav small { color: var(--text-muted, #7386a3); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.series-nav span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.toc-rail { display: none; }
@media (max-width: 600px) {
  .post-body { font-size: 1.0625rem; line-height: 1.5; }
  .series-nav { grid-template-columns: minmax(0, 1fr); }
  .series-nav a[rel="next"] { grid-column: 1; }
}
@media (min-width: 1100px) {
  .post-wrap.has-toc { grid-template-columns: 220px minmax(0, 720px); column-gap: 56px; justify-content: center; }
  .post-wrap.has-toc .post-main { margin: 0; }
  .post-wrap.has-toc .toc-fold { display: none; }
  .toc-rail { display: block; position: sticky; top: calc(var(--ovnav-real-h, 56px) + 24px); align-self: start; max-height: calc(100vh - var(--ovnav-real-h, 56px) - 48px); overflow-y: auto; margin-top: 1.4rem; padding-bottom: 16px; }
  .toc-rail h2 { margin: 0 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
  .toc-rail ol { list-style: none; margin: 0; padding: 0; }
  .toc-rail a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--border, #1f2d47); color: var(--text-secondary, #96a7c2); font-size: .9rem; line-height: 1.35; text-decoration: none; }
  .toc-rail a:hover { color: var(--text-primary); border-left-color: var(--accent, #3b82f6); }
}

/* The post header and its contents list belong to Blog. */
.post-header { margin-bottom: 4px; }
.post-title { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 10px; }
.post-teaser { margin: 0 0 10px; max-width: 62ch; color: var(--text-secondary, #96a7c2); font-size: 1.12rem; line-height: 1.5; }
.post-hero-art { margin: 18px 0 4px; }
.post-hero-art img { display: block; width: 100%; height: auto; border-radius: 16px; }
/* The contents: a rail beside the text on a computer, a row of chips under the title on a phone. */
.toc-chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px 0 4px; padding-bottom: 4px; scrollbar-width: thin; }
.toc-chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--border, #1f2d47); border-radius: 999px; color: var(--text-secondary, #96a7c2); font-size: .88rem; text-decoration: none; white-space: nowrap; }
@media (min-width: 1100px) { .toc-chips { display: none; } }

/* ── The block inserter (public/js/blog-editor.js): a "/" menu, a form per block with a live preview, an
   outline dragged to reorder, picture search and Make an image. Progressive only: the textarea saves. ── */
.ov-editor { margin: 6px 0 4px; }
.ov-editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ov-editor button { margin-top: 0; }
.ov-editor-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: inherit; font-size: .92rem; font-weight: 650; background: var(--bg-card, #131c2e); color: var(--text-primary, #e6edf7); border: 1px solid var(--border-light, #2c3d5c); border-radius: 10px; cursor: pointer; }
.ov-editor-btn:hover, .ov-editor-btn[aria-expanded="true"], .ov-editor-btn[aria-pressed="true"] { border-color: var(--accent, #3b82f6); }
.ov-editor-btn kbd { padding: 0 5px; border: 1px solid var(--border, #1f2d47); border-radius: 5px; font-size: .8em; color: var(--text-secondary, #96a7c2); }
.ov-editor-hint { font-size: .84rem; color: var(--text-muted, #7386a3); }
.ov-editor-panel, .ov-editor-outline { margin: 0 0 10px; }
.ov-editor-card { padding: 14px 16px; border: 1px solid var(--border, #1f2d47); border-radius: 14px; background: var(--bg-card, #131c2e); }
.ov-editor-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ov-editor-cardhead h3 { margin: 0; font-size: 1.05rem; }
.ov-editor-x { flex: none; width: 44px; height: 44px; padding: 0; font-size: 1.3rem; line-height: 1; background: transparent; color: var(--text-secondary, #96a7c2); border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.ov-editor-x:hover { color: var(--text-primary); border-color: var(--border-light, #2c3d5c); }
.ov-editor-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px; }
.ov-editor-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 7px 10px; font: inherit; text-align: left; background: var(--bg-primary, #0a0f1c); color: var(--text-primary); border: 1px solid var(--border, #1f2d47); border-radius: 10px; cursor: pointer; }
.ov-editor-menu button:hover, .ov-editor-menu button[aria-selected="true"] { border-color: var(--accent, #3b82f6); }
.ov-editor-menu b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: var(--text-muted, #7386a3); font-weight: 500; }
.ov-editor-menu span { font-weight: 650; font-size: .92rem; }
.ov-editor-form label { margin-top: 8px; }
.ov-editor-form input, .ov-editor-form select, .ov-editor-form textarea { font-family: inherit; font-size: .95rem; }
.ov-editor-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ov-chk { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.ov-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ov-editor-actions button { min-height: 44px; }
.ov-editor-alt { background: var(--bg-primary, #0a0f1c); color: var(--text-primary); border: 1px solid var(--border-light, #2c3d5c); }
.ov-editor-ph { margin: 16px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #7386a3); }
.ov-editor-preview { padding: 12px 14px; border: 1px dashed var(--border-light, #2c3d5c); border-radius: 12px; background: var(--bg-primary, #0a0f1c); }
.ov-editor-preview:empty { display: none; }
.ov-editor-preview img { max-width: 100%; height: auto; border-radius: 8px; }
.ov-editor-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ov-editor-results li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border, #1f2d47); border-radius: 10px; background: var(--bg-primary, #0a0f1c); }
.ov-editor-results img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; display: block; }
.ov-editor-results b { display: block; font-size: .95rem; }
.ov-editor-results .meta { display: block; font-size: .8rem; }
.ov-editor-results button { min-height: 44px; }
.ov-editor-outline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ov-editor-outline-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: 1px solid var(--border, #1f2d47); border-radius: 10px; background: var(--bg-card, #131c2e); cursor: grab; }
.ov-editor-outline-list li.is-dragging { opacity: .5; }
.ov-editor-outline-list b { font-size: .92rem; }
.ov-editor-grip { color: var(--text-muted, #7386a3); }
@media (pointer: coarse) {
  .ov-editor-results li { grid-template-columns: 64px minmax(0, 1fr); }
  .ov-editor-results li button { grid-column: 1 / -1; }
}
