@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&display=swap');

/* Blog post: Tulvo MCP launch. Figma "Blog post / Tulvo MCP (beta)" (1:1152 desktop, 1:1882 mobile) */

.post {
  --post-bg-page: #FAFAFA;
  --post-bg-surface: #FFFFFF;
  --post-bg-muted: #F6F6F7;
  --post-bg-inverse: #0A0A0A;
  --post-bg-accent-subtle: #E6F4FE;
  --post-accent: #0588F0;
  --post-text: #0A0A0A;
  --post-text-2: #525252;
  --post-text-3: #737373;
  --post-text-accent: #0573CC;
  --post-text-inverse-muted: #A3A3A3;
  --post-border: #E5E5E5;
  --post-border-strong: #D4D4D4;
  --post-green: #16A34A;
  --post-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--post-bg-page);
  color: var(--post-text);
}

.post a:focus-visible,
.post button:focus-visible,
.post summary:focus-visible,
.launch-banner a:focus-visible,
.launch-banner button:focus-visible,
.whats-new-card:focus-visible {
  outline: 2px solid var(--post-accent, #0588F0);
  outline-offset: 2px;
  border-radius: 8px;
}

.post .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ reading progress */
.post-progress {
  position: sticky;
  top: 64px;
  z-index: 900;
  height: 3px;
  background: transparent;
}

.post-progress-fill {
  height: 100%;
  width: 100%;
  background: var(--post-accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ------------------------------------------------------------------ header */
.post-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 64px 32px 48px;
  text-align: center;
}

.post-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
  list-style: none;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: var(--post-text-3);
}

.post-breadcrumb li { white-space: nowrap; }

.post-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
}

.post-breadcrumb a:hover { color: var(--post-text); }

.post-breadcrumb [aria-current] {
  color: var(--post-text);
  font-weight: 500;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.post-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--post-border);
  border-radius: 999px;
  background: var(--post-bg-surface);
  color: var(--post-text-2);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.post-pill-beta {
  border-color: var(--post-bg-accent-subtle);
  background: var(--post-bg-accent-subtle);
  color: var(--post-text-accent);
}

.post-title {
  max-width: 960px;
  /* 32px on phones, 64px from ~1040px, no jump at the tablet breakpoint */
  font-size: clamp(32px, 4.6vw + 16px, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.post-dek {
  max-width: 720px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.09px;
  color: var(--post-text-2);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.post-author img {
  width: 48px;
  height: 48px;
  border: 2px solid var(--post-border);
  border-radius: 50%;
  object-fit: cover;
}

.post-author-name {
  display: block;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
  font-weight: 500;
}

.post-author-role {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--post-text-accent);
}

.post-vr {
  width: 1px;
  height: 32px;
  background: var(--post-border);
}

.post-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--post-bg-muted);
  color: var(--post-text-2);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.post-chip svg { width: 14px; height: 14px; }

.post-share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-share-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-3);
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--post-border);
  border-radius: 50%;
  background: var(--post-bg-surface);
  color: var(--post-text);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.post-share-btn:hover { border-color: var(--post-border-strong); }
.post-share-btn img, .post-share-btn svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ featured video */
.post-featured {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.post-featured video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: var(--post-bg-muted);
  object-fit: cover;
}

/* Featured image (the posts that use a picture instead of a video) */
.post-featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--post-bg-muted);
}

/* ------------------------------------------------------------------ three-column body */
.post-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 320px;
  justify-content: center;
  align-items: start;
  gap: 48px;
  padding: 0 32px 96px;
}

.post-rail-left,
.post-rail-right {
  position: sticky;
  top: 96px;
}

.post-rail-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* TOC */
.post-toc-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-3);
  padding-top: 4px;
}

.post-toc-head strong { font-weight: 500; }

.post-toc-track {
  height: 3px;
  margin: 12px 0;
  border-radius: 999px;
  background: var(--post-border);
  overflow: hidden;
}

