/**
 * CMS HTML articles — SHARED stylesheet (one file for all uploaded HTML articles)
 *
 * Loaded in the HTML-article iframe after css/article-guide.css (see js/main.js buildCmsHtmlSrcdoc).
 * Deploy: commit + push; Vercel serves /css/cms-html-shared.css for every CMS page.
 *
 * Workflow: paste new article HTML in chat; assistant extends this file if needed; you paste body HTML only in admin.
 *
 * Hub-and-spoke diagrams:
 * - .hub-container + .spoke-node (fixed positions) + optional SVG .hub-spokes-svg (dashed lines)
 * - or .hub-wheel with .hub-spokes > .hub-spoke.hl-* and .hub-node-slot.hns-0…5
 * - .type-cards + .tcard.tc-blue|tc-green|tc-purple (integration type summaries)
 * - .dir-grid / .dir-card-* (inbound vs outbound) or .dir-card.dc-* (sync vs async lists)
 * - .timeline / .tl-* / .tb-* (integration timing visuals), .code-block + .ck/.cs/… (manual Apex)
 * Inline <svg><line> spokes are allowed by the backend sanitizer; use viewBox on <svg>.
 */

html.cms-html-embed .article-html-guide .blog {
  padding: 0;
  margin: 0;
  max-width: none;
}

html.cms-html-embed .article-html-guide .blog * {
  box-sizing: border-box;
}

html.cms-html-embed body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: transparent;
}

