/* Reading-first companion packs, using the existing scheme-two palette and type. */
.qd-content--pack h1 { margin-bottom:var(--qd-detail-heading-gap); }
.qd-detail--pack .qd-detail-toolbar { display:none; }
.cp-header { margin:0 0 var(--qd-detail-media-gap); }
.cp-kind { display:flex; flex-wrap:wrap; gap:16px; color:var(--muted); font-size:13px; line-height:1.75; margin:14px 0 0; }
.cp-kind span { color:var(--muted); }
.cp-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:var(--qd-detail-actions-gap); }
.cp-media { container:course-media / inline-size; margin:0 0 28px; }
.cp-media-grid { display:grid; grid-template-columns:minmax(0,9fr) minmax(0,24fr); gap:20px; align-items:start; }
.cp-media figure { min-width:0; margin:0; }
.cp-video-frame,.cp-example-frame { position:relative; overflow:hidden; border-radius:12px; background:#050504; }
.cp-video-frame { aspect-ratio:9 / 16; }
.cp-example-frame { aspect-ratio:3 / 2; background:var(--cp-cover-bg,#050504); }
.cp-video-frame video,.cp-example-frame img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.cp-video-cover { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; padding:20px; background:rgb(0 0 0 / 36%); }
.cp-video-cover[hidden] { display:none; }
[data-study="quiet-cards"] .cp-video-play.tdl-action { --action-size:16px; --action-surface:rgb(255 255 255 / 94%); --action-text:#171717; }
[data-study="quiet-cards"] .cp-video-play.tdl-action:hover { --action-surface:#fff; }
[data-study="quiet-cards"] .cp-video-play .tdl-action-icon svg { fill:currentColor; stroke:none; }
[data-study="quiet-cards"] .cp-video-play.tdl-action:focus-visible { outline-color:#fff; }
[data-study="quiet-cards"] .cp-video-play.tdl-action:disabled { cursor:wait; }
.cp-video-error { position:absolute; z-index:2; left:12px; right:12px; bottom:58px; border-radius:8px; background:#171717e6; color:#fff; font-size:12px; line-height:1.6; text-align:center; }
.cp-video-error:not(:empty) { padding:10px 12px; }
.cp-pip-cover { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:20px; background:#000; color:#fff; font-size:13px; line-height:1.5; letter-spacing:.02em; text-align:center; }
.cp-pip-cover[hidden] { display:none; }
.cp-pip-cover svg { width:34px; height:34px; opacity:.92; }
.cp-media figcaption { color:var(--muted); font-size:12px; line-height:1.7; margin-top:10px; }
.cp-video-frame--pending { background:var(--bg); border:1px solid var(--line); }
.cp-video-placeholder { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:16px; text-align:center; color:var(--ink); font-size:14px; }
.cp-video-placeholder-icon { display:grid; place-items:center; width:52px; height:52px; color:var(--muted); }
.cp-video-placeholder-icon svg { width:34px; height:34px; }
.cp-video-pending { color:var(--muted); font-size:12px; }
@container course-media (max-width:560px) {
  .cp-media-grid { grid-template-columns:minmax(0,1fr); gap:24px; }
  .cp-video { width:min(100%,360px); }
}
.cp-intro,.cp-section { font-size:var(--qd-detail-body-size); line-height:var(--qd-detail-body-leading); }
.cp-intro,.cp-section>p,.cp-section>ul,.cp-section>ol,.cp-checklist { max-width:72ch; }
.cp-intro { margin-bottom:36px; }
.cp-section { padding:30px 0 32px; border-top:1px solid var(--line); scroll-margin-top:28px; }
.cp-section h2 { font-size:24px; line-height:1.5; margin-bottom:20px; }
.cp-section h2 span { margin-right:7px; color:var(--muted); }
.cp-section h3 { font-size:18px; font-weight:500; margin:26px 0 10px; }
.cp-section p { margin:0 0 18px; }
.cp-section ul,.cp-section ol { padding-left:23px; margin:0 0 20px; }
.cp-section li { padding-left:5px; margin:7px 0; }
.cp-section a { text-decoration:underline; text-underline-offset:4px; }
.cp-note { padding:16px 18px; background:var(--bg); border-radius:8px; color:var(--muted); font-size:13px; }
.cp-image-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:24px 0; align-items:start; }
.cp-image-grid figure { margin:0; min-width:0; }
.cp-image-grid img { display:block; width:100%; height:auto; aspect-ratio:4 / 5; object-fit:contain; border-radius:12px; }
.cp-image-grid figcaption { margin-top:10px; font-size:12px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; }
@media(max-width:759px) { .cp-image-grid { grid-template-columns:minmax(0,1fr); gap:24px; } .cp-image-grid figure { width:min(100%,460px); } }
.cp-table-wrap { overflow-x:auto; margin:0 0 22px; }
.cp-table-wrap table { width:100%; border-collapse:collapse; font-size:13px; line-height:1.7; text-align:left; }
.cp-table-wrap th { font-weight:500; color:var(--muted); }
.cp-table-wrap td,.cp-table-wrap th { vertical-align:top; min-width:135px; padding:14px 14px 14px 0; border-bottom:1px solid var(--line); }
.cp-table-wrap td:first-child { min-width:165px; }
.cp-keywords { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.cp-keywords code { font:13px/1.6 var(--mono); padding:7px 12px; background:var(--bg); border-radius:5px; }
.cp-prompt { margin:22px 0; background:var(--bg); border-radius:10px; overflow:hidden; }
.cp-prompt-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; font-size:13px; border-bottom:1px solid var(--line); }
.cp-prompt-head button { flex-shrink:0; padding:6px 12px; min-height:32px; background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:999px; font:12px/1.5 var(--mono); cursor:pointer; }
.cp-prompt-head button:hover { border-color:var(--muted); }
.cp-prompt summary { cursor:pointer; padding:16px 18px; font-size:13px; color:var(--muted); }
.cp-prompt pre { max-height:440px; overflow:auto; padding:20px; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.85 ui-monospace,SFMono-Regular,Consolas,'PingFang SC',monospace; }
.cp-prompt code { font:inherit; }
.cp-copy-status { display:block; color:var(--muted); font-size:12px; padding:0 18px; }
.cp-copy-status:not(:empty) { padding-bottom:12px; }
.cp-map-list { margin:16px 0 24px; }
.cp-map-list>div { display:grid; grid-template-columns:170px 1fr; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.cp-map-list dt { font-weight:500; }
.cp-map-list dt code { font:12px var(--mono); color:var(--muted); }
.cp-map-list dd { margin:0; color:var(--muted); }
.cp-checklist { margin:20px 0 25px; }
.cp-checklist label { display:flex; gap:12px; align-items:flex-start; cursor:pointer; padding:9px 0; }
.cp-checklist input { flex-shrink:0; margin-top:7px; width:17px; height:17px; accent-color:var(--ink); }
.cp-checklist input:checked+span { color:var(--muted); text-decoration:line-through; }
.cp-footer { font-size:12px; line-height:1.8; color:var(--muted); border-top:1px solid var(--line); padding-top:25px; }
.cp-footer a { display:inline-block; margin-left:8px; }
.cp-directory-label { color:var(--muted); font-size:12px; padding:0 16px; margin:0 0 15px; }
.cp-toc-number { width:15px; flex-shrink:0; color:var(--muted); font-size:12px; }
.cp-toc-item .qd-item-main { gap:10px; }
.qd-content--pack :is(a,button,summary,input,pre,[tabindex]):focus-visible { outline:2px solid var(--ink); outline-offset:4px; }
.cp-section h2:focus:not(:focus-visible) { outline:none; }
.course-card--pack .course-contents { margin:2px 0 14px; font-size:12px; color:var(--muted); }
@media(max-width:759px) {
  .cp-section { padding:25px 0; scroll-margin-top:20px; }
  .cp-section h2 { font-size:20px; }
  .cp-map-list>div { grid-template-columns:1fr; gap:1px; }
  .cp-prompt-head { padding:12px; gap:8px; }
  .cp-prompt-head>span { font-size:12px; }
  .cp-prompt pre { padding:15px; font-size:12px; }
}

/* Missing artwork stays explicit; video posters are not substituted for covers. */
[data-study="quiet-cards"] .course-card--pack .course-cover { aspect-ratio:3 / 2; }
.cp-example-frame--pending,.course-cover--pending { background:var(--bg); color:var(--muted); border:1px solid var(--line); }
.cp-cover-pending { position:absolute; inset:0; display:grid; place-items:center; font-size:13px; }
.course-cover--pending { display:grid; place-items:center; width:100%; aspect-ratio:16 / 9; font-size:13px; }
.course-pack-status { margin:12px 0 0; font-size:12px; color:var(--muted); }
.cp-section p,.cp-intro { overflow-wrap:anywhere; }

/* Pricing options: the card keeps only its title, summary and bottom price. */
.course-card--pack .course-free-price { display:flex; align-items:center; gap:10px; min-height:54px; margin-top:auto; padding:10px 0 14px; }
.course-free-word { color:#b7512e; font-size:18px; font-weight:500; letter-spacing:.02em; line-height:1.5; }
.course-free-amount { display:inline-flex; align-items:baseline; gap:2px; font-size:30px; line-height:1; font-weight:500; letter-spacing:-1px; font-variant-numeric:tabular-nums; color:var(--ink); }
.course-free-amount small { font-size:16px; letter-spacing:0; }
.course-free-caption { color:var(--muted); font-size:12px; line-height:1.5; }
.course-free-badge { display:inline-flex; padding:7px 12px; background:#eee9f7; color:#655080; border-radius:6px; font-size:13px; font-weight:500; line-height:1.5; }
[data-theme="dark"] .course-free-word { color:#f2aa8b; }
[data-theme="dark"] .course-free-badge { background:#302a3b; color:#d7c5ef; }
/* 2026-10-14 default store row: prominent 限时免费 only; pinned row starts with a hairline divider (original 24px description-to-row spacing kept: description 13px → 1px var(--line) rule → 10px → row text; min-height 54→0). */
.course-card--pack .course-info:has(.course-free-price--store) .course-outcome { margin-bottom:13px; }
.course-card--pack .course-free-price--store { justify-content:space-between; min-height:0; padding:10px 0 14px; border-top:1px solid var(--line); }
.course-free-price--store .course-free-caption { color:var(--ink); font-size:15px; font-weight:600; line-height:24px; }
.course-free-price--store .course-free-amount { gap:1px; font-size:20px; letter-spacing:-.4px; }
.course-free-price--store .course-free-amount small { font-size:12px; margin-right:1px; }
