.elipsy-widget .ellipse-canvas{isolation:isolate}.elipsy-widget .stone-hit.is-muted{background:rgba(170,180,180,.55);mix-blend-mode:saturation}.elipsy-widget .stone-hit.is-active,.elipsy-widget .stone-hit.is-related{mix-blend-mode:normal}.elipsy-widget .stone-hit{transition:background .16s,opacity .16s}.elipsy-widget .chronology-edge{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;fill:none;stroke:#c08a32;stroke-width:1.4;filter:drop-shadow(0 0 1px #fff)}.chronology-timeline,.personality-concepts{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.chronology-timeline button,.personality-concepts button{border:1px solid var(--line);padding:8px 12px;border-radius:18px;font-size:12px;min-height:40px}.chronology-timeline button[aria-pressed=true]{background:var(--gold);color:var(--paper)}
.elipsy-widget .ellipse-workbench{align-items:start}.elipsy-widget .stone-detail-column{position:relative;top:auto;max-height:none;overflow:hidden;min-height:0}.elipsy-widget .chapter-panel{height:100%;display:flex;flex-direction:column;min-height:0;gap:14px;margin:0;overflow:hidden}.elipsy-widget .chapter-panel h3{font-size:clamp(27px,2.7vw,40px);margin:0;line-height:1.15}.elipsy-widget .chapter-panel .chapter-annotation{font-size:14px;line-height:1.7;margin:0;color:var(--muted)}.elipsy-widget .chapter-panel .stone-meta{margin:0;padding:14px 0;gap:12px}.elipsy-widget .chapter-panel .stone-meta div{padding:0}.elipsy-widget .chapter-panel .stone-meta dd{font-size:12px}.elipsy-widget .chapter-teaser{flex:1;min-height:0;overflow:hidden;position:relative;mask-image:linear-gradient(#000 85%,transparent)}.elipsy-widget .chapter-teaser p{font:14px/1.9 Georgia,serif;margin:0 0 14px;white-space:pre-wrap}.elipsy-widget .chapter-teaser h4{font:600 16px/1.6 Georgia,serif;margin:10px 0}.elipsy-widget .chapter-relations{flex:0 0 auto;padding-top:10px;border-top:1px solid var(--line);gap:7px}.elipsy-widget .chapter-relations>span{width:100%;font-size:10px}.elipsy-widget .chapter-relations button{min-height:36px;padding:7px 10px;font-size:11px}.elipsy-widget .chapter-open{flex:0 0 auto;min-height:44px;padding:10px 14px;border:1px solid var(--gold);border-radius:6px;text-align:left;font-size:13px;background:var(--gold);color:var(--paper)}
.chapter-reader{--reader-paper:#fcfaf4;--reader-ink:#243335;position:fixed;inset:0;margin:auto;width:min(1180px,96vw);max-width:none;height:92svh;max-height:none;padding:0;border:1px solid #a89a75;border-radius:10px;background:var(--reader-paper);color:var(--reader-ink);overflow:hidden}.chapter-reader.reader-night{--reader-paper:#14242b;--reader-ink:#ede8db}.chapter-reader[open]{display:flex;flex-direction:column}.chapter-reader::backdrop{background:#07141bd9}.chapter-reader>header{display:flex;justify-content:space-between;gap:15px;padding:16px 24px;border-bottom:1px solid #92958c55;font:12px/1.6 Arial,sans-serif;flex:0 0 auto}.chapter-reader>header button{min-height:40px;border:1px solid #92958c88;padding:6px 12px;border-radius:5px;color:inherit}.chapter-reader .chapter-reader-text{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:32px clamp(20px,7vw,95px);line-height:1.9;font-family:Georgia,'Times New Roman',serif;overflow-wrap:anywhere;color:inherit}.chapter-reader .chapter-reader-text p{font-size:1em;line-height:1.9;margin:0 0 1.1em;white-space:pre-wrap;color:inherit}.chapter-reader .chapter-reader-text h4{font-size:1.2em;line-height:1.5;margin:1.3em 0 .8em;color:inherit}.chapter-reader>footer{max-width:none;margin:0;padding:12px 24px;display:flex;justify-content:space-between;align-items:center;gap:25px;border-top:1px solid #92958c55;flex:0 0 auto;color:inherit}.chapter-reader footer label{display:flex;align-items:center;gap:15px;font:12px Arial,sans-serif;color:inherit;margin:0;flex:1}.chapter-reader input[type=range]{max-width:300px;width:100%;padding:0;margin:0;background:none;accent-color:#b28a4b}.chapter-reader .chapter-back{width:52px;height:44px;border:1px solid #92958c88;border-radius:7px;font-size:28px;color:inherit}
@media(max-width:820px){.elipsy-widget .stone-detail-column{overflow:hidden}.elipsy-widget .chapter-panel{gap:12px}.elipsy-widget .chapter-teaser{min-height:80px}.chapter-reader{height:96svh}.chapter-reader>header{padding:12px 16px}.chapter-reader>footer{padding:12px 16px}.chapter-reader footer label{flex-wrap:wrap;gap:8px}.chapter-reader input[type=range]{max-width:200px}}
@media(prefers-reduced-motion:reduce){.elipsy-widget .stone-hit{transition:none}}
.elipsy-widget .stone-hit{opacity:1!important;mix-blend-mode:normal!important;filter:none!important;background:transparent}.elipsy-widget .stone-hit.is-muted{background:rgba(4,12,19,.64);mix-blend-mode:normal}.elipsy-widget .stone-hit.is-related{background:rgba(255,244,202,.17);box-shadow:inset 0 0 0 1px #fff6d844}.elipsy-widget .stone-hit.is-active,.elipsy-widget .stone-hit:hover,.elipsy-widget .stone-hit:focus-visible{background:transparent;box-shadow:none}.elipsy-widget .chapter-teaser{flex:0 1 auto;mask-image:linear-gradient(#000 94%,transparent)}.elipsy-widget .chapter-open{margin:0}.elipsy-widget .chapter-choices{position:relative;font-size:13px;flex:0 0 auto}.elipsy-widget .chapter-choices summary{cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:10px 12px;min-height:44px}.elipsy-widget .chapter-choices>div{position:absolute;z-index:10;top:100%;left:0;right:0;display:grid;gap:5px;padding:10px;background:var(--surface);border:1px solid var(--line);border-radius:6px;max-height:320px;overflow:auto;box-shadow:0 12px 30px #0003}.elipsy-widget .chapter-choices button{font-size:13px;min-height:44px;text-align:left;border:1px solid var(--line);padding:8px}.elipsy-widget .chapter-choices button[aria-pressed=true]{border-color:var(--gold);color:var(--gold)}@media(max-width:900px){.elipsy-widget .map-primary-controls .map-zoom{margin-left:0;justify-content:flex-start}}@media(max-width:820px){.elipsy-widget .chapter-teaser{max-height:340px;min-height:0}.elipsy-widget .stone-detail-column{height:auto;max-height:800px}.elipsy-widget .chapter-panel{height:auto;max-height:800px}}

.elipsy-widget .ellipse-layout { container-type: inline-size; min-width: 0; }
.elipsy-widget .ellipse-stage.is-zoomed { position: relative; }
.elipsy-widget .map-primary-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 12px;
}
.elipsy-widget .map-primary-controls .map-zoom { margin-left: auto; }
.elipsy-widget .map-mode-select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
}
.elipsy-widget .ellipse-section.is-fullscreen {
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.elipsy-widget .is-fullscreen .ellipse-layout {
  container-type: size;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1.6vmin, 22px);
}
@media (max-width: 820px) and (orientation: portrait) {
  .elipsy-widget .is-fullscreen .ellipse-layout {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100dvh;
    height: 100dvw;
    transform: translate(-50%, -50%) rotate(90deg);
  }
}
.elipsy-widget .is-fullscreen .map-primary-controls { flex: 0 0 auto; margin: 0 0 7px; }
.elipsy-widget .is-fullscreen .map-controls { margin: 0 0 8px; }
.elipsy-widget .ellipse-section.is-fullscreen .map-primary-controls .ellipse-fullscreen-toggle {
  position: static;
  box-shadow: none;
}
.elipsy-widget .is-fullscreen .selection-hint { display: none; }
.elipsy-widget .ellipse-section.is-fullscreen .ellipse-workbench {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(8px, 2vmin, 24px);
  align-items: stretch;
  overflow: hidden;
}
.elipsy-widget .ellipse-section.is-fullscreen .ellipse-stage {
  container-type: size;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.elipsy-widget .ellipse-section.is-fullscreen .ellipse-stage.is-zoomed {
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
}
.elipsy-widget .ellipse-section.is-fullscreen .ellipse-canvas {
  width: min(100%, calc(100cqh * var(--map-aspect)));
  max-width: none;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.elipsy-widget .ellipse-section.is-fullscreen .ellipse-stage.is-zoomed .ellipse-canvas {
  width: min(150%, calc(150cqh * var(--map-aspect)));
}
.elipsy-widget .ellipse-section.is-fullscreen .stone-detail-column {
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.elipsy-widget .ellipse-section.is-fullscreen .chapter-panel {
  padding: clamp(8px, 2cqh, 24px);
  gap: clamp(5px, 1.5cqh, 14px);
  max-height: none;
  border-radius: 8px;
}
.elipsy-widget .is-fullscreen .chapter-panel h3 {
  font-size: clamp(17px, 5cqh, 38px);
  overflow-wrap: anywhere;
}
.elipsy-widget .is-fullscreen .chapter-annotation {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.elipsy-widget .is-fullscreen .chapter-panel .stone-meta {
  grid-template-columns: repeat(3, minmax(0,1fr));
  padding: 4px 0;
  gap: 5px;
}
.elipsy-widget .is-fullscreen .chapter-teaser { flex: 1 1 0; min-height: 0; }
.elipsy-widget .is-fullscreen .chapter-relations {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 3px 0 0;
}
.elipsy-widget .is-fullscreen .chapter-relations > span { display: none; }
.elipsy-widget .is-fullscreen .chapter-relations button {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.elipsy-widget .is-fullscreen .chapter-choices > div {
  max-height: min(260px, 47cqh);
}
@container (max-height: 470px) {
  .elipsy-widget .is-fullscreen .map-primary-controls :is(select, button),
  .elipsy-widget .is-fullscreen .map-controls .map-variant-switch button {
    min-height: 36px;
    height: 36px;
    padding: 4px 7px;
    font-size: 12px;
  }
  .elipsy-widget .is-fullscreen .map-primary-controls .ellipse-fullscreen-toggle {
    height: 36px;
    min-height: 36px;
  }
  .elipsy-widget .is-fullscreen .chapter-panel .chapter-annotation {
    font-size: 12px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }
  .elipsy-widget .is-fullscreen .chapter-panel :is(.stone-meta dt,.stone-meta dd) {
    font-size: 10px;
    line-height: 1.3;
  }
  .elipsy-widget .is-fullscreen .chapter-panel :is(.chapter-open,.chapter-choices summary,.chapter-relations button) {
    min-height: 34px;
    padding: 5px 6px;
    font-size: 11px;
  }
  .elipsy-widget .is-fullscreen .chapter-teaser p { font-size: 12px; line-height: 1.5; }
}
@container (max-height: 340px) {
  .elipsy-widget .is-fullscreen .chapter-panel .stone-meta { display: none; }
}

.elipsy-essay:has(.elipsy-more:not([open])) > p:nth-of-type(2) {
  mask-image: linear-gradient(#000 75%, #0009);
}
.elipsy-more > summary {
  display: list-item;
  width: fit-content;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
}
.elipsy-more > summary:hover { border-color: var(--gold); }
.elipsy-more .elipsy-less-label,
.elipsy-more[open] .elipsy-more-label { display: none; }
.elipsy-more[open] .elipsy-less-label { display: inline; }
.elipsy-more[open] > summary { margin-bottom: 18px; }
