/* Editorial compositions shared by the live preview, enlarged view and HTML export. */
.co-document{--co-ink:#242824;--co-muted:#73766f;--co-line:#e6e7e0;--co-paper:#fafaf7;color:var(--co-ink);font-family:var(--font-content,system-ui,sans-serif);color-scheme:light}
.co-document.kc-paper{position:relative;padding:0;overflow:hidden;background:var(--co-paper);border-radius:9px;isolation:isolate}
.co-document *{box-sizing:border-box}
.co-document figure{margin:0;min-width:0;min-height:0}
.co-document .co-image{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:cover}
.co-document :is(h4,h5,p){font-family:var(--font-content,system-ui,sans-serif);color:var(--co-ink)}
.co-document h4{font-size:27px;font-weight:600;line-height:1.32;letter-spacing:-.045em;margin:0 0 13px;overflow-wrap:anywhere;text-wrap:balance}
.co-document p{font-size:11px;font-weight:400;line-height:1.85;letter-spacing:0;margin:0;color:var(--co-muted)}
.co-document button{font:inherit;cursor:pointer}
.co-eyebrow{display:block;font-size:8px;line-height:1.5;font-weight:500;letter-spacing:.12em;color:var(--co-muted)}
.co-meta{display:flex;justify-content:space-between;gap:12px;font-size:8px;line-height:1.5;letter-spacing:.07em;color:var(--co-muted);margin-bottom:14px}
.co-palette{display:inline-flex;gap:4px;align-items:center;flex:none}
.co-palette i{display:block;width:13px;height:13px;border-radius:50%;border:1px solid #00000008}
/* The page content establishes its own height. Both formats share a running head. */
.co-document:is(.co-feature,.co-presentation) {
  --ed-gutter: clamp(18px,4.4cqw,38px);
  container: editorial / inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  overflow-wrap: anywhere;
}
.ed-running,.feature-footer,.deck-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-inline: var(--ed-gutter);
}
.ed-running {
  padding-block: 17px 13px; border-bottom: 1px solid currentColor;
  font: 500 10px/1.5 var(--font-content); letter-spacing: .075em;
}
.ed-running > span:first-child { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; }
.ed-running i { display: inline-block; width: 15px; height: 11px; border-block: 2px solid currentColor; background: linear-gradient(var(--ed-accent),var(--ed-accent)) center/100% 2px no-repeat; }
.ed-label,:where(.co-feature,.co-presentation) figcaption,.feature-footer,.deck-position {
  font: 500 11px/1.5 var(--font-content); letter-spacing: .045em;
}
.ed-label { color: var(--co-muted); }
.ed-code {
  margin: 12px 0 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 12px/1.75 Consolas,monospace; color: inherit; background: color-mix(in srgb,currentColor 5%,transparent);
}
.ed-code code { font: inherit; white-space: inherit; }

.co-feature.kc-paper {
  --co-paper: #f6f3eb; --co-ink: #2b302c; --co-muted: #585e56; --co-line: #c9c9bd;
  --feature-serif: Georgia,"Songti SC","Noto Serif CJK SC",SimSun,serif;
  color: var(--co-ink);
}
html[data-theme=dark] .co-feature { --co-paper: #eae7dd; }
.feature-heading { margin: clamp(20px,3.3cqw,30px) var(--ed-gutter) 20px; }
.kc-creation .co-feature .feature-heading h4 {
  font: 500 clamp(29px,5.5cqw,51px)/1.16 var(--feature-serif);
  color: var(--co-ink); letter-spacing: -.035em; text-wrap: pretty; margin: 8px 0 12px;
}
.co-feature .feature-deck { font-size: clamp(14px,2.1cqw,18px); line-height: 1.65; max-width: 56ch; }
.feature-spread { display: grid; gap: clamp(20px,3.8cqw,34px); padding: 0 var(--ed-gutter) 22px; align-items: start; }
.feature-spread.has-margin { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); }
.feature-main,.feature-margin { min-width: 0; }
.feature-main figure .co-image { width: 100%; height: auto; aspect-ratio: 2.03; }
.feature-main figcaption { display: flex; gap: 9px; margin-block: 7px 14px; color: var(--co-muted); font-size: 10px; }
.feature-main figcaption b { color: var(--co-ink); font-weight: 600; white-space: nowrap; }
.feature-prose { color: var(--co-ink); font-size: 14px; line-height: 1.85; }
.feature-prose > :not(:first-child) { margin-top: 12px; }
.co-feature .feature-prose p,.feature-margin p { color: var(--co-ink); font-size: 14px; line-height: 1.85; white-space: pre-wrap; }
.co-feature .feature-prose h5 { color: var(--co-ink); font: 600 15px/1.55 var(--font-content); margin-bottom: 5px; }
.feature-prose :is(ul,blockquote,pre) { margin-inline: 0; margin-bottom: 0; }
.feature-prose .kn-tasks { padding: 0; margin-block-start: 6px; }
.feature-prose .kn-tasks [role=img] { border-color: var(--co-muted); color: var(--co-ink); }
.feature-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: color-mix(in srgb,var(--co-ink) 5%,transparent); font: 12px/1.7 monospace; }
.feature-prose .kn-table { overflow: visible; }
.feature-prose table { table-layout: fixed; }
.feature-prose .kn-table :is(th,td) { padding-inline: clamp(2px,1cqw,8px); border-color: var(--co-line); }
.feature-prose .kn-bold { font-weight: 700; }.feature-prose .kn-italic { font-style: italic; }
.feature-prose .kn-mark { background: color-mix(in srgb,var(--ed-accent) 28%,transparent); }
.feature-margin { border-inline-start: 1px solid var(--co-line); padding-inline-start: clamp(14px,2.6cqw,24px); }
.feature-margin blockquote { margin: 0 0 20px; font: 500 clamp(19px,2.7cqw,25px)/1.45 var(--feature-serif); text-wrap: pretty; }
.feature-margin blockquote > span { display: block; height: 27px; font: 46px/1 Georgia,serif; color: color-mix(in srgb,var(--ed-accent) 55%,#242923); }
.feature-margin section { border-top: 1px solid var(--co-line); padding-top: 9px; margin-top: 9px; }
.co-feature .feature-margin h5 { font: 600 14px/1.6 var(--font-content); color: var(--co-ink); margin: 0 0 4px; }
.feature-margin h5 span { margin-right: 8px; font: 11px/1.5 Georgia,serif; color: var(--co-muted); }
.co-feature .feature-margin p { font-size: 13px; line-height: 1.75; }
.feature-footer { margin-top: auto; padding-block: 10px 14px; border-top: 1px solid var(--co-line); color: var(--co-muted); }
.feature-footer b { color: var(--co-ink); font: italic 18px/1 Georgia,serif; }

.co-presentation.kc-paper {
  --co-paper: #f1f1ea; --co-ink: #25312e; --co-muted: #57615b; --co-line: #c3cbc2;
  color: var(--co-ink);
}
html[data-theme=dark] .co-presentation {
  --co-paper: #202926; --co-ink: #f1f2e9; --co-muted: #bcc6bf; --co-line: #48524d;
  color-scheme: dark;
}
.co-presentation .ed-running { border-color: var(--co-line); }
.deck-page { flex: 1; display: grid; align-content: center; padding: clamp(18px,3cqw,28px) var(--ed-gutter); min-width: 0; }
.kc-creation .co-presentation .deck-page h4 {
  color: var(--co-ink); font: 550 clamp(24px,4.1cqw,38px)/1.21 var(--font-content);
  letter-spacing: -.035em; text-wrap: pretty; margin: 7px 0 13px;
}
.kc-creation .co-presentation .deck-intro h4 { font-size: clamp(30px,5.2cqw,49px); text-wrap: balance; }
.co-presentation .deck-page p { font-size: 14px; line-height: 1.7; white-space: pre-wrap; color: var(--co-muted); }
.deck-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(20px,4.5cqw,40px); align-items: center; }
.deck-intro-text,.deck-code { min-width: 0; }
.deck-plate .co-image { height: auto; aspect-ratio: 1.15; }
.deck-plate figcaption { margin-top: 7px; color: var(--co-muted); font-size: 10px; }
.deck-code { padding: 16px; background: color-mix(in srgb,var(--ed-accent) 10%,transparent); border-top: 2px solid var(--ed-accent); }
.deck-code pre { background: none; padding: 0; }
.deck-studies { display: grid; grid-template-columns: repeat(var(--studies),minmax(0,1fr)); gap: clamp(12px,2cqw,20px); margin-top: 19px; }
.deck-studies figure > .co-image { height: auto; aspect-ratio: 1.8; max-height: 160px; }
.deck-studies figcaption { padding-top: 10px; letter-spacing: normal; }
.co-presentation .deck-studies h5 { font: 600 clamp(15px,2.2cqw,19px)/1.4 var(--font-content); color: var(--co-ink); margin: 4px 0 7px; }
.co-presentation .deck-studies p { font-size: 13px; }
.deck-actions .deck-plate .co-image { aspect-ratio: 4.3; max-height: 160px; }
.deck-steps { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(15px,3cqw,28px); margin-top: 17px; }
.deck-steps ol { list-style: none; padding: 0; margin: 0; }
.deck-steps li { display: grid; grid-template-columns: 2ch 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--co-line); font-size: 14px; line-height: 1.65; }
.deck-steps li span { color: var(--co-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.deck-footer { border-top: 1px solid var(--co-line); padding-block: 10px 13px; }
.deck-position,.deck-progress,.deck-controls { display: flex; align-items: center; }
.deck-position { gap: 11px; color: var(--co-muted); font-variant-numeric: tabular-nums; }
.deck-position b { font-weight: normal; margin-inline: 3px; }
.deck-progress { gap: 3px; }
.deck-progress i { width: 14px; height: 3px; background: var(--co-line); }
.deck-progress .current { background: var(--co-ink); }
.deck-controls { gap: 7px; }
.co-presentation .deck-controls button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--co-line); border-radius: 50%; color: var(--co-ink); }
.deck-controls button:hover { background: color-mix(in srgb,var(--ed-accent) 14%,transparent); }
.deck-controls button:focus-visible { outline: 2px solid var(--co-ink); outline-offset: 2px; }
.deck-controls svg { width: 15px; height: 15px; }
.deck-controls button:first-child svg { transform: rotate(180deg); }
@container editorial (min-width: 521px) {
  .deck-page { min-height: clamp(320px,52cqw,440px); }
}
@container editorial (max-width: 520px) {
  .feature-spread.has-margin,.deck-intro,.deck-steps { grid-template-columns: 1fr; }
  .feature-margin { border: 0; padding: 0; }
  .deck-intro .deck-plate .co-image { aspect-ratio: 2; }
  .deck-studies { grid-template-columns: 1fr; }
  .deck-studies figure { display: grid; grid-template-columns: minmax(58px,26%) minmax(0,1fr); gap: 12px; border-top: 1px solid var(--co-line); padding-top: 12px; }
  .deck-studies figure > .co-image { aspect-ratio: 1; }
  .deck-studies figcaption { padding: 0; }
  .deck-actions .deck-plate .co-image { aspect-ratio: 2.65; }
  .deck-steps { gap: 4px; }
}

