/* Teachometry Benchmark Explorer: matrix, ledger, and evidence dossier. */

body.explorer-page {
  --explorer-shell: var(--teach-shell-wide);
  --explorer-mint: #e8f4ef;
  --explorer-mint-strong: #d8eee7;
  --explorer-ink-soft: #315c6d;
  --explorer-grid: color-mix(in srgb, var(--line) 78%, transparent);
  --explorer-shadow: 0 14px 36px color-mix(in srgb, var(--ink) 7%, transparent);
  overflow-x: hidden;
}

body.explorer-page[data-theme="dark"] {
  --explorer-mint: #1d3934;
  --explorer-mint-strong: #254a42;
  --explorer-ink-soft: #a7d0c4;
  --explorer-grid: color-mix(in srgb, var(--line) 86%, transparent);
  --explorer-shadow: 0 16px 38px color-mix(in srgb, #000 20%, transparent);
}

body.explorer-page main .shell {
  width: min(calc(100% - (var(--teach-gutter-desktop) * 2)), var(--explorer-shell));
  max-width: var(--explorer-shell);
}

.explorer-main {
  overflow-x: hidden;
}

.explorer-main a {
  text-decoration: none;
}

.explorer-main a:hover {
  color: var(--accent);
}

.explorer-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--explorer-mint) 72%, var(--bg)), var(--bg));
}

.explorer-hero-grid {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 5%;
}

.explorer-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 28px 0 20px;
}

.explorer-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--muted);
  font: 12px/1.4 var(--teach-serif);
}

.explorer-breadcrumbs a:hover,
.explorer-breadcrumbs [aria-current="page"] {
  color: var(--accent);
}

.explorer-hero .eyebrow {
  margin: 0 0 10px;
}

.explorer-hero h1,
.explorer-main h2,
.explorer-main h3 {
  color: var(--ink);
  font-family: var(--teach-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.explorer-hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 5.8vw, 78px);
  line-height: 0.94;
}

.explorer-hero-editorial {
  max-width: 620px;
  margin: 10px 0 20px;
  color: var(--accent);
  font: italic clamp(32px, 3.4vw, 49px)/0.98 var(--teach-serif);
  letter-spacing: -0.04em;
}

.explorer-hero-description {
  max-width: 620px;
  margin: 0;
  color: var(--explorer-ink-soft);
  font: 16px/1.48 var(--teach-serif);
}

.explorer-hero-art {
  position: relative;
  min-height: 330px;
  color: #73a69d;
}

.explorer-botanical {
  position: absolute;
  right: 5%;
  bottom: -76px;
  width: min(340px, 90%);
  height: 390px;
  opacity: 0.52;
  transform: rotate(-3deg);
}

.explorer-botanical-detail {
  right: 10%;
  bottom: -94px;
  opacity: 0.46;
  transform: rotate(5deg);
}

.explorer-handwritten {
  position: absolute;
  top: 50px;
  right: 10%;
  max-width: 145px;
  margin: 0;
  color: var(--accent);
  font: italic 19px/1.05 "Segoe Print", "Bradley Hand", var(--teach-serif);
  text-align: center;
  transform: rotate(-8deg);
}

.explorer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 26px;
}

.explorer-stat {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  padding: 12px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 66%, transparent);
}

.explorer-stat dd {
  order: -2;
  margin: 0 0 5px;
  color: var(--ink);
  font: 30px/1 var(--teach-serif);
  letter-spacing: -0.04em;
}

.explorer-stat dt {
  color: var(--ink);
  font: 13px/1.15 var(--teach-serif);
}

.explorer-stat small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.explorer-content {
  background: var(--bg);
}

.explorer-tabs {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.explorer-tabs a {
  position: relative;
  padding: 18px 0 12px;
  color: var(--muted);
  font: 12px/1.3 var(--teach-serif);
}

.explorer-tabs a:hover,
.explorer-tabs a[aria-current="page"] {
  color: var(--ink);
}

.explorer-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
}

.explorer-section {
  padding: 46px 0 12px;
}

.explorer-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.explorer-section-heading .eyebrow {
  margin: 0 0 9px;
}

.explorer-section-heading h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 41px);
  line-height: 1.02;
}

.explorer-section-heading h2 span {
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: -0.02em;
}

