/* ============================================================
   ORAVIA MAGAZINE
   A paged magazine viewer, not a normal article layout.
   Desktop: cover, then fixed two-page spreads.
   Mobile: one page at a time.
   ============================================================ */

.oravia-magazine-shell {
  --paper: #f7f2e8;
  --ink: #18212a;
  --muted: #61707a;
  --accent: #245b82;
  max-width: 1700px;
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.oravia-magazine-shell,
.oravia-magazine-shell * {
  box-sizing: border-box;
}

.mag-topbar,
.mag-bottombar {
  max-width: 1540px;
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.mag-bottombar {
  margin-top: 1rem;
  margin-bottom: 0;
}

.mag-topbar > :last-child,
.mag-bottombar > :last-child {
  justify-self: end;
}

.mag-brand {
  text-align: center;
  line-height: 1.05;
}

.mag-brand strong {
  display: block;
  letter-spacing: .16em;
}

.mag-brand span,
.mag-page-status {
  font-size: .82rem;
  opacity: .7;
}

.mag-nav-btn,
.mag-text-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.mag-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.mag-text-btn {
  background: transparent;
  color: var(--accent);
  padding: .4rem .2rem;
  font-weight: 650;
}

.magazine-viewer {
  position: relative;
  max-width: 1540px;
  height: 1000px;
  margin: 0 auto;
  perspective: 1800px;
  background: #d4cbbb;
  border-radius: 7px;
  box-shadow: 0 18px 45px rgba(0,0,0,.16);
  overflow: hidden;
}

.magazine-viewer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0,0,0,.11);
  box-shadow: 0 0 18px rgba(0,0,0,.15);
  z-index: 20;
  pointer-events: none;
}

.mag-page {
  display: none;
  position: absolute;
  top: 0;
  height: 1000px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  backface-visibility: hidden;
}

.mag-page.mag-show-left {
  display: block;
  left: 0;
  width: 50%;
}

.mag-page.mag-show-right {
  display: block;
  left: 50%;
  width: 50%;
}

.mag-page.mag-show-single {
  display: block;
  inset: 0;
  width: 100%;
}

/* Cover is intentionally a single page. */
.magazine-viewer.is-cover {
  max-width: 770px;
  background: transparent;
}

.magazine-viewer.is-cover::after {
  display: none;
}

.magazine-viewer.is-cover .mag-page.mag-cover.mag-show-left,
.magazine-viewer.is-cover .mag-page.mag-cover.mag-show-right,
.magazine-viewer.is-cover .mag-page.mag-cover.mag-show-single {
  left: 0 !important;
  width: 100% !important;
}

.mag-page-inner,
.cover-inner {
  min-height: 1000px;
  position: relative;
  padding: 2.05rem 2.15rem 2.55rem;
}

.mag-page-number {
  position: absolute;
  bottom: 1rem;
  font-size: .78rem;
  color: #69757c;
}

.mag-show-left .mag-page-number {
  left: 1.25rem;
  right: auto;
}

.mag-show-right .mag-page-number {
  right: 1.25rem;
  left: auto;
}

.mag-page.mag-cover {
  color: #ffffff;
  background: #0b2233;
}

/* The cover is one physical page, centered in the closed two-page viewer.
   !important beats any inline positioning set by the paginator JS. */
.mag-page.mag-cover.mag-show-left,
.mag-page.mag-cover.mag-show-right,
.mag-page.mag-cover.mag-show-single {
  display: block !important;
  left: 25% !important;
  right: auto !important;
  width: 50% !important;
  z-index: 30;
  border-radius: 7px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

.magazine-viewer:has(.mag-cover.mag-show-left)::after,
.magazine-viewer:has(.mag-cover.mag-show-right)::after,
.magazine-viewer:has(.mag-cover.mag-show-single)::after {
  display: none;
}

/* Every text element on the cover is forced white: MkDocs Material styles
   .md-typeset h1/h2/p with a dark colour at higher specificity than a bare class. */
.oravia-magazine-shell .mag-cover,
.oravia-magazine-shell .mag-cover h1,
.oravia-magazine-shell .mag-cover h2,
.oravia-magazine-shell .mag-cover p,
.oravia-magazine-shell .mag-cover span,
.oravia-magazine-shell .mag-cover div,
.md-typeset .mag-cover h1,
.md-typeset .mag-cover p {
  color: #ffffff !important;
}

.cover-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cover-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(96,168,214,.42), transparent 46%),
    radial-gradient(circle at 82% 72%, rgba(30,196,178,.30), transparent 48%),
    radial-gradient(circle at 60% 34%, rgba(158,120,220,.22), transparent 42%),
    linear-gradient(168deg, #0d2b40 0%, #123449 46%, #08182580 100%);
}

