.proto-underwater.article-water-scene {
  --proto-water-overlap: 0px;
  min-height: 0;
}
.book-reader-dialog {
  --book-paper: #f4f0e6;
  --book-paper-2: #e8e0cf;
  --book-ink: #10282e;
  width: 100%;
  max-width: none;
  padding: 2.5rem 0;
  border: 0;
  background: var(--color-ink);
  color: var(--color-foam);
}
.book-reader-dialog:modal {
  width: min(100%, 73rem);
  max-height: 100dvh;
  margin: auto;
  padding: 1rem 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: transparent;
}
.book-reader-dialog:modal::backdrop { background: rgba(3, 15, 18, .74); }
html:has(.book-reader-dialog:modal) { overflow: hidden; }
.book-reader-dialog:modal > .wadah { padding-inline: clamp(1rem, 4vw, 2rem); }
.book-reader-dialog:modal .book-reader-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.article-water-scene > .article-water-surface {
  position: sticky;
  top: 0;
  min-height: 0;
  height: 100lvh;
  margin-bottom: -100lvh;
  mask-image: linear-gradient(#000 0% 66%, transparent 100%);
  pointer-events: none;
}
.article-water-surface > .hero-kolam,
.article-water-surface > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-water-surface > canvas {
  opacity: 0;
  transition: opacity 1s ease;
}
.article-water-scene > .proto-underwater-content { z-index: 3; }
.article-library {
  position: relative;
  overflow: hidden;
}
.article-library__head { position: relative; z-index: 2; padding-top: 1.65rem; }
.article-library__breadcrumb { color: rgba(244,241,234,.64); }
.article-library__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: .9rem;
}
.article-library__eyebrow {
  color: var(--color-glow);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.article-library__heading h1 {
  margin-top: .35rem;
  font-family: var(--font-display, Anton, Impact, sans-serif);
  font-size: clamp(3.25rem, 9vw, 6.35rem);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
}
.article-library__heading p:not(.article-library__eyebrow) {
  max-width: 38rem;
  margin-top: .65rem;
  color: var(--color-mist);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.5;
}
.article-library__manage {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0 1.15rem;
  border: 1px solid rgba(244,241,234,.22);
  border-radius: 999px;
  background: rgba(244,241,234,.08);
  color: var(--color-foam);
  font-weight: 800;
  transition: transform .25s ease, background-color .25s ease;
}
.article-library__manage:hover { transform: translateY(-2px); background: rgba(244,241,234,.14); }
.article-library__search {
  display: flex;
  max-width: 34rem;
  margin-top: .85rem;
  padding: .25rem;
  border: 1px solid rgba(244,241,234,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
.article-library__search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: .65rem 1rem;
  color: var(--color-foam);
  outline: 0;
}
.article-library__search input::placeholder { color: var(--color-mist); }
.article-library__search button {
  min-width: 5.5rem;
  border-radius: 999px;
  background: var(--color-bait);
  color: var(--color-ink);
  font-weight: 850;
}
.article-library__filters {
  display: flex;
  gap: .55rem;
  margin: .75rem -1rem 0;
  padding: .2rem 1rem .5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.article-library__filters::-webkit-scrollbar { display: none; }
.article-library__filters button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid rgba(244,241,234,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--color-foam);
  font-size: .86rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.article-library__filters button span {
  display: inline-grid;
  min-width: 1.65rem;
  height: 1.65rem;
  margin-left: .35rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  font-size: .72rem;
}
.article-library__filters button:hover { transform: translateY(-2px); border-color: var(--color-glow); }
.article-library__filters button.is-active {
  border-color: var(--color-bait);
  background: var(--color-bait);
  color: var(--color-ink);
  box-shadow: 0 12px 28px -18px rgba(245,183,0,.9);
}
.article-library__shelf {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  align-items: end;
  gap: 1rem .35rem;
  min-height: 21rem;
  padding-top: .85rem;
  padding-bottom: 2.75rem;
}
.article-library__shelf::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2.65rem;
  left: 0;
  height: .8rem;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(69,212,230,.24), transparent);
  filter: blur(5px);
}
.article-library__empty { grid-column: 1 / -1; padding: 5rem 0; text-align: center; }
.article-library__empty h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.article-library__empty p { margin: .5rem 0 1.5rem; color: var(--color-mist); }
.article-library__pagination { position: relative; z-index: 2; padding-bottom: 2rem; }
.article-library__note {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
  color: var(--color-mist);
  font-size: .82rem;
}

.article-book {
  --book-w: clamp(8.7rem, 14vw, 11.3rem);
  --book-h: calc(var(--book-w) * 1.38);
  --book-base-x: 48deg;
  --book-base-y: -5deg;
  position: relative;
  display: grid;
  height: calc(var(--book-h) * .76 + 4.15rem);
  place-items: end center;
  border-radius: 1.2rem;
  outline: 0;
  perspective: 900px;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .45s ease, filter .45s ease;
}
.article-book[hidden] { display: none; }
.article-book.is-filtered { opacity: .13; filter: grayscale(.7); pointer-events: none; }
.article-book__motion {
  position: relative;
  z-index: 2;
  display: block;
  width: var(--book-w);
  height: var(--book-h);
  transform: translateY(0) rotate(var(--book-rotate));
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.article-book__volume {
  position: absolute;
  inset: 0;
  transform:
    rotateX(calc(var(--book-base-x) + var(--book-tilt-x, 0deg)))
    rotateY(calc(var(--book-base-y) + var(--book-tilt-y, 0deg)));
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}
.article-book:hover .article-book__motion,
.article-book:focus-visible .article-book__motion {
  transform: translateY(-.85rem) rotate(0deg) scale(1.025);
}
.article-book:focus-visible .article-book__cover { box-shadow: 0 0 0 3px var(--color-glow), 0 28px 55px rgba(0,0,0,.35); }
.article-book__cover,
.article-book__back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: .38rem .82rem .82rem .38rem;
  background: linear-gradient(145deg, var(--book-a), var(--book-b));
  transform: translateZ(12px);
  box-shadow: 0 18px 35px rgba(0,0,0,.34), inset 1px 0 rgba(255,255,255,.18), inset -3px 0 rgba(0,0,0,.2);
}
.article-book__back { transform: translateZ(-12px) rotateY(180deg); filter: brightness(.65); }
.article-book__pages {
  position: absolute;
  z-index: -1;
  background: repeating-linear-gradient(90deg, #f7f0df 0 2px, #d8cdb9 2px 3px);
}
.article-book__pages--side { top: 5px; right: -11px; bottom: 5px; width: 13px; transform: rotateY(90deg); transform-origin: left; }
.article-book__pages--bottom { right: 4px; bottom: -11px; left: 5px; height: 13px; transform: rotateX(-90deg); transform-origin: top; }
.article-book__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 24px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(90deg, #0008, var(--book-a), #fff2, var(--book-b));
  transform: rotateY(-90deg);
  transform-origin: right;
}
.article-book__spine b {
  position: absolute;
  top: .6rem;
  left: 50%;
  width: calc(var(--book-h) - 1.2rem);
  overflow: hidden;
  color: var(--book-accent);
  font-size: .52rem;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%) rotate(90deg) translateX(50%);
  transform-origin: bottom;
}
.article-book__frame { position: absolute; inset: .55rem; border: 1px solid color-mix(in srgb, var(--book-accent) 52%, transparent); border-radius: .35rem .65rem .65rem .35rem; }
.article-book__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  color: var(--book-accent);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-book__photo { position: absolute; inset: 2.1rem .65rem 45% .65rem; overflow: hidden; border-radius: .35rem; opacity: .8; mix-blend-mode: luminosity; }
.article-book__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, var(--book-a)); }
.article-book__photo img { width: 100%; height: 100%; object-fit: cover; }
.article-book__title {
  position: absolute;
  right: .95rem;
  bottom: 3.2rem;
  left: .95rem;
  color: var(--book-accent);
  font-family: var(--font-display, Anton, Impact, sans-serif);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: .97;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0,0,0,.18);
}
.article-book__title--long { font-size: clamp(.82rem, 1.5vw, 1.05rem); line-height: 1.04; }
.article-book__brand { position: absolute; right: .85rem; bottom: .72rem; width: 2rem; filter: drop-shadow(0 3px 8px rgba(0,0,0,.3)); }
.article-book__shine { position: absolute; inset: -30% 35% -30% -60%; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.2), transparent 65%); transform: translateX(-110%); transition: transform .8s ease; }
.article-book:hover .article-book__shine { transform: translateX(250%); }
.article-book--bright .article-book__category,
.article-book--bright .article-book__title { color: var(--book-accent); }
.article-book__shadow {
  position: absolute;
  z-index: 0;
  bottom: 2.7rem;
  width: calc(var(--book-w) * .94);
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  filter: blur(8px);
  transition: transform .5s ease, opacity .5s ease;
}
.article-book:hover .article-book__shadow { opacity: .72; transform: scale(1.3); }
.article-book__meta { position: absolute; bottom: .65rem; color: var(--color-mist); font-size: .72rem; font-weight: 750; }
.article-book__water {
  position: absolute;
  z-index: 0;
  top: 48%;
  left: 50%;
  width: calc(var(--book-w) * 1.25);
  aspect-ratio: 1.6;
  translate: -50% -50%;
  pointer-events: none;
}
.article-book__water i {
  position: absolute;
  inset: 0;
  border: 1.5px solid #a0ebf552;
  border-radius: 50%;
  opacity: 0;
  animation: book-ripple 4.6s var(--ease-air) infinite;
  animation-delay: calc(var(--book-index, 0) * -.7s);
}
.article-book__water i + i { animation-delay: calc(var(--book-index, 0) * -.7s - 2.3s); }
@keyframes book-ripple {
  from { opacity: 0; transform: scale(.62); }
  15% { opacity: .85; }
  to { opacity: 0; transform: scale(1.35); }
}

