/* Clean Trust: blog article pages (222 articles, 8 languages).
   Visual layer only on the compiled Astro markup: no text, links or headings are hidden, added or reordered.
   Astro scoped rules carry [data-astro-cid] attributes, so a few selectors repeat a class to win. Layout uses logical
   properties throughout so Arabic (dir="rtl") mirrors correctly. Blog cards (.dr-bcard) come from blog-editorial.css. */

/* ---------- Local aliases (tokens only) ---------- */
html[data-design="trust"][data-color-mode] {
  --ta-measure: 46rem;
  --ta-code-bg: var(--tr-surface-2);
  --ta-code-bar: var(--tr-bg-2);
  --ta-space: clamp(48px, 6vw, 72px);
}
html[data-design="trust"][data-color-mode="dark"] {
  --ta-code-bg: var(--dr-panel);
  --ta-code-bar: var(--tr-surface-2);
}

/* ---------- Structure ----------
   About 130 articles render some components without their Astro scope attribute, so the scoped layout rules do not
   reach them. These rules restate that layout (same behaviour as the scoped originals) so every article matches. */
html[data-design="trust"][data-color-mode] .dr-bhero { display: flex; flex-direction: column; }
html[data-design="trust"][data-color-mode] .dr-crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
html[data-design="trust"][data-color-mode] .dr-crumbs li { display: inline-flex; align-items: center; }
html[data-design="trust"][data-color-mode] .dr-bhero-badges { display: flex; flex-wrap: wrap; }
html[data-design="trust"][data-color-mode] .dr-toc summary { cursor: pointer; list-style: none; }
html[data-design="trust"][data-color-mode] .dr-toc summary::-webkit-details-marker { display: none; }
html[data-design="trust"][data-color-mode] .dr-toc--desktop.dr-toc--desktop { display: none; position: sticky; }
@media (min-width: 1024px) {
  html[data-design="trust"][data-color-mode] .dr-toc--desktop.dr-toc--desktop { display: block; }
  html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile { display: none; }
}
html[data-design="trust"][data-color-mode] .dr-callout-body { flex: 1; min-width: 0; }
html[data-design="trust"][data-color-mode] .dr-code { position: relative; }
html[data-design="trust"][data-color-mode] .dr-steps { display: flex; flex-direction: column; list-style: none; }
html[data-design="trust"][data-color-mode] .dr-step { display: flex; align-items: flex-start; }
html[data-design="trust"][data-color-mode] .dr-step-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
html[data-design="trust"][data-color-mode] .dr-step-body { flex: 1; min-width: 0; }
html[data-design="trust"][data-color-mode] .dr-cta-actions { display: flex; flex-wrap: wrap; align-items: center; }
html[data-design="trust"][data-color-mode] .dr-faq-list { display: flex; flex-direction: column; }
html[data-design="trust"][data-color-mode] .dr-faq-item { overflow: hidden; }
html[data-design="trust"][data-color-mode] .dr-faq-item summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; }
html[data-design="trust"][data-color-mode] .dr-faq-item summary::-webkit-details-marker { display: none; }
html[data-design="trust"][data-color-mode] .dr-faq-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
html[data-design="trust"][data-color-mode] .dr-faq-item[open] .dr-faq-icon { transform: rotate(45deg); }
html[data-design="trust"][data-color-mode] .dr-faq-a p { margin: 0; }
html[data-design="trust"][data-color-mode] .dr-bio { display: flex; align-items: flex-start; }
html[data-design="trust"][data-color-mode] .dr-bio-avatar { flex-shrink: 0; overflow: hidden; border-radius: 999px; }
html[data-design="trust"][data-color-mode] .dr-bio-avatar svg { display: block; width: 100%; height: 100%; }
html[data-design="trust"][data-color-mode] .dr-bio-body { flex: 1; min-width: 0; }
html[data-design="trust"][data-color-mode] .dr-bio-stats { display: flex; flex-wrap: wrap; align-items: center; }
@media (max-width: 600px) { html[data-design="trust"][data-color-mode] .dr-bio { flex-direction: column; } }

