/* Imported match reports share the site's shell; all presentation stays within this batch. */
:is(.report-batch-article, .report-batch-index) {
  --rb-ink: #243e46;
  --rb-muted: #596e72;
  --rb-line: #d7cdbb;
  --rb-gold: #aa7b3d;
  --rb-paper: #faf7ef;
  min-width: 0;
  max-width: 100%;
  color: var(--rb-ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: anywhere;
}

:is(.report-batch-article, .report-batch-index) *,
:is(.report-batch-article, .report-batch-index) *::before,
:is(.report-batch-article, .report-batch-index) *::after {
  box-sizing: border-box;
}

:is(.report-batch-article, .report-batch-index) [hidden] { display: none !important; }

:is(.report-batch-article, .report-batch-index) :is(h2, h3, p, dl, ul, ol) {
  max-width: 100%;
}

:is(.report-batch-article, .report-batch-index) :is(a, summary, select, [tabindex]):focus-visible {
  outline: 2px solid var(--rb-gold);
  outline-offset: 4px;
}

.report-batch-article .rb-section {
  min-width: 0;
  margin-top: 36px;
  scroll-margin-top: 96px;
}

.report-batch-article .rb-section > h2,
.report-batch-index > h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 25px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.report-batch-article .rb-section h3 {
  margin: 24px 0 12px;
  color: var(--rb-ink);
  font-size: 19px;
  line-height: 1.55;
}

.report-batch-article p { margin: 12px 0; }
.report-batch-article :is(ul, ol) { padding-left: 1.5em; }
.report-batch-article li + li { margin-top: 6px; }

.report-batch-article .rb-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 6px 0;
  color: #76532c;
  font: 600 14px/1.6 var(--sans);
  text-decoration: none;
}
.report-batch-article .rb-back:hover { text-decoration: underline; text-underline-offset: 4px; }

.report-batch-article .rb-match-meta {
  display: grid;
  grid-template-columns: minmax(6em, .35fr) minmax(0, 1fr);
  gap: 0 18px;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--rb-line);
  border-top: 3px solid var(--rb-gold);
  border-radius: 6px;
  background: var(--rb-paper);
}

.report-batch-article .rb-match-meta > :is(dt, dd) {
  min-width: 0;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #e7dfd1;
}

.report-batch-article .rb-match-meta > dt { color: var(--rb-muted); }
.report-batch-article .rb-match-meta > dd { font-weight: 600; }
.report-batch-article .rb-match-meta > :is(dt, dd):nth-last-child(-n + 2) { border-bottom: 0; }

.report-batch-article .rb-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
  padding: 0;
}

.report-batch-article .rb-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  color: var(--rb-ink);
  background: #f8f3e8;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.report-batch-article .rb-toc a:hover { border-color: var(--rb-gold); background: #f0e5d1; }

:is(.report-batch-article, .report-batch-index) :is(.rb-notice, .rb-warning) {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--rb-line);
  border-left: 3px solid var(--rb-gold);
  border-radius: 0 4px 4px 0;
  color: #4b5f64;
  background: #eee9de;
  font-size: 14px;
  line-height: 1.8;
}

:is(.report-batch-article, .report-batch-index) .rb-warning {
  border-color: #d5b89c;
  border-left-color: #a85735;
  color: #71482c;
  background: #f6e9d9;
}

:is(.report-batch-article, .report-batch-index) :is(.rb-notice, .rb-warning) > :first-child { margin-top: 0; }
:is(.report-batch-article, .report-batch-index) :is(.rb-notice, .rb-warning) > :last-child { margin-bottom: 0; }

:is(.report-batch-article, .report-batch-index) .rb-badge {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid #d2b890;
  border-radius: 3px;
  color: #76532c;
  background: #f4e8d3;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}

.report-batch-article .rb-player {
  margin: 12px 0;
  border: 1px solid var(--rb-line);
  border-radius: 6px;
  background: var(--rb-paper);
}

.report-batch-article .rb-player > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  min-height: 56px;
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
}

.report-batch-article .rb-player > summary::-webkit-details-marker { display: none; }
.report-batch-article .rb-player > summary::marker { content: ''; }
.report-batch-article .rb-player-toggle { display: none; }
.report-batch-article .rb-player > summary::after {
  content: '展开影响 ＋';
  flex-basis: 100%;
  color: #76532c;
  font-size: 13px;
  font-weight: 600;
}
.report-batch-article .rb-player[open] > summary::after { content: '收起影响 −'; }
.report-batch-article .rb-player > summary strong { font-size: 17px; color: var(--rb-ink); }
.report-batch-article .rb-player-role { color: var(--rb-muted); font-size: 14px; }
.report-batch-article .rb-player-reason { flex-basis: 100%; }
.report-batch-article .rb-player-return { color: var(--rb-muted); font-size: 14px; }
.report-batch-article .rb-player[open] > summary { border-bottom: 1px solid var(--rb-line); background: #f1e9da; }
.report-batch-article .rb-player-body { min-width: 0; padding: 4px 18px 18px; }
.report-batch-article .rb-player-body dl { margin: 0; }
.report-batch-article .rb-player-body dt { margin-top: 18px; color: #76532c; font-weight: 700; }
.report-batch-article .rb-player-body dd { margin: 4px 0 0; }

.report-batch-article .rb-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 14px 0 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border: 1px solid var(--rb-line);
  border-radius: 5px;
  background: var(--rb-paper);
}

.report-batch-article .rb-table-wrap table {
  width: 100%;
  min-width: 510px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
}

.report-batch-article .rb-table-wrap caption {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-ink);
  background: #efe6d6;
  font-weight: 700;
  text-align: left;
}

