/* ---- assets/type-system.css ---- */
/* IDE 官网文字层级规则 v128（2026-11-03）。全站最后加载。
   字体族、字号、字重、行高只由 HTML 上的 ts- 标注决定；规则说明见 _docs/IDE_typography_rules.md。
   前缀 :root body:not(#_t) 用于压过各页原有规则。 */
:root{
 --ts-hw:500;
 --ts-d:clamp(36px,5.6vw,80.64px);--ts-h1:clamp(32px,3.5vw,50.4px);--ts-h2:clamp(27px,2.64vw,38px);--ts-h3:clamp(22px,1.95vw,28px);--ts-h4:clamp(18px,1.39vw,20px);
 --ts-dlh:1.32;--ts-h1lh:1.3;--ts-h2lh:1.3;--ts-h3lh:1.35;--ts-h4lh:1.45;
 --ts-p1:16px;--ts-p1lh:1.9;--ts-p2:16px;--ts-p2lh:1.9;--ts-p3:16px;--ts-p3lh:1.9}
:root[lang="en"]{--ts-hw:400;--ts-d:clamp(40px,5.8vw,83.52px);--ts-h1:clamp(36px,4.1vw,59px);
 --ts-dlh:1.08;--ts-h1lh:1.1;--ts-h2lh:1.15;--ts-h3lh:1.2;--ts-h4lh:1.3;
 --ts-p1:17px;--ts-p1lh:1.7;--ts-p2:17px;--ts-p2lh:1.7;--ts-p3:17px;--ts-p3lh:1.7}
:root[lang="ja"]{--ts-d:clamp(34px,5.1vw,73.44px);--ts-h1:clamp(24px,3vw,43.2px);--ts-h2:clamp(21px,2.29vw,33px);--ts-h3:clamp(19px,1.95vw,28px);--ts-h4:clamp(17px,1.39vw,20px);
 --ts-p1:17px;--ts-p1lh:1.8;--ts-p2:17px;--ts-p2lh:1.8;--ts-p3:17px;--ts-p3lh:1.8}
@media(max-width:600px){:root,:root[lang="en"],:root[lang="ja"]{--ts-p1:16px;--ts-p2:16px;--ts-p3:16px}}