/* ---------- Page frame ---------- */
html[data-design="trust"][data-color-mode] .dr-article {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 40px) var(--tr-gutter) clamp(64px, 9vw, 112px);
  background: var(--dr-bg);
}
html[data-design="trust"][data-color-mode] .dr-article::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto 0;
  height: min(860px, 100%);
  pointer-events: none;
  background:
    radial-gradient(38% 52% at 88% 8%, var(--tr-wash-2), transparent 70%),
    radial-gradient(34% 46% at 62% 30%, var(--tr-wash-1), transparent 72%),
    radial-gradient(26% 36% at 4% 2%, var(--tr-wash-3), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
html[data-design="trust"][data-color-mode] .dr-article-inner.dr-article-inner {
  max-width: var(--tr-wrap);
  margin-inline: auto;
  gap: 0;
}
@media (min-width: 1024px) {
  html[data-design="trust"][data-color-mode] .dr-article-inner.dr-article-inner {
    grid-template-columns: minmax(0, var(--ta-measure)) minmax(240px, 280px);
    justify-content: space-between;
    column-gap: clamp(40px, 5vw, 80px);
  }
}
@media (max-width: 1023.98px) {
  html[data-design="trust"][data-color-mode] .dr-article-main { width: 100%; max-width: var(--ta-measure); margin-inline: auto; }
}

/* ---------- Breadcrumbs ---------- */
html[data-design="trust"][data-color-mode] .dr-bhero.dr-bhero { gap: 18px; padding-top: 8px; }
html[data-design="trust"][data-color-mode] .dr-crumbs.dr-crumbs ol { gap: 4px 6px; font-size: .875rem; line-height: 1.5; color: var(--dr-muted); }
html[data-design="trust"][data-color-mode] .dr-crumbs.dr-crumbs li { gap: 6px; min-width: 0; }
html[data-design="trust"][data-color-mode] .dr-crumbs.dr-crumbs a {
  color: var(--dr-muted); font-weight: 550; text-decoration: none; border-radius: 6px;
  transition: color .2s;
}
html[data-design="trust"][data-color-mode] .dr-crumbs.dr-crumbs a:hover { color: var(--tr-accent-ink); text-decoration: underline; }
html[data-design="trust"][data-color-mode] .dr-crumbs.dr-crumbs [aria-current="page"] { color: var(--tr-head); font-weight: 600; overflow-wrap: anywhere; }
html[data-design="trust"][data-color-mode] .dr-crumbs .dr-crumb-sep.dr-crumb-sep { color: color-mix(in srgb, var(--dr-muted) 70%, transparent); }

/* ---------- Hero ---------- */
html[data-design="trust"][data-color-mode] .dr-bhero-badges.dr-bhero-badges { gap: 8px; }
html[data-design="trust"][data-color-mode] .dr-bhero-badge.dr-bhero-badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 650; line-height: 1.2; letter-spacing: 0; text-transform: none;
}
html[data-design="trust"][data-color-mode] .dr-bhero-badge--cat.dr-bhero-badge--cat { background: var(--tr-accent-soft); color: var(--tr-accent-ink); border-color: transparent; }
html[data-design="trust"][data-color-mode] .dr-bhero-badge--diff.dr-bhero-badge--diff { background: var(--tr-cyan-soft); color: var(--dr-cyan); border-color: transparent; }
html[data-design="trust"][data-color-mode] .dr-bhero-badge--time.dr-bhero-badge--time {
  background: var(--dr-panel); color: var(--dr-muted); border-color: var(--dr-line);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
}
html[data-design="trust"][data-color-mode] .dr-bhero-title.dr-bhero-title {
  margin: 2px 0 0;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.15rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.036em;
  color: var(--tr-head);
  text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
html[lang^="ja"][data-design="trust"][data-color-mode] .dr-bhero-title.dr-bhero-title,
html[lang^="zh"][data-design="trust"][data-color-mode] .dr-bhero-title.dr-bhero-title,
html[lang^="ar"][data-design="trust"][data-color-mode] .dr-bhero-title.dr-bhero-title { letter-spacing: 0; line-height: 1.3; }
html[lang^="de"][data-design="trust"][data-color-mode] .dr-bhero-title.dr-bhero-title { hyphens: auto; }
html[data-design="trust"][data-color-mode] .dr-bhero-desc.dr-bhero-desc {
  max-width: 40em; margin: 0;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.65; color: var(--dr-muted);
}
html[data-design="trust"][data-color-mode] .dr-bhero-byline.dr-bhero-byline {
  margin: 2px 0 0; font-size: .9375rem; line-height: 1.5; color: var(--dr-muted);
}
html[data-design="trust"][data-color-mode] .dr-bhero-byline.dr-bhero-byline strong { color: var(--tr-head); font-weight: 650; }
html[data-design="trust"][data-color-mode] .dr-bhero-author.dr-bhero-author { color: inherit; text-decoration: none; border-radius: 6px; }
html[data-design="trust"][data-color-mode] .dr-bhero-author.dr-bhero-author:hover strong { color: var(--tr-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
html[data-design="trust"][data-color-mode] .dr-bhero-sep.dr-bhero-sep { margin-inline: 10px; color: var(--dr-line); }
html[data-design="trust"][data-color-mode] .dr-bhero-figure.dr-bhero-figure {
  margin: 10px 0 0; overflow: hidden;
  border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-xl);
  background: var(--tr-surface-2); box-shadow: var(--tr-sh-3);
}
html[data-design="trust"][data-color-mode] .dr-bhero-figure.dr-bhero-figure img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Key takeaways ---------- */
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways {
  position: relative; margin-top: 14px; padding: clamp(20px, 3vw, 28px);
  background: linear-gradient(140deg, var(--tr-accent-soft), color-mix(in srgb, var(--tr-cyan-soft) 70%, var(--dr-panel)));
  border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-lg); box-shadow: var(--tr-sh-1);
}
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways h2 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tr-accent-ink);
}
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways h2::before {
  content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--ta-ic-check) center / contain no-repeat; mask: var(--ta-ic-check) center / contain no-repeat;
}
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways ul { display: grid; gap: 8px; margin: 0; list-style: disc; padding-inline: 1.3em 0; color: var(--dr-ink); }
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways li { margin: 0; line-height: 1.65; padding-inline-start: 4px; }
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways li::marker { color: var(--tr-accent-ink); }
html[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways strong { color: var(--tr-head); font-weight: 650; }
html[data-design="trust"][data-color-mode] {
  --ta-ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --ta-ic-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --ta-ic-list: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E");
}

/* ---------- Table of contents ---------- */
html[data-design="trust"][data-color-mode] .dr-toc.dr-toc {
  background: var(--dr-panel); border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md);
  box-shadow: var(--tr-sh-1); padding: 20px 18px;
}
html[data-design="trust"][data-color-mode] .dr-toc--desktop.dr-toc--desktop {
  top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--dr-line) transparent;
}
html[data-design="trust"][data-color-mode] .dr-toc-heading.dr-toc-heading {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-accent-ink);
}
html[data-design="trust"][data-color-mode] .dr-toc-heading.dr-toc-heading::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
html[data-design="trust"][data-color-mode] .dr-toc-list.dr-toc-list {
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; border-inline-start: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-toc-list.dr-toc-list li { margin: 0; padding: 0; }
html[data-design="trust"][data-color-mode] .dr-toc-list.dr-toc-list a {
  display: block; margin-inline-start: -1px; padding: 6px 10px; padding-inline-start: 14px;
  border: 0; border-inline-start: 2px solid transparent;
  border-radius: 0; border-start-end-radius: 10px; border-end-end-radius: 10px;
  color: var(--dr-muted); font-size: .875rem; font-weight: 500; line-height: 1.45; text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}
html[data-design="trust"][data-color-mode] .dr-toc-list.dr-toc-list a:hover { color: var(--tr-head); background: var(--tr-surface-2); border-inline-start-color: var(--dr-line); }
html[data-design="trust"][data-color-mode] .dr-toc-list.dr-toc-list a.is-active {
  color: var(--tr-accent-ink); background: var(--tr-accent-soft); border-inline-start-color: var(--dr-accent); font-weight: 650;
}
html[data-design="trust"][data-color-mode] .dr-toc-d3.dr-toc-d3 a { padding-inline-start: 28px; font-size: .8125rem; }
/* Mobile / tablet: collapsible card */
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile { margin: 28px 0 0; padding: 0; overflow: hidden; }
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile summary {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 18px;
  font-weight: 650; font-size: 1rem; color: var(--tr-head); border-radius: var(--tr-r-md);
}
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile summary::before {
  content: ""; flex: none; width: 20px; height: 20px; margin: 0; transform: none; background: var(--tr-accent-ink);
  -webkit-mask: var(--ta-ic-list) center / contain no-repeat; mask: var(--ta-ic-list) center / contain no-repeat;
}
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile summary::after {
  content: ""; flex: none; width: 18px; height: 18px; margin-inline-start: auto; background: var(--dr-muted);
  -webkit-mask: var(--ta-ic-chev) center / contain no-repeat; mask: var(--ta-ic-chev) center / contain no-repeat;
  transition: transform .2s var(--tr-ease);
}
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile[open] summary::after { transform: rotate(180deg); }
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile summary:hover { background: var(--tr-surface-2); }
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile .dr-toc-list { margin: 0 18px 18px; }
html[data-design="trust"][data-color-mode] .dr-toc--mobile.dr-toc--mobile .dr-toc-list a { padding-block: 9px; }
/* ---------- Prose ---------- */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose {
  max-width: none; margin: 36px 0 0;
  font-size: 1.0625rem; line-height: 1.8; color: var(--dr-ink);
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  html[data-design="trust"][data-color-mode] .dr-prose.dr-prose { font-size: 1.125rem; }
}
html[lang^="ja"][data-design="trust"][data-color-mode] .dr-prose.dr-prose,
html[lang^="zh"][data-design="trust"][data-color-mode] .dr-prose.dr-prose { line-height: 1.9; font-size: 1.0625rem; line-break: strict; }
html[lang^="ar"][data-design="trust"][data-color-mode] .dr-prose.dr-prose { line-height: 1.9; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose p { margin: 0 0 1.15em; line-height: inherit; color: inherit; }
html[data-design="trust"][data-color-mode] :is(.dr-callout-content, .dr-faq-a, .dr-takeaways, .dr-step-body) p { color: inherit; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose > :first-child { margin-top: 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(h2, h3, h4) {
  color: var(--tr-head); font-family: var(--font-sans); scroll-margin-top: 96px; text-wrap: balance; overflow-wrap: break-word;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose h2 {
  margin: 2.4em 0 .7em; padding: 0; border: 0;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); font-weight: 780; line-height: 1.2; letter-spacing: -.028em;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose h3 {
  margin: 1.9em 0 .55em; font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.35rem); font-weight: 720; line-height: 1.3; letter-spacing: -.016em;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose h4 { margin: 1.6em 0 .5em; font-size: 1.0625rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(h2, h3, h4) + :is(h3, h4) { margin-top: .9em; }
html[lang^="ja"][data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(h2, h3, h4),
html[lang^="zh"][data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(h2, h3, h4),
html[lang^="ar"][data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(h2, h3, h4) { letter-spacing: 0; line-height: 1.4; }
/* Links */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose a:not(.dr-bcard, .dr-cta-btn) {
  color: var(--tr-accent-ink); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, var(--dr-accent) 45%, transparent);
  border-radius: 4px; transition: color .2s, text-decoration-color .2s;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose a:not(.dr-bcard, .dr-cta-btn):hover { color: var(--tr-accent-hover); text-decoration-color: currentColor; text-decoration-thickness: 2px; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose strong { color: var(--tr-head); font-weight: 680; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose a strong { color: inherit; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose em { color: inherit; }
/* Lists */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose :is(ul, ol):not(.dr-steps, .dr-toc-list) { margin: 0 0 1.25em; padding-inline: 1.45em 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose li:not(.dr-step) { margin: 0 0 .55em; padding-inline-start: .3em; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose li > :is(ul, ol) { margin: .55em 0 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose li::marker { color: var(--tr-accent-ink); font-weight: 700; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose ul > li::marker { color: color-mix(in srgb, var(--dr-accent) 80%, var(--dr-cyan)); }
/* Blockquote */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote {
  margin: 1.6em 0; padding: 18px 22px;
  border: 1px solid var(--tr-card-border); border-inline-start: 4px solid var(--dr-accent); border-radius: var(--tr-r-sm);
  background: var(--tr-surface-2); color: var(--tr-head); box-shadow: none;
  font-style: normal; font-weight: 500; quotes: none;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote p { margin: .4em 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote p:first-child { margin-top: 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote p:last-child { margin-bottom: 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote :is(p, strong)::before,
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose blockquote :is(p, strong)::after { content: none; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose hr { margin: 2.6em 0; border: 0; border-top: 1px solid var(--tr-line-soft); }
/* Inline code */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose :not(pre) > code,
html[data-design="trust"][data-color-mode] .dr-takeaways :not(pre) > code,
html[data-design="trust"][data-color-mode] .dr-faq :not(pre) > code {
  padding: .1em .42em; border: 1px solid var(--tr-line-soft); border-radius: 7px;
  background: var(--tr-surface-2); color: var(--tr-head);
  font-family: var(--font-mono); font-size: .86em; font-weight: 500; line-height: 1.5;
  overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html[data-design="trust"][data-color-mode="dark"] .dr-prose.dr-prose :not(pre) > code { background: var(--dr-panel); border-color: var(--dr-line); color: var(--dr-cyan); }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose code::before,
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose code::after { content: none; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose a > code { color: inherit; }

/* Code blocks: wrapped (.dr-code) and bare <pre>, including Shiki output */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code,
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre:not(.dr-code pre) {
  margin: 1.6em 0; border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md);
  background: var(--ta-code-bg) !important; box-shadow: var(--tr-sh-1);
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code { overflow: hidden; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 6px 8px 6px 16px; padding-inline: 16px 8px;
  background: var(--ta-code-bar); border-bottom: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-lang {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-accent-ink);
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-lang::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .7; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-copy {
  display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 4px 14px;
  border: 1px solid var(--dr-line); border-radius: 999px; background: var(--dr-panel); color: var(--tr-head);
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 650; line-height: 1; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-copy:hover { border-color: var(--dr-accent); color: var(--tr-accent-ink); background: var(--dr-panel); }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-copy.is-copied { border-color: var(--dr-accent); color: var(--tr-accent-ink); background: var(--tr-accent-soft); }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre {
  max-width: 100%; margin: 0; padding: 18px 20px; overflow-x: auto;
  direction: ltr; text-align: left; unicode-bidi: isolate;
  font-family: var(--font-mono); font-size: .875rem; line-height: 1.7; tab-size: 2;
  color: var(--tr-head) !important; white-space: pre;
  scrollbar-width: thin; scrollbar-color: var(--dr-line) transparent;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre:not(.dr-code pre) { margin: 1.6em 0; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code pre { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre code {
  display: block; min-width: max-content; padding: 0; border: 0; background: none; color: inherit;
  font-family: inherit; font-size: inherit; font-weight: 400; line-height: inherit; white-space: inherit; overflow-wrap: normal;
}
/* Shiki (github-dark) token colours: keep them in dark, map them to readable light tones in light. */
html[data-design="trust"][data-color-mode="light"] .dr-prose.dr-prose pre span[style*="#B392F0" i] { color: var(--tr-accent-ink) !important; }
html[data-design="trust"][data-color-mode="light"] .dr-prose.dr-prose pre span[style*="#9ECBFF" i] { color: var(--dr-cyan) !important; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre:focus-visible { outline: 3px solid var(--dr-cyan); outline-offset: 2px; }

/* Images & figures */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose img {
  display: block; max-width: 100%; height: auto; margin: 1.6em auto;
  border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md); box-shadow: var(--tr-sh-2);
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose figure { margin-block: 1.8em; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose figure img { margin: 0 auto; }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose figcaption { margin-top: 12px; text-align: center; font-size: .875rem; line-height: 1.55; color: var(--dr-muted); }

/* Tables (core .dr-table look; the Astro scoped rules need the repeated class) */
html[data-design="trust"][data-color-mode] .dr-prose .dr-table-wrap.dr-table-wrap {
  width: 100%; margin: 1.7em 0; overflow-x: auto; container-type: inline-size;
  border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md); background: var(--dr-panel); box-shadow: var(--tr-sh-1);
  scrollbar-width: thin; scrollbar-color: var(--dr-line) transparent;
}
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--dr-ink); border-collapse: separate; border-spacing: 0; }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table caption {
  caption-side: top; padding: 14px 18px; text-align: start; font-style: normal;
  position: sticky; inset-inline-start: 0; max-width: 100cqi; box-sizing: border-box;
  font-size: .875rem; line-height: 1.5; color: var(--dr-muted); border-bottom: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 13px 16px; text-align: start; vertical-align: bottom;
  background: var(--tr-bg-2); color: var(--tr-head);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody td {
  padding: 13px 16px; vertical-align: top; text-align: start;
  border-bottom: 1px solid var(--tr-line-soft); color: var(--dr-ink);
}
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody td:not(.is-highlight) { background: transparent !important; }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody tr:nth-child(2n) { background: color-mix(in srgb, var(--tr-surface-2) 70%, transparent); }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody tr:hover { background: var(--tr-accent-soft); }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody tr:last-child td { border-bottom: 0; }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table tbody td:first-child { color: var(--tr-head); font-weight: 650; }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table .is-highlight { background: var(--tr-accent-soft) !important; }
html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table thead th.is-highlight { color: var(--tr-accent-ink); }
html[data-design="trust"][data-color-mode] .dr-table .dr-yes.dr-yes { color: var(--tr-accent-ink); font-weight: 800; }
html[data-design="trust"][data-color-mode] .dr-table .dr-no.dr-no { color: var(--dr-magenta); font-weight: 800; }
html[data-design="trust"][data-color-mode] .dr-table .dr-cell-link.dr-cell-link {
  color: var(--tr-accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, var(--dr-accent) 45%, transparent); border: 0;
}
html[data-design="trust"][data-color-mode] .dr-table .dr-cell-link.dr-cell-link:hover { color: var(--tr-accent-hover); text-decoration-color: currentColor; }
/* Plain Markdown tables inside prose (base.css makes them a scroll box) */
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose table:not(.dr-table) {
  width: 100%; margin: 1.7em 0; border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md);
  border-collapse: separate; border-spacing: 0; background: var(--dr-panel); box-shadow: var(--tr-sh-1);
  font-size: .9375rem; line-height: 1.55;
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose table:not(.dr-table) th {
  padding: 13px 16px; text-align: start; background: var(--tr-bg-2); color: var(--tr-head);
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose table:not(.dr-table) td { padding: 13px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--tr-line-soft); }
html[data-design="trust"][data-color-mode] .dr-prose.dr-prose table:not(.dr-table) tr:last-child td { border-bottom: 0; }

/* Callouts */
html[data-design="trust"][data-color-mode] .dr-callout.dr-callout {
  --ta-c: var(--dr-cyan); --ta-c-soft: var(--tr-cyan-soft);
  display: flex; gap: 14px; align-items: flex-start;
  margin: 1.6em 0; padding: 18px 20px;
  background: linear-gradient(var(--ta-c-soft), var(--ta-c-soft)), var(--dr-panel);
  border: 1px solid color-mix(in srgb, var(--ta-c) 24%, var(--tr-card-border)); border-radius: var(--tr-r-md);
  box-shadow: none;
}
html[data-design="trust"][data-color-mode] .dr-callout--warning.dr-callout--warning { --ta-c: var(--dr-warning); --ta-c-soft: var(--tr-warn-soft); }
html[data-design="trust"][data-color-mode] .dr-callout--tip.dr-callout--tip { --ta-c: var(--tr-accent-ink); --ta-c-soft: var(--tr-accent-soft); }
html[data-design="trust"][data-color-mode] .dr-callout--danger.dr-callout--danger { --ta-c: var(--dr-magenta); --ta-c-soft: var(--tr-magenta-soft); }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-icon.dr-callout-icon {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0;
  border-radius: 11px; background: var(--dr-panel); color: var(--ta-c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ta-c) 28%, transparent);
  font-size: 1rem; line-height: 1;
}
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-title.dr-callout-title { margin: 4px 0 6px; color: var(--tr-head); font-size: 1rem; font-weight: 700; line-height: 1.45; }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-content.dr-callout-content { color: var(--dr-ink); font-size: .975rem; line-height: 1.7; }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-content p { margin: .35em 0; }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-content p:first-child { margin-top: 0; }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-content p:last-child { margin-bottom: 0; }
html[data-design="trust"][data-color-mode] .dr-callout .dr-callout-body > :first-child:not(.dr-callout-title) { margin-top: 5px; }

/* Numbered step lists */
html[data-design="trust"][data-color-mode] .dr-steps.dr-steps { gap: 14px; margin: 1.6em 0; padding: 0; }
html[data-design="trust"][data-color-mode] .dr-step.dr-step {
  gap: 16px; margin: 0; padding: 18px 20px; padding-inline-start: 18px;
  background: var(--dr-panel); border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md); box-shadow: var(--tr-sh-1);
}
html[data-design="trust"][data-color-mode] .dr-step .dr-step-num.dr-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dr-panel); color: var(--tr-accent-ink); border: 2px solid var(--dr-accent); box-shadow: 0 0 0 5px var(--tr-accent-soft);
  font-family: var(--font-mono); font-size: 1rem; font-weight: 700;
}
html[data-design="trust"][data-color-mode] .dr-step .dr-step-title.dr-step-title { margin: 6px 0 6px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; color: var(--tr-head); }
html[data-design="trust"][data-color-mode] .dr-step .dr-step-desc.dr-step-desc { margin: 0; color: var(--dr-ink); line-height: 1.7; font-size: 1rem; }
html[data-design="trust"][data-color-mode] .dr-step .dr-step-img { border-radius: var(--tr-r-sm); border: 1px solid var(--tr-card-border); }
html[data-design="trust"][data-color-mode] .dr-prose .dr-drvcam-disclaimer { margin-top: 2em; padding-top: 16px; border-top: 1px solid var(--tr-line-soft); color: var(--dr-muted); font-size: .9375rem; line-height: 1.6; }

/* ---------- Closing CTA ---------- */
html[data-design="trust"][data-color-mode] .dr-cta.dr-cta {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--ta-space) 0 0; padding: clamp(24px, 4vw, 40px);
  text-align: start;
  background: linear-gradient(135deg, var(--tr-accent-soft), var(--tr-cyan-soft)), var(--dr-panel);
  border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-xl); box-shadow: var(--tr-sh-2);
}
html[data-design="trust"][data-color-mode] .dr-cta.dr-cta::after {
  content: ""; position: absolute; z-index: -1; inset-inline-end: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  border: 36px solid color-mix(in srgb, var(--dr-panel) 45%, transparent); pointer-events: none;
}
html[data-design="trust"][data-color-mode="dark"] .dr-cta.dr-cta::after { border-color: rgba(125, 216, 236, .05); }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-heading.dr-cta-heading {
  margin: 0 0 10px; max-width: 26ch; font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); font-weight: 780; line-height: 1.18; letter-spacing: -.028em; color: var(--tr-head);
}
html[lang^="ja"][data-design="trust"][data-color-mode] .dr-cta-heading, html[lang^="zh"][data-design="trust"][data-color-mode] .dr-cta-heading,
html[lang^="ar"][data-design="trust"][data-color-mode] .dr-cta-heading { letter-spacing: 0; line-height: 1.4; }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-text.dr-cta-text { max-width: 38em; margin: 0 0 24px; color: var(--dr-ink); line-height: 1.7; }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-actions.dr-cta-actions { gap: 12px 14px; }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn.dr-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .2s var(--tr-ease), box-shadow .2s var(--tr-ease), background-color .2s, border-color .2s, color .2s;
}
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn--primary.dr-cta-btn--primary { background: var(--dr-accent); color: var(--dr-on-accent); box-shadow: var(--tr-sh-btn); }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn--primary.dr-cta-btn--primary:hover { background: var(--tr-accent-hover); color: var(--dr-on-accent); transform: translateY(-1px); box-shadow: var(--tr-sh-btn); }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn--secondary.dr-cta-btn--secondary { background: var(--dr-panel); color: var(--tr-head); border-color: var(--dr-line); box-shadow: var(--tr-sh-1); }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn--secondary.dr-cta-btn--secondary:hover { background: var(--dr-panel); color: var(--tr-accent-ink); border-color: var(--dr-accent); transform: translateY(-1px); box-shadow: var(--tr-sh-1); }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn svg { flex: none; }
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-link.dr-cta-link {
  display: inline-flex; align-items: center; min-height: 44px; margin: 0; margin-inline-start: 8px; padding-inline: 2px;
  color: var(--tr-accent-ink); font-weight: 650; text-decoration: none; border-radius: 8px;
}
html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-link.dr-cta-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) {
  html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn.dr-cta-btn { width: 100%; }
  html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-link.dr-cta-link { margin-inline-start: 0; }
}

/* ---------- FAQ ---------- */
html[data-design="trust"][data-color-mode] .dr-faq.dr-faq { margin: var(--ta-space) 0 0; }
html[data-design="trust"][data-color-mode] .dr-faq.dr-faq > h2,
html[data-design="trust"][data-color-mode] .dr-related.dr-related > h2 {
  margin: 0 0 22px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.95rem); font-weight: 780; line-height: 1.2; letter-spacing: -.028em; color: var(--tr-head);
}
html[lang^="ja"][data-design="trust"][data-color-mode] :is(.dr-faq, .dr-related) > h2, html[lang^="zh"][data-design="trust"][data-color-mode] :is(.dr-faq, .dr-related) > h2,
html[lang^="ar"][data-design="trust"][data-color-mode] :is(.dr-faq, .dr-related) > h2 { letter-spacing: 0; }
html[data-design="trust"][data-color-mode] .dr-faq-list.dr-faq-list { gap: 12px; }
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item {
  background: var(--dr-panel); border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-md); box-shadow: var(--tr-sh-1);
  transition: border-color .2s, box-shadow .2s;
}
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item:hover { border-color: var(--dr-line); }
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item[open] { border-color: color-mix(in srgb, var(--dr-accent) 45%, var(--tr-card-border)); box-shadow: var(--tr-sh-2); }
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item summary { min-height: 60px; padding: 16px 20px; gap: 16px; border-radius: var(--tr-r-md); }
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item summary:focus-visible { outline-offset: -3px; }
html[data-design="trust"][data-color-mode] .dr-faq-item .dr-faq-q.dr-faq-q { color: var(--tr-head); font-size: 1.0625rem; font-weight: 650; line-height: 1.45; }
html[data-design="trust"][data-color-mode] .dr-faq-item .dr-faq-icon.dr-faq-icon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--tr-accent-soft); color: var(--tr-accent-ink);
  font-size: 1.25rem; font-weight: 500; transition: transform .25s var(--tr-ease), background-color .2s, color .2s;
}
html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item[open] .dr-faq-icon { background: var(--dr-accent); color: var(--dr-on-accent); }
html[data-design="trust"][data-color-mode] .dr-faq-item .dr-faq-a.dr-faq-a { padding: 0 20px 20px; color: var(--dr-ink); font-size: 1rem; line-height: 1.75; }
html[data-design="trust"][data-color-mode] .dr-faq-item .dr-faq-a.dr-faq-a p + p { margin-top: .8em; }

/* ---------- Author bio ---------- */
html[data-design="trust"][data-color-mode] .dr-bio.dr-bio {
  gap: 22px; margin: var(--ta-space) 0 0; padding: clamp(22px, 3.5vw, 32px);
  background: var(--dr-panel); border: 1px solid var(--tr-card-border); border-radius: var(--tr-r-xl); box-shadow: var(--tr-sh-2);
}
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-avatar.dr-bio-avatar {
  width: 76px; height: 76px; background: var(--tr-accent-soft); box-shadow: 0 0 0 4px var(--dr-panel), 0 0 0 5px var(--tr-card-border);
}
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-avatar svg rect { fill: var(--tr-accent-soft); }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-avatar svg :is(circle, path) { fill: var(--tr-accent-ink); }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-eyebrow.dr-bio-eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0 0 6px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tr-accent-ink);
}
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-eyebrow.dr-bio-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-name.dr-bio-name { margin: 0 0 2px; font-size: 1.3rem; font-weight: 760; line-height: 1.3; color: var(--tr-head); }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-title.dr-bio-title { margin: 0 0 12px; color: var(--dr-cyan); font-size: .9375rem; font-weight: 600; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-text.dr-bio-text { margin: 0 0 14px; color: var(--dr-ink); font-size: .975rem; line-height: 1.7; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-stats.dr-bio-stats { gap: 8px; margin: 0 0 14px; color: var(--dr-muted); font-size: .875rem; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-stats > span:not(.dr-bio-sep) {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--tr-surface-2); border: 1px solid var(--tr-line-soft);
}
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-stats strong { color: var(--tr-head); font-weight: 750; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-sep.dr-bio-sep { display: none; }
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-link.dr-bio-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--tr-accent-ink); font-size: .9375rem; font-weight: 650; text-decoration: none; border-radius: 8px;
}
html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-link.dr-bio-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) {
  html[data-design="trust"][data-color-mode] .dr-bio.dr-bio { align-items: flex-start; text-align: start; }
  html[data-design="trust"][data-color-mode] .dr-bio .dr-bio-avatar.dr-bio-avatar { width: 64px; height: 64px; }
}

/* ---------- Related articles ---------- */
html[data-design="trust"][data-color-mode] .dr-related.dr-related { margin: var(--ta-space) 0 0; }
html[data-design="trust"][data-color-mode] .dr-related .dr-related-grid.dr-related-grid { gap: 18px; }
/* In the reading column the three cards read better as horizontal rows. */
@media (min-width: 640px) {
  html[data-design="trust"][data-color-mode] .dr-related .dr-related-grid.dr-related-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html[data-design="trust"][data-color-mode] .dr-related a.dr-bcard { flex-direction: row; min-height: 176px; }
  html[data-design="trust"][data-color-mode] .dr-related .dr-bcard-img { flex: 0 0 min(38%, 280px); aspect-ratio: auto; }
  html[data-design="trust"][data-color-mode] .dr-related .dr-bcard-img img { position: absolute; inset: 0; }
  html[data-design="trust"][data-color-mode] .dr-related .dr-bcard-body { justify-content: center; padding: 18px 22px; }
}
/* ---------- Arabic, Japanese, Chinese: no tracking or mono on labels (tracking breaks Arabic joining) ---------- */
html:is([lang^="ar"], [lang^="ja"], [lang^="zh"])[data-design="trust"][data-color-mode] :is(.dr-toc-heading, .dr-takeaways h2, .dr-bio-eyebrow, .dr-code-lang, .dr-bhero-badge, .dr-table thead th, .dr-prose table th) {
  font-family: var(--font-sans) !important; letter-spacing: 0 !important; text-transform: none !important;
}
html:is([lang^="ar"], [lang^="ja"], [lang^="zh"])[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table thead th { font-family: var(--font-sans); letter-spacing: 0; font-size: .8125rem; }
html:is([lang^="ar"], [lang^="ja"], [lang^="zh"])[data-design="trust"][data-color-mode] .dr-takeaways.dr-takeaways h2 { font-family: var(--font-sans); letter-spacing: 0; font-size: .9375rem; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  html[data-design="trust"][data-color-mode] .dr-bhero-figure.dr-bhero-figure { border-radius: var(--tr-r-md); }
  html[data-design="trust"][data-color-mode] .dr-prose.dr-prose pre { padding: 16px; font-size: .8125rem; }
  html[data-design="trust"][data-color-mode] .dr-prose.dr-prose .dr-code-bar { padding-inline: 14px 6px; }
  html[data-design="trust"][data-color-mode] .dr-callout.dr-callout { padding: 16px; gap: 12px; }
  html[data-design="trust"][data-color-mode] .dr-step.dr-step { padding: 16px; gap: 14px; }
  html[data-design="trust"][data-color-mode] .dr-faq-item.dr-faq-item summary { padding: 14px 16px; }
  html[data-design="trust"][data-color-mode] .dr-faq-item .dr-faq-a.dr-faq-a { padding: 0 16px 18px; }
  html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table :is(thead th, tbody td) { padding: 11px 13px; min-width: 8.5em; }
  html[data-design="trust"][data-color-mode] .dr-table.dr-table.dr-table :is(thead th, tbody td):first-child { min-width: 7em; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design="trust"][data-color-mode] :is(.dr-cta-btn, .dr-faq-icon, .dr-toc--mobile summary::after) { transition: none; }
  html[data-design="trust"][data-color-mode] .dr-cta .dr-cta-btn.dr-cta-btn:hover { transform: none; }
}
