/*
 * Homepage: "Ask Google where to get vaccinated in London. It says Ealing."
 * template-parts/section-ealing-answers.php · assets/js/home-evidence.js
 *
 * Every hidden or moving state is scoped to .ea.is-live, which the script
 * adds. Without it (no JavaScript, reduced motion) everything is simply in
 * its finished state: the first search complete and the full list below.
 */

.ea {
  position: relative;
  color: var(--navy);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(201, 164, 74, 0.11) 0%, transparent 60%),
    radial-gradient(50% 40% at 0% 100%, rgba(30, 61, 47, 0.05) 0%, transparent 60%),
    #f7f4ee;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ea.ea--white {
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(201, 164, 74, 0.08) 0%, transparent 60%),
    #ffffff;
}
.ea-sticky { padding: 6.5rem 2rem 3rem; }
.ea-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  grid-template-areas: "head stage" "side stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(3rem, 5vw, 5.5rem);
  row-gap: 2.25rem;
}
.ea-head { grid-area: head; align-self: end; }
.ea-stage { grid-area: stage; align-self: center; min-width: 0; }
.ea-side { grid-area: side; align-self: start; }

/* ── Copy ── */
.ea-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B6914;
  margin: 0 0 1.25rem;
}
.ea-h {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
.ea-h span {
  display: block;
  color: #8B6914;
  background: linear-gradient(100deg, #7a5c10 0%, #b38a2c 45%, #8B6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ea-lede {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
  max-width: 33rem;
}

/* ── Progress: 01 / 06 and six ticks ── */
.ea-progress { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 0.9rem; }
.ea-count {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ea-count b { color: var(--navy); font-weight: 700; }
.ea-ticks { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex: 1; }
.ea-ticks li { flex: 1; margin: 0; }
.ea-tick {
  position: relative;
  display: block;
  width: 100%;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ea-tick::before,
.ea-tick-fill {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
}
.ea-tick::before { background: rgba(26, 43, 60, 0.13); transition: background 0.2s ease; }
.ea-tick:hover::before { background: rgba(26, 43, 60, 0.26); }
.ea-tick-fill { background: var(--gildhart-gold); transform: scaleX(0); transform-origin: 0 50%; }
.ea-tick.is-on .ea-tick-fill { transform: scaleX(1); }
.ea-tick.is-done .ea-tick-fill { transform: scaleX(1); background: rgba(139, 105, 20, 0.45); }
.ea-tick:focus-visible { outline: 2px solid #8B6914; outline-offset: 2px; border-radius: 4px; }

/* ── The results card ── */
.ea-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(26, 43, 60, 0.1);
  border-radius: 18px;
  padding: 1.35rem 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(26, 43, 60, 0.04), 0 30px 64px -18px rgba(26, 43, 60, 0.22);
}
.ea-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 1.05rem;
  background: #f8f9fb;
  border: 1px solid rgba(26, 43, 60, 0.1);
  border-radius: 999px;
  margin: 0 0 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}
.ea-bar svg { width: 16px; height: 16px; margin-top: 0.12em; color: var(--gray-500); flex-shrink: 0; }
.ea-bar .ea-sizer { flex: 1; min-width: 0; }
.ea-bar .ea-sizer > * { align-self: center; }
.ea-q { overflow-wrap: anywhere; }
.ea-q::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--navy);
  opacity: 0;
}
.ea-card.is-typing .ea-q::after { opacity: 1; animation: ea-blink 0.9s steps(1) infinite; }
.ea-fl { color: #b8912f; }

/* Stacks the live text over invisible copies of every answer, so the card
 * is always as tall as its longest answer and never jumps. */
.ea-sizer { display: grid; }
.ea-sizer > * { grid-area: 1 / 1; }
.ea-sizer > [aria-hidden="true"] { visibility: hidden; pointer-events: none; }

/* Every search's results share one grid cell, so the card is always as
 * tall as the tallest and never jumps; only the active one shows. */
.ea-views { display: grid; }
.ea-view { grid-area: 1 / 1; min-width: 0; }
.ea-view:not(.is-active) { visibility: hidden; pointer-events: none; }

/* Google's AI answer, where it names Ealing */
.ea-ai { margin: 0 0 1rem; padding: 0 0 1rem; border-bottom: 1px solid rgba(26, 43, 60, 0.08); }
.ea-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gildhart-green);
}
.ea-label span { color: #8B6914; font-size: 0.9rem; line-height: 1; }
.ea-answer {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.58;
  color: var(--navy);
}
.ea-answer strong {
  font-weight: 800;
  color: var(--gildhart-green);
  padding: 0 0.1em;
  border-radius: 2px;
  background-image: linear-gradient(to top, rgba(201, 164, 74, 0.36) 0 40%, transparent 40%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* The results, with Ealing at its real position */
.ea-results-k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.6rem;
  min-height: 1.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.ea-stamp {
  display: inline-block;
  padding: 0.3rem 0.7rem 0.28rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #8B6914;
  border: 2px solid currentColor;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px #ffffff, inset 0 0 0 3px rgba(139, 105, 20, 0.55);
  transform: rotate(-6deg);
}
.ea-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ea-row {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.35rem;
  margin: 0;
  padding: 0.55rem 0.85rem 0.55rem 0.6rem;
  border-radius: 12px;
}
.ea-row::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #fafafb;
}
.ea-row.is-ealing::before {
  background: linear-gradient(90deg, rgba(201, 164, 74, 0.2) 0%, rgba(201, 164, 74, 0.06) 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 164, 74, 0.5), inset 3px 0 0 #C9A44A;
}
.ea-row.is-ealing::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  opacity: 0;
  pointer-events: none;
}
.ea-pos {
  width: 1.6rem;
  flex-shrink: 0;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-500);
}
.ea-row.is-ealing .ea-pos { color: #8B6914; }
.ea-fav { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #e6e8ec; }
.ea-row.is-ealing .ea-fav { background: radial-gradient(circle at 50% 50%, #ffffff 0 30%, transparent 31%), var(--gildhart-green); }
.ea-site { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ea-site strong { font-family: 'Inter', sans-serif; font-size: 0.9688rem; font-weight: 700; color: var(--navy); }
.ea-site span { font-family: 'Inter', sans-serif; font-size: 0.8125rem; color: var(--gray-500); }
.ea-redact { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ea-redact i { display: block; height: 8px; width: 56%; border-radius: 4px; background: #e9ebef; }
.ea-redact i + i { height: 6px; width: 32%; background: #f0f1f4; }
.ea-row:nth-child(2) .ea-redact i:first-child { width: 47%; }
.ea-row:nth-child(3) .ea-redact i:first-child { width: 62%; }
.ea-row:nth-child(4) .ea-redact i:first-child { width: 41%; }
.ea-row:nth-child(5) .ea-redact i:first-child { width: 52%; }
.ea-row:nth-child(2n) .ea-redact i + i { width: 26%; }

.ea-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.1rem 0 0;
  padding: 0 0.35rem;
}
.ea-note { display: flex; align-items: baseline; gap: 0.7rem; margin: 0; min-width: 0; }
.ea-note .ea-sizer { min-width: 0; }
.ea-note-n {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #8B6914;
  flex-shrink: 0;
}
.ea-note-t {
  font-family: 'Outfit', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}
.ea-run {
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #8B6914;
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.35);
  text-underline-offset: 0.22em;
  white-space: nowrap;
}
.ea-run:hover { text-decoration-color: currentColor; }

/* ── Stats, Sachin, the button ── */
.ea-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 2.5rem;
  margin: 0 0 2rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(26, 43, 60, 0.12);
  border-bottom: 1px solid rgba(26, 43, 60, 0.12);
}
.ea-stats dt {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.ea-stats dd {
  margin: 0;
  max-width: 11.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-600);
}
.ea-quote { display: flex; align-items: flex-start; gap: 1rem; margin: 0 0 2rem; }
.ea-quote img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  background: #e9e4da;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(201, 164, 74, 0.55);
}
.ea-quote blockquote { margin: 0 0 0.5rem; padding: 0; border: 0; }
.ea-quote blockquote p {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--navy);
}
.ea-quote figcaption { font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--gray-600); }
.ea-quote figcaption strong { color: var(--navy); font-weight: 700; }
.ea-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gildhart-gold);
  color: var(--gildhart-black, #0a0a0a);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.ea-btn span { display: inline-block; transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ea-btn:hover { background: #b8912f; transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(139, 105, 20, 0.85); }
.ea-btn:hover span { transform: translateX(3px); }
.ea-btn:active { transform: translateY(0) scale(0.985); transition-duration: 0.08s; }
.ea-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #8B6914;
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.35);
  text-underline-offset: 0.22em;
}
.ea-link:hover { text-decoration-color: currentColor; }

