.evf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 1.5rem 0 2rem;
  min-width: 0;
}

.evf-controls .panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.evf-searchrow {
  display: grid;
  gap: 6px;
}

.evf-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.evf-inputwrap {
  position: relative;
  display: flex;
  align-items: center;
}

.evf-search {
  width: 100%;
  min-height: 46px;
  font-size: 1.05rem;
  padding-right: 76px;
}

.evf-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.evf-clear[hidden],
.evf-more[hidden],
.evf-reset[hidden],
.evf-showdep[hidden],
.evf-popular[hidden] {
  display: none;
}

.evf-examples {
  gap: 6px;
}

.evf-group {
  display: grid;
  gap: 6px;
}

.evf-grouplabel {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.evf-categories,
.evf-filters {
  gap: 6px;
}

.evf-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--faint);
}

.chip.on .evf-count {
  color: var(--accent-ink);
}

.evf-depsel {
  display: inline-block;
  margin-top: 4px;
  max-width: 100%;
}

.evf-deprecated {
  min-height: 34px;
  width: auto;
  max-width: 100%;
}

.evf-popularbox {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.evf-popularbox .row {
  gap: 6px;
}

.evf-pop .mono {
  font-size: 0.82rem;
}

.evf-statusrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.evf-status {
  margin: 0;
  min-width: 0;
}

.evf-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.evf-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  min-width: 0;
  scroll-margin-top: 80px;
}

.evf-card.open {
  border-color: var(--accent);
  box-shadow: var(--shadow-1);
}

.evf-flash {
  animation: evf-flash 2s ease-out;
}

@keyframes evf-flash {
  0% { background: var(--accent-soft); }
  100% { background: var(--surface); }
}

.evf-cardhead {
  margin: 0;
  font-size: inherit;
}

.evf-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-areas: "title caret" "when caret";
  gap: 4px 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-m);
}

.evf-toggle:hover {
  background: var(--raised);
}

.evf-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.evf-title {
  grid-area: title;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.evf-name {
  font-family: var(--font-code);
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.evf-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.evf-badge-cat {
  color: var(--muted);
  border-color: var(--line);
}

.evf-when {
  grid-area: when;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.evf-caret {
  grid-area: caret;
  align-self: center;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.evf-card.open .evf-caret {
  transform: rotate(-135deg);
}

.evf-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 4px 14px 16px;
  min-width: 0;
}

.evf-body[hidden] {
  display: none;
}

.evf-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.evf-block h4 {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.evf-block p,
.evf-block ul {
  margin: 0;
}

.evf-tips,
.evf-facts,
.evf-chapters {
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.evf-deprecated-box {
  padding: 10px 12px;
  border: 1px solid var(--bad);
  border-radius: var(--radius-m);
  background: var(--bad-soft);
  line-height: 1.5;
}

.evf-snippethead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.evf-modes {
  display: flex;
  gap: 6px;
}

.evf-code {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--code-bg);
  overflow: hidden;
  min-width: 0;
}

.evf-codehead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}

.evf-codetitle {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--muted);
}

.evf-codeactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evf-codescroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.evf-pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-code);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--code-fg);
  tab-size: 4;
}

.evf-pre code {
  display: block;
  min-width: max-content;
  white-space: pre;
  font-family: inherit;
}

.evf-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  scrollbar-width: thin;
}

.evf-methods {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.evf-methods th,
.evf-methods td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.evf-methods tbody:last-child tr:last-child td {
  border-bottom: 0;
}

.evf-methods th {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--raised);
  white-space: nowrap;
}

.evf-methods td:first-child {
  min-width: 14rem;
}

.evf-methods td:nth-child(2) {
  white-space: nowrap;
}

.evf-methods td:nth-child(3) {
  min-width: 16rem;
}

.evf-method {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.evf-showmethods {
  justify-self: start;
}

.evf-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.evf-chainnode {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 0.84rem;
  background: var(--surface);
}

.evf-chaincurrent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

.evf-chainlink {
  text-decoration: none;
}

.evf-chainlink:hover {
  border-color: var(--accent);
}

.evf-chainarrow {
  font-size: 0.78rem;
  color: var(--faint);
}

.evf-footer {
  gap: 14px;
}

.evf-links {
  gap: 8px;
}

.evf-morewrap {
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .evf-toggle {
    padding: 12px;
  }

  .evf-body {
    padding: 4px 12px 14px;
  }

  .evf-search {
    font-size: 1rem;
  }

  .evf-codeactions .btn {
    flex: 1 1 auto;
  }

  .evf-methods {
    min-width: 0;
  }

  .evf-methods thead {
    display: none;
  }

  .evf-methods tbody,
  .evf-methods tr,
  .evf-methods td {
    display: block;
  }

  .evf-methods tbody[hidden] {
    display: none;
  }

  .evf-methods tr {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
  }

  .evf-methods td,
  .evf-methods td:first-child,
  .evf-methods td:nth-child(3) {
    min-width: 0;
    padding: 2px 0;
    border-bottom: 0;
    white-space: normal;
  }

  .evf-methods td:nth-child(2)::before {
    content: "Gives back: ";
    color: var(--muted);
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evf-flash {
    animation: none;
  }

  .evf-caret {
    transition: none;
  }
}
