/* Version 120: consistent content widths for guides and FAQ sections.
   Keep the site's existing .container gutters and desktop caps (1280/1440px).
   Remove only the extra reading/FAQ caps, not the shared page container.
   Existing typography, banners, forms, and v119 preparation panels are intact. */

main .container.reading {
  max-width: none;
  min-width: 0;
}

/* FAQ rows and their supporting text line up with the surrounding section. */
main .faq-list {
  width: 100%;
  max-width: none;
  min-width: 0;
}
main .faq-list ~ .source-note {
  max-width: none;
}
body[data-page="faq"] :is(.faq-at-a-glance, .faq-content-nav) {
  max-width: none;
}
body[data-page="businesses"] .businesses-questions {
  max-width: none;
}
body[data-page="contact"] :is(.contact-content-faq > h2, .contact-faq-footnote) {
  max-width: none;
}

/* Resource summaries should fill their existing card's text track, rather
   than leaving an unused strip inside an otherwise full-width card. */
body[data-page="resources"] .resources-card-copy {
  max-width: none;
}
body[data-page="resources"] .resource-card > .eyebrow {
  overflow-wrap: normal;
  word-break: normal;
}
@media screen and (min-width: 901px) {
  body[data-page="resources"] .resource-card {
    grid-template-columns: max-content minmax(0, 1fr);
  }
}

/* Use the newly available room for independent checklist items and record
   categories, rather than shrinking text or creating a narrow side column.
   Running prose and numbered procedures keep their natural reading order.
   At tablet/phone widths, the original single-column layouts remain intact. */
@media screen and (min-width: 1100px) {
  body[data-page="prepare-for-review"] :is(.review-preparation-block > ul, .review-final-check > ul),
  body[data-page="document-your-dispute"] .reading > ul,
  body[data-page="accessibility"] .reading > ul,
  body[data-page="privacy"] .privacy-detail-block > ul,
  body[data-page="terms"] .terms-reading-block > ul,
  body[data-page="thank-you"] .thanks-reading-block > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 44px;
  }

  body[data-page="prepare-for-review"] :is(.review-preparation-block > ul, .review-final-check > ul) > li,
  body[data-page="document-your-dispute"] .reading > ul > li,
  body[data-page="accessibility"] .reading > ul > li,
  body[data-page="privacy"] .privacy-detail-block > ul > li,
  body[data-page="terms"] .terms-reading-block > ul > li,
  body[data-page="thank-you"] .thanks-reading-block > ul > li {
    min-width: 0;
    margin-block: 0;
  }

  /* An unpaired final point spans the row, so no empty half-card remains. */
  body[data-page="prepare-for-review"] :is(.review-preparation-block > ul, .review-final-check > ul) > li:last-child:nth-child(odd),
  body[data-page="document-your-dispute"] .reading > ul > li:last-child:nth-child(odd),
  body[data-page="accessibility"] .reading > ul > li:last-child:nth-child(odd),
  body[data-page="privacy"] .privacy-detail-block > ul > li:last-child:nth-child(odd),
  body[data-page="terms"] .terms-reading-block > ul > li:last-child:nth-child(odd),
  body[data-page="thank-you"] .thanks-reading-block > ul > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  body[data-page="prepare-for-review"] .review-record-groups,
  body[data-page="document-your-dispute"] .document-record-map,
  body[data-page="privacy"] :is(.privacy-data-list, .privacy-retention-list, .privacy-browser-list),
  body[data-page="terms"] .terms-stage-list,
  body[data-page="thank-you"] .thanks-guide-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
  }

  body[data-page="prepare-for-review"] .review-record-groups > div,
  body[data-page="document-your-dispute"] .document-record-map > div,
  body[data-page="privacy"] .privacy-detail-block dl > div,
  body[data-page="terms"] .terms-stage-list > div,
  body[data-page="thank-you"] .thanks-guide-list > div {
    min-width: 0;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  body[data-page="prepare-for-review"] .review-record-groups > div:first-child,
  body[data-page="privacy"] .privacy-detail-block dl > div:first-child {
    padding-top: 20px;
  }

  body[data-page="privacy"] .privacy-detail-block dl > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  /* Wider topic navigation uses the same two-column rhythm as the guides. */
  body[data-page="faq"] .faq-content-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 44px;
  }
}

@media print {
  /* No extra column cap is introduced into the existing print layout. */
  main .container.reading,
  main .faq-list {
    max-width: none;
  }
}
