/* Tutorials hub + article pages. Uses the tokens from site.css. */
.tut { width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 24px 0; }
.tut--hub { max-width: 1100px; }
.tut h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 6px 0 14px; color: var(--ink); }
.tut h2 { font-size: clamp(22px, 3vw, 27px); line-height: 1.25; letter-spacing: -.01em; margin: 44px 0 12px; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 16px); }
.tut h3 { font-size: 19px; margin: 28px 0 8px; color: var(--ink); }
.tut p, .tut li { line-height: 1.7; }
.tut a { color: var(--primary-hover); }
.tut-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.tut-crumbs a { color: var(--muted); }
.tut-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.tut-pill { background: var(--primary-soft); color: var(--primary-hover); border: 1px solid var(--primary-ring); padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.tut-lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.tut-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.tut-quick { background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.tut-quick ul { margin: 0; padding-left: 20px; }
.tut-quick li { margin: 4px 0; }
.tut-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--primary-soft); border: 1px solid var(--primary-ring); border-radius: 14px; padding: 16px 20px; margin: 24px 0; }
.tut-cta p { margin: 0; }
.tut-cta .btn { white-space: nowrap; color: #fff; text-decoration: none; }
.tut-cta--end { margin-top: 40px; }
.tut-toc { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 20px; background: #fff; margin: 24px 0; }
.tut-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.tut-toc li { margin: 3px 0; break-inside: avoid; }
.prose { color: var(--ink-2, #334155); }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose .steps { counter-reset: s; list-style: none; padding: 0; }
.prose .steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; margin: 10px 0; max-width: none; }
.prose .steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.fig { margin: 26px 0; }
.fig img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); background: #fff; }
.fig figcaption { font-size: 14.5px; color: var(--muted); margin-top: 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: #fff; border: 1px solid var(--rule); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--bg); font-size: 14px; }
.tut-faq details { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.tut-faq summary { font-weight: 600; cursor: pointer; color: var(--ink); }
.tut-faq details p { margin: 8px 0 0; }
.tut-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.tut-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink) !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tut-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tut-card__kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tut-card__title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.tut-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tut-refs ul { font-size: 15px; padding-left: 20px; }
.tut-note { font-size: 14px; color: var(--muted); }
.tut-hero { padding-top: 8px; }
.tut-hero .fig { max-width: 760px; }
.tut-path ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; counter-reset: p; }
.tut-path li { counter-increment: p; }
.tut-path li a { display: inline-block; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: 15px; }
.tut-path li a::before { content: counter(p) ". "; color: var(--primary); font-weight: 700; }
.tut-cat__sub { color: var(--muted); margin-top: -6px; }
/* Preview builds only: marks tutorials that are not live yet. */
.tut-scheduled { display: inline-block; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.tut-preview-bar { background: #FEF3C7; border: 1px solid #FCD34D; color: #92400E; border-radius: 12px; padding: 10px 16px; font-size: 14px; margin: 0 0 16px; }
@media (max-width: 640px) {
  .tut-cta { flex-direction: column; align-items: flex-start; }
  .tut-toc ol { columns: 1; }
  .tut-lead { font-size: 17px; }
}
