/* Look of the fixtures index page (index.html, generated by
   scripts/build-fixture-index.mjs). Colours come from dynamic-lab.css tokens;
   the fallbacks keep the page readable if that stylesheet is missing. */

.ada-skip { position: absolute; left: -9999px; top: auto; }
.ada-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #151828;
  outline: 3px solid #3b5bdb;
}

.ada-wide { max-width: 64rem; }
.ada-hero { padding-bottom: 0; }
.ada-lead { max-width: 42rem; color: #595e73; color: var(--muted-foreground, #595e73); }

.ada-stats {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}
.ada-stats li {
  padding: 0.75rem 1rem;
  border: 1px solid #d7d9e5;
  border-radius: 0.75rem;
  background: #fff;
  background: var(--card, #fff);
}
.ada-stats strong { display: block; font-size: 1.75rem; line-height: 1.1; }

.ada-contents { margin-top: 2rem; }
.ada-contents h2 { margin: 0 0 0.5rem; font-size: 1rem; }
.ada-contents ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ada-contents a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid #d7d9e5;
  border-radius: 999px;
  background: #fff;
  background: var(--card, #fff);
  color: inherit;
  text-decoration: none;
}
.ada-contents a:hover { text-decoration: underline; }

.ada-group { margin-top: 2.5rem; }
.ada-group h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d7d9e5;
  border-bottom-color: var(--border, #d7d9e5);
  font-size: 1.35rem;
}
.ada-count { font-size: 0.85rem; font-weight: 500; color: #595e73; color: var(--muted-foreground, #595e73); }

.ada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.ada-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #d7d9e5;
  border-radius: 0.75rem;
  background: #fff;
  background: var(--card, #fff);
  color: #151828;
  color: var(--card-foreground, #151828);
}
.ada-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.ada-rule-no {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #595e73;
  color: var(--muted-foreground, #595e73);
}
.ada-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ada-chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #eaecf3;
  background: var(--muted, #eaecf3);
  color: #151828;
  color: var(--foreground, #151828);
  font-size: 0.75rem;
  font-weight: 600;
}
.ada-chip-detected { background: #dcfce7; color: #14532d; }
.ada-chip-gap { background: #fef3c7; color: #78350f; }
.ada-card-finding { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.ada-card code { font-size: 0.8rem; overflow-wrap: anywhere; }
.ada-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: auto 0 0;
  font-size: 0.9rem;
}
.ada-lead code, .ada-foot code, .ada-quiet code { overflow-wrap: anywhere; }
.ada-links a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.ada-quiet { margin: 1rem 0 0; padding-left: 1.25rem; }
.ada-quiet li { margin: 0.6rem 0; overflow-wrap: anywhere; }
.ada-quiet-why { margin: 0.15rem 0 0; font-size: 0.9rem; }

.ada-foot { margin-top: 3rem; font-size: 0.85rem; color: #595e73; color: var(--muted-foreground, #595e73); }

:root[data-theme="dark"] .ada-chip-detected { background: #14532d; color: #dcfce7; }
:root[data-theme="dark"] .ada-chip-gap { background: #78350f; color: #fef3c7; }
:root[data-theme="dark"] .ada-skip:focus { background: #151828; color: #f1f3f8; }