.article-html-guide .blog .wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Pills & hero */
.article-html-guide .blog .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.article-html-guide .blog .pill-green {
  background: var(--green-bg, #e1f5ee);
  color: var(--green-text, #085041);
}

.article-html-guide .blog .pill-blue {
  background: var(--blue-bg, #e6f1fb);
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .pill-purple {
  background: var(--purple-bg, #eeedfe);
  color: var(--purple-text, #3c3489);
}

.article-html-guide .blog .hero-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--green-text, #085041);
  background: var(--green-bg, #e1f5ee);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.article-html-guide .blog h1.hero-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: var(--color-text-primary);
}

.article-html-guide .blog .hero-sub {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.article-html-guide .blog .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.article-html-guide .blog hr.divider {
  border: none;
  border-top: 0.5px solid var(--color-border-tertiary);
  margin-bottom: 2rem;
}

.article-html-guide .blog .section {
  margin-bottom: 2rem;
}

.article-html-guide .blog .section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 0.4rem;
}

.article-html-guide .blog h2.section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.article-html-guide .blog p.body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: 0.85rem;
}

/* Callout boxes */
.article-html-guide .blog .box {
  padding: 1.1rem 1.4rem;
  border-radius: 12px;
  margin: 1.1rem 0;
  border: 0.5px solid;
}

.article-html-guide .blog .box-analogy {
  background: var(--green-bg, #e1f5ee);
  border-color: var(--green-border, #9fe1cb);
  color: var(--green-text, #085041);
}

.article-html-guide .blog .box-tip {
  background: var(--amber-bg, #faeeda);
  border-color: var(--amber-border, #fac775);
  color: var(--amber-text, #633806);
}

.article-html-guide .blog .box-warn {
  background: var(--red-bg, #fcebeb);
  border-color: var(--red-border, #f7c1c1);
  color: var(--red-text, #501313);
}

.article-html-guide .blog .box-info {
  background: var(--blue-bg, #e6f1fb);
  border-color: var(--blue-border, #b5d4f4);
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .box .box-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  opacity: 0.75;
}

.article-html-guide .blog .box p {
  font-size: 14px;
  line-height: 1.75;
  margin-top: 0.3rem;
}

.article-html-guide .blog .box code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

/* ESB flow (step-through diagrams) */
.article-html-guide .blog .esb-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-secondary);
}

.article-html-guide .blog .esb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-html-guide .blog .esb-node {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.article-html-guide .blog .en-blue {
  background: var(--blue-bg, #e6f1fb);
  color: var(--blue-text, #0c447c);
  border: 0.5px solid var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .en-green {
  background: var(--green-bg, #e1f5ee);
  color: var(--green-text, #085041);
  border: 0.5px solid var(--green-border, #9fe1cb);
}

.article-html-guide .blog .en-amber {
  background: var(--amber-bg, #faeeda);
  color: var(--amber-text, #633806);
  border: 0.5px solid var(--amber-border, #fac775);
}

.article-html-guide .blog .en-purple {
  background: var(--purple-bg, #eeedfe);
  color: var(--purple-text, #3c3489);
  border: 0.5px solid var(--purple-border, #cecbf6);
}

.article-html-guide .blog .en-red {
  background: var(--red-bg, #fcebeb);
  color: var(--red-text, #501313);
  border: 0.5px solid var(--red-border, #f7c1c1);
}

.article-html-guide .blog .esb-arrow {
  font-size: 16px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.article-html-guide .blog .esb-label {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Three pillars (ESB capabilities grid) */
.article-html-guide .blog .pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (max-width: 520px) {
  .article-html-guide .blog .pillars {
    grid-template-columns: 1fr;
  }
}

.article-html-guide .blog .pillar {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 0.5px solid;
}

.article-html-guide .blog .pillar-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-html-guide .blog .pillar-body {
  font-size: 12px;
  line-height: 1.65;
}

.article-html-guide .blog .pillar.p-blue {
  background: var(--blue-bg, #e6f1fb);
  border-color: var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .pillar.p-blue .pillar-title {
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .pillar.p-blue .pillar-body {
  color: var(--blue-mid, #185fa5);
}

.article-html-guide .blog .pillar.p-green {
  background: var(--green-bg, #e1f5ee);
  border-color: var(--green-border, #9fe1cb);
}

.article-html-guide .blog .pillar.p-green .pillar-title {
  color: var(--green-text, #085041);
}

.article-html-guide .blog .pillar.p-green .pillar-body {
  color: var(--green-mid, #0f6e56);
}

.article-html-guide .blog .pillar.p-amber {
  background: var(--amber-bg, #faeeda);
  border-color: var(--amber-border, #fac775);
}

.article-html-guide .blog .pillar.p-amber .pillar-title {
  color: var(--amber-text, #633806);
}

.article-html-guide .blog .pillar.p-amber .pillar-body {
  color: var(--amber-mid, #854f0b);
}

/* Type cards (Data / Process / UI integration overview) */
.article-html-guide .blog .type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  margin: 1.25rem 0;
}

@media (max-width: 560px) {
  .article-html-guide .blog .type-cards {
    grid-template-columns: 1fr;
  }
}

.article-html-guide .blog .tcard {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 0.5px solid;
}

.article-html-guide .blog .tcard-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.article-html-guide .blog .tcard-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.article-html-guide .blog .tcard-body {
  font-size: 12px;
  line-height: 1.65;
}

.article-html-guide .blog .tcard-example {
  font-size: 11px;
  margin-top: 0.6rem;
  font-style: italic;
  opacity: 0.85;
}

.article-html-guide .blog .tcard.tc-blue {
  background: var(--blue-bg, #e6f1fb);
  border-color: var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .tcard.tc-blue .tcard-title {
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .tcard.tc-blue .tcard-body,
.article-html-guide .blog .tcard.tc-blue .tcard-example {
  color: var(--blue-mid, #185fa5);
}

.article-html-guide .blog .tcard.tc-blue .tcard-tag {
  background: var(--blue-border, #b5d4f4);
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .tcard.tc-green {
  background: var(--green-bg, #e1f5ee);
  border-color: var(--green-border, #9fe1cb);
}

.article-html-guide .blog .tcard.tc-green .tcard-title {
  color: var(--green-text, #085041);
}

.article-html-guide .blog .tcard.tc-green .tcard-body,
.article-html-guide .blog .tcard.tc-green .tcard-example {
  color: var(--green-mid, #0f6e56);
}

.article-html-guide .blog .tcard.tc-green .tcard-tag {
  background: var(--green-border, #9fe1cb);
  color: var(--green-text, #085041);
}

.article-html-guide .blog .tcard.tc-purple {
  background: var(--purple-bg, #eeedfe);
  border-color: var(--purple-border, #cecbf6);
}

.article-html-guide .blog .tcard.tc-purple .tcard-title {
  color: var(--purple-text, #3c3489);
}

.article-html-guide .blog .tcard.tc-purple .tcard-body,
.article-html-guide .blog .tcard.tc-purple .tcard-example {
  color: var(--purple-mid, #534ab7);
}

.article-html-guide .blog .tcard.tc-purple .tcard-tag {
  background: var(--purple-border, #cecbf6);
  color: var(--purple-text, #3c3489);
}

/* Inbound / outbound direction cards */
.article-html-guide .blog .dir-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (max-width: 520px) {
  .article-html-guide .blog .dir-grid {
    grid-template-columns: 1fr;
  }
}

.article-html-guide .blog .dir-card {
  padding: 1.25rem;
  border-radius: 12px;
  border: 0.5px solid;
}

.article-html-guide .blog .dir-card-blue {
  background: var(--blue-bg, #e6f1fb);
  border-color: var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .dir-card-green {
  background: var(--green-bg, #e1f5ee);
  border-color: var(--green-border, #9fe1cb);
}

.article-html-guide .blog .dir-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-html-guide .blog .dir-card-blue .dir-title {
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .dir-card-green .dir-title {
  color: var(--green-text, #085041);
}

.article-html-guide .blog .dir-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

.article-html-guide .blog .dir-node {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.article-html-guide .blog .dn-blue {
  background: var(--blue-border, #b5d4f4);
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .dn-sf {
  background: var(--blue-text, #0c447c);
  color: #fff;
}

.article-html-guide .blog .dn-green {
  background: var(--green-border, #9fe1cb);
  color: var(--green-text, #085041);
}

.article-html-guide .blog .dn-sfg {
  background: var(--green-text, #085041);
  color: #fff;
}

.article-html-guide .blog .dir-arrow {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.article-html-guide .blog .dir-body {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 0.5rem;
}

.article-html-guide .blog .dir-card-blue .dir-body {
  color: var(--blue-mid, #185fa5);
}

.article-html-guide .blog .dir-card-green .dir-body {
  color: var(--green-mid, #0f6e56);
}

.article-html-guide .blog .dir-examples {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-html-guide .blog .dir-ex {
  font-size: 12px;
  font-style: italic;
}

.article-html-guide .blog .dir-card-blue .dir-ex {
  color: var(--blue-mid, #185fa5);
}

.article-html-guide .blog .dir-card-green .dir-ex {
  color: var(--green-mid, #0f6e56);
}

/* Sync vs async decision cards (reuse .dir-grid; .dc-* differs from inbound .dir-card-blue) */
.article-html-guide .blog .dir-card.dc-blue {
  padding: 1.2rem;
  background: var(--blue-bg, #e6f1fb);
  border-color: var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .dir-card.dc-green {
  padding: 1.2rem;
  background: var(--green-bg, #e1f5ee);
  border-color: var(--green-border, #9fe1cb);
}

.article-html-guide .blog .dc-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-html-guide .blog .dir-card.dc-blue .dc-title {
  color: var(--blue-text, #0c447c);
}

.article-html-guide .blog .dir-card.dc-green .dc-title {
  color: var(--green-text, #085041);
}

.article-html-guide .blog .dc-body {
  font-size: 13px;
  line-height: 1.65;
}

.article-html-guide .blog .dir-card.dc-blue .dc-body {
  color: var(--blue-mid, #185fa5);
}

.article-html-guide .blog .dir-card.dc-green .dc-body {
  color: var(--green-mid, #0f6e56);
}

.article-html-guide .blog .dir-card .dc-list {
  margin-top: 0.6rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: disc;
}

.article-html-guide .blog .dir-card.dc-blue .dc-list li {
  font-size: 12px;
  color: var(--blue-mid, #185fa5);
  line-height: 1.5;
}

.article-html-guide .blog .dir-card.dc-green .dc-list li {
  font-size: 12px;
  color: var(--green-mid, #0f6e56);
  line-height: 1.5;
}

/* Integration timing timeline (sync vs async) */
.article-html-guide .blog .timeline {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-secondary);
}

.article-html-guide .blog .tl-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.article-html-guide .blog .tl-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.75rem;
}

.article-html-guide .blog .tl-actor {
  font-size: 12px;
  font-weight: 500;
  width: 90px;
  flex-shrink: 0;
  color: var(--color-text-primary);
}

.article-html-guide .blog .tl-track {
  flex: 1;
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.article-html-guide .blog .tl-block {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 0 8px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.article-html-guide .blog .tl-wait {
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  padding: 0 8px;
  opacity: 0.5;
  border: 0.5px dashed;
}

.article-html-guide .blog .tl-gap {
  flex: 1;
}

.article-html-guide .blog .tb-blue {
  background: var(--blue-bg, #e6f1fb);
  color: var(--blue-text, #0c447c);
  border: 0.5px solid var(--blue-border, #b5d4f4);
}

.article-html-guide .blog .tb-green {
  background: var(--green-bg, #e1f5ee);
  color: var(--green-text, #085041);
  border: 0.5px solid var(--green-border, #9fe1cb);
}

.article-html-guide .blog .tb-amber {
  background: var(--amber-bg, #faeeda);
  color: var(--amber-text, #633806);
  border: 0.5px solid var(--amber-border, #fac775);
}

.article-html-guide .blog .tb-gray {
  background: var(--color-background-secondary);
  color: var(--color-text-secondary);
  border: 0.5px dashed var(--color-border-tertiary);
}

.article-html-guide .blog .tl-note {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 0.25rem;
  font-style: italic;
}

/* Manual Apex highlights inside dark .code-block (not Prism/Shiki) */
.article-html-guide .blog .code-block {
  background: #2c2c2a;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.1rem 0;
  overflow-x: auto;
}

.article-html-guide .blog .code-block .code-label {
  font-size: 11px;
  font-weight: 500;
  color: #888780;
  margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-html-guide .blog .code-block pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  border: none;
}

.article-html-guide .blog .code-block .ck {
  color: #5dcaa5;
}

.article-html-guide .blog .code-block .cs {
  color: #fac775;
}

.article-html-guide .blog .code-block .cc {
  color: #888780;
}

.article-html-guide .blog .code-block .cf {
  color: #85b7eb;
}

.article-html-guide .blog .code-block .ccl {
  color: #ed93b1;
}

.article-html-guide .blog .code-block .cw {
  color: #fff;
}

/* P2P / architecture diagrams */
.article-html-guide .blog .diagram-wrap {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  border: 0.5px solid var(--color-border-tertiary);
  background: var(--color-background-secondary);
}

.article-html-guide .blog .diagram-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.article-html-guide .blog .diagram-wrap:has(.hub-container) {
  padding: 2rem 1.25rem;
}

.article-html-guide .blog .diagram-wrap:has(.hub-container) .diagram-label {
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-html-guide .blog .p2p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
  justify-items: center;
  margin-bottom: 0.5rem;
}

.article-html-guide .blog .sys-node {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.article-html-guide .blog .sn-blue {
  background: #e6f1fb;
  color: #0c447c;
  border: 0.5px solid #b5d4f4;
}

.article-html-guide .blog .sn-green {
  background: #e1f5ee;
  color: #085041;
  border: 0.5px solid #9fe1cb;
}

.article-html-guide .blog .sn-amber {
  background: #faeeda;
  color: #633806;
  border: 0.5px solid #fac775;
}

.article-html-guide .blog .sn-purple {
  background: #eeedfe;
  color: #3c3489;
  border: 0.5px solid #cecbf6;
}

.article-html-guide .blog .sn-red {
  background: #fcebeb;
  color: #501313;
  border: 0.5px solid #f7c1c1;
}

.article-html-guide .blog .conn-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}

.article-html-guide .blog .conn-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.article-html-guide .blog .conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.article-html-guide .blog .cd-blue {
  background: #0c447c;
}

.article-html-guide .blog .cd-red {
  background: #a32d2d;
}

.article-html-guide .blog .connections-wrap {
  margin: 1rem 0;
}

.article-html-guide .blog .conn-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.article-html-guide .blog .sys-pill {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.article-html-guide .blog .arrow-label {
  font-size: 12px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-html-guide .blog .mesh-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* Hub-and-spoke diagrams (CSS spokes; also ensure inline SVG lines are visible) */
.article-html-guide .blog .diagram-wrap svg {
  display: block;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

/* Hub diagram: .hub-container + positioned .spoke-node + SVG spokes layer */
.article-html-guide .blog .hub-container {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 320px;
  margin: 0 auto;
  overflow: visible;
}

.article-html-guide .blog .hub-container .hub-spokes-svg {
  position: absolute;
  inset: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.article-html-guide .blog .hub-container .hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  margin: 0;
  border-radius: 50%;
  background: #e6f1fb;
  border: 1.5px solid #b5d4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0c447c;
  z-index: 20;
  padding: 4px;
  line-height: 1.25;
  box-sizing: border-box;
}

.article-html-guide .blog .hub-container .spoke-node {
  position: absolute;
  width: 75px;
  min-height: 36px;
  padding: 4px 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  z-index: 30;
  transform: translate(-50%, -50%);
  border: 0.5px solid;
  box-sizing: border-box;
}

.article-html-guide .blog .hub-wheel {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  min-height: 300px;
  margin: 0.75rem auto 0;
  overflow: visible;
}

.article-html-guide .blog .hub-spokes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.article-html-guide .blog .hub-spoke {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0;
  height: 38%;
  margin-left: -1px;
  transform-origin: bottom center;
  border-left: 2px dashed;
  z-index: 0;
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(1) {
  transform: rotate(0deg);
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(2) {
  transform: rotate(60deg);
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(3) {
  transform: rotate(120deg);
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(4) {
  transform: rotate(180deg);
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(5) {
  transform: rotate(240deg);
}

.article-html-guide .blog .hub-spokes .hub-spoke:nth-child(6) {
  transform: rotate(300deg);
}

.article-html-guide .blog .hub-spoke.hl-blue {
  border-color: #85b7eb;
}

.article-html-guide .blog .hub-spoke.hl-green {
  border-color: #5dcaa5;
}

.article-html-guide .blog .hub-spoke.hl-amber {
  border-color: #ef9f27;
}

.article-html-guide .blog .hub-spoke.hl-purple {
  border-color: #b5aef0;
}

.article-html-guide .blog .hub-spoke.hl-pink {
  border-color: #e8a0c8;
}

.article-html-guide .blog .hub-spoke.hl-yellow {
  border-color: #e8d44a;
}

/* Only the radial-layout wheel uses the large hub circle; .hub-container .hub-center is separate */
.article-html-guide .blog .hub-wheel > .hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 108px;
  height: 108px;
  margin-left: -54px;
  margin-top: -54px;
  border-radius: 50%;
  background: #e6f1fb;
  border: 2px solid #85b7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #0c447c;
  padding: 8px;
  line-height: 1.25;
  box-sizing: border-box;
}

.article-html-guide .blog .hub-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.article-html-guide .blog .hub-node-slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: auto;
}

.article-html-guide .blog .hub-node-slot .sys-pill {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.article-html-guide .blog .hub-node-slot.hns-0 {
  transform: rotate(-90deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-0 .sys-pill {
  transform: translate(-50%, -50%) rotate(90deg);
}

.article-html-guide .blog .hub-node-slot.hns-1 {
  transform: rotate(-30deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-1 .sys-pill {
  transform: translate(-50%, -50%) rotate(30deg);
}

.article-html-guide .blog .hub-node-slot.hns-2 {
  transform: rotate(30deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-2 .sys-pill {
  transform: translate(-50%, -50%) rotate(-30deg);
}

.article-html-guide .blog .hub-node-slot.hns-3 {
  transform: rotate(90deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-3 .sys-pill {
  transform: translate(-50%, -50%) rotate(-90deg);
}

.article-html-guide .blog .hub-node-slot.hns-4 {
  transform: rotate(150deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-4 .sys-pill {
  transform: translate(-50%, -50%) rotate(-150deg);
}

.article-html-guide .blog .hub-node-slot.hns-5 {
  transform: rotate(-150deg) translateY(-132px);
}

.article-html-guide .blog .hub-node-slot.hns-5 .sys-pill {
  transform: translate(-50%, -50%) rotate(150deg);
}

.article-html-guide .blog .hub-caption {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .article-html-guide .blog .hub-node-slot.hns-0 {
    transform: rotate(-90deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-node-slot.hns-1 {
    transform: rotate(-30deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-node-slot.hns-2 {
    transform: rotate(30deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-node-slot.hns-3 {
    transform: rotate(90deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-node-slot.hns-4 {
    transform: rotate(150deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-node-slot.hns-5 {
    transform: rotate(-150deg) translateY(-108px);
  }

  .article-html-guide .blog .hub-spoke {
    height: 34%;
  }
}

.article-html-guide .blog .sn-pink {
  background: #fde8f0;
  color: #6b2d4a;
  border: 0.5px solid #e8a0c8;
}

.article-html-guide .blog .sn-yellow {
  background: #fff9e6;
  color: #5c4d00;
  border: 0.5px solid #e8d44a;
}

/* Decision grid */
.article-html-guide .blog .decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.1rem 0;
}

@media (max-width: 520px) {
  .article-html-guide .blog .decision-grid {
    grid-template-columns: 1fr;
  }
}

.article-html-guide .blog .dcard {
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  border: 0.5px solid;
}

.article-html-guide .blog .dcard-green {
  background: #e1f5ee;
  border-color: #9fe1cb;
}

.article-html-guide .blog .dcard-red {
  background: #fcebeb;
  border-color: #f7c1c1;
}

.article-html-guide .blog .dcard-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.article-html-guide .blog .dcard-green .dcard-title {
  color: #085041;
}

.article-html-guide .blog .dcard-red .dcard-title {
  color: #501313;
}

.article-html-guide .blog .dcard ul {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-html-guide .blog .dcard-green li {
  font-size: 13px;
  color: #085041;
  line-height: 1.55;
}

.article-html-guide .blog .dcard-red li {
  font-size: 13px;
  color: #501313;
  line-height: 1.55;
}

/* Comparison tables */
.article-html-guide .blog .ctable {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  font-size: 13px;
}

.article-html-guide .blog .ctable th {
  background: var(--color-background-secondary, #f4f4f4);
  color: var(--color-text-primary);
  font-weight: 500;
  padding: 12px;
  text-align: left;
  border-bottom: 0.5px solid var(--color-border-tertiary, #eee);
}

.article-html-guide .blog .ctable td {
  padding: 12px;
  border-bottom: 0.5px solid var(--color-border-tertiary, #eee);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.article-html-guide .blog .ctable tr:last-child td {
  border-bottom: none;
}

.article-html-guide .blog .ctable .good {
  color: var(--green-text, #085041);
  font-weight: 600;
}

.article-html-guide .blog .ctable .bad {
  color: var(--red-mid, #a32d2d);
  font-weight: 600;
}

/* Flow nodes (older articles) */
.article-html-guide .blog .flow-node {
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  background: var(--color-background-secondary);
}

.article-html-guide .blog .flow-node span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.article-html-guide .blog .fn-green {
  background: var(--green-bg, #e1f5ee);
  color: var(--green-text, #085041);
  border-color: var(--green-border, #5dcaa5);
}

.article-html-guide .blog .fn-blue {
  background: var(--blue-bg, #e6f1fb);
  color: var(--blue-text, #0c447c);
  border-color: var(--blue-border, #85b7eb);
}

.article-html-guide .blog .fn-amber {
  background: var(--amber-bg, #faeeda);
  color: var(--amber-text, #633806);
  border-color: var(--amber-border, #ef9f27);
}

/* Oneliner */
.article-html-guide .blog .oneliner {
  background: #2c2c2a;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  text-align: center;
}

.article-html-guide .blog .oneliner-label {
  font-size: 11px;
  color: #888780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.article-html-guide .blog .oneliner-text {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  line-height: 1.65;
}

/* Interview questions */
.article-html-guide .blog .iq-section {
  background: var(--purple-bg, #eeedfe);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 2.5rem;
  border: 0.5px solid var(--purple-border, #cecbf6);
}

.article-html-guide .blog .iq-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--purple-text, #3c3489);
  margin-bottom: 0.3rem;
}

.article-html-guide .blog .iq-sub {
  font-size: 13px;
  color: var(--purple-mid, #534ab7);
  margin-bottom: 1.25rem;
}

.article-html-guide .blog .iq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.article-html-guide .blog .iq-card {
  background: var(--bg-primary, #fff);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  border: 0.5px solid var(--purple-border, #cecbf6);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.article-html-guide .blog .iq-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple-bg, #eeedfe);
  color: var(--purple-text, #3c3489);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.article-html-guide .blog .iq-q {
  font-size: 14px;
  color: var(--purple-text, #26215c);
  line-height: 1.6;
  flex: 1;
}

.article-html-guide .blog .iq-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 6px;
  vertical-align: middle;
}

.article-html-guide .blog .iq-badge.badge-core {
  background: var(--green-bg, #e1f5ee);
  color: var(--green-text, #085041);
}

.article-html-guide .blog .iq-badge.badge-senior {
  background: var(--amber-bg, #faeeda);
  color: var(--amber-text, #633806);
}

.article-html-guide .blog .iq-badge.badge-advanced {
  background: var(--red-bg, #fcebeb);
  color: var(--red-text, #501313);
}
