/* Readable article layout for the undeployed v20 policy candidate.
   Visual language stays with styles.css. This file only sets the
   document column and table scrolling. */

.policy-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--line);
}

.policy-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.policy-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.policy-nav a[aria-current='page'] {
  text-decoration: none;
}

.policy-document {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.policy-document h1,
.policy-document h2,
.policy-document h3 {
  line-height: 1.25;
  text-wrap: balance;
}

.policy-document h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
}

.policy-document h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
}

.policy-document h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.policy-document p {
  margin: 0 0 1rem;
}

.policy-document a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.policy-document code {
  font-family: var(--mono);
  font-size: 0.92em;
  word-break: break-word;
}

.policy-table-scroll {
  width: 100%;
  margin: 0 0 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.policy-document table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
}

.policy-document th,
.policy-document td {
  border: 1px solid var(--line-strong);
  padding: 0.7rem 0.8rem;
  text-align: start;
  vertical-align: top;
}

.policy-document th {
  background: var(--paper-deep);
  font-weight: 600;
}

@media (max-width: 640px) {
  .policy-document {
    font-size: 1rem;
    line-height: 1.6;
  }

  .policy-nav {
    width: 100%;
  }
}
