/* Template excerpt block — added 2026-10-22 (task t-d8e59831165657071552253043a4930b).
   Lives in its own file on purpose: /assets/* is served immutable (max-age=31536000),
   so an in-place edit to /assets/styles.css never reaches returning visitors.
   Reuses the tokens already defined in styles.css — no new palette. */

.excerpt {
  margin-top: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.excerpt h3 {
  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.excerpt-lede {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 62ch;
}

.excerpt-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 900px) {
  .excerpt-body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: start;
  }
}

/* The document sheet */
.excerpt-doc {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.excerpt-doc-file {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--muted);
}

.excerpt-doc-h {
  font-family: var(--heading-font);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.excerpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

.excerpt-table caption {
  caption-side: top;
  text-align: left;
  font-size: 16px;
  color: var(--muted);
  padding-bottom: 10px;
}

.excerpt-table th {
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}

.excerpt-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.excerpt-table tr:last-child td {
  border-bottom: 0;
}

/* Redacted / fill-in value */
.excerpt-redact {
  background: var(--accent-tint);
  border-bottom: 1px dashed var(--muted);
  padding: 0 3px;
  white-space: nowrap;
}

.excerpt-clause {
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
}

.excerpt-clause p:last-child {
  margin: 0;
}

.excerpt-source {
  margin: 16px 0 0;
  font-size: 16px;
  color: var(--muted);
}

/* Plain-English notes beside the sheet */
.excerpt-notes {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 14px;
}

.excerpt-notes li {
  font-size: 16px;
  line-height: 1.55;
}

.excerpt-notes strong {
  color: var(--text);
}

/* Phones: one column, and the table becomes labelled blocks so nothing is cut off */
@media (max-width: 700px) {
  .excerpt {
    padding: 20px 16px;
  }

  .excerpt-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .excerpt-table,
  .excerpt-table tbody,
  .excerpt-table tr,
  .excerpt-table td {
    display: block;
    width: 100%;
  }

  .excerpt-table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    margin-bottom: 12px;
  }

  .excerpt-table tr:last-child {
    margin-bottom: 0;
  }

  .excerpt-table td {
    border: 0;
    padding: 2px 0;
  }

  .excerpt-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted);
  }

  .excerpt-redact {
    white-space: normal;
  }
}
