/* "Truyện tranh song ngữ": the list (#comics) and the reader (#comics/<id>), comics.js.
   The app's style (Mali, cards, Mầm, teal) with comic ink: near-black outlines and hard offset
   shadows on warm paper. The book is a size container: phones read panel over lines, a wide book
   opens as a spread (panel left, lines right). The page curl draws with comics-curl.js. */

/* ---------- tokens (light only, like the rest of the web app) ---------- */
.comics-root {
  --comic-ink: #231c14;
  --comic-paper: #fffaf1;
  --comic-surface: #ffffff;
  --comic-text: #231c14;
  --comic-muted: #6e6253;
  --comic-caption: #ffedc4;
  --comic-caption-ink: #4a2a00;
  --comic-bubble: #ffffff;
  --comic-thought: #f3f7ff;
  --comic-shadow: #231c14;
  --comic-chip: #fff0d6;
  --comic-chip-ink: #6b3d00;
  --comic-line: #eadfcd;
  --comic-line-strong: #d4c6af;
  --comic-skeleton: #ede4d4;
  --comic-highlight: #e07a0059;
  --comic-brand: #00796b;
  --comic-accent: #e07a00;
  --comic-done: #00796b;
  --comic-book-shadow: 0 1px 2px #231c1412, 0 14px 40px #4a2a0024;
  /* The shared empty state (audio.css .story-empty) reads these. */
  --sn-ink: var(--comic-text);
  --sn-muted: var(--comic-muted);
  font-family: var(--font-app);
  color: var(--comic-text);
}
.comics-root .button.secondary {
  background: var(--comic-surface);
  color: var(--comic-text);
  border-color: var(--comic-line-strong);
}
.comics-root .button.secondary:hover {
  background: var(--comic-chip);
}
.comics-root button:disabled {
  cursor: default;
}

/* ---------- chips ---------- */
.comic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.comic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--comic-chip);
  color: var(--comic-chip-ink);
  font: 600 12px/16px var(--font-app);
  white-space: nowrap;
}
.comic-chip.is-level {
  background: var(--comic-ink);
  color: var(--comic-paper);
  font-family: var(--font-app-bold);
  font-weight: 700;
}

/* ---------- the list ---------- */
.comics-list {
  gap: 22px;
}
.comics-list-head {
  display: grid;
  gap: 14px;
}
.comics-intro {
  max-width: 640px;
  color: var(--comic-muted);
  font-size: 15px;
  line-height: 22px;
}
.comics-continue-slot:empty {
  display: none;
}
.comics-continue {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 2px solid var(--comic-ink);
  border-radius: 18px;
  background: var(--comic-surface);
  box-shadow: 4px 4px 0 var(--comic-shadow);
  color: var(--comic-text);
  transition: transform 0.18s, box-shadow 0.18s;
}
.comics-continue:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--comic-shadow);
}
.comics-continue-cover {
  width: 52px;
  aspect-ratio: 2 / 3;
  flex: none;
  overflow: hidden;
  border-radius: 8px;
  border: 1.5px solid var(--comic-ink);
}
.comics-continue-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comics-continue-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.comics-continue-eyebrow {
  font: 700 12px/16px var(--font-app-bold);
  color: var(--comic-accent);
}
.comics-continue-text strong {
  font: 700 16px/21px var(--font-app-bold);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.comics-continue-meta {
  font-size: 12px;
  line-height: 16px;
  color: var(--comic-muted);
}
.comics-continue .comics-track {
  margin-top: 4px;
}
.comics-continue-cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 2px;
  min-height: 38px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  background: var(--comic-accent);
  color: #fff;
  font: 700 13px/18px var(--font-app-bold);
}
.comics-continue-cta svg {
  width: 20px;
  height: 20px;
}
.comics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}
.comic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  color: var(--comic-text);
}
.comic-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 2px solid var(--comic-ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--comic-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
a.comic-card:hover .comic-card-cover,
a.comic-card:focus-visible .comic-card-cover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--comic-shadow);
}
.comic-card:focus-visible {
  outline: none;
}
a.comic-card:focus-visible .comic-card-cover {
  outline: 3px solid #bb7815;
  outline-offset: 3px;
}
.comic-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comic-card-level {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 9px;
  border: 1.5px solid var(--comic-ink);
  border-radius: 999px;
  background: var(--comic-paper);
  color: var(--comic-text);
  font: 700 12px/16px var(--font-app-bold);
}
.comic-card-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 7px;
  overflow: hidden;
  border: 1.5px solid var(--comic-ink);
  border-radius: 99px;
  background: var(--comic-paper);
}
.comic-card-progress > span {
  display: block;
  height: 100%;
  background: var(--comic-accent);
}
.comic-card-done {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  background: var(--comic-done);
  color: #fff;
  font: 700 12px/16px var(--font-app-bold);
  box-shadow: 0 2px 6px #0003;
}
.comic-card-done svg {
  width: 15px;
  height: 15px;
}
.comic-card-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.comic-card-title {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 700 16px/21px var(--font-app-bold);
  color: var(--comic-text);
  overflow-wrap: anywhere;
}
.comic-card-vi {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 13px/18px var(--font-app);
  color: var(--comic-muted);
}
.comic-card-meta {
  font-size: 12px;
  line-height: 17px;
  color: var(--comic-muted);
}
.comic-card.is-skeleton .comic-card-cover {
  border-color: transparent;
  background: var(--comic-skeleton);
  box-shadow: none;
}
.sk-line {
  display: block;
  height: 13px;
  margin: 3px 0;
  border-radius: 7px;
  background: var(--comic-skeleton);
}
.sk-line.short {
  width: 58%;
}
.comics-status:empty {
  display: none;
}
.comics-status {
  font-size: 13px;
  line-height: 18px;
  color: var(--comic-muted);
}
.comics-error,
.comics-empty {
  margin: 8px auto;
}
.comics-problem {
  display: grid;
  min-height: 50vh;
  place-items: center;
}
@media (min-width: 600px) {
  .comics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }
}
@media (min-width: 900px) {
  .comics-list-head:has(.comics-continue) {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    align-items: center;
    gap: 24px;
  }
}
@media (min-width: 1024px) {
  .comics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 22px;
  }
}
@media (min-width: 1280px) {
  .comics-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ---------- the reader: frame ----------
   The book takes the screen: under the app's top bar, above one slim controls bar (page turns,
   the translation switch, the page indicator, focus mode). No row above the book. */
