/* ═══════════════════════════════════════════════════════════════════════
   BLOG AND PLAIN PAGES
   Post list, single post, and pages written in the WordPress editor.
   ═══════════════════════════════════════════════════════════════════════ */

body { background: var(--surface); }

/* List */
.blog-head { padding: 72px 0 32px; }
.blog-list { padding-bottom: 96px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.post-card:hover { box-shadow: 0 0 0 1px var(--rule-strong); }
.post-card__img { aspect-ratio: 1200 / 630; background: var(--surface-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.post-card__excerpt { font-size: 15px; color: var(--body); }
.blog-head__lede { max-width: 620px; margin-top: 14px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.post-card__meta b { padding: 2px 8px; border-radius: var(--r-xs); background: var(--brand-bg); color: var(--brand); font-size: 12px; font-weight: 600; }
.post-card .h4 { font-size: 17px; line-height: 1.4; transition: color .15s; }
.post-card:hover .h4 { color: var(--brand); }
.post-card__img img { transition: transform .4s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__img { overflow: hidden; }
.post-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; padding: 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--ring); transition: box-shadow .2s var(--ease); }
.post-feature:hover { box-shadow: 0 0 0 1px var(--rule-strong); }
.post-feature--text { grid-template-columns: minmax(0, 1fr); padding: 32px; }
.post-feature__img { border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); }
.post-feature__img img { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.post-feature:hover .post-feature__img img { transform: scale(1.02); }
.post-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 20px; }
.post-feature__title { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.post-feature__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--brand); }
.post-feature__go .ico { transition: transform .15s var(--ease); }
.post-feature:hover .post-feature__go .ico { transform: translateX(3px); }
@media (max-width: 860px) { .post-feature { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 14px; } .post-feature__body { padding: 0 6px 8px; } }
.pager { margin-top: 48px; }
.pager .nav-links { display: flex; gap: 6px; justify-content: center; }
.pager .page-numbers { display: inline-flex; min-width: 36px; height: 36px; padding: 0 12px; align-items: center; justify-content: center; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--body); box-shadow: var(--ring); }
.pager .page-numbers.current { background: var(--ink); color: #fff; box-shadow: none; }

/* Single */
.post { padding: 0 0 96px; }
.post__head { max-width: calc(760px + var(--gutter) * 2); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 64px; }
.post__title { font-size: clamp(32px, 5vw, 48px); }

/* Reading progress, fixed under the header */
.read-bar { position: fixed; top: 64px; left: 0; right: 0; z-index: 40; height: 3px; pointer-events: none; }
.admin-bar .read-bar { top: 96px; }
.read-bar i { display: block; height: 100%; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Hero */
.post-hero { border-bottom: 1px solid var(--rule); background: var(--paper); }
.post-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.post-hero__in.is-plain { grid-template-columns: minmax(0, 1fr); max-width: calc(820px + var(--gutter) * 2); }
.post-hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.post-hero .post__title { margin-top: 18px; font-family: var(--display); font-size: clamp(34px, 4.4vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.post-hero__lede { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
.post-hero__img { margin: 0; }
.post-hero__img img { display: block; width: 100%; height: auto; border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px var(--rule); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--body); }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { width: 14px; height: 14px; color: var(--faint); }
.crumbs__cat { padding: 3px 9px; border-radius: var(--r-xs); background: var(--brand-bg); color: var(--brand) !important; font-size: 13px; }

.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.byline { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.byline__mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--r-md); background: #fff; box-shadow: var(--ring); }
.byline__mark.is-lg { width: 56px; height: 56px; }
.byline__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.byline__text b { font-size: 15px; font-weight: 600; color: var(--ink); }

.post-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 20px; }
.ask-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ask-ai__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ask-ai__label .ico { color: var(--brand); }
.ask-ai a, .share__btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--rule), var(--btn-shadow); font: 500 13px var(--font); color: var(--ink); cursor: pointer; transition: color .15s, box-shadow .15s, transform .15s var(--ease); }
.ask-ai a:hover, .share__btn:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand), var(--btn-shadow); transform: translateY(-1px); }
.share { display: flex; align-items: center; gap: 6px; }
.share__btn.is-icon { width: 34px; padding: 0; justify-content: center; }
.share__btn.is-done { color: var(--pos); box-shadow: inset 0 0 0 1px var(--pos); }

