.report-detail {
  width: min(calc(100% - 40px), 1120px);
  max-width: none;
  margin: 24px auto 64px;
}

.report-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}

.report-detail-back,
.report-detail-admin-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  letter-spacing: 0;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.report-detail-back:hover,
.report-detail-back:focus-visible,
.report-detail-admin-link:hover,
.report-detail-admin-link:focus-visible {
  border-color: #df1018;
  color: #b90008;
}

.report-detail .page-intro {
  margin-bottom: 28px;
}

.report-detail .page-intro-title {
  overflow-wrap: anywhere;
}

.report-detail-hero {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.report-detail-hero a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.report-detail-hero img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 680px;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.report-detail-copy {
  width: min(100%, 900px);
  margin: 0 auto 40px;
  color: #373737;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  letter-spacing: 0;
}

.report-detail-copy h2,
.report-detail-copy h3 {
  margin: 1.25em 0 .45em;
  color: #252525;
  line-height: 1.35;
  letter-spacing: 0;
}

.report-detail-copy h2 {
  font-size: 1.45em;
}

.report-detail-copy h3 {
  font-size: 1.2em;
}

.report-detail-copy li.ql-indent-1 { padding-left: 3em; }
.report-detail-copy li.ql-indent-2 { padding-left: 6em; }
.report-detail-copy li.ql-indent-3 { padding-left: 9em; }
.report-detail-copy li.ql-indent-4 { padding-left: 12em; }
.report-detail-copy li.ql-indent-5 { padding-left: 15em; }
.report-detail-copy li.ql-indent-6 { padding-left: 18em; }
.report-detail-copy li.ql-indent-7 { padding-left: 21em; }
.report-detail-copy li.ql-indent-8 { padding-left: 24em; }

.report-detail-gallery-section {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.report-detail-gallery-title {
  margin: 0 0 16px;
  padding: 0 0 10px 14px;
  border-bottom: 1px solid #d9d9d4;
  color: #171717;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  position: relative;
}

.report-detail-gallery-title::before {
  position: absolute;
  top: 0;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: #df1018;
  content: "";
}

.report-detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-detail-gallery li {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #eee;
  aspect-ratio: 4 / 3;
}

.report-detail-gallery a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.report-detail-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 200ms ease;
}

.report-detail-gallery a:hover img,
.report-detail-gallery a:focus-visible img {
  transform: scale(1.035);
}

.report-detail a:focus-visible {
  outline: 2px solid #df1018;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .report-detail {
    width: calc(100% - 32px);
    margin: 20px auto 40px;
  }

  .report-detail-toolbar {
    margin-bottom: 16px;
  }

  .report-detail .page-intro {
    margin-bottom: 22px;
  }

  .report-detail-hero {
    margin-bottom: 24px;
  }

  .report-detail-copy {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.7;
  }

  .report-detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .report-detail {
    width: calc(100% - 24px);
  }

  .report-detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-detail-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-detail-gallery img,
  .report-detail-back,
  .report-detail-admin-link {
    transition: none;
  }
}