.explorer-section-heading p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font: 14px/1.45 var(--teach-serif);
}

.explorer-section-mark,
.explorer-card-icon,
.explorer-source-icon,
.explorer-evidence-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 78%, transparent);
  color: var(--accent);
}

.explorer-section-mark .site-icon,
.explorer-card-icon .site-icon,
.explorer-source-icon .site-icon,
.explorer-evidence-icon .site-icon {
  width: 22px;
  height: 22px;
}

.explorer-empty-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 22px 0 16px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--explorer-mint) 64%, var(--surface));
  text-align: left;
}

.explorer-empty-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.explorer-empty-icon .site-icon {
  width: 27px;
  height: 27px;
}

.explorer-empty-callout h3 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.explorer-empty-callout p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font: 13px/1.45 var(--teach-serif);
}

.explorer-main main .button,
.explorer-main .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.explorer-table-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--explorer-shadow);
}

.explorer-table-scroll {
  overflow-x: auto;
  outline: none;
}

.explorer-table-scroll:focus-visible {
  outline: 2px solid var(--teach-focus);
  outline-offset: -3px;
}

.explorer-matrix,
.explorer-ledger {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font: 12px/1.4 var(--teach-serif);
}

.explorer-matrix {
  min-width: 760px;
}

.explorer-ledger {
  min-width: 760px;
}

.explorer-matrix caption,
.explorer-ledger caption {
  padding: 14px 18px 10px;
  color: var(--accent);
  font: 11px/1.3 var(--teach-mono);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.explorer-matrix th,
.explorer-matrix td,
.explorer-ledger th,
.explorer-ledger td {
  border-top: 1px solid var(--explorer-grid);
  border-right: 1px solid var(--explorer-grid);
  padding: 13px 16px;
  text-align: left;
  vertical-align: middle;
}

.explorer-matrix tr > :last-child,
.explorer-ledger tr > :last-child {
  border-right: 0;
}

.explorer-matrix thead th,
.explorer-ledger thead th {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-muted) 58%, var(--surface));
  font-weight: 400;
}

.explorer-matrix thead tr:first-child th {
  border-top: 0;
  color: var(--accent);
  font-size: 12px;
}

.explorer-matrix thead tr:first-child th + th {
  text-align: center;
}

.explorer-matrix .explorer-matrix-corner {
  width: 220px;
}

.explorer-matrix-reserved-heading {
  color: var(--muted) !important;
  text-align: center !important;
}

.explorer-matrix tbody th {
  width: 220px;
  background: color-mix(in srgb, var(--surface-muted) 26%, var(--surface));
  font-weight: 400;
}

.explorer-matrix tbody th a {
  color: var(--ink);
}

.explorer-matrix tbody th a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.explorer-reserved-cell {
  position: relative;
  display: grid;
  min-height: 72px;
  place-items: center;
  gap: 2px;
  overflow: hidden;
  color: var(--muted);
  text-align: center;
}

.explorer-reserved-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0.55;
}

.explorer-reserved-grid i {
  border-right: 1px solid var(--explorer-grid);
}

.explorer-reserved-grid i:last-child {
  border-right: 0;
}

.explorer-reserved-cell > span:not(.explorer-reserved-grid),
.explorer-reserved-cell small {
  position: relative;
  z-index: 1;
}

.explorer-reserved-cell > span:not(.explorer-reserved-grid) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}

.explorer-reserved-cell .site-icon {
  width: 17px;
  height: 17px;
}

.explorer-reserved-cell small,
.explorer-table-note {
  color: var(--muted);
  font-size: 10px;
}

.explorer-more-row th,
.explorer-more-row td {
  color: var(--muted);
  font-style: italic;
}

.explorer-table-note {
  margin: 0;
  padding: 11px 16px 14px;
  border-top: 1px solid var(--line);
}

.explorer-dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.explorer-dimension-card,
.explorer-field-group,
.explorer-dossier-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.explorer-dimension-card {
  min-height: 154px;
  padding: 18px 15px;
}

.explorer-dimension-card .explorer-card-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.explorer-dimension-card .explorer-card-icon .site-icon {
  width: 18px;
  height: 18px;
}

.explorer-dimension-card h3 {
  margin: 0 0 7px;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.explorer-dimension-card p {
  margin: 0;
  color: var(--muted);
  font: 11px/1.4 var(--teach-serif);
}

.explorer-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 32px 0 42px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 74%, var(--explorer-mint));
}

