
/* === site-join-v80_8_8.css === */
/* v80.8.8. Registration and guest invitation; scoped to avoid existing reader and Messenger styles. */
.rw88-register-shell{max-width:1120px;margin:28px auto 42px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:28px;align-items:start}
.rw88-register-shell .auth-card{width:100%;max-width:none;margin:0}
.rw88-register-intro{border:1px solid var(--border,#374052);border-radius:18px;background:var(--panel,#20252f);padding:30px}
.rw88-register-intro h2{font-size:clamp(1.5rem,2.3vw,2rem);margin:.2em 0 .65em}
.rw88-register-intro p{color:var(--muted,#b6bbc6);line-height:1.6}
.rw88-benefits{display:grid;gap:14px;margin:24px 0}
.rw88-benefits>div{display:flex;gap:13px;align-items:start}
.rw88-benefits strong{display:block;margin-bottom:3px}
.rw88-benefits span{color:var(--muted,#b6bbc6);font-size:.94rem;line-height:1.5}
.rw88-benefits b{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;flex:none;background:rgba(183,137,214,.17);color:#d2b6ef}
.rw88-author-note{padding:16px 18px;border-left:3px solid #b88dcd;background:rgba(165,129,185,.08);border-radius:8px;font-size:.95rem}
.rw88-register-shell .auth-card label{display:block;margin-bottom:17px}
.rw88-register-shell .auth-card label input{width:100%;box-sizing:border-box}
.rw88-register-shell .auth-card .rw88-policy{margin:16px 0 18px;color:var(--muted,#bbc0cb);font-size:.9rem;line-height:1.5;text-align:center}
.rw88-register-shell .auth-card .rw88-policy a{color:#d8b9ef}
.rw88-register-shell .auth-card .auth-links{justify-content:center;gap:15px}
.rw88-password-help{margin:-11px 0 17px;font-size:.82rem;color:var(--muted,#bac1cf)}
.rw88-join-dialog{border:1px solid #594869;border-radius:18px;background:#20242e;color:#f4f0f9;width:min(480px,calc(100vw - 28px));padding:0;box-shadow:0 15px 75px #000a}
.rw88-join-dialog::backdrop{background:rgba(5,7,12,.64)}
.rw88-join-body{position:relative;padding:30px}
.rw88-join-body h2{margin:5px 0 12px;font-size:1.7rem}
.rw88-join-body p{line-height:1.6;color:#cbc4d4}
.rw88-join-body .rw88-eyebrow{font-weight:700;color:#d5b7ef;text-transform:uppercase;letter-spacing:.1em;font-size:.75rem}
.rw88-join-close{position:absolute;right:13px;top:10px;border:none;background:none;color:#ddd;font-size:1.7rem;cursor:pointer}
.rw88-join-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0 8px}
.rw88-join-hint{font-size:.8rem}
@media(max-width:770px){.rw88-register-shell{grid-template-columns:1fr;gap:16px}.rw88-register-intro{padding:21px}.rw88-register-shell .auth-card{max-width:100%}}
.rw88-home-invite{border:1px solid #564761;border-radius:14px;background:linear-gradient(105deg,rgba(146,104,175,.16),rgba(32,38,48,.75));padding:20px 25px;margin:26px 0;display:flex;justify-content:space-between;align-items:center;gap:24px}
.rw88-home-invite strong{font-size:1.13rem}.rw88-home-invite p{color:var(--muted,#bbc0cd);line-height:1.5;margin:6px 0 0}.rw88-home-invite a{flex:none}
.rw88-privacy{line-height:1.65}.rw88-privacy h2{font-size:1.25rem;margin:24px 0 6px}.rw88-privacy p{color:var(--muted,#c1c4cc)}
@media(max-width:740px){.rw88-home-invite{align-items:stretch;flex-direction:column}}


/* === home-hero-mascot-v80_8_57.css === */
/* v80.8.57 — Homepage mascot, layered behind the EXISTING, dynamic Studio-selected linked covers.
   Not a flattening/replacement of the hero; no changes to book IDs, links or publishing data. */
.hero-art.rw8057-home-mascot {
  isolation:isolate;
  /* Room above the covers for her face; three original covers stay linked, in order. */
  min-height:460px;
  align-items:flex-end;
  padding-bottom:1rem;
}
.hero-art.rw8057-home-mascot::before {
  content:"";
  position:absolute;
  z-index:0;
  pointer-events:none;
  inset:-15% -6% 0;
  background: url("/assets/home-hero-mascot-v80_8_57.webp") center top / contain no-repeat;
}
/* Preserve existing covers and their positions; just ensure they paint above the mascot.
   Second cover keeps its central foreground position, including when the Studio picks new titles. */
/* The mature features.css uses display:contents on these anchors, so layering the
   anchors would NOT work. Layer the real cover images, without changing layout. */
.hero-art.rw8057-home-mascot > a > img { position:relative; z-index:1; }
.hero-art.rw8057-home-mascot > a:nth-of-type(2) > img { z-index:2; }
@media (max-width:700px) {
  .hero-art.rw8057-home-mascot { min-height:435px; padding-bottom:.4rem; }
  .hero-art.rw8057-home-mascot::before { inset:-9% 0 0; background-position:center top; }
}
@media (max-width:390px) {
  .hero-art.rw8057-home-mascot { min-height:360px; }
  .hero-art.rw8057-home-mascot::before { inset:-6% 0 0; }
}

@media (min-width:701px) and (max-width:1150px) {
  .hero-art.rw8057-home-mascot::before { left:0; right:0; }
}

/* v80.8.71: use a smaller illustration on phone-sized screens only;
   keep the untouched 1,130px image on tablets and desktops. */
@media (max-width:480px) {
  .hero-art.rw8057-home-mascot::before {
    background-image: url("/assets/home-hero-mascot-mobile-v80_8_71.webp");
    background-image: image-set(
      url("/assets/home-hero-mascot-mobile-v80_8_71.avif") type("image/avif"),
      url("/assets/home-hero-mascot-mobile-v80_8_71.webp") type("image/webp")
    );
  }
}


/* === latest-releases-v79_13.css === */
/* v79.13.2: release-card hover matches Bookshelf; existing tag spacing preserved */
.rw7913-releases{margin:1rem 0 3.4rem}.rw7913-heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.2rem;border-bottom:1px solid var(--border);padding-bottom:.9rem}.rw7913-heading h1,.rw7913-heading h2{margin:.3rem 0 0}.rw7913-heading .overline{border:0;padding:0}.rw7913-heading>a{color:var(--accent);font-weight:700;font-size:.9rem}.rw7913-heading p:not(.overline){color:var(--muted);margin:.7rem 0 0}.rw7913-release-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem}.rw7913-release-card{display:flex;align-items:start;gap:1rem;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:.9rem;min-width:0;transition:transform .15s,border-color .15s}.rw7913-release-card:hover{transform:translateY(-2px);border-color:var(--accent-deep);color:inherit}.rw7913-release-cover{width:82px;flex:0 0 82px}.rw7913-release-cover img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:7px;background:var(--raised)}.rw7913-release-info{min-width:0;flex:1}.rw7913-release-card h3{font-size:1rem;margin:0 0 .25rem;line-height:1.3;overflow-wrap:anywhere}.rw7913-release-chapter{font-size:.91rem;line-height:1.45;margin:.15rem 0;color:var(--accent);overflow-wrap:anywhere}.rw7913-release-volume{font-size:.8rem;color:var(--muted);margin:0}.rw7913-release-author{font-size:.82rem;margin:.25rem 0 .5rem;color:var(--muted)}.rw7913-release-genres{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.4rem}.rw7913-release-genres .tag{font-size:.68rem}.rw7913-release-card time{display:block;font-size:.77rem;color:var(--muted);margin-top:.6rem}.rw7913-empty{padding:1rem;background:var(--surface);border-radius:9px;color:var(--muted)}.rw7913-pagination{display:flex;align-items:center;justify-content:center;gap:1.2rem;margin:2rem 0;flex-wrap:wrap}.rw7913-pagination>span{color:var(--muted)}.rw7913-archive{margin-top:0}@media(max-width:760px){.rw7913-release-grid{grid-template-columns:1fr}.rw7913-release-cover{width:74px;flex-basis:74px}.rw7913-heading{align-items:start;flex-direction:column;gap:.5rem}}@media(max-width:390px){.rw7913-release-card{gap:.65rem;padding:.65rem}.rw7913-release-cover{width:64px;flex-basis:64px}}

/* v79.13.3: compact, accessible homepage section shortcuts; IDs on existing Bookshelf sections. */
.rw7913-shelf-jump{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;margin:0 0 1.2rem;padding:.65rem .9rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);font-size:.9rem}
.rw7913-shelf-jump-label{font-weight:700;color:var(--text)}
.rw7913-shelf-jump a{color:var(--accent);text-decoration:none;font-weight:600}
.rw7913-shelf-jump a:hover{text-decoration:underline}
.rw7913-shelf-jump a:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
.rw7913-shelf-jump-empty{color:var(--muted)}
.shelf[id^="shelf-"],#rw7914-forum-heading{scroll-margin-top:6rem}
@media(max-width:600px){.rw7913-shelf-jump{gap:.55rem .8rem;padding:.65rem .75rem;font-size:.84rem}}

/* v79.14: recently active guest-public forum threads; scoped to homepage discovery. */
.rw7914-forum-section{margin:0 0 3.5rem}
.rw7914-forum-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.rw7914-forum-card{display:flex;flex-direction:column;justify-content:space-between;gap:.7rem;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:1rem;transition:transform .15s,border-color .15s}
.rw7914-forum-card:hover{transform:translateY(-2px);border-color:var(--accent-deep)}
.rw7914-forum-card h3{font-size:1rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.rw7914-forum-card h3 a{color:var(--text);text-decoration:none}
.rw7914-forum-card h3 a:hover{text-decoration:underline;text-decoration-color:var(--accent)}
.rw7914-forum-board{color:var(--muted);font-size:.82rem;line-height:1.45;margin:.4rem 0 0}
.rw7914-forum-activity{display:flex;justify-content:space-between;align-items:baseline;gap:.35rem 1rem;flex-wrap:wrap;font-size:.78rem;color:var(--muted)}
.rw7914-forum-activity>a{font-weight:600;color:var(--accent)}
.rw7914-forum-activity span{overflow-wrap:anywhere}
.rw7914-forum-activity span a{color:var(--accent)}
.rw7914-forum-empty{padding:1rem;background:var(--surface);border-radius:9px;color:var(--muted)}
@media(max-width:760px){.rw7914-forum-grid{grid-template-columns:1fr}.rw7914-forum-section{margin-bottom:3rem}}
@media(prefers-reduced-motion:reduce){.rw7914-forum-card{transition:none}.rw7914-forum-card:hover{transform:none}}


/* === unified-library-v80_7.css === */
/* v80.7 — unify existing story cards, watches and edition links; respects site themes */
.rw807-format-badge,.rw807-written-badge{display:inline-flex;align-items:center;vertical-align:middle;font-size:.7rem;font-weight:700;letter-spacing:.015em;line-height:1.3;padding:.12rem .42rem;border:1px solid var(--border);border-radius:5px;color:var(--muted);white-space:nowrap}
.rw807-format-badge{color:var(--accent);background:var(--surface-alt,var(--surface))}
.genre-story-title{flex-wrap:wrap}
.rw807-graphic-card .genre-story-cover img{object-fit:cover}
.rw807-graphic-card .rw432-genre-rating{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}
.rw807-linked-edition{font-size:.85rem;color:var(--muted)}
.rw807-other-editions{margin:1rem 0;border:1px solid var(--border);border-radius:9px;padding:.8rem 1rem;max-width:100%}
.rw807-other-editions ul{margin:.4rem 0 0;padding-left:1.4rem}
.rw807-other-editions p{margin:.35rem 0 0}
.rw807-home-graphic .book-text>strong .rw807-format-badge{margin-left:.25rem}
.rw807-unified-watches .rw63-watched-book{display:flex;min-width:0;flex:1;gap:.75rem;align-items:center;flex-wrap:wrap}
.rw807-unified-watches .rw807-watch-link{display:flex;min-width:0;gap:.75rem;align-items:center;flex-wrap:wrap;text-decoration:none}
.rw807-unified-watches .rw807-watch-link strong{overflow-wrap:anywhere}
.rw807-unified-watches .rw63-watched-row{display:flex;align-items:center;gap:1rem;justify-content:space-between;flex-wrap:wrap}
.rw807-unified-watches .rw63-watched-row form{flex-shrink:0;margin:0}
.rw807-unified-watches .rw63-watched-book>img,.rw807-unified-watches .rw807-watch-link img{width:48px;height:68px;object-fit:cover;border-radius:5px}
@media(max-width:620px){.rw807-unified-watches .rw63-watched-row{align-items:flex-start}.rw807-unified-watches .rw807-watch-link{flex:1 1 200px}}

/* v80.8.45a: separate genre and story-tag rows, compact and consistent in advanced discovery. */
.rw807-taxonomy-rows{display:flex;flex-direction:column;gap:.45rem;margin:.7rem 0 .8rem;min-width:0}
.rw807-taxonomy-row{display:flex;align-items:flex-start;gap:.35rem .65rem;min-width:0;flex-wrap:wrap}
.rw807-taxonomy-label{color:var(--muted);font-size:.76rem;font-weight:600;min-width:4.3rem;padding-top:.12rem}
.rw807-taxonomy-items{display:flex;flex:1 1 160px;min-width:0;flex-wrap:wrap;gap:.25rem .3rem}
.rw807-taxonomy-items .tag{margin:0}
@media(max-width:540px){.rw807-taxonomy-row{gap:.3rem}.rw807-taxonomy-items{flex-basis:100%}}

/* v80.8.45a1: compact linked-edition icon beside status on result cards. */
.genre-story-title .rw807-linked-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;align-self:center;width:1.8rem;height:1.8rem;min-width:1.8rem;border:1px solid var(--border);border-radius:50%;color:var(--accent);background:var(--surface-alt,var(--surface));text-decoration:none;line-height:1}
.genre-story-title .rw807-linked-icon:hover,.genre-story-title .rw807-linked-icon:focus-visible{background:var(--surface-alt,var(--surface));border-color:var(--accent);outline-offset:2px}
.genre-story-title .rw807-linked-icon::after{content:attr(data-tooltip);visibility:hidden;opacity:0;position:absolute;z-index:50;right:0;bottom:calc(100% + .55rem);width:max-content;max-width:min(18rem,75vw);padding:.4rem .6rem;border:1px solid var(--border);border-radius:6px;background:var(--surface,#1b2029);color:var(--text,#eef0f4);font-size:.76rem;font-weight:500;line-height:1.35;white-space:normal;pointer-events:none;box-shadow:0 6px 20px #0005}
.genre-story-title .rw807-linked-icon:hover::after,.genre-story-title .rw807-linked-icon:focus-visible::after{visibility:visible;opacity:1}


/* === story-and-link-clarity-v80_8_70.css === */
/* v80.8.70 — Shared story-heading inline flow and recognizable content links.
   Progressive override of v80.8.69; preserve its reserved rating grid column. */
.genre-story-card .genre-story-title {
  display: block;
  min-width: 0;
  line-height: 1.5;
}
/* A book title is inline text rather than one independent flex item. The
   status and edition labels now follow the actual final line of that title. */
.genre-story-card .genre-story-title > h2,
.genre-story-card .genre-story-title > .rw868-rank + h2 {
  display: inline;
  max-width: none;
  min-width: 0;
  overflow-wrap: anywhere;
}
.genre-story-card .genre-story-title > .rw868-rank {
  display: inline-flex;
  vertical-align: baseline;
  align-self: auto;
  margin-right: .48rem;
}
.genre-story-card .genre-story-title > .genre-status,
.genre-story-card .genre-story-title > .rw807-format-badge,
.genre-story-card .genre-story-title > .rw807-written-badge,
.genre-story-card .genre-story-title > .rw807-linked-edition {
  vertical-align: baseline;
  margin-left: .48rem;
}
/* Make text links recognizable without affecting navigation, tabs, buttons,
   thumbnails, genre chips, rankings, or controls. Preserve reader link colors. */
:where(main, article, .chapter-prose, .legacy-text, .synopsis, .forum-post-body, .forum-post-content)
  :is(p, li, blockquote, dd, figcaption) a:not(.btn):not(.tag):not(.genre-tag):not([role="button"]),
:where(.chapter-prose, .legacy-text, .synopsis, .forum-post-body, .forum-post-content)
  a:not(.btn):not(.tag):not(.genre-tag):not([role="button"]) {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-thickness: .075em;
  text-underline-offset: .16em;
}
:where(main, article, .chapter-prose, .legacy-text, .synopsis, .forum-post-body, .forum-post-content)
  :is(p, li, blockquote, dd, figcaption) a:not(.btn):not(.tag):not(.genre-tag):not([role="button"]):hover,
:where(.chapter-prose, .legacy-text, .synopsis, .forum-post-body, .forum-post-content)
  a:not(.btn):not(.tag):not(.genre-tag):not([role="button"]):hover {
  text-decoration-thickness: .12em;
}

/* v80.8.72: the Latest Release author-credit links are not paragraph links.
   Mark them by shape as well as color, so the site's author attribution remains accessible. */
.rw7913-release-author a[href] {
  font-weight: 600;
  text-decoration-line: underline !important;
  text-decoration-style: solid;
  text-decoration-thickness: .075em;
  text-underline-offset: .15em;
}
.rw7913-release-author a[href]:hover,
.rw7913-release-author a[href]:focus-visible {
  text-decoration-thickness: .12em;
}


/* v80.8.73 — Keep the approved three linked covers as true portrait books.
   Previous mobile height caps squeezed/cropped them; align the mascot and
   covers as one responsive composition without affecting other book cards. */
.hero .hero-art.rw8057-home-mascot > a > img {
  height: auto;
  max-height: none;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
@media (max-width: 700px) {
  .hero .hero-art.rw8057-home-mascot {
    min-height: clamp(385px, 95vw, 665px);
    padding-bottom: .5rem;
  }
  .hero .hero-art.rw8057-home-mascot::before {
    inset: 0;
    background-position: center top;
    background-size: 100% auto;
  }
}
@media (min-width: 481px) and (max-width: 700px) {
  /* Three percentages must fit the available art width before rotations. */
  .hero .hero-art.rw8057-home-mascot > a > img { width: 30%; }
  .hero .hero-art.rw8057-home-mascot > a:nth-of-type(2) > img { width: 36%; }
}
@media (min-width: 701px) and (max-width: 950px) {
  .hero .hero-art.rw8057-home-mascot {
    min-height: 390px;
    padding-bottom: .7rem;
  }
  .hero .hero-art.rw8057-home-mascot::before {
    inset: -6% 0 0;
    background-position: center top;
  }
}


/* v80.8.73 — Author identity links retain the original quiet attribution.
   Focus rings and hover color still distinguish interactive names. Never
   force permanent underlines on author names site-wide. */
a[href^="/authors/"] {
  text-decoration: none !important;
}
.rw7913-release-author a[href^="/authors/"] {
  text-decoration: none !important;
  font-weight: inherit;
}


/* v80.8.74 — Mobile homepage introduction uses the available content width.
   The original global `.hero p:not(.eyebrow)` max-width of 440px unnecessarily
   narrows the welcome copy on wider phones. Scope to HOME + <=700px only;
   do not change the artwork, headline type, buttons, tablet or desktop layout. */
@media (max-width: 700px) {
  .hero > .hero-copy {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .hero > .hero-copy > p:not(.eyebrow) {
    width: 100%;
    max-width: none;
  }
}


/* v80.8.87 — Homepage Latest Chapter Releases only. Keep chapter links pink;
   reserve underlines for hover/keyboard focus. No book-title, author, tag,
   navigation, archive-page, or other content-link changes. */
.rw7913-releases:not(.rw7913-archive) .rw7913-release-card .rw7913-release-chapter > a[href] {
  text-decoration-line: none;
}
.rw7913-releases:not(.rw7913-archive) .rw7913-release-card .rw7913-release-chapter > a[href]:hover,
.rw7913-releases:not(.rw7913-archive) .rw7913-release-card .rw7913-release-chapter > a[href]:focus-visible {
  text-decoration-line: underline;
  text-underline-offset: .16em;
}