.post-toc-fill {
  height: 100%;
  background: var(--post-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}

.post-toc ol { list-style: none; }

.post-toc a {
  display: block;
  padding: 8px 8px 8px 12px;
  border-left: 2px solid var(--post-border);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: var(--post-text-3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.post-toc a:hover { color: var(--post-text); }

.post-toc a[aria-current="true"] {
  border-left-color: var(--post-text);
  color: var(--post-text);
  font-weight: 500;
}

/* Mobile/tablet "On this page" bar */
.post-tocbar {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 800;
  background: var(--post-bg-surface);
  border-top: 1px solid var(--post-border);
  border-bottom: 1px solid var(--post-border);
}

.post-tocbar summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.post-tocbar summary::-webkit-details-marker { display: none; }

.post-tocbar-current {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 400;
  color: var(--post-text-3);
}

.post-tocbar-current span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-tocbar-current svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--post-text);
  transition: transform 0.2s ease;
}

.post-tocbar[open] .post-tocbar-current svg { transform: rotate(180deg); }

.post-tocbar ol {
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 24px 12px;
}

.post-tocbar a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--post-text-2);
}

.post-tocbar a[aria-current="true"] {
  color: var(--post-text);
  font-weight: 500;
}

/* ------------------------------------------------------------------ article typography */
.post-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.post-article > * { margin: 0; }

.post-article h2 {
  position: relative;
  padding-top: 32px;
  scroll-margin-top: 96px;
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.75px;
  font-weight: 500;
}

.post-article h2 .post-anchor {
  position: absolute;
  left: -28px;
  bottom: 0;
  padding: 0 6px;
  color: var(--post-text-3);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.post-article h2:hover .post-anchor,
.post-article h2 .post-anchor:focus-visible { opacity: 1; }

.post-article p,
.post-article li {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.09px;
  color: var(--post-text-2);
}

.post-article strong {
  font-weight: 600;
  color: var(--post-text);
}

.post-article .post-lead-strong {
  font-weight: 600;
  color: var(--post-text);
}

.post-article a:not([class]) {
  color: var(--post-text-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-article a:not([class]):hover { color: var(--post-text); }

.post-article code {
  font-family: var(--post-mono);
  font-size: 0.9em;
}

/* Numbered and bullet lists */
.post-steps,
.post-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.post-steps { counter-reset: post-step; }

.post-steps li,
.post-bullets li {
  position: relative;
  padding-left: 38px;
  color: var(--post-text);
}

.post-steps li::before {
  counter-increment: post-step;
  content: counter(post-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--post-bg-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text);
}

.post-bullets li { padding-left: 18px; color: var(--post-text-2); }

.post-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--post-text);
}

/* ------------------------------------------------------------------ cards and blocks */
.post-takeaways {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 40px;
  border-radius: 16px;
  background: var(--post-bg-muted);
}

.post-takeaways h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
}

.post-takeaways h2 svg { width: 18px; height: 18px; color: var(--post-accent); }

.post-takeaways ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.post-takeaways li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
}

.post-check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--post-bg-accent-subtle);
  color: var(--post-text-accent);
}

.post-check svg { width: 12px; height: 12px; stroke-width: 3; }

/* Fact sheet */
.post-facts {
  border: 1px solid var(--post-border);
  border-radius: 16px;
  background: var(--post-bg-surface);
  overflow: hidden;
}

.post-facts table {
  width: 100%;
  border-collapse: collapse;
}

.post-facts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--post-bg-muted);
}

.post-facts-head h3 {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
  font-weight: 500;
}

.post-facts-head span {
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-3);
}

.post-facts thead { display: none; }

.post-facts tbody tr:first-child th,
.post-facts tbody tr:first-child td { border-top: 1px solid var(--post-border); }

.post-facts th,
.post-facts td {
  padding: 14px 20px;
  border-top: 1px solid var(--post-border);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-align: left;
  vertical-align: top;
}

.post-facts th {
  width: 186px;
  padding-right: 0;
  font-weight: 500;
  color: var(--post-text);
}

.post-facts td { color: var(--post-text-2); }

.post-facts td a {
  font-family: var(--post-mono);
  color: var(--post-text-accent);
}

/* Connector URL */
.post-connector {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--post-border-strong);
  border-radius: 16px;
  background: var(--post-bg-surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.post-connector > svg { width: 16px; height: 16px; flex: none; color: var(--post-text-3); }

.post-connector code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--post-mono);
  font-size: 16px;
  color: var(--post-text);
}

