.article-block{margin:24px 0;padding:24px;border:1px solid var(--line,#ddd);border-radius:18px;color:var(--ink);overflow-wrap:anywhere}
.article-block h2{font-size:clamp(24px,3vw,32px);line-height:1.25;margin:0 0 16px}
.article-block p:last-child{margin-bottom:0}
.article-block figure{margin:0}
.article-block img{display:block;max-width:100%;height:auto;border-radius:12px}
.article-block figcaption,.article-block-caption{margin:12px 0 0;color:var(--muted);font-size:14px}
.article-block iframe{display:block;width:100%;max-width:100%;border:0;border-radius:12px;background:#fff}
.article-block pre{overflow:auto;padding:20px;border-radius:12px;background:var(--soft,#eee);color:var(--ink);white-space:pre;font-size:14px}
.article-block--focus[style*="--block-accent"]{
  border-inline-start-color:var(--block-accent);
  background:var(--soft,#f6f3ff);                       /* fallback */
}
@supports (background: color-mix(in srgb, red 10%, white)){
  .article-block--focus[style*="--block-accent"]{
    background:color-mix(in srgb, var(--block-accent) 14%, white);
  }
  html[data-theme=dark] .article-block--focus[style*="--block-accent"]{
    background:color-mix(in srgb, var(--block-accent) 18%, #1e1e28);
  }
}
.article-landing mark,.article-body mark,.article-block mark{
    background:var(--mark-bg,#ffe58a);
    color:var(--mark-fg,#28200d);
    font-family: var(--mark-font, inherit);
    border-radius:3px;
    padding:0 .12em
}
html[data-theme=dark] .article-block mark,
html[data-theme=dark] .article-landing mark,
html[data-theme=dark] .article-body mark{
    background:var(--mark-bg-dark,var(--mark-bg,#3d3210));
    color:var(--mark-fg-dark,var(--mark-fg,#ffe58a));
    font-family: var(--mark-font-dark, var(--mark-font, inherit));
}
html[data-theme=dark] .article-block--purple{background:#2e2348;border-color:#7a5bc0}
html[data-theme=dark] .article-block--green{background:#1a3328;border-color:#3d9a6f}
.article-landing strong,.article-body strong,.article-block strong{font-weight:750}
html[data-theme=dark] .article-block pre{background:#2e2740;color:#f7f3ff}
/* Landing page accent colors */
.article-landing .tint-red,
.article-landing .tint-green,
.article-landing .article-download {
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}
.article-block-host:empty{display:none}
@media(max-width:560px){.article-block{padding:18px}.article-block-host{width:calc(100% - 28px)}}

/* Accessible hyperlinks inside reusable article blocks */
.article-block a:not(.button):not(.pill) {
    color: #7040d8;
    text-decoration: underline;
    text-decoration-thickness: 1.6px;
    text-underline-offset: 3px;
}

/* Dark theme */
html[data-theme="dark"] .article-block a:not(.button):not(.pill) {
    color: #e0ccff;
    text-decoration-color: #c6a8ff;
    text-decoration-thickness: 2px;
}

html[data-theme="dark"] .article-block a:not(.button):not(.pill):hover {
    color: #ffffff;
    text-decoration-color: #e0ccff;
}

html[data-theme="dark"] .article-block a:not(.button):not(.pill):focus-visible {
    color: #ffffff;
    outline: 3px solid #e0ccff;
    outline-offset: 4px;
}
