/* Verified evidence blocks on the architecture page: each states what exists,
   what is only planned or under study, and where the limit is. Colours come
   from the shared tokens so light, dark and NAOMI-off all stay readable. */

.arch-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.arch-evidence--single {
  grid-template-columns: minmax(0, 46rem);
}

.arch-evidence--note {
  grid-template-columns: minmax(0, 1fr);
  margin: 1.1rem 0 0;
}

.arch-evidence-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.9rem;
  row-gap: 0.45rem;
  align-content: start;
  padding: 1.15rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(127, 224, 203, 0.55);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.arch-evidence-item > :not(.arch-evidence-icon) {
  grid-column: 2;
}

.arch-evidence-item h3 {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.35;
}

.arch-evidence-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.arch-evidence-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--teal);
  background: rgba(127, 224, 203, 0.08);
}

.arch-evidence-item:not(:has(h3)) .arch-evidence-icon {
  grid-row: 1 / span 2;
}

.arch-evidence-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.arch-evidence-link a {
  color: var(--teal);
  text-underline-offset: 0.2em;
}

.arch-evidence-status {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

@media (hover: hover) {
  .arch-evidence-item:hover {
    transform: translateY(-2px);
    border-color: rgba(127, 224, 203, 0.5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }

  .arch-evidence-item:hover .arch-evidence-icon svg {
    animation: arch-evidence-nudge 0.7s ease;
  }
}

@keyframes arch-evidence-nudge {
  0% { transform: scale(1) rotate(0); }
  45% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes arch-evidence-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .arch-evidence-item {
      animation: arch-evidence-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .arch-evidence-item,
  .arch-evidence-item:hover {
    transition: none;
    transform: none;
  }

  .arch-evidence-item:hover .arch-evidence-icon svg {
    animation: none;
  }
}

@media (max-width: 760px) {
  .arch-evidence {
    grid-template-columns: minmax(0, 1fr);
  }
}
