.worldnaut-edition-status{margin:.45rem 0;color:var(--text,inherit)}
.worldnaut-edition-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 .85rem}
.worldnaut-reader{box-sizing:border-box;width:min(96vw,1200px);max-width:none;height:min(94dvh,1000px);max-height:none;overflow:hidden;padding:0;border:1px solid #48477f;border-radius:16px;background:#0c1020;color:#edf3ff;font:inherit}
.worldnaut-reader[open]{display:grid;grid-template-rows:auto auto auto minmax(0,1fr)}
.worldnaut-reader::backdrop{background:#02040aeb}
.worldnaut-reader:fullscreen,.worldnaut-reader.is-expanded{width:100%;height:100dvh;border-radius:0;border:0}
.worldnaut-reader-header,.worldnaut-reader-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem;padding:.55rem .8rem}
.worldnaut-reader-header{background:linear-gradient(110deg,#111932,#21183c);border-bottom:1px solid #373961}
.worldnaut-reader-header>div{flex:1 1 auto}
.worldnaut-reader-header h2{font-weight:700;line-height:1.2;font-size:clamp(.83rem,2.4vw,1.22rem);margin:0;color:#f1f4ff}
.worldnaut-reader-header>div>span{font-size:.8rem;color:#b8c4e2}
.worldnaut-reader-toolbar{background:#12192b}
.worldnaut-reader-toolbar form{display:flex;align-items:center;gap:.3rem;margin:0}
.worldnaut-reader :is(button,select,input){box-sizing:border-box;min-height:36px;margin:0;border:1px solid #4a5278;border-radius:7px;background:#19233c;color:#f3f6ff;font:inherit;font-size:.85rem;padding:.32rem .52rem}
.worldnaut-reader button{cursor:pointer}
.worldnaut-reader button:disabled,.worldnaut-reader select:disabled,.worldnaut-reader input:disabled{opacity:.55;cursor:default}
.worldnaut-reader button[aria-pressed=true]{border-color:#c7b4ff;background:#302654}
.worldnaut-reader input{width:3.2rem;padding-inline:.25rem}
.worldnaut-reader a{color:#8ee6ff;text-decoration:underline;font-size:.85rem;padding:.38rem .22rem}
.worldnaut-reader :is(button,input,select,a,.worldnaut-reader-stage):focus-visible{outline:2px solid #8ee6ff;outline-offset:-2px}
.worldnaut-reader-status{margin:0;padding:.25rem .8rem;font-size:.78rem;color:#c0cce9;background:#101626}
.worldnaut-reader-stage{overflow:auto;overscroll-behavior:contain;padding:12px;scrollbar-color:#544c7d #080b14;background:radial-gradient(ellipse at 50% 0,#16172e,#070a13 72%)}
.worldnaut-reader-stage canvas{display:block;margin-inline:auto;max-width:none;box-shadow:0 10px 32px #000a}
.worldnaut-reader-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){
  .worldnaut-reader{width:100%;height:100dvh;margin:0;border-radius:0;border:0}
  .worldnaut-reader-header,.worldnaut-reader-toolbar{padding:.42rem .5rem;gap:.35rem}
  .worldnaut-reader-header>div{flex-basis:100%}
  .worldnaut-reader :is(button,select,input){min-height:40px}
}

/* The cover and its action share the full height of each volume card. */
.worldnaut-comic-page .worldnaut-tome-card > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(64px, 22%, 110px);
  grid-template-rows: repeat(4, auto) minmax(0, 1fr) auto;
  align-items: start;
  column-gap: .65rem;
  row-gap: 0;
  width: 100%;
}
.worldnaut-comic-page .worldnaut-tome-card .worldnaut-tome-cover {
  grid-area: 1 / 2 / -1 / 3;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid #4a5278;
  border-radius: 5px;
}
.worldnaut-comic-page .worldnaut-tome-card > div > :not(img) { grid-column: 1; }
.worldnaut-comic-page .worldnaut-tome-card button[data-comic-cover] {
  grid-row: -2;
  justify-self: start;
  max-inline-size: 100%;
  margin-block-start: .75rem;
}
.worldnaut-comic-page .worldnaut-tome2-card .eyebrow { line-height: 12px; }
.worldnaut-comic-page .worldnaut-tome2-card h3 { margin: .2rem 0 0; }
.worldnaut-comic-page .worldnaut-tome2-subtitle { font-size: .875rem; line-height: 1.3; }
.worldnaut-comic-page .worldnaut-tome2-card .worldnaut-tome2-description { margin: .4rem 0 0; }

/* Comic surfaces follow the selected paper color, including in modal view. */
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog),
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog)
  :is(.worldnaut-comic-popup-shell, .worldnaut-comic-popup-header, .worldnaut-comic-popup-scroll,
      .comic-hero, .member-section, .member-product, .comic-character-grid article, .comic-cover-trigger, .comic-cover-scroll) {
  background: var(--theme-page);
  border-color: var(--theme-line);
  color: var(--theme-ink);
  box-shadow: none;
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog)
  :is(h1, h2, h3, p, strong, .comic-cover-trigger > span) {
  color: var(--theme-ink);
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"]) .worldnaut-comic-page .eyebrow {
  color: var(--cyan-2);
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog) .cgb-action {
  background: var(--theme-action);
  border-color: var(--border-strong);
  color: var(--theme-ink);
  box-shadow: none;
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog) .cgb-action.ghost {
  background: var(--theme-page);
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog) .cgb-action:hover {
  background: var(--theme-surface-alt);
  border-color: var(--cyan-2);
  color: var(--theme-ink);
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .worldnaut-comic-page, .comic-cover-dialog) :is(.cgb-action, .comic-cover-trigger):focus-visible {
  outline-color: var(--cyan-2);
  box-shadow: none;
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-page .comic-hero img, .comic-cover-scroll img) {
  box-shadow: none;
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup-scroll, .comic-cover-scroll) {
  scrollbar-color: var(--cyan-2) var(--theme-page);
}
html:is([data-cgb-theme="light"], [data-cgb-theme="beige"])
  :is(.worldnaut-comic-popup, .comic-cover-dialog)::backdrop {
  background: color-mix(in srgb, var(--theme-page) 72%, transparent);
}