.comics-reader {
  --comics-bar: 50px;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--header-h, 64px) - 4px);
  min-height: 420px;
}
@media (min-width: 768px) {
  main:has(> .comics-reader) {
    max-width: none;
    padding: 4px 20px 0;
    min-height: 0;
  }
  .app-shell:has(.comics-reader) .app-footer {
    display: none;
  }
}
@media (min-width: 768px) and (max-height: 640px) {
  .comics-reader {
    --comics-bar: 44px;
  }
}
/* Phones give the reader the whole screen under the app bar; its bar replaces the tab bar. */
@media (max-width: 767px) {
  .app-shell:has(.comics-reader) .sidebar {
    display: none;
  }
  .app-shell:has(.comics-reader) .workspace {
    padding-bottom: 0;
  }
  main:has(> .comics-reader) {
    padding: 0;
    min-height: 0;
  }
  .comics-reader {
    --comics-bar: 60px;
    height: calc(100dvh - var(--header-h, 64px));
    min-height: 440px;
  }
}
/* Focus mode: the Fullscreen API's reader, or (without it) the app's chrome hidden by a class. */
.comics-reader:fullscreen {
  height: 100dvh;
  min-height: 0;
  padding: 10px 14px 0;
  background: var(--md-background);
}
.comics-focus .app-shell {
  grid-template-columns: minmax(0, 1fr);
}
.comics-focus .app-shell .sidebar,
.comics-focus .app-shell .topbar,
.comics-focus .app-shell .app-footer {
  display: none;
}
.comics-focus .app-shell .workspace {
  padding-bottom: 0;
}
.comics-focus main:has(> .comics-reader) {
  max-width: none;
  padding: 10px 14px 0;
}
.comics-focus .comics-reader {
  height: calc(100dvh - 10px);
}
.comics-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 8px 10px 0;
  container: comics-stage / size;
}
@media (min-width: 768px) {
  .comics-stage {
    padding: 0;
  }
}
.comics-book {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--comic-line);
  border-radius: 18px;
  background: var(--comic-paper);
  box-shadow: var(--comic-book-shadow);
  touch-action: pan-y pinch-zoom;
  container: comics-book / size;
  -webkit-tap-highlight-color: transparent;
}
@container comics-stage (min-width: 760px) {
  .comics-book {
    width: min(1600px, 100%);
    border-radius: 20px;
  }
}
.comics-book.is-dragging {
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}
.comics-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1600px;
  height: var(--comics-bar);
  margin: 0 auto;
  padding: 0 4px;
  flex: none;
}
@media (max-width: 767px) {
  .comics-controls {
    height: calc(var(--comics-bar) + env(safe-area-inset-bottom));
    padding: 0 12px env(safe-area-inset-bottom);
  }
}
.comics-nav,
.comics-tool {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--comic-surface);
  color: var(--comic-text);
}
/* Ink buttons (the page turns, "Đọc tự động"): a near-black outline and a hard offset shadow that
   lifts on hover and presses in on a click. */