.post-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 8px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.post-copy-pill svg { width: 16px; height: 16px; }

.is-copied .post-copy-pill { background: var(--post-green); }

/* Data tables */
.post-table {
  border: 1px solid var(--post-border);
  border-radius: 16px;
  background: var(--post-bg-surface);
  overflow: hidden;
}

.post-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.post-table thead th {
  padding: 12px 16px;
  background: var(--post-bg-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-3);
  text-align: left;
}

.post-table th:first-child { width: 166px; }
.post-table th:nth-child(2) { width: 316px; }

.post-table tbody th,
.post-table td {
  padding: 16px;
  border-top: 1px solid var(--post-border);
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  text-align: left;
  vertical-align: top;
  color: var(--post-text-2);
}

.post-table tbody th { font-weight: 500; color: var(--post-text); }

.post-table code { font-size: 13px; overflow-wrap: anywhere; }

/* Step heading */
.post-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  scroll-margin-top: 96px;
  font-weight: 500;
}

.post-step-num {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
  font-size: 16px;
  line-height: 24px;
}

.post-step-kicker {
  align-self: end;
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-accent);
  letter-spacing: 0.24px;
}

.post-step-title {
  align-self: start;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: -0.36px;
  color: var(--post-text);
}

/* Figure in a browser window */
.post-figure {
  border: 1px solid var(--post-border);
  border-radius: 16px;
  background: var(--post-bg-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.post-figure-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--post-bg-muted);
}

.post-figure-dots {
  display: flex;
  flex: none;
  gap: 8px;
}

.post-figure-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--post-border-strong);
}

.post-figure-address {
  flex: 1;
  min-width: 0;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--post-bg-surface);
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-3);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-figure-address a:hover { color: var(--post-text); }

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--post-bg-muted);
}

/* Callouts */
.post-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 20px 20px;
  border: 1px solid #D6E7FB;
  border-radius: 16px;
  background: #F1F7FE;
  --callout-icon: #0573CC;
}

.post-callout-warning { border-color: #F5E2B8; background: #FFF8EB; --callout-icon: #D97706; }
.post-callout-soon { border-color: #E2DAFF; background: #F6F3FF; --callout-icon: #6229FF; }

.post-callout-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--callout-icon);
}

.post-callout-icon svg { width: 16px; height: 16px; }

.post-callout .post-callout-icon { border-color: inherit; }

.post-callout-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.post-article .post-callout-text p {
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
}

.post-article .post-callout-text p:first-child {
  font-weight: 500;
  color: var(--post-text);
}

/* Dark prompt and code blocks */
.post-prompt,
.post-code {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 16px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
}

.post-prompt { padding: 20px 24px 24px; }
.post-code { gap: 8px; padding: 16px 24px 20px; }

.post-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-prompt-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-inverse-muted);
}

.post-prompt-label svg { width: 16px; height: 16px; }

.post-copy-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}

.post-copy-ghost svg { width: 14px; height: 14px; }
.post-copy-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }

.post-article .post-prompt p {
  font-size: 18px;
  line-height: 28px;
  color: #FFFFFF;
}

.post-code pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--post-mono);
  font-size: 14px;
  line-height: 22px;
}

/* How it works flow */
.post-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 16px;
  background: var(--post-bg-muted);
}

.post-flow-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--post-border);
  border-radius: 8px;
  background: var(--post-bg-surface);
  text-align: center;
  animation: post-flow-step 6600ms ease-in-out infinite;
}

.post-flow-step:nth-of-type(1) { animation-delay: 0ms; }
.post-flow-step:nth-of-type(2) { animation-delay: 1650ms; }
.post-flow-step:nth-of-type(3) { animation-delay: 3300ms; }
.post-flow-step:nth-of-type(4) { animation-delay: 4950ms; }

.post-flow-arrow {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--post-text-3);
}

.post-flow svg { width: 20px; height: 20px; }

.post-flow strong {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: inherit;
}

.post-flow small {
  font-size: 12px;
  line-height: 16px;
  color: inherit;
  opacity: 0.7;
}

