:root {
  --ink: #111b24;
  --navy: #14202c;
  --navy-soft: #1d2b38;
  --paper: #f4f3ee;
  --surface: #fffefa;
  --surface-2: #e8ebe5;
  --muted: #69716d;
  --line: #d4d8d1;
  --mint: #91e0c5;
  --mint-strong: #16745d;
  --warning: #e67252;
  --warning-bg: #fff0ea;
  --page: min(1180px, calc(100% - 48px));
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; line-height: 1.65; letter-spacing: 0; }
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
[hidden] { display: none !important; }
::selection { color: var(--navy); background: var(--mint); }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; color: var(--navy); background: var(--mint); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.reading-progress { position: fixed; z-index: 90; inset: 0 0 auto; height: 3px; }
.reading-progress span { display: block; width: 100%; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; }

.site-header { position: absolute; z-index: 30; top: 0; left: 0; right: 0; height: var(--header-height); color: white; }
.site-header.solid { position: fixed; color: var(--ink); background: rgb(255 254 250 / .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: var(--page); height: 100%; margin: auto; display: flex; align-items: center; border-bottom: 1px solid rgb(255 255 255 / .2); }
.solid .header-inner { border-bottom: 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: var(--mint); border-radius: 5px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 15px; font-weight: 800; }
.brand-copy small { margin-top: 4px; color: currentColor; opacity: .55; font-size: 9px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 27px; }
.main-nav a { position: relative; color: currentColor; opacity: .72; font-size: 13px; font-weight: 600; transition: opacity .2s ease; }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--mint-strong); }
.site-header:not(.solid) .main-nav a.active::after { background: var(--mint); }
.icon-button { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 4px; color: currentColor; background: transparent; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.icon-button:hover { background: rgb(128 128 128 / .13); }
.icon-button:active { transform: translateY(1px); }
.search-open { margin-left: 22px; }
.menu-button { display: none; margin-left: 4px; }

.home-hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; color: white; background: var(--navy); }
.hero-image { position: absolute; inset: 0; background: url("assets/keyboard-hero.jpg") center 58% / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: rgb(8 16 24 / .68); }
.hero-inner { position: relative; z-index: 1; width: var(--page); margin: 0 auto; padding-top: 58px; }
.eyebrow, .section-kicker { margin: 0 0 15px; color: var(--mint-strong); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.eyebrow, .section-kicker.light { color: var(--mint); }
.home-hero h1 { max-width: 950px; margin: 0; font-size: clamp(48px, 5.6vw, 76px); line-height: 1.1; letter-spacing: 0; text-wrap: balance; }
.hero-copy { max-width: 600px; margin: 22px 0 28px; color: rgb(255 255 255 / .75); font-size: 16px; text-wrap: pretty; }
.hero-search, .dialog-search { position: relative; width: min(610px, 100%); min-height: 58px; display: flex; align-items: center; gap: 12px; color: var(--ink); background: var(--surface); border: 1px solid rgb(255 255 255 / .7); border-radius: 5px; box-shadow: 0 18px 50px rgb(7 14 22 / .24); }
.hero-search > svg, .dialog-search > svg { flex: 0 0 auto; margin-left: 18px; color: var(--muted); }
.site-search input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.site-search input::placeholder { color: #929994; }
.hero-search kbd { margin-right: 10px; padding: 3px 7px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; font-family: inherit; font-size: 10px; }
.hero-meta { margin-top: 22px; display: flex; gap: 26px; color: rgb(255 255 255 / .58); font-size: 11px; }
.hero-meta strong { margin-right: 4px; color: white; font-size: 15px; font-variant-numeric: tabular-nums; }

.search-results { position: absolute; z-index: 12; left: -1px; right: -1px; top: calc(100% + 8px); max-height: 390px; overflow-y: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 20px 55px rgb(8 18 28 / .22); }
.search-results a { min-height: 70px; padding: 12px 15px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: #f0f3ee; }
.search-result-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--mint-strong); background: #dbf1e9; border-radius: 4px; }
.search-results a div { min-width: 0; display: grid; }
.search-results strong { font-size: 13px; }
.search-results small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-no-result { padding: 24px; display: grid; text-align: center; }
.search-no-result span { color: var(--muted); font-size: 11px; }
.search-dialog { position: fixed; z-index: 80; inset: 0; display: grid; place-items: start center; padding-top: 13vh; }
.dialog-backdrop { position: absolute; inset: 0; border: 0; background: rgb(10 18 26 / .7); backdrop-filter: blur(7px); }
.search-panel { position: relative; z-index: 1; width: min(650px, calc(100% - 28px)); }
.dialog-search { width: 100%; min-height: 64px; }
.dialog-search .search-close { margin-right: 8px; }
.search-hint { margin: 10px 4px; color: rgb(255 255 255 / .67); font-size: 11px; }

.section { width: var(--page); margin: auto; padding: 96px 0 112px; }
.section-title-row { margin-bottom: 40px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-title-row h2, .feature-band h2, .help-copy h2, .community-strip h2, .community-details h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.16; letter-spacing: 0; text-wrap: balance; }
.section-title-row > p { max-width: 370px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mint-strong); font-size: 13px; font-weight: 800; }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform .2s ease; }
.button { min-height: 46px; width: fit-content; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { color: var(--navy); background: var(--mint); }
.button.primary:hover { background: #a9ead4; }
.button.dark { color: white; background: var(--navy); }
.button.dark:hover { background: #253746; }
.button.muted { width: 100%; color: var(--muted); background: #e3e6e1; cursor: not-allowed; }

.category-section { padding-bottom: 82px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-link { position: relative; min-height: 280px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); transition: color .25s ease, background .25s ease; }
.category-link:nth-child(1), .category-link:nth-child(2) { grid-column: span 2; }
.category-link:nth-child(n+3) { grid-column: span 2; min-height: 240px; }
.category-link:hover { color: white; background: var(--navy); }
.category-order { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.category-icon { margin: auto 0 25px; display: grid; place-items: center; width: 45px; height: 45px; color: var(--mint-strong); background: #dff2eb; border-radius: 4px; }
.category-icon svg { width: 23px; height: 23px; }
.category-link h3 { margin: 0 0 7px; font-size: 18px; }
.category-link p { max-width: 25ch; margin: 0; color: var(--muted); font-size: 11px; }
.category-link:hover p, .category-link:hover .category-order { color: rgb(255 255 255 / .58); }
.category-arrow { position: absolute; top: 24px; right: 24px; }

.starter-section { padding-top: 60px; }
.editorial-list { border-top: 1px solid var(--ink); }
.article-row { min-height: 160px; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.article-row:hover { padding: 0 18px; background: var(--surface); }
.row-number { align-self: start; margin-top: 30px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.content-label { color: var(--mint-strong); font-size: 10px; font-weight: 800; }
.article-row h3 { margin: 6px 0 5px; font-size: 23px; line-height: 1.3; }
.article-row p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; }
.row-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }

.feature-band { color: white; background: var(--navy); }
.feature-band-inner { width: var(--page); margin: auto; padding: 100px 0 112px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.feature-intro { align-self: start; position: sticky; top: 110px; }
.feature-intro > p:not(.section-kicker) { max-width: 430px; margin: 20px 0 30px; color: rgb(255 255 255 / .6); font-size: 13px; }
.tutorial-stack { border-top: 1px solid rgb(255 255 255 / .2); }
.tutorial-item { min-height: 210px; padding: 28px 0; display: grid; grid-template-columns: 62px 1fr auto; gap: 20px; align-items: start; border-bottom: 1px solid rgb(255 255 255 / .2); }
.tutorial-item:hover h3 { color: var(--mint); }
.tutorial-symbol { display: grid; place-items: center; width: 55px; height: 55px; color: var(--navy); background: var(--mint); border-radius: 5px; }
.tutorial-symbol svg { width: 25px; height: 25px; }
.tutorial-item span { color: var(--mint); font-size: 10px; }
.tutorial-item h3 { margin: 10px 0 7px; font-size: 25px; transition: color .2s ease; }
.tutorial-item p { max-width: 500px; margin: 0; color: rgb(255 255 255 / .58); font-size: 12px; }
.tutorial-item > svg { margin-top: 5px; }

.resource-preview, .download-table { border-top: 1px solid var(--ink); }
.studio-resource-row { min-height: 126px; padding: 22px 0; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.studio-resource-row:hover { padding-right: 15px; padding-left: 15px; background: var(--surface); }
.studio-resource-row > div > span { color: var(--mint-strong); font-size: 10px; font-weight: 800; }
.studio-resource-row h3 { margin: 3px 0; font-size: 17px; }
.studio-resource-row p { margin: 0; color: var(--muted); font-size: 11px; }
.studio-resource-row > strong { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.resource-row { min-height: 150px; padding: 24px 0; display: grid; grid-template-columns: 52px minmax(220px, 1.2fr) 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.resource-icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--mint-strong); background: #dff2eb; border-radius: 4px; }
.resource-main > span { color: var(--mint-strong); font-size: 10px; font-weight: 800; }
.resource-main h3 { margin: 4px 0; font-size: 16px; }
.resource-main p { margin: 0; color: var(--muted); font-size: 11px; }
.resource-row dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.resource-row dl div { min-width: 0; }
.resource-row dt { color: var(--muted); font-size: 9px; }
.resource-row dd { margin: 3px 0 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.resource-action { min-width: 108px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); color: var(--muted); background: #eceeea; border-radius: 4px; font-size: 10px; cursor: not-allowed; }
.resource-action.ready { color: var(--navy); background: var(--mint); border-color: var(--mint); cursor: pointer; font-weight: 800; }
.resource-action.ready:hover { background: #a9ead4; }
.safety-note { margin-top: 24px; padding: 17px 20px; display: flex; align-items: flex-start; gap: 12px; color: #914c37; background: var(--warning-bg); border-left: 4px solid var(--warning); }
.safety-note > svg { flex: 0 0 auto; margin-top: 2px; }
.safety-note p { margin: 0; font-size: 11px; }

.help-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; border-top: 1px solid var(--line); }
.help-copy p:not(.section-kicker) { max-width: 430px; margin: 20px 0 28px; color: var(--muted); font-size: 13px; }
.faq-preview { border-top: 1px solid var(--ink); }
.faq-preview a { min-height: 78px; padding: 0 6px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.faq-preview a:hover { color: var(--mint-strong); }
.community-strip { width: var(--page); min-height: 250px; margin: 0 auto 110px; padding: 42px 45px; display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 50px; color: white; background: var(--navy-soft); }
.community-strip > p { max-width: 430px; color: rgb(255 255 255 / .58); font-size: 12px; }

.site-footer { min-height: 210px; padding: 45px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 35px; color: rgb(255 255 255 / .63); background: var(--navy); font-size: 11px; }
.footer-brand { color: white; }
.site-footer > div > p { margin: 12px 0 0; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--mint); }
.footer-meta { justify-self: end; }
.compact-footer { min-height: 130px; grid-template-columns: 1fr 1fr; }

.page-main { padding-top: var(--header-height); }
.page-hero { width: var(--page); min-height: 390px; margin: auto; padding: 88px 0 68px; display: flex; align-items: end; justify-content: space-between; gap: 50px; border-bottom: 1px solid var(--ink); }
.page-hero.compact { min-height: 340px; }
.page-hero > div:first-child { max-width: 760px; }
.page-hero h1 { margin: 0; font-size: clamp(43px, 6vw, 70px); line-height: 1.08; text-wrap: balance; }
.page-hero > div > p:last-child { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb { margin: 0 0 38px !important; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px !important; }
.breadcrumb a:hover { color: var(--mint-strong); }
.hero-stat { flex: 0 0 auto; margin-bottom: 7px; display: grid; text-align: right; }
.hero-stat strong { font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-stat span { color: var(--muted); font-size: 10px; }

.library-layout, .faq-page-layout { display: grid; grid-template-columns: 190px 1fr; gap: 70px; padding-top: 60px; }
.filter-sidebar { align-self: start; position: sticky; top: 115px; display: grid; gap: 3px; }
.filter-sidebar p { margin: 0 0 10px; color: var(--muted); font-size: 10px; font-weight: 800; }
.filter-sidebar button { padding: 10px 12px; border: 0; border-left: 2px solid transparent; text-align: left; color: var(--muted); background: transparent; font-size: 12px; cursor: pointer; }
.filter-sidebar button:hover, .filter-sidebar button.active { color: var(--ink); background: #e8ebe6; border-left-color: var(--mint-strong); }
.list-toolbar, .download-toolbar { min-height: 62px; display: flex; align-items: start; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--ink); }
.list-toolbar > div { display: flex; align-items: baseline; gap: 8px; }
.list-toolbar strong { font-size: 17px; }
.list-toolbar span { color: var(--muted); font-size: 10px; }
.inline-search, .large-search { min-height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 7px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.inline-search input, .large-search input { min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.article-index .article-row { min-height: 178px; }
.empty-state { min-height: 330px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state > svg { width: 35px; height: 35px; color: var(--muted); }
.empty-state h2 { margin: 16px 0 4px; font-size: 21px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }

.article-header { color: white; background: var(--navy); }
.article-header-inner { width: min(850px, calc(100% - 48px)); margin: auto; padding: 84px 0 82px; }
.article-header .breadcrumb, .community-hero .breadcrumb { color: rgb(255 255 255 / .55); }
.article-header .content-label { color: var(--mint); }
.article-header h1 { margin: 12px 0 14px; font-size: clamp(42px, 6vw, 68px); line-height: 1.1; }
.article-header > div > p:not(.breadcrumb) { max-width: 650px; margin: 0; color: rgb(255 255 255 / .65); font-size: 15px; }
.article-meta { margin: 22px 0 28px; display: flex; gap: 20px; color: rgb(255 255 255 / .55); font-size: 10px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-tools { display: grid; justify-items: start; gap: 12px; }
.article-secondary-tool { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.article-secondary-tool a { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 800; }
.article-secondary-tool a:hover { color: white; }
.article-secondary-tool span { color: rgb(255 255 255 / .58); }
.article-body-layout { width: min(1000px, calc(100% - 48px)); margin: auto; padding: 70px 0 120px; display: grid; grid-template-columns: 200px minmax(0, 700px); gap: 70px; }
.article-toc { align-self: start; position: sticky; top: 110px; display: grid; }
.article-toc > strong { margin-bottom: 13px; color: var(--muted); font-size: 12px; }
.article-toc a { padding: 10px 0; display: grid; grid-template-columns: 28px 1fr; gap: 7px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.article-toc a:hover { color: var(--mint-strong); }
.article-toc a span { font-variant-numeric: tabular-nums; }
.copy-page-link { margin-top: 18px; padding: 10px 0; display: inline-flex; align-items: center; gap: 7px; border: 0; border-top: 1px solid var(--line); text-align: left; color: var(--mint-strong); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.article-lead { margin: 0 0 38px; font-size: 18px; line-height: 1.9; text-wrap: pretty; }
.prerequisite { margin-bottom: 45px; padding: 25px 28px; background: var(--surface); border-left: 4px solid var(--mint-strong); }
.prerequisite h2 { margin: 0 0 14px; font-size: 15px; }
.prerequisite ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; list-style: none; }
.prerequisite li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.prerequisite li svg { color: var(--mint-strong); }
.guide-steps { margin: 0; padding: 0; list-style: none; }
.guide-steps li { padding: 35px 0; display: grid; grid-template-columns: 55px 1fr; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.guide-steps li > div { min-width: 0; }
.guide-number { color: var(--mint-strong); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.guide-steps h2 { margin: 0 0 10px; font-size: 23px; }
.guide-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.guide-media { margin-top: 28px; display: grid; gap: 34px; }
.tutorial-figure { min-width: 0; margin: 0; }
.tutorial-image-button { width: 100%; padding: 0; display: block; overflow: hidden; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: zoom-in; }
.tutorial-image-button:hover { border-color: var(--mint-strong); }
.tutorial-image-button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.tutorial-image-button img { width: 100%; height: auto; display: block; background: #202020; }
.image-zoom-hint { min-height: 42px; padding: 0 12px; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--mint-strong); font-size: 13px; font-weight: 800; }
.image-zoom-hint svg { width: 15px; height: 15px; }
.tutorial-figure figcaption { margin: 0 0 12px; display: grid; grid-template-columns: 32px 1fr; align-items: baseline; gap: 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.tutorial-figure figcaption span { color: var(--mint-strong); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.7; }
.effect-translations { margin-top: 38px; }
.guide-steps .effect-translations h3 { margin: 0 0 14px; font-size: 19px; }
.effect-translation-table { width: 100%; table-layout: fixed; border-collapse: collapse; border-top: 1px solid var(--ink); }
.effect-translation-table th, .effect-translation-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.effect-translation-table th { color: var(--mint-strong); background: var(--surface-2); font-size: 12px; }
.effect-translation-table td { font-size: 13px; }
.effect-translation-table code { overflow-wrap: anywhere; color: var(--ink); font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.guide-steps .effect-translation-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.article-note { margin-top: 24px; padding: 20px; display: flex; align-items: flex-start; gap: 11px; color: #82503f; background: var(--warning-bg); border-left: 4px solid var(--warning); }
.article-note p { margin: 0; font-size: 12px; }
.article-related { margin-top: 54px; }
.article-related h2 { margin: 0 0 17px; font-size: 20px; }
.article-related > div { border-top: 1px solid var(--ink); }
.article-related a { min-height: 100px; padding: 18px 4px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.article-related a:hover strong { color: var(--mint-strong); }
.article-related a > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--mint-strong); background: #dff2eb; border-radius: 4px; }
.article-related a > div { min-width: 0; }
.article-related strong { font-size: 13px; transition: color .2s ease; }
.article-related p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.article-related a > svg { color: var(--muted); }
.article-end { margin-top: 60px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); font-size: 11px; }
.article-end a { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-strong); font-weight: 800; }
.article-missing { min-height: 650px; display: grid; place-items: center; align-content: center; text-align: center; }
.article-missing > span { color: var(--mint-strong); font-size: 12px; font-weight: 800; }
.article-missing h1 { margin: 8px 0; font-size: 38px; }
.article-missing p { margin: 0 0 25px; color: var(--muted); }
.image-viewer { width: min(1600px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: visible; background: transparent; border: 0; }
.image-viewer::backdrop { background: rgb(5 10 15 / .88); backdrop-filter: blur(5px); }
.image-viewer-panel { position: relative; padding: 12px; display: grid; background: var(--surface); border-radius: 4px; }
.image-viewer-panel img { width: 100%; max-height: calc(100dvh - 110px); display: block; object-fit: contain; background: #151515; }
.image-viewer-panel p { min-height: 34px; margin: 0; padding: 10px 48px 0 2px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.image-viewer-close { position: absolute; z-index: 1; top: 20px; right: 20px; color: white; background: rgb(10 18 26 / .82); border-color: rgb(255 255 255 / .35); }
.image-viewer-close:hover { background: var(--navy); }
.image-viewer-open { overflow: hidden; }

.download-layout { padding-top: 55px; }
.download-toolbar { align-items: center; padding-bottom: 20px; }
.segmented { display: flex; gap: 4px; }
.segmented button { min-height: 36px; padding: 0 13px; border: 0; color: var(--muted); background: transparent; border-radius: 3px; font-size: 11px; cursor: pointer; }
.segmented button:hover, .segmented button.active { color: white; background: var(--navy); }
.download-table .resource-row { grid-template-columns: 52px minmax(210px, 1.2fr) 1fr auto; }
.grouped-downloads { border-top: 0; }
.resource-group { margin-top: 52px; border-top: 1px solid var(--ink); }
.resource-group:first-child { margin-top: 28px; }
.resource-group > header { min-height: 104px; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.resource-group > header > span { color: var(--mint-strong); font-size: 10px; font-weight: 800; }
.resource-group > header h2 { margin: 0; font-size: 22px; }
.resource-group > header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.resource-group > header > strong { color: var(--muted); font-size: 10px; }
.model-resource-row { min-height: 142px; padding: 22px 0; display: grid; grid-template-columns: minmax(250px, .85fr) 1.15fr; align-items: center; gap: 35px; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.model-identity { min-width: 0; display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 18px; }
.model-identity > div > span { color: var(--mint-strong); font-size: 9px; font-weight: 800; }
.model-identity h3 { margin: 2px 0; font-size: 18px; }
.model-identity p { margin: 0; color: var(--muted); font-size: 10px; }
.model-files { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.model-file { min-height: 70px; padding: 10px 11px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); }
.model-file-icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--mint-strong); background: #dff2eb; border-radius: 3px; }
.model-file > div { min-width: 0; display: grid; line-height: 1.3; }
.model-file strong { font-size: 10px; }
.model-file small { color: var(--muted); font-size: 8px; }
.model-file-action { min-width: 72px; min-height: 31px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); color: var(--muted); background: #eceeea; border-radius: 3px; font-size: 9px; cursor: not-allowed; }
.model-file-action.ready { color: var(--navy); background: var(--mint); border-color: var(--mint); cursor: pointer; font-weight: 800; }
.resource-contact { margin-top: 24px; padding: 23px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: white; background: var(--navy-soft); }
.resource-contact > div { display: flex; align-items: center; gap: 14px; }
.resource-contact-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; color: var(--navy); background: var(--mint); border-radius: 4px; }
.resource-contact strong { font-size: 13px; }
.resource-contact p { margin: 2px 0 0; color: rgb(255 255 255 / .58); font-size: 10px; }

.faq-hero { min-height: 480px; }
.large-search { width: min(560px, 100%); min-height: 52px; margin-top: 30px; background: var(--surface); }
.large-search input { flex: 1; font-size: 13px; }
.faq-page-layout { padding-top: 55px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.faq-item > button { width: 100%; min-height: 82px; padding: 0 5px; display: flex; align-items: center; justify-content: space-between; border: 0; text-align: left; background: transparent; font-size: 15px; font-weight: 700; cursor: pointer; }
.faq-item > button:hover { color: var(--mint-strong); }
.faq-item > button svg { transition: transform .2s ease; }
.faq-item > button[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq-answer { max-width: 720px; padding: 0 5px 26px; color: var(--muted); font-size: 13px; }
.faq-answer p { margin: 0 0 13px; }
.faq-answer div { display: flex; gap: 7px; }
.faq-answer div span, .community-topics span { padding: 3px 7px; border: 1px solid var(--line); font-size: 9px; }

.community-hero { min-height: 660px; padding: 95px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 100px; color: white; background: var(--navy); }
.community-copy h1 { max-width: 680px; margin: 0; font-size: clamp(48px, 7vw, 76px); line-height: 1.06; }
.community-copy > p:not(.breadcrumb, .section-kicker) { max-width: 600px; margin: 25px 0; color: rgb(255 255 255 / .62); font-size: 14px; }
.community-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.community-topics span { border-color: rgb(255 255 255 / .25); color: rgb(255 255 255 / .7); }
.qr-panel { justify-self: end; width: min(360px, 100%); padding: 20px; background: var(--surface); color: var(--ink); border-radius: 5px; }
.qr-placeholder { aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 10px; background: repeating-linear-gradient(45deg, #edf0eb, #edf0eb 10px, #f7f7f3 10px, #f7f7f3 20px); border: 1px dashed #aeb5ae; }
.qr-placeholder svg { width: 58px; height: 58px; color: var(--muted); }
.qr-placeholder strong { font-size: 15px; }
.qr-placeholder span { color: var(--muted); font-size: 10px; }
.qr-status { margin: 15px 0; display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.qr-status svg { flex: 0 0 auto; margin-top: 3px; }
.qr-status p { margin: 0; font-size: 10px; }
.community-details { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.rule-list { border-top: 1px solid var(--ink); }
.rule-list article { min-height: 135px; padding: 25px 0; display: grid; grid-template-columns: 50px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.rule-list article > span { color: var(--mint-strong); font-size: 10px; font-weight: 800; }
.rule-list h3 { margin: 0 0 5px; font-size: 17px; }
.rule-list p { margin: 0; color: var(--muted); font-size: 12px; }

.not-found-page { min-height: 100dvh; display: grid; place-items: center; color: white; background: var(--navy); }
.not-found { display: grid; place-items: center; text-align: center; }
.not-found > p { margin: 30px 0 0; color: var(--mint); font-size: 12px; font-weight: 800; }
.not-found h1 { margin: 5px 0; font-size: clamp(35px, 6vw, 60px); }
.not-found > span:not(.brand-mark) { margin-bottom: 25px; color: rgb(255 255 255 / .58); }

@media (max-width: 980px) {
  :root { --page: min(100% - 32px, 760px); }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: 70px; padding: 12px; flex-direction: column; align-items: stretch; gap: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 40px rgb(10 20 30 / .18); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px; }
  .main-nav a.active::after { display: none; }
  .search-open { margin-left: auto; }
  .menu-button { display: grid; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-link:nth-child(n) { grid-column: span 1; }
  .category-link:last-child { grid-column: span 2; }
  .feature-band-inner, .help-layout, .community-details { grid-template-columns: 1fr; gap: 50px; }
  .feature-intro { position: static; }
  .resource-row, .download-table .resource-row { grid-template-columns: 52px 1fr auto; }
  .resource-row dl { grid-column: 2 / -1; }
  .resource-action { grid-column: 3; grid-row: 1; }
  .community-strip { grid-template-columns: 1fr 1fr; }
  .community-strip .button { grid-column: 1 / -1; }
  .library-layout, .faq-page-layout { grid-template-columns: 150px 1fr; gap: 35px; }
  .article-body-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; }
  .community-hero { grid-template-columns: 1fr 340px; gap: 40px; }
  .model-resource-row { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 650px) {
  :root { --page: calc(100% - 28px); --header-height: 66px; }
  .brand-copy strong { font-size: 13px; }
  .home-hero { min-height: 690px; }
  .hero-image { background-position: 56% center; }
  .hero-overlay { background: rgb(8 16 24 / .6); }
  .hero-inner { padding-top: 40px; }
  .home-hero h1 { font-size: 43px; }
  .hero-copy { font-size: 14px; }
  .hero-search { min-height: 54px; }
  .hero-search kbd { display: none; }
  .hero-meta { gap: 17px; }
  .hero-meta span { display: grid; }
  .section { padding: 72px 0 82px; }
  .section-title-row { align-items: start; flex-direction: column; gap: 13px; }
  .section-title-row h2, .feature-band h2, .help-copy h2, .community-strip h2, .community-details h2 { font-size: 33px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-link:nth-child(n) { grid-column: span 1; min-height: 215px; }
  .article-row { min-height: 180px; grid-template-columns: 35px 1fr; gap: 10px; }
  .article-row:hover { padding: 0 8px; }
  .row-number { margin-top: 28px; }
  .row-meta { grid-column: 2; align-self: start; }
  .article-row h3 { font-size: 20px; }
  .feature-band-inner { padding: 75px 0 82px; }
  .tutorial-item { min-height: 230px; grid-template-columns: 50px 1fr; gap: 14px; }
  .tutorial-symbol { width: 48px; height: 48px; }
  .tutorial-item > svg { display: none; }
  .resource-row, .download-table .resource-row { grid-template-columns: 44px 1fr; gap: 13px; }
  .resource-row dl { grid-column: 1 / -1; }
  .resource-action { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .community-strip { width: 100%; margin-bottom: 0; padding: 45px 22px; grid-template-columns: 1fr; gap: 18px; }
  .community-strip .button { grid-column: auto; }
  .site-footer, .compact-footer { min-height: 220px; grid-template-columns: 1fr; align-content: center; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .footer-meta { justify-self: start; }
  .page-hero, .page-hero.compact { min-height: 380px; padding: 70px 0 50px; align-items: start; flex-direction: column; justify-content: end; }
  .page-hero h1 { font-size: 42px; }
  .hero-stat { text-align: left; }
  .library-layout, .faq-page-layout { grid-template-columns: 1fr; gap: 25px; }
  .filter-sidebar { position: static; grid-template-columns: repeat(3, 1fr); }
  .filter-sidebar p { grid-column: 1 / -1; }
  .filter-sidebar button { padding: 9px 6px; text-align: center; border: 0; border-bottom: 2px solid transparent; }
  .filter-sidebar button:hover, .filter-sidebar button.active { border-left: 0; border-bottom-color: var(--mint-strong); }
  .faq-page-layout .filter-sidebar { grid-template-columns: repeat(2, 1fr); }
  .list-toolbar, .download-toolbar { min-height: auto; padding-bottom: 18px; align-items: stretch; flex-direction: column; }
  .inline-search { width: 100%; }
  .inline-search input { width: 100%; }
  .article-header-inner { width: var(--page); padding: 65px 0 62px; }
  .article-header h1 { font-size: 42px; }
  .article-secondary-tool { align-items: flex-start; flex-direction: column; gap: 3px; }
  .article-body-layout { width: var(--page); padding: 50px 0 80px; grid-template-columns: 1fr; gap: 30px; }
  .article-toc { position: static; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .article-toc a { display: grid; }
  .copy-page-link { margin-top: 10px; }
  .prerequisite ul { grid-template-columns: 1fr; }
  .guide-steps li { grid-template-columns: 40px 1fr; gap: 10px; }
  .guide-media { margin-left: -50px; gap: 28px; }
  .tutorial-figure figcaption { padding-right: 4px; font-size: 14px; }
  .tutorial-figure figcaption span { font-size: 11px; }
  .image-zoom-hint { min-height: 42px; }
  .article-related a { grid-template-columns: 38px 1fr; }
  .article-related a > svg { display: none; }
  .image-viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .image-viewer-panel { padding: 7px; }
  .image-viewer-panel img { max-height: calc(100dvh - 94px); }
  .image-viewer-close { top: 14px; right: 14px; }
  .article-end { align-items: start; flex-direction: column; }
  .segmented { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .studio-resource-row { grid-template-columns: 44px 1fr; gap: 12px; }
  .studio-resource-row > strong { grid-column: 2; }
  .resource-group > header { grid-template-columns: 38px 1fr; gap: 10px; }
  .resource-group > header > strong { grid-column: 2; }
  .model-identity { grid-template-columns: 44px 1fr; gap: 12px; }
  .model-files { grid-template-columns: 1fr; }
  .resource-contact { align-items: stretch; flex-direction: column; }
  .resource-contact .button { width: 100%; }
  .faq-hero { min-height: 500px; }
  .community-hero { min-height: 0; padding: 80px 14px 60px; grid-template-columns: 1fr; gap: 45px; }
  .community-copy h1 { font-size: 47px; }
  .qr-panel { justify-self: stretch; width: 100%; }
  .rule-list article { grid-template-columns: 38px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