.explorer-source h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.explorer-source p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font: 13px/1.45 var(--teach-serif);
}

.explorer-source dl {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 14px 0 0;
}

.explorer-source dl div {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.explorer-source dt {
  color: var(--muted);
}

.explorer-source dd {
  margin: 0;
  color: var(--ink);
}

.explorer-closing {
  position: relative;
  overflow: hidden;
  padding: 42px 0 48px;
  background: var(--explorer-mint);
}

.explorer-closing-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr) auto;
  align-items: center;
  gap: 28px;
}

.explorer-closing h2 {
  max-width: 450px;
  margin: 0;
  font-size: clamp(34px, 3.6vw, 49px);
  line-height: 0.99;
}

.explorer-closing-grid > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font: 14px/1.48 var(--teach-serif);
}

.explorer-closing-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.explorer-closing .explorer-botanical {
  right: -24px;
  bottom: -245px;
  width: 255px;
  height: 335px;
  opacity: 0.27;
  pointer-events: none;
}

.explorer-ledger-empty {
  display: grid;
  max-width: 420px;
  min-height: 170px;
  margin: 0 auto;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.explorer-ledger-empty .explorer-empty-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
}

.explorer-ledger-empty .explorer-empty-icon .site-icon {
  width: 22px;
  height: 22px;
}

.explorer-ledger-empty strong {
  color: var(--ink);
  font: 18px/1.2 var(--teach-serif);
}

.explorer-ledger-empty p,
.explorer-ledger-empty small {
  margin: 0;
  font: 12px/1.4 var(--teach-serif);
}

.explorer-ledger-empty small {
  color: var(--muted);
}

.explorer-ledger thead th {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 11px;
}

.explorer-ledger tbody th {
  font-weight: 400;
}

.explorer-ledger tbody td,
.explorer-ledger tbody th {
  height: 54px;
}

.explorer-ledger tbody th a {
  color: var(--accent);
}

.explorer-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.explorer-field-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 18px;
}

.explorer-field-group .explorer-card-icon {
  width: 36px;
  height: 36px;
}

.explorer-field-group .explorer-card-icon .site-icon {
  width: 19px;
  height: 19px;
}

.explorer-field-group h3 {
  margin: 1px 0 5px;
  font-size: 18px;
}

.explorer-field-group p {
  margin: 0 0 12px;
  color: var(--muted);
  font: 12px/1.42 var(--teach-serif);
}

.explorer-field-group ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explorer-field-group li {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding-top: 6px;
  color: var(--muted);
  font: 11px/1.3 var(--teach-serif);
}

.explorer-field-group li code {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 10px;
}

.explorer-field-group li span {
  text-align: right;
}

.explorer-trace-section,
.explorer-relationship {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--explorer-mint) 48%, var(--surface));
}

.explorer-trace-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 32px;
  margin: 38px 0 12px;
  padding: 28px;
}

.explorer-trace-section h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.explorer-trace-section p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font: 13px/1.45 var(--teach-serif);
}

.explorer-trace-chain {
  display: grid;
  grid-template-columns: repeat(7, minmax(55px, 1fr));
  align-items: start;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explorer-trace-chain li {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.explorer-trace-chain li > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.explorer-trace-chain li > span .site-icon {
  width: 14px;
  height: 14px;
}

.explorer-trace-chain strong,
.explorer-trace-chain small {
  max-width: 86px;
}

.explorer-trace-chain strong {
  color: var(--ink);
  font: 12px/1.18 var(--teach-serif);
}

.explorer-trace-chain small {
  font-size: 9px;
  line-height: 1.2;
}

.explorer-relationship {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 44px;
  padding: 16px 20px;
}

.explorer-relationship .explorer-card-icon {
  width: 34px;
  height: 34px;
}

.explorer-relationship p {
  margin: 0;
  color: var(--muted);
  font: 12px/1.45 var(--teach-serif);
}

.explorer-relationship strong,
.explorer-relationship a {
  color: var(--ink);
}

.explorer-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 28px 0 0;
  color: var(--accent);
  font: 12px/1.4 var(--teach-serif);
}

.explorer-back-link .site-icon {
  width: 16px;
  height: 16px;
}

.explorer-reserved-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 22px 0 8px;
  padding: 21px 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--explorer-mint) 70%, var(--surface));
}

