/*
 * Public audits (/audits and /audits/{slug}), 2026-10-31, and guides (/guides), 2026-11-02. Loaded after landing.css
 * on those pages only and built on its tokens (--lp-*), buttons (.lp-btn) and kicker (.lp-kicker). Light page on the
 * paper background, like Privacy and Terms.
 */

.au {
  --au-mixed: #8a5300;
  --au-mixed-bg: #fff4dc;
  padding: clamp(40px, 7vh, 72px) 0 clamp(56px, 9vh, 96px);
}

.au-wrap {
  width: min(880px, calc(100% - 2 * var(--lp-gutter)));
  margin-right: auto;
  margin-left: auto;
}

.au p,
.au li {
  color: var(--lp-text);
  font-size: 16.5px;
  line-height: 1.7;
}

.au a:not(.lp-btn) {
  color: var(--lp-blue);
  text-underline-offset: 2px;
}

.au-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 12px;
  letter-spacing: .06em;
  list-style: none;
  text-transform: uppercase;
}

.au .au-crumbs li {
  color: inherit;
  font-size: inherit;
  line-height: 1.5;
}

.au-crumbs li + li::before {
  margin-right: 6px;
  content: "/";
}

.au .au-crumbs a {
  color: var(--lp-muted);
  text-decoration: none;
}

.au .au-crumbs a:hover {
  color: var(--lp-blue);
}

.au h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.au-lede {
  max-width: 44rem;
  margin: 0 0 18px;
}

.au .au-lede {
  font-size: 18px;
}

.au-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.au .au-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  color: var(--lp-text);
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
}

.au .au-meta .au-meta__research {
  color: #3b2a00;
  background: var(--au-mixed-bg);
  border-color: #f0d59a;
}

/* ------------------------------------------------------------------ the answer box */

.au-answer {
  padding: clamp(20px, 3.5vw, 32px);
  background: #fff;
  border: 1px solid var(--lp-line);
  border-top: 4px solid var(--lp-fail);
  border-radius: 12px;
  box-shadow: var(--lp-shadow);
}

.au-answer--mostlyfails {
  border-top-color: var(--au-mixed);
}

.au-answer--passes {
  border-top-color: var(--lp-pass);
}