.comics-nav,
.comics-read {
  border: 2px solid var(--comic-ink);
  box-shadow: 2px 2px 0 var(--comic-shadow);
  transition: transform 0.12s, box-shadow 0.12s, background 0.18s;
}
.comics-nav:not(:disabled):hover,
.comics-read:not(:disabled):hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--comic-shadow);
}
.comics-nav:not(:disabled):active,
.comics-read:not(:disabled):active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--comic-shadow);
}
.comics-nav:disabled {
  opacity: 0.32;
  box-shadow: none;
}
.comics-nav svg {
  width: 26px;
  height: 26px;
}
/* Light controls (focus mode, the speed chip, the pages' "Bản dịch"): a soft outline; the last
   two are pills on white. */
.comics-tool,
.comics-speed,
.comics-vi-toggle {
  border: 1.5px solid var(--comic-line-strong);
}
.comics-speed,
.comics-vi-toggle {
  flex: none;
  min-height: 40px;
  border-radius: 999px;
  background: var(--comic-surface);
}
.comics-tool {
  color: var(--comic-brand);
}
.comics-tool[aria-pressed="true"] {
  border-color: var(--comic-brand);
  background: var(--comic-brand);
  color: #fff;
}
.comics-tool svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 767px) {
  .comics-tool {
    display: none;
  }
}
/* "Đọc tự động" (⇄ "Dừng đọc") and the speed chip (comics.js auto-read). Off on the end page and
   while loading: hidden in place, so the indicator never moves. */
.comics-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 6px;
  height: 44px;
  min-width: 44px;
  padding: 0 16px 0 11px;
  border-radius: 999px;
  background: var(--comic-brand);
  color: #fff;
  font: 700 14px/18px var(--font-app-bold);
  white-space: nowrap;
}
.comics-read svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.comics-read[aria-pressed="true"] {
  background: var(--comic-chip);
  color: var(--comic-chip-ink);
}
.comics-read[aria-pressed="true"] svg {
  color: var(--comic-accent);
}
.comics-speed {
  min-width: 58px;
  padding: 0 10px;
  color: var(--comic-brand);
  font: 700 14px/18px var(--font-app-bold);
  font-variant-numeric: tabular-nums;
}
.comics-speed:not(:disabled):hover {
  background: var(--comic-chip);
}
.comics-read.is-off,
.comics-speed.is-off {
  visibility: hidden;
}
/* Short desktop windows: a slimmer bar. */
@media (min-width: 768px) and (max-height: 640px) {
  .comics-nav,
  .comics-tool {
    width: 38px;
  }
  .comics-nav,
  .comics-tool,
  .comics-read {
    height: 38px;
  }
  .comics-speed,
  .comics-vi-toggle {
    min-height: 34px;
  }
}
/* Phones: the play button is a round icon like its neighbours (its name stays in aria-label). */
@media (max-width: 767px) {
  .comics-read {
    width: 44px;
    padding: 0;
  }
  .comics-read-label {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .comics-read {
    transition: none;
  }
}
.comics-vi-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px 0 10px;
  color: var(--comic-text);
  font: 600 13px/18px var(--font-app);
}
.comics-vi-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--comic-brand);
}
.comics-switch {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 99px;
  background: var(--comic-line-strong);
  transition: background 0.18s;
}
.comics-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #0004;
  transition: transform 0.18s;
}
.comics-vi-toggle[aria-pressed="true"] .comics-switch {
  background: var(--comic-brand);
}
.comics-vi-toggle[aria-pressed="true"] .comics-switch::after {
  transform: translateX(12px);
}
.comics-indicator {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}
.comics-count {
  font: 700 15px/18px var(--font-app-bold);
  font-variant-numeric: tabular-nums;
  color: var(--comic-text);
}
.comics-track {
  display: block;
  width: min(100%, 320px);
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--comic-line);
}
.comics-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--comic-accent);
  transition: width 0.3s;
}

