.bubble-page{--paper:#f3ead6;--card:#fffaf0;--line:#e0d4b8;--ink:#2b2418;--deep:#2b2418;--muted:#76694f;--gold:#b0812d;--gold-d:#8a6420;background:var(--paper) radial-gradient(1200px 600px at 80% -10%,#fbf3e1 0,transparent 60%);color:var(--ink)}
.topbar{max-width:1440px;margin:auto;padding:22px 40px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.topbar .brand-icon{border-color:#b9a77f;background:#fffaf0}.topbar .brand{color:var(--ink)}.topbar nav{display:flex;gap:28px;align-items:center;font-size:13px}.topbar nav a,.topbar .text-button{color:var(--ink);position:relative;padding:6px 0}.topbar nav a::after,.topbar .text-button::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:left;transition:transform .25s}.topbar nav a:hover::after,.topbar .text-button:hover::after{transform:scaleX(1)}
.lede{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:end;padding:28px 0 34px}
.lede h1{font:400 clamp(44px,6vw,88px)/1 var(--serif);letter-spacing:-.035em;margin:16px 0 18px;color:var(--ink)}.lede h1 em{font-style:italic;font-weight:300;color:var(--gold-d)}
.lede p{max-width:620px;margin:0;color:var(--muted);font-size:16px;line-height:1.75}
.lede-stats{display:grid;grid-template-columns:repeat(3,auto);gap:0}.lede-stats .stat{padding:4px 26px;border-left:1px solid var(--line)}.lede-stats .stat:first-child{border-left:0;padding-left:0}.lede-stats strong{display:block;font:300 44px/1 var(--serif);letter-spacing:-.03em;color:var(--ink);font-variant-numeric:tabular-nums}.lede-stats span{display:block;font-size:12px;color:var(--muted);margin-top:8px;max-width:150px;line-height:1.45}
.bubble-page .shell{background:var(--card);border-color:var(--line);box-shadow:0 30px 70px -40px #5a43184d}
.bubble-page .filterbar{background:#fbf3e2;border-color:var(--line)}.bubble-page .filters{background:#efe3c6}.bubble-page .chip.selected{background:var(--ink)}
.bubble-page .workspace{grid-template-columns:minmax(0,1fr) 380px;min-height:0}
.bubble-page .map-heading{border-color:var(--line)}
.trail{display:flex;align-items:center;gap:8px;font-size:13px;min-width:0;flex-wrap:wrap}.trail button{white-space:nowrap;font:500 15px var(--serif);padding:2px 0;color:var(--muted)}.trail button:hover{color:var(--gold-d)}.trail button[aria-current]{color:var(--ink);font-size:17px}.trail .sep{color:#bfae86}
.bubble-viewport{position:relative;height:min(80vh,820px);min-height:520px;width:100%;margin:auto;background:radial-gradient(circle at 50% 50%,#fffdf6 0,#f6edd8 72%);overflow:hidden}
.bubble-viewport svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.bubble-viewport .zoom{bottom:14px;right:14px}
.b-family{fill:var(--fam);fill-opacity:.07;stroke:var(--fam);stroke-opacity:.35;stroke-width:1.2;stroke-dasharray:2 5;cursor:pointer;transition:fill-opacity .25s}
.b-family:hover{fill-opacity:.12}
.b-topic{fill:#fffdf7;stroke:var(--fam);stroke-width:1.6;cursor:pointer;transition:stroke-width .2s,fill .2s}
.b-topic:hover,.b-topic:focus-visible{stroke-width:3;fill:#fffaf0;outline:none}
.b-book{fill:var(--fam);fill-opacity:.82;stroke:#fffaf0;stroke-width:1;cursor:pointer;transition:fill-opacity .2s,stroke .2s,stroke-width .2s}
.b-book.zero{fill-opacity:.18;stroke:var(--fam);stroke-opacity:.55}
.b-book.official{fill-opacity:.32}
.b-book:hover,.b-book:focus-visible{fill-opacity:1;stroke:#2b2418;stroke-width:2;outline:none}
.b-ring{fill:none;stroke:#865c6c;stroke-width:2.2;pointer-events:none;opacity:0;transition:opacity .3s}.deep .b-ring{opacity:1}.b-ring.cand{stroke-dasharray:3 3}
.b-book.selected,svg .b-book.selected{stroke:#2b2418;stroke-width:4;fill-opacity:1}
.b-book.dimmed,.b-topic.dimmed{opacity:.25}
.b-label{pointer-events:none;text-anchor:middle;dominant-baseline:central;fill:#2b2418;font-family:var(--serif)}
.b-label .nm{font-weight:500}.b-label.topic{paint-order:stroke;stroke:#fffaf0;stroke-width:6px;stroke-linejoin:round}.b-label.topic .ct{stroke-width:4px}.b-label .ct{font-family:var(--sans);fill:#76694f}
.b-label.book{fill:#fff;font-family:var(--sans);font-weight:500;paint-order:stroke;stroke:#00000038;stroke-width:2px}
.b-family-label{pointer-events:none;text-anchor:middle;font:600 12px var(--sans);letter-spacing:2px;fill:var(--fam);opacity:.75;text-transform:uppercase}
.tip{position:absolute;z-index:3;pointer-events:none;max-width:280px;background:#2b2418;color:#fbf3e2;border-radius:10px;padding:10px 13px;font-size:12px;line-height:1.5;box-shadow:0 12px 30px #0003;transform:translate(-50%,calc(-100% - 14px))}
.tip b{display:block;font:500 15px/1.3 var(--serif);margin-bottom:4px;color:#fff}.tip span{color:#d8c9a6}
.size-note{font-size:11px;color:var(--muted)}
.bubble-page .notebook{background:linear-gradient(180deg,#fffaf0,#faf1de);max-height:none;min-height:0;height:100%}
.bubble-page .workspace{align-items:stretch}.bubble-page .notebook{max-height:900px}
.topic-row{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--line);font:500 17px/1.3 var(--serif)}.topic-row:hover{color:var(--gold-d)}.topic-row small{font:12px var(--sans);color:var(--muted);white-space:nowrap}.topic-row i{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:10px;flex-shrink:0}.topic-row span{display:flex;align-items:center}
.bubble-page .cards{margin-bottom:10px}
@media(max-width:1100px){.topbar{padding:18px 24px}.bubble-page .workspace{grid-template-columns:minmax(0,1fr) 300px}.lede{grid-template-columns:1fr}.lede-stats .stat:first-child{padding-left:0}}
@media(max-width:800px){.topbar nav a{display:none}.lede{padding:14px 4px 24px}.lede p{font-size:15px}.lede-stats strong{font-size:32px}.lede-stats .stat{padding:4px 14px}.bubble-page .workspace{display:block}.bubble-viewport{max-height:none}.bubble-page .notebook{height:auto;max-height:640px}.size-note{width:100%}}

.bubble-page svg:not(.deep) .b-book{fill-opacity:.55}.bubble-page svg:not(.deep) .b-book.zero{fill-opacity:.15}
@media(max-width:800px){.bubble-viewport{height:auto;aspect-ratio:1/1;min-height:0}}
/* Mobile refinements */
.topic-chips{display:none}
@media(max-width:800px){
 .topic-chips{display:flex;gap:8px;overflow-x:auto;padding:12px 12px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 .topic-chips::-webkit-scrollbar{display:none}
 .topic-chips button{flex:none;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fffaf0;font:500 15px/1 var(--serif);color:var(--ink);white-space:nowrap}
 .topic-chips button i{width:9px;height:9px;border-radius:50%;flex:none}
 .topic-chips button small{font:500 12px var(--sans);color:var(--muted)}
 .topic-chips button[aria-current]{background:var(--ink);color:#fbf3e2;border-color:var(--ink)}
 .topic-chips button[aria-current] small{color:#d8c9a6}
 .bubble-viewport .zoom{right:8px;bottom:8px;padding:2px}
 .bubble-viewport .zoom button{width:34px;height:32px;font-size:16px}
 .topbar .brand{font-size:10px}.topbar .brand b{font-size:12px}
 .eyebrow{font-size:10px}
 .shell.listing:not(.reading) .notebook{display:block;max-height:none;border-top:1px solid var(--line)}
}
