/* Tech help (/tech-help and /tech-help/<guide>). Tokens from assets/site.css. */

.th { container-type: inline-size; color: var(--ink); padding-bottom: 24px; --th-scr: #ffffff; --th-dev: #1e2a2f; --th-row: #f3f1ec; --th-tx: #1e2a2f; --th-mute: #5f7178; --th-hl: #e0915f; }
:root[data-theme="dark"] .th { --th-scr: #1b2a31; --th-dev: #0b1316; --th-row: #22343c; --th-tx: #e8eff1; --th-mute: #9db0b6; --th-hl: #f0ad86; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .th { --th-scr: #1b2a31; --th-dev: #0b1316; --th-row: #22343c; --th-tx: #e8eff1; --th-mute: #9db0b6; --th-hl: #f0ad86; } }
.th .care-ic { width: 22px; height: 22px; flex: none; }
.th a:not(.btn) { color: var(--accent); }
.th h2 { font-size: clamp(25px, 3.2vw, 32px); margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.th h2 .care-ic { color: var(--accent); width: 26px; height: 26px; }
.th .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th .care-crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 15.5px; color: var(--muted); margin: 6px 0 14px; }
.th .care-crumbs a { color: var(--muted); text-decoration: none; padding: 8px 0; }
.care-credit { font-size: 13px; color: var(--muted); }
.care-credit a { color: var(--muted) !important; }

/* hub */
.th-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(18px, 3vw, 34px); align-items: center; margin-top: 8px; }
.th-hero h1, .th-ghead h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 10px 0 12px; letter-spacing: -.02em; }
.th-lede { font-size: clamp(18.5px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; }
.th-hero-fig { margin: 0; }
.th-hero-photo { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.th-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.th-hero-fig figcaption { margin-top: 6px; }
@container (max-width: 640px) { .th-hero { grid-template-columns: 1fr; } .th-hero-fig { order: -1; } .th-hero-photo img { aspect-ratio: 16 / 9; } }
.th-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.th-filter span { font-weight: 650; font-size: 16px; margin-right: 4px; }
.th-filter button { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.th-filter button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.th-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 26px 0 0; }
.th-cats a { display: flex; gap: 12px; align-items: center; padding: 14px; min-height: 72px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; }
.th-cats a:hover { border-color: var(--accent); }
.th-cat-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.th-cats b { display: block; font-size: 17.5px; }
.th-cats span span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.35; }
.th-sec { margin: 36px 0 0; scroll-margin-top: 100px; }
.th-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.th-card a { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink) !important; transition: transform .25s, box-shadow .25s; }
.th-card a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.th-card-art { display: grid; place-items: center; background: var(--bg-2); padding: 14px 10px 0; height: 190px; overflow: hidden; }
.th-card-art .th-svg { width: auto; height: 210px; max-width: 100%; }
.th-card-art .th-svg-wide { width: 100%; height: auto; }
.th-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.th-card-body b { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.25; }
.th-card-body > span:last-child { color: var(--muted); font-size: 15px; }
.th-dev-pill { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.th-none { padding: 18px; border-radius: 16px; background: var(--bg-2); font-size: 17px; }
.th-also a { display: flex; gap: 14px; align-items: center; margin: 34px 0 0; padding: 18px; border-radius: 20px; background: var(--night); color: var(--night-ink) !important; text-decoration: none; }
.th-also .care-ic { color: var(--warm); width: 28px; height: 28px; }
.th-also b { display: block; font-size: 19px; }
.th-also span span { display: block; color: var(--night-muted); font-size: 16px; }
.th-also .th-go { margin-left: auto; color: var(--night-ink); }
.th-note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* one guide */
.th-ghead { max-width: 46em; }
.th-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0; font-size: 16px; color: var(--ink-2); }
.th-meta span { display: inline-flex; gap: 6px; align-items: center; }
.th-meta .care-ic { color: var(--accent); width: 20px; height: 20px; }
.th-print { display: inline-flex; gap: 6px; align-items: center; min-height: 46px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer; }
.th-print .care-ic { width: 20px; height: 20px; }
.th-drawn { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); font-size: 15.5px; color: var(--ink-2); }
.th-drawn .care-ic { color: var(--accent); }
.th-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.th-step { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 100px; }
.th-step-art { margin: 0; display: grid; place-items: center; background: var(--bg-2); border-radius: 18px; padding: 14px 10px 6px; }
.th-step-art .th-svg { width: 100%; max-width: 230px; height: auto; }
.th-step-art .th-svg-wide { max-width: 100%; }
.th-step-art figcaption { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.th-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 22px var(--font); margin-bottom: 8px; }
.th-step h2 { font-size: clamp(24px, 3vw, 30px); margin: 0 0 8px; }
.th-step p { font-size: 19px; line-height: 1.6; margin: 0; }
@container (max-width: 600px) {
  .th-step { grid-template-columns: 1fr; padding: 14px; }
  .th-step-text { order: -1; }
  .th-step-art .th-svg { max-width: 220px; }
}
.th-tip, .th-sureno { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 16px 18px; border-radius: 18px; font-size: 17.5px; line-height: 1.55; }
.th-tip { background: var(--warm-soft); }
.th-tip .care-ic, .th-sureno .care-ic { color: var(--warm); width: 26px; height: 26px; margin-top: 2px; }
.th-sureno { border: 1px dashed var(--line-2); }
.th-sureno p { margin: 0; }
.th-src { margin: 26px 0 0; padding: 18px 20px; border-radius: 20px; background: var(--bg-2); }
.th-src h2 { font-size: 22px; }
.th-src p { margin: 0 0 6px; font-size: 16px; color: var(--ink-2); }
.th-src ul { margin: 0; padding-left: 1.2em; }
.th-src li { font-size: 17px; line-height: 1.5; padding: 4px 0; }
.th-src a { display: inline-flex; gap: 6px; align-items: center; min-height: 40px; }
.th-src a .care-ic { width: 16px; height: 16px; }
.th-back { margin: 16px 0 0; font-weight: 650; font-size: 17px; }

