/* Article additions; the existing blog's styles.css supplies the design system. */
.tutorial-page .article-shell { width: min(920px, 100%); }
.tutorial-page .article-heading { padding-bottom: 45px; }
.article-kicker { margin: 0 0 20px; color: var(--signal-soft); font: 10px/1.6 "SFMono-Regular", Consolas, monospace; letter-spacing: .14em; }
.tutorial-page h1 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.5; overflow-wrap: anywhere; }
.tutorial-page .lede { max-width: 720px; margin: 22px 0 28px; font-size: 16px; }
.local-preview { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 16px; background: var(--surface); color: var(--ink); }
.skip-link:focus { top: 10px; }
.tutorial-prose { min-width: 0; }
.tutorial-prose h2, .tutorial-prose h3 { scroll-margin-top: 105px; overflow-wrap: anywhere; }
.tutorial-prose h3 { margin: 36px 0 15px; }
.tutorial-prose a { color: var(--signal-soft); text-decoration: underline; text-decoration-color: rgba(255,128,112,.45); text-underline-offset: 4px; overflow-wrap: anywhere; }
.tutorial-prose a:hover { text-decoration-color: currentColor; }
.tutorial-prose a:focus-visible, .tutorial-prose summary:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--signal-soft); outline-offset: 5px; }
.tutorial-prose :not(pre) > code { border: 1px solid rgba(255,128,112,.14); border-radius: 3px; padding: .12em .35em; color: #eed7d0; background: #211616; font-size: .86em; overflow-wrap: anywhere; }
.tutorial-prose .code-card { min-width: 0; max-width: 100%; margin: 28px 0 36px; }
.tutorial-prose pre { max-width: 100%; tab-size: 4; }
.tutorial-prose ol { padding-left: 1.7em; margin: 0 0 28px; }
.tutorial-prose ol li { padding-left: .35em; margin-bottom: 9px; }
.tutorial-prose ol li::marker { color: var(--signal-soft); }
.article-contents { margin: 0 0 42px; padding: 20px 23px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; line-height: 1.8; }
.article-contents summary { color: var(--ink); cursor: pointer; font-weight: 600; }
.article-contents .toc > ul { margin: 16px 0 0; }
.article-contents .toc li { margin: 0 0 10px; }
.article-contents .toc li::before { top: .7em; }
.article-contents .toc ul ul { display: none; }
.article-contents .toc a { color: var(--muted); text-decoration: none; }
.article-contents .toc a:hover { color: var(--signal-soft); }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 30px 0; border: 1px solid rgba(255,128,112,.22); scrollbar-color: #78514a #161616; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; line-height: 1.85; letter-spacing: 0; }
.table-wrap th, .table-wrap td { padding: 15px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { background: #211414; color: var(--ink); font-weight: 600; }
.table-wrap td { background: #141215; }
.table-wrap th:last-child, .table-wrap td:last-child { border-right: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { min-width: 125px; color: #e6d9d5; }
.diagram { margin: 40px 0; padding: 22px; border: 1px solid rgba(255,128,112,.25); background: #121113; }
.figure-label, .shot-label { margin-bottom: 22px; color: var(--signal-soft); font: 10px/1.7 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.flow { display: flex; align-items: stretch; gap: 10px; }
.node { flex: 1; min-width: 0; padding: 22px 12px; border: 1px solid rgba(255,128,112,.3); background: #201819; text-align: center; box-shadow: 4px 4px 0 rgba(217,26,1,.12); }
.node b { display: block; color: var(--ink); font-size: 14px; }
.node span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.arrow { display: flex; align-items: center; color: var(--signal-soft); font-size: 20px; }
.diagram figcaption, .shot figcaption { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.9; letter-spacing: .01em; }
.shot { margin: 44px 0; padding: 16px; border: 1px solid var(--line); background: #121113; }
.shot-label { margin-bottom: 14px; }
.shot > a { display: block; line-height: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.related { margin-top: 65px; }
.related li { font-size: 14px; }
.service-note { margin-top: 42px !important; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 820px) {
  .tutorial-page .article-heading { padding-top: 24px; padding-bottom: 35px; }
  .tutorial-page .article-meta { flex-wrap: wrap; gap: 10px; line-height: 1.8; }
  .local-preview { display: none; }
  .tutorial-page .lede { font-size: 15px; }
  .tutorial-prose h2, .tutorial-prose h3 { scroll-margin-top: 88px; }
}
@media (max-width: 560px) {
  .tutorial-page .site-header { padding: 0 16px; gap: 10px; }
  .tutorial-page .brand-logo { width: 113px; }
  .tutorial-page .header-nav { gap: 12px; letter-spacing: 0; font-size: 10px; }
  .tutorial-page .article-shell { padding-left: 20px; padding-right: 20px; }
  .tutorial-page h1 { font-size: 29px; line-height: 1.55; }
  .desktop-title-break { display: none; }
  .article-contents { padding: 17px; }
  .diagram { padding: 18px; }
  .flow { flex-direction: column; align-items: stretch; gap: 12px; }
  .node { padding: 20px 14px; }
  .node b { font-size: 15px; }
  .node span { font-size: 12px; }
  .arrow { justify-content: center; transform: rotate(90deg); line-height: 1; }
  .shot { padding: 10px; }
  .table-wrap table { min-width: 560px; }
  .tutorial-prose .code-card { box-shadow: 4px 4px 0 rgba(217,26,1,.2); }
  .tutorial-prose .code-card pre { padding: 18px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reading-progress span { transition: none; }
}

.guide-languages{display:flex;gap:18px;margin-top:24px;font-size:12px;color:var(--muted)}.guide-languages a[aria-current=page]{color:var(--signal-soft)}.guide-languages a:hover{text-decoration:underline}@media(max-width:560px){.tutorial-page .header-nav a:last-child{display:none}.tutorial-page .header-actions{gap:12px}.tutorial-page .language-switch{max-width:110px}.tutorial-page .header-nav{font-size:11px}}

.diagram .branches { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.diagram .branch { padding: 18px 14px; border: 1px solid rgba(255,128,112,.3); background: #201819; }
.diagram .branch b { color: var(--ink); font-size: 14px; }
.diagram .branch p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
@media (max-width: 700px) {
  .diagram .branches { grid-auto-flow: row; grid-auto-columns: auto; }
}
