/* Tutorials: /tutorials hub and /tutorials/{slug}. Ink #0B1533, blue #1463FF, mint #6FF0BC / #0E9F6E, amber, violet. */
.tut-main { --t-ink: #0b1533; --t-blue: #1463ff; --t-mint: #6ff0bc; --t-mint-ink: #0e9f6e; --t-amber: #ffc15c; --t-amber-ink: #a35f00; --t-violet: #7c5cff; --t-line: #dbe2ee; --t-soft: #f5f7fb; }
.tut-main h2 { font-family: var(--display); letter-spacing: -0.01em; }
.tut-box { background: #fff; border: 1px solid var(--t-line); border-radius: 22px; padding: 20px 22px; min-width: 0; }
.tut-box h2 { font-size: 21px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.tut-box h2 img { border-radius: 6px; flex: none; }

/* ---------- hub ---------- */
.tut-filters { display: grid; gap: 12px; margin: 22px 0 6px; }
.tut-filter-search input { width: 100%; font: inherit; font-size: 16px; padding: 13px 16px; border: 1px solid var(--t-line); border-radius: 14px; background: #fff; }
.tut-filter-search input:focus { outline: 2px solid var(--t-blue); outline-offset: 1px; }
.tut-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tut-chip { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; min-height: 36px; border-radius: 999px; border: 1px solid var(--t-line); background: #fff; color: var(--t-ink); cursor: pointer; }
.tut-chip small { color: #657086; font-weight: 600; margin-left: 2px; }
.tut-chip.is-on { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.tut-chip.is-on small { color: #c9d3ea; }
.tut-filter-empty { margin: 4px 0 0; color: #657086; }
.tut-track { margin-top: 26px; }
.tut-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.tut-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; border: 1px solid var(--t-line); background: #fff; color: var(--t-ink); text-decoration: none; min-width: 0; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.tut-card:hover { border-color: rgba(20,99,255,.45); box-shadow: 0 12px 26px rgba(16,24,40,.08); transform: translateY(-2px); }
.tut-card[hidden] { display: none; }
.tut-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tut-card-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: #eef3ff; color: var(--t-blue); flex: none; }
.tut-card-ico svg { width: 22px; height: 22px; }
.tut-card-ico--fav { padding: 8px; background: var(--t-soft); border: 1px solid var(--t-line); box-sizing: border-box; }
.tut-card-title { font-family: var(--display); font-size: 19px; line-height: 1.2; }
.tut-card-sum { color: #4a556b; font-size: 15px; line-height: 1.5; }
.tut-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; font-size: 13.5px; font-weight: 600; color: #657086; }
.tut-pill { padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; background: #d9fbe9; color: #075e43; }
.tut-pill--intermediate { background: #ffefd2; color: #8a4d00; }
.tut-pill--advanced { background: #ece7ff; color: #4b2fc9; }
.tut-card-progress { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #eef3ff; color: var(--t-blue); }
.tut-card-progress.is-done { background: var(--t-mint); color: #053d2b; }
.tut-hub-foot { margin-top: 30px; }
.tut-hub-foot p { margin: 0; line-height: 1.65; color: #3a465c; }

/* ---------- tutorial hero + intro ---------- */
.tut-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.tut-hero-fav { border-radius: 6px; background: #fff; padding: 2px; }
.tut-hero h1 { max-width: 900px; }
.tut-hero-stats { max-width: 760px; }
.tut-level-num { font-size: clamp(24px, 2.6vw, 34px) !important; padding-top: 6px; }
.tut-hero-meta { margin: 6px 0 0; font-size: 14px; color: #c9d3ea; }
.tut-hero-meta a { color: #6ff0bc; }

.tut-formats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 20px 0 16px; background: #fff; border: 1px solid var(--t-line); border-radius: 18px; }
.tut-format, .tut-print { flex: 1 1 auto; text-align: center; font: inherit; font-size: 15px; font-weight: 700; padding: 10px 14px; min-height: 40px; border-radius: 13px; color: var(--t-ink); text-decoration: none; border: 0; background: transparent; cursor: pointer; }
.tut-format:hover, .tut-print:hover { background: var(--t-soft); }
.tut--steps .tut-format[data-format="steps"], .tut--article .tut-format[data-format="article"], .tut--slides .tut-format[data-format="slides"] { background: var(--t-ink); color: #fff; }
.tut-print { display: none; flex: 0 0 auto; color: #4a556b; }
.tut-js .tut-print { display: inline-block; }

.tut-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-bottom: 18px; }
.tut-needs ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.tut-needs li { position: relative; padding-left: 28px; line-height: 1.45; }
.tut-needs li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--t-mint); box-shadow: inset 0 0 0 5px #d6fbe9; }
.tut-needs-time { margin: 0; font-size: 14px; color: #657086; }
.tut-hero-visual { min-width: 0; }
.tut-hero-visual .tv { margin: 0; height: 100%; }
.tut-facts dl { margin: 0; display: grid; gap: 10px; }
.tut-facts dl div { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed var(--t-line); }
.tut-facts dt { font-size: 12.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #657086; }
.tut-facts dd { margin: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.tut-facts-foot { margin: 10px 0 0; font-size: 14px; color: #657086; }

/* ---------- layout: navigator + steps ---------- */
.tut-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 960px) { .tut-layout { grid-template-columns: 270px minmax(0, 1fr); } }
.tut-nav { background: #fff; border: 1px solid var(--t-line); border-radius: 20px; padding: 16px; min-width: 0; }
@media (min-width: 960px) { .tut-nav { position: sticky; top: 14px; max-height: calc(100vh - 28px); overflow: auto; } }
.tut-progress { display: grid; gap: 6px; margin-bottom: 14px; }
.tut-progress-bar { height: 10px; border-radius: 999px; background: #eef2f8; overflow: hidden; }
.tut-progress-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--t-blue), #13b88b); transition: width .4s ease; }
.tut-progress-text { font-size: 13.5px; font-weight: 700; color: #4a556b; }
.tut-progress { display: none; }
.tut-js .tut-progress { display: grid; }
.tut-nav-title { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #657086; margin-bottom: 8px; }
.tut-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: none; }
.tut-nav-list a { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 12px; color: var(--t-ink); text-decoration: none; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tut-nav-list a:hover { background: var(--t-soft); }
.tut-nav-list b { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; background: #eef3ff; color: var(--t-blue); }
.tut-nav-list a.is-current { background: #eef3ff; }
.tut-nav-list a.is-current b { background: var(--t-blue); color: #fff; }
.tut-nav-list a.is-done b { background: var(--t-mint); color: #053d2b; font-size: 0; }
.tut-nav-list a.is-done b::after { content: ""; width: 9px; height: 5px; border: solid #053d2b; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px); }

.tut-steps { min-width: 0; display: grid; gap: 16px; }
.tut-step { background: #fff; border: 1px solid var(--t-line); border-radius: 24px; padding: 22px; min-width: 0; display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 16px; }
.tut-step.is-done { border-color: rgba(14,159,110,.45); }
.tut-step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.tut-step-n { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--t-ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; }
.tut-step.is-done .tut-step-n { background: var(--t-mint-ink); }
.tut-step-of { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #657086; }
.tut-step-head h2 { margin: 2px 0 0; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; }
.tut-lead, .tut-more { line-height: 1.7; font-size: 16.5px; color: #24304f; min-width: 0; }
.tut-lead p, .tut-more p { margin: 0 0 12px; }
.tut-more ul, .tut-more ol, .tut-lead ul, .tut-lead ol { margin: 0 0 12px; padding-left: 22px; }
.tut-more li, .tut-lead li { margin-bottom: 4px; }
.tut-lead a, .tut-more a, .tut-callout a, .tut-quiz a { color: var(--t-blue); }
.tut-slide-art { display: none; }
.tut-visuals { display: grid; gap: 12px; margin: 4px 0 10px; min-width: 0; }

.tut-callout { padding: 12px 16px; border-radius: 14px; margin: 0 0 10px; line-height: 1.55; font-size: 15.5px; border-left: 5px solid var(--t-blue); background: #eef3ff; }
.tut-callout strong { margin-right: 2px; }
.tut-callout--tip { border-color: var(--t-mint-ink); background: #e5fbf1; }
.tut-callout--warning { border-color: #e8a317; background: #fff4de; }
.tut-callout--example { border-color: var(--t-violet); background: #f1edff; }

.tut-checks { border: 1px solid var(--t-line); border-radius: 16px; padding: 10px 14px 12px; margin: 6px 0 12px; background: var(--t-soft); }
.tut-checks legend { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #657086; padding: 0 6px; }
.tut-checks label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; cursor: pointer; line-height: 1.45; min-height: 30px; }
.tut-checks input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--t-mint-ink); }
.tut-checks input:checked + span { color: #657086; text-decoration: line-through; text-decoration-color: rgba(14,159,110,.6); }

.tut-step-actions { display: none; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tut-js .tut-step-actions { display: flex; }
.tut-done-btn[aria-pressed="true"] { background: var(--t-mint-ink); border-color: var(--t-mint-ink); }

.tut-pager { display: none; align-items: center; justify-content: space-between; gap: 10px; }
.tut-pager-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; }
.tut-pager-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9d3ea; }
.tut-pager-dots i.is-done { background: var(--t-mint-ink); }
.tut-pager-dots i.is-current { background: var(--t-blue); transform: scale(1.35); }
.tut-pager button[disabled] { opacity: .45; cursor: default; }

/* Interactive steps (JS): one step at a time */
.tut-js.tut--steps .tut-step:not(.is-current), .tut-js.tut--slides .tut-step:not(.is-current) { display: none; }
.tut-js.tut--steps .tut-pager, .tut-js.tut--slides .tut-pager { display: flex; }
.tut-js.tut--steps.is-complete .tut-step, .tut-js.tut--slides.is-complete .tut-step, .tut-js.is-complete .tut-pager { display: none; }

/* Visual walkthrough: a slide per step */
.tut--slides .tut-layout { grid-template-columns: minmax(0, 1fr); }
.tut--slides .tut-nav { display: none; }
.tut--slides .tut-step { padding: 22px 22px 26px; }
.tut--slides .tut-slide-art { display: block; order: 1; }
.tut--slides .tut-step-head { order: 0; }
.tut--slides .tut-visuals { order: 1; }
.tut--slides .tut-lead { order: 2; font-size: 18px; }
.tut--slides .tut-more, .tut--slides .tut-step-actions { display: none; }
.tut-slide-num { display: grid; place-items: center; height: 160px; border-radius: 20px; background: var(--t-ink) radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0 / 18px 18px; color: var(--t-mint); font-family: var(--display); font-weight: 800; font-size: 90px; }
.tut-js.tut--slides .tut-steps { max-width: 860px; margin: 0 auto; width: 100%; }

/* Classic article: everything in one long read */
.tut--article .tut-step { border-radius: 0; border-width: 0 0 1px; padding: 26px 4px; background: transparent; }
.tut--article .tut-steps { gap: 0; background: #fff; border: 1px solid var(--t-line); border-radius: 24px; padding: 4px 22px 10px; }
.tut--article .tut-step:last-of-type { border-bottom: 0; }

/* ---------- completion ---------- */
.tut-complete { position: relative; overflow: hidden; text-align: center; padding: 40px 22px; border-radius: 26px; background: var(--t-ink) radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 22px 22px; color: #fff; }
.tut-complete[hidden] { display: none; }
.tut-complete h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 6px; color: #fff; }
.tut-complete p { color: #c9d3ea; margin: 0 0 18px; }
.tut-complete-badge { width: 74px; height: 74px; margin: 0 auto; border-radius: 24px; display: grid; place-items: center; background: var(--t-mint); color: #053d2b; animation: tut-pop .6s cubic-bezier(.2,1.6,.4,1) both; }
.tut-complete-badge svg { width: 40px; height: 40px; }
.tut-complete-next { display: grid; gap: 8px; max-width: 520px; margin: 0 auto 18px; }
.tut-complete-next a { display: block; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; font-weight: 700; text-decoration: none; text-align: left; }
.tut-complete-next a:hover { background: rgba(255,255,255,.14); }
.tut-complete .button--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.tut-confetti { position: absolute; inset: 0; pointer-events: none; }
.tut-confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; opacity: 0; animation: tut-fall 2.8s ease-in forwards; }
.tut-confetti i:nth-child(4n+1) { background: #6ff0bc; }
.tut-confetti i:nth-child(4n+2) { background: #1463ff; border-radius: 50%; width: 10px; height: 10px; }
.tut-confetti i:nth-child(4n+3) { background: #ffc15c; width: 6px; height: 16px; }
.tut-confetti i:nth-child(4n) { background: #7c5cff; clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 12px; height: 12px; }
@keyframes tut-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x, 20px), 460px) rotate(540deg); } }
@keyframes tut-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- after the steps ---------- */
.tut-after { display: grid; gap: 14px; margin-top: 22px; }
.tut-after-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.tut-sources p { margin: 0 0 10px; color: #4a556b; }
.tut-sources ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.tut-sources a { color: var(--t-blue); font-weight: 600; overflow-wrap: anywhere; }
.tut-src-host { font-size: 13px; color: #657086; }
.tut-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tut-link-list a { color: var(--t-ink); font-weight: 700; text-decoration: none; }
.tut-link-list a:hover { color: var(--t-blue); text-decoration: underline; }
.tut-link-list span { display: block; font-size: 13px; color: #657086; }

/* ---------- try it + quiz ---------- */
.tut-try, .tut-quiz { border-radius: 18px; padding: 16px; margin: 6px 0 12px; border: 1px solid var(--t-line); background: #fff; box-shadow: 0 6px 18px rgba(16,24,40,.05); }
.tut-try-head, .tut-quiz-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.tut-try-head strong, .tut-quiz-head strong { font-size: 17px; line-height: 1.35; }
.tut-try-badge { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--t-mint); color: #053d2b; }
.tut-try-badge--violet { background: #e8e2ff; color: #4b2fc9; }
.tut-try label { display: block; font-size: 14px; font-weight: 700; color: #3a465c; margin-bottom: 6px; }
.tut-try input[type="text"], .tut-try textarea, .tut-try input[type="number"] { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--t-line); background: var(--t-soft); }
.tut-try textarea { resize: vertical; }
.tut-try-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.tut-try-rules li { position: relative; padding-left: 26px; color: #4a556b; line-height: 1.4; }
.tut-try-rules li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9d3ea; box-sizing: border-box; }
.tut-try-rules li.is-pass { color: #075e43; }
.tut-try-rules li.is-pass::before { background: var(--t-mint-ink); border-color: var(--t-mint-ink); }
.tut-try-rules li.is-fail { color: #9a3412; }
.tut-try-rules li.is-fail::before { border-color: #f97316; }
.tut-try-note { margin: 10px 0 0; font-size: 13px; color: #657086; }
.tut-try-score { margin: 10px 0 0; font-size: 15px; }
.tut-try-score strong { font-family: var(--display); font-size: 24px; color: var(--t-blue); }
.tut-try-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; }
.tut-try-grid label input { margin-top: 4px; }
.tut-try-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tut-try-prices div { padding: 10px; border-radius: 14px; background: var(--t-soft); text-align: center; }
.tut-try-prices span { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #657086; }
.tut-try-prices strong { font-family: var(--display); font-size: 24px; }
.tut-quiz-opts { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.tut-quiz-opts button { width: 100%; text-align: left; font: inherit; font-size: 15.5px; padding: 11px 14px; min-height: 44px; border-radius: 12px; border: 1px solid var(--t-line); background: var(--t-soft); color: var(--t-ink); cursor: pointer; line-height: 1.4; }
.tut-quiz-opts button:hover { border-color: var(--t-blue); }
.tut-quiz-opts button.is-right { background: #d9fbe9; border-color: var(--t-mint-ink); font-weight: 700; }
.tut-quiz-opts button.is-wrong { background: #fff1e6; border-color: #f97316; }
.tut-quiz-answer summary { cursor: pointer; font-weight: 700; color: var(--t-blue); font-size: 14.5px; }
.tut-quiz-answer p { margin: 8px 0 0; line-height: 1.55; }

/* ---------- illustration kit ---------- */
.tv { margin: 0; padding: 16px; border-radius: 20px; background: linear-gradient(180deg, #f7f9fd, #eef3fb); border: 1px solid var(--t-line); min-width: 0; overflow: hidden; }
.tv figcaption { margin-top: 10px; font-size: 13.5px; color: #4a556b; line-height: 1.5; }
.tv figcaption a { color: var(--t-blue); }
.tv-svg { display: block; width: 100%; height: auto; max-height: 340px; }
.tv-legend { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: tvl; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 6px 14px; font-size: 14px; line-height: 1.4; }
.tv-legend li { counter-increment: tvl; position: relative; padding-left: 30px; min-height: 22px; }
.tv-legend li::before { content: counter(tvl); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--t-ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tv--calendar .tv-legend li::before, .tv--3d .tv-legend li::before { content: none; }
.tv--calendar .tv-legend li { padding-left: 0; }
.tv--3d .tv-legend { counter-reset: none; }
.tv--3d .tv-legend li { padding-left: 0; }
.tv-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: #eef2f8; border: 1px solid #c9d3ea; }
.tv-key--blue { background: #1463ff; border-color: #1463ff; } .tv-key--violet { background: #7c5cff; border-color: #7c5cff; } .tv-key--amber { background: #ffc15c; border-color: #ffc15c; }
.tv-note { padding: 14px; border-radius: 14px; background: #fff; line-height: 1.5; }

.tv-blue { fill: #1463ff; } .tv-blue-soft { fill: #dbe7ff; } .tv-mint { fill: #6ff0bc; } .tv-mint-soft { fill: #d6fbe9; } .tv-mint-ink { fill: #0e9f6e; }
.tv-violet { fill: #7c5cff; } .tv-violet-soft { fill: #e8e2ff; } .tv-amber { fill: #ffc15c; } .tv-amber-soft { fill: #ffefd2; }
.tv-ink { fill: #0b1533; } .tv-ink-soft { fill: #c9d3ea; } .tv-line { fill: #e9eef6; } .tv-paper { fill: #fff; stroke: #dbe2ee; stroke-width: 1.5; } .tv-chip { fill: #eef2f8; stroke: #c9d3ea; }
.tv-venn { opacity: .85; mix-blend-mode: multiply; }
.tv-axis { stroke: #c9d3ea; stroke-width: 2; }
.tv-dash { fill: none; stroke: #9aa7c0; stroke-width: 2; stroke-dasharray: 4 5; }
.tv-stroke-violet { fill: none; stroke: #7c5cff; stroke-width: 8; stroke-linecap: round; }
.tv-stroke-amber { fill: none; stroke: #e8a317; stroke-width: 6; stroke-linecap: round; }
.tv-route-line { fill: none; stroke: #1463ff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 10; }
.tv-pin circle { fill: #0b1533; stroke: #fff; stroke-width: 2.5; }
.tv-pin text { fill: #fff; font: 800 13px Inter, system-ui, sans-serif; }
.tv-t { fill: #3a465c; font: 700 14px Inter, system-ui, sans-serif; }
.tv-t-sm { fill: #3a465c; font: 700 12px Inter, system-ui, sans-serif; }
.tv-t-b { fill: #0b1533; font: 800 16px var(--display); }
.tv-on-mint { fill: #053d2b; } .tv-on-ink { fill: #fff; }
.tv-num { fill: #0b1533; font: 800 26px var(--display); }
.tv-num--amber { fill: #a35f00; } .tv-num--mint { fill: #0a7a55; }

/* gentle entrance (only with JS, so the drawings are always visible without it) */
.tv .tv-a { transition: opacity .55s ease var(--d, 0ms), transform .55s ease var(--d, 0ms); transform-box: fill-box; transform-origin: center bottom; }
.tut-js .tv:not(.is-in) .tv-a { opacity: 0; transform: translateY(10px); }
.tut-js .tv:not(.is-in) .tv-grow { transform: scaleY(0); }
.tut-js .tv:not(.is-in) .tv-venn { transform: scale(.6); transform-origin: center; }
.tv.is-in .tv-route-line { animation: tv-dash 1.6s linear infinite; }
@keyframes tv-dash { to { stroke-dashoffset: -48; } }

/* timeline */
.tv-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; position: relative; }
.tv-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--t-ink); }
.tv-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: calc(50% + 22px); right: calc(-50% + 18px); height: 4px; border-radius: 4px; background: linear-gradient(90deg, #1463ff, #6ff0bc); }
.tv-dot { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0b1533; color: #fff; font-weight: 800; box-shadow: 0 0 0 5px #fff; }
.tv-timeline li:last-child .tv-dot { background: var(--t-mint-ink); }
@media (max-width: 640px) {
  .tv-timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tv-timeline li { flex-direction: row; text-align: left; }
  .tv-timeline li:not(:last-child)::after { top: 40px; left: 17px; right: auto; width: 4px; height: 18px; }
}

/* price calculator */
.tv-calc { display: grid; gap: 6px; }
.tv-calc label { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: #3a465c; margin-top: 4px; }
.tv-calc output { font-family: var(--display); font-weight: 800; color: var(--t-ink); }
.tv-calc input[type="range"] { width: 100%; accent-color: var(--t-blue); min-height: 28px; }
.tv-calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tv-calc-out div { background: #fff; border-radius: 14px; padding: 10px; text-align: center; }
.tv-calc-out span { display: block; font-size: 12px; font-weight: 700; color: #657086; }
.tv-calc-out strong { font-family: var(--display); font-size: clamp(19px, 2.4vw, 26px); color: var(--t-ink); }
.tv-calc-out strong.is-mint { color: #0a7a55; }
.tv-bar { height: 12px; border-radius: 999px; background: #ffc15c; overflow: hidden; margin-top: 6px; }
.tv-bar span { display: block; height: 100%; background: var(--t-mint-ink); transition: width .3s ease; }

/* scam spotter */
.tv-scam { background: #fff; border-radius: 16px; padding: 14px; }
.tv-msg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tv-msg-head small { display: block; font-size: 12.5px; color: #657086; }
.tv-avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: #e8e2ff; color: #4b2fc9; font-weight: 800; flex: none; }
.tv-msg { margin: 0; padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: #eef2f8; line-height: 1.8; font-size: 15.5px; }
.tv-scam-bit { font: inherit; color: inherit; background: none; border: 0; padding: 1px 2px; border-radius: 6px; cursor: pointer; text-align: left; display: inline; line-height: inherit; }
.tv-scam-bit:hover { background: #dbe7ff; }
.tv-scam-bit.is-flag { background: #ffe0d1; box-shadow: inset 0 -2px 0 #f97316; }
.tv-scam-bit.is-ok { background: #e9eef6; color: #657086; }
.tv-scam-status { margin: 10px 0 6px; font-size: 14.5px; font-weight: 600; }
.tv-scam-status [data-found] { font-family: var(--display); font-weight: 800; color: #c2410c; }
.tv-scam-why { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff4de; font-size: 14px; }
.tv-scam-answers summary { cursor: pointer; font-weight: 700; color: var(--t-blue); font-size: 14.5px; }
.tv-scam-answers ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.45; }

/* checklist board */
.tv-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.tv-board li { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--t-line); font-weight: 700; font-size: 14.5px; line-height: 1.3; min-width: 0; }
.tv-board li > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tv-board-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #eef3ff; color: var(--t-blue); font-size: 13px; }
.tv-board svg { width: 20px; height: 20px; color: var(--t-mint-ink); flex: none; }

/* mock screen */
.tv-screen { max-width: 420px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--t-line); box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.tv-screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0b1533; color: #fff; font-weight: 700; font-size: 14px; }
.tv-screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.tv-screen-bar img { margin-left: 6px; border-radius: 4px; background: #fff; }
.tv-screen-body { padding: 14px; display: grid; gap: 10px; }
.tv-field { display: grid; grid-template-columns: 24px 1fr; grid-template-rows: auto auto; gap: 4px 10px; align-items: center; }
.tv-field-n { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: var(--t-blue); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tv-field-l { font-size: 13.5px; font-weight: 700; color: #3a465c; }
.tv-field-i { height: 30px; border-radius: 8px; background: #eef2f8; border: 1px solid #dbe2ee; }
.tv-screen-btn { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--t-blue); color: #fff; font-weight: 800; margin-top: 4px; }

/* gig card */
.tv-gig { max-width: 340px; margin: 0 auto; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--t-line); box-shadow: 0 14px 30px rgba(16,24,40,.08); }
.tv-gig-cover { position: relative; }
.tv-gig-cover svg { display: block; width: 100%; height: auto; }
.tv-gig-body { padding: 12px 14px; display: grid; gap: 8px; }
.tv-gig-seller { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.tv-gig-seller .tv-avatar { width: 26px; height: 26px; font-size: 12px; }
.tv-gig-title { margin: 0; font-weight: 700; line-height: 1.35; }
.tv-gig-rate, .tv-gig-price { margin: 0; font-size: 14px; color: #4a556b; display: flex; align-items: center; gap: 6px; }
.tv-gig-price strong { color: var(--t-ink); font-size: 17px; }
.tv-gig-pin { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0b1533; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; margin-right: 6px; vertical-align: 1px; }
.tv-gig-cover .tv-gig-pin { position: absolute; left: 10px; top: 10px; }
.tv-star { width: 14px; height: 14px; background: #ffc15c; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tv-gig-foot { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--t-line); font-size: 12px; color: #657086; }

/* ladder */
.tv-ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; min-height: 220px; }
.tv-ladder li { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; min-width: 0; }
.tv-ladder-bar { display: grid; place-items: start center; height: var(--h); min-height: 44px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #1463ff, #0f4fc7); padding-top: 8px; }
.tv-ladder li:last-child .tv-ladder-bar { background: linear-gradient(180deg, #6ff0bc, #0e9f6e); }
.tv-ladder-bar b { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0b1533; display: grid; place-items: center; font-size: 13px; }
.tv-ladder-l { font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; min-height: 4em; }
@media (max-width: 560px) {
  .tv-ladder { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tv-ladder li { flex-direction: row; align-items: center; height: auto; }
  .tv-ladder-bar { width: var(--h); height: 34px; min-width: 44px; place-items: center end; padding: 0 6px 0 0; border-radius: 4px 12px 12px 4px; }
  .tv-ladder-l { text-align: left; min-height: 0; flex: 1; }
}

/* money route */
.tv-route { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tv-route li { display: flex; align-items: center; gap: 10px; flex: 1 1 120px; min-width: 0; }
.tv-route li span { flex: 1; padding: 14px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--t-line); text-align: center; font-weight: 800; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.tv-route li:first-child span { background: #0b1533; color: #fff; border-color: #0b1533; }
.tv-route li:last-child span { background: #d6fbe9; border-color: #6ff0bc; }
.tv-route li:not(:last-child)::after { content: ""; flex: none; width: 0; height: 0; border-left: 10px solid #1463ff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
@media (max-width: 560px) {
  .tv-route { flex-direction: column; align-items: stretch; }
  .tv-route li { flex-direction: column; flex-basis: auto; }
  .tv-route li span { width: 100%; box-sizing: border-box; }
  .tv-route li:not(:last-child)::after { border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid #1463ff; border-bottom: 0; }
}

/* 3D scenes */
.tv-3d-stage { position: relative; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #ffffff, #e7eefb); }
.tv-3d-stage canvas { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; touch-action: pan-y; cursor: grab; }
.tv-3d-stage canvas:active { cursor: grabbing; }
.tv--3d.is-3d .tv-3d-fallback { display: none; }
.tv-3d-label { position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(11,21,51,.88); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.tv-3d-label:empty { display: none; }
.tv--3d .tv-legend { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.tv-hot { width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 10px; min-height: 36px; border-radius: 10px; border: 1px solid var(--t-line); background: #fff; color: var(--t-ink); cursor: pointer; }
.tv-hot.is-on { background: #0b1533; color: #fff; border-color: #0b1533; }

@media (max-width: 640px) {
  .tut-step { padding: 18px 16px; border-radius: 20px; }
  .tut--article .tut-steps { padding: 0 14px 6px; }
  .tut--article .tut-step { padding: 22px 0; }
  .tut-step-n { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
  .tut-lead, .tut-more { font-size: 16px; }
  .tv { padding: 12px; }
  .tut-box { padding: 18px 16px; }
  .tut-format, .tut-print { font-size: 14px; padding: 9px 8px; }
  .tut-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tut-chip { flex: none; }
  .tut-js.tut--steps .tut-step { scroll-margin-top: 130px; }
  /* the step navigator becomes a sticky strip of numbers */
  .tut-js.tut--steps .tut-nav { position: sticky; top: 0; z-index: 5; padding: 10px 12px; border-radius: 0 0 16px 16px; box-shadow: 0 6px 16px rgba(16,24,40,.08); }
  .tut-js.tut--steps .tut-nav-title { display: none; }
  .tut-js.tut--steps .tut-progress { margin-bottom: 8px; }
  .tut-js.tut--steps .tut-nav-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .tut-js.tut--steps .tut-nav-list a { padding: 2px; }
  .tut-js.tut--steps .tut-nav-list a span { display: none; }
  .tut-js.tut--steps .tut-nav-list b { width: 32px; height: 32px; font-size: 14px; }
  .tv-calc-out strong { font-size: 18px; }
  .tut-try-prices strong { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .tv .tv-a, .tut-progress-bar span, .tv-bar span, .tut-card { transition: none; }
  .tut-js .tv:not(.is-in) .tv-a, .tut-js .tv:not(.is-in) .tv-grow, .tut-js .tv:not(.is-in) .tv-venn { opacity: 1; transform: none; }
  .tv.is-in .tv-route-line { animation: none; }
  .tut-confetti { display: none; }
  .tut-complete-badge { animation: none; }
}

@media print {
  .site-header, .site-footer, .tut-formats, .tut-nav, .tut-pager, .tut-step-actions, .tut-try, .tut-complete, .tut-hero .back-link, .tut-quiz-opts, .tv-hot, .tv-3d-stage canvas, .skip-link { display: none !important; }
  .tut-step, .tut-js.tut--steps .tut-step, .tut-js.tut--slides .tut-step { display: block !important; border: 0; padding: 12px 0; break-inside: avoid-page; }
  .tut-more, .tut-slide-art { display: block; }
  .tut-slide-art { display: none !important; }
  .tut--article .tut-steps, .tut-steps { border: 0; padding: 0; }
  .tut-layout { display: block; }
  .tv--3d .tv-3d-fallback { display: block !important; }
  .tut-hero { background: #fff !important; color: #000 !important; }
  .tut-hero h1, .tut-hero .intro, .tut-hero .eyebrow, .tut-hero-meta, .tut-hero .list-stat, .tut-hero .list-stat span, .tut-hero .list-stat strong { color: #000 !important; }
  .tut-quiz-answer > p { display: block; }
  .tut-sources a::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 11px; }
  .tv, .tut-box, .tut-callout { break-inside: avoid; }
}