.report-batch-article .rb-table-wrap :is(th, td) {
  min-width: 7em;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.report-batch-article .rb-table-wrap th { color: var(--rb-ink); background: #f0e9dc; font-weight: 700; }
.report-batch-article .rb-table-wrap :is(th, td):last-child { border-right: 0; }
.report-batch-article .rb-table-wrap tbody tr:last-child > :is(th, td) { border-bottom: 0; }
.report-batch-article .rb-table-wrap tbody tr:nth-child(even) { background: #f5f0e5; }
.report-batch-article .rb-table-wrap a { overflow-wrap: anywhere; }

.report-batch-index { margin: 26px 0 36px; }
.report-batch-index .rb-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin: 18px 0; }
.report-batch-index .rb-filters label { display: grid; flex: 1 1 160px; gap: 6px; min-width: 0; color: var(--rb-muted); font-size: 14px; }
.report-batch-index select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 32px 8px 12px;
  border: 1px solid #b9ad96;
  border-radius: 4px;
  color: var(--rb-ink);
  background-color: var(--rb-paper);
  font: inherit;
  font-size: 16px;
}

.report-batch-index .rb-filter-count { margin: 12px 0; color: var(--rb-muted); font-size: 14px; }
.report-batch-index .rb-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-batch-index .rb-report-card {
  display: block;
  min-width: 0;
  margin: 12px 0;
  padding: 18px 20px;
  border: 1px solid var(--rb-line);
  border-left: 3px solid var(--rb-gold);
  border-radius: 5px;
  color: var(--rb-ink);
  background: var(--rb-paper);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.report-batch-index .rb-report-grid > .rb-report-card { margin: 0; }
.report-batch-index .rb-report-card:hover { border-color: var(--rb-gold); background: #f3ead8; }
.report-batch-index .rb-report-card :is(h3, strong) { display: block; margin: 6px 0; color: var(--rb-ink); font: 700 19px/1.6 var(--serif); }
.report-batch-index .rb-report-card :is(p, small, time) { display: block; margin: 5px 0; color: var(--rb-muted); font-size: 14px; line-height: 1.7; }
.report-batch-index .rb-report-card a { color: var(--rb-ink); text-decoration: none; }
.report-batch-index .rb-report-card a:hover { text-decoration: underline; }
.report-batch-index .rb-report-card .rb-badge { margin-top: 8px; }
.report-batch-index .rb-filter-empty { padding: 24px 18px; border: 1px dashed #b9ad96; color: var(--rb-muted); text-align: center; }

@media (max-width: 600px) {
  .report-batch-article .rb-section { margin-top: 28px; }
  .report-batch-article .rb-match-meta { grid-template-columns: minmax(5em, .35fr) minmax(0, 1fr); gap: 0 10px; padding: 12px; font-size: 15px; }
  .report-batch-article .rb-toc { gap: 6px; }
  .report-batch-article .rb-toc a { padding: 7px 10px; }
  .report-batch-article .rb-player > summary { padding: 14px 12px; }
  .report-batch-article .rb-player-body { padding: 2px 12px 14px; }
  :is(.report-batch-article, .report-batch-index) :is(.rb-notice, .rb-warning) { padding: 12px; }
  .report-batch-index .rb-report-grid { grid-template-columns: minmax(0, 1fr); }
  .report-batch-index .rb-report-card { padding: 15px 14px; }
  .report-batch-index .rb-report-card :is(h3, strong) { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .report-batch-index .rb-report-card { transition: none; }
}

/* One directory-wide filter also controls legacy cards and their sibling headings. */
[data-rb-global-directory] [hidden],
[data-rb-global-directory] [data-rb-local-ui] {
  display: none !important;
}

[data-rb-global-directory] .rb-global-filter {
  margin-top: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rb-line);
}

.rb-global-filter .rb-global-description {
  margin: 10px 0 18px;
  color: var(--rb-muted);
  font-size: 15px;
}

.rb-global-filter .rb-global-incomplete {
  margin: 12px 0;
  color: #76532c;
  font-size: 14px;
}
