/* Audit scan: signature component */
.scan {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 820px) {
  .scan { grid-template-columns: 1fr; }
}
.scan__figure {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: .75rem .75rem .5rem;
}
.scan__map {
  position: relative;
}
.scan__figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.scan__figure .t0 { fill: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.scan__figure .t1 { fill: color-mix(in srgb, var(--brand) 28%, var(--surface)); }
.scan__figure .t2 { fill: color-mix(in srgb, var(--brand) 55%, var(--surface)); }
.scan__figure .t3 { fill: color-mix(in srgb, var(--brand) 80%, var(--surface)); }
.scan__figure rect,
.scan__figure polygon {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-opacity: .55;
}
.scan__ground {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  opacity: .5;
}
.scan__wave {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: .7;
}
.scan__hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface);
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.scan__hot:hover,
.scan__hot:focus-visible {
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 30%, transparent);
  outline: none;
}
.scan__hot[aria-pressed="true"] {
  background: var(--brand);
  color: var(--surface);
}
.scan__scale {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-size: .8rem;
  color: var(--muted);
}
.scan__bar {
  flex: 1;
  height: .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand) 10%, var(--surface)),
    color-mix(in srgb, var(--brand) 80%, var(--surface)));
}
.scan__figure .note { margin: .4rem 0 0; }
.scan__panel h3 { margin-top: 0; }
.scan__panel p:last-child { margin-bottom: 0; }
.scan__info[hidden] { display: none; }

/* Card titles: reserve two lines so rows line up across a card row */
.card h3,
.card__title {
  min-height: 2.6em;
}

/* Phone header: keep the full brand name readable */
@media (max-width: 479px) {
  .brand,
  .site-brand,
  .site-header__brand,
  .masthead__brand,
  header a[class*="brand"] {
    font-size: 16px;
    white-space: normal;
    line-height: 1.1;
    overflow: visible;
    text-overflow: clip;
  }
  header button[class*="menu"],
  header button[class*="nav"],
  header button[aria-controls] {
    padding: .4rem .6rem;
  }

  /* Hero search: stack the button under the input */
  lg-search form {
    flex-direction: column;
    align-items: stretch;
  }
  lg-search input {
    width: 100%;
    min-width: 0;
  }
  lg-search button {
    width: 100%;
  }
}