/* ---------- pages ---------- */
.comic-page {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--comic-paper);
  color: var(--comic-text);
  outline: none;
}
.comic-page.is-current,
.comic-page.is-under,
.comic-page.is-turning,
.comic-page.is-fading,
.comic-curl-clone {
  visibility: visible;
}
.comic-page.is-current,
.comic-page.is-under {
  z-index: 1;
}
.comic-page.is-turning,
.comic-page.is-fading {
  z-index: 3;
}
[data-scroll] {
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  scrollbar-width: thin;
  scrollbar-color: var(--comic-line-strong) transparent;
}
/* The curl (comics-curl.js): cast shadow on the page beneath, then the turning page, then the flap. */
.comic-curl-cast,
.comic-curl-flap,
.comic-curl-flap-clip,
.comic-curl-paper,
.comic-curl-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.comic-curl-cast {
  z-index: 2;
}
.comic-curl-flap {
  z-index: 4;
  filter: drop-shadow(0 0 1px #0000002e) drop-shadow(3px 4px 9px #00000038);
}
.comic-curl-clone {
  transform-origin: 0 0;
}
.comic-curl-paper {
  background: var(--comic-paper);
  opacity: 0.88;
}

/* cover: full-bleed art, the title on its calm upper third, the details on paper at the foot */
.comic-cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.comic-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.comic-cover-art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 44%;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--comic-paper) 94%, transparent) 0%, color-mix(in srgb, var(--comic-paper) 72%, transparent) 46%, transparent 100%);
}
.comic-cover-title {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 24px 22px 0;
  text-align: center;
}
.comic-cover-title h2 {
  font: 700 clamp(26px, 8.4cqw, 40px) / 1.12 var(--font-app-bold);
  color: var(--comic-ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.comic-cover-title p {
  font: 600 17px/1.3 var(--font-app);
  color: var(--comic-muted);
}
.comic-cover-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-height: 62%;
  padding: 56px 18px 16px;
  background: linear-gradient(to top, var(--comic-paper) 0%, var(--comic-paper) calc(100% - 64px), color-mix(in srgb, var(--comic-paper) 0%, transparent) 100%);
}
.comic-summary-en {
  font: 600 15.5px/1.42 var(--font-app);
  color: var(--comic-text);
}
.comic-summary-vi {
  font: italic 400 14px/1.42 var(--font-app);
  color: var(--comic-muted);
}
.comic-cover-loading {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  padding: 9px 14px 9px 16px;
  border-radius: 999px;
  background: var(--comic-ink);
  color: var(--comic-paper);
  font: 600 13px/18px var(--font-app);
  box-shadow: 0 6px 18px #0003;
}
.comic-cover-loading .story-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
}
.comics-reader.is-loading .comic-turn-hint,
.comics-reader:not(.is-loading) .comic-cover-loading {
  display: none;
}

/* The cover's turn hint, at the page's right edge: a corner that lifts, a hand that swipes. */
.comic-turn-hint {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 210px;
  height: 120px;
  /* Decoration only: swipes and taps on it go to the page (the curl's own right-edge turn). */
  pointer-events: none;
}
.comic-peel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 104px;
  height: 104px;
  overflow: visible;
  transform: scale(0.86);
  transform-origin: 100% 100%;
}
.comic-peel-flap {
  filter: drop-shadow(-2px -2px 3px #231c1440);
}
.comic-turn-hand {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 34px;
  height: 34px;
  color: var(--comic-ink);
  filter: drop-shadow(0 1px 1px #fffaf1);
}
.comic-turn-label {
  position: absolute;
  right: 112px;
  bottom: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--comic-paper) 90%, transparent);
  color: var(--comic-text);
  font: 600 12.5px/16px var(--font-app);
  white-space: nowrap;
  box-shadow: 0 2px 8px #231c141f;
}
.comic-cover:hover .comic-peel {
  transform: scale(1.1);
}

@container comics-book (max-width: 759px) {
  .comic-cover-info {
    padding-bottom: 92px;
  }
}

/* The translation switch at the end of a story page's level/title line. */
.comic-eyebrow .comics-vi-toggle {
  margin-left: auto;
  min-height: 34px;
}

/* story page: panel over lines (phones) */
.comic-story {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 0;
}
.comic-panel {
  position: relative;
  flex: none;
  align-self: center;
  height: min(calc((100cqw - 24px) * 1.25), 54cqh);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 2.5px solid var(--comic-ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--comic-shadow);
}
.comic-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comic-page-no {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 2px solid var(--comic-ink);
  border-radius: 999px;
  background: var(--comic-paper);
  color: var(--comic-text);
  font: 700 14px/1 var(--font-app-bold);
}
.comic-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
/* The comic's level and Vietnamese title, small, at the top of the text page. */
.comic-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 4px;
  font: 600 13px/18px var(--font-app);
  color: var(--comic-muted);
}
.comic-eyebrow .comic-chip {
  min-height: 22px;
  padding: 0 8px;
}
.comic-eyebrow > span[lang] {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.comic-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 12px 6px 18px 4px;
}