/* ── The list: every search, each with its own link to run it ── */
.ea-ledger { padding: 1rem 2rem 6.5rem; }
.ea-ledger-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(26, 43, 60, 0.12);
}
.ea-ledger-k {
  margin: 0 0 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B6914;
}
.ea-ledger-sub {
  margin: 0 0 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.ea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
}
.ea-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(26, 43, 60, 0.09);
}
.ea-item-n { font-family: 'Space Mono', monospace; font-size: 0.8125rem; font-weight: 700; color: #8B6914; }
.ea-item-q { display: block; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
.ea-item-rank { display: block; margin-top: 0.25rem; font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 700; color: #8B6914; }
.ea-item-note { display: block; margin-top: 0.2rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; line-height: 1.5; color: var(--gray-600); }
.ea-item-run {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #8B6914;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: rgba(139, 105, 20, 0.35);
  text-underline-offset: 0.22em;
}
.ea-item-run:hover { text-decoration-color: currentColor; }

/* ── Motion (only once the script is running) ── */
.ea.is-live .ea-head > *,
.ea.is-live .ea-progress,
.ea.is-live .ea-card,
.ea.is-live .ea-foot,
.ea.is-live .ea-side > * {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.ea.is-live:not(.is-in) .ea-head > *,
.ea.is-live:not(.is-in) .ea-progress,
.ea.is-live:not(.is-in) .ea-card,
.ea.is-live:not(.is-in) .ea-foot,
.ea.is-live:not(.is-in) .ea-side > * { opacity: 0; transform: translateY(20px); }
.ea.is-live.is-in .ea-head > :nth-child(2) { transition-delay: 0.08s; }
.ea.is-live.is-in .ea-head > :nth-child(3) { transition-delay: 0.16s; }
.ea.is-live.is-in .ea-progress { transition-delay: 0.2s; }
.ea.is-live.is-in .ea-card { transition-delay: 0.26s; }
.ea.is-live.is-in .ea-side > :nth-child(1) { transition-delay: 0.3s; }
.ea.is-live.is-in .ea-side > :nth-child(2) { transition-delay: 0.38s; }
.ea.is-live.is-in .ea-side > :nth-child(3) { transition-delay: 0.46s; }

/* One search playing. The script sets these on .ea-stage: --wd the gap
 * between words, --nd when the name lights, --rd when the results start
 * dropping in, --ld when Ealing's row lights, --sd when the stamp lands. */
.ea.is-live .ea-w {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  transition-delay: calc(var(--i, 0) * var(--wd, 38ms));
}
.ea.is-live .ea-answer strong {
  transition: background-size 0.75s cubic-bezier(0.22, 1, 0.36, 1) var(--nd, 0ms), color 0.4s ease var(--nd, 0ms);
}
.ea.is-live .ea-view.is-run .ea-answer strong { animation: ea-glow 1.4s ease var(--nd, 0ms) both; }
.ea.is-live .ea-row {
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--rd, 0ms) + var(--r, 0) * 90ms);
}
.ea.is-live .ea-row.is-ealing::before { transition: opacity 0.5s ease var(--ld, 0ms); }
.ea.is-live .ea-view.is-run .ea-row.is-ealing::after { animation: ea-sweep 1.1s ease var(--ld, 0ms) both; }
.ea.is-live .ea-view.is-run .ea-stamp { animation: ea-stamp 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.2) var(--sd, 0ms) both; }
.ea.is-live .ea-foot .ea-note,
.ea.is-live .ea-foot .ea-run { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.ea.is-live .ea-foot .ea-note { transition-delay: calc(var(--sd, 0ms) + 0.15s); }
.ea.is-live .ea-foot .ea-run { transition-delay: calc(var(--sd, 0ms) + 0.25s); }

/* Waiting for the results: hidden, and nothing transitions on the way out. */
.ea.is-live .ea-view.is-prep .ea-w { opacity: 0; transform: translateY(0.35em); filter: blur(4px); transition: none; }
.ea.is-live .ea-view.is-prep .ea-answer strong { background-size: 0% 100%; color: var(--navy); transition: none; }
.ea.is-live .ea-view.is-prep .ea-row { opacity: 0; transform: translateY(10px); transition: none; }
.ea.is-live .ea-view.is-prep .ea-row.is-ealing::before { opacity: 0; transition: none; }
.ea.is-live .ea-view.is-prep .ea-row.is-ealing .ea-pos { color: var(--gray-500); }
.ea.is-live .ea-view.is-prep .ea-stamp { opacity: 0; }
.ea.is-live .ea-row.is-ealing .ea-pos { transition: color 0.4s ease var(--ld, 0ms); }
.ea.is-live .ea-stage.is-prep .ea-foot .ea-note,
.ea.is-live .ea-stage.is-prep .ea-foot .ea-run { opacity: 0; transform: translateY(6px); transition: none; }

/* "Thinking": the first label shimmers while the search is being typed. */
.ea.is-live .ea-card.is-thinking .ea-view.is-active .ea-label,
.ea.is-live .ea-card.is-thinking .ea-view.is-active:not(.has-ai) .ea-results-k > span:first-child {
  color: transparent;
  background: linear-gradient(90deg, var(--gildhart-green) 0%, var(--gildhart-green) 35%, #c9a44a 50%, var(--gildhart-green) 65%, var(--gildhart-green) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ea-shimmer 1.3s linear infinite;
}
.ea.is-live .ea-card.is-thinking .ea-view.is-active .ea-label span { color: #8B6914; -webkit-text-fill-color: #8B6914; }

/* The list rises in once it's in view. */
.ea.is-live .ea-item { transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.ea.is-live .ea-ledger:not(.is-in) .ea-item { opacity: 0; transform: translateY(14px); }

@keyframes ea-blink { 50% { opacity: 0; } }
@keyframes ea-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes ea-stamp {
  0% { opacity: 0; transform: rotate(-16deg) scale(1.9); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}
@keyframes ea-sweep {
  0% { opacity: 1; background-position: 150% 0; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: -50% 0; }
}
@keyframes ea-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(201, 164, 74, 0); }
  35% { text-shadow: 0 0 18px rgba(201, 164, 74, 0.75); }
}

/* ── Tablets and phones: one column ── */
@media (max-width: 1100px) {
  .ea-sticky { padding: 5rem 1.5rem 2.5rem; }
  .ea-inner {
    max-width: 640px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "stage" "side";
    grid-template-rows: none;
    row-gap: 2.25rem;
  }
  .ea-ledger { padding: 0.5rem 1.5rem 5rem; }
  .ea-ledger-inner { max-width: 640px; }
  .ea-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ea-sticky { padding: 4rem 1.25rem 2rem; }
  .ea-h { font-size: 2rem; }
  .ea-lede { font-size: 1rem; }
  .ea-card { padding: 1.05rem 1.05rem 1.15rem; border-radius: 16px; }
  .ea-bar { align-items: center; font-size: 0.875rem; padding: 0.6rem 0.95rem; gap: 0.55rem; margin-bottom: 1rem; border-radius: 22px; }
  .ea-bar svg { margin-top: 0; }
  .ea-answer { font-size: 1rem; line-height: 1.55; }
  .ea-ai { margin-bottom: 0.85rem; padding-bottom: 0.85rem; }
  .ea-stamp { font-size: 0.75rem; padding: 0.26rem 0.55rem 0.24rem; }
  .ea-row { min-height: 3.1rem; gap: 0.65rem; padding: 0.5rem 0.7rem 0.5rem 0.45rem; }
  .ea-pos { width: 1.3rem; }
  .ea-site strong { font-size: 0.9375rem; }
  .ea-foot { flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 0 0.15rem; }
  .ea-note-t { font-size: 1rem; }
  .ea-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .ea-stats dt { font-size: 1.5rem; }
  .ea-stats dd { font-size: 0.75rem; }
  .ea-quote blockquote p { font-size: 1rem; }
  .ea-btn { width: 100%; justify-content: center; }
  .ea-ledger { padding: 0 1.25rem 4rem; }
  .ea-item { grid-template-columns: 1.85rem minmax(0, 1fr); gap: 0.4rem 0.75rem; }
  .ea-item-run { grid-column: 2; }
}

/* ── The list as an evidence table (live; ?ledger=v1 shows the old list) ──
 * One white card, a quiet header row, then a row per search. Navy and
 * grey only for text, dark green for the position badges, no small gold
 * type. Tablets and phones: each row stacks. */
.ea-ledger--table .ea-ledger-inner { border-top: 0; padding-top: 0.5rem; }
.ea-tbl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
}
.ea-tbl-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.ea-tbl-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}
.ea-tbl-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #2f7a55; box-shadow: 0 0 0 3px rgba(47, 122, 85, 0.16); }
.ea-tbl {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 18px 44px -26px rgba(16, 24, 40, 0.22);
}
.ea-tr {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1.5fr) 8.25rem 9.5rem minmax(0, 1.35fr) 6.5rem;
  align-items: center;
  column-gap: 1.25rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid #eef0f3;
  transition: background-color 0.2s ease;
}
.ea-tr--head {
  border-top: 0;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  background: #f9fafb;
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}
.ea-tr.ea-item { border-bottom: 0; }
.ea-tr.ea-item:hover { background: #fbfbfc; }
.ea-tr .ea-c-n { font-family: 'Inter', sans-serif; font-size: 0.8125rem; font-weight: 600; color: #9ca3af; font-variant-numeric: tabular-nums; }
.ea-tr--head .ea-c-n { color: inherit; }
.ea-item .ea-c-q {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}
.ea-item .ea-c-q svg { width: 15px; height: 15px; flex-shrink: 0; color: #9ca3af; }
.ea-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #ffffff;
  background: var(--gildhart-green);
}
.ea-pill.is-near { color: var(--gildhart-green); background: #eaf2ee; box-shadow: inset 0 0 0 1px rgba(30, 61, 47, 0.22); }
.ea-ai-yes { display: inline-flex; align-items: flex-start; gap: 0.45rem; font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.ea-ai-yes svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.05em; color: #2f7a55; }
.ea-ai-yes small { display: block; font-size: 0.75rem; font-weight: 500; color: #6b7280; }
.ea-ai-no { font-family: 'Inter', sans-serif; font-size: 0.9375rem; color: #c2c7cf; }
.ea-item .ea-c-why { font-family: 'Inter', sans-serif; font-size: 0.9375rem; line-height: 1.5; color: #4b5563; }
.ea-c-run { justify-self: end; }
.ea-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ea-run-btn svg { width: 14px; height: 14px; }
.ea-run-btn:hover { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.ea-run-btn:focus-visible { outline: 2px solid #8B6914; outline-offset: 2px; }

.ea .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .ea-tr.ea-tr--head { display: none; }
  .ea-tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.6rem;
    padding: 1rem 1.1rem;
  }
  .ea-tr .ea-c-n { display: none; }
  .ea-item .ea-c-q { order: 1; flex: 1 1 calc(100% - 7rem); }
  .ea-c-run { order: 2; margin-left: auto; }
  .ea-c-pos { order: 3; }
  .ea-c-ai { order: 4; }
  .ea-ai-no { display: none; }
  .ea-ai-yes small { display: inline; margin-left: 0.25rem; }
  .ea-item .ea-c-why { order: 5; flex-basis: 100%; font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ea *, .ea *::before, .ea *::after { animation: none !important; transition: none !important; }
}