.explorer-reserved-callout-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.explorer-reserved-callout-icon .site-icon {
  width: 25px;
  height: 25px;
}

.explorer-reserved-callout h2 {
  margin: 0 0 5px;
  font-size: 23px;
}

.explorer-reserved-callout p:not(.eyebrow) {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  font: 13px/1.45 var(--teach-serif);
}

.explorer-overview-grid,
.explorer-dossier-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 10px;
}

.explorer-dossier-card {
  padding: 20px;
}

.explorer-dossier-card h3 {
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
}

.explorer-dossier-card h3 span {
  color: var(--muted);
  font-size: 0.75em;
}

.explorer-dossier-meta {
  display: grid;
  margin: 0;
}

.explorer-dossier-meta > div {
  display: grid;
  grid-template-columns: minmax(112px, 0.76fr) minmax(0, 1.24fr);
  gap: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  padding: 8px 0;
}

.explorer-dossier-meta > div:last-child {
  border-bottom: 0;
}

.explorer-dossier-meta dt {
  color: var(--muted);
  font: 12px/1.35 var(--teach-serif);
}

.explorer-dossier-meta dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font: 13px/1.35 var(--teach-serif);
}

.explorer-dossier-meta dd small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 10px/1.35 var(--teach-sans);
}

.explorer-results-summary {
  display: flex;
  flex-direction: column;
}

.explorer-summary-empty {
  display: grid;
  flex: 1;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 170px;
  color: var(--muted);
  text-align: center;
}

.explorer-summary-empty > span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
}

.explorer-summary-empty > span .site-icon {
  width: 23px;
  height: 23px;
}

.explorer-summary-empty strong {
  color: var(--ink);
  font: 17px/1.2 var(--teach-serif);
}

.explorer-summary-empty p {
  max-width: 220px;
  margin: 0;
  font: 11px/1.4 var(--teach-serif);
}

.explorer-context-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface-muted) 52%, var(--surface));
}

.explorer-context-note .explorer-card-icon {
  width: 34px;
  height: 34px;
}

.explorer-context-note strong {
  color: var(--ink);
  font: 14px/1.2 var(--teach-serif);
}

.explorer-context-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font: 11px/1.42 var(--teach-serif);
}

.explorer-evidence-list {
  display: grid;
  gap: 8px;
}

.explorer-evidence-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.explorer-evidence-icon {
  width: 36px;
  height: 36px;
}

.explorer-evidence-icon .site-icon {
  width: 19px;
  height: 19px;
}

.explorer-evidence-row h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.explorer-evidence-row p,
.explorer-evidence-row small {
  margin: 0;
  color: var(--muted);
  font: 11px/1.35 var(--teach-serif);
}

.explorer-evidence-row small {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.explorer-unavailable {
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--surface-muted);
  color: var(--muted);
  font: 10px/1.2 var(--teach-sans);
  white-space: nowrap;
}

.explorer-provenance-chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explorer-provenance-chain li {
  position: relative;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
}

.explorer-provenance-chain li + li::before {
  position: absolute;
  top: 16px;
  right: calc(50% + 28px);
  left: calc(-50% + 28px);
  border-top: 1px solid var(--line-strong);
  content: "";
}

.explorer-provenance-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font: 10px/1 var(--teach-mono);
}

.explorer-provenance-chain strong,
.explorer-provenance-chain small {
  display: block;
  max-width: 130px;
}

.explorer-provenance-chain strong {
  color: var(--ink);
  font: 12px/1.2 var(--teach-serif);
}

.explorer-provenance-chain small {
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 1100px) {
  .explorer-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  }

  .explorer-dimension-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .explorer-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-trace-section {
    grid-template-columns: 1fr;
  }

  .explorer-trace-chain {
    max-width: 760px;
  }
}