.co-plan.kc-plan{display:grid;grid-template-columns:27% 73%}
.co-plan-visual{position:relative;min-width:0;min-height:0;overflow:hidden;background:#647563}
.co-plan-visual>.co-image{height:56%}
.co-plan-visual>div{position:absolute;inset:56% 0 0;padding:16px 17px;color:white;display:flex;flex-direction:column;gap:10px}
.co-plan-visual .co-eyebrow{color:#ffffffe0;font-size:7px}.co-plan-visual strong{font-size:17px;line-height:1.5;font-weight:500;letter-spacing:-.03em}.co-plan-visual .co-palette{margin-top:auto}
.co-plan-body{padding:22px 24px;overflow-y:auto;scrollbar-width:thin;min-width:0}.co-plan-body h4{font-size:24px;margin-bottom:9px}.co-plan-body .co-meta{margin-bottom:11px}
.co-plan-body>.co-deck{font-size:10px;margin-bottom:14px}
.co-plan-body table{border-collapse:collapse;width:100%;font-size:10px;line-height:1.6}
.co-plan-body th{font-size:7px;letter-spacing:.06em;padding-bottom:5px;color:var(--co-muted);font-weight:400;text-align:left}
.co-plan-body td{padding:11px 0;color:var(--co-ink);border-top:1px solid var(--co-line);vertical-align:middle}
.co-plan-body td:last-child{width:25px;padding-left:9px;font-size:8px;color:var(--co-muted);text-align:right;white-space:nowrap}
.co-plan-body label{display:flex;align-items:center;gap:7px;cursor:pointer}.co-plan-body input{accent-color:#677b64;width:12px;height:12px;flex:none;margin:0}
.co-task-index{font-size:8px;color:#8b9785;flex:none}.co-plan-body tr:has(input:checked) td:first-child{color:#899380;text-decoration:line-through}
.co-plan-footer{display:flex;align-items:center;gap:12px;margin-top:14px;padding-top:11px;border-top:1px solid var(--co-line);color:var(--co-muted);font-size:8px;line-height:1.6}
.co-plan-footer .co-image{width:58px;height:32px;border-radius:2px;margin-left:auto;flex:none}
.co-selection-media{height:130px;margin-bottom:15px;overflow:hidden;border-radius:5px}.co-selection-media .co-image{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:1100px){
  .co-plan-body{padding:20px}.co-plan-body h4{font-size:21px}.co-plan-visual>div{padding:14px}.co-plan-visual strong{font-size:15px}
}
@media(max-width:450px){
  .co-plan.kc-plan{grid-template-columns:24% 76%}
  .co-plan-visual>div{padding:11px 9px}.co-plan-visual strong{font-size:13px}.co-plan-visual .co-eyebrow{font-size:6px}
  .co-plan-body{padding:18px 15px}
  .co-plan-body h4{font-size:20px}.co-plan-body label{gap:5px;font-size:9px}.co-task-index{display:none}.co-plan-footer{font-size:7px}
  .co-plan-body td{padding:9px 0}
  .co-plan-footer .co-image{display:none}
}
