/* AgentFlow editorial edition: monochrome, serif hierarchy, quiet interactions. */
html[data-editorial]{--paper:#F9F8F6;--type:#171717;--ink:#171717;--accent:#171717;--muted:#363636;--line:rgba(28,28,28,.16);color-scheme:light;scroll-padding-top:100px}
html[data-editorial] body{background:var(--paper)!important;color:var(--type)!important;font-family:"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif!important;line-height:1.75;font-weight:450}
html[data-editorial] body :where(*){border-radius:0!important;box-shadow:none!important;text-shadow:none!important;background-image:none!important;border-color:var(--line)!important;-webkit-text-fill-color:currentColor}
html[data-editorial] body :where(div,section,article,aside,nav,header,footer,span,a,p,h1,h2,h3,h4,blockquote,details,summary,ul,ol,li,dl,dt,dd,figure,figcaption){background-color:transparent!important;color:inherit!important}
html[data-editorial] :where(*::before,*::after){background-image:none!important;box-shadow:none!important;border-radius:0!important}
html[data-editorial] :is(.hero::after,.hero::before,.eyebrow::before,.label::before){display:none!important}
html[data-editorial] :is(h1,h2,h3,h4,h5,h6,.brand){font-family:"Songti SC","STSong","Noto Serif CJK SC","SimSun",Georgia,serif!important;font-weight:500!important;letter-spacing:-.035em!important}
html[data-editorial] h1{font-size:clamp(40px,5vw,72px)!important;line-height:1.15!important;max-width:16em!important;overflow-wrap:anywhere;text-wrap:pretty!important}
html[data-editorial] h2{font-size:clamp(30px,3.3vw,48px)!important;line-height:1.35!important;margin-bottom:20px!important}
html[data-editorial] h3{font-size:24px!important;line-height:1.45!important}
html[data-editorial] :is(p,dd,blockquote){font-size:16px;line-height:1.75!important;max-width:68ch;color: #242424!important}
html[data-editorial] :is(.fine,.home-byline,.home-clean-cover figcaption,.vg-detail){color:#363636!important;font-size:13px!important}
html[data-editorial] :is(.label,.eyebrow,.home-kicker,.vg-label){font-family:"Helvetica Neue","PingFang SC",sans-serif!important;font-size:12px!important;letter-spacing:.1em!important;font-weight:500!important;text-transform:uppercase;color:#363636!important}
html[data-editorial] :is(.shell,.max-w-6xl){width:100%!important;max-width:1280px!important;margin-inline:auto!important;padding-inline:48px!important;min-width:0}
html[data-editorial] main>section,html[data-editorial] main>.section,html[data-editorial] main>.learning-home-section{padding-block:80px!important;border-bottom:1px solid var(--line)!important}
html[data-editorial] :is(.hero,.home-hero-inner){padding-block:80px!important}
html[data-editorial] .learning-intro{padding-top:64px!important;padding-bottom:48px!important}
html[data-editorial] :is(.section .section,.section section){padding-block:32px!important}
html[data-editorial] header{position:sticky!important;top:0!important;z-index:50;background:var(--paper)!important;backdrop-filter:none!important;border-bottom:1px solid var(--line)!important}
html[data-editorial] header .brand,html[data-editorial] header>a{letter-spacing:.03em!important;font-size:18px!important}
html[data-editorial] header :is(a,button){font-size:12px!important;letter-spacing:.03em;font-weight:500!important;color: #242424!important}
html[data-editorial] header :is(.top,.h-16){min-height:80px;height:auto!important;padding-block:16px}
html[data-editorial] :is(.versions,[data-stable-versions]){border:0!important;padding:0!important;gap:8px!important}
html[data-editorial] :is(.versions,[data-stable-versions]) a{padding:10px 8px!important;border:0!important;background:transparent!important;color:#363636!important}
html[data-editorial] :is(.versions,[data-stable-versions]) a[aria-current]{border-bottom:1px solid var(--type)!important;color:var(--type)!important}
html[data-editorial] :is(.theme-toggle,header button[role="switch"]){display:none!important}
html[data-editorial] #site-menu{background:var(--paper)!important}
html[data-editorial] .subnav{border-bottom:1px solid var(--line)!important}
html[data-editorial] .subnav a{border-bottom-width:1px!important}
html[data-editorial] :is(.card,.pathcard,.source,.version-choice,.learning-home-card,.card-hover){padding:24px!important;border:1px solid var(--line)!important;transform:none!important;transition:border-color .5s,background-color .5s!important}
html[data-editorial] :is(.card,.pathcard,.version-choice,.learning-home-card,.card-hover):hover{border-color:rgba(28,28,28,.4)!important;background:rgba(28,28,28,.02)!important;transform:none!important}
html[data-editorial] :is(.card,.version-choice,.learning-home-card):hover h3{font-style:italic}
html[data-editorial] :is(.grid,.compare,.version-guide,.learning-home-grid){gap:24px!important}
html[data-editorial] :is(.version-choice,.learning-home-card) p{font-size:14px!important}
html[data-editorial] :is(a,button){transition:color .5s,background-color .5s,border-color .5s!important;text-underline-offset:6px}
html[data-editorial] a{background-image:none!important;text-decoration:underline!important;text-decoration-color:transparent!important;transition:text-decoration-color .5s,color .5s!important}
html[data-editorial] a:hover{ text-decoration-color:currentColor!important }
html[data-editorial] :is(.button,.home-primary,.home-secondary,a.inline-flex){padding:12px 24px!important;font-size:14px!important;letter-spacing:.035em;font-weight:500!important;min-height:48px;border:1px solid var(--type)!important;background:var(--type)!important;color:var(--paper)!important}
html[data-editorial] :is(.button.secondary,.home-secondary){background:transparent!important;color:var(--type)!important}
html[data-editorial] :is(.button,.home-primary,.home-secondary,button):hover{background:var(--paper)!important;color:var(--type)!important}
html[data-editorial] :is(.menu-toggle){background:transparent!important;border:0!important;color:var(--type)!important}
html[data-editorial] :is(a,button,summary):focus-visible{outline:1px solid var(--type)!important;outline-offset:5px!important}
html[data-editorial] :is(input,textarea,select){background:transparent!important;color:var(--type)!important;border:0!important;border-bottom:1px solid rgba(28,28,28,.4)!important;box-shadow:none!important;padding:18px 0 12px!important;font-family:"Songti SC","STSong",serif!important;font-size:20px!important;accent-color:var(--type)!important}
html[data-editorial] :is(input,textarea,select):focus-visible{outline:0!important;border-bottom-color:var(--type)!important;border-bottom-width:1px!important}
html[data-editorial] input[type=checkbox]{appearance:auto!important;padding:0!important;min-height:18px}
html[data-editorial] label{font-size:14px!important;font-weight:500!important}
html[data-editorial] :is(pre,code){color:var(--type)!important;background:rgba(28,28,28,.04)!important;border:1px solid var(--line)!important}
html[data-editorial] :is(blockquote,#practice-progress,#review-result,#content-result,#qa-result){border:0!important;border-block:1px solid var(--line)!important;padding:20px 0!important;background:transparent!important}
html[data-editorial] :is(.practice-steps li,th){background:rgba(28,28,28,.04)!important}
html[data-editorial] :is(img,video){filter:grayscale(1)!important;border-radius:0!important;box-shadow:none!important}
html[data-editorial] .home-clean{display:grid!important;grid-template-columns:minmax(0,7fr) minmax(0,5fr)!important;gap:24px!important;align-items:center!important;padding-block:80px!important}
html[data-editorial] .home-clean h1{font-size:clamp(40px,4.8vw,68px)!important;line-height:1.2!important;max-width:9em!important}
html[data-editorial] .home-clean h1 span{font-family:inherit!important;font-size:.5em!important;font-weight:500!important;font-style:italic;color:#363636!important;margin-top:24px!important}
html[data-editorial] .home-clean-cover{max-width:300px!important;overflow:hidden;padding:0!important;order:0!important}
html[data-editorial] .home-clean-cover img{transition:transform 1s!important}
html[data-editorial] .home-clean-cover:hover img{transform:scale(1.035)}
html[data-editorial] .home-clean-book{width:100%!important;max-width:1280px!important;margin-block:0!important}
html[data-editorial] footer{background:var(--paper)!important;border-top:1px solid var(--line)!important;padding-block:56px!important;color:var(--type)!important}
html[data-editorial] .lesson-contents{border-width:1px!important;padding:20px!important}
@media(max-width:1023px){html[data-editorial] #site-menu{top:80px!important}html[data-editorial] :is(.compare,.version-guide,.learning-home-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:767px){html[data-editorial] :is(.shell,.max-w-6xl){padding-inline:24px!important}html[data-editorial] main>section,html[data-editorial] main>.section,html[data-editorial] main>.learning-home-section,html[data-editorial] :is(.hero,.home-hero-inner){padding-block:56px!important}html[data-editorial] .home-clean{grid-template-columns:1fr!important;padding-block:48px!important;gap:24px!important}html[data-editorial] .home-clean-cover{max-width:190px!important;order:0!important}html[data-editorial] .home-clean-copy{order:-1}html[data-editorial] .home-clean h1{font-size:40px!important}html[data-editorial] h1{font-size:40px!important}html[data-editorial] :is(.compare,.version-guide,.learning-home-grid,.grid.three){grid-template-columns:1fr!important;gap:24px!important}html[data-editorial] .learning-entry{width:100%!important}html[data-editorial] header .brand{font-size:16px!important}html[data-editorial] .home-clean-actions{flex-direction:column;align-items:stretch}html[data-editorial] .home-clean-actions>a{flex:auto}html[data-editorial] .brand img{width:28px!important;height:28px!important}html[data-editorial] .learning-intro{padding-top:40px!important}html[data-editorial] h2{font-size:28px!important}}
@media(prefers-reduced-motion:reduce){html[data-editorial]{scroll-behavior:auto!important}html[data-editorial] *,html[data-editorial] *::before,html[data-editorial] *::after{transition:none!important;animation:none!important;transform:none!important}}
html[data-editorial] body{padding-top:80px!important}
html[data-editorial] header{position:fixed!important;left:0;right:0;width:100%}
html[data-editorial] :is(input,textarea,select):focus-visible{border-bottom-width:1px!important}
html[data-editorial] .editorial-field{position:relative;padding-top:22px;margin-block:24px}
html[data-editorial] .editorial-field label{position:absolute;top:36px;left:0;margin:0;pointer-events:none;color:#363636!important;transition:top .3s,font-size .3s}
html[data-editorial] .editorial-field:focus-within label,html[data-editorial] .editorial-field.has-value label{top:0;font-size:12px!important}
html[data-editorial] .editorial-field :is(input,textarea,select){margin:0!important}
html[data-editorial] .editorial-field textarea{min-height:200px}
html[data-editorial] svg{filter:grayscale(1)}
html[data-editorial] :is(.actions,.home-clean-actions)>a:nth-of-type(2){background:transparent!important;color:var(--type)!important}
html[data-editorial] :is(.actions,.home-clean-actions)>a:nth-of-type(2):hover{background:var(--type)!important;color:var(--paper)!important}
html[data-editorial] .menu-toggle{font-size:22px!important;min-width:44px;min-height:44px}

/* Readability refinement: avoid compounded text opacity. */
html[data-editorial] :is(p,li,dd,dt,figcaption,.fine,.vg-detail,.home-byline,.label,.eyebrow,.home-kicker,header a){opacity:1!important}
/* Audit 20261015: long resource URLs must not widen mobile grid tracks. */
html[data-editorial] .grid>*{min-width:0}
html[data-editorial] :is(p,a,li,dd){overflow-wrap:anywhere}

/* Readable hierarchy and compact mobile rhythm, v33. */
html[data-editorial] :is(h1,h2,h3,h4){color:#171717!important;font-weight:600!important}
html[data-editorial] :is(.fine,.vg-detail,.home-byline,.home-clean-cover figcaption){font-size:14px!important}
html[data-editorial] :is(.card,.version-choice,.learning-home-card) p{font-size:15px!important}
html[data-editorial] :is(p,li,dd,dt){font-weight:450}
html[data-editorial] :is(.button,.home-primary,button:not(.menu-toggle)) :is(span,p){color:inherit!important}
html[data-editorial] .home-clean-actions{gap:12px!important}
html[data-editorial] :is(.card,.source,.pathcard) h3{margin-bottom:12px!important}
@media(max-width:767px){
 html[data-editorial] :is(.shell,.max-w-6xl){padding-inline:20px!important}
 html[data-editorial] main>section,html[data-editorial] main>.section,html[data-editorial] main>.learning-home-section{padding-block:48px!important}
 html[data-editorial] :is(.card,.pathcard,.source,.version-choice,.learning-home-card,.card-hover){padding:20px!important}
 html[data-editorial] :is(.grid,.compare,.version-guide,.learning-home-grid){gap:16px!important}
 html[data-editorial] .learning-intro{padding-bottom:24px!important}
 html[data-editorial] .home-clean h1 span{margin-top:16px!important}
}
/* Version landing pages: keep long titles and interactive controls readable. */
html[data-editorial] body>div:has(>.max-w-6xl>h1)>.max-w-6xl{padding-block:56px!important}
html[data-editorial] body>div:has(>.max-w-6xl>h1) h1,html[data-editorial] .hero h1{font-size:clamp(32px,4vw,54px)!important;line-height:1.28!important;max-width:22em!important}
html[data-editorial] button.flex-1,html[data-editorial] button.w-full.rounded-md{padding:10px 8px!important;min-width:0;font-size:13px!important;letter-spacing:0!important;line-height:1.5!important;overflow-wrap:normal!important;word-break:normal!important;background:transparent!important;color:var(--type)!important}
html[data-editorial] button.flex-1.border-accent,html[data-editorial] button.w-full.rounded-md.border-accent{background:var(--type)!important;color:var(--paper)!important;border-color:var(--type)!important}
html[data-editorial] button[aria-expanded]:not(.menu-toggle):not(header button){padding:16px!important;text-align:left;line-height:1.6!important;background:transparent!important;color:var(--type)!important}
html[data-editorial] button[aria-expanded="true"]:not(.menu-toggle):not(header button){border-color:var(--type)!important}
@media(max-width:767px){
 html[data-editorial] body>div:has(>.max-w-6xl>h1)>.max-w-6xl{padding-block:36px!important}
 html[data-editorial] body>div:has(>.max-w-6xl>h1) h1,html[data-editorial] .hero h1{font-size:32px!important}
 html[data-editorial] .grid.grid-cols-6{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 html[data-editorial] button.flex-1{padding:10px 6px!important;font-size:12px!important}
}

html[data-editorial] body>div:has(>.max-w-6xl>h1) h1{text-wrap:balance!important}
html[data-editorial] body>div:has(>.max-w-6xl>h1)>.max-w-6xl>.grid{align-items:start!important}
/* FDE companion pages: consistent typography and responsive navigation. */
html[data-editorial] body.fde-edition header .brand{font-family:"Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif!important;font-weight:600!important;letter-spacing:0!important}
html[data-editorial] body.fde-edition .hero{padding-block:56px!important}
html[data-editorial] body.fde-edition .hero h1{font-weight:600!important;letter-spacing:-.02em!important;line-height:1.3!important}
html[data-editorial] body.fde-edition .intro{font-weight:400!important;max-width:48em;line-height:1.8!important}
html[data-editorial] body.fde-edition .sectionhead{margin-bottom:24px!important}
html[data-editorial] body.fde-edition .sectionhead h2{font-size:clamp(26px,2.6vw,36px)!important;font-weight:600!important;line-height:1.45!important;text-wrap:pretty!important;margin:8px 0 0!important;letter-spacing:0!important}
html[data-editorial] body.fde-edition h3{font-size:22px!important;font-weight:600!important;letter-spacing:0!important}
html[data-editorial] body.fde-edition .subnav a{font-size:14px;min-height:48px;display:inline-flex;align-items:center;justify-content:center}
html[data-editorial] body.fde-edition .subnav a[aria-current="page"]{font-weight:600!important;border-bottom:2px solid #171717!important}
html[data-editorial] body.fde-edition .hero-note{gap:12px 24px;margin-top:24px;font-weight:400}
html[data-editorial] body.fde-edition .section{padding-block:56px!important}
@media(max-width:767px){
 html[data-editorial] body.fde-edition .hero{padding-block:36px!important}
 html[data-editorial] body.fde-edition .hero h1{font-size:32px!important}
 html[data-editorial] body.fde-edition .section{padding-block:36px!important}
 html[data-editorial] body.fde-edition .sectionhead h2{font-size:26px!important}
 html[data-editorial] body.fde-edition .actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:24px}
 html[data-editorial] body.fde-edition .actions>.button{width:100%;margin:0;min-height:48px}
 html[data-editorial] body.fde-edition .subnav nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
 html[data-editorial] body.fde-edition .subnav a{font-size:12px;white-space:nowrap}
 html[data-editorial] body.fde-edition #site-menu .versions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
 html[data-editorial] body.fde-edition #site-menu .versions a{min-height:44px;text-align:center}
}