/* lines: caption box, speech bubble, thought bubble */
.comic-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex: none;
  gap: 6px;
  max-width: 92%;
  padding: 10px 8px 10px 14px;
  border: 2.5px solid var(--comic-ink);
  background: var(--comic-bubble);
  color: var(--comic-text);
  transition: box-shadow 0.18s;
}
.comic-line-text {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
  outline-offset: 2px;
}
.comic-en {
  font: 600 16.5px/1.4 var(--font-app);
  overflow-wrap: anywhere;
}
/* Each English word opens in the dictionary. */
.comic-w {
  border-radius: 4px;
  cursor: pointer;
}
@media (hover: hover) {
  .comic-w:hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
    text-decoration: underline dotted;
    text-underline-offset: 3px;
  }
}
.comic-vi {
  font: italic 400 14px/1.4 var(--font-app);
  color: var(--comic-muted);
  overflow-wrap: anywhere;
}
.comic-line.is-narration {
  align-self: stretch;
  max-width: none;
  border-radius: 6px;
  background: var(--comic-caption);
  color: var(--comic-caption-ink);
  box-shadow: 3px 3px 0 var(--comic-shadow);
}
.comic-line.is-narration .comic-vi {
  color: color-mix(in srgb, var(--comic-caption-ink) 72%, transparent);
}
.comic-line.is-speech {
  border-radius: 20px;
}
.comic-line.is-thought {
  border-style: dashed;
  border-radius: 26px;
  background: var(--comic-thought);
}
.comic-line.is-left {
  align-self: flex-start;
  margin-top: 8px;
}
.comic-line.is-right {
  align-self: flex-end;
  margin-top: 8px;
}
/* Tails point up toward the panel: a speech triangle, or two thought circles. */
.comic-line.is-speech::before,
.comic-line.is-speech::after {
  content: "";
  position: absolute;
  left: 22px;
  clip-path: polygon(0 100%, 34% 0, 100% 100%);
}
.comic-line.is-speech::before {
  top: -15px;
  width: 20px;
  height: 14px;
  background: var(--comic-ink);
}
.comic-line.is-speech::after {
  top: -10px;
  left: 25.5px;
  width: 12.5px;
  height: 11px;
  background: var(--comic-bubble);
}
.comic-line.is-speech.is-right::before,
.comic-line.is-speech.is-right::after {
  left: auto;
  clip-path: polygon(0 100%, 66% 0, 100% 100%);
}
.comic-line.is-speech.is-right::before {
  right: 22px;
}
.comic-line.is-speech.is-right::after {
  right: 25.5px;
}
.comic-line.is-thought::before,
.comic-line.is-thought::after {
  content: "";
  position: absolute;
  left: 26px;
  border: 2px solid var(--comic-ink);
  border-radius: 50%;
  background: var(--comic-thought);
}
.comic-line.is-thought::before {
  top: -16px;
  width: 13px;
  height: 13px;
}
.comic-line.is-thought::after {
  top: -26px;
  left: 18px;
  width: 8px;
  height: 8px;
}
.comic-line.is-thought.is-right::before {
  left: auto;
  right: 26px;
}
.comic-line.is-thought.is-right::after {
  left: auto;
  right: 18px;
}
.comic-speaker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 12px/16px var(--font-app-bold);
  color: var(--comic-muted);
}
.comic-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--speaker, var(--comic-muted));
  box-shadow: 0 0 0 1.5px var(--comic-ink);
}
.comic-say {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -4px -2px -4px 0;
  padding: 0;
  border: 1.5px solid var(--comic-line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--comic-brand);
}
.comic-line.is-narration .comic-say {
  border-color: color-mix(in srgb, var(--comic-caption-ink) 28%, transparent);
  color: var(--comic-caption-ink);
}
.comic-say svg {
  width: 18px;
  height: 18px;
}
.comic-say:hover {
  background: color-mix(in srgb, var(--comic-brand) 12%, transparent);
}
.comic-line.is-speaking {
  box-shadow: 0 0 0 5px var(--comic-highlight);
}
.comic-line.is-narration.is-speaking {
  box-shadow: 3px 3px 0 var(--comic-shadow), 0 0 0 5px var(--comic-highlight);
}
.comic-line.is-speaking .comic-say {
  border-color: var(--comic-accent);
  background: var(--comic-accent);
  color: #fff;
}
/* Translations hidden: a line shows its Vietnamese when tapped. */
.vi-hidden .comic-line:not(.is-revealed) .comic-vi {
  display: none;
}
.vi-hidden .comic-line-text[role="button"] {
  cursor: pointer;
}
.vi-hidden .comic-line:not(.is-revealed) .comic-line-text[role="button"]::after {
  content: "Chạm để xem nghĩa";
  font: 600 11px/14px var(--font-app);
  color: var(--comic-muted);
  opacity: 0.85;
}

