/* Documents extend the existing Congress palette, typography and controls. */
.docs-home { padding: 64px 0 68px; background: var(--cream); border-top: 1px solid var(--line); }
.docs-home__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 56px; align-items: center; }
.docs-home__copy { max-width: 790px; }
.docs-home h2 { margin: 0 0 18px; color: var(--navy); font: 600 clamp(36px, 3.8vw, 52px)/1.08 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.docs-home p { max-width: 68ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.docs-home .button { white-space: nowrap; }
.docs-page .docs-hero { padding: 46px 0; }
.docs-page .subhero__inner { min-height: 0; padding-block: 0; gap: 64px; }
.docs-page .docs-hero h1 { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.025em; text-wrap: balance; }
.docs-page .congress-identity--seal { width: 200px; padding: 16px; }
.docs-breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 24px; color: #d4dce7; font-size: 13px; line-height: 1.5; }
.docs-breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.docs-breadcrumbs a:hover { text-decoration-color: currentColor; }
.docs-breadcrumbs [aria-current] { color: var(--gold-light); }
.docs-intro { max-width: 62ch; margin: 20px 0 0; color: #e0e6ee; font-size: 17px; line-height: 1.8; }
.docs-content { padding: 56px 0 80px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.docs-card { display: flex; flex-direction: column; min-width: 0; padding: 34px 36px 30px; border: 1px solid var(--line); background: var(--cream); scroll-margin-top: 120px; }
.docs-card h2 { max-width: 24ch; margin: 0 0 18px; color: var(--navy); font: 600 clamp(30px, 2.9vw, 38px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.docs-card__author { margin: 0 0 5px; color: var(--navy); font-size: 15px; line-height: 1.6; font-weight: 700; }
.docs-card__kind { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.docs-card__description { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.docs-card__download { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-card__file { display: flex; flex-wrap: wrap; gap: 4px 9px; margin: 0 0 16px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.docs-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.docs-card .button { min-width: 140px; }
.docs-download { display: inline-flex; align-items: center; min-height: 50px; padding: 8px 0; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: #a88240; text-underline-offset: 5px; }
.docs-download:hover { color: var(--navy-3); text-decoration-thickness: 2px; }
.docs-page ::selection, .docs-home ::selection { background: var(--gold-light); color: var(--navy); }
.docs-page a:focus-visible, .docs-home a:focus-visible, .docs-nav:focus-visible { outline: 3px solid #996b23; outline-offset: 5px; }
.docs-hero a:focus-visible { outline-color: var(--gold-light); }
@media (max-width: 900px) {
    .docs-home__inner { gap: 28px; }
    .docs-grid { gap: 20px; }
    .docs-card { padding: 28px; }
    .docs-page .subhero__inner { gap: 32px; }
    .docs-page .congress-identity--seal { width: 170px; padding: 14px; }
}
@media (max-width: 700px) {
    .docs-home { padding: 42px 0 48px; }
    .docs-home__inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
    .docs-home h2 { font-size: clamp(33px, 8.8vw, 42px); }
    .docs-home p { font-size: 15px; }
    .docs-page .docs-hero { padding: 32px 0 36px; }
    .docs-page .docs-hero h1 { font-size: clamp(38px, 10vw, 48px); }
    .docs-page .congress-identity--seal { display: none; }
    .docs-breadcrumbs { margin-bottom: 22px; font-size: 12px; }
    .docs-intro { margin-top: 18px; font-size: 16px; }
    .docs-content { padding: 32px 0 56px; }
    .docs-grid { grid-template-columns: minmax(0, 1fr); }
    .docs-card { padding: 26px 24px; scroll-margin-top: 96px; }
    .docs-card h2 { font-size: 32px; }
    .docs-card__actions { gap: 8px 22px; }
}
@media (max-width: 360px) {
    .docs-card { padding-inline: 20px; }
    .docs-card__actions { align-items: stretch; flex-direction: column; gap: 5px; }
    .docs-download { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .docs-page .button, .docs-home .button { transition: none; }
}

/* Reading and Eucharistic symbols extend only the documents surface. */
.docs-icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; color: #a07936; }
.docs-card__heading { display: flex; align-items: flex-start; gap: 18px; }
.docs-card__heading .docs-icon { margin-top: 3px; }
.docs-card__heading h2 { min-width: 0; }
.docs-card__heading h2 a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
.docs-card__heading h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.docs-home__heading { display: flex; align-items: flex-start; gap: 22px; }
.docs-home__heading .docs-icon { width: 48px; height: 48px; flex-basis: 48px; margin-top: 3px; }
.docs-reading-width { width: min(76ch, calc(100% - 64px)); margin-inline: auto; }
.docs-reader-top { padding: 24px 0; background: var(--navy); }
.docs-reader-top__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.docs-reader-top .docs-breadcrumbs { margin: 0; }
.docs-reader-pdf-link { color: var(--gold-light); font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.docs-reader-top a:focus-visible { outline-color: var(--gold-light); }
.docs-reader-content { padding-block: 48px 80px; }
.docs-reader-symbol { display: flex; justify-content: flex-end; margin-bottom: 24px; }
.docs-reader-symbol .docs-icon { width: 52px; height: 52px; }
.docs-prose { color: var(--navy); font-size: 18px; line-height: 1.85; overflow-wrap: break-word; }
.docs-prose h1 { max-width: 26ch; margin: 10px 0 36px; font: 600 clamp(42px, 5.2vw, 64px)/1.06 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.docs-prose h2, .docs-prose h3 { margin: 52px 0 22px; font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; text-align: left; scroll-margin-top: 120px; }
.docs-prose h2 { font-size: 34px; }
.docs-prose h3 { margin-top: 38px; font-size: 28px; }
.docs-prose p { margin: 0 0 23px; }
.docs-prose .doc-paragraph, .docs-prose .doc-lead { text-align: justify; text-justify: inter-word; hyphens: auto; }
.docs-prose .doc-metadata { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.docs-prose .doc-author { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.3; margin-bottom: 12px; }
.docs-prose .doc-subtitle { margin: 0 0 36px; font: 500 27px/1.35 var(--serif); text-wrap: balance; }
.docs-prose .doc-lead { color: var(--muted); }
.docs-prose .doc-footnote { font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.docs-prose .doc-chapter-number { display: block; margin-bottom: 12px; }
.docs-prose em { font-style: italic; }
.docs-prose strong { font-weight: 700; }
.docs-prose h1 strong { font-weight: inherit; }
.docs-reader-download { margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.docs-reader-download h2 { margin: 0 0 16px; font: 600 34px/1.15 var(--serif); color: var(--navy); }
.docs-reader-return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; color: var(--navy); font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
    .docs-card__heading { gap: 14px; }
    .docs-card__heading .docs-icon { width: 32px; height: 32px; flex-basis: 32px; }
    .docs-home__heading { gap: 16px; }
    .docs-home__heading .docs-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .docs-reading-width { width: calc(100% - 40px); }
    .docs-reader-top { padding-block: 20px; }
    .docs-reader-content { padding-block: 28px 56px; }
    .docs-reader-symbol { margin-bottom: 20px; }
    .docs-reader-symbol .docs-icon { width: 40px; height: 40px; }
    .docs-prose { font-size: 16px; line-height: 1.85; }
    .docs-prose h1 { font-size: clamp(38px, 10vw, 48px); margin-bottom: 28px; }
    .docs-prose h2 { font-size: 29px; margin-top: 38px; }
    .docs-prose h3 { font-size: 25px; margin-top: 30px; }
    .docs-prose .doc-author { font-size: 24px; }
    .docs-prose .doc-subtitle { font-size: 24px; }
    .docs-prose .doc-paragraph, .docs-prose .doc-lead { text-align: left; hyphens: none; }
    .docs-prose .doc-metadata, .docs-prose .doc-footnote { font-size: 13px; }
    .docs-reader-download { margin-top: 40px; padding-top: 28px; }
}
@media print {
    .docs-reader-top, .docs-reader-download, .docs-reader-symbol { display: none; }
    .docs-reading-width { width: 100%; }
    .docs-reader-content { padding: 0; }
    .docs-prose { color: #000; font-size: 11pt; line-height: 1.5; }
    .docs-prose h2, .docs-prose h3 { break-after: avoid; }
    .docs-prose p { orphans: 3; widows: 3; }
}
