#report {
  --report-ink: #302821;
  --report-muted: #6e553c;
  --report-line: #d2bea0;
  --report-gold: #9a794c;
  --report-paper: #fffdf7;
  display: block;
}

#report .report-intro {
  max-width: 43rem;
}

.guardian-gallery {
  margin-top: 22px;
}

.guardian-switcher {
  min-inline-size: 0;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.guardian-switcher legend {
  padding: 0 0 8px;
  color: var(--report-ink);
  font: 700 clamp(15px, 4.2vw, 19px)/1.4 var(--mincho);
}

.guardian-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 4px;
  border-block: 1px solid var(--report-line);
}

.guardian-choice {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.guardian-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.guardian-option {
  display: grid;
  min-height: 62px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding-block: 5px 6px;
  border-bottom: 2px solid transparent;
  color: var(--report-ink);
  font-size: clamp(11px, 3.4vw, 13px);
  font-weight: 700;
  line-height: 1.35;
}

.guardian-option img {
  display: block;
  width: min(100%, 48px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.guardian-choice input:checked + .guardian-option {
  border-bottom-color: #894d38;
  background: #f2e8d8;
  color: #633a2b;
}

.guardian-choice input:focus-visible + .guardian-option {
  outline: 2px solid #724b33;
  outline-offset: -2px;
}

.guardian-spread {
  min-width: 0;
}

#report #guardian-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--report-line);
  border-radius: 5px 5px 0 0;
  background: #f5eddb;
}

.guardian-artwork {
  display: grid;
  place-items: center;
  min-height: clamp(167px, 49vw, 255px);
  padding: 7px;
  position: relative;
  isolation: isolate;
  background: #f5eddb url("guardians-v21/gilded-cloud-paper.webp") center / cover no-repeat;
}


.guardian-artwork::after {
  --ink-frame: #a78956;
  position: absolute;
  inset: 7px;
  content: "";
  pointer-events: none;
  opacity: .78;
  background:
    linear-gradient(var(--ink-frame), var(--ink-frame)) left top / 16px 1px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) left top / 1px 16px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) right top / 16px 1px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) right top / 1px 16px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--ink-frame), var(--ink-frame)) right bottom / 1px 16px no-repeat;
}

#report #guardian-preview .guardian-artwork img {
  display: block;
  width: min(100%, 244px);
  height: auto;
  mix-blend-mode: multiply;
}

#report #guardian-preview figcaption {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px clamp(9px, 3vw, 22px);
  background: #26231c url("guardians-v21/ink-shippo.webp") right bottom / cover no-repeat;
  border-left: 1px solid #9f8051;
  color: #eddfc5;
  text-align: left;
  font-size: .81rem;
}

#guardian-preview .guardian-portrait-label {
  color: #e0bc84;
  font-size: .73rem;
  letter-spacing: .12em;
}

#report #guardian-preview #guardian-name {
  color: #fff7e9;
  font: 700 clamp(21px, 6.5vw, 34px)/1.33 var(--mincho);
}

#guardian-reading {
  font-size: .73rem;
}

#guardian-epithet {
  min-height: 2.65em;
  padding-top: 3px;
  line-height: 1.35;
}

#guardian-preview .guardian-virtue {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: #e0bc84;
}

.guardian-virtue b {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  border: 1px solid #c17d5f;
  border-radius: 2px;
  color: #f0b49a;
  font: 700 1rem/1 var(--mincho);
}

#report .report-reading-text {
  padding: 17px clamp(15px, 4.4vw, 27px) 20px;
  border: 1px solid var(--report-line);
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: var(--report-paper) url("guardians-v20/washi.webp") center / cover no-repeat;
  box-shadow: inset 0 0 0 4px #fffdf7, inset 0 0 0 5px #e7d8bf;
}

.report-sample-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 3px double var(--report-line);
}

#report .report-sample-heading h4 {
  color: var(--report-ink);
  font: 700 1rem/1.45 var(--mincho);
}

.report-sample-heading img {
  width: 30px;
  height: auto;
}

.report-sample-guardian {
  color: var(--report-muted);
  font-size: .78rem;
}

#report [data-report-headline] {
  margin-top: 10px;
  color: var(--report-ink);
  white-space: pre-line;
}

#report [data-report-lead],
#report [data-report-guardian-body],
#report [data-report-step] {
  text-wrap: balance;
}

#report .report-guardian-summary {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--report-line);
  line-height: 1.55;
}

.report-guardian-summary strong,
#report .report-step strong,
#report .report-reading-details summary strong {
  color: var(--report-muted);
  font-size: .85rem;
}

#report .report-step,
#report .report-reading .flow-detail {
  border-color: var(--report-line);
}

@media (min-width: 820px) {
  .guardian-options {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .guardian-spread {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    gap: clamp(14px, 2.6vw, 36px);
    align-items: start;
  }

  #report #guardian-preview,
  #report .report-reading-text {
    border-radius: 5px;
  }

  #report .report-reading-text {
    border-top: 2px solid var(--report-gold);
  }
}
