/* 正文约束：思源黑体 400/500；标题 36、正文 14；间距 16/24/48/64。
   分组由内容决定，不以装饰填满空白。纸张、封面、正面和 3D 材质不在此修改。 */
.editorial {
    --ed-gap: clamp(26px, calc(var(--card-w) * 0.069231), 36px);
    --ed-accent: #3169c7;
    display: flex !important;
    flex-direction: column;
    padding:
        clamp(28px, calc(var(--card-w) * 0.080769), 42px)
        clamp(24px, calc(var(--card-w) * 0.076923), 40px)
        clamp(26px, calc(var(--card-w) * 0.073077), 38px);
    color: #202124;
    font-family: var(--font-sans);
    font-synthesis: none;
}
.ed-top { display:flex; align-items:center; justify-content:space-between; min-height:30px; flex-shrink:0; }
.editorial .close-btn { backface-visibility:visible; -webkit-backface-visibility:visible; isolation:auto; }
.ed-pill { display:inline-flex; align-items:center; padding:7px 13px; border-radius:100px; background:#eeefef; font-size:12px; line-height:1.4; font-weight:400; }
.ed-title { margin:clamp(22px,calc(var(--card-w) * .053846),28px) 0 clamp(19px,calc(var(--card-w) * .046154),24px); font-size:clamp(25px,calc(var(--card-w) * .073077),38px); line-height:1.32; font-weight:400; letter-spacing:-.025em; }
.ed-body { display:flex; flex-direction:column; flex:1; min-height:min-content; }
.ed-body p { margin:0; max-width:none; color:#45474a; font-size:clamp(12px,calc(var(--card-w) * .026923),14px); line-height:1.85; letter-spacing:0; font-weight:400; }
.ed-body h3 { margin:0 0 12px; font-size:clamp(19px,calc(var(--card-w) * .044231),23px); line-height:1.45; font-weight:400; letter-spacing:-.015em; }
.ed-section { margin-top:var(--ed-gap); }
.ed-kicker { display:block; margin-bottom:16px; font-size:12px; line-height:1.5; color:#64666a; font-weight:400; }
.ed-bottom { margin-top:var(--ed-gap); padding-top:0; }
.ed-note { margin-top:32px; max-width:none; font-size:12px; line-height:1.85; color:#686b70; }
.ed-note.ed-bottom { margin-top:32px; padding-top:0; }
.ed-tiles { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:var(--ed-gap); }
.ed-tiles section { padding:24px 20px; background:#f1f2f3; border-radius:16px; }
.ed-tiles h3 { font-size:24px; color:var(--ed-accent); }
.ed-tiles p { font-size:13px; line-height:1.75; }
.ed-path { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 0; padding:24px 20px; border-radius:16px; background:#f1f2f3; font-size:17px; line-height:1.5; }
.ed-path span { display:grid; justify-items:center; gap:12px; }
.ed-path svg { width:34px; height:34px; color:var(--ed-accent); }
.ed-path em { font-style:normal; }
.ed-path i { font-style:normal; color:#96999e; font-size:16px; }
.ed-rows { margin-top:var(--ed-gap); display:grid; gap:30px; }
.ed-rows > div { display:grid; grid-template-columns:1fr; gap:0; }
.ed-row-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; background:#edf1ef; color:var(--ed-accent); }
.ed-row-icon svg { width:30px; height:30px; }
.ed-rows h3 { font-size:21px; margin-bottom:8px; }
.ed-comparison { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:24px; }
.ed-comparison section { padding:20px 16px 24px; background:#f1f2f3; border-radius:16px; }
.ed-comparison h3 { color:var(--ed-accent); }
.ed-comparison h3 { font-size:21px; }
.ed-comparison p { font-size:13px; }
.ed-question { background:#f1f2f3; padding:24px; border-radius:16px; }
.ed-question h3 { font-size:25px; color:var(--ed-accent); }
.ed-outcomes { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-top:32px; padding:24px; border-radius:16px; background:#f1f3f2; }
.ed-outcomes svg { width:30px; height:30px; color:var(--ed-accent); margin-bottom:12px; }
.ed-outcomes h3 { color:var(--ed-accent); }
.ed-outcomes h3 { font-size:22px; margin-bottom:8px; }
.ed-outcomes p { font-size:12px; }
.ed-toolbar { margin:36px 0 0; padding:24px; border-radius:16px; background:#f1f2f3; }
.ed-selection { width:46%; padding:22px 6px; border:1px dashed #777a82; text-align:center; font-size:12px; color:#34363b; margin:0 auto 24px; background:repeating-linear-gradient(0deg,transparent 0 19px,#dcdee2 19px 20px),repeating-linear-gradient(90deg,transparent 0 19px,#dcdee2 19px 20px); }
.ed-context,.ed-base { display:flex; justify-content:space-between; padding:12px 16px; border-radius:8px; background:white; font-size:13px; line-height:1.5; }
.ed-context { margin:0 12px 8px; color:#24252a; background:#ececee; }
.ed-base { background:#e2e4e7; }
.ed-toolbar span { font-size:11px; color:#73777c; }
.ed-toolbar figcaption { margin-top:16px; font-size:11px; color:#73777c; text-align:center; }
.theme-2 .editorial { --ed-accent:#24252a; }
.theme-2 .ed-question h3,
.theme-2 .ed-comparison h3 { color:#3b82f6; }
.theme-3 .editorial { --ed-accent:#3b82f6; }
.ed-graphic { margin:24px 0 0; }
.ed-graphic > svg { display:block; width:100%; height:112px; border-radius:14px; background:#f1f2f3; }
.ed-graphic figcaption { margin-top:8px; color:#73777c; font-size:11px; line-height:1.5; }
.ed-loop { padding:24px 24px 18px; background:#f1f3f2; border-radius:16px; }
.ed-loop > div { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--ed-accent); font-size:21px; }
.ed-loop b { font-weight:400; font-size:16px; color:#8c9b94; }
.ed-loop > svg { height:38px; background:transparent; }
.ed-loop figcaption { text-align:center; }
.ed-iteration { display:flex; gap:16px; align-items:center; margin-top:24px; font-size:13px; }
.ed-iteration b { color:var(--ed-accent); font-size:18px; font-weight:400; }
.ed-bar-study { height:88px; display:flex; flex-direction:column; justify-content:center; gap:8px; margin:0 0 20px; }
.ed-bar-study i { height:22px; display:block; background:#d6dadd; border-radius:6px; }
.ed-bar-double i:first-child { margin:0 10px; background:#b6bac1; }
.ed-bar-single i { background:#24252a; height:30px; position:relative; }
.ed-bar-single i::after { content:''; position:absolute; inset:9px 20%; border-left:3px solid #fff8; border-right:3px solid #fff8; }
@media(max-width:1400px) {
    .ed-tiles section { padding:20px 16px; }
    .ed-rows { gap:24px; }
}
@media(max-width:900px) {
    .editorial {
        padding:
            clamp(20px, calc(var(--card-w) * 0.080769), 24px)
            clamp(16px, calc(var(--card-w) * 0.076923), 20px);
    }
    .ed-title { font-size:clamp(20px,calc(var(--card-w) * .073077),25px); }
    .ed-tiles,.ed-comparison,.ed-outcomes { grid-template-columns:1fr; }
    .ed-path { flex-wrap:wrap; font-size:16px; gap:8px; }
    .ed-toolbar { padding:16px 10px; }
    .ed-context,.ed-base { flex-direction:column; padding:10px; }
}

/* 正文自然填满统一内边距，不额外收窄段落。 */
.ed-body p, .ed-note { width:auto; max-width:none; text-wrap:wrap; }
.ed-continuity { background:#f1f3f2; border-radius:16px; padding:24px; }
.ed-continuity-stage { display:grid; grid-template-columns:1fr 1fr; gap:20px; color:var(--ed-accent); font-size:21px; line-height:1.5; }
.ed-continuity-stage span + span { border-left:1px solid #cdd9d4; padding-left:20px; }
.ed-continuity figcaption { margin-top:16px; text-align:left; font-size:12px; }
.ed-question .ed-iteration-copy { margin-top:20px; font-size:12px; color:#686b70; }
.ed-rows { gap:26px; }
.ed-rows > div + div { padding-top:24px; border-top:1px solid #e9ebea; }
