/* Site audit layouts */
.audit-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.65rem 1rem}
.audit-expertise-grid {
  --expertise-accent: light-dark(#51476e, #d5c6f1);
  --expertise-edge: light-dark(#d9d3e4, #373140);
  display: grid;
  gap: clamp(.9rem, 2vw, 1.5rem);
  margin-top: .8rem;
}

.audit-expertise-card {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: start;
  gap: .85rem;
  min-width: 0;
  padding: clamp(.9rem, 2.1vw, 1.65rem);
  border: 1px solid var(--expertise-edge);
  background: color-mix(in srgb, var(--bg), var(--expertise-accent) 5%);
}

.audit-expertise-card:first-child {
  border-block-start: 2px solid var(--expertise-accent);
  background: color-mix(in srgb, var(--bg), var(--expertise-accent) 8%);
}

.audit-expertise-card > [aria-hidden="true"][id] { position: absolute; }
.audit-expertise-card h3 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: .55rem;
  margin: 0 0 .65rem;
  line-height: 1.2;
  text-wrap: pretty;
}
.audit-expertise-card p {
  max-width: 59ch;
  margin: 0;
  font-size: var(--type-body, 1.125rem);
  line-height: 1.52;
}
.audit-expertise-card h3 .cap-method-icon {
  color: var(--expertise-accent);
  width: 1.15em;
  height: 1.15em;
  margin: .04em 0 0;
}
.audit-expertise-card dl {
  margin: 0;
  padding: .55rem .75rem;
  border-inline-start: 2px solid var(--expertise-accent);
  background: color-mix(in srgb, var(--bg), var(--expertise-accent) 9%);
  font-size: 1rem;
  line-height: 1.42;
}
.audit-expertise-card dt {
  margin-block-end: .18rem;
  color: var(--expertise-accent);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.audit-expertise-card dd { margin: 0; color: var(--text); }
.audit-expertise-card .inline-link {
  justify-self: start;
  padding: .22rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-underline-offset: .2em;
}
.audit-expertise-card .inline-link:hover,
.audit-expertise-card .inline-link:focus-visible { color: var(--expertise-accent); }

@media (min-width: 701px) {
  .audit-expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-expertise-card:first-child { grid-column: 1 / -1; }
}

@media (min-width: 980px) {
  .audit-expertise-card:first-child {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: clamp(1.6rem, 4vw, 3.5rem);
  }
  .audit-expertise-card:first-child > div { grid-row: 1 / span 2; }
  .audit-expertise-card:first-child > :is(dl, .inline-link) { grid-column: 2; }
}

.research-project .methods {
  gap: .15rem .65rem;
  margin-block: .85rem 1rem;
}
.research-project .methods li {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.research-project .methods li + li::before {
  content: "·" / "";
  margin-inline-end: .65rem;
  color: var(--section-accent);
}

#workflow .workflow-grid {gap:1.4rem}
#workflow .workflow-grid li {border-inline:0;border-bottom:0;border-top:2px solid light-dark(#70658d,#bdb0e1);padding:1rem .7rem}
#workflow .workflow-grid .audit-output {margin-top:1rem;padding-top:.6rem;border-top:1px solid var(--line);font-size:.95rem}
.audit-output strong {display:block;color:light-dark(#51476e,#d5c6f1)}
#tool-stack .audit-method-links {margin-top:.85rem}
@media(max-width:900px){
 #workflow .workflow-grid {grid-template-columns:1fr;padding-inline-start:1rem}
 #workflow .workflow-grid li {border-top:0;border-inline-start:1px solid light-dark(#70658d,#bdb0e1);padding:0 0 1rem 1rem}
 #workflow .workflow-grid li:not(:last-child)::after {bottom:-1.12rem;left:-.27rem}
}
main[data-section="work"] .research-project p.project-meta {border:0;background:none;padding:0;border-radius:0;display:block;width:auto;color:light-dark(#54515f,#bfb9cb);margin:.45rem 0 1rem}
.word-atlas .atlas-cloud button.atlas-word[aria-pressed="true"] {color:var(--section-accent, light-dark(#514f7b,#d5d7ff));text-decoration-thickness:.12em}
.audit-framing-visual {margin:1.5rem 0;padding:1rem 0;border-block:1px solid var(--line)}
.audit-framing-visual figcaption strong,.audit-framing-visual figcaption span {display:block}
.audit-framing-visual figcaption strong {font-size:1.2rem}
.audit-framing-visual figcaption span {margin-top:.35rem}
.audit-framing-visual dl {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem;margin:1rem 0 0}
.audit-framing-visual dl div {padding:.65rem;border-block-start:2px solid var(--section-accent, var(--editorial-accent));background:light-dark(#eeeaf4,#221e2c)}
.audit-framing-visual dt {font-weight:700}
.audit-framing-visual dd {margin:.2rem 0 0}
@media(max-width:650px){.audit-framing-visual dl {grid-template-columns:repeat(2,minmax(0,1fr))}}
.audit-flow-pulse {display:none;stroke:light-dark(#426420,#dcffab);stroke-width:3.5;stroke-linecap:round;stroke-dasharray:11 89;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .article-flow.is-in-view .audit-flow-pulse {display:inline;animation:audit-direction 2.3s linear 2 both}
 .article-flow.is-in-view .audit-flow-pulse:nth-of-type(4) {animation-delay:.3s}
}
@keyframes audit-direction {
 0% {stroke-dashoffset:11;opacity:0}
 12%,85% {opacity:1}
 100% {stroke-dashoffset:-100;opacity:0}
}