.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(72deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, rgba(4,14,22,.30) 0%, rgba(4,14,22,.10) 40%, rgba(4,14,22,.72) 100%);
}

.cover-top,
.cover-bottom {
  position: relative;
  z-index: 1;
}

.cover-title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: .95;
  letter-spacing: .14em;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

.cover-deck {
  max-width: 30rem;
  margin: 1.1rem 0 0;
  font-size: 1.12rem;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.cover-issue {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: .1em;
  padding-bottom: .7rem;
  margin-bottom: .7rem;
  border-bottom: 2px solid rgba(255,255,255,.5);
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  text-shadow: 0 1px 5px rgba(0,0,0,.5);
}

/* ---- Clickable word hotspots over an image (comic panel, scan, photo) ---- */
.oravia-image-words {
  position: relative;
  display: block;
  margin: 1rem 0;
}

.oravia-image-words img {
  display: block;
  width: 100%;
  height: auto;
}

.oravia-image-words .oravia-word {
  position: absolute;
  display: block;
  border-radius: 3px;
  text-indent: -9999px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.oravia-image-words .oravia-word:hover,
.oravia-image-words .oravia-word:focus {
  background: rgba(36,91,130,.28);
  outline: 2px solid rgba(36,91,130,.55);
}

.oravia-image-words.show-hotspots .oravia-word {
  background: rgba(36,91,130,.16);
  outline: 1px dashed rgba(36,91,130,.5);
}

.mag-kicker {
  margin-bottom: .55rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .7rem;
  font-weight: 750;
  color: #667885;
}

.mag-headline,
.mag-display-headline {
  margin: 0;
  line-height: .98;
  letter-spacing: -.025em;
}

.mag-headline {
  font-size: 2.35rem;
}

.mag-display-headline {
  font-size: 3.1rem;
}

.mag-deck {
  font-size: 1.05rem;
  line-height: 1.4;
  color: #53626c;
}

.mag-byline,
.mag-caption {
  font-size: .78rem;
  color: #69767e;
}

.contents-list {
  margin-top: 2rem;
  display: grid;
  gap: .9rem;
}

.contents-item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .7rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(0,0,0,.10);
  font-size: 1.02rem;
}

.editor-note,
.mag-sidebar,
.credits-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(36,91,130,.08);
  border-left: 4px solid var(--accent);
  font-size: .9rem;
}

.editor-note p,
.mag-sidebar p {
  margin-bottom: 0;
}

.mag-photo {
  margin: 1rem 0 .35rem;
}

.photo-hero {
  height: 420px;
}

.photo-wide {
  height: 225px;
}

.mag-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-placeholder,
.full-bleed-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: end;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(36,91,130,.12), rgba(36,91,130,.28)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.20) 0 12px, rgba(255,255,255,.04) 12px 24px);
  color: #344754;
}

.mag-article {
  font-size: .94rem;
  line-height: 1.52;
}

.mag-article p {
  margin-top: 0;
  margin-bottom: .78rem;
}

.two-col {
  column-count: 2;
  column-gap: 1.8rem;
}

.two-col > * {
  break-inside: avoid;
}

.dropcap:first-letter {
  float: left;
  padding-right: .28rem;
  font-size: 3.6rem;
  line-height: .86;
  font-weight: 750;
}

.pull-quote {
  margin: 1.35rem 0;
  padding: .6rem 0 .6rem .9rem;
  border-left: 4px solid #90aabd;
  color: #284a61;
  font-size: 1.2rem;
  line-height: 1.35;
}

.mag-subhead {
  margin-top: 1.3rem;
  font-size: 1.3rem;
}

.full-bleed-page {
  padding: 0;
}

.full-bleed-placeholder {
  min-height: 1000px;
  align-items: end;
  color: white;
  background:
    linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.04) 60%),
    linear-gradient(135deg, #2d607c, #8ba8b6);
}

