/* scene=lp + existing library/detail: approved shelf navigation/search/card/toc.
   Character + paper motifs reuse the existing visual system; C01-C20 / U01-U20
   are mapped to selectors and verification in EDITORIAL40_CHANGES.md. */
.ed-cover,.ed-figure{--ed-a:#e3f3eb;--ed-b:#edf4fa;--ed-accent:#33664f;background:linear-gradient(135deg,var(--ed-a),var(--ed-b));color:#244e3c}
.ed-blue{--ed-a:#e6f1fa;--ed-b:#e9edf9;--ed-accent:#426285}
.ed-lilac{--ed-a:#ede9fa;--ed-b:#e7f3f0;--ed-accent:#62518b}
.ed-cover{position:relative;isolation:isolate;height:292px;min-height:292px;border-radius:13px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:36px 22px 30px;pointer-events:none}
.ed-cover-label{position:absolute;top:15px;left:17px;font-size:11px;font-weight:650;color:#446554;letter-spacing:.05em}
.ed-paper{position:relative;width:calc(100% - 60px);margin-left:70px;padding:18px 14px 19px;background:#fff;border:1px solid #cddfd6;border-radius:7px;box-shadow:0 12px 24px #244e3c13;transform:rotate(2deg);min-height:195px}
.ed-paper-top{font-size:10px;color:#566e61;display:block;padding-bottom:9px;border-bottom:1px solid #dce7e1;margin-bottom:12px}
.ed-paper>strong{font-size:17px;line-height:1.6;display:block;letter-spacing:-.025em}
.ed-title-phrase{display:inline-block;white-space:nowrap}
.ed-paper-rows{display:grid;gap:7px;margin-top:13px}
.ed-paper-rows>span{font-size:12px;line-height:1.55;display:flex;align-items:baseline;gap:7px}
.ed-paper-rows i{font-size:10px;font-weight:600;line-height:1.5;color:var(--ed-accent);font-style:normal;font-variant-numeric:tabular-nums}
.ed-pet{position:absolute;z-index:2;left:-20px;bottom:5px;width:100px;height:100px;object-fit:contain;filter:drop-shadow(0 8px 6px #315b4315);transform:rotate(-6deg);transform-origin:50% 80%;transition:transform .35s ease}
.ed-cover-note{position:absolute;right:12px;bottom:9px;font-size:10px;color:#526c60}
[data-editorial] .xd-card-b{padding:15px;gap:13px}
[data-editorial] .xd-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;font-size:11px;line-height:1.8}
.ed-kind{font-size:10px;font-weight:650;border:1px solid #c8dbcf;border-radius:5px;padding:2px 6px;background:#f2f8f4;color:#3e624f}
.ed-reading{font-size:11px;display:inline-block;color:#526d60;white-space:nowrap;margin-left:auto}
[data-editorial] .xd-card-h{font-size:21px;line-height:1.65;letter-spacing:-.035em;padding-inline:7px;overflow-wrap:anywhere}
[data-editorial] .xd-card-d{font-size:13px;line-height:1.95;padding-inline:7px;margin:0;color:#4c6859}
[data-editorial] .content-card-foot{font-size:12px;min-height:44px;margin-top:auto;padding:8px 7px 0;border-top:1px solid #e0eae3;align-items:center}
.ed-stretch::after{content:"";position:absolute;inset:0;z-index:3;border-radius:15px}
[data-editorial]:has(.ed-stretch:focus-visible){outline:3px solid #246b54;outline-offset:4px}
.ed-stretch:focus-visible{outline:none}
@media(hover:hover){[data-editorial]:hover .ed-pet{transform:rotate(4deg) translateY(-6px)}[data-editorial]:hover .ed-paper{border-color:#98b7a6}}
.ed-role{font-size:11px!important;line-height:1.8;padding:8px 10px;margin:0!important;border-left:2px solid #a5b7cc;background:#f2f5fa;color:#4b6074!important}
.ed-heading{position:relative;padding-right:210px}
.ed-heading-pet{position:absolute;right:12px;bottom:30px;width:170px;height:170px;object-fit:contain;transform:rotate(6deg)}
body[data-editorial-type] .content-page-heading h1{font-size:clamp(34px,4.2vw,58px);line-height:1.45;max-width:15em}
body[data-editorial-type] .content-intro{font-size:16px;line-height:1.95;max-width:43em}
body[data-editorial-type] .content-tools{background:#eff6f2;border:1px solid #d3e2d9;border-radius:14px;padding:22px;gap:18px;margin-top:8px}
body[data-editorial-type] .content-result{padding-block:22px 17px;font-size:13px}
body[data-editorial-type] .content-grid{gap:24px}
body[data-editorial-type] .content-note{font-size:13px;background:#edf3f8;border:1px solid #d4dfe6;padding:18px 22px;border-radius:12px;margin-top:28px;line-height:1.9;color:#4a6472}
.ed-article .content-article-head{padding-bottom:24px;border-bottom:0}
.ed-article .content-article-head h1{font-size:clamp(30px,3.4vw,46px);line-height:1.5;letter-spacing:-.04em;max-width:21em}
.ed-article .content-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;color:#526d60}
.ed-article .content-summary-note{font-size:12px;line-height:1.9;color:#526b5f}
.ed-figure{margin:0 0 32px;padding:28px 30px 20px;border:1px solid #d2e2da;border-radius:20px;overflow:hidden}
.ed-figure-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:140px}
.ed-figure-heading p{font-size:12px;font-weight:650;color:var(--ed-accent);margin:0 0 9px;letter-spacing:.04em}
.ed-figure-heading h2{font-size:clamp(24px,2.8vw,34px);line-height:1.55;letter-spacing:-.035em;margin:0}
.ed-figure-heading img{width:150px;height:150px;flex:none;object-fit:contain;filter:drop-shadow(0 9px 6px #315b4312)}
.ed-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;gap:25px;padding:0;margin:20px 0 22px}
.ed-flow li{position:relative;background:#ffffffdf;border:1px solid #cadfd3;min-width:0;padding:20px 16px;border-radius:12px;min-height:113px}
.ed-flow li+li::before{content:'→';position:absolute;left:-22px;top:calc(50% - 14px);font-size:18px;color:var(--ed-accent)}
.ed-step{display:block;font-size:12px;font-weight:700;color:var(--ed-accent);margin-bottom:10px;font-variant-numeric:tabular-nums}
.ed-flow strong{font-size:17px;line-height:1.8;overflow-wrap:anywhere}
.ed-figure figcaption{font-size:12px;line-height:1.9;color:#50695e;border-top:1px solid #c9dbd3;padding-top:14px}
.ed-article .content-toc{background:#f1f6f3;margin:30px 0;padding:24px 28px}
.ed-article .content-toc h2{font-size:14px;letter-spacing:.02em}
.ed-article .content-toc a{display:inline-block;min-height:44px;font-size:14px;padding-block:7px;line-height:1.8}
.ed-article .content-toc li{padding-block:0}
.ed-article .content-article-body{max-width:720px;font-size:16px;line-height:2.1;margin-top:40px;overflow-wrap:anywhere}
.ed-section{border-top:1px solid #cdded4;padding-top:27px;margin-top:38px;scroll-margin-top:100px}
.ed-section h2{margin:0 0 20px;font-size:clamp(23px,2.7vw,29px);line-height:1.65}
.ed-section-no{display:block;font-size:13px;font-weight:600;letter-spacing:.08em;color:#527261;margin-bottom:12px}
.ed-materials{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:25px}
.ed-materials>div{background:#eef5f0;padding:18px!important;border:1px solid #cddfd3!important;border-radius:12px}
.ed-materials>div:last-child{background:#edf0fa}
.ed-materials dt{font-size:12px!important;color:#496453!important;font-weight:600}
.ed-materials dd{font-size:15px;line-height:1.9}
.ed-article .content-article-end{margin-top:45px;padding:32px;gap:25px}
.ed-article .content-article-end>img{width:125px;height:150px}
.ed-article .content-article-end .content-button{background:#315f4b;color:#fff;border-color:#315f4b;min-height:48px}
.ed-adj-label{display:block;font-size:11px;letter-spacing:.04em;margin-bottom:9px;color:#597565}
.ed-article .content-adjacent a{font-size:14px;min-height:60px}
.ed-article .ed-source{display:flex;align-items:center;justify-content:space-between;border:1px solid #c8dcd0;border-radius:10px;padding:15px 18px;margin-top:24px;background:#eef5f0;min-height:50px;font-size:14px}
.ed-revision{flex-basis:100%;width:100%;font-size:11px!important;line-height:1.9}
.content-footer:has(.ed-revision){flex-wrap:wrap}
#column [data-editorial] .xd-card-b{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
#column .ed-cover{grid-column:1;grid-row:1/5;height:320px}
#cases [data-editorial] .ed-cover{height:310px;min-height:310px}
@media(min-width:901px) and (max-width:1100px){body[data-editorial-type] .content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-tools{grid-template-columns:1fr 1fr}.content-tools .ui-fs{grid-column:1/-1}}
@media(max-width:900px){.ed-heading{padding-right:140px}.ed-heading-pet{width:120px;height:120px;right:0}.ed-cover{height:280px;min-height:280px}.ed-flow{gap:20px}.ed-flow li{padding:17px 12px}.ed-flow li+li::before{left:-19px}.ed-flow strong{font-size:15px}}
@media(max-width:600px){
 .ed-heading{padding-right:0;padding-top:12px;padding-bottom:24px}.ed-heading-pet{position:static;width:100px;height:100px;display:block;margin:10px 0 -8px auto}
 body[data-editorial-type] .content-page-heading h1{font-size:34px;line-height:1.5;margin:14px 0}
 body[data-editorial-type] .content-intro{font-size:14px;line-height:2}
 body[data-editorial-type] .content-tools{padding:18px 16px;gap:18px;margin-top:0}
 body[data-editorial-type] .content-grid{gap:20px}
 [data-editorial] .xd-card-b{padding:13px;gap:12px}
 [data-editorial] .xd-card-h{font-size:21px;line-height:1.65;padding-inline:6px}
 [data-editorial] .xd-card-d{font-size:14px;line-height:1.9;padding-inline:6px}
 .ed-cover{height:310px;min-height:310px}.ed-paper{max-width:255px;width:calc(100% - 60px);margin-left:70px;padding:17px 13px;min-height:208px}.ed-paper>strong{font-size:18px}.ed-paper-rows>span{font-size:13px}.ed-pet{width:100px;height:100px;left:-20px;bottom:10px}
 .ed-article .content-article-head h1{font-size:30px;line-height:1.55}.ed-article .content-intro{font-size:15px;line-height:2}
 .ed-figure{padding:22px 18px 17px;border-radius:17px;margin-bottom:26px}
 .ed-figure-heading{display:block;position:relative;padding-top:85px;min-height:0}.ed-figure-heading h2{font-size:24px;line-height:1.6}.ed-figure-heading img{position:absolute;right:-5px;top:-16px;width:100px;height:100px;margin:0}.ed-figure-heading p{font-size:11px;line-height:1.8}
 .ed-flow{grid-template-columns:1fr;gap:23px;margin:15px 0 20px}
 .ed-flow li{min-height:0;padding:15px;display:flex;align-items:baseline;gap:13px}
 .ed-flow li+li::before{content:'↓';left:calc(50% - 7px);top:-24px;font-size:16px}
 .ed-step{margin:0;flex:none;font-size:12px}.ed-flow strong{font-size:16px;line-height:1.8}
 .ed-figure figcaption{font-size:12px;line-height:1.9}
 .ed-article .content-toc{padding:22px 20px}.ed-article .content-toc a{font-size:14px;min-height:44px}
 .ed-article .content-article-body{font-size:16px;line-height:2.05;margin-top:30px}
 .ed-section{padding-top:23px;margin-top:30px}.ed-section h2{font-size:24px;line-height:1.65}
 .ed-materials{grid-template-columns:1fr;gap:12px}
 .ed-article .content-article-end{padding:24px;gap:16px}.ed-article .content-article-end>img{width:110px;height:110px;align-self:flex-end}.ed-article .content-article-end h2{font-size:26px}.ed-article .content-article-end p{font-size:14px}
 .ed-article .content-article-end .content-button{font-size:14px;width:100%;gap:12px}
 .ed-article .content-adjacent{grid-template-columns:1fr;gap:20px}.ed-article .content-adjacent a:last-child{text-align:left;border-top:1px solid #d1e1d6;padding-top:20px}
 #column [data-editorial] .xd-card-b{display:flex}#column .ed-cover{width:100%;height:310px;min-height:310px}
 body[data-editorial-type] .content-note{font-size:12px;padding:17px}
}
@media(prefers-reduced-motion:reduce){.ed-pet{transition:none!important}[data-editorial]:hover .ed-pet{transform:rotate(-6deg)}}

/* Follow-up: clear diagram semantics and reliable navigation, same shelf controls. */
.ed-diagram-parallel .ed-flow li+li::before{content:none}
.ed-diagram-materials .ed-flow{grid-template-columns:1.3fr 1fr;gap:30px}
.ed-diagram-materials .ed-flow li+li::before{left:-25px}
.ed-flow .ed-inputs{display:grid;gap:9px;list-style:none;margin:0;padding:0}
.ed-flow .ed-inputs>li{background:#f2f7f4;border:0;border-radius:6px;min-height:0;padding:8px 10px;font-size:15px;line-height:1.8;font-weight:600}
.ed-flow .ed-inputs>li+li::before{content:none}
.ed-figure-link{font-size:13px;display:flex;align-items:center;justify-content:space-between;min-height:44px;width:100%;margin-top:5px}
.ed-back{display:flex;align-items:center;min-height:48px;font-size:14px;margin-top:14px;font-weight:650}
.ed-article .content-adjacent a[aria-disabled]{color:#657a6f;text-decoration:none;font-size:13px;min-height:44px}
.ed-article .content-toc a[aria-current]{color:#254f3a;font-weight:750;text-decoration-thickness:2px;text-underline-offset:5px}
.content-search-excerpt{border-left:2px solid #a5c3b0;padding-left:12px!important}
@media(max-width:600px){
 .ed-diagram-materials .ed-flow{grid-template-columns:1fr;gap:23px}
 .ed-diagram-materials .ed-flow li+li::before{left:calc(50% - 7px)}
 .ed-diagram-flow .ed-flow>li,.ed-diagram-materials .ed-flow>li{display:block}
 .ed-diagram-flow .ed-step,.ed-diagram-materials .ed-step{margin-bottom:10px}
 .ed-flow .ed-inputs>li{display:block;font-size:15px;padding:8px 10px}
 .ed-diagram-parallel .ed-flow{gap:12px}
 .ed-diagram-parallel .ed-flow>li{display:block}
 .ed-diagram-parallel .ed-step{margin-bottom:7px}
}
