@import url("../week4/style.css");

.evidence-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .62);
  font-size: 13px;
}

.reading-table td:first-child,
.reading-table th:first-child {
  width: 30%;
}

.source-note {
  color: var(--muted);
  font-size: 13px;
}

.compact-code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand,
  .navlinks {
    width: 100%;
    max-width: 100%;
  }

  .navlinks {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .navlinks a,
  .reading-table td,
  .reading-table th {
    white-space: normal;
  }

  .reading-table td:first-child,
  .reading-table th:first-child {
    width: auto;
  }

  .algorithm-table,
  .algorithm-table tbody {
    display: block;
    width: 100%;
  }

  .algorithm-table tr:first-child {
    display: none;
  }

  .algorithm-table tr[data-neetcode-slot="true"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding: 18px 0;
    border-top: 2px solid var(--line-strong);
  }

  .algorithm-table td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .algorithm-table td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .algorithm-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .hero > *,
  .section-head > *,
  .grid-2 > *,
  .grid-3 > *,
  .grid-4 > *,
  .tile,
  .day-hero,
  .eyebrow,
  h1,
  h2,
  h3,
  p,
  code {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