.full-bleed-placeholder > div {
  max-width: 70%;
  margin: 0 0 2.8rem 2.8rem;
}

.full-bleed-placeholder h2 {
  margin: .2rem 0;
  font-size: 2.8rem;
  line-height: 1;
}

.light-kicker {
  color: rgba(255,255,255,.78);
}

.oravia-word {
  cursor: pointer;
  text-decoration: none;
  border-bottom: 0;
}

.oravia-word:hover,
.oravia-word:focus {
  background: rgba(36,91,130,.08);
  border-radius: 2px;
  outline: none;
}

/* Spread transition: the entire old spread leaves and the new spread arrives.
   Importantly, no old right-page content is reused as the next left page. */
.magazine-viewer.mag-turn-forward .mag-page.mag-show-left,
.magazine-viewer.mag-turn-forward .mag-page.mag-show-right,
.magazine-viewer.mag-turn-forward .mag-page.mag-show-single {
  animation: magSpreadOutForward 160ms ease-in forwards;
}

.magazine-viewer.mag-turn-back .mag-page.mag-show-left,
.magazine-viewer.mag-turn-back .mag-page.mag-show-right,
.magazine-viewer.mag-turn-back .mag-page.mag-show-single {
  animation: magSpreadOutBack 160ms ease-in forwards;
}

.magazine-viewer.mag-arrive .mag-page.mag-show-left,
.magazine-viewer.mag-arrive .mag-page.mag-show-right,
.magazine-viewer.mag-arrive .mag-page.mag-show-single {
  animation: magSpreadIn 180ms ease-out both;
}

@keyframes magSpreadOutForward {
  from { opacity: 1; transform: translateX(0) rotateY(0); }
  to   { opacity: .12; transform: translateX(-2.5%) rotateY(-2deg); }
}

@keyframes magSpreadOutBack {
  from { opacity: 1; transform: translateX(0) rotateY(0); }
  to   { opacity: .12; transform: translateX(2.5%) rotateY(2deg); }
}

@keyframes magSpreadIn {
  from { opacity: .2; }
  to   { opacity: 1; }
}


/* ---- Issue section structure ---- */
.mag-contents-page {
  padding-top: 2.35rem;
}

.mag-contents-topline {
  margin-bottom: .45rem;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.oravia-magazine-shell .mag-contents-title,
.md-typeset .oravia-magazine-shell .mag-contents-title {
  margin: 0 0 1.55rem;
  color: var(--ink) !important;
  font-size: 3.15rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}

.contents-list-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.65rem;
  row-gap: .25rem;
  margin-top: 0;
}

.contents-list-sections .contents-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .6rem;
  min-height: 4.25rem;
  padding: .72rem 0 .62rem;
  border-bottom: 1px solid rgba(0,0,0,.13);
  font-size: 1.12rem;
  font-weight: 700;
}

.toc-page {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mag-section-title {
  margin: 0 0 .7rem;
  padding-top: .02rem;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.02em;
  break-after: avoid;
}

.mag-section-body {
  margin: 0 0 1.15rem;
}

.mag-section-body > :first-child {
  margin-top: 0;
}

.mag-section-rule {
  margin: 1.05rem 0 1.2rem;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.14);
}