/* end page: calm, like the app's: Mầm, the heading, the next comic, one row into the words */
.comic-end-scroll {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px 20px;
}
.comic-end-inner {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.comic-end-mam {
  width: 120px;
}
.comic-end-inner h2 {
  margin-top: 10px;
  font: 700 24px/30px var(--font-app-bold);
  color: var(--comic-text);
}
.comic-end-inner > p {
  margin-top: 4px;
  color: var(--comic-muted);
  font-size: 14px;
  line-height: 20px;
}
/* "Chia sẻ truyện": a small tonal pill right under the "Bạn đã đọc xong" line (share-card.js opens the sheet) */
.comic-end-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--sn-container, #ddf0ec);
  color: #00594f;
  font: 700 15.5px/20px var(--font-app-bold);
  cursor: pointer;
}
.comic-end-share svg {
  width: 20px;
  height: 20px;
}
/* One Mầm on screen: the share sheet brings its own. */
.comic-end.is-sharing .comic-end-mam {
  visibility: hidden;
}
@media (hover: hover) {
  .comic-end-share:hover {
    background: color-mix(in srgb, var(--sn-container, #ddf0ec) 82%, var(--comic-brand));
  }
}
.comic-end-next,
.comic-end-allread,
.comic-end-words {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--comic-line);
  border-radius: 16px;
  background: var(--comic-surface);
  color: var(--comic-text);
  text-align: left;
}
.comic-end-next {
  margin-top: 24px;
  padding: 12px;
  text-decoration: none;
}
.comic-end-next:hover,
.comic-end-words:hover {
  border-color: var(--comic-line-strong);
}
.comic-end-next-cover {
  flex: none;
  width: 76px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--comic-line);
  border-radius: 8px;
}
.comic-end-next-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comic-end-next-text {
  display: grid;
  justify-items: start;
  min-width: 0;
}
.comic-end-label {
  font: 700 12px/16px var(--font-app-bold);
  color: var(--comic-brand);
}
.comic-end-next-title {
  margin-top: 2px;
  font: 700 16px/21px var(--font-app-bold);
}
.comic-end-next-vi,
.comic-end-next-meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--comic-muted);
}
.comic-end-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 0 14px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--comic-brand);
  color: #fff;
  font: 700 13px/17px var(--font-app-bold);
}
.comic-end-read svg {
  width: 16px;
  height: 16px;
}
.comic-end-allread {
  margin-top: 24px;
  padding: 16px;
}
.comic-end-allread strong,
.comic-end-words strong {
  display: block;
  font: 700 14px/19px var(--font-app-bold);
}
.comic-end-allread span span,
.comic-end-words-text span {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--comic-muted);
}
.comic-end-words {
  margin-top: 12px;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}
.comic-end-words-text {
  flex: 1;
  min-width: 0;
}
.comic-end-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mint, #e3f3ef);
  color: var(--comic-brand);
}
.comic-end-icon svg {
  width: 22px;
  height: 22px;
}
.comic-end-chevron {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--comic-muted);
}
.comic-end-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 22px;
}
.comic-end-actions .button {
  min-height: 48px;
  padding: 0 14px;
  white-space: nowrap;
}

/* the games row: the stories' tonal end-card buttons (audio.css .story-end-game), side by side */
.comic-end-games {
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin-top: 20px;
}
.comic-end-games.is-single {
  grid-template-columns: 1fr;
}
.comics-root .story-end-game {
  border-radius: 16px;
  background: var(--sn-container);
  color: var(--comic-brand);
  font: 700 14px/18px var(--font-app-bold);
  text-decoration: none;
}
.comics-root .story-end-game svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 420px) {
  .comics-root .story-end-game {
    gap: 6px;
    padding: 8px;
    font-size: 13px;
  }
  .comics-root .story-end-game svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- a comic's games (#comics/<id>/game/story|vocab, comics-games.js) ---------- */
.comics-game {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.comics-game-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.comics-game-comic {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--comic-line);
  border-radius: 16px;
  background: var(--comic-surface);
  color: var(--comic-text);
  text-decoration: none;
}
.comics-game-comic:hover {
  border-color: var(--comic-line-strong);
}
.comics-game-cover {
  flex: none;
  width: 44px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--comic-line);
  border-radius: 8px;
}
.comics-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comics-game-name {
  display: grid;
  min-width: 0;
}
.comics-game-label {
  font: 700 12px/16px var(--font-app-bold);
  color: var(--comic-brand);
}
.comics-game-name strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 700 16px/21px var(--font-app-bold);
}
.comics-game-name > span[lang] {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 18px;
  color: var(--comic-muted);
}
.comics-game-side .comic-end-games {
  margin: 0;
}
.comics-game-side .story-end-game {
  min-height: 46px;
}
.comics-game-side .story-end-game[aria-current="page"] {
  background: var(--comic-brand);
  color: #fff;
}
.comics-game-back {
  display: none;
}
.comics-game-play {
  min-width: 0;
}
.comics-game-play > .audio-game,
.comics-game-play > form.audio-game,
.comics-game-play > .story-game-hub,
.comics-game-play > .story-game-done {
  margin-top: 0;
}
@media (min-width: 900px) {
  .comics-game {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
  }
  .comics-game-side {
    position: sticky;
    top: calc(var(--header-h, 64px) + 20px);
    gap: 14px;
  }
  .comics-game-comic {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }
  .comics-game-cover {
    width: 100%;
    border-radius: 12px;
  }
  .comics-game-name strong,
  .comics-game-name > span[lang] {
    white-space: normal;
  }
  .comics-game-side .comic-end-games {
    grid-template-columns: 1fr;
  }
  .comics-game-back {
    display: inline-flex;
    justify-self: start;
  }
}