/* drawing kit */
.th-svg { display: block; }
.th-dev { fill: var(--th-dev); }
.th-scr { fill: var(--th-scr); }
.th-cam, .th-bar { fill: var(--th-dev); }
.th-scr + .th-cam { fill: var(--th-dev); }
.th-h { font: 700 17px var(--font); fill: var(--th-tx); }
.th-tx { font: 500 12.5px var(--font); fill: var(--th-tx); }
.th-txw { font: 600 12.5px var(--font); fill: #fff; }
.th-sm { font: 500 11px var(--font); fill: var(--th-mute); }
.th-xs { font: 500 9px var(--font); fill: var(--th-mute); }
.th-xsw { font: 700 11px var(--font); fill: #fff; }
.th-big { font: 700 34px var(--font); fill: #fff; }
.th-url { font: 600 12px var(--font); fill: var(--th-tx); }
.th-warn { font: 700 12px var(--font); fill: var(--danger); }
.th-link { font: 600 11px var(--font); fill: var(--danger); text-decoration: underline; }
.th-outtx { font: 500 11px var(--font); fill: #fff; }
.th-row { fill: var(--th-row); }
.th-none { fill: transparent; }
.th-hl { stroke: var(--th-hl); stroke-width: 3; }
.th-tap { fill: var(--th-hl); opacity: .95; }
.th-tapring { fill: none; stroke: var(--th-hl); stroke-width: 2.5; opacity: .55; }
.th-chev { fill: none; stroke: var(--th-mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-swon { fill: #34c759; }
.th-swoff { fill: var(--line-2); }
.th-knob { fill: #fff; }
.th-search { fill: var(--th-row); }
.th-track { fill: var(--line-2); }
.th-fill { fill: var(--accent); }
.th-fillbad { fill: var(--danger); }
.th-thumb { fill: #fff; }
.th-arrow { fill: none; stroke: var(--th-hl); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.th-in { fill: var(--th-row); }
.th-out { fill: var(--accent); }
.th-photo { fill: #cfe3ec; }
.th-mtn { fill: #6aa78a; }
.th-sun { fill: #f2c46d; }
.th-btn { fill: var(--th-row); }
.th-glyph { fill: none; stroke: var(--th-tx); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.th-block { fill: var(--th-row); }
.th-line { fill: var(--line-2); }
.th-cta { fill: var(--accent); }
.th-lock { fill: var(--ok); }
.th-lockline { fill: none; stroke: var(--ok); stroke-width: 1.6; }
.th-side { fill: var(--th-dev); }
.th-sidehl { fill: var(--th-hl); }
.th-apphl { stroke: var(--th-hl); stroke-width: 4; }
.th-win { fill: var(--th-scr); stroke: var(--line-2); stroke-width: 1.5; }
.th-task { fill: var(--th-row); }
.th-winlogo { fill: #2c68cc; }
.th-side-bg { fill: var(--th-row); }
.th-menuhl { fill: #2c68cc; }

@media print {
  .hdr, .ftr, .site-rail, .news-river, .top-search, .th-print, .th-related, .th-sureno, .care-crumbs, .seo-chips { display: none !important; }
  .th-step { break-inside: avoid; box-shadow: none; }
}
.th-step:has(.th-svg-wide) { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.th-step:has(.th-svg-wide) .th-step-art .th-svg { max-width: 360px; }
@container (max-width: 600px) { .th-step:has(.th-svg-wide) { grid-template-columns: 1fr; } }

.th [hidden] { display: none !important; }