/* Hold 1200 ms, move 450 ms: one step is 1650 ms of a 6600 ms loop */
@keyframes post-flow-step {
  0% { background: var(--post-bg-surface); border-color: var(--post-border); color: var(--post-text); }
  6.8%, 25% { background: var(--post-bg-inverse); border-color: var(--post-bg-inverse); color: #FFFFFF; }
  31.8%, 100% { background: var(--post-bg-surface); border-color: var(--post-border); color: var(--post-text); }
}

/* Inline CTA */
.post-inline-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: var(--post-bg-accent-subtle);
}

.post-inline-cta div { flex: 1; }

.post-article .post-inline-cta p { font-size: 14px; line-height: 20px; }

.post-article .post-inline-cta p:first-child {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--post-text);
}

.post-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.post-btn:hover { transform: translateY(-1px); }
.post-btn svg { width: 16px; height: 16px; }

.post-btn-light {
  background: #FFFFFF;
  color: var(--post-text);
  box-shadow: none;
}

.post-btn-outline {
  border-color: var(--post-border);
  background: #FFFFFF;
  color: var(--post-text);
  box-shadow: none;
}

.post-btn-ghost-dark {
  border-color: var(--post-text-3);
  background: transparent;
  box-shadow: none;
}

.post-btn-lg { height: 48px; padding: 0 20px; font-size: 16px; line-height: 24px; }

/* Use case and benefit cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--post-border);
  border-radius: 16px;
  background: var(--post-bg-surface);
}

.post-card h3 {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
}

.post-article .post-card p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
}

.post-card-prompt {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--post-bg-muted);
}

.post-card-prompt svg { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--post-text-3); }

.post-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--post-bg-accent-subtle);
  color: var(--post-text-accent);
}

.post-card-icon svg { width: 18px; height: 18px; }

/* FAQ (reuses .faq-item from faq.css) */
.post-faq .faq-item {
  border-top: 0;
  border-bottom: 1px solid var(--post-border);
  background: none;
}

.post-article .post-faq .faq-answer { max-width: none; color: var(--post-text-2); }

.post-faq .faq-question,
.post-faq .faq-item[open] .faq-question { padding: 22px 0; }
.post-faq .faq-item[open] .faq-question { padding-bottom: 10px; }

.post-faq .faq-question h3 {
  flex: 1;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
  font-weight: 500;
}

.post-article .post-faq .faq-answer {
  padding: 0 0 22px;
  font-size: 16px;
  line-height: 24px;
}

.post-faq .faq-item::details-content {
  transition: height 300ms ease-out, content-visibility 300ms ease-out allow-discrete;
  height: 0;
  overflow: clip;
}

.post-faq .faq-item[open]::details-content { height: auto; }

@supports (interpolate-size: allow-keywords) {
  .post-faq { interpolate-size: allow-keywords; }
}

/* Feedback card */
.post-feedback {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--post-border);
  border-radius: 16px;
  background: var(--post-bg-surface);
}

.post-feedback-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--post-bg-accent-subtle);
  color: var(--post-text-accent);
}

.post-feedback-icon svg { width: 20px; height: 20px; }

.post-feedback div { flex: 1; }

.post-article .post-feedback h2 {
  padding: 0;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
}

.post-article .post-feedback p { font-size: 14px; line-height: 20px; }

/* Glossary */
.post-glossary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-glossary div { font-size: 16px; line-height: 24px; color: var(--post-text-2); }
.post-glossary dt { display: inline; font-weight: 600; color: var(--post-text); }
.post-glossary dt::after { content: "."; }
.post-glossary dd { display: inline; margin: 0; }

/* End share, sources, cite */
.post-endshare {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--post-border);
  border-bottom: 1px solid var(--post-border);
}

.post-article .post-endshare p,
.post-article .post-sources {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: var(--post-text-3);
}

.post-cite {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--post-bg-muted);
}

.post-cite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-3);
}

.post-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--post-text-accent);
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  cursor: pointer;
}

.post-link-btn svg { width: 12px; height: 12px; }

/* Touch: a 44px tap area around the small text buttons without moving them */
@media (pointer: coarse) {
  .post-link-btn { position: relative; }
  .post-link-btn::after { content: ""; position: absolute; inset: -14px -8px; }
}

.post-article .post-cite p {
  font-family: var(--post-mono);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}

/* Author box */
.post-author-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  background: var(--post-bg-muted);
}

