.note-expand,.summary-expand{display:inline;width:auto;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit;cursor:pointer;touch-action:manipulation}
.note-more,.summary-more{display:inline;font-family:'DM Sans',sans-serif;font-size:14px;line-height:inherit;font-weight:500;letter-spacing:0;white-space:nowrap;margin-left:.45em}
.note-more{color:var(--accent)}
.summary-more{color:inherit;opacity:.7;flex-shrink:0}
.note-expand:hover .note-more,.summary-expand:hover .summary-more{text-decoration:underline;text-underline-offset:4px}
.note-expand[aria-expanded=true] .note-more,.summary-expand[aria-expanded=true] .summary-more{visibility:hidden}
.summary-reading{display:block;position:relative;width:100%;max-width:580px;min-width:0;font-size:17px;line-height:1.85}
.summary-expand{display:block;width:100%}
.summary-expand .summary-copy{display:inline}
.summary-expand .summary-heading{display:block;margin-bottom:12px}
.summary-expand:focus-visible{outline:none}

/* The note shell and overview scene keep their height as prose expands over
   the source. Only the expanded reading scrolls when it is long. */
.note-copy.is-expanded,.summary-reading.is-expanded{position:relative;z-index:1;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;scrollbar-width:none;background:var(--paper);isolation:isolate;box-shadow:6px 0 var(--paper),-4px 0 var(--paper),0 8px 12px var(--paper);mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 52px),#000b calc(100% - 30px),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0,#000 calc(100% - 52px),#000b calc(100% - 30px),transparent 100%)}
.reading-frost{position:absolute;z-index:0;pointer-events:none;background:linear-gradient(to bottom,var(--paper) 0,var(--paper) calc(100% - 76px),#fafaf9eb calc(100% - 22px),#fafaf9c9 100%);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);mask-image:linear-gradient(to bottom,#000 calc(100% - 26px),transparent);-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 26px),transparent);box-shadow:6px 0 var(--paper),-4px 0 var(--paper)}
@media(prefers-reduced-transparency:reduce){.reading-frost{background:var(--paper);backdrop-filter:none;-webkit-backdrop-filter:none}}
.note-copy.is-expanded::-webkit-scrollbar,.summary-reading.is-expanded::-webkit-scrollbar{display:none}
.note-window.has-expanded-reading{overflow:visible;z-index:6}
.paragraph-block.has-expanded-reading,.section-overview .episode-section.has-expanded-reading{overflow:visible;z-index:5}
.section-summary.has-expanded-reading,.paragraph-summary.has-expanded-reading{opacity:1;filter:none;z-index:5}
.section-summary.has-expanded-reading .summary-reading,.paragraph-summary.has-expanded-reading .summary-reading{background:color-mix(in srgb,var(--text-section) 3%,var(--paper));box-shadow:0 0 22px 16px var(--paper);border-radius:4px}
.note-details{display:block;padding:0 0 66px;font:inherit;line-height:inherit;color:inherit;text-align:inherit;cursor:auto;user-select:text;animation:extend-reading .18s ease-out both}
@keyframes extend-reading{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.note-details{animation:none}}
.research-entry{display:block;margin:0 0 16px;font:inherit;line-height:inherit}
.research-entry strong{font-weight:550;color:inherit}
.research-disclosure{display:block;margin:18px 0 0;font:inherit}
.research-disclosure>summary{min-height:32px;cursor:pointer;font-size:14px;font-weight:500;line-height:1.7;color:inherit;touch-action:manipulation}
.research-disclosure[open]>summary{margin-bottom:12px}
.research-disclosure blockquote{margin:12px 0;padding-left:12px;border-left:1px solid color-mix(in srgb,currentColor 30%,transparent);font:inherit;line-height:inherit;overflow-wrap:anywhere;text-align:left}
.research-links,.source-entry{display:block;margin:8px 0 14px}
.research-links a,.source-entry>a{font-size:14px;line-height:1.7;color:inherit;text-decoration:underline;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px;overflow-wrap:anywhere}
.source-entry blockquote{font-size:14px;line-height:1.7}

/* Identity fills are drawn once per complete mention by identity-bubbles.js. */
body:not(.hide-recurrences) .word.is-recurring,body:not(.hide-recurrences) .word.is-thunder{border-radius:50px;text-decoration-line:none}
.word.is-thunder{--identity-color:#ad802b}
.thunder-icon{--entity-color:#ad802b}
.entity-icons{display:inline-flex;align-items:center;gap:.22em;margin:0 .32em 0 .15em;vertical-align:.035em;font-family:'DM Sans',sans-serif;font-size:.86em;font-weight:600;line-height:1;white-space:nowrap}
.entity-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--entity-color)}
.entity-icon svg{width:.72em;height:.9em;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hide-recurrences .entity-icons{display:none}
.recurrence-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px;margin:18px 0 0;padding:10px 8px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:.875rem;font-weight:500;line-height:1.5;text-align:left;touch-action:manipulation}
.recurrence-toggle[aria-checked=true]{color:var(--word-ink)}
.recurrence-toggle:hover{background:color-mix(in srgb,var(--word-soft) 45%,transparent)}
.recurrence-switch{position:relative;flex:0 0 24px;height:14px;border-radius:999px;background:#a7aab1}
.recurrence-switch::after{content:'';position:absolute;width:10px;height:10px;left:2px;top:2px;border-radius:50%;background:white}
.recurrence-toggle[aria-checked=true] .recurrence-switch{background:var(--word-ink)}
.recurrence-toggle[aria-checked=true] .recurrence-switch::after{transform:translateX(10px)}
.recurrence-reading{display:block;margin:12px 0 0;font:inherit;line-height:inherit}
.recurrence-name{color:var(--entity-color);font-weight:600}
.recurrence-kind{font-size:14px;opacity:.8}
.recurrence-reason,.recurrence-profile{display:block;margin-top:3px}
.note-details .recurrence-reading{margin:16px 0}
@media screen and (max-width:900px),screen and (pointer:coarse) and (max-width:1100px){
  .recurrence-toggle{width:auto;max-width:100%;margin:6px 0 0 auto;padding:6px 8px;gap:10px}
  .summary-reading{font-size:1rem;line-height:1.8}
  .research-disclosure>summary{min-height:44px;display:flex;align-items:center;gap:8px}
  .research-disclosure>summary::before{content:'+';font-weight:500}
  .research-disclosure[open]>summary::before{content:'−'}
  .research-disclosure>summary::-webkit-details-marker{display:none}
  .note-copy.is-expanded{box-shadow:4px 0 var(--paper),-3px 0 var(--paper),0 8px 10px var(--paper)}
  .section-summary.has-expanded-reading .summary-reading,.paragraph-summary.has-expanded-reading .summary-reading{box-shadow:0 0 12px 8px var(--paper)}
}
@media print{.note-details,.note-more,.summary-more{display:none!important}body:not(.hide-recurrences) .word.is-recurring{background-image:none!important}}
