/* Widget documentation uses the same palette and shell as the marketing pages. */
.widget-page .detail-hero { padding-top: 46px; border-bottom: 1px solid var(--line); }
.widget-page .hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 70px; }
.widget-page .intro { color: var(--muted); font-size: 18px; line-height: 1.8; margin: 0 0 20px; }
.widget-page .meta { color: var(--muted); font-size: 12px; line-height: 1.8; }
.widget-page .platform-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.widget-page .preview { margin: 0; min-width: 0; background: #242336; padding: 28px; border-radius: 24px; border: 1px solid #ffffff08; }
.widget-page .preview img { width: 260px; height: auto; margin-inline: auto; border-radius: 26px; box-shadow: 0 16px 32px #0003; }
.widget-page figcaption { text-align: center; font-size: 11px; line-height: 1.7; color: var(--muted); margin-top: 22px; }
.widget-page .article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 70px; padding-block: 75px; }
.widget-page .toc { position: sticky; top: 110px; border-left: 1px solid var(--line); padding-left: 22px; font-size: 13px; line-height: 1.7; }
.widget-page .toc > p { color: var(--text); font-weight: 650; }
.widget-page .toc ol { padding: 0; list-style: none; display: grid; gap: 14px; margin: 20px 0 0; }
.widget-page .toc a { color: var(--muted); }
.widget-page .toc a:hover { color: var(--accent); }
.widget-page article { min-width: 0; }
.widget-page article section { margin-bottom: 60px; }
.widget-page article h2 { font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -1.2px; }
.widget-page article h3 { font-size: 18px; }
.widget-page article p, .widget-page article li { color: var(--muted); font-size: 16px; line-height: 1.85; }
.widget-page article .eyebrow { color: var(--accent); font-size: 11px; line-height: 1.7; }
.widget-page article a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.widget-page article strong { color: var(--text); font-weight: 600; }
.widget-page .steps { display: block; list-style: none; padding: 0; counter-reset: step; margin: 28px 0; }
.widget-page .steps li { position: relative; counter-increment: step; padding-left: 46px; margin-bottom: 24px; }
.widget-page .steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border: 1px solid #49455f; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--accent); }
.widget-page article .note { padding: 20px 24px; background: #22212e; border: 1px solid #46415e; border-radius: 14px; font-size: 14px; }
.widget-page article .source { font-size: 12px; margin-top: 20px; }
.widget-page .actions { display: grid; gap: 14px; margin-top: 25px; }
.widget-page .action { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.widget-page .action p { margin-bottom: 0; font-size: 15px; }
.widget-page details p { margin-bottom: 25px; font-size: 15px; }
.widget-page article .support { padding: 28px; background: #22212e; border: 1px solid #46415e; border-radius: 18px; margin-bottom: 0; }
.widget-page .support a { display: inline-block; font-size: 14px; }
@media (max-width: 1000px) {
  .widget-page .hero-grid { gap: 35px; }
  .widget-page .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
  .widget-page .preview { padding-inline: 20px; }
}
@media (max-width: 800px) {
  .widget-page .hero-grid, .widget-page .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .widget-page .preview { width: 100%; max-width: 420px; margin: 0 auto; }
  .widget-page .toc { position: static; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .widget-page .toc ol { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .widget-page .article-layout { padding-block: 45px; }
}
@media (max-width: 700px) {
  .widget-page .detail-hero { padding-top: 32px; }
  .widget-page .intro { font-size: 16px; }
  .widget-page article section { margin-bottom: 45px; }
  .widget-page article .support { padding: 22px; }
}
@media print {
  .widget-page .preview, .widget-page .toc, .widget-page .platform-links { display: none; }
  .widget-page .hero-grid, .widget-page .article-layout { display: block; }
  .widget-page article section { margin-bottom: 28px; }
  .widget-page details { break-inside: avoid; }
  .widget-page details::details-content { content-visibility: visible; }
}