/* A wide but short book (a laptop window): the end page in two columns, so nothing scrolls. */
@container comics-book (min-width: 760px) and (max-height: 620px) {
  .comic-end-inner {
    max-width: 880px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "mam next" "title next" "line next" "share words" "games actions";
    align-items: center;
    column-gap: 36px;
  }
  .comic-end-mam {
    grid-area: mam;
    width: 84px;
  }
  .comic-end-inner h2 {
    grid-area: title;
    margin-top: 4px;
  }
  .comic-end-inner > p {
    grid-area: line;
    align-self: start;
  }
  .comic-end-share {
    grid-area: share;
    margin-top: 10px;
  }
  .comic-end-inner .comic-end-games {
    grid-area: games;
    margin-top: 14px;
  }
  .comic-end-next,
  .comic-end-allread {
    grid-area: next;
    margin-top: 0;
  }
  .comic-end-words {
    grid-area: words;
    margin-top: 0;
  }
  .comic-end-actions {
    grid-area: actions;
    margin-top: 14px;
  }
}

/* ---------- the free allowance: PRO locks (the stories' .story-pro badge, audio.css) ---------- */
.comics-root .story-pro {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px #0003;
}
.comics-continue-cover {
  position: relative;
}
.comics-continue-cover .story-pro {
  top: 4px;
  right: 4px;
  padding: 3px;
}
.comic-end-next-cover {
  position: relative;
}
.comic-end-next-cover .story-pro {
  top: 5px;
  right: 5px;
  padding: 2px 6px;
  font-size: 11px;
}
.comic-end-next.is-locked .comic-end-read {
  background: var(--sn-lock);
}
.comic-end-read svg {
  width: 16px;
  height: 16px;
}

