/* The reading pages (how it works, what counts as slop, compare, about,
   privacy, remove). Same language as the front page: a heading on the left,
   the words on the right, space between sections, no lines. */

.top-links {
  display: flex;
  gap: 2px;
}

.top-links a[aria-current="page"] {
  background: var(--fill);
}

@media (max-width: 860px) {
  .top-links {
    display: none;
  }
}

.doc-head {
  padding: 72px 0 8px;
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.doc-head p {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 52ch;
}

.doc a:not(.button):not(.pair-site) {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s var(--out);
}

@media (hover: hover) and (pointer: fine) {
  .doc a:not(.button):not(.pair-site):hover {
    text-decoration-color: var(--ink);
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-top: 72px;
}

.split h2 {
  font-size: clamp(20px, 2vw, 24px);
  max-width: 18ch;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-top: 56px;
  }
  .doc-head {
    padding-top: 40px;
  }
}

.prose {
  display: grid;
  gap: 12px;
  max-width: 58ch;
}

.prose p {
  color: var(--ink-2);
}

.prose b {
  font-weight: 600;
  color: var(--ink);
}

/* The score bands: five soft rows. */
.bands {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.bands div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--fill);
}

.bands dt {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.bands dd {
  font-weight: 500;
}

/* What counts as slop: a site scored 1 beside a site scored 5. */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.pair-site {
  display: block;
  text-decoration: none;
  transition: transform 0.12s var(--out);
}

.pair-site:active {
  transform: scale(0.97);
}

.pair-shot {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fill);
  box-shadow: var(--shadow-card);
}

.pair-shot.phone {
  aspect-ratio: 16 / 10;
}

.pair-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.pair-shot.phone img {
  object-fit: contain;
  background: var(--fill);
}

.pair-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
}

.pair-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.pair-line span:last-child {
  color: var(--ink-2);
  white-space: nowrap;
}

/* Forms on reading pages */
.fields {
  display: grid;
  gap: 8px;
  max-width: 380px;
}

.field {
  height: var(--control);
  width: 100%;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: box-shadow 0.2s var(--out);
}

.field:focus {
  box-shadow: var(--shadow-lift), var(--focus);
}

.field::placeholder {
  color: var(--placeholder);
}

.fields .button {
  justify-self: start;
  margin-top: 4px;
}

.form-note {
  min-height: 21px;
  color: var(--ink);
  font-weight: 500;
}

.form-note:empty {
  display: none;
}

/* The closing banner, as on the front page. */
.banner.closing {
  margin: 0 12px;
  border-radius: 22px;
  background: var(--panel);
  padding: 72px max(40px, calc((100vw - var(--column)) / 2 - 12px));
}

.banner.closing h2 {
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .banner.closing {
    padding: 56px 24px;
  }
}

@media (max-width: 560px) {
  .banner.closing {
    padding: 40px 16px;
  }
}
