.prose {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.prose > * {
  margin-block: 0;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  margin: 2em 0 0.5em;
  font-size: clamp(1.4rem, 1vw + 1.1rem, 1.9rem);
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.25rem;
}

.prose h4 {
  margin: 1.4em 0 0.3em;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose a {
  color: var(--blue);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose li::marker {
  color: var(--gold-600);
  font-weight: 700;
}

.prose img {
  border-radius: var(--r);
}

.prose hr,
.prose .blk-divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  margin: 2.4em 0;
}

.prose blockquote,
.prose .blk-quote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--gold-50);
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
}

.prose table,
.prose .blk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose th {
  background: var(--blue-50);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose details,
.prose .blk-faq {
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose details + details {
  margin-top: 10px;
}

.prose summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

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

.prose summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 800;
  transition: transform var(--t) var(--ease);
}

.prose details[open] summary::after {
  transform: rotate(45deg);
}

.prose details > :not(summary) {
  padding: 0 18px 16px;
  margin: 0;
}

.prose .blk-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 500;
}

.prose .blk-grid {
  display: grid;
  gap: 16px;
}

.prose .blk-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prose .blk-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prose .blk-card {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 0.95rem;
  line-height: 1.65;
  overflow-wrap: normal;
  hyphens: none;
}

.prose .blk-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.prose .blk-card h3,
.prose .blk-card h4 {
  margin-top: 0;
  font-size: 1.08rem;
  line-height: 1.3;
}

.prose .blk-card p {
  color: var(--muted);
}

.prose .blk-card > * + * {
  margin-top: 0.6em;
}

.prose .blk-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.prose .blk-cta {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 0% 0%, var(--blue-500), var(--blue) 45%, var(--blue-900));
  color: rgba(255, 255, 255, 0.85);
}

.prose .blk-cta h2,
.prose .blk-cta h3 {
  color: #fff;
  margin-top: 0;
}

.prose .blk-cta__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.prose .blk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.prose .blk-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.prose :not(.blk-cta) > .blk-btn--ghost,
.prose p > .blk-btn--ghost {
  background: var(--blue-50);
  color: var(--blue);
  box-shadow: none;
}

.prose .blk-alert {
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  color: var(--blue-800);
  box-shadow: inset 3px 0 0 var(--blue);
}

.prose .blk-alert--warn {
  background: var(--amber-50);
  color: #6b4100;
  box-shadow: inset 3px 0 0 var(--amber);
}

.prose .blk-alert--success {
  background: var(--green-50);
  color: #0b5c41;
  box-shadow: inset 3px 0 0 var(--green);
}

.prose .blk-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.prose .blk-embed,
.prose .blk-pdf {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--blue-950);
  box-shadow: var(--shadow);
}

.prose .blk-embed {
  aspect-ratio: 16 / 9;
}

.prose .blk-pdf {
  aspect-ratio: 3 / 4;
  max-height: 80vh;
  background: var(--bg-2);
}

.prose .blk-embed iframe,
.prose .blk-pdf iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.prose .blk-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.prose .blk-step {
  position: relative;
  padding: 18px 20px 18px 74px;
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.prose .blk-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.prose .blk-step > * + * {
  margin-top: 0.4em;
}

.prose .blk-step h3,
.prose .blk-step h4 {
  margin: 0;
}

.prose .blk-reqs {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.prose .blk-reqs li {
  position: relative;
  padding: 12px 16px 12px 48px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin: 0;
}

.prose .blk-reqs li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.prose .blk-downloads {
  display: grid;
  gap: 10px;
}

.prose .blk-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none;
}

.prose .blk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.prose .blk-stat {
  padding: 18px;
  border-radius: var(--r);
  background: var(--blue-50);
  text-align: center;
}

.prose .blk-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.8rem;
  color: var(--blue);
}

.prose .blk-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-50);
  color: var(--gold-700);
  font-size: 0.78rem;
  font-weight: 700;
}

.prose .blk-muted {
  color: var(--muted);
}

.prose .blk-center {
  text-align: center;
}

@media (max-width: 760px) {
  .prose .blk-grid--2,
  .prose .blk-grid--3,
  .prose .blk-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose .blk-step {
    padding-left: 18px;
    padding-top: 70px;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }
}

.prose--story {
  font-size: 1.08rem;
  line-height: 1.85;
}

.prose--story > p:first-child {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--ink);
  font-weight: 500;
}

.prose--story h2 {
  padding-left: 16px;
  border-left: 4px solid var(--blue);
  font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.65rem);
  line-height: 1.25;
}

.prose--story h3 {
  font-size: 1.3rem;
}

.prose--story ul:not([class]) {
  padding-left: 0;
  list-style: none;
}

.prose--story ul:not([class]) > li {
  position: relative;
  padding-left: 30px;
}

.prose--story ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.66em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(231, 181, 60, 0.35);
}

.prose--story ol:not([class]) {
  padding-left: 0;
  list-style: none;
  counter-reset: story;
}

.prose--story ol:not([class]) > li {
  position: relative;
  padding-left: 36px;
  counter-increment: story;
}

.prose--story ol:not([class]) > li::before {
  content: counter(story);
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
}

.prose--story strong,
.prose--story b {
  color: var(--ink);
}

.prose--story a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.prose--story img,
.prose--story figure img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-sm);
}

.prose--story figure {
  margin: 2em 0;
}

.prose--story figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}