.article-library--compact .article-library__head { padding-top: 1.2rem; }
.article-library--compact .article-library__heading h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.article-library--compact .article-library__shelf { min-height: 15.5rem; padding-top: .5rem; padding-bottom: 1.8rem; }
.article-library--compact .article-book { --book-w: clamp(6rem, 9vw, 7.6rem); height: calc(var(--book-h) * .76 + 3.1rem); }
.article-library--compact .article-book__title { font-size: .78rem; bottom: 2.5rem; }
.article-library--compact .article-book__title--long { font-size: .65rem; }
.article-library--compact .article-book__meta { bottom: .2rem; font-size: .64rem; }

.book-reader-heading { position: relative; z-index: 2; max-width: 62rem; margin: 0 auto 1.8rem; text-align: center; }
.book-reader-heading h2 { margin: .4rem 0 .7rem; font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.08; }
.book-reader-heading > p:last-child { color: var(--color-mist); }
.book-reader { position: relative; z-index: 2; }
.book-reader:not(.is-ready) { display: none; }
.book-reader__stage { position: relative; max-width: 65.5rem; margin: auto; perspective: 1600px; }
.book-reader-dialog:modal .book-reader { --spread-width: clamp(34rem, calc((100dvh - 8rem) * 1.68), 65.5rem); }
.book-reader-dialog:modal .book-reader__stage,
.book-reader-dialog:modal .book-reader__controls { max-width: var(--spread-width); }
.book-reader__book {
  position: relative;
  aspect-ratio: 1.68 / 1;
  transform: rotateX(2deg) translateY(0);
  transform-style: preserve-3d;
  animation: reader-rise .9s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes reader-rise { from { opacity: 0; transform: rotateX(12deg) translateY(2.5rem) scale(.96); } }
.book-reader__boards {
  position: absolute;
  inset: -.7rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, #08252b, #07191d);
  box-shadow: 0 35px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(69,212,230,.2), inset 0 0 0 2px rgba(255,255,255,.04);
  transform: translateZ(-12px);
}
.book-reader__spread { position: absolute; inset: 0; display: flex; border-radius: .65rem; transform-style: preserve-3d; }
.book-page {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  padding: clamp(1.1rem, 2.35vw, 2.15rem);
  background:
    linear-gradient(90deg, rgba(103,79,43,.08) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 5%, rgba(255,255,255,.8), transparent 36%),
    var(--book-paper);
  background-size: 7px 100%, auto, auto;
  color: var(--book-ink);
  box-shadow: inset 0 0 26px rgba(96,72,35,.14);
}
.book-page--left { left: 0; border-radius: .65rem .15rem .15rem .65rem; background-position: right top; }
.book-page--right { right: 0; border-radius: .15rem .65rem .65rem .15rem; }
.book-page::after { content: attr(data-page-number); position: absolute; right: 1.5rem; bottom: .9rem; color: rgba(16,40,46,.45); font-size: .7rem; font-weight: 800; }
.book-page--left::after { right: auto; left: 1.5rem; }
.book-page__eyebrow { color: #1f6f78; font-size: .68rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.book-page h3 { margin: .45rem 0 .7rem; font-family: var(--font-display, Anton, Impact, sans-serif); font-size: clamp(1.35rem, 2.45vw, 2.15rem); font-weight: 400; line-height: .96; text-transform: uppercase; }
.book-page__byline { margin-top: 1.4rem; color: rgba(16,40,46,.6); font-size: .78rem; font-weight: 750; }
.book-page__content {
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: clamp(.72rem, 1.1vw, .94rem);
  line-height: 1.52;
}
.book-page__content :is(h1, h2, h3) {
  margin: .45rem 0 .7rem;
  font-family: var(--font-display, Anton, Impact, sans-serif);
  font-size: clamp(1.3rem, 2.35vw, 2.1rem);
  font-weight: 400;
  line-height: 1.03;
  text-transform: uppercase;
}
.book-page__content p { margin: 0 0 .75rem; }
.book-page__content ul,.book-page__content ol { margin: 0 0 .8rem; padding-left: 1.2rem; }
.book-page__content li { margin-bottom: .25rem; }
.book-page__content img { display: block; width: 100%; max-height: 45%; margin: 0 auto .8rem; border-radius: .55rem; object-fit: cover; }
.book-page__content blockquote { margin: .75rem 0; padding: .8rem 1rem; border-left: 3px solid #1f6f78; background: rgba(31,111,120,.08); }
.book-page__content table { width: 100%; border-collapse: collapse; font-size: .72em; }
.book-page__content th,.book-page__content td { padding: .3rem; border: 1px solid rgba(16,40,46,.2); }
.book-page__content a { color: #176b76; text-decoration: underline; }
.book-page__content--illustration {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.book-page__content--illustration .book-page__eyebrow { margin-bottom: .25rem; }
.book-page__art-hint { color: #655d4f; font-size: .78rem; font-weight: 700; }
.book-illustration {
  display: grid;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 1.75rem .75rem .5rem;
  place-items: end center;
  border: 0;
  border-radius: .5rem;
  background: transparent;
  color: #15292d;
  cursor: grab;
  touch-action: none;
}
.book-illustration:focus-visible { outline: 2px solid #1f6f78; outline-offset: -2px; }
.book-illustration.is-dragging { cursor: grabbing; }
.book-illustration__art {
  display: grid;
  width: min(100%, 26rem);
  max-height: 100%;
  place-items: end center;
  transform: translate(var(--art-x, 0px), var(--art-y, 0px)) rotate(var(--art-tilt, 0deg));
  transition: transform .48s cubic-bezier(.18,.7,.28,1.28);
  transform-origin: center bottom;
  pointer-events: none;
}
.book-illustration.is-dragging .book-illustration__art { transition: none; }
.book-illustration__art svg { display: block; width: 100%; max-height: 46dvh; overflow: visible; }
.book-illustration__art svg [data-book-art-subject] { transform-box: fill-box; transform-origin: center bottom; }
.book-illustration__art--photo {
  width: min(88%, 22rem);
  padding: .5rem .5rem 1.1rem;
  border: 1px solid #ded9cc;
  background: #fffdf3;
  box-shadow: .35rem .65rem 1rem #68584335;
  rotate: 3deg;
}
.book-illustration__art--photo img {
  width: 100%;
  max-height: 39dvh;
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}
.art-water { fill: #7cc3cc; }
.art-water-shadow { fill: #3f8d99; }
.art-ink { fill: currentColor; }
.art-paper { fill: #fdfbf6; stroke: currentColor; stroke-width: 2.3; }
.art-orange { fill: #ef9d36; stroke: currentColor; stroke-width: 2; }
.art-line,.art-glint { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.art-glint { stroke: #def4f3; opacity: .67; }
.art-grip { stroke: #b98743; stroke-width: 11; }
.art-thread { stroke: #2a8c96; }
.book-reader__gutter { position: absolute; z-index: 8; top: 0; bottom: 0; left: 50%; width: 2.2rem; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(35,24,12,.18), rgba(255,255,255,.24), rgba(35,24,12,.18), transparent); pointer-events: none; }
.book-turner {
  position: absolute;
  z-index: 12;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform: rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  visibility: hidden;
}
.book-turner__front,.book-turner__back { position: absolute; inset: 0; overflow: hidden; padding: clamp(1.1rem, 2.35vw, 2.15rem); border-radius: .15rem .65rem .65rem .15rem; background: var(--book-paper); color: var(--book-ink); backface-visibility: hidden; box-shadow: inset 0 0 28px rgba(96,72,35,.15); }
.book-turner__back { transform: rotateY(180deg); border-radius: .65rem .15rem .15rem .65rem; background: var(--book-paper-2); }
.book-reader.is-turning-next .book-turner { visibility: visible; animation: turn-next .66s cubic-bezier(.55,.05,.2,1) both; }
.book-reader.is-turning-prev .book-turner { right: 50%; visibility: visible; transform-origin: right center; animation: turn-prev .66s cubic-bezier(.55,.05,.2,1) both; }
@keyframes turn-next { 0% { transform: rotateY(0); } 50% { box-shadow: 18px 0 36px rgba(0,0,0,.2); } 100% { transform: rotateY(-180deg); } }
@keyframes turn-prev { 0% { transform: rotateY(0); } 50% { box-shadow: -18px 0 36px rgba(0,0,0,.2); } 100% { transform: rotateY(180deg); } }
.book-reader__controls { display: grid; grid-template-columns: auto 3rem minmax(12rem,1fr) 3rem auto; align-items: center; gap: .65rem; max-width: 65.5rem; margin: 1rem auto 0; }
.book-reader__controls button,.book-reader__toc > summary { min-height: 2.65rem; border: 1px solid rgba(244,241,234,.18); border-radius: 999px; background: rgba(255,255,255,.06); color: var(--color-foam); font-weight: 800; transition: background-color .2s ease, transform .2s ease; }
.book-reader__controls button:hover:not(:disabled),.book-reader__toc > summary:hover { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.book-reader__controls button:disabled { cursor: not-allowed; opacity: .32; }
.book-reader__controls > button:not(.book-reader__close) { width: 3rem; font-size: 1.2rem; }
.book-reader__status { color: var(--color-mist); text-align: center; font-size: .8rem; font-weight: 750; }
.book-reader__controls .book-reader__close {
  width: 2.75rem;
  background: var(--color-bait);
  color: var(--color-ink);
  font-size: 1.4rem;
}
.book-reader__controls .book-reader__close:hover { background: var(--color-foam); }
.book-reader__toc { position: relative; }
.book-reader__toc > summary { display: grid; min-width: 7rem; place-items: center; padding: 0 1rem; cursor: pointer; list-style: none; }
.book-reader__toc > summary::-webkit-details-marker { display: none; }
.book-reader__toc ol { position: absolute; z-index: 40; bottom: calc(100% + .7rem); left: 0; width: min(22rem, 80vw); max-height: 20rem; overflow-y: auto; padding: .6rem; border: 1px solid rgba(244,241,234,.14); border-radius: 1rem; background: #071518; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.book-reader__toc button { width: 100%; min-height: auto; padding: .65rem .75rem; border: 0; border-radius: .6rem; background: transparent; text-align: left; }
.book-reader__hint { margin-top: .75rem; color: rgba(244,241,234,.5); text-align: center; font-size: .75rem; }
.book-text-version { position: relative; z-index: 2; max-width: 60rem; margin: 1.5rem auto 0; border: 1px solid rgba(244,241,234,.12); border-radius: 1.1rem; background: rgba(255,255,255,.04); }
.book-reader-dialog:modal .book-text-version { margin-top: .7rem; }
.book-reader-dialog:modal .book-text-version > summary { padding: .45rem .75rem; font-size: .8rem; }
.book-text-version > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; font-weight: 850; }
.book-text-version > summary small { color: var(--color-mist); font-weight: 650; }
.book-text-version .proto-prose { max-width: none; padding: 1.4rem; border-radius: 0 0 1.1rem 1.1rem; background: var(--book-paper); }
.book-text-version__cover { width: 100%; max-height: 30rem; margin-bottom: 1.4rem; border-radius: .8rem; object-fit: cover; }
.article-related { padding: 4.5rem 0 6rem; background: var(--color-foam); }
.article-related__books { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; gap: 1rem; margin-top: 1.5rem; }
.article-related .article-book { --book-w: clamp(9rem, 15vw, 11rem); }

@media (max-width: 900px) {
  .article-library__shelf { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .article-related__books { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .book-reader__controls { grid-template-columns: 1fr 3rem 3rem 1fr; }
  .book-reader__status { grid-column: 1 / -1; grid-row: 2; }
  .book-reader__close { justify-self: end; }
}
@media (max-width: 720px) {
  .article-library__heading h1 { font-size: clamp(3.2rem, 18vw, 5.2rem); }
  .article-library__search { max-width: none; }
  .article-library__shelf { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
  .article-book { --book-w: clamp(8rem, 38vw, 10rem); --book-base-x: 0deg; --book-base-y: -5deg; height: calc(var(--book-h) + 3.6rem); }
  .article-library--compact .article-library__shelf { grid-template-columns: repeat(3, minmax(0,1fr)); max-height: 19rem; }
  .article-library--compact .article-book { --book-w: clamp(5.4rem, 24vw, 6.8rem); height: calc(var(--book-h) + 2.7rem); }
  .book-reader-dialog:modal .book-reader { --spread-width: clamp(15rem, calc((100dvh - 10rem) * .76), 28rem); }
  .book-reader__book { aspect-ratio: .76 / 1; }
  .book-page { width: 100%; padding: 1.3rem 1.25rem 2.1rem; }
  .book-page--left { display: none; }
  .book-page--right { right: 0; left: 0; border-radius: .55rem; }
  .book-reader__gutter { left: .45rem; width: 1rem; transform: none; }
  .book-turner { right: 0; width: 100%; transform-origin: left center; }
  .book-reader.is-turning-prev .book-turner { right: 0; transform-origin: right center; }
  .book-page__content { font-size: clamp(.82rem, 3.6vw, 1rem); }
  .book-reader__controls { grid-template-columns: 1fr 3rem 3rem 1fr; }
  .book-reader__toc > summary { min-width: 0; padding: 0 .8rem; font-size: .76rem; }
  .article-related__books { grid-template-columns: 1fr; }
  .article-related .article-book { --book-w: 10.2rem; }
}
@media (max-width: 420px) {
  .article-library__head { padding-top: 1.2rem; }
  .article-library__shelf { margin-inline: -.25rem; }
  .article-book { --book-w: clamp(7.25rem, 39vw, 8.8rem); }
  .article-book__title { font-size: .88rem; }
  .article-book__title--long { font-size: .69rem; }
  .article-library--compact .article-library__shelf { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .article-book *, .book-reader__book, .book-turner, .book-illustration__art { animation: none !important; transition-duration: .01ms !important; }
  .article-book:hover .article-book__motion { transform: translateY(-.45rem) rotate(0deg); }
}