.post-author-box img {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-box div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-author-box .post-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: var(--post-text-3);
}

.post-article .post-author-box .post-author-name { font-size: 18px; line-height: 26px; color: var(--post-text); }
.post-article .post-author-box .post-author-role { font-size: 14px; line-height: 20px; color: var(--post-text-accent); font-weight: 500; }
.post-article .post-author-box p { font-size: 16px; line-height: 24px; }

.post-author-box a.post-link-btn { font-size: 14px; line-height: 20px; }
.post-author-box a.post-link-btn svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ right rail cards */
.post-brief,
.post-source {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border-radius: 16px;
  background: var(--post-bg-muted);
}

.post-source { gap: 12px; padding: 24px; }

.post-brief-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.048px;
  font-weight: 500;
}

.post-brief-title svg { width: 18px; height: 18px; color: var(--post-accent); }

.post-brief > p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: var(--post-text-2);
}

.post-brief-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--post-bg-surface);
}

.post-brief-prompt p {
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-2);
}

.post-brief-apps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.post-brief-apps a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--post-border);
  border-radius: 10px;
  background: var(--post-bg-surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.post-brief-apps a:hover { border-color: var(--post-border-strong); transform: translateY(-1px); }
.post-brief-apps img { width: 20px; height: 20px; }

.post-brief-note {
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-3);
}

.post-source-row {
  display: flex;
  gap: 12px;
}

.post-source-row img { flex: none; width: 24px; height: 24px; }

.post-source-row strong {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.post-source-row span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-2);
}

.post-source a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--post-border);
  border-radius: 8px;
  background: var(--post-bg-surface);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.post-source a svg { width: 14px; height: 14px; }

.post-mini-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 16px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
}

.post-mini-cta .post-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-inverse-muted);
}

.post-mini-cta strong {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
  font-weight: 500;
}

.post-mini-cta p {
  font-size: 14px;
  line-height: 20px;
  color: var(--post-text-inverse-muted);
}

.post-mini-cta .post-btn { width: 100%; }

/* Rail cards repeated inside the article for narrow screens */
.post-inline-only { display: none; }

/* ------------------------------------------------------------------ pricing banner */
.post-pricing {
  padding: 0 32px 96px;
}

.post-pricing-panel {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 20px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
}

.post-pricing-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.post-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.post-pricing h2 {
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -1.1px;
  font-weight: 500;
}

.post-pricing-main > p {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.09px;
  color: var(--post-text-inverse-muted);
}

.post-pricing-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-pricing-proof {
  display: flex;
  gap: 16px;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-inverse-muted);
}

.post-pricing-proof li { display: flex; align-items: center; gap: 4px; }
.post-pricing-proof svg { width: 14px; height: 14px; }

.post-pricing-steps {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 12px;
  width: 400px;
}

.post-pricing-steps > p {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.24px;
  color: var(--post-text-inverse-muted);
}

.post-pricing-steps ol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  counter-reset: pricing-step;
}

.post-pricing-steps li {
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.post-pricing-steps li::before {
  counter-increment: pricing-step;
  content: counter(pricing-step);
  position: absolute;
  left: 16px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--post-accent);
  font-size: 12px;
  font-weight: 500;
}

.post-pricing-steps strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.post-pricing-steps span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 20px;
  color: var(--post-text-inverse-muted);
}

/* ------------------------------------------------------------------ related posts */
.post-related {
  padding: 96px 32px;
}

.post-related-inner {
  max-width: 1104px;
  margin: 0 auto;
}

.post-related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.post-related-head h2 {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.75px;
}

.post-related-head a {
  font-size: 12px;
  color: var(--post-text-accent);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}

