/* The concept card (the user, 2026-11-20; drafts /wire/card-quoted-2 … /wire/card-chapter): darker parchment outside, a
   white panel inside holding a window onto the book's own text, then the three best matches — desktop: cover beside
   "Ch. 9" + chapter (B); narrow windows and phones: big centred covers in a row under the panel (A). The whole panel is the
   link. Width, side and window height are set by concepts.js place() (the page is zoomed, so CSS alone can't). Scoped to
   .mq so the references card (refs.js) is unchanged. */
.pcard.ccard.mq{width:820px;max-width:none;filter:none;animation:mqIn .16s ease-out}
@keyframes mqIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.mq .mq-in{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;padding:18px;align-items:stretch;
  background:color-mix(in srgb,var(--paper,#F5F3EE) 88%,#5C4A33) var(--paper-tex,none);background-blend-mode:multiply;
  box-shadow:0 30px 70px -30px rgba(30,20,10,.3),0 2px 8px -4px rgba(30,20,10,.14)}
.mq .mq-card{background:#fff;cursor:pointer;padding:16px 24px 16px;display:flex;flex-direction:column;min-width:0;
  box-shadow:0 1px 2px rgba(30,20,10,.06),0 10px 24px -16px rgba(30,20,10,.18)}
.mq .cc-win{height:250px;border:0;background:none!important;overflow:hidden;flex:none}
.mq .cc-txt{display:block!important;box-sizing:border-box;height:100%;overflow-y:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -6px;padding:0 6px 18px;
  -webkit-mask-image:linear-gradient(transparent,#000 8px,#000 80%,transparent);mask-image:linear-gradient(transparent,#000 8px,#000 80%,transparent);
  font:400 19px/1.6 var(--text);color:var(--ink2)}
.mq .cc-txt::-webkit-scrollbar{display:none}
.mq .cc-txt p{margin:0 0 .9em;text-indent:1.4em;hyphens:auto;color:var(--ink2)}
.mq .cc-txt em{font-style:normal}
.mq .cc-hl{background:color-mix(in srgb,var(--red) 11%,transparent);color:var(--ink);padding:1px 0}
.mq .mq-cite{margin:12px 0 0;font:400 15px/1.35 var(--text);color:var(--ink2)}
.mq .mq-cite b{font-weight:600;color:var(--ink)}

/* B: the matches stacked beside the panel, spread over its height, each cover centred on its chapter */
.mq .mq-rail{display:flex;flex-direction:column;justify-content:space-between;min-width:0;gap:10px}
.mq .mq-r{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit;min-width:0}
.mq .mq-cv{display:block;position:relative;width:54px;flex:none;aspect-ratio:2/3;background:#fff;box-shadow:0 2px 6px -2px rgba(0,0,0,.28);transition:box-shadow .2s}
.mq .mq-cv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:2px;display:block}
.mq .mq-ch{min-width:0;font:600 16px/1.3 var(--text);color:var(--ink);overflow-wrap:anywhere;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.mq .mq-n{display:block;font:400 11px/1.2 "Times New Roman",Times,Tinos,serif;letter-spacing:.1em;text-transform:uppercase;color:var(--ink3);margin-bottom:4px}
.mq .mq-r.on .mq-ch,.mq .mq-r.on .mq-n{color:var(--red)}
.mq .mq-r.on .mq-cv{box-shadow:0 6px 14px -6px rgba(0,0,0,.4)}
@media (hover:hover){.mq .mq-r:hover .mq-ch{color:var(--red)}}

/* A: under the panel, three equal columns, big centred covers (narrow windows and phones) */
.mq.narrow .mq-in,.mq.sheet .mq-in{grid-template-columns:minmax(0,1fr)}
.mq.narrow .mq-rail,.mq.sheet .mq-rail{flex-direction:row;justify-content:center;gap:14px}
.mq.narrow .mq-r,.mq.sheet .mq-r{flex:1 1 0;max-width:170px;flex-direction:column;justify-content:flex-start;text-align:center;gap:8px}
.mq.narrow .mq-cv{width:72px}
.mq.narrow .mq-ch,.mq.sheet .mq-ch{font-size:14px;-webkit-line-clamp:3}

/* phone: a sheet on the bottom edge (people.css would lift it 84px and cap it at 45vh) */
.pcard.ccard.mq.sheet{position:fixed;left:10px!important;right:10px;top:auto!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;
  width:auto!important;max-width:none;max-height:none!important}
.mq.sheet .mq-in{gap:12px;padding:10px 10px 12px;max-height:calc(100dvh - 82px - env(safe-area-inset-bottom));overflow-y:auto;scrollbar-width:none}
.mq.sheet .mq-card{padding:12px 16px 12px}
.mq.sheet .cc-txt{font-size:17px}
.mq.sheet .mq-cite{font-size:14px;margin-top:8px}
.mq.sheet .mq-r{gap:6px}
.mq.sheet .mq-cv{width:56px}
.mq.sheet .mq-ch{font-size:13px}
.mq.sheet .mq-n{font-size:10px;margin-bottom:2px}

/* night */
html.night .mq .mq-in{background:#2A2520}
html.night .mq .mq-card{background:#161412;box-shadow:none}
/* the round "…" button sat on top of the covers; it steps aside while the card is open (as it already did for the phone sheet) */
.pcard.ccard.mq{z-index:300}
/* short windows (narrow): the three matches on one line, small cover beside each chapter */
.mq.narrow.tight .mq-r{flex-direction:row;text-align:left;align-items:center;gap:10px;max-width:none}
.mq.narrow.tight .mq-cv{width:34px}
.mq.narrow.tight .mq-ch{font-size:13.5px;-webkit-line-clamp:3}
/* phones: narrow columns — a little tighter, four lines, words may break with a hyphen rather than poke out */
.mq.sheet .mq-rail{gap:8px}
.mq.sheet .mq-ch{-webkit-line-clamp:4;hyphens:auto;-webkit-hyphens:auto}
.mq .mq-ch{word-break:break-word}.mq.sheet .mq-r{min-width:0}.mq.sheet .mq-ch{max-width:100%}
/* the text sits exactly on the panel's inner edge: concepts.css's phone rule (.ccard.sheet .cc-txt, padding 2px) outranked the old -6px margin trick and cut the first letters off each line */
.pcard.ccard.mq .cc-txt{margin:0!important;padding:0 0 18px!important;overflow-x:hidden}
