/* Migro — shared components.
 *
 * Loaded on every page after brand.css and before the page stylesheet, so a
 * page file only carries what is unique to that page (and the occasional size
 * override of a component below). Component class names are set on blocks via
 * "Additional CSS class(es)"; markup conventions are noted per section.
 */

/* ---------------------------------------------------------------------------
 * Core block defaults we never want
 * ------------------------------------------------------------------------- */
.wp-block-image, .wp-block-video, .wp-block-table, .wp-block-code { margin: 0; }
.wp-block-table td, .wp-block-table th { border: 0; padding: 0; }
.wp-block-table thead, .wp-block-table tfoot { border: 0; }
.wp-block-code code { white-space: pre; overflow-wrap: normal; }
.wp-block-image img { vertical-align: top; }
.wp-block-buttons.is-layout-flex { gap: 12px; }

/* ---------------------------------------------------------------------------
 * Buttons — core/button with a variant class on the block:
 *   btn-primary · btn-ink · btn-secondary · btn-outline · btn-orange
 *   btn-teal · btn-on-dark, plus is-large and has-icon-{download,clock,arrow-left}
 * ------------------------------------------------------------------------- */
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease; white-space: nowrap;
  text-decoration: none; background: none; color: inherit;
}
.wp-block-button.is-large .wp-block-button__link { padding: 16px 28px; }
.btn-primary .wp-block-button__link {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(28,35,48,0.08), 0 8px 20px -6px rgba(28,35,48,0.2);
}
.btn-ink .wp-block-button__link { background: var(--ink); color: #fff; }
.btn-primary .wp-block-button__link:hover,
.btn-ink .wp-block-button__link:hover { background: #000; transform: translateY(-1px); }
.btn-secondary .wp-block-button__link { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary .wp-block-button__link:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn-outline .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline .wp-block-button__link:hover { border-color: var(--ink); }
.btn-orange .wp-block-button__link { background: var(--orange-500); color: #fff; }
.btn-orange .wp-block-button__link:hover { background: #E56A2B; transform: translateY(-1px); }
.btn-teal .wp-block-button__link {
  background: var(--teal-600); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(31,158,149,0.7);
}
.btn-teal .wp-block-button__link:hover { background: #1A897F; transform: translateY(-1px); }
.btn-on-dark .wp-block-button__link { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.12); }
.btn-on-dark .wp-block-button__link:hover { background: rgba(255,255,255,0.12); }

/* Icons can't live in a button's text, so the variant class draws one. */
.wp-block-button[class*="has-icon-"] .wp-block-button__link::before {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px;
  background: currentColor; mask: var(--btn-icon) center / contain no-repeat;
}
.has-icon-download { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E"); }
.has-icon-clock { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.has-icon-arrow-left { --btn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E"); }
.wp-block-button.has-icon-arrow-left .wp-block-button__link::before { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------------
 * Hero — header group .hero-wrap > .container.hero-inner with
 * .hero-kicker (add has-dot for the pulse dot), .hero-title, .hero-sub
 * ------------------------------------------------------------------------- */
.hero-wrap {
  background: linear-gradient(180deg, #FFF4EC 0%, #FFEAE0 100%);
  padding: 80px 0 120px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-wrap::before {
  content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,158,149,0.12), transparent 70%);
  top: -450px; left: -300px; pointer-events: none;
}
.hero-wrap::after {
  content: ""; position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,122,58,0.14), transparent 70%);
  bottom: -350px; right: -250px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 20px;
}
.hero-kicker.has-dot { display: inline-flex; align-items: center; }
.hero-kicker.has-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  margin-right: 10px;
  background: var(--teal-600); box-shadow: 0 0 0 4px rgba(31,158,149,0.18);
}
.hero-title {
  font-family: "Inter Tight", sans-serif; font-size: 64px; font-weight: 800;
  letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px;
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--orange-500); }
.hero-sub {
  font-family: "Inter Tight", sans-serif; font-size: 20px; font-weight: 400;
  color: var(--ink-2); line-height: 1.45; max-width: 640px; margin: 0 auto;
}
.hero-sub b, .hero-sub strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------------
 * Sections — .section > .container > .section-head with
 * .section-eyebrow (or .eyebrow), .section-title (or a plain h2), .section-sub
 * ------------------------------------------------------------------------- */
.section { padding: 120px 0; }
.section.is-flush-top { padding-top: 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-eyebrow, .section-head .eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 16px;
}
.section-eyebrow.is-orange { color: var(--orange-500); }
.section-title, .section-head :where(h2) {
  font-family: "Inter Tight", sans-serif; font-size: 44px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 16px; text-wrap: balance;
}
.section-sub, .section-head :where(p:not(.eyebrow, .section-eyebrow)) {
  font-family: "Inter Tight", sans-serif; font-size: 18px; font-weight: 400;
  color: var(--ink-2); line-height: 1.5; max-width: 620px; margin: 0 auto;
}
.section-sub { text-wrap: balance; }

/* ---------------------------------------------------------------------------
 * FAQ accordion — rendered by the migro/faq block
 * ------------------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-list .faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s ease;
}
.faq-list .faq-item:hover, .faq-list .faq-item[open] { border-color: rgba(31,158,149,0.4); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px;
  font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex: 0 0 auto; color: var(--ink-3); transition: transform 0.2s ease; display: inline-flex; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px 20px;
  font-family: "Inter", sans-serif; font-size: 15px; line-height: 1.6; color: var(--ink-3);
  max-width: 640px;
}
.faq-answer a { color: var(--teal-600); text-decoration: underline; }
@media (max-width: 920px) {
  .faq-item summary { font-size: 16px; padding: 16px 18px; }
  .faq-answer { padding: 0 18px 16px; }
}

/* ---------------------------------------------------------------------------
 * CTA band — dark closing section: .cta-band > .container > .cta-band-inner
 * ------------------------------------------------------------------------- */
.cta-band {
  background: var(--charcoal); color: #fff; padding: 96px 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,122,58,0.18), transparent 70%);
  top: -300px; right: -200px; pointer-events: none;
}
.cta-band::after {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,158,149,0.16), transparent 70%);
  bottom: -250px; left: -150px; pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 {
  font-family: "Inter Tight", sans-serif; font-size: 56px; font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.05; color: #fff;
  margin-bottom: 20px; text-wrap: balance;
}
.cta-band p { font-family: "Inter Tight", sans-serif; font-size: 20px; color: rgba(255,255,255,0.7); margin-bottom: 40px; }

/* ---------------------------------------------------------------------------
 * Window chrome — the three dots on code headers and mock browser bars are
 * drawn here, so those blocks hold only their label text.
 * ------------------------------------------------------------------------- */
.pre-head::before, .payload-head::before, .mock-titlebar::before, .browser-header::before {
  content: ""; flex: 0 0 auto;
  width: var(--dot, 10px); height: var(--dot, 10px); border-radius: 50%;
  background: var(--dot-1, rgba(255,255,255,0.15));
  margin-right: calc(var(--dot-gap, 6px) * 2 + var(--dot, 10px) * 2);
  box-shadow:
    calc(var(--dot, 10px) + var(--dot-gap, 6px)) 0 0 var(--dot-2, var(--dot-1, rgba(255,255,255,0.15))),
    calc((var(--dot, 10px) + var(--dot-gap, 6px)) * 2) 0 0 var(--dot-3, var(--dot-1, rgba(255,255,255,0.15)));
}

/* ---------------------------------------------------------------------------
 * Check list — core/list with class check-list (add is-orange for orange ticks)
 * ------------------------------------------------------------------------- */
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: calc(var(--tick, 14px) + var(--tick-gap, 10px)); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: var(--tick, 14px); height: var(--tick, 14px);
  background: var(--teal-600);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.check-list.is-orange li::before { background: var(--orange-500); }

/* ---------------------------------------------------------------------------
 * Check burst — the confirmation badge on success pages: .check-burst holding
 * a white check icon; the ring and halos are pseudo-elements.
 * ------------------------------------------------------------------------- */
.check-burst { position: relative; width: 96px; height: 96px; margin: 0 auto 32px; }
.check-burst::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--teal-600);
  box-shadow: 0 12px 32px -8px rgba(31,158,149,0.5);
  animation: popIn 0.6s cubic-bezier(0.18,0.89,0.32,1.28) both;
}
.check-burst.has-halo::after {
  content: ""; position: absolute; inset: -20px; border-radius: 50%;
  border: 2px solid rgba(31,158,149,0.3);
  outline: 2px solid rgba(31,158,149,0.2); outline-offset: 18px;
  animation: haloExpand 1.4s ease-out 0.1s both;
}
.check-burst svg { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; }
.check-burst svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.5s ease-out 0.35s forwards; }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes haloExpand { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------------------
 * Next steps card — numbered list of follow-ups on the success pages
 * ------------------------------------------------------------------------- */
.next-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 44px; }
.next-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px dashed var(--line); align-items: start;
}
.next-step:last-child { border-bottom: none; padding-bottom: 4px; }
.next-step .num {
  font-family: "JetBrains Mono", monospace; font-weight: 600; font-size: 14px;
  color: var(--orange-500); background: rgba(240,122,58,0.1);
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.04em;
}
.next-step h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.next-step p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.next-step p a { color: var(--teal-600); font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Doc layout — terms, privacy, refund, docs, developers.
 *   .doc-hero > .container.doc-hero-inner (.crumb, h1, .lede, .meta > .tag)
 *   .container > .doc-wrap > nav.toc + article.content
 * Flavours on .doc-wrap: is-legal (numbered TOC, "01" headings) and
 * is-reference (grouped TOC, code blocks, alerts, step cards, tables).
 * ------------------------------------------------------------------------- */
html:has(.doc-wrap) { scroll-behavior: smooth; scroll-padding-top: 100px; }
.doc-hero {
  background: linear-gradient(180deg, #FFF4EC 0%, #FFEAE0 100%);
  padding: 72px 0; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.doc-hero::before {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,158,149,0.1), transparent 70%);
  top: -400px; left: -200px; pointer-events: none;
}
.doc-hero-inner { position: relative; z-index: 2; }
.doc-hero-inner.has-visual { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.doc-hero .crumb {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: 18px;
}
.doc-hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.doc-hero h1 em { font-style: normal; color: var(--orange-500); }
.doc-hero .lede { font-family: "Inter Tight", sans-serif; font-size: 18px; color: var(--ink-2); line-height: 1.5; max-width: 640px; margin-bottom: 20px; }
.doc-hero-inner.has-visual .lede { max-width: 520px; }
.doc-hero .meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em;
}
.doc-hero .meta .tag {
  padding: 4px 10px; border-radius: 99px;
  background: rgba(31,158,149,0.1); color: var(--teal-600);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}

.doc-wrap {
  display: grid; grid-template-columns: 240px 1fr; gap: 64px;
  padding: 72px 0 120px; align-items: start;
}
.toc {
  position: sticky; top: 88px; font-size: 13px;
  max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px;
}
.toc ul, .toc ol { list-style: none; }
.toc a {
  display: block; padding: 7px 12px; color: var(--ink-3);
  border-left: 2px solid transparent; font-size: 13px; line-height: 1.4;
  transition: all 0.15s; text-decoration: none;
}
.toc a:hover { color: var(--ink); border-left-color: var(--line); background: rgba(0,0,0,0.02); }
.toc a.active { color: var(--doc-accent, var(--teal-600)); border-left-color: var(--doc-accent, var(--teal-600)); font-weight: 600; }

.content { max-width: 760px; }
.content :where(h2) { font-weight: 700; letter-spacing: -0.025em; display: flex; gap: 14px; scroll-margin-top: 100px; }
.content :where(h3) { font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.content :where(h4) { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.content :where(p) { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.content :where(ul, ol) { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.content :where(ul, ol) > li {
  font-size: 14px; color: var(--ink-2); line-height: 1.6;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.content :where(ul) > li::before {
  content: "→"; font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--doc-accent, var(--teal-600));
}
.content :where(a) { color: var(--teal-600); font-weight: 500; }

/* Legal flavour */
:where(.is-legal) .toc-title {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
:where(.is-legal) .toc ol { counter-reset: toc; }
:where(.is-legal) .toc li { counter-increment: toc; margin-bottom: 2px; }
:where(.is-legal) .toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--ink-3); margin-right: 10px; opacity: 0.6;
}
:where(.is-legal) .toc a.active::before { color: var(--doc-accent, var(--teal-600)); opacity: 1; }
:where(.is-legal) .content :where(h2) {
  font-size: 26px; margin: 56px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--line); align-items: baseline;
}
:where(.is-legal) .content :where(h2:first-of-type) { margin-top: 0; padding-top: 0; border-top: none; }
:where(.is-legal) .content h2 .num {
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--doc-accent, var(--teal-600));
  font-weight: 500; letter-spacing: 0.04em;
}
:where(.is-legal) .content :where(h3) { font-size: 18px; margin: 28px 0 10px; }
:where(.is-legal) .content :where(p) { margin-bottom: 16px; }
:where(.is-legal) .content :where(ul) { margin-bottom: 16px; }
:where(.is-legal) .content :where(ul) > li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; }
:where(.is-legal) .content :where(ul) > li::before { flex: 0 0 auto; margin-top: 3px; }

/* Shared by the legal pages: icon callouts and the dark contact card */
:where(.doc-wrap) .callout {
  margin: 24px 0; padding: 22px 26px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
:where(.doc-wrap) .callout .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(31,158,149,0.18); color: var(--teal-600);
  display: inline-flex; align-items: center; justify-content: center;
}
:where(.doc-wrap) .callout .label, :where(.doc-wrap) .contact-card .label {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-600); font-weight: 600; margin-bottom: 4px;
}
:where(.doc-wrap) .contact-card .label { color: rgba(255,255,255,0.5); }
:where(.doc-wrap) .callout h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
:where(.doc-wrap) .callout p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 0; }
:where(.doc-wrap) .contact-card {
  margin: 24px 0; padding: 28px 32px;
  background: var(--ink); color: #fff; border-radius: 18px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
}
:where(.doc-wrap) .contact-card .ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
:where(.doc-wrap) .contact-card h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin-bottom: 6px; }
:where(.doc-wrap) .contact-card p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 4px; line-height: 1.5; }
:where(.doc-wrap) .contact-card p:last-child { margin-bottom: 0; }
:where(.doc-wrap) .contact-card a { color: var(--teal-400); font-weight: 500; }

