/* Concepts (2026-11-19): marks, the "What is X?" card with its window into the reader, Return, and "used in N places" */
#text .cpt{font:inherit;color:inherit;cursor:pointer;text-decoration:none;
  background:linear-gradient(color-mix(in srgb,var(--red) 14%,transparent),color-mix(in srgb,var(--red) 14%,transparent)) no-repeat left bottom/0% 100%,
    linear-gradient(var(--red),var(--red)) no-repeat left bottom/100% 1px;padding-bottom:1px;transition:background-size .18s ease-out,color .18s}
#text .cpt.on{background-size:100% 100%,100% 1px;color:var(--red)}
@media (hover:hover){#text .cpt:hover{background-size:100% 100%,100% 1px;color:var(--red)}}

.ccard{background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;position:absolute;z-index:250;width:560px;max-width:calc(100vw - 32px);font-family:var(--text);
  filter:drop-shadow(0 10px 18px rgba(60,40,20,.22)) drop-shadow(0 1px 1px rgba(60,40,20,.12));animation:ccIn .16s ease-out}
.ccard[hidden]{display:none}
@keyframes ccIn{from{opacity:0}to{opacity:1}}
.ccard .pc-in{padding:16px 20px 14px}
.ccard p,.ccard a,.ccard li{font-style:normal}
.cc-q{margin:0 0 10px;font-size:20px;line-height:1.2;color:var(--ink)}
.cc-win{position:relative;height:300px;border:1px solid var(--line);background:var(--bg,#fbf9f5);overflow:hidden}
.cc-win iframe{display:block;width:100%;height:100%;border:0;opacity:0;transition:opacity .2s ease}
.cc-win.ready iframe{opacity:1}
.cc-win .cc-veil{display:none}
.cc-src{display:inline-block;margin-top:8px;font-size:15px;color:var(--red);text-decoration:none}
@media (hover:hover){.cc-src:hover{text-decoration:underline;text-underline-offset:3px}}
.cc-more{list-style:none;margin:8px 0 0;padding:8px 0 0;border-top:1px solid var(--line)}
.cc-more li{padding:3px 0;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-more a{color:var(--ink2);text-decoration:none}
@media (hover:hover){.cc-more a:hover{color:var(--red)}}
.ccard.sheet{background:none!important;border:0!important;border-radius:0!important;padding:0!important;box-shadow:none!important;position:fixed;left:10px!important;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));top:auto!important;width:auto;max-width:none}
.ccard.sheet .cc-win{height:45vh}
.ccard.sheet .cc-more li:nth-child(n+4){display:none}

#cnback{position:fixed;z-index:250;top:calc(64px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);font:500 15px/1 var(--text);letter-spacing:.02em;
  color:var(--ink);background:var(--bg,#fbf9f5);border:1px solid var(--line);border-radius:999px;padding:9px 16px;cursor:pointer;box-shadow:0 6px 16px -10px rgba(0,0,0,.35)}
@media (hover:hover){#cnback:hover{color:var(--red)}}

.cn-uses{margin:-.4em 0 1.2em;font-size:15px}
.cn-uses summary{cursor:pointer;color:var(--red);list-style:none;font-size:15px}
.cn-uses summary::-webkit-details-marker{display:none}
.cn-uses ul{list-style:none;margin:6px 0 0;padding:0 0 0 2px;max-height:240px;overflow:auto}
.cn-uses li{padding:2px 0}.cn-uses a{color:var(--ink2);text-decoration:none}
@media (hover:hover){.cn-uses a:hover{color:var(--red)}}

/* inside the window: only the chapter's text */
html.embed-card body{background:var(--bg,#fbf9f5)}
html.embed-card :is(.pbar,header.top,nav.tabbar,aside.siderail,.railbtn,#toast,.sharedban,#float,.rbar,.cmts,#cms,.notesB,.nh,.dots,footer,.fab,.lookdock,#rblook,#rbsheet,.rdtools,.pf){display:none!important}
html.embed-card main,html.embed-card #app{padding-top:0!important;margin-top:0!important}
/* a wider and shorter window than a name card (the user, 2026-11-20) */
.ccard{width:620px}
.cc-win{height:230px;border:0;background:#fff}
html.night .cc-win{background:#0B0B0B}
html.embed-card:not(.night) body{background:#fff!important;background-image:none!important}
.cc-more a.cur{color:var(--red)}
.ccard.sheet .cc-win{height:38vh}
/* the source line keeps one line, so hovering the passages below never moves the list under the pointer */
.cc-src{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pcard.ccard{width:620px;max-width:calc(100vw - 32px)}
.ccard:not(.xcard) .cc-src{display:none}
.ccard:not(.xcard) .cc-more{margin-top:10px}
/* phones: the passage itself in the window (cardtext.js), no framed page */
.cc-txt{display:none}
.ccard.sheet .cc-win iframe{display:none}
.ccard.sheet .cc-txt{display:block;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:4px 2px 12px;font-family:var(--text);font-size:17px;line-height:1.5;color:var(--ink)}
.ccard.sheet .cc-txt p{margin:0 0 .8em}
.ccard.sheet .cc-txt p:not(.cc-at){color:var(--ink2,#6b655c)}
.cc-hl{background:color-mix(in srgb,var(--red) 16%,transparent);color:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:0 1px}
.ccard.sheet .cc-q{position:relative;z-index:2}
/* the round "…" button stays out of the way while a card is open on a phone */
