/* ppcaudit.org — protocol */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular-woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold-woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular-woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  font-size-adjust: from-font;
  overflow-wrap: break-word;
}
:focus-visible { outline: 3px solid #7c1e36; outline-offset: 2px; }
a { color: #7c1e36; text-underline-offset: 0.12em; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
h2 { font-size: 1.2rem; margin: 1.15rem 0 0.3rem; }
h3 { font-size: 1.05rem; margin: 0.25rem 0; }
p { margin: 0.35rem 0; }
.pa-header, .pa-main, .pa-footer {
  max-width: 72rem; /* 1152px: dense table across the centered column */
  margin-inline: auto;
  padding: 0.35rem 1rem;
}
.pa-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 1rem;
  border-top: 4px solid #7c1e36;
  border-bottom: 1px solid #1a1a1a;
}
.pa-brand { margin: 0; font-weight: 600; }
.pa-nav ul, .pa-crumbs ol, .pa-more ul, .pa-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pa-crumbs ol { margin-top: 0.3rem; }
.pa-crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 0.4rem; }
.pa-h1 {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem);
  max-width: 22ch;
  margin: 0.35rem 0 0.15rem;
}
.pa-trust { margin: 0; }
.pa-answer {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0.4rem 0 0.6rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #1a1a1a;
}
.pa-table-wrap { max-inline-size: 100%; container: pa-rows / inline-size; }
.pa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}
.pa-table caption { text-align: start; font-weight: 600; padding-bottom: 0.3rem; }
.pa-table th, .pa-table td {
  text-align: start;
  vertical-align: top;
  padding: 0.28rem 0.35rem;
  border-bottom: 1px solid #1a1a1a;
  overflow-wrap: anywhere;
}
.pa-table thead th {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: #fff;
  font-weight: 600;
  border-bottom: 2px solid #1a1a1a;
}
.pa-table td:nth-child(1), .pa-table th:nth-child(1) { width: 8%; }
.pa-table td:nth-child(3), .pa-table th:nth-child(3) { width: 14%; }
.pa-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.pa-fact { display: block; }
.pa-fact-main { font-weight: 600; }
.pa-mark { color: #7c1e36; font-weight: 600; margin-inline-end: 0.3rem; }
.pa-out {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.3rem 0.55rem;
  background: #7c1e36;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.pa-card, .pa-review { border: 1px solid #1a1a1a; padding: 0.55rem 0.65rem; }
.pa-cards { display: grid; }
.pa-review { margin-block: 0.55rem; }
.pa-sub { display: inline-block; margin: 0.2rem 0.7rem 0.2rem 0; }
.pa-quote { margin: 0.45rem 0; padding-inline-start: 0.6rem; border-inline-start: 2px solid #1a1a1a; }
.pa-quote p { margin: 0; }
.pa-q { border-bottom: 1px solid #1a1a1a; }
.pa-q summary { font-weight: 600; padding-block: 0.4rem; cursor: pointer; }
.pa-formula { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.pa-matrix dt { font-weight: 600; margin-top: 0.6rem; }
.pa-matrix dd { margin: 0.1rem 0 0; }
.pa-footer { padding-bottom: 2rem; border-top: 1px solid #1a1a1a; }
@container pa-rows (width < 36rem) {
  .pa-table, .pa-table tbody { display: block; }
  .pa-table thead { display: none; }
  .pa-table caption { display: block; }
  .pa-table tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(3.25rem, max-content);
    column-gap: 0.5rem;
    row-gap: 0.12rem;
    align-items: start;
    margin-block-end: 0.4rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #1a1a1a;
    background: #fff;
  }
  .pa-table tbody tr:nth-child(-n + 3) { border-color: #7c1e36; border-width: 1px 1px 1px 3px; }
  .pa-table th, .pa-table td { display: block; width: auto; padding: 0; border: 0; }
  .pa-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-weight: 600; }
  .pa-table th { grid-column: 2; grid-row: 1; }
  .pa-table td:nth-child(3) { grid-column: 3; grid-row: 1; text-align: end; }
  .pa-table td:nth-child(4), .pa-table td:nth-child(5) { grid-column: 1 / -1; }
  .pa-table tbody td:nth-child(1),
  .pa-table tbody td:nth-child(3) { width: auto; min-width: 0; }
  .pa-table tbody td:nth-child(3) {
    min-width: 3.25rem; /* 3.25rem: score column stays wider than one glyph */
    white-space: nowrap;
  }
  .pa-table td:nth-child(1)::before { content: "№"; margin-inline-end: 0.15rem; }
  .pa-table td:nth-child(3)::before { content: var(--pa-score) " "; font-weight: 400; font-family: "IBM Plex Sans", sans-serif; }
  .pa-table td:nth-child(4)::before, .pa-table td:nth-child(5)::before { display: block; font-weight: 600; }
  .pa-table td:nth-child(4)::before { content: var(--pa-facts); }
  .pa-table td:nth-child(5)::before { content: var(--pa-fit); }
}
@media (max-width: 480px) {
  .pa-header, .pa-main, .pa-footer { padding: 0.2rem 0.5rem; }
  .pa-header { gap: 0.1rem 0.55rem; }
  .pa-nav ul, .pa-crumbs ol { gap: 0.15rem 0.5rem; }
  .pa-crumbs ol { margin-top: 0.1rem; }
  .pa-h1 {
    font-size: 1.25rem;
    max-width: none;
    margin: 0.1rem 0 0;
  }
  .pa-trust {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .pa-answer {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0.15rem 0 0.2rem;
    padding: 0;
  }
  .pa-table caption { font-size: 1rem; padding-bottom: 0.1rem; }
  .pa-table tbody tr {
    column-gap: 0.4rem;
    row-gap: 0.12rem;
    align-items: start;
    margin-block-end: 0.28rem;
    padding: 0.4rem 0.5rem;
  }
  .pa-table tbody tr th,
  .pa-table tbody tr td { min-width: 0; }
  .pa-table tbody tr th { font-weight: 600; }
  .pa-table tbody td:nth-child(3) {
    white-space: nowrap;
    min-width: 3.25rem; /* 3.25rem: score column stays wider than one glyph */
  }
  .pa-table tbody td:nth-child(3)::before,
  .pa-table tbody td:nth-child(4)::before,
  .pa-table tbody td:nth-child(5)::before { content: none; }
  .pa-table tbody td:nth-child(4) { grid-row: 2; }
  .pa-table tbody td:nth-child(5) { display: none; }
  .pa-table tbody .pa-fact { display: none; }
  .pa-table tbody .pa-fact-main {
    display: block;
    font-size: 15px;
    line-height: 1.2;
  }
  .pa-table tbody .pa-out {
    margin-top: 0.12rem;
    padding: 0.12rem 0.4rem;
    font-size: 14px;
  }
}
@container pa-rows (width >= 36rem) {
  .pa-table td:nth-child(1), .pa-table td:nth-child(3) { text-align: end; }
}