.mag-back-minimal {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mag-back-minimal .credits-box {
  max-width: 22rem;
}

/* Popup */
.oravia-word-popup {
  position: absolute;
  z-index: 10000;
  width: min(340px, calc(100vw - 24px));
  padding: .95rem 1rem;
  background: #fffdf9;
  color: #17212a;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.oravia-word-popup[hidden] {
  display: none !important;
}

.oravia-word-popup-close {
  position: absolute;
  top: .25rem;
  right: .4rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
}

.oravia-word-popup-head {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding-right: 1.4rem;
  margin-bottom: .4rem;
}

.oravia-word-popup-word {
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 750;
}

.oravia-word-popup-lemma {
  font-size: .78rem;
  opacity: .62;
}

.oravia-word-popup-meaning {
  margin-top: .15rem;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 650;
}

.oravia-word-popup-more {
  margin-top: .35rem;
  font-size: .93rem;
  line-height: 1.45;
  color: #53626c;
}

.oravia-word-popup-usage,
.oravia-word-popup-breakdown {
  margin-top: .3rem;
  font-size: .94rem;
  line-height: 1.45;
}

.oravia-word-popup-label {
  margin-top: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 750;
  opacity: .62;
}

.oravia-word-popup-dict {
  display: inline-block;
  margin-top: .72rem;
  font-size: .78rem;
}

@media (max-width: 979px) {
  .magazine-viewer {
    max-width: 620px;
    height: 720px;
  }

  .magazine-viewer::after {
    display: none;
  }

  .mag-page,
  .mag-page.mag-show-left,
  .mag-page.mag-show-right,
  .mag-page.mag-show-single {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 720px;
  }

  .mag-page.mag-show-single {
    display: block;
  }

  .mag-page.mag-cover.mag-show-left,
  .mag-page.mag-cover.mag-show-right,
  .mag-page.mag-cover.mag-show-single {
    left: 0 !important;
    width: 100% !important;
    border-radius: 0;
  }

  .contents-list-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mag-page-inner,
  .cover-inner {
    min-height: 720px;
    padding: 2rem 1.6rem 3rem;
  }

  .two-col {
    column-count: 1;
  }

  .photo-hero {
    height: 330px;
  }

  .full-bleed-placeholder {
    min-height: 720px;
  }
}

@media (max-width: 700px) {
  .mag-topbar,
  .mag-bottombar {
    padding: 0 .4rem;
  }

  .oravia-word-popup {
    position: fixed;
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-height: 44vh;
    overflow-y: auto;
  }
}


/* ============================================================
   AUTO-PAGINATED ARTICLE PAGES
   ============================================================ */

.mag-auto-flow {
  height: 900px;
  overflow: hidden;
  column-count: 2;
  column-gap: 1.7rem;
  column-fill: auto;
}

.mag-auto-flow > * {
  break-inside: auto;
}

.mag-auto-flow h2,
.mag-auto-flow h3,
.mag-auto-flow figure,
.mag-auto-flow blockquote,
.mag-auto-flow aside {
  break-inside: avoid;
}

.mag-auto-flow figure {
  margin: 0 0 1rem;
}

.mag-auto-flow img {
  display: block;
  width: 100%;
  max-height: 330px;
  object-fit: cover;
}

.mag-pagination-measure {
  display: block !important;
  position: absolute !important;
  left: -100000px !important;
  top: 0 !important;
  width: 770px !important;
  height: 1000px !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mag-pagination-measure .mag-page-inner {
  width: 770px !important;
  min-height: 1000px !important;
}

@media (max-width: 979px) {
  .mag-auto-flow {
    height: 610px;
    column-count: 1;
  }

  .mag-pagination-measure .mag-auto-flow {
    /* Pagination is deliberately measured at desktop magazine dimensions
       so the same pages also fit comfortably on mobile. */
    height: 900px;
    column-count: 2;
  }
}

/* ============================================================
   ISSUE 1 FILL-IN SECTION LAYOUTS
   ============================================================ */

/* Keep section headings magazine-styled instead of inheriting MkDocs' blue H2 style. */
.oravia-magazine-shell .mag-section-title,
.md-typeset .oravia-magazine-shell .mag-section-title {
  color: var(--ink) !important;
  font-family: inherit;
  font-weight: 800;
}

.mag-piece-title {
  margin: 0 0 .35rem;
  font-size: 1.65rem;
  line-height: 1.08;
  color: var(--ink) !important;
}

.mag-meta {
  margin: .25rem 0 0;
  font-size: .74rem;
  line-height: 1.35;
  color: var(--muted);
}

.mag-brief-list,
.mag-quote-list {
  display: grid;
  gap: .8rem;
}

.mag-brief {
  padding: .8rem 0;
  border-bottom: 1px solid rgba(0,0,0,.11);
}

.mag-brief-text,
.mag-checkin-text {
  margin: 0;
}

.mag-checkin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.mag-checkin {
  min-height: 6rem;
  padding: .9rem;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.28);
}

.mag-poem {
  margin: 1rem 0;
  font-size: 1.03rem;
  line-height: 1.75;
}

.mag-puzzle-result {
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(0,0,0,.11);
}

.mag-small-label {
  margin: 0 0 .25rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.mag-puzzle-winner {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 750;
}

.mag-puzzle-box {
  margin: 1rem 0;
  padding: 1.15rem;
  border: 1px solid rgba(36,91,130,.22);
  background: rgba(36,91,130,.07);
}

.mag-puzzle-prompt {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 750;
}

.mag-poll-list {
  display: grid;
  gap: .55rem;
}

.mag-poll-list > p {
  min-height: 2.35rem;
  margin: 0;
  padding: .55rem .7rem;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.mag-topic {
  margin: 0 0 1.1rem;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 780;
}

.mag-personal-piece {
  margin: 0 0 1.25rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(0,0,0,.11);
}

.mag-personal-piece > p:first-child {
  margin-top: 0;
}

.mag-photo-feature {
  height: 640px;
}

.mag-comic-page {
  margin: .4rem 0 1rem;
}

.mag-profile {
  display: grid;
  grid-template-columns: minmax(140px, .8fr) minmax(0, 1.7fr);
  gap: 1.25rem;
  align-items: start;
}

.mag-profile-photo {
  margin: 0;
}

.mag-profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.mag-profile-copy > :first-child {
  margin-top: 0;
}

.mag-quote-card {
  margin: 0;
  padding: 1rem 1.05rem;
  border-left: 3px solid #90aabd;
  background: rgba(36,91,130,.055);
}

.mag-quote-card p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
}

.mag-quote-card cite {
  display: block;
  margin-top: .55rem;
  font-size: .76rem;
  color: var(--muted);
  font-style: normal;
}

/* The contents page itself contains Oravia, so clickable words should look like text,
   not links. The popup script still gives them keyboard/click behavior. */
.contents-list-sections .oravia-word {
  color: inherit;
  font: inherit;
}

@media (max-width: 979px) {
  .mag-checkin-grid,
  .mag-profile {
    grid-template-columns: 1fr;
  }

  .mag-photo-feature {
    height: 420px;
  }
}


/* ---- Visible issue placeholders ---- */
.mag-brief-list,
.mag-quote-list {
  gap: .58rem;
}

.mag-brief {
  padding: .58rem 0;
}

.mag-checkin-grid {
  gap: .65rem;
}

.mag-checkin {
  min-height: 4.9rem;
  padding: .72rem;
}

.mag-personal-piece {
  margin-bottom: .9rem;
  padding-bottom: .75rem;
}

.mag-puzzle-box {
  margin: .75rem 0;
  padding: .9rem;
}

.mag-poll-list {
  gap: .35rem;
}

.mag-poll-list > p {
  min-height: 1.95rem;
  padding: .42rem .58rem;
}

.mag-photo-placeholder {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(135deg, rgba(36,91,130,.08), rgba(36,91,130,.20)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 14px, rgba(255,255,255,.05) 14px 28px);
}

.mag-photo-placeholder-inner {
  flex: 1;
  display: grid;
  place-items: center;
  color: rgba(24,33,42,.52);
  font-size: 2rem;
  letter-spacing: .08em;
}

.mag-photo-placeholder .mag-caption {
  margin: 0;
  padding: .55rem .2rem 0;
}

.mag-comic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}

.mag-comic-panel {
  min-height: 10rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: .8rem;
  border: 2px solid rgba(24,33,42,.72);
  background:
    linear-gradient(145deg, rgba(36,91,130,.06), rgba(36,91,130,.14)),
    repeating-linear-gradient(25deg, transparent 0 20px, rgba(0,0,0,.025) 20px 21px);
}

.mag-comic-panel span {
  max-width: 70%;
  padding: .42rem .62rem;
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 999px;
  background: #fffdf9;
  font-size: .88rem;
}

.mag-profile-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(36,91,130,.22) 0 16%, transparent 16.5%),
    radial-gradient(ellipse at 50% 78%, rgba(36,91,130,.18) 0 34%, transparent 34.5%),
    rgba(36,91,130,.05);
  border: 1px solid rgba(0,0,0,.08);
}

.mag-profile-placeholder div {
  align-self: end;
  margin-bottom: .65rem;
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .contents-list-sections,
  .mag-comic-grid {
    grid-template-columns: 1fr;
  }

  .contents-list-sections .contents-item {
    min-height: 3.3rem;
  }
}
