/* src/styles/defi-detection.css */
.defi-detection {
  --dt-ink:#302923;
  --dt-muted:#70655c;
  --dt-line:#d8cec4;
  --dt-paper:#fcfaf7;
  --dt-tint:#f0e9e1;
  --dt-accent:#704d38;
  width: min(1300px, calc(100% - 80px));
  margin: 0 auto;
  padding: 28px 0 55px;
  color: var(--dt-ink);
  line-height: 1.7;
}
.defi-detection *,
.defi-detection *::before,
.defi-detection *::after {
  box-sizing: border-box;
}
.defi-detection :is(h1, h2, h3, p) {
  margin: 0;
}
.defi-detection a {
  color: inherit;
  text-decoration: none;
}
.defi-detection a:hover {
  color: var(--dt-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.defi-detection :is(button, input, select) {
  font: inherit;
}
.defi-detection :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #976b45;
  outline-offset: 4px;
}
.defi-detection button {
  cursor: pointer;
}
.defi-detection button:disabled {
  opacity: .55;
  cursor: default;
}
.dt-topline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--dt-ink);
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-topline a {
  font-weight: 700;
}
.dt-eyebrow {
  color: var(--dt-accent);
  font-size: 11px;
  letter-spacing: .15em;
  font-weight: 700;
}
.dt-header > .dt-eyebrow {
  margin-top: 32px;
}
.dt-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 10px 0 28px;
  border-bottom: 3px solid var(--dt-ink);
}
.dt-title-row h1 {
  font-family:
    "Songti SC",
    "Noto Serif CJK SC",
    "STSong",
    serif;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.3;
}
.dt-title-row h1 span {
  color: #a55437;
}
.dt-title-row p {
  color: var(--dt-muted);
  margin-top: 15px;
  font-size: 14px;
}
.dt-report-index {
  font-size: 12px;
  font-weight: 650;
  color: var(--dt-accent) !important;
  white-space: nowrap;
}
.dt-scan {
  padding: 24px 0;
  border-bottom: 1px solid var(--dt-line);
}
.dt-scan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dt-scan-state {
  color: var(--dt-muted);
  font-size: 12px;
  font-weight: 650;
}
.dt-scan-limited {
  color: #875f2c;
}
.dt-scan-heading button {
  border: 1px solid var(--dt-accent);
  color: var(--dt-accent);
  background: transparent;
  border-radius: 3px;
  padding: 8px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.dt-scan-heading button:hover:not(:disabled) {
  background: var(--dt-tint);
}
.dt-cutoffs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 35px;
  margin-top: 17px;
}
.dt-cutoffs p {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.dt-cutoffs span {
  color: var(--dt-muted);
  margin-right: 10px;
  font-size: 11px;
}
.dt-coverage {
  margin-top: 14px !important;
  font-size: 12px;
  color: var(--dt-muted);
}
.dt-coverage strong {
  color: var(--dt-ink);
}
.dt-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.dt-sources p {
  padding: 11px 13px;
  background: var(--dt-tint);
  font-size: 11px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.dt-sources strong {
  font-size: 11px;
}
.dt-sources span {
  margin-left: 10px;
  color: #875f2c;
}
.dt-sources time,
.dt-sources small {
  display: block;
  color: var(--dt-muted);
  margin-top: 4px;
  font-size: 11px;
}
.dt-scan-note,
.dt-scope {
  font-size: 11px;
  color: var(--dt-muted);
  margin-top: 13px !important;
  overflow-wrap: anywhere;
}
.dt-scope {
  border-left: 2px solid #c4aa90;
  padding-left: 12px;
}
.dt-collection-gaps {
  margin-top: 12px;
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-collection-gaps summary,
.dt-evidence summary {
  cursor: pointer;
  color: var(--dt-accent);
}
.dt-collection-gaps ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.dt-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 25px 0;
  border-bottom: 1px solid var(--dt-line);
}
.dt-counts > div {
  padding: 0 22px;
  border-right: 1px solid var(--dt-line);
}
.dt-counts > div:first-child {
  padding-left: 0;
}
.dt-counts > div:last-child {
  border: 0;
  padding-right: 0;
}
.dt-counts span {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.dt-counts strong {
  display: block;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.dt-counts small {
  display: block;
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-results {
  margin-top: 38px;
}
.dt-results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
}
.dt-results-heading h2 {
  font-size: 26px;
  margin-top: 5px;
}
.dt-results-heading > p {
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 170px 170px;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--dt-ink);
  border-bottom: 1px solid var(--dt-line);
}
.dt-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--dt-muted);
  min-width: 0;
}
.dt-filters input,
.dt-filters select {
  padding: 9px 11px;
  border: 1px solid var(--dt-line);
  background: #fffcf8;
  color: var(--dt-ink);
  border-radius: 2px;
  font-size: 12px;
  width: 100%;
  min-width: 0;
}
.dt-result-count {
  font-size: 11px;
  color: var(--dt-muted);
  margin: 12px 0 18px !important;
}
.dt-item {
  padding: 25px 28px;
  border: 1px solid var(--dt-line);
  background: var(--dt-paper);
  margin-top: 18px;
  min-width: 0;
}
.dt-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: var(--dt-muted);
  font-size: 11px;
}
.dt-item-top > time {
  margin-left: auto;
}
.dt-item-chains {
  margin-top: 10px;
  font-size: 11px;
  color: var(--dt-muted);
  overflow-wrap: anywhere;
}
.dt-analysis-state {
  padding: 4px 8px;
  border-radius: 2px;
  background: #f5eadb;
  color: #875f2c;
  font-weight: 650;
}
.dt-observation-state {
  background: var(--dt-tint);
  color: var(--dt-accent);
}
.dt-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 17px;
}
.dt-item-heading h3 {
  font-size: 22px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.dt-item-heading > span {
  font-size: 11px;
  font-weight: 750;
  color: var(--dt-accent);
  flex-shrink: 0;
}
.dt-item-summary {
  font-size: 12px;
  color: var(--dt-muted);
  margin-top: 12px !important;
  overflow-wrap: anywhere;
}
.dt-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dt-trigger {
  padding: 12px 14px;
  background: var(--dt-tint);
  flex: 1 1 200px;
  min-width: 0;
}
.dt-trigger > span {
  display: block;
  font-size: 11px;
}
.dt-trigger strong {
  display: block;
  font-size: 25px;
  color: #ac4033;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.dt-trigger-unverified strong {
  color: var(--dt-muted);
}
.dt-trigger-boundary {
  margin-top: 4px;
  color: #875f2c;
  font-weight: 650;
}
.dt-trigger small {
  display: block;
  font-size: 11px;
  color: var(--dt-muted);
  overflow-wrap: anywhere;
}
.dt-auto-analysis,
.dt-item-gaps {
  margin-top: 17px;
  font-size: 12px;
}
.dt-auto-analysis strong,
.dt-item-gaps strong {
  font-size: 11px;
  color: var(--dt-accent);
}
.dt-auto-analysis p,
.dt-item-gaps p {
  color: var(--dt-muted);
  margin-top: 5px;
}
.dt-item-gaps ul {
  margin: 5px 0 0;
  padding-left: 18px;
  color: var(--dt-muted);
}
.dt-evidence {
  margin-top: 17px;
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-evidence > p {
  margin-top: 8px;
}
.dt-evidence ul {
  margin: 10px 0 0;
  padding-left: 18px;
}
.dt-evidence li > span {
  display: block;
  font-size: 11px;
}
.dt-evidence a {
  overflow-wrap: anywhere;
}
.dt-item-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 17px;
  margin-top: 19px;
  border-top: 1px solid var(--dt-line);
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-item-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.dt-read-analysis {
  font-size: 12px;
  font-weight: 700;
  color: var(--dt-accent) !important;
}
.dt-empty {
  padding: 45px 22px;
  text-align: center;
  border: 1px solid var(--dt-line);
}
.dt-empty h3 {
  font-size: 23px;
}
.dt-empty p {
  max-width: 620px;
  margin: 14px auto;
  font-size: 12px;
  color: var(--dt-muted);
}
.dt-empty button,
.dt-empty > a {
  border: 0;
  background: transparent;
  color: var(--dt-accent);
  font-size: 12px;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 26px;
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-pagination button {
  border: 1px solid var(--dt-line);
  background: transparent;
  color: var(--dt-accent);
  padding: 9px 15px;
  font-size: 12px;
  border-radius: 2px;
}
.dt-footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 2px solid var(--dt-ink);
  font-size: 11px;
  color: var(--dt-muted);
}
.dt-footer a {
  white-space: nowrap;
  font-weight: 650;
}
@media (max-width: 900px) {
  .defi-detection {
    width: calc(100% - 48px);
  }
  .dt-counts > div {
    padding: 0 14px;
  }
  .dt-title-row {
    align-items: flex-end;
  }
  .dt-sources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dt-filters {
    grid-template-columns: minmax(180px, 1fr) 145px 145px;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .defi-detection {
    width: calc(100% - 32px);
    padding-top: 20px;
  }
  .dt-topline {
    font-size: 11px;
    gap: 10px;
  }
  .dt-header > .dt-eyebrow {
    margin-top: 27px;
    font-size: 11px;
  }
  .dt-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 23px;
  }
  .dt-title-row h1 {
    font-size: 42px;
  }
  .dt-title-row p {
    font-size: 12px;
    margin-top: 12px;
  }
  .dt-report-index {
    font-size: 11px;
  }
  .dt-scan-heading {
    align-items: flex-start;
    gap: 13px;
  }
  .dt-scan-state {
    font-size: 11px;
  }
  .dt-scan-heading button {
    font-size: 11px;
    padding: 7px 9px;
  }
  .dt-cutoffs {
    flex-direction: column;
    gap: 8px;
  }
  .dt-cutoffs p {
    font-size: 11px;
  }
  .dt-cutoffs span {
    font-size: 11px;
    margin-right: 8px;
  }
  .dt-sources {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .dt-sources p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 8px;
    padding: 9px 11px;
  }
  .dt-sources span {
    margin-left: 0;
  }
  .dt-sources time {
    margin: 0;
  }
  .dt-sources small {
    flex-basis: 100%;
    margin: 0;
  }
  .dt-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
    padding: 22px 0;
  }
  .dt-counts > div {
    padding: 0 15px;
  }
  .dt-counts > div:nth-child(odd) {
    padding-left: 0;
  }
  .dt-counts > div:nth-child(even) {
    padding-right: 0;
    border: 0;
  }
  .dt-counts span {
    font-size: 11px;
  }
  .dt-counts strong {
    font-size: 32px;
  }
  .dt-counts small {
    font-size: 11px;
  }
  .dt-results {
    margin-top: 30px;
  }
  .dt-results-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .dt-results-heading h2 {
    font-size: 24px;
  }
  .dt-results-heading > p {
    font-size: 11px;
  }
  .dt-filters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .dt-search {
    grid-column: 1/-1;
  }
  .dt-item {
    padding: 20px 16px;
  }
  .dt-item-top {
    gap: 6px 12px;
    font-size: 11px;
  }
  .dt-item-top > time {
    margin-left: 0;
  }
  .dt-item-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .dt-item-heading h3 {
    font-size: 20px;
  }
  .dt-item-heading > span {
    font-size: 11px;
    max-width: 65px;
    overflow-wrap: anywhere;
    flex-shrink: 1;
  }
  .dt-triggers {
    gap: 8px;
  }
  .dt-trigger {
    flex-basis: 100%;
    padding: 10px 12px;
  }
  .dt-trigger strong {
    font-size: 24px;
  }
  .dt-item-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }
  .dt-item-footer > div {
    width: 100%;
    justify-content: space-between;
  }
  .dt-pagination {
    gap: 15px;
  }
  .dt-pagination button {
    font-size: 11px;
    padding: 8px 11px;
  }
  .dt-footer {
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
  }
}
@media (max-width: 600px) {
  .dt-title-row p,
  .dt-item-summary,
  .dt-auto-analysis,
  .dt-item-gaps,
  .dt-empty p,
  .dt-evidence > p,
  .dt-evidence ul {
    font-size: 14px;
  }
  .dt-auto-analysis strong,
  .dt-item-gaps strong {
    font-size: 12px;
  }
  .dt-collection-gaps {
    margin-top: 10px;
  }
  .dt-sources {
    margin-top: 10px;
  }
}