.post-related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-related-cover {
  height: 198px;
  border-radius: 16px;
  background: linear-gradient(90deg, #E6F4FE, #FBFBFC);
  transition: box-shadow 220ms ease;
}

.post-related-grid li:nth-child(2) .post-related-cover { background: linear-gradient(90deg, #F6F6F7, #E6F4FE); }
.post-related-grid li:nth-child(3) .post-related-cover { background: linear-gradient(90deg, #FFF6E6, #FBFBFC); }

.post-related-card:hover .post-related-cover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); }

.post-related-kicker {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--post-text-accent);
}

.post-related-card h3 {
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.18px;
  transition: color 220ms ease;
}

.post-related-card:hover h3 { color: var(--post-text-accent); }

.post-related-card span:last-child {
  font-size: 12px;
  line-height: 16px;
  color: var(--post-text-3);
}

/* ------------------------------------------------------------------ toast and mobile sticky bar */
.post-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--post-bg-inverse);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.post-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.post-sticky {
  display: none;
}

/* ------------------------------------------------------------------ responsive */
/* Laptops (1280-1439): slimmer rails, so the article stays ~670-720px wide instead of dropping to 560px
   the moment the left TOC rail appears */
@media (min-width: 1280px) and (max-width: 1439px) {
  .post-body {
    grid-template-columns: 200px minmax(0, 720px) 280px;
    gap: 32px;
  }
}

@media (max-width: 1279px) {
  .post-body {
    grid-template-columns: minmax(0, 720px) 280px;
    gap: 32px;
  }

  .post-rail-left { display: none; }
  .post-rail-right { top: 126px; }
  .post-tocbar { display: block; }
}

@media (max-width: 1023px) {
  /* Share wraps to its own row here, so the divider before it would dangle */
  .post-meta > .post-vr { display: none; }

  .post-body {
    grid-template-columns: minmax(0, 720px);
    padding: 24px 24px 64px;
  }

  .post-rail-right { display: none; }
  .post-inline-only { display: flex; }

  .post-featured { padding: 0 24px 32px; }
  .post-featured video, .post-featured img { border-radius: 14px; }

  .post-pricing-panel {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 24px;
    gap: 32px;
  }

  .post-pricing-steps { width: auto; }
  .post-pricing { padding: 0 24px 64px; }

  .post-related { padding: 64px 24px; }
  .post-related-grid { grid-template-columns: minmax(0, 1fr); }

  .post-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    display: block;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--post-border);
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }

  .post-sticky.is-visible { transform: none; }
  .post-sticky .post-btn { width: 100%; height: 48px; font-size: 16px; }
  .post-toast { bottom: 96px; }
}

@media (max-width: 720px) {
  .post-header { padding: 40px 24px 32px; gap: 20px; }

  .post-dek { font-size: 16px; line-height: 24px; }

  .post-meta { flex-direction: column; gap: 16px; }
  .post-meta > .post-vr { display: none; }
  .post-byline { justify-content: center; }
  .post-byline > .post-vr { display: none; }

  .post-article h2 .post-anchor { display: none; }

  .post-takeaways { padding: 24px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }

  .post-flow { flex-direction: column; align-items: stretch; }
  .post-flow-arrow { align-self: center; transform: rotate(90deg); }

  .post-inline-cta,
  .post-feedback { flex-direction: column; align-items: stretch; }
  .post-feedback-icon { display: none; }

  .post-author-box { flex-direction: column; padding: 24px; }

  .post-connector code { font-size: 14px; }
  .post-copy-pill span { display: none; }
  .post-copy-pill { padding: 8px 12px; }

  .post-pricing h2 { font-size: 32px; line-height: 38px; }

  /* Tables become stacked cards */
  .post-table { border: 0; border-radius: 0; background: none; overflow: visible; }
  .post-table table, .post-table tbody, .post-table tr, .post-table th, .post-table td { display: block; width: auto !important; }
  .post-table thead { display: none; }
  .post-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .post-table tr {
    padding: 16px;
    border: 1px solid var(--post-border);
    border-radius: 12px;
    background: var(--post-bg-surface);
  }
  .post-table tbody th, .post-table td { padding: 0; border: 0; }
  .post-table tbody th { margin-bottom: 8px; font-size: 16px; line-height: 24px; }
  .post-table td + td { margin-top: 8px; }
  .post-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--post-text-3);
  }

  .post-facts th, .post-facts td { display: block; width: auto; padding: 0 20px; border: 0; }
  .post-facts tr { display: block; padding: 14px 0; border-top: 1px solid var(--post-border); }
  .post-facts th { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-flow-step { animation: none; }
  .post-toc a, .post-related-cover, .post-related-card h3, .post-btn, .post-sticky, .post-toast { transition: none; }
  .post-faq .faq-item::details-content { transition: none; }
}