.au-answer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.au-answer__q {
  margin: 0;
  color: var(--lp-ink);
  font-size: 13px;
  font-family: var(--lp-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.au-stamp {
  padding: 4px 9px;
  color: var(--lp-fail);
  border: 1.5px solid currentColor;
  border-radius: 4px;
  font-family: var(--lp-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.au-stamp--mostlyfails {
  color: var(--au-mixed);
}

.au-stamp--passes {
  color: var(--lp-pass);
}

.au .au-answer__text {
  margin: 0;
  color: var(--lp-ink);
  font-size: 18px;
  line-height: 1.6;
}

.au-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--lp-line);
}

.au-figures div {
  min-width: 0;
}

.au-figures dt {
  order: 2;
  color: var(--lp-muted);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
}

.au-figures dd {
  margin: 0 0 4px;
  color: var(--lp-ink);
  font-family: var(--lp-mono);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 1.8rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.15;
}

.au-figures div {
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------ sections */

.au-section {
  margin-top: clamp(40px, 6vw, 56px);
}

.au-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.au-section h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.au-section > p,
.au-section > ul,
.au-section > ol {
  margin: 0 0 14px;
}

.au-section ul,
.au-section ol {
  padding-left: 1.3rem;
}

.au-section li + li {
  margin-top: 6px;
}

.au-claim {
  margin: 0 0 16px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-left: 4px solid var(--lp-blue);
  border-radius: 8px;
}

.au .au-claim p {
  margin: 0;
  color: var(--lp-ink);
  font-size: 19px;
  line-height: 1.5;
}

.au .au-claim footer {
  margin-top: 8px;
  color: var(--lp-muted);
  font-size: 14px;
}

.au-note {
  margin: 18px 0;
  padding: 16px 20px;
  background: var(--au-mixed-bg);
  border: 1px solid #f0d59a;
  border-radius: 8px;
}

.au .au-note p {
  margin: 0;
  color: #3b2a00;
  font-size: 15px;
}

.au .au-note p + p {
  margin-top: 8px;
}

.au-facts {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}

.au-facts dt,
.au-facts dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 15px;
  line-height: 1.6;
}

.au-facts dt {
  color: var(--lp-ink);
  font-weight: 600;
}

.au-facts dd {
  color: var(--lp-text);
}

.au-facts dt:last-of-type,
.au-facts dd:last-of-type {
  border-bottom: 0;
}

/* ------------------------------------------------------------------ tables: rows become cards on phones */

.au-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}

.au-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.au-table caption {
  padding: 12px 16px 0;
  color: var(--lp-muted);
  font-size: 13px;
  caption-side: bottom;
  text-align: left;
}

.au-table thead th {
  padding: 12px 14px;
  color: var(--lp-muted);
  background: #fafbfc;
  border-bottom: 1px solid var(--lp-line);
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.au-table tbody th,
.au-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--lp-line);
  color: var(--lp-text);
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.au-table tbody th {
  color: var(--lp-ink);
  font-weight: 600;
}

.au-table tbody tr:last-child > * {
  border-bottom: 0;
}

.au-table .lp-num {
  white-space: nowrap;
}

.au-table small {
  display: block;
  color: var(--lp-muted);
  font-size: 12.5px;
  font-weight: 400;
}

.au-chip {
  display: inline-block;
  padding: 2px 8px;
  color: var(--lp-fail);
  background: var(--lp-fail-bg);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.au-chip--pass {
  color: var(--lp-pass);
  background: var(--lp-pass-bg);
}

.au-chip--research {
  margin-top: 4px;
  color: #3b2a00;
  background: var(--au-mixed-bg);
  font-weight: 500;
}

@media (max-width: 720px) {
  .au-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .au-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .au-table,
  .au-table tbody,
  .au-table tr,
  .au-table th,
  .au-table td {
    display: block;
  }

  .au-table tbody tr {
    margin-bottom: 12px;
    padding: 4px 0;
    background: #fff;
    border: 1px solid var(--lp-line);
    border-radius: 10px;
  }

  .au-table tbody th,
  .au-table tbody td {
    padding: 8px 16px;
    border-bottom: 0;
  }

  .au-table tbody td[data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: var(--lp-muted);
    font-family: var(--lp-mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  /* a block table would squeeze its caption into a narrow column; give it the full width above the rows */
  .au-table caption {
    display: block;
    padding: 0 0 10px;
  }

  .au-figures {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .au-facts {
    grid-template-columns: 1fr;
  }

  .au-facts dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------------ call to action */

.au-cta {
  display: grid;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 56px);
  padding: clamp(22px, 4vw, 32px);
  color: var(--lp-on-dark);
  background: var(--lp-navy);
  border-radius: 12px;
  box-shadow: var(--lp-shadow);
}

.au .au-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
}

.au .au-cta p {
  margin: 0;
  color: var(--lp-on-dark-muted);
  font-size: 15px;
}

.au-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 560px) {
  .au-cta__actions .lp-btn {
    width: 100%;
  }
}

.au .au-kind {
  margin: 0 0 14px;
}

.au .au-kind-note {
  max-width: 72ch;
  margin: -14px 0 28px;
  color: var(--lp-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ index */

.au .au-list-head {
  margin: clamp(40px, 6vw, 56px) 0 0;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.au-list-head + .au-list {
  margin-top: 16px;
}

.au-section .tk-hub-list {
  padding-left: 0;
}

.au-list {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.au-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 28px);
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.au-card:hover,
.au-card:focus-within {
  border-color: var(--lp-line-strong);
  box-shadow: var(--lp-shadow);
}

.au-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.au .au-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
}

.au .au-card h2 a {
  color: var(--lp-ink);
  text-decoration: none;
}

/* The whole card is the link target; the title link stretches over it. */
.au .au-card h2 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.au .au-card h2 a:focus-visible {
  outline: none;
}

.au-card:has(h2 a:focus-visible) {
  outline: 3px solid #93b4ff;
  outline-offset: 2px;
}

.au .au-card p {
  margin: 0;
  font-size: 15.5px;
}

.au-method {
  margin: 0;
  padding-left: 1.2rem;
}

/* ------------------------------------------------------------------ guides (/guides and /guides/{slug}) */

/* A guide explains how records are judged; it is not a record of anyone, so it gets its own label, in blue. */
.rk--guide {
  color: var(--lp-blue);
  background: var(--lp-blue-soft);
}

.au-answer--guide {
  border-top-color: var(--lp-blue);
}

/* in a guide, prose follows the tables directly */
.au--guide .au-table-wrap {
  margin-bottom: 18px;
}

.au .au-formula {
  margin: 0 0 14px;
  padding: 12px 16px;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
}

.au .au-formula .lp-num {
  font-size: 15px;
  white-space: nowrap;
}

.au-related {
  margin-top: clamp(32px, 5vw, 48px);
}

.au .au-related h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.au-related ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.au-related li {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--lp-line);
  border-radius: 10px;
}

.au .au-related a {
  font-weight: 600;
  text-decoration: none;
}

.au .au-related span {
  color: var(--lp-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.au .au-guides-foot {
  margin-top: 24px;
}