/* Reference flavour */
:where(.is-reference) .toc-group { margin-bottom: 24px; }
:where(.is-reference) .toc-group-title {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 600;
  padding: 0 12px; margin-bottom: 6px;
}
:where(.is-reference) .toc li { margin-bottom: 1px; }
.docs-section { margin-bottom: 72px; }
.docs-section:last-child { margin-bottom: 0; }
:where(.is-reference) .content :where(h2) {
  font-size: 28px; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line); align-items: center;
}
.content h2 .section-tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-600); font-weight: 600;
  background: rgba(31,158,149,0.08); border: 1px solid rgba(31,158,149,0.2);
  padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
:where(.is-reference) .content :where(h3) { font-size: 19px; margin: 32px 0 12px; }
:where(.is-reference) .content :where(h4) { margin: 0 0 8px; }
:where(.is-reference) .content :where(p) { margin-bottom: 14px; }
:where(.is-reference) .content :where(ul, ol) { margin-bottom: 20px; }
:where(.is-reference) .content :where(li) { padding: 11px 16px 11px 44px; position: relative; }
:where(.is-reference) .content :where(ul) > li::before { position: absolute; left: 18px; top: 13px; }
:where(.is-reference) .content :where(ol) { counter-reset: ol; }
:where(.is-reference) .content :where(ol) > li { counter-increment: ol; }
:where(.is-reference) .content :where(ol) > li::before {
  content: counter(ol, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600;
  color: var(--orange-500);
  position: absolute; left: 16px; top: 13px;
}
.content .wp-block-image img {
  display: block; max-width: 100%; height: auto;
  margin: 24px auto; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px -12px rgba(28,35,48,0.18);
}
.content code {
  font-family: "JetBrains Mono", monospace; font-size: 12.5px;
  background: var(--off-white); color: var(--orange-500);
  padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line);
  white-space: nowrap;
}
.content .wp-block-code {
  background: var(--charcoal); color: rgba(255,255,255,0.85);
  border-radius: 14px; overflow: hidden; margin: 20px 0;
}
.pre-head {
  background: #0b0d11; border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 18px; display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: "JetBrains Mono", monospace; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  --dot: 9px; --dot-gap: 5px; --dot-1: rgba(255,255,255,0.12);
}
.content .wp-block-code code {
  display: block; padding: 20px 24px; background: transparent; color: inherit;
  border: none; border-radius: 0; white-space: pre; font-size: 13px; line-height: 1.65;
}
.docs-alert {
  border-radius: 12px; padding: 18px 20px; margin: 20px 0;
  display: flex; gap: 14px; align-items: flex-start;
}
.docs-alert.is-intro { margin-bottom: 40px; }
.docs-alert .ic { flex: 0 0 auto; margin-top: 2px; }
.docs-alert-body h4 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.docs-alert-body p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.docs-alert-body p:last-child { margin-bottom: 0; }
.docs-alert-body ul { margin: 6px 0 0; }
.docs-alert-body ul li { background: transparent; border: none; padding: 3px 0; font-size: 13.5px; }
.docs-alert-body ul li::before { content: "·"; color: inherit; opacity: 0.5; }
.docs-alert.info { background: rgba(31,158,149,0.06); border: 1px solid rgba(31,158,149,0.2); color: var(--ink-2); }
.docs-alert.info h4, .docs-alert.info .ic { color: var(--teal-600); }
.docs-alert.warning { background: rgba(240,122,58,0.06); border: 1px solid rgba(240,122,58,0.2); color: var(--ink-2); }
.docs-alert.warning h4, .docs-alert.warning .ic { color: var(--orange-500); }
.step-cards { display: flex; flex-direction: column; gap: 1px; margin: 20px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.step-cards .step-card { background: #fff; padding: 20px 24px; display: flex; gap: 24px; align-items: center; }
.step-card .num {
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 20px;
  color: rgba(240,122,58,0.35); flex: 0 0 32px; text-align: center; line-height: 1; margin: 0;
}
.step-card h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.step-card p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.docs-table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.docs-table th, .docs-table td {
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
  color: var(--ink-2); line-height: 1.55;
}
.docs-table thead th {
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--off-white);
}
.docs-table tbody tr:last-child td { border-bottom: none; }
.docs-table td:first-child { white-space: nowrap; }

@media (max-width: 1024px) {
  .doc-wrap { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .is-reference .toc { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .doc-hero-inner.has-visual { grid-template-columns: 1fr; }
  .doc-hero-inner.has-visual > :last-child { display: none; }
}
@media (max-width: 720px) {
  .doc-hero h1 { font-size: 40px; }
}
