/* entry-card.css -- shared styles for the hover / click "entry card" on any page.  MASTER copy: Claude_CoWorking\entry-card.css
   (a second copy sits in the minisite root; edit the master, then copy it over).  Pairs with entry-card.js.  Everything is scoped
   to .ec / .ec-ref / .ec-depth / .ec-toast so it cannot restyle the host page. */
.ec,.ec-depth,.ec-toast{--panel:#252036;--ink:#f3eefb;--text:#e6e1f0;--dim:#bbb1ce;--edge:#c3a9e4;--sky:#4fa8f7;--gold:#eed17b;--blue:#b7d9ff;--rule:#3a3250}
.ec,.ec *{box-sizing:border-box}
.ec{text-align:left;letter-spacing:normal;text-transform:none;font-style:normal;font-weight:400;text-indent:0;white-space:normal}
.ec-ref.ec-miss{border-bottom-color:#e66;border-bottom-style:dashed}
/* the mention in the text: a quiet dotted gold underline */
.ec-ref{border-bottom:2px dotted #4fa8f7;cursor:pointer;border-radius:2px;transition:background .12s}
.ec-ref:hover,.ec-ref:focus-visible,.ec-ref.on{background:#eed17b26;outline:none}
/* ---------- the card: "Pocket thought" look ---------- */
.ec{position:fixed;z-index:99990;width:300px;max-width:calc(100vw - 16px);background:none;border:2px solid transparent;border-radius:25px;padding:14px 15px 13px;color:var(--ink);font:13px/1.45 system-ui,"Segoe UI",Arial,sans-serif}
.ec[hidden]{display:none}
.ec:not(.pinned){pointer-events:none}
.ec.deep{width:360px}
.ec .tail,.ec .tail:before{position:absolute;background:var(--panel);border:2px solid var(--sky);border-radius:50%}
.ec .tail{width:15px;height:10px;left:31px;bottom:-15px}
.ec .tail:before{content:"";width:7px;height:5px;left:-11px;bottom:-11px}
.ec.below .tail{bottom:auto;top:-15px}
.ec.below .tail:before{bottom:auto;top:-11px}
.ec.side .tail{bottom:auto;width:10px;height:15px}.ec.side .tail:before{width:5px;height:7px;top:auto;bottom:-11px}.ec.side.sr .tail{left:-15px}.ec.side.sr .tail:before{left:-11px;right:auto}.ec.side.sl .tail{left:auto;right:-15px}.ec.side.sl .tail:before{left:auto;right:-11px}.ec.diag .tail{bottom:auto;width:20px;height:15px;background:none;border:0}.ec .bb{display:none}.ec.diag .bb{display:block;position:absolute;inset:0;border:2px solid var(--sky);border-radius:50%;background:var(--panel)}.ec.diag .tail:before{width:13px;height:10px;left:var(--x2);top:var(--y2);right:auto;bottom:auto}.ec.diag .tail:after{content:"";position:absolute;background:var(--panel);border:2px solid var(--sky);border-radius:50%;width:7px;height:5px;left:var(--x3);top:var(--y3)}.ec .ecb{max-height:calc(100vh - 52px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#6b5f8f transparent}
.ec .lab{color:var(--gold);font:500 11px/1.4 system-ui,Arial,sans-serif;text-transform:uppercase;letter-spacing:.6px}
.ec .x{position:absolute;right:11px;top:8px;border:0;background:transparent;color:var(--ink);font:20px/1 Arial;cursor:pointer;padding:4px;display:none}
.ec.pinned .x{display:block}
.ec .still{margin:9px 0 6px;border-radius:10px;overflow:hidden;background:#15121e;border:1px solid #3d3552;position:relative}
.ec .still img{display:block;width:100%;height:auto;max-height:230px;object-fit:contain;cursor:zoom-in}
.ec.deep .still img{max-height:300px}
.ec .still.big img{height:auto;max-height:420px;object-fit:contain;cursor:zoom-out}
.ec .cap{font:italic 11px/1.4 system-ui;color:var(--dim);padding:5px 8px 6px;background:#1a1626}
.ec h4{font:600 19px/1.25 system-ui,Arial,sans-serif;margin:8px 0 2px;font-style:italic}
.ec .meta{color:var(--dim);font-size:12px}
.ec .meta b{color:var(--gold);font-size:14px}
.ec .tease{margin:7px 0 4px;font-size:13px;font-family:system-ui}
.ec .thumbs{display:flex;gap:6px;margin:8px 0 2px;flex-wrap:wrap}
.ec .thumbs button{padding:0;width:46px;height:46px;border-radius:8px;overflow:hidden;border:2px solid transparent;background:#15121e;cursor:pointer}
.ec .thumbs button[aria-pressed=true]{border-color:var(--gold)}
.ec .thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.ec .chips{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 2px}
.ec .chips span,.ec .chips button{border:1px solid #665185;background:#241c36;color:var(--ink);border-radius:99px;padding:3px 9px;font:11.5px system-ui;cursor:default}
.ec .chips button{cursor:pointer}
.ec .chips .shared{border-color:var(--gold);color:var(--gold)}
.ec .cnote{font-size:11px;color:var(--dim);margin:2px 0 0}
.ec .more{margin:8px 0 0;font-size:11.5px;color:var(--dim)}
.ec dl{margin:8px 0 0;font-size:11.5px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px}
.ec dt{color:var(--gold)}.ec dd{margin:0;color:var(--dim)}
.ec .go{margin-top:10px;background:var(--gold);color:#241b2d;border:0;border-radius:8px;padding:9px 10px;width:100%;text-align:left;font:500 13px/1.3 system-ui;cursor:pointer}
.ec .foot{margin-top:7px;font-size:10.5px;color:#9d92b4}
.ec .dev{margin-top:8px;border-top:1px dashed #5a4a7a;padding-top:6px;font:10.5px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#9fe0d4}
.ec .dev:before{content:"DEV ONLY \00b7  ";color:#e6a0a0}
.ec .why{font:italic 11px/1.4 system-ui;color:var(--gold);margin:-2px 0 4px}
.ec .chips .fi{box-shadow:inset 3px 0 0 #b07cff}.ec .chips .be{box-shadow:inset 3px 0 0 #6fd08c}
.ec .legend{font-size:11px;color:var(--dim);margin:3px 0 0}.ec .legend i{display:inline-block;width:9px;height:9px;border-radius:2px;vertical-align:-1px;margin:0 3px 0 0}.ec .legend i.fi{background:#b07cff}.ec .legend i.be{background:#6fd08c}
.ec .sites{margin-top:10px;display:grid;gap:6px}
.ec .site{border:1px solid;border-radius:10px;background:#1a1626;color:var(--ink);text-align:left;padding:7px 10px;font:500 12.5px/1.3 system-ui;cursor:pointer}
.ec .site small{display:block;font-weight:400;color:var(--dim);font-size:10.5px;margin-top:2px}
.ec .site.fi{border-color:#b07cff}.ec .site.be{border-color:#6fd08c}
/* ---------- Clean level (0): small photo, smaller text, narrower box ---------- */
.ec.d0{width:220px;min-width:150px;max-width:calc(100vw - 16px);padding:11px 13px 10px}
.ec.d0 .foot,.ec.d0 .dev{width:0;min-width:100%;overflow-wrap:anywhere}
.ec .mini{display:flex;flex-direction:column;gap:8px;align-items:stretch;margin:7px 0 1px}
.ec .mini img{flex:none;width:auto;height:auto;max-width:100%;max-height:160px;align-self:center;object-fit:contain;border-radius:8px;border:1px solid #3d3552;background:#15121e}
.ec .mini .mt{min-width:0}
.ec.d0 h4{font-size:14.5px;line-height:1.25;margin:0 0 1px}
.ec.d0 .meta{font-size:11px}.ec.d0 .meta b{font-size:12px}
.ec.d0 .foot{font-size:9.5px;margin-top:5px}
.ec.d0 .dev{font-size:9px;margin-top:5px;padding-top:4px}
.ec-depth .drow2{padding:0 12px 8px;font-size:12px;color:var(--dim)}.ec-depth .drow2 label{display:flex;gap:6px;align-items:center;cursor:pointer}.ec-depth .drow2 input{width:auto;accent-color:var(--gold)}
.ec.grow .ecb{overflow:hidden}
@media (prefers-reduced-motion:reduce){.ec.grow .ecb{overflow-y:auto}}
/* ---------- entrance: bubbles pop out of the word, then the box grows (only when the card first appears) ---------- */
.ec:before{content:"";position:absolute;inset:-2px;border:2px solid var(--sky);border-radius:25px;background:var(--panel);box-shadow:0 14px 32px #000a;z-index:-1;transform-origin:var(--ox,50%) var(--oy,100%)}
.ec .ecb,.ec .x{transform-origin:var(--ox,50%) var(--oy,100%)}
@keyframes ecbox{0%{transform:scale(.04);opacity:.3}48%{transform:scale(1.06,.95);opacity:1}70%{transform:scale(.985,1.02)}86%{transform:scale(1.006,.996)}100%{transform:scale(1)}}
@keyframes ecbub{0%{transform:scale(0)}55%{transform:scale(1.5)}76%{transform:scale(.86)}90%{transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes ecin{0%{opacity:0;transform:scale(.9)}100%{opacity:1;transform:scale(1)}}
.ec.pop:before{animation:ecbox .62s ease-out .27s both}
.ec.pop .ecb,.ec.pop .x{animation:ecin .3s ease-out .5s both}
.ec.pop.diag .tail:after{animation:ecbub .36s ease-out 0s both}
.ec.pop.diag .tail:before{animation:ecbub .36s ease-out .07s both}
.ec.pop.diag .bb{animation:ecbub .38s ease-out .14s both}
.ec.pop:not(.diag) .tail{animation:ecbub .4s ease-out .08s both}
.ec.pop.still .ecb,.ec.pop.still .x{animation:none}
.ec.pop.still:not(.keepb) .bb,.ec.pop.still:not(.keepb) .tail,.ec.pop.still:not(.keepb) .tail:before,.ec.pop.still:not(.keepb) .tail:after{animation:none}
.ec.pop.keepb:before{animation:ecbox .34s ease-out 0s both}
.ec.climb .ecb{opacity:0}
@media (prefers-reduced-motion:reduce){.ec.pop:before,.ec.pop .ecb,.ec.pop .x,.ec.pop .bb,.ec.pop .tail,.ec.pop .tail:before,.ec.pop .tail:after{animation:none!important}}
/* ---------- Depth slider ---------- */
.ec-depth{position:fixed;left:12px;bottom:12px;right:auto;top:auto;z-index:99995;background:#1b1730ee;border:1px solid var(--edge);border-radius:12px;padding:0;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;color:var(--gold);font-size:13px}
.ec-depth input{width:130px;accent-color:var(--gold)}
.ec-depth output{color:var(--dim);min-width:104px}.ec-depth .drow{display:flex;gap:10px;align-items:center;padding:6px 12px 8px}.ec-depth .dgrip{height:13px;cursor:grab;touch-action:none;border-bottom:1px solid #3a3556;opacity:.7;background:radial-gradient(circle,#9a92bd 1px,transparent 1.5px) center/6px 6px repeat}.ec-depth .dgrip:hover,.ec-depth.dragging .dgrip{opacity:1}.ec-depth.dragging .dgrip{cursor:grabbing}
.ec-toast{position:fixed;left:50%;bottom:70px;transform:translateX(-50%);background:#2a2340;border:1px solid var(--gold);color:var(--ink);padding:8px 14px;border-radius:99px;font-size:13px;z-index:99996}
.ec-toast[hidden]{display:none}
.site.el{border-color:#e8b84a}
.site.st{border-color:#ff8a5c}
/* ---------- PERS (personal MFD) links: green; plain text unless "Show PERS info" is ticked on the Depth bar ---------- */
.ec-ref.ec-pers{border-bottom-color:#4fd37f}
.ec-ref.ec-pers:hover,.ec-ref.ec-pers:focus-visible,.ec-ref.ec-pers.on{background:#4fd37f26}
html:not(.ec-pers-on) .ec-ref.ec-pers{border-bottom-color:transparent;background:none;cursor:inherit;pointer-events:none}
.ec.pers{--sky:#4fd37f}
.ec-depth .drow2{display:flex;flex-wrap:wrap;gap:6px 16px}
.ec-depth .drow2 label.pers{color:#4fd37f}.ec-depth .drow2 label.pers input{accent-color:#4fd37f}

/* DEV-only source and deployed image diagnostics. */
.ec .dev .ec-image-paths{margin-top:7px;padding-top:5px;border-top:1px dotted #685d80;overflow-wrap:anywhere;word-break:break-word}.ec .dev .ec-image-paths div{margin-top:3px}.ec .dev a{color:inherit;text-decoration:underline}
/* Hot Blocks (Times Square) site color, Nov 18, 2026 */
.ec .site.hb{border-color:#e8b04a}.ec .legend i.hb{background:#e8b04a}.ec .chips .hb{box-shadow:inset 3px 0 0 #e8b04a}

/* CSV field-name key: matches the supplied CSV editor colors and dark labels. */
.ec .lab[role="button"]{cursor:help;width:fit-content;max-width:100%}
.ec .lab[role="button"]:focus-visible{outline:1px dotted var(--gold);outline-offset:3px}
.ec-field-key{position:fixed;inset:0;z-index:99994;pointer-events:none;text-align:left;font-style:normal;letter-spacing:normal;text-transform:none}
.ec-field-key[hidden],.ec-field-key .ec-field-marker[hidden]{display:none!important}
.ec-field-key .ec-field-marker{position:fixed;left:0;top:0;display:block;width:max-content;max-width:calc(100vw - 8px);padding:2px 4px;background:#1e1e1e;color:#d4d4d4;font:16px/1.15 Consolas,"Courier New",monospace;white-space:nowrap;box-shadow:0 1px 2px #0005}
.ec-field-key .ec-field-comma{color:#d4d4d4}

/* Restored DEV-details disclosure from the site prototype; master-owned so sync retains it. */
.ec .dev:before{content:none}
.ec .dev .devtog{display:flex;align-items:baseline;gap:6px;width:100%;background:none;border:0;padding:2px 0;margin:0;font:inherit;color:#e6a0a0;cursor:pointer;text-align:left}.ec .dev .devtog:hover{color:#ffc4c4}.ec .dev .devtog:focus-visible{outline:2px solid #9fe0d4;outline-offset:2px;border-radius:3px}.ec .dev .dar{font-size:12px;line-height:1;flex:none;width:12px}.ec .dev .dfile{color:#9fe0d4;font-weight:400;overflow-wrap:anywhere;min-width:0}.ec .dev .devb{margin-top:4px}

/* Right-edge scrolling and the compact shared depth control, Nov 18, 2026. */
.ec .ecb{margin-right:-11px;padding-right:11px}
.ec .ecb::-webkit-scrollbar{width:6px}
.ec .ecb::-webkit-scrollbar-track{background:transparent}
.ec .ecb::-webkit-scrollbar-thumb{background:#6b5f8f;border-radius:6px}
.ec .ec-card-depth{float:right;position:relative;width:76px;height:24px;margin:3px 0 0 8px;color:var(--gold);font:11px/1 system-ui;cursor:pointer}
.ec .ec-card-depth output{position:absolute;top:0;left:calc(6px + var(--depth)*20px);transform:translateX(-50%);color:var(--gold)}
.ec .ec-card-depth input{position:absolute;left:0;bottom:0;width:72px;height:12px;margin:0;cursor:pointer;accent-color:var(--gold);appearance:none;background:transparent}
.ec .ec-card-depth input::-webkit-slider-runnable-track{height:3px;border-radius:4px;background:linear-gradient(to right,var(--gold),#807492)}
.ec .ec-card-depth input::-webkit-slider-thumb{appearance:none;width:7px;height:7px;margin-top:-2px;border-radius:50%;background:var(--gold)}
.ec .ec-card-depth input::-moz-range-track{height:3px;border-radius:4px;background:#807492}
.ec .ec-card-depth input::-moz-range-progress{height:3px;background:var(--gold)}
.ec .ec-card-depth input::-moz-range-thumb{width:7px;height:7px;border:0;border-radius:50%;background:var(--gold)}
.ec .ec-card-depth input:focus-visible{outline:1px solid var(--gold);outline-offset:3px}
.ec .lab[role="button"]{min-height:21px;max-width:calc(100% - 84px)}
.ec .still,.ec .mini{clear:both}

/* Screen depth control docks bottom-left and can reduce to Depth + number. */
.ec-depth .dhandle{display:flex;align-items:stretch}
.ec-depth .dhandle .dgrip{flex:1;height:18px}
.ec-depth .depth-fold{border:0;border-left:1px solid #3a3556;background:transparent;color:var(--gold);padding:0 9px;min-width:30px;min-height:22px;font:16px/1 system-ui;cursor:pointer}
.ec-depth .depth-fold:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
.ec-depth .fold-label{display:none}
.ec-depth.collapsed .drow,.ec-depth.collapsed .drow2,.ec-depth.collapsed .dgrip,.ec-depth.collapsed .fold-icon{display:none}
.ec-depth.collapsed .fold-label{display:inline}
.ec-depth.collapsed .depth-fold{border:0;padding:7px 12px;font:13px/1.2 system-ui}
.ec-depth.collapsed .fold-number{font-weight:bold;margin-left:5px}
/* Link-hover state: card slightly see-through; fully opaque once clicked/pinned (Beasts test, merged into master Nov 18, 2026) */
.ec{--hover-alpha:.86}
.ec:not(.pinned):before,.ec:not(.pinned) .tail,.ec:not(.pinned) .tail:before,.ec:not(.pinned).diag .bb{background:rgba(37,32,54,var(--hover-alpha))}