/* The entry gate: a locked comic shows its cover page and the stories' PRO gate, nothing else. */
.comics-gated {
  display: grid;
  gap: 20px;
  justify-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.comics-book.comics-gated-cover {
  width: min(100%, calc(42dvh * 2 / 3), 420px);
  height: auto;
  aspect-ratio: 2 / 3;
}
/* A small cover on phones (chips, no summary), so the gate shows on the first screen. */
@media (max-width: 899px) {
  .comics-gated .comic-summary-en,
  .comics-gated .comic-summary-vi {
    display: none;
  }
  .comics-gated .comic-cover-title h2 {
    font-size: 22px;
  }
  .comics-gated .comic-cover-info {
    padding: 36px 14px 12px;
    background: linear-gradient(to top, color-mix(in srgb, var(--comic-paper) 94%, transparent) 30%, transparent);
  }
}
.comics-gated .comic-turn-hint,
.comics-gated .comic-cover-loading {
  display: none;
}
.comics-gated-gate {
  width: 100%;
  min-width: 0;
}
.comics-gated-gate .pro-gate {
  margin: 0;
}
@media (min-width: 900px) {
  .comics-gated {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }
  .comics-book.comics-gated-cover {
    position: sticky;
    top: calc(var(--header-h, 64px) + 24px);
    width: 100%;
  }
}

/* the words dialog: a bottom sheet on phones */
.comics-words-dialog {
  max-width: 480px;
  padding: 20px 0 12px;
}
.comics-words-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 6px 24px;
}
.comics-words-head h2 {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 20px;
}
.comics-words {
  max-height: min(64vh, 560px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}
.comics-words li + li .comic-word {
  border-top: 1px solid var(--comic-line);
}
.comic-word {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px 12px 24px;
  border: 0;
  background: none;
  color: var(--comic-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.comic-word:hover {
  background: var(--comic-paper);
}
.comic-word-text {
  flex: 1;
  min-width: 0;
}
.comic-word-en {
  font: 700 16px/21px var(--font-app-bold);
  overflow-wrap: anywhere;
}
.comic-word-type {
  margin-left: 8px;
  font-size: 12px;
  font-style: italic;
  color: var(--comic-muted);
}
.comic-word-vi {
  display: block;
  font-size: 14px;
  line-height: 19px;
  color: var(--comic-muted);
}
.comic-word-say {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--comic-brand);
}
.comic-word.is-speaking {
  background: var(--comic-chip);
}
@media (max-width: 600px) {
  .comics-words-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

/* ---------- a wide book opens as a spread ---------- */
@container comics-book (min-width: 760px) {
  .comic-story {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }
  /* The art fills the page's height at 4:5; its column follows, the text page takes the rest. */
  .comic-panel {
    align-self: center;
    height: min(calc(100cqh - 16px), calc(58cqw * 1.25));
    margin: 8px 14px 8px 12px;
    border-width: 3px;
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--comic-shadow);
  }
  .comic-text {
    background: linear-gradient(to right, #0000000f, transparent 34px);
  }
  .comic-eyebrow {
    padding: 18px clamp(24px, 3cqw, 48px) 0;
  }
  /* A centred reading column (about 60 characters), the lines centred in the page's height. */
  .comic-lines {
    justify-content: safe center;
    gap: clamp(16px, 2.4cqh, 28px);
    padding: 16px max(28px, calc((100% - 60ch) / 2)) 28px;
    font-size: clamp(18px, 1.35vw, 24px);
  }
  .comic-line {
    max-width: 90%;
    padding: 12px 12px 12px 18px;
  }
  .comic-en {
    font-size: clamp(18px, 1.35vw, 24px);
    line-height: 1.45;
  }
  .comic-vi {
    font-size: clamp(14px, 1vw, 17px);
  }
  .comic-cover {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .comic-cover-art {
    position: relative;
    inset: auto;
    width: auto;
    height: 100cqh;
    aspect-ratio: 2 / 3;
    max-width: 52cqw;
  }
  .comic-cover-art::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 36px;
    background: linear-gradient(to left, #00000017, transparent);
  }
  .comic-cover-title h2 {
    font-size: clamp(28px, 3.2cqw, 40px);
  }
  .comic-cover-info {
    position: relative;
    inset: auto;
    align-content: center;
    gap: 16px;
    max-height: none;
    padding: 48px clamp(40px, 6cqw, 104px);
    background: none;
  }
  .comic-summary-en,
  .comic-summary-vi {
    max-width: 36ch;
  }
  .comic-cover-info::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle, color-mix(in srgb, var(--comic-accent) 24%, transparent) 0 1.6px, transparent 2px) 0 0 / 11px 11px;
    -webkit-mask-image: radial-gradient(circle 260px at 100% 0%, #000 0 30%, transparent 100%);
    mask-image: radial-gradient(circle 260px at 100% 0%, #000 0 30%, transparent 100%);
  }
  .comic-summary-en {
    font-size: clamp(20px, 1.5vw, 28px);
    line-height: 1.45;
  }
  .comic-summary-vi {
    font-size: clamp(16px, 1.1vw, 20px);
  }
  .comic-chips .comic-chip {
    min-height: 30px;
    padding: 0 12px;
    font-size: 13px;
  }
  .comic-cover-loading {
    justify-self: start;
    margin-top: 18px;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .comic-peel {
    animation: comic-peel 2.8s ease-in-out infinite;
  }
  .comic-turn-hand {
    animation: comic-swipe 2.8s cubic-bezier(0.3, 0.7, 0.3, 1) infinite;
  }
  .comic-cover:hover .comic-peel {
    animation-play-state: paused;
  }
  @keyframes comic-peel {
    0%, 60%, 100% {
      transform: scale(0.86);
    }
    28% {
      transform: scale(1.12);
    }
  }
  @keyframes comic-swipe {
    0% {
      opacity: 0;
      transform: translateX(0) rotate(0);
    }
    12% {
      opacity: 1;
    }
    58% {
      opacity: 1;
      transform: translateX(-58px) rotate(-12deg);
    }
    78%, 100% {
      opacity: 0;
      transform: translateX(-66px) rotate(-14deg);
    }
  }
  .comic-card.is-skeleton .comic-card-cover,
  .sk-line {
    background: linear-gradient(100deg, var(--comic-skeleton) 30%, color-mix(in srgb, var(--comic-skeleton) 55%, var(--comic-paper)) 50%, var(--comic-skeleton) 70%) 0 0 / 300% 100%;
    animation: comic-shimmer 1.4s linear infinite;
  }
  @keyframes comic-shimmer {
    to {
      background-position: -150% 0;
    }
  }
}

/* Level chips over the covers (Hội thoại mỗi ngày's filter): scroll sideways rather than wrap. */
.comics-levels { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.comics-levels::-webkit-scrollbar { display: none; }
.comics-level { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--md-outline-variant); background: transparent; color: var(--md-on-surface); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.comics-level svg { width: 16px; height: 16px; margin-left: -4px; fill: currentColor; }
.comics-level[aria-pressed="true"] { background: var(--md-primary-container, #d7efe9); border-color: transparent; color: var(--md-on-primary-container, #00201b); }
@media (hover: hover) { .comics-level:hover { background: var(--md-surface-container, rgb(0 0 0 / 0.04)); } .comics-level[aria-pressed="true"]:hover { background: var(--md-primary-container, #d7efe9); } }

/* Below the list (comics.js aboutComics): what the comics are, how to read them, questions. */
.comics-about {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--comic-line, rgba(0, 0, 0, 0.12));
  color: var(--comic-muted);
  font-size: 15px;
  line-height: 24px;
}
.comics-about h2 {
  margin: 0;
  color: var(--comic-ink);
  font-size: 20px;
  line-height: 28px;
}
.comics-about h3 {
  margin: 6px 0 4px;
  color: var(--comic-ink);
  font-size: 16px;
  line-height: 24px;
}
.comics-about p,
.comics-about ul {
  margin: 0;
}
.comics-about ul {
  padding-left: 20px;
}
.comics-about-grid {
  display: grid;
  gap: 12px 28px;
}
@media (min-width: 720px) {
  .comics-about-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.comics-about details {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--comic-surface);
}
.comics-about summary {
  color: var(--comic-ink);
  font-weight: 700;
  cursor: pointer;
}
.comics-about details p {
  margin-top: 6px;
}
.comics-about a {
  color: var(--md-primary, #00796b);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