/* ---- 标题（衬线） ---- */
:root body:not(#_t) .ts-d{font-size:var(--ts-d)!important;font-weight:var(--ts-hw)!important;line-height:var(--ts-dlh)!important}
:root body:not(#_t) .ts-h1{font-size:var(--ts-h1)!important;font-weight:var(--ts-hw)!important;line-height:var(--ts-h1lh)!important}
:root body:not(#_t) .ts-h2{font-size:var(--ts-h2)!important;font-weight:var(--ts-hw)!important;line-height:var(--ts-h2lh)!important}
:root body:not(#_t) .ts-h3{font-size:var(--ts-h3)!important;font-weight:var(--ts-hw)!important;line-height:var(--ts-h3lh)!important}
:root body:not(#_t) .ts-h4{font-size:var(--ts-h4)!important;font-weight:var(--ts-hw)!important;line-height:var(--ts-h4lh)!important}

/* ---- T 标语：项目标题下的一句话定位（无衬线、加粗、灰色） ---- */
:root body:not(#_t) .ts-t{font-family:var(--sans,"Inter Variable",Arial,sans-serif)!important;font-size:14px!important;font-weight:700!important;line-height:1.55!important;letter-spacing:.06em!important;text-transform:none!important;color:#4F5B55!important}

/* ---- 说明文字（无衬线） ---- */
:root body:not(#_t) .ts-p1{font-size:var(--ts-p1)!important;line-height:var(--ts-p1lh)!important}
:root body:not(#_t) .ts-p2{font-size:var(--ts-p2)!important;line-height:var(--ts-p2lh)!important}
:root body:not(#_t) .ts-p3{font-size:var(--ts-p3)!important;line-height:var(--ts-p3lh)!important}
:root body:not(#_t) .ts-p4{font-size:13px!important;line-height:1.5!important}

/* ---- 标签、序号、链接 ---- */
:root body:not(#_t) .ts-k{font-size:12px!important;font-weight:700!important;letter-spacing:.1em!important;text-transform:uppercase!important}
:root body:not(#_t) .ts-n{font-size:13px!important;font-weight:700!important}
:root body:not(#_t) .ts-l{font-size:14px!important;font-weight:700!important;letter-spacing:.02em!important;text-transform:none!important}

/* ---- 控件：C1 筛选按钮、C2 卡片标签 ---- */
:root body:not(#_t) .ts-c1{font-size:13px!important;font-weight:500!important}
:root body:not(#_t) .ts-c2{font-size:12px!important;font-weight:600!important}

/* ---- 例外（装饰性文字），清单见规则文件第二部分第 7 节 ---- */
:root body:not(#_t) .ts-x-hero{font-size:var(--ts-d)!important;font-weight:var(--ts-hw)!important}
:root[lang="en"] body:not(#_t) .ts-x-hero{letter-spacing:0!important}
:root body:not(#_t) .ts-x-slogan{font-size:var(--ts-d)!important;font-weight:var(--ts-hw)!important}

/* ---- 标注元素内部的 span / em / a 等跟随外层（数字 .xen .num 除外） ---- */
:root body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4,.ts-t,.ts-x-hero,.ts-x-slogan,.ts-p1,.ts-p2,.ts-p3,.ts-p4,.ts-k,.ts-l) :is(span,em,strong,b,i,a,time):not([class*="ts-"]):not(.xen):not(.num){font-size:inherit!important}
:root body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4,.ts-t,.ts-x-hero,.ts-x-slogan) :is(span,em,strong,b,i,a):not([class*="ts-"]):not(.xen):not(.num){font-weight:inherit!important}
:root body:not(#_t) .ts-t :is(span,em){font-family:inherit!important;letter-spacing:inherit!important;color:inherit!important}

/* ---- 个别排版：联系页导语不两端对齐（避免第一行字距被拉开） ---- */
:root body:not(#_t).pg-contact main .ts-p1{text-align:left!important;text-wrap:pretty!important}

/* v135: one approved category rule per language; size unchanged, weight 400. */
:root[lang^="zh"] body:not(#_t) .ide-work-section .ts-x-case-service{font-size:16px!important;font-weight:400!important;line-height:1.55!important}
:root[lang="en"] body:not(#_t) .ide-work-section .ts-x-case-service{font-size:17px!important;font-weight:400!important;line-height:1.55!important}
:root[lang="ja"] body:not(#_t) .ide-work-section .ts-x-case-service{font-size:17px!important;font-weight:400!important;line-height:1.55!important}

/* v126: v1.5 typography. K/N/L/C1/C2 line heights deliberately unchanged pending a separate decision. */
:root body:not(#_t) :is(.ts-p1,.ts-p2,.ts-p3,.ts-p4){font-weight:400!important}
:root body:not(#_t) :is(.ts-p1,.ts-p2,.ts-p3,.ts-p4,.ts-k,.ts-n,.ts-l,.ts-c1,.ts-c2) :is(span,em,strong,b,i,a,time):not([class*="ts-"]):not(.xen):not(.num){font-weight:inherit!important}
/* Existing caption size moved from homepage CSS, without changing its rendered values. */
:root body:not(#_t) .ts-x-caption{font-size:clamp(38px,6.4vw,104px)!important;font-weight:500!important;line-height:1!important}
:root[lang="ja"] body:not(#_t) .ts-x-caption{line-height:1.08!important}
:root body:not(#_t) .ts-x-caption :is(span,em){font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}
@media(max-width:600px){:root body:not(#_t) .ts-x-caption{font-size:clamp(30px,9vw,44px)!important}}

/* v128: font families belong to Type System. Preserve existing language glyph resources. */
:root{--ts-serif:var(--serif,"Fraunces Display",Georgia,"Noto Serif SC Subset",serif);--ts-sans:var(--sans,"Inter Variable",Inter,"Noto Sans SC Subset","Noto Sans SC Variable","Noto Sans JP Variable",Arial,sans-serif)}
:root body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4){font-family:var(--ts-serif)!important}
:root body:not(#_t) :is(.ts-t,.ts-p1,.ts-p2,.ts-p3,.ts-p4,.ts-k,.ts-n,.ts-l,.ts-c1,.ts-c2,.ts-nav){font-family:var(--ts-sans)!important}
:root body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4,.ts-t,.ts-p1,.ts-p2,.ts-p3,.ts-p4,.ts-k,.ts-n,.ts-l,.ts-c1,.ts-c2,.ts-nav) :is(span,em,strong,b,i,a,time):not([class*="ts-"]):not(.xen):not(.num){font-family:inherit!important}
/* Registered decorative X variants retain their approved display/body family. */
/* Preserve the existing Japanese italic heading glyph fallback from ja-glyphs.css. */
:root[lang="ja"] body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4) :is(em,i),
:root[lang="ja"] body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4) :is(em,i) *{font-family:"Fraunces Display","IDE Serif JP",serif!important}
/* Keep the homepage's already-rendered sans fallback chains exactly as accepted. */
:root body:not(#_t):not([class*="pg-"]){--ts-sans:"Inter Variable","Noto Sans SC Subset","Noto Sans SC Variable","Noto Sans JP Variable",sans-serif}
:root body:not(#_t) .ide-tl :is(.ts-k,.ts-p4){font-family:var(--ts-sans)!important}
:root body:not(#_t) .models .ts-n{font-family:var(--ts-sans)!important}
:root body:not(#_t) .ide-sm-meta.ts-k :is(span,em,strong,b,i,a,time):not([class*="ts-"]):not(.xen):not(.num){font-family:var(--ts-sans)!important}
/* Match the inherited-font selector's specificity, preserving Japanese italic glyphs. */
:root[lang="ja"] body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4) :is(em,i):not([class*="ts-"]):not(.xen):not(.num),
:root[lang="ja"] body:not(#_t) :is(.ts-d,.ts-h1,.ts-h2,.ts-h3,.ts-h4) :is(em,i) *:not([class*="ts-"]):not(.xen):not(.num){font-family:"Fraunces Display","IDE Serif JP",serif!important}

/* v138 R2: result suffix 45% of unchanged numeric parent, baseline aligned. */
:root{--ts-x-stat-unit:.45em}
:root body:not(#_t) .ts-x-stat-unit{font-size:var(--ts-x-stat-unit)!important;line-height:1!important;font-family:inherit!important;font-weight:inherit!important;letter-spacing:inherit!important}
/* ---- assets/case-reading.css ---- */
/* v107 TEST: scoped case readability and one-category display. Font metrics remain in type-system.css. */
.pg-case main .ph .h1,.pg-case .pnav .pt,.pg-work .card h2{overflow-wrap:anywhere;word-break:normal}
.pg-case .case-category{display:inline-block;margin:24px 0 0;padding-left:12px;border-left:1px solid #9C7A43;color:#3b6757}
.pg-case .cs>.cp{max-width:68ch}
.pg-case .cs>.cp+.cp{margin-top:1em}
.pg-case .case-approach-stages{display:grid;gap:32px;margin-top:28px;max-width:72ch}
.pg-case .case-stage{border-top:1px solid rgba(156,122,67,.28);padding-top:24px;min-width:0}
.pg-case .case-stage>.ts-n{color:#86693A;margin:0 0 12px}
.pg-case .case-stage>h3{margin:0 0 14px}
.pg-case .case-stage .cp{margin:0}
.pg-case .xidx{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px;row-gap:28px}
.pg-case .xe{min-width:0}.pg-case .xet{display:flex;align-items:baseline;gap:14px}.pg-case .xen{flex:0 0 auto}
.pg-case .xet>span:last-child{min-width:0;overflow-wrap:anywhere}
.pg-case .case-end-links{display:flex;gap:24px;flex-wrap:wrap;align-items:baseline}
.pg-case .case-related .links{display:flex;gap:16px 28px;flex-wrap:wrap}
.pg-case .pnav .pn{min-width:0}.pg-case .pnav .pc{min-width:0}.pg-case .pnav .pt{white-space:normal}
.pg-work .cards .card[hidden]{display:none!important}
.pg-work .filter{flex-wrap:wrap;row-gap:12px}
.pg-work .card .tags{max-width:100%;white-space:normal}
.pg-work .card img{object-fit:cover}
.ide-work-item .ide-work-item__index{white-space:normal}
html[lang="zh-CN"] .pg-case .cs>.cp,html[lang="ja"] .pg-case .cs>.cp{max-width:40em}
@media(max-width:900px){.pg-case .xidx{grid-template-columns:minmax(0,1fr);gap:24px}.pg-case .case-approach-stages{gap:24px}}
@media(max-width:600px){.pg-case .ph .h1{max-width:100%}.pg-case .case-end-links{gap:20px}.pg-case .case-related .links{display:grid;grid-template-columns:minmax(0,1fr)}}

.pg-case .case-title-phrase{display:inline-block;max-width:100%;overflow-wrap:anywhere}
/* ---- assets/design-image-check.css ---- */
/* v108 local check: restore approved v1.4 styles and v106 image ratios; no type-size/weight scale changes. */
.pg-case .case-category{color:var(--green)}
.pg-case .case-stage>h3{font-family:var(--serif)}
/* These symbols retain their existing ts-k / ts-l roles; inherit the specified weight instead of local overrides. */
.pg-case .ph .kicker .sep{font-weight:inherit}
.hband .hlink b{font-weight:inherit}
/* The new hero images carry intrinsic width/height attributes. Release height so the existing responsive aspect-ratio applies. */
.pg-case .casehero img[data-case-image]{height:auto}
/* Use the uncropped source, anchored to the person on the left. Top alignment protects the head in the desktop 21:9 banner. */
.pg-case .casehero img[data-case-focal="video-left"],.ide-work-item img[data-case-focal="video-left"],.pg-work .card img[data-case-focal="video-left"]{object-position:left top}

/* Category words are C2 even when the neighbouring number keeps the original K styling. */
.ide-work-item__index .ts-c2{color:var(--brand-green);text-transform:none;letter-spacing:normal}

/* v144 / Type System v1.7 */
:root[lang^="zh"] body:not(#_t) .ts-h4{font-weight:600!important}
:root body:not(#_t) :is(.ts-k,.ts-l){line-height:1.4!important}
:root body:not(#_t) .ts-h3{letter-spacing:-.012em!important}
