/* The same ruled paper, spacing and graphite palette as the Japanese edition. */
body.cn.cn-notebook {
  --paper: #fbf3d0;
  --panel-paper: var(--paper);
  --bubble-paper: #fcf5dc;
  --ink: #514a3f;
  --muted: #61584d;
  --notebook-spacing: 1.75rem;
  --notebook-rule: rgb(131 101 133 / .19);
  background-color: var(--paper);
  background-image: var(--paper-grain, none), repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--notebook-spacing) - 1px),
    var(--notebook-rule) calc(var(--notebook-spacing) - 1px) var(--notebook-spacing)
  );
}

.cn-notebook :is(.masthead, .front-intro, .cast, .cast-card, .cast-portrait, .about,
  .news-summary, .numbers-note, .number-slip, .news-background, .place-note,
  .read-next-art, .tile-art, .trivia-teaser, .panel, .cn-scene) {
  background: transparent;
}

.cn-notebook :is(.masthead, .front-intro, .section-label, .category-block > h3, .tile, .cast,
  .cast-card, .about, .site-footer, .news-summary, .news-background, .news-background-detail,
  .numbers-note, .number-slip, .front-backnumbers > h2, .home-comic-series > h2,
  .home-comic-series .home-comic + .home-comic, .related-rail h2, .related-bottom h2,
  .related-list li + li, .trivia-teaser, .trivia-entry > h2, .panel) {
  border: 0;
}

.cn-notebook :is(.news-summary, .numbers-note, .place-note, .topic) {
  padding-inline: 0;
}

.cn.cn-notebook :is(.feature-head a, .collection a, .related-list a):hover {
  text-decoration: none;
}

.cn-notebook .home-comic-series .home-comic + .home-comic {
  padding-block-start: clamp(1.75rem, 3vw, 2.625rem);
}

.cn.cn-notebook main :is(.front-intro p, .news-summary > p, .news-summary > h2,
  .news-dialogue-name, .news-dialogue-line, .news-background-sources, .place-copy .place-description,
  .cast-bio p, .about p, .comic-credits:not(:has(.news-summary)), .tile-text h3, .read-next-title,
  .issue-archive .archive-comics > li, .issue-archive .archive-dates > li) {
  line-height: var(--notebook-spacing);
}

.cn-notebook main :is(.front-intro, .feature-head, .story-head) :is(h1, h2, h3) {
  line-height: calc(2 * var(--notebook-spacing));
}

.cn-notebook main .news-summary .news-summary-title {
  margin-block-end: 0;
}

.cn-notebook [data-notebook-aligned] {
  position: relative;
  inset-block-start: var(--notebook-shift, 0px);
}

.cn-notebook .notebook-baseline {
  display: inline-block;
  width: 0;
  height: 0;
  line-height: var(--notebook-spacing);
  vertical-align: baseline;
  pointer-events: none;
}

.cn-notebook .notebook-filter {
  position: absolute;
}

.cn.cn-notebook #featured .read-column > .cn-note-comic {
  width: 100%;
  max-width: none;
}

.cn-notebook .cn-note-comic :is(.cn-pencil-strip, .comic-panels.cn-silent) {
  display: block;
  width: min(86%, 420px);
  height: auto;
  margin-inline: auto;
  padding: 0;
}

.cn.cn-notebook .cn-note-comic .cn-silent .panel {
  display: block;
  isolation: auto;
  background: transparent;
  border: 0;
}

.cn.cn-notebook .cn-note-comic .cn-silent img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  padding: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: brightness(1.08) url("#notebook-graphite");
}

.cn-notebook .cn-pencil-scenes {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  margin: 0;
}

.cn.cn-notebook .news-background.news-dialogue {
  display: grid;
  gap: var(--notebook-spacing);
  margin-block: var(--notebook-spacing) calc(1.5 * var(--notebook-spacing));
  padding: 0 clamp(0rem, 2vw, 1.25rem);
}

.cn-notebook .news-dialogue-turn.mili {
  grid-template-columns: minmax(0, 1fr) var(--portrait-size);
}

.cn-notebook .news-dialogue-turn.mili .news-dialogue-avatar {
  grid-column: 2;
}

.cn-notebook .news-dialogue-turn.mili .news-dialogue-speech {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  text-align: end;
}

.cn-notebook .news-dialogue-avatar img {
  width: 134%;
  height: 134%;
  inset: -10% auto auto -17%;
  object-fit: contain;
}

.cn-notebook .news-dialogue .news-background-sources {
  margin-block-start: 0;
}

.cn-notebook :is(.cn-pencil-strip, .place-drawing, .news-vignette,
  .cast-portrait img, .news-dialogue-avatar img) {
  filter: grayscale(1);
}

.cn-notebook .cn-pencil-place {
  object-fit: contain;
  filter: grayscale(1) url("#notebook-place-ink");
}

.cn-notebook .trivia-teaser img {
  filter: brightness(1.08) url("#notebook-graphite");
  border-radius: 0;
}

@media (max-width: 600px) {
  .cn-notebook main :is(.front-intro, .feature-head, .story-head) :is(h1, h2, h3) {
    line-height: var(--notebook-spacing);
  }
}

@media (prefers-contrast: more) {
  body.cn.cn-notebook { background-image: none; }
}

.cn-notebook .news-dialogue-avatar {
  opacity: 1;
}

.cn-notebook .news-dialogue-avatar img {
  filter: grayscale(1) brightness(.86) contrast(1.85);
}

body.cn.cn-notebook .cast-portrait > img.cast-ink-portrait.cast-reference-portrait {
  mix-blend-mode: normal;
  filter: url("#notebook-graphite");
}