/* Body: the post and a sticky sidebar */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 72px; align-items: start; padding-top: 56px; }
.post-main { width: 100%; min-width: 0; max-width: 760px; }
.post-main .prose { max-width: none; margin: 0; padding: 0; font-size: 18.5px; line-height: 1.78; }
.post-main .prose h2 { margin-top: 2.2em; font-family: var(--display); font-size: 31px; line-height: 1.2; letter-spacing: -0.025em; }
.post-main .prose h3 { margin-top: 1.7em; font-size: 22px; line-height: 1.35; }
.post-main .prose h4 { font-size: 18.5px; }
.post-main .prose li + li { margin-top: .5em; }
.post-main .prose li::marker { color: var(--brand); }
.post-main .prose blockquote { padding: 8px 0; font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.post-main .prose blockquote::before { content: ''; display: block; width: 26px; height: 19px; margin-bottom: 12px; background: var(--brand); -webkit-mask: var(--climb) center / contain no-repeat; mask: var(--climb) center / contain no-repeat; }
.post-main .prose table { font-size: 15.5px; }
.post-main .prose tbody tr { transition: background .15s; }
.post-main .prose tbody tr:hover { background: var(--paper); }
.post-main .prose ::selection { background: var(--brand-bg); }

/* Copy a link to any section */
.prose .h-link { display: inline-flex; vertical-align: middle; margin-left: 8px; padding: 2px; border-radius: var(--r-xs); color: var(--faint); opacity: 0; text-decoration: none; transition: opacity .15s, color .15s; }
.prose .h-link .ico { width: 18px; height: 18px; }
.prose h2:hover .h-link, .prose h3:hover .h-link, .prose .h-link:focus-visible { opacity: 1; }
.prose .h-link:hover { color: var(--brand); }
.prose .h-link.is-done { color: var(--pos); opacity: 1; }
.prose h2 { scroll-margin-top: 96px; }

/* The sidebar contents replace the in-post contents box on wide screens */
@media (min-width: 1101px) { .post-main .prose .aw-toc { display: none; } }

.post-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 120px); }
.admin-bar .post-side { top: 128px; }
.side-toc { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-md); background: #fff; box-shadow: var(--ring); overflow: hidden; }
.side-toc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; font-size: 13px; }
.side-toc__head b { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.side-toc__left { font-family: var(--mono); font-size: 12px; color: var(--brand); }
.side-toc__meter { height: 2px; margin: 0 16px 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.side-toc__meter i { display: block; height: 100%; background: var(--brand); transform: scaleX(var(--p, 0)); transform-origin: left; }
.side-toc__list { flex: 1; min-height: 0; margin: 0; padding: 4px 0 10px; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side-toc__list a { display: block; padding: 6px 16px 6px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--body); transition: color .15s, background .15s, border-color .15s; }
.side-toc__list a:hover { color: var(--ink); background: var(--paper); }
.side-toc__list a.is-on { border-left-color: var(--brand); background: var(--brand-pale); color: var(--brand); font-weight: 600; }
.side-toc__list .is-sub a { padding-left: 28px; font-size: 13px; color: var(--muted); }
.side-toc__list .is-sub a.is-on { color: var(--brand); }

.side-cta { flex: none; padding: 22px 20px; border-radius: var(--r-md); }
.side-cta__k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8FB2F2; }
.side-cta__t { margin-top: 6px; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: #fff; }
.side-cta__d { margin-top: 8px; font-size: 14px; line-height: 1.5; }
.side-cta .btn { width: 100%; margin-top: 16px; justify-content: center; }

/* Author */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 64px; padding: 24px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--ring); }
.author-box__k { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.author-box__name { margin: 2px 0 6px; font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.author-box p:last-child { font-size: 15.5px; line-height: 1.6; color: var(--body); }
.post-main .post-cta { max-width: none; margin-top: 24px; padding: 0; }

/* Related posts */
.related { margin-top: 96px; padding: 64px 0 0; border-top: 1px solid var(--rule); }
.related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.related__title { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.related__all { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--brand); }
.related__all:hover .ico { transform: translateX(3px); }
.related__all .ico { transition: transform .15s var(--ease); }

/* Floating buttons */
.to-top, .toc-fab { position: fixed; z-index: 45; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 0; border-radius: var(--r-md); background: #fff; color: var(--ink); box-shadow: var(--shadow-md); font: 600 14px var(--font); cursor: pointer; transition: transform .2s var(--ease), opacity .2s; }
.to-top { right: 24px; bottom: 24px; width: 44px; }
.to-top:hover, .toc-fab:hover { color: var(--brand); transform: translateY(-2px); }
.toc-fab { left: 50%; bottom: 20px; padding: 0 16px; transform: translateX(-50%); }
.toc-fab:hover { transform: translateX(-50%) translateY(-2px); }
.toc-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(11, 27, 63, .35); }
.toc-sheet[hidden] { display: none; }
.toc-sheet__panel { display: flex; flex-direction: column; width: 100%; max-height: 72vh; border-radius: var(--r-xl) var(--r-xl) 0 0; background: #fff; animation: sheet-up .25s var(--ease); }
.toc-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; font-size: 15px; color: var(--ink); }
.toc-sheet__close { display: inline-flex; padding: 8px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.toc-sheet .side-toc__list { padding-bottom: 24px; }
.toc-sheet .side-toc__list a { padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* Screenshot zoom */
.prose .aw-shot__frame { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(11, 27, 63, .82); cursor: zoom-out; animation: fade-in .2s; }
.zoom img { max-width: min(1400px, 100%); max-height: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-main { margin: 0 auto; }
  .post-side { display: none; }
}
@media (min-width: 1101px) { .toc-fab, .toc-sheet { display: none !important; } }
@media (max-width: 900px) {
  .post-hero__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .post-hero__img { max-width: 640px; }
}
@media (max-width: 640px) {
  .read-bar { top: 64px; }
  .post-hero .post__title { font-size: 32px; }
  .post-hero__lede { font-size: 17px; }
  .post-actions { flex-direction: column; align-items: flex-start; }
  .ask-ai__label { width: 100%; margin-bottom: 2px; }
  .post-layout { padding-top: 36px; }
  .post-main .prose { font-size: 17.5px; line-height: 1.75; }
  .post-main .prose h2 { font-size: 26px; }
  .post-main .prose h3 { font-size: 20px; }
  .author-box { flex-direction: column; padding: 20px; }
  .related { margin-top: 64px; padding-top: 48px; }
  .related__title { font-size: 24px; }
  .to-top { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .read-bar, .side-toc__meter { display: none; }
  .toc-sheet__panel, .zoom { animation: none; }
}

/* Long-form text */
.prose { max-width: calc(720px + var(--gutter) * 2); margin-top: 40px; font-size: 17px; line-height: 1.75; color: #2B3A5E; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.prose h3 { margin-top: 1.6em; font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; font-weight: 700; color: var(--ink); }
.prose h4 { margin-top: 1.4em; font-size: 17px; font-weight: 600; color: var(--ink); }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(9, 67, 176, .3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose blockquote { padding: 4px 0; font-family: var(--display); font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.prose blockquote::before { content: ''; display: block; width: 26px; height: 19px; margin-bottom: 12px; background: var(--brand); -webkit-mask: var(--climb) center / contain no-repeat; mask: var(--climb) center / contain no-repeat; }
.prose img, .prose figure img { border-radius: var(--r-md); }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; overflow-wrap: anywhere; }
.prose pre { padding: 16px 18px; border-radius: var(--r-md); background: var(--night); color: #EBEBEB; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule-faint); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose .wp-block-image, .prose .wp-block-embed { margin-top: 1.8em; margin-bottom: 1.8em; }

/* End-of-post call to action */
.post-cta { max-width: calc(720px + var(--gutter) * 2); margin-top: 64px; }
.post-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: rgba(255, 255, 255, .8); }
.post-cta__in .h3 { color: #fff; }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-cta__in { flex-direction: column; align-items: flex-start; }
}

/* Legal pages (legal/legal.php) */
.legal .post__head { max-width: calc(720px + var(--gutter) * 2); }
.legal .post__title { font-size: clamp(32px, 5vw, 44px); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); }
.legal-nav a { padding: 6px 12px; border-radius: var(--r-xs); font-size: 14px; font-weight: 500; color: var(--body); }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--btn-shadow), 0 0 0 1px var(--rule); }
.legal .prose { padding-bottom: var(--section); font-size: 16px; }
.legal .prose h2 { font-size: 22px; }
.legal-table { overflow-x: auto; }
.legal-table table { min-width: 520px; }
.legal-gap { padding: 0 4px; border-radius: var(--r-xs); background: var(--warn-bg); color: var(--warn); font-weight: 500; }


/* ─────────────── Modules inside posts (blog/blog.js) ─────────────── */
.prose .aw-toc { padding: 18px 22px; border-radius: var(--r-md); background: var(--surface-2); font-size: 15px; }
.prose .aw-toc b { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.prose .aw-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.prose .aw-toc li { break-inside: avoid; }
.prose .aw-toc a { text-decoration: none; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }

.prose .aw-box { position: relative; padding: 18px 24px 18px 48px; border-radius: var(--r-sm); background: var(--brand-pale); }
.prose .aw-box::before { content: ''; position: absolute; left: 20px; top: 24px; width: 16px; height: 12px; background: var(--brand); -webkit-mask: var(--climb) center / contain no-repeat; mask: var(--climb) center / contain no-repeat; }
.prose .aw-box > * + * { margin-top: .6em; }
.prose .aw-box__t { font-weight: 700; color: var(--ink); }
.prose .aw-box--warn { background: var(--spark-tint); }
.prose .aw-box--warn::before { width: 14px; height: 14px; top: 22px; background: var(--spark); -webkit-mask-image: var(--star); mask-image: var(--star); }

.prose .aw-bars { margin: 1.8em 0; padding: 22px 24px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.prose .aw-bars figcaption { margin: 0 0 14px; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink); }
.prose .aw-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 14px; line-height: 1.3; }
.prose .aw-bar + .aw-bar { margin-top: 10px; }
.prose .aw-bar > span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.prose .aw-bar > span img { width: 18px; height: 18px; border-radius: 4px; }
.prose .aw-bar > i { height: 12px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.prose .aw-bar > i::before { content: ''; display: block; width: var(--w, 0); height: 100%; border-radius: 2px; background: var(--rule-strong); transition: width .6s var(--ease); }
.prose .aw-bar.is-us > i::before { background: var(--brand); }
.prose .aw-bar > b { text-align: right; font-family: var(--mono); font-weight: 500; color: var(--ink); }
.prose .aw-bars__note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.prose .aw-calc { margin: 1.8em 0; padding: 24px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.prose .aw-calc__q { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.prose .aw-calc__n { font-family: var(--mono); color: var(--brand); }
.prose .aw-calc input[type=range] { width: 100%; margin: 14px 0 18px; accent-color: var(--brand); }
.prose .aw-calc__row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule-faint); font-size: 14px; line-height: 1.4; }
.prose .aw-calc__row.is-us { margin: 0 -12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border-top-color: transparent; }
.prose .aw-calc__tool { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.prose .aw-calc__tool img { border-radius: 4px; }
.prose .aw-calc__plan { color: var(--body); }
.prose .aw-calc__price { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; color: var(--ink); white-space: nowrap; }
.prose .aw-calc__price small { font-size: 12px; color: var(--muted); }
.prose .aw-calc__price em { padding: 1px 6px; border-radius: 4px; background: var(--pos-bg, #DDF5E7); color: var(--pos, #0B7A54); font-family: var(--font); font-size: 11px; font-style: normal; font-weight: 600; }
.prose .aw-calc__note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.prose .aw-filter { margin: 1.8em 0; }
.prose .aw-filter__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.prose .aw-filter__bar button { padding: 6px 12px; border: 0; border-radius: var(--r-sm); background: var(--surface-2); color: var(--body); font: 500 13px var(--font); cursor: pointer; }
.prose .aw-filter__bar button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.prose .aw-filter__count { margin-left: auto; font-size: 13px; color: var(--muted); }
.prose .aw-scroll { overflow-x: auto; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.prose .aw-scroll table { min-width: 640px; box-shadow: none; border-radius: 0; }
.prose td .aw-logo, .prose th .aw-logo, .prose .aw-tool .aw-logo { display: inline-block; width: 18px; height: 18px; margin-right: 8px; border-radius: 4px; vertical-align: -3px; }
.prose .yes { color: var(--pos, #0B7A54); font-weight: 600; }
.prose .part { color: var(--brand); }
.prose .no { color: var(--faint); }
.prose .na { color: var(--faint); }

/* Comparison tables: one component for every table inside a post.
   The header is quiet, the first column stays in view when the table scrolls,
   numbers line up, and our own row carries the brand colour. */
.prose .aw-table { font-size: 14.5px; line-height: 1.45; border-collapse: separate; border-spacing: 0; overflow: visible; }
.prose .aw-table__caption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose .aw-table thead th { padding: 10px 14px; background: #F7F8FB; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; border-bottom: 1px solid var(--rule-strong); }
.prose .aw-table tbody th { background: var(--surface); color: var(--ink); font-weight: 600; }
.prose .aw-table tbody td { color: var(--body); }
.prose .aw-table tbody tr:nth-child(even) > * { background: #FAFAFC; }
.prose .aw-table tbody tr:hover > * { background: var(--brand-pale); }
.prose .aw-table tbody tr.is-us > * { background: #F2F6FF; }
.prose .aw-table tbody tr.is-us:hover > * { background: #E8EFFF; }
.prose .aw-table tbody tr.is-us > :first-child { box-shadow: inset 3px 0 0 var(--brand); }
.prose .aw-table tbody tr:last-child > * { border-bottom: 0; }
.prose .aw-table__price,
.prose .aw-table__num { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.prose .aw-table__num { white-space: nowrap; color: var(--body); }
.prose .aw-table__price { color: var(--ink); }
.prose .aw-table .aw-free { color: var(--pos, #0B7A54); font-weight: 600; }
.prose .aw-table__fit { color: var(--body); }
.prose .aw-table__value { min-width: 0; }
.prose .aw-table__src .yes,
.prose .aw-table__src .part,
.prose .aw-table__src .no,
.prose .aw-table__src .na { white-space: nowrap; }

/* Keep the row label visible while a wide table scrolls sideways. */
.prose .aw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); }
.prose .aw-scroll .aw-table tr > :first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--rule), 6px 0 10px -8px rgba(11, 27, 63, .28); }
.prose .aw-scroll .aw-table thead th:first-child { z-index: 2; }
.prose .aw-scroll .aw-table tbody tr.is-us > :first-child { box-shadow: inset 3px 0 0 var(--brand), 1px 0 0 var(--rule), 6px 0 10px -8px rgba(11, 27, 63, .28); }

.prose .aw-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--r-md); background: var(--rule); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; font-size: 14px; }
.prose .aw-facts > div { padding: 12px 14px; background: #fff; }
.prose .aw-facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.prose .aw-facts dd { margin: 2px 0 0; color: var(--ink); line-height: 1.5; }
.prose h3.aw-tool { display: flex; align-items: center; gap: 10px; }
.prose h3.aw-tool .aw-logo { width: 28px; height: 28px; margin: 0; border-radius: 7px; box-shadow: 0 0 0 1px var(--rule); }
/* Tool reviews, after Folk: Key features, Pros, Cons, Price and plans under each tool. */
.prose h3.aw-tool ~ h4 { margin-top: 1.5em; }
.prose h3.aw-tool ~ h4 + ul, .prose h3.aw-tool ~ h4 + p { margin-top: .5em; }
.prose .aw-try { font-weight: 600; color: var(--ink); }
.prose .aw-try a { font-weight: 600; }
.prose .aw-try::before { content: "\2192"; margin-right: 8px; color: var(--brand); }

.prose .aw-steps { counter-reset: step; list-style: none; padding: 0; }
.prose .aw-steps > li { position: relative; padding-left: 44px; }
.prose .aw-steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 13px/28px var(--mono); text-align: center; }
.prose .aw-steps > li + li { margin-top: 1em; }
.prose details { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.prose details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.prose details > p { margin-top: .6em; }

@media (max-width: 640px) {
  .prose .aw-toc ol { columns: 1; }
  .prose .aw-bar { grid-template-columns: 110px minmax(0, 1fr) 64px; font-size: 13px; }
  .prose .aw-calc__row { grid-template-columns: minmax(0, 1fr) auto; }
  .prose .aw-calc__plan { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .prose .aw-facts { grid-template-columns: minmax(0, 1fr); }
  .prose .aw-table { font-size: 13.5px; }
  .prose .aw-table thead th { padding: 9px 11px; font-size: 11px; }
  .prose .aw-table tbody th, .prose .aw-table tbody td { padding: 10px 11px; }
  .prose .aw-table__price, .prose .aw-table__num { font-size: 12.5px; }
  .prose .aw-scroll .aw-table { min-width: 600px; }
}

/* On a phone, each table row becomes its own card with the column names beside the values. */
@media (max-width: 640px) {
  .prose .aw-scroll { overflow: visible; box-shadow: none; background: transparent; border-radius: 0; }
  .prose .aw-scroll .aw-table { min-width: 0; }
  .prose .aw-table { display: block; font-size: 14px; }
  .prose .aw-table thead { display: none; }
  .prose .aw-table tbody { display: block; }
  .prose .aw-table tbody tr { display: block; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
  .prose .aw-table tbody tr[hidden] { display: none; }
  .prose .aw-table tbody tr.is-us { background: #F2F6FF; border-color: #D9E4FF; box-shadow: inset 3px 0 0 var(--brand); }
  .prose .aw-table tbody tr > *,
  .prose .aw-table tbody tr:nth-child(even) > *,
  .prose .aw-table tbody tr:hover > *,
  .prose .aw-table tbody tr.is-us > *,
  .prose .aw-table tbody tr.is-us:hover > * { background: transparent; }
  .prose .aw-table tbody th[scope="row"] { display: block; padding: 0 0 9px; border: 0; font-size: 15px; }
  .prose .aw-table tbody td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 7px 0; border: 0; border-top: 1px solid var(--rule-faint); font-size: 14px; }
  .prose .aw-table tbody td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
  .prose .aw-table__price, .prose .aw-table__num { white-space: normal; }
  .prose .aw-scroll .aw-table tr > :first-child { position: static; box-shadow: none; }
  .prose .aw-scroll .aw-table tbody tr.is-us > :first-child { box-shadow: none; }
}
.prose .aw-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.prose .aw-filter tr > :first-child { white-space: nowrap; }

/* Homepage screenshots in a browser frame */
.prose .aw-shot { margin: 1.4em 0; }
.prose .aw-shot__frame { border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.prose .aw-shot__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.prose .aw-shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5DAE5; }
.prose .aw-shot__bar span { flex: 1; max-width: 340px; margin: 0 auto; padding: 3px 10px; border-radius: 6px; background: #fff; font: 12px var(--mono); color: var(--muted); text-align: center; }
.prose .aw-shot img { display: block; width: 100%; height: auto; border-radius: 0; }
.prose .aw-shot figcaption { margin-top: 10px; }

/* Charts, step diagrams and product views inside posts */
.prose .aw-fig { margin: 1.6em 0; }
.prose .aw-fig img { display: block; width: 100%; height: auto; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--rule); }
.prose .aw-fig figcaption { margin-top: 10px; }

/* ─────────────── Product demos from the homepage ([aw_product_tour], [aw_how_it_works]) ───────────────
   Markup and motion live in inc/product-demo.php and pages/home/. Here they only fit the post column. */
.prose .aw-product { margin: 2.2em 0; font-size: 15px; line-height: 1.5; color: var(--body); }
.prose .aw-product ul, .prose .aw-product ol { margin: 0; padding: 0; list-style: none; }
.prose .aw-product li + li { margin-top: 0; }
.prose .aw-product li::marker { content: none; }
.prose .aw-product p { margin: 0; }
.prose .aw-product img { border-radius: 4px; }
.prose .aw-product .demo { margin-top: 0; }
.prose .aw-product .demo__app { grid-template-columns: 204px minmax(0, 1fr); }
.prose .aw-product .demo__main { padding: 18px; }
.prose .aw-product .how { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.prose .aw-product .how__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.prose .aw-product .how__step { height: 100%; padding: 14px 16px; }
.prose .aw-product .how__step b { font-size: 16px; }
.prose .aw-product .how__d { font-size: 14px; }
.prose .aw-product .hs { min-height: 340px; }
@media (max-width: 860px) {
  .prose .aw-product .demo__app { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .prose .aw-product .how__steps { grid-template-columns: minmax(0, 1fr); }
}

/* Process charts: a vertical flow. Start, each step in a framed box joined by arrows, then the result.
   The panel sits on a light blueprint grid, like the covers. */
.prose .aw-flow { margin: 2em 0; padding: 32px 24px 24px; border: 1px solid #0A0A0A; background-color: #FAFBFF;
  background-image: linear-gradient(rgba(9, 67, 176, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(9, 67, 176, .07) 1px, transparent 1px);
  background-size: 24px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.prose .aw-flow__t { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: #0A0A0A; }
.prose .aw-flow__s { margin: 6px 0 24px; font-size: 15px; line-height: 1.5; color: #525252; }
.prose .aw-flow__cap { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.prose .aw-flow__cap--start { background: #0A0A0A; color: #fff; }
.prose .aw-flow__cap--end { background: #0943B0; color: #fff; }
.prose .aw-flow__steps { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 520px; counter-reset: none; }
.prose .aw-flow__steps > li { position: relative; display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 14px 16px; text-align: left; background: #fff; border: 1px solid #0A0A0A; }
.prose .aw-flow__steps > li + li { margin-top: 0; }
/* The arrow into every step, and the one out of the last step into the result. */
.prose .aw-flow__steps > li, .prose .aw-flow__cap--end { margin-top: 40px !important; }
.prose .aw-flow__steps > li::before, .prose .aw-flow__cap--end::before {
  content: ''; position: absolute; left: 50%; top: -40px; width: 2px; height: 32px; margin-left: -1px; background: #0943B0; }
.prose .aw-flow__steps > li::after, .prose .aw-flow__cap--end::after {
  content: ''; position: absolute; left: 50%; top: -10px; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid #0943B0; border-bottom: 0; }
.prose .aw-flow__cap--end { position: relative; }
.prose .aw-flow__steps > li::marker { content: none; }
.prose .aw-flow__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; background: #0943B0; color: #fff; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .aw-flow__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prose .aw-flow__b b { font-size: 16px; line-height: 1.35; font-weight: 600; color: #0A0A0A; }
.prose .aw-flow__b span { font-size: 15px; line-height: 1.5; color: #404040; }
.prose .aw-flow figcaption { margin-top: 20px; font-size: 14px; color: #737373; }
@media (max-width: 640px) { .prose .aw-flow { padding: 24px 14px 18px; } }
