/* Shared article surfaces; namespaced to preserve the existing home page. */
[hidden] { display: none !important; }
.article-site { margin: 0; color: #1a2332; background: radial-gradient(ellipse at 5% 5%,#0d94880b,transparent 55%),linear-gradient(175deg,#faf8f5,#f0f4f8); min-height: 100vh; font: 16px/1.65 Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif; -webkit-font-smoothing: antialiased; }
.article-site *, .article-home * { box-sizing: border-box; }
.article-site a { color: #0f766e; text-underline-offset: 4px; }
.article-site button,.article-site input,.article-site textarea { font: inherit; }
.article-site button { cursor: pointer; }
.article-site button:disabled { opacity: .55; cursor: wait; }
.article-site :focus-visible,.article-home :focus-visible { outline: 3px solid #14b8a6; outline-offset: 4px; }
.article-shell { width: min(1040px,100% - 40px); margin: auto; }
.article-shell-wide { width: min(1240px,100% - 40px); }
.article-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 28px 0 32px; }
.article-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.35rem; font-weight: 750; color: #1a2332 !important; }
.article-dot { width: 9px; height: 9px; border-radius: 50%; background: #0d9488; box-shadow: 0 0 12px #14b8a640; }
.article-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .85rem; }
.article-nav a { text-decoration: none; padding: 6px 10px; border-radius: 8px; color: #63758b; }
.article-nav a:hover,.article-nav a[aria-current] { background: #0d94880a; color: #0f766e; }
#article-account { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.article-hero { padding: 32px 0 30px; border-bottom: 1px solid #e2e8f0; margin-bottom: 28px; }
.article-eyebrow { margin: 0 0 10px; color: #0f766e; font-size: .73rem; font-weight: 800; letter-spacing: .16em; }
.article-hero h1,.article-manage-heading h1 { margin: 0; font-size: clamp(2rem,5vw,3.2rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.3; }
.article-lead { margin: 16px 0 0; color: #63758b; }
.article-section-meta { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #63758b; font-size: .85rem; }
.article-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.article-card { min-width: 0; border: 1px solid #e2e8f0; border-radius: 20px; background: #ffffffc9; padding: 28px; box-shadow: 0 4px 16px #0f172a04; display: flex; flex-direction: column; transition: border-color .2s,box-shadow .2s; }
.article-card:hover { border-color: #0d948850; box-shadow: 0 8px 24px #0f172a08; }
.article-card-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: #6b7d95; font-size: .78rem; }
.article-card h2,.article-home .article-card h3 { margin: 15px 0 10px; font-size: 1.3rem; line-height: 1.5; overflow-wrap: anywhere; }
.article-card h2 a,.article-home .article-card h3 a { text-decoration: none; color: #1a2332; }
.article-card h2 a:hover,.article-home .article-card h3 a:hover { color: #0f766e; }
.article-card p { margin: 0 0 22px; color: #63758b; line-height: 1.8; font-size: .92rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-read-link { color: #0f766e; font-size: .85rem; font-weight: 700; text-decoration: none; margin-top: auto; }
.article-read-link span { padding-left: 5px; }
.article-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px; margin: 36px 0; font-size: .85rem; color: #63758b; }
.article-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; color: #fff !important; background: #0d9488; text-decoration: none; font-size: .86rem !important; font-weight: 650; cursor: pointer; line-height: 1.6; }
.article-button:hover { background: #0f766e; }
.article-secondary { color: #3d4f63 !important; border-color: #dbe3ec; background: #fff; }
.article-secondary:hover { background: #f0fdfa; border-color: #99d9ce; }
.article-danger { color: #b91c1c !important; background: #fff; border-color: #fecaca; }
.article-danger:hover { background: #fef2f2; }
.article-state { grid-column: 1/-1; border: 1px dashed #cbd5e1; border-radius: 20px; padding: 48px 24px; text-align: center; color: #63758b; background: #ffffff75; }
.article-state h2 { margin: 0 0 10px; color: #3d4f63; font-size: 1.25rem; }
.article-state p { margin: 0 0 20px; }
.article-error { margin: 50px 0; }
.article-error h1 { font-size: clamp(1.5rem,4vw,2rem); color: #1a2332; }
.article-footer { text-align: center; color: #6b7d95; font-size: .78rem; padding: 38px 0; }
.article-footer a { margin-left: 12px; }
.article-back { display: inline-block; margin: 8px 0 22px; font-size: .85rem; text-decoration: none; }
.article-reader { max-width: 860px; margin: 0 auto; padding: clamp(24px,5vw,56px); border: 1px solid #e2e8f0; border-radius: 24px; background: #ffffffdf; box-shadow: 0 8px 32px #0f172a05; }
.article-reader-head { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.article-reader-head h1 { margin: 0 0 22px; font-size: clamp(1.8rem,4vw,2.8rem); line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.article-reader-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; border-top: 1px solid #e2e8f0; margin-top: 40px; padding-top: 24px; font-size: .85rem; }
.article-markdown { line-height: 1.9; color: #334155; overflow-wrap: anywhere; min-width: 0; }
.article-markdown > :first-child { margin-top: 0; }
.article-markdown h1,.article-markdown h2,.article-markdown h3,.article-markdown h4 { color: #1a2332; line-height: 1.45; margin: 1.5em 0 .7em; }
.article-markdown h1 { font-size: 1.85em; }
.article-markdown h2 { font-size: 1.5em; }
.article-markdown h3 { font-size: 1.2em; }
.article-markdown p,.article-markdown ul,.article-markdown ol { margin: 0 0 1.1em; }
.article-markdown ul,.article-markdown ol { padding-left: 1.6em; }
.article-markdown blockquote { margin: 1.3em 0; border-left: 3px solid #14b8a6; padding: 12px 20px; background: #f0fdfa; color: #526879; border-radius: 0 10px 10px 0; }
.article-markdown blockquote > :last-child { margin-bottom: 0; }
.article-markdown code { font: .87em/1.75 Consolas,"SFMono-Regular",monospace; background: #eef2f6; padding: .18em .35em; border-radius: 5px; }
.article-markdown pre { max-width: 100%; overflow-x: auto; border-radius: 12px; padding: 20px; background: #172536; color: #e2e8f0; tab-size: 2; }
.article-markdown pre code { padding: 0; background: none; color: inherit; white-space: pre; overflow-wrap: normal; }
.article-markdown table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.4em 0; }
.article-markdown th,.article-markdown td { border: 1px solid #dbe3ec; padding: 8px 14px; min-width: 85px; }
.article-markdown th { background: #f1f5f9; font-weight: 650; }
.article-markdown hr { border: 0; border-top: 1px solid #dbe3ec; margin: 2em 0; }
.article-markdown img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 20px auto; }
.article-image-warning { display: inline-block; color: #92400e; background: #fffbeb; border-radius: 6px; padding: 4px 8px; font-size: .84em; }
.article-manage-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 10px 0 28px; }
.article-manage-heading h1 { font-size: 2.2rem; }
.article-workspace { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; align-items: start; }
.article-editor,.article-library { min-width: 0; border: 1px solid #e2e8f0; border-radius: 20px; padding: 28px; background: #ffffffd9; }
.article-editor-top,.article-library-heading,.article-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.article-editor h2,.article-library h2 { font-size: 1.15rem; margin: 0; }
.article-badge { border-radius: 20px; padding: 4px 10px; font-size: .73rem; color: #0f766e; background: #e8f7f3; white-space: nowrap; }
.article-editor-help { font-size: .78rem; color: #63758b; line-height: 1.7; }
.article-field { display: grid; gap: 8px; margin: 20px 0; min-width: 0; }
.article-field > span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .88rem; font-weight: 650; }
.article-field small { font-size: .72rem; font-weight: 400; color: #6b7d95; }
.article-field input,.article-field textarea { width: 100%; border: 1px solid #d3dee8; border-radius: 10px; padding: 11px 13px; background: #fff; color: #1a2332; outline: none; min-width: 0; }
.article-field input:focus,.article-field textarea:focus { border-color: #0d9488; box-shadow: 0 0 0 3px #0d94880e; }
.article-field textarea { resize: vertical; line-height: 1.7; }
.article-field .article-source { min-height: 360px; font: .9rem/1.85 Consolas,"SFMono-Regular",monospace; tab-size: 2; }
.article-editor-toolbar,.article-editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#article-content-count { margin-left: auto; font-size: .73rem; color: #63758b; }
.article-file-label { position: relative; overflow: hidden; }
.article-file-label input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.article-file-label:focus-within { outline: 3px solid #14b8a6; outline-offset: 3px; }
.article-editor-actions { padding-top: 16px; border-top: 1px solid #e2e8f0; margin-top: 24px; }
.article-message { min-height: 1.6em; color: #b91c1c; font-size: .85rem; overflow-wrap: anywhere; }
.article-message.success { color: #0f766e; }
.article-text-button { border: 0; padding: 5px; color: #0f766e; background: none; font-size: .8rem !important; }
.article-preview { border: 1px solid #cce8e2; padding: 22px; border-radius: 14px; margin: 22px 0; }
.article-preview-heading h3 { margin: 0; font-size: 1rem; }
#article-preview-message { color: #63758b; font-size: .8rem; }
.article-preview .article-markdown { font-size: .92rem; }
.article-library { padding: 20px; }
.article-admin-list { display: grid; gap: 10px; margin: 18px 0; }
.article-admin-item { width: 100%; padding: 13px; background: #fff; color: #1a2332; border: 1px solid #e2e8f0; border-radius: 10px; text-align: left; }
.article-admin-item:hover,.article-admin-item[aria-current="true"] { border-color: #0d9488; background: #f0fdfa; }
.article-admin-item strong { display: block; font-size: .88rem; overflow-wrap: anywhere; line-height: 1.6; }
.article-admin-item span { display: block; font-size: .7rem; color: #63758b; margin-top: 6px; }
.article-library-pagination { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: .72rem; color: #63758b; }
.article-home { margin-top: 32px; padding-bottom: 36px; }
.article-home-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.article-home-heading h2 { margin: 0; font-size: 1.35rem; color: #1a2332; }
.article-home-heading p { margin: 7px 0 0; font-size: .85rem; color: #6b7d95; }
.article-home-links { display: flex; flex-wrap: wrap; gap: 16px; }
.article-home-links a { color: #0f766e; text-decoration: none; font-size: .85rem; font-weight: 650; }
@media (max-width:900px) { .article-workspace { grid-template-columns: minmax(0,1fr) 240px; gap: 16px; } .article-editor { padding: 22px; } }
@media (max-width:700px) { .article-shell,.article-shell-wide { width: calc(100% - 24px); } .article-topbar { align-items: flex-start; padding: 22px 4px; gap: 12px; } .article-nav { gap: 1px; } .article-nav a { padding: 5px 7px; } .article-grid { grid-template-columns: minmax(0,1fr); gap: 14px; } .article-card { padding: 22px; } .article-hero { padding-top: 20px; } .article-workspace { grid-template-columns: minmax(0,1fr); } .article-library { order: 2; } .article-manage-heading { align-items: flex-start; flex-direction: column; gap: 16px; } .article-reader { padding: 24px 20px; border-radius: 18px; } .article-reader-head { padding-bottom: 22px; margin-bottom: 24px; } .article-field .article-source { min-height: 320px; } .article-editor { padding: 20px 16px; } .article-preview { padding: 16px; } .article-home { margin-top: 28px; } }
@media (prefers-reduced-motion:reduce) { .article-card { transition: none; } }

/* Tutorial center and chapter navigation use the same quiet teal/card palette. */
.tutorial-pills { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; font-size:.76rem; color:#0f766e; }
.tutorial-pills span { padding:5px 11px; border:1px solid #cde7e0; border-radius:20px; background:#f0faf6; }
.tutorial-course-card { display:grid; grid-template-columns:1.05fr 1fr; overflow:hidden; background:#fff; border:1px solid #dbe5e8; border-radius:24px; margin-bottom:24px; }
.tutorial-cover-link { display:block; background:#122d35; }
.tutorial-cover { display:block; width:100%; height:100%; min-height:240px; object-fit:cover; aspect-ratio:16/10; }
.tutorial-cover-placeholder { height:100%; min-height:240px; display:grid; align-content:center; padding:40px; background:#143b3c; color:#a3e8d6; font-size:2.4rem; line-height:1.4; font-weight:750; }
.tutorial-course-info { padding:36px; align-self:center; }
.tutorial-course-info h2 { margin:10px 0 18px; font-size:1.8rem; line-height:1.4; }
.tutorial-course-info h2 a { color:#1a2332; text-decoration:none; }
.tutorial-course-info > p:not(.article-eyebrow) { color:#63758b; font-size:.92rem; }
.tutorial-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:24px; font-size:.8rem; }
.tutorial-course-hero { display:grid; grid-template-columns:1.3fr 1fr; gap:32px; align-items:center; padding:16px 0 40px; }
.tutorial-course-hero h1 { font-size:clamp(1.8rem,4vw,2.6rem); line-height:1.4; margin:0; }
.tutorial-course-hero .tutorial-cover { height:auto; min-height:0; border-radius:20px; }
.tutorial-directory { padding:28px; background:#fff; border:1px solid #e2e8f0; border-radius:22px; }
.tutorial-directory-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; margin-bottom:20px; }
.tutorial-directory-heading h2 { margin:0; font-size:1.3rem; }
.tutorial-directory-heading span { color:#63758b; font-size:.8rem; }
.tutorial-chapter-list { margin:0; padding:0; list-style:none; }
.tutorial-chapter-list li + li { border-top:1px solid #edf1f4; }
.tutorial-chapter-list a { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:14px; align-items:center; text-decoration:none; padding:15px 8px; border-radius:8px; color:#334155; }
.tutorial-chapter-list a:hover,.tutorial-chapter-list a[aria-current] { background:#f0fdfa; color:#0f766e; }
.tutorial-chapter-number { color:#94a3b8; font:600 .83rem/1.5 Consolas,monospace; }
.tutorial-chapter-title { overflow-wrap:anywhere; font-size:.92rem; }
.tutorial-access { color:#7c8a9b; font-size:.69rem; white-space:nowrap; }
.tutorial-access-free { color:#0d9488; }
.tutorial-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; color:#8090a3; font-size:.77rem; padding:10px 0 24px; }
.tutorial-breadcrumb a { text-decoration:none; }
.tutorial-reading-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:24px; align-items:start; }
.tutorial-sidebar { position:sticky; top:20px; border:1px solid #dfe7ed; border-radius:16px; background:#ffffffb8; overflow:hidden; }
.tutorial-sidebar summary { cursor:pointer; padding:16px; color:#334155; font-size:.83rem; font-weight:650; }
.tutorial-sidebar summary span { font-weight:400; color:#8593a4; margin-left:8px; }
.tutorial-sidebar .tutorial-chapter-list { max-height:calc(100vh - 140px); overflow-y:auto; padding:0 8px 8px; }
.tutorial-sidebar .tutorial-chapter-list a { grid-template-columns:22px minmax(0,1fr); gap:3px 8px; padding:10px 8px; }
.tutorial-sidebar .tutorial-chapter-title { font-size:.75rem; }
.tutorial-sidebar .tutorial-access { grid-column:2; font-size:.64rem; }
.tutorial-reading-main { min-width:0; }
.tutorial-reading-main .article-reader { padding:clamp(22px,3vw,38px); }
.tutorial-reading-main .article-reader-head h1 { font-size:clamp(1.6rem,3vw,2.3rem); }
.tutorial-login-wall { text-align:center; background:linear-gradient(145deg,#f1fbf7,#f5f7fc); border:1px solid #dceee8; border-radius:18px; padding:32px 24px; }
.tutorial-lock-icon { display:grid; place-items:center; margin:0 auto 18px; width:48px; height:48px; background:#fff; border-radius:14px; color:#0d9488; font-size:1.8rem; }
.tutorial-login-wall h2 { color:#243449; margin:10px 0; font-size:1.5rem; }
.tutorial-login-wall > p:not(.article-eyebrow) { color:#6b7d95; font-size:.87rem; margin-bottom:24px; }
.tutorial-free-link { display:block; margin-top:18px; font-size:.8rem; }
.tutorial-pager { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-top:22px; }
.tutorial-pager a { display:grid; gap:6px; padding:18px; border:1px solid #dbe5eb; border-radius:14px; background:#ffffffa8; text-decoration:none; min-width:0; }
.tutorial-pager a:last-child { text-align:right; }
.tutorial-pager small { color:#7c8ca0; font-size:.72rem; }
.tutorial-pager span { font-size:.85rem; overflow-wrap:anywhere; }
.tutorial-card-label { font-size:.73rem; margin-top:12px; text-decoration:none; }
.tutorial-editor-fields { border:1px solid #dce8e4; border-radius:12px; margin:24px 0; padding:16px; background:#f8fcfa; min-width:0; }
.tutorial-editor-fields legend { color:#0f766e; font-size:.85rem; font-weight:650; padding:0 8px; }
.tutorial-viewers { margin-top:24px; padding-top:18px; border-top:1px solid #e4eceb; }
.tutorial-viewers p { margin:0; color:#526579; font-size:.84rem; }
.tutorial-viewers strong { color:#0f766e; font-size:1.15rem; margin:0 4px; font-variant-numeric:tabular-nums; }
.tutorial-viewers small { display:block; color:#7c8a9b; margin-top:5px; font-size:.7rem; }
.tutorial-engagement { margin-top:36px; padding:24px; border:1px solid #dceae5; border-radius:16px; background:#f7fcfa; }
.tutorial-engagement .tutorial-viewers { margin:0; padding:0 0 20px; border-top:0; border-bottom:1px solid #e0ebe6; }
.tutorial-rating h2 { font-size:1.06rem; margin:20px 0 8px; }
.tutorial-rating-summary { color:#6b7d95; font-size:.83rem; margin:0 0 18px; }
.tutorial-rating-fieldset { padding:0; margin:0; border:0; min-width:0; }
.tutorial-rating-fieldset legend { color:#526579; font-size:.78rem; margin-bottom:8px; }
.tutorial-stars { display:flex; gap:6px; margin-bottom:16px; }
.tutorial-star { cursor:pointer; position:relative; }
.tutorial-star input { position:absolute; width:1px; height:1px; padding:0; margin:0; opacity:0; }
.tutorial-star span { display:grid; place-items:center; width:44px; height:44px; border:1px solid #dce5e1; border-radius:9px; font-size:1.7rem; color:#9caeb4; background:#fff; }
.tutorial-star.is-lit span { color:#b87512; border-color:#efcd88; background:#fff8e9; }
.tutorial-star input:focus-visible + span { outline:3px solid #0d9488; outline-offset:3px; }
.tutorial-rating-fieldset:disabled { opacity:.6; }
.tutorial-rating-message,.tutorial-rating-login { font-size:.78rem; color:#526579; margin:14px 0 0; min-height:1.7em; overflow-wrap:anywhere; }
@media(max-width:600px) { .tutorial-engagement { padding:18px 14px; } .tutorial-stars { gap:4px; } .tutorial-star span { width:40px; height:44px; } }
.tutorial-toggle { display:flex; gap:10px; align-items:center; font-size:.87rem; }
@media(max-width:900px) { .tutorial-reading-layout { grid-template-columns:minmax(0,1fr); gap:16px; } .tutorial-sidebar { position:static; } .tutorial-sidebar .tutorial-chapter-list { max-height:280px; } .tutorial-course-card { grid-template-columns:1fr; } .tutorial-cover { max-height:340px; min-height:0; } .tutorial-course-hero { grid-template-columns:1fr; gap:24px; } .tutorial-course-hero .tutorial-cover { max-height:260px; } }
@media(max-width:600px) { .tutorial-course-info { padding:24px; } .tutorial-course-info h2 { font-size:1.5rem; } .tutorial-directory { padding:20px 12px; } .tutorial-chapter-list a { grid-template-columns:24px minmax(0,1fr); gap:4px 10px; } .tutorial-chapter-list .tutorial-access { grid-column:2; } .tutorial-login-wall { padding:26px 16px; } .tutorial-pager { gap:10px; } .tutorial-pager a { padding:14px; } }

/* Unified portal surfaces. Rendering, editor state and permissions are unchanged. */
.article-site.site-unified { background:var(--site-bg,#f5f7fc); color:var(--site-ink,#101b35); }
.site-unified .article-shell { width:min(1120px,calc(100% - 56px)); padding-top:36px; }
.site-unified .article-shell-wide { width:min(1180px,calc(100% - 56px)); }
.site-unified .article-hero { padding:30px 0 34px; margin-bottom:30px; border-color:var(--site-line,#dce3f0); }
.site-unified .article-hero h1,.site-unified .article-manage-heading h1 { font-size:clamp(32px,4.4vw,54px); line-height:1.2; letter-spacing:-.045em; }
.site-unified .article-lead { max-width:720px; color:var(--site-muted,#5f6d86); line-height:1.85; }
.site-unified .article-eyebrow { color:var(--site-blue,#315efb); font-size:12px; letter-spacing:.13em; }
.site-unified .article-card,.site-unified .article-reader,.site-unified .article-editor,.site-unified .article-library,.site-unified .tutorial-directory,.site-unified .tutorial-course-card {
  background:var(--site-surface,#fff); border:1px solid var(--site-line,#dce3f0); border-radius:var(--site-radius,20px); box-shadow:0 8px 28px -16px #20357924;
}
.site-unified .article-card { padding:28px; }
.site-unified .article-card:hover { border-color:#acbef7; box-shadow:0 12px 30px -19px #315efb50; }
.site-unified .article-card h2 a,.site-unified .article-reader-head h1,.site-unified .article-manage-heading h1,.site-unified .tutorial-course-info h2 a,.site-unified .tutorial-course-hero h1 { color:var(--site-ink,#101b35); }
.site-unified .article-card h2 a:hover,.site-unified .article-read-link,.site-unified .article-back,.site-unified .article-text-button,.site-unified .tutorial-card-label,.site-unified .article-reader-footer a { color:var(--site-blue,#315efb); }
.site-unified .article-card p,.site-unified .article-card-meta,.site-unified .article-editor-help,.site-unified .article-pagination,.site-unified .article-section-meta,.site-unified .tutorial-course-info>p:not(.article-eyebrow),.site-unified .tutorial-directory-heading span { color:var(--site-muted,#5f6d86); }
.site-unified .article-card p { font-size:15px; line-height:1.85; }
.site-unified .article-card-meta { font-size:13px; }
.site-unified .article-read-link,.site-unified .article-back { display:inline-flex; align-items:center; min-height:44px; }
.site-unified .article-button { min-height:44px; border-radius:12px; background:var(--site-blue,#315efb); color:#fff!important; box-shadow:none; }
.site-unified .article-button:hover { background:#254edb; }
.site-unified .article-secondary { background:#fff; color:var(--site-blue,#315efb)!important; border-color:var(--site-line,#dce3f0); }
.site-unified .article-secondary:hover { background:var(--site-soft,#edf2ff); border-color:#afc1fc; }
.site-unified .article-danger { color:#b91c1c!important; background:#fff; border-color:#fecaca; }
.site-unified .article-danger:hover { background:#fff1f2; }
.site-unified .article-state { background:var(--site-soft,#edf2ff); border-color:#cbd6f1; border-radius:20px; color:var(--site-muted,#5f6d86); }
.site-unified .article-reader-head,.site-unified .article-reader-footer,.site-unified .article-editor-actions { border-color:var(--site-line,#dce3f0); }
.site-unified .article-markdown { color:#33415c; font-size:16px; line-height:1.9; }
.site-unified .article-markdown h1,.site-unified .article-markdown h2,.site-unified .article-markdown h3,.site-unified .article-markdown h4 { color:var(--site-ink,#101b35); }
.site-unified .article-markdown a { color:var(--site-blue,#315efb); }
.site-unified .article-markdown blockquote { border-color:#7897fa; color:#4a5b79; background:var(--site-soft,#edf2ff); }
.site-unified .article-markdown code { background:#edf1f9; }
.site-unified .article-markdown pre { background:#14223d; border:1px solid #283957; }
.site-unified .article-markdown pre code { background:transparent; }
.site-unified .article-markdown th { background:#f1f4fc; }
.site-unified .article-markdown th,.site-unified .article-markdown td,.site-unified .article-markdown hr { border-color:var(--site-line,#dce3f0); }
.site-unified .article-field input,.site-unified .article-field textarea { border-color:var(--site-line,#dce3f0); border-radius:12px; color:var(--site-ink,#101b35); }
.site-unified .article-field input:focus,.site-unified .article-field textarea:focus { border-color:var(--site-blue,#315efb); box-shadow:0 0 0 3px #315efb12; }
.site-unified .article-badge { color:#3659b5; background:var(--site-soft,#edf2ff); }
.site-unified .article-preview,.site-unified .tutorial-editor-fields { border-color:var(--site-line,#dce3f0); background:#f8faff; }
.site-unified .tutorial-editor-fields legend { color:var(--site-blue,#315efb); }
.site-unified .article-admin-item { border-color:var(--site-line,#dce3f0); border-radius:12px; }
.site-unified .article-admin-item:hover,.site-unified .article-admin-item[aria-current="true"] { border-color:#a9bbf8; background:var(--site-soft,#edf2ff); }
.site-unified .tutorial-pills { color:#3156a9; }
.site-unified .tutorial-pills span { background:var(--site-soft,#edf2ff); border-color:#d7e2fc; }
.site-unified .tutorial-cover-link { background:var(--site-soft,#edf2ff); }
.site-unified .tutorial-cover-placeholder { color:#2445a9; background:var(--site-soft,#edf2ff); }
.site-unified .tutorial-course-info { padding:34px; }
.site-unified .tutorial-card-actions>a:not(.article-button) { color:var(--site-blue,#315efb); }
.site-unified .tutorial-course-hero { padding:22px 0 40px; }
.site-unified .tutorial-course-hero .tutorial-cover { border-radius:20px; border:1px solid var(--site-line,#dce3f0); }
.site-unified .tutorial-chapter-list li+li { border-color:#e8edf7; }
.site-unified .tutorial-chapter-list a { color:#33415c; }
.site-unified .tutorial-chapter-list a:hover,.site-unified .tutorial-chapter-list a[aria-current="page"] { color:var(--site-blue,#315efb); background:var(--site-soft,#edf2ff); }
.site-unified .tutorial-chapter-number { color:#7081a3; }
.site-unified .tutorial-access { color:var(--site-muted,#5f6d86); }
.site-unified .tutorial-access-free { color:#18754e; }
.site-unified .tutorial-breadcrumb { color:var(--site-muted,#5f6d86); }
.site-unified .tutorial-breadcrumb a { color:var(--site-blue,#315efb); }
.site-unified .tutorial-sidebar { border-color:var(--site-line,#dce3f0); background:#fff; border-radius:20px; }
.site-unified .tutorial-login-wall { background:var(--site-soft,#edf2ff); border-color:#d3ddf5; }
.site-unified .tutorial-lock-icon { color:var(--site-blue,#315efb); }
.site-unified .tutorial-free-link { color:var(--site-blue,#315efb); }
.site-unified .tutorial-pager a { background:#fff; border-color:var(--site-line,#dce3f0); border-radius:16px; }
.site-unified .tutorial-pager a:hover { border-color:#afc1fc; }
.site-unified .tutorial-pager span { color:#33415c; }
.site-unified .tutorial-engagement { background:#f8faff; border-color:var(--site-line,#dce3f0); border-radius:20px; }
.site-unified .tutorial-viewers { border-color:var(--site-line,#dce3f0); }
.site-unified .tutorial-viewers strong { color:var(--site-blue,#315efb); }
.site-unified .tutorial-viewers p,.site-unified .tutorial-viewers small,.site-unified .tutorial-rating-summary { color:var(--site-muted,#5f6d86); }
.site-unified .article-footer { margin-top:42px; padding:26px 0; border-top:1px solid var(--site-line,#dce3f0); color:var(--site-muted,#5f6d86); }
.site-unified .article-footer a { color:var(--site-blue,#315efb); }
@media(max-width:820px) { .site-unified .article-shell,.site-unified .article-shell-wide { width:calc(100% - 40px); padding-top:26px; } .site-unified .article-hero { padding-top:22px; } }
@media(max-width:600px) { .site-unified .article-shell,.site-unified .article-shell-wide { width:calc(100% - 32px); } .site-unified .article-card { padding:22px; } .site-unified .tutorial-course-info { padding:24px; } .site-unified .article-reader { padding:24px 18px; } .site-unified .article-manage-heading { gap:14px; } }

/* Phone/tablet ergonomics; keep code and tables scrollable inside the reader. */
.article-site .article-shell, .article-site .article-workspace > *,
.article-site .article-reader, .article-site .article-preview,
.article-site .tutorial-course-card > *, .article-site .tutorial-course-hero > * { min-width: 0; }
.article-site input:not([type="checkbox"]):not([type="radio"]),
.article-site select, .article-site textarea,
.article-site .article-field .article-source { font-size: 16px; }
.article-site .article-field input, .article-site .article-field textarea,
.article-site .article-field select { min-height: 44px; max-width: 100%; }
.article-site .article-field .article-source { min-height: 360px; }
.article-site .article-button, .article-site .article-text-button,
.article-site .article-admin-item, .article-site .tutorial-free-link,
.article-site .tutorial-card-actions > a { min-height: 44px; }
.article-site .article-text-button { padding: 10px 8px; }
.article-site .tutorial-free-link, .article-site .tutorial-card-actions > a { display: inline-flex; align-items: center; }
.article-site .article-button { max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.article-site .article-editor-top, .article-site .article-library-heading,
.article-site .article-preview-heading, .article-site .article-section-meta,
.article-site .article-library-pagination { flex-wrap: wrap; }
.article-site .article-editor-top > *, .article-site .article-preview-heading > *,
.article-site .article-card-meta > *, .article-site .article-library-pagination > * { min-width: 0; overflow-wrap: anywhere; }
.article-site .article-markdown { max-width: 72ch; margin-inline: auto; }
.article-site .article-markdown pre, .article-site .article-markdown table {
  max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.article-site .article-markdown pre code { white-space: pre; overflow-wrap: normal; word-break: normal; }
.article-site .article-markdown :not(pre) > code { overflow-wrap: anywhere; }
.article-site .article-markdown img { max-width: 100%; height: auto; }
.article-site .article-field, .article-site .tutorial-editor-fields { max-width: 100%; }
.article-site .tutorial-editor-fields legend { max-width: 100%; overflow-wrap: anywhere; }
.article-site .tutorial-toggle { min-height: 44px; line-height: 1.6; }
.article-site .tutorial-toggle input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.article-site .tutorial-breadcrumb { overflow-wrap: anywhere; }
.article-site .tutorial-sidebar summary, .article-site .tutorial-chapter-list a { min-height: 44px; }
.article-site .tutorial-stars { flex-wrap: wrap; }
.article-site .tutorial-star span { width: 44px; height: 44px; }
@media (max-width: 900px) {
  .article-site .article-workspace { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .article-site .article-library { order: 2; }
}
@media (max-width: 600px) {
  .article-site .article-field .article-source { min-height: 320px; }
  .article-site .article-editor-actions { align-items: stretch; }
  .article-site .article-editor-actions .article-button { flex: 1 1 128px; }
  .article-site .article-editor-toolbar .article-button { flex: 1 1 120px; }
  .article-site #article-content-count { flex-basis: 100%; margin-left: 0; }
  .article-site .article-preview { padding: 16px 12px; }
  .article-site .article-markdown pre { padding: 16px 12px; }
  .article-site .article-markdown blockquote { padding: 12px 14px; }
  .article-site .article-reader-head h1 { font-size: clamp(25px, 6.2vw, 34px); }
  .article-site .tutorial-engagement { padding: 18px 12px; }
  .article-site .tutorial-pager { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .article-site .article-reader { padding-inline: 16px; }
  .article-site .tutorial-engagement { padding-inline: 8px; }
  .article-site .tutorial-stars { gap: 2px; }
  .article-site .article-library-pagination { justify-content: flex-start; gap: 6px 10px; }
  .article-site .article-editor, .article-site .article-library { padding-inline: 16px; }
}