@media (max-width: 800px) {
  body.explorer-page main .shell {
    width: calc(100% - (var(--teach-gutter-tablet) * 2));
    max-width: none;
  }

  .explorer-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }

  .explorer-hero-copy {
    padding-bottom: 0;
  }

  .explorer-hero-art {
    min-height: 190px;
  }

  .explorer-botanical {
    right: 10%;
    bottom: -165px;
    width: 270px;
    height: 340px;
  }

  .explorer-handwritten {
    top: 8px;
    right: 18%;
  }

  .explorer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .explorer-empty-callout,
  .explorer-source {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .explorer-empty-callout .button,
  .explorer-source .button {
    grid-column: 2;
    justify-self: start;
  }

  .explorer-source {
    align-items: start;
  }

  .explorer-source-icon {
    grid-row: span 2;
  }

  .explorer-closing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
  }

  .explorer-closing-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .explorer-provenance-chain {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 22px;
  }

  .explorer-provenance-chain li + li::before {
    display: none;
  }
}

@media (max-width: 540px) {
  body.explorer-page main .shell {
    width: calc(100% - (var(--teach-gutter-mobile) * 2));
  }

  .explorer-hero-copy {
    padding-top: 18px;
  }

  .explorer-breadcrumbs {
    margin-bottom: 24px;
    font-size: 11px;
  }

  .explorer-hero h1 {
    font-size: 48px;
  }

  .explorer-hero-editorial {
    margin-top: 11px;
    font-size: 31px;
  }

  .explorer-hero-description {
    font-size: 14px;
  }

  .explorer-hero-art {
    min-height: 166px;
  }

  .explorer-botanical {
    right: 0;
    bottom: 0;
    width: 192px;
    height: 205px;
    opacity: 0.42;
  }

  .explorer-handwritten {
    top: 7px;
    right: 8%;
    max-width: 118px;
    font-size: 16px;
  }

  .explorer-stats {
    gap: 6px;
    margin-bottom: 14px;
  }

  .explorer-stat {
    min-height: 84px;
    padding: 10px 11px 9px;
  }

  .explorer-stat dd {
    font-size: 27px;
  }

  .explorer-stat dt {
    font-size: 11px;
  }

  .explorer-stat small {
    font-size: 9px;
  }

  .explorer-tabs {
    gap: 22px;
  }

  .explorer-section {
    padding-top: 34px;
  }

  .explorer-section-heading {
    gap: 12px;
  }

  .explorer-section-heading h2 {
    font-size: 30px;
  }

  .explorer-section-heading p:not(.eyebrow) {
    font-size: 13px;
  }

  .explorer-section-mark {
    width: 36px;
    height: 36px;
  }

  .explorer-empty-callout {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 25px 18px;
    text-align: center;
  }

  .explorer-empty-callout .button,
  .explorer-source .button {
    grid-column: auto;
    justify-self: center;
  }

  .explorer-empty-callout p {
    font-size: 12px;
  }

  .explorer-matrix-frame,
  .explorer-ledger-frame {
    margin-right: -1px;
    margin-left: -1px;
  }

  .explorer-dimension-grid,
  .explorer-field-grid,
  .explorer-overview-grid,
  .explorer-dossier-columns {
    grid-template-columns: 1fr;
  }

  .explorer-dimension-card {
    min-height: 0;
  }

  .explorer-source {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-bottom: 30px;
    padding: 20px 18px;
  }

  .explorer-source-icon {
    grid-row: auto;
  }

  .explorer-source dl {
    display: grid;
    gap: 7px;
  }

  .explorer-closing {
    padding: 34px 0 40px;
  }

  .explorer-closing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .explorer-closing h2 {
    font-size: 36px;
  }

  .explorer-closing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-closing .explorer-botanical {
    right: -68px;
    bottom: -230px;
    opacity: 0.2;
  }

  .explorer-field-group {
    padding: 16px;
  }

  .explorer-field-group li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .explorer-field-group li span {
    text-align: left;
  }

  .explorer-trace-section {
    padding: 20px 16px;
  }

  .explorer-trace-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer-relationship {
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 14px;
  }

  .explorer-reserved-callout {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 19px 17px;
  }

  .explorer-reserved-callout h2 {
    font-size: 21px;
  }

  .explorer-dossier-card {
    padding: 17px;
  }

  .explorer-dossier-meta > div {
    grid-template-columns: minmax(100px, 0.7fr) minmax(0, 1.3fr);
    gap: 9px;
  }

  .explorer-evidence-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 13px;
  }

  .explorer-unavailable {
    grid-column: 2;
    justify-self: start;
  }

  .explorer-provenance-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explorer-main *,
  .explorer-main *::before,
  .explorer-main *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
