/* Shared styles for the independent CAES resource and archive pages. */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 12px 18px; background: #fff; color: #111; }
.skip-link:focus { top: 12px; }
.page-heading { padding: 32px 0 54px; background: #f3f4f5; border-bottom: 1px solid #dfe3e7; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 42px; color: #57616b; font-size: 14px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.page-heading h1 { max-width: 1000px; margin: 12px 0 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(34px, 5vw, 60px); line-height: 1.12; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-note { max-width: 850px; margin: 24px 0 0; color: #56606a; font-size: 16px; line-height: 1.7; }
.page-layout { padding-block: 54px 72px; }
.page-toc { padding: 24px 28px; margin: 0 0 44px; border: 1px solid #dfe3e7; border-left: 3px solid var(--red); border-radius: 5px; background: #fafbfc; }
.page-toc ul { columns: 2; column-gap: 36px; padding-left: 20px; margin-bottom: 0; }
.page-toc li { margin-bottom: 10px; break-inside: avoid; font-size: 15px; line-height: 1.5; }
.page-toc a { color: #333e48; text-decoration: underline; text-underline-offset: 3px; }
.page-content { max-width: 100%; color: #303b44; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.page-content h2, .page-content h3, .page-content h4, .page-content h5 { color: var(--ink); font-family: 'Space Grotesk', sans-serif; line-height: 1.3; letter-spacing: -.02em; scroll-margin-top: 140px; }
.page-content h2 { margin: 26px 0 18px; font-size: clamp(25px, 3vw, 34px); }
.page-content h3 { margin: 22px 0 16px; font-size: 25px; }
.page-content h4, .page-content h5 { margin: 18px 0 14px; font-size: 21px; }
.page-content p { margin: 0 0 20px; }
.page-content a:not(.button) { color: #a90000; text-decoration: underline; text-underline-offset: 3px; }
.page-content img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; object-fit: contain; margin: 16px auto 24px; border-radius: 6px; }
.page-content video, .page-content audio { display: block; width: 100%; margin-block: 20px; }
.content-section { padding: 26px 0; border-bottom: 1px solid #e4e7ea; }
.content-section:first-child { padding-top: 0; }
.content-stack { min-width: 0; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); align-items: start; gap: 28px; }
.content-grid .content-grid { display: block; }
.content-card { min-width: 0; padding: 22px; border: 1px solid #e0e4e8; border-radius: 6px; }
.document-links { display: grid; gap: 12px; padding: 22px; margin-bottom: 22px; border: 1px solid #dce1e5; background: #f7f8f9; border-radius: 6px; }
.page-content table { width: 100%; border-collapse: collapse; display: block; max-width: 100%; overflow: auto; margin-bottom: 28px; }
.page-content td, .page-content th { padding: 12px; border: 1px solid #dce1e5; text-align: left; min-width: 90px; }
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content blockquote { padding: 18px 24px; margin-inline: 0; border-left: 3px solid var(--red); background: #f6f7f8; }
.research-library { max-width: 900px; margin-inline: auto; }
.research-library .content-grid { display: block; }
.research-library h2, .research-library h3, .research-library h4, .research-library h5 { margin-top: 44px; }
.research-library img { max-width: min(100%, 600px); max-height: 440px; margin-block: 28px; }
.resource-action { margin-top: 36px; padding: 28px; border: 1px solid #dce1e5; border-radius: 6px; background: #f7f8f9; }
.directory-section { margin-block: 40px; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.directory-grid a { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px; border: 1px solid #dfe3e7; border-radius: 5px; font-weight: 600; }
.directory-grid a:hover, .directory-grid a:focus-visible { background: #f7f8f9; border-color: var(--red); }
.news-list { display: grid; gap: 18px; }
.news-list article { padding: 24px; border: 1px solid #dfe3e7; border-radius: 6px; }
.news-list h3 { margin: 8px 0 0; }
.page-contact { padding: 42px 0; border-top: 1px solid #e0e4e7; background: #f3f4f5; }
.page-contact > .shell { display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.page-contact h2 { margin: 12px 0 0; font-size: 28px; }
.footer-page-links { display: flex; flex-wrap: wrap; gap: 14px 22px; padding-block: 22px; border-top: 1px solid #dce1e5; font-size: 15px; }
.footer-page-links a { text-decoration: underline; text-underline-offset: 3px; }
.mentorship-intro { padding: 34px; margin-bottom: 28px; border-left: 4px solid var(--red); background: #f5f6f7; border-radius: 6px; }
.preview-badge, .preview-label { display: inline-block; padding: 5px 12px; border: 1px solid #cdd4d9; border-radius: 4px; color: #4d5862; background: #fff; font-size: 14px; font-weight: 600; }
.mentorship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 850px) { .mentorship-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1280px) { .primary-nav { max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 700px) { .page-toc ul { columns: 1; } .directory-grid, .content-grid { grid-template-columns: minmax(0, 1fr); } .page-contact > .shell { align-items: flex-start; flex-direction: column; } .page-heading { padding-bottom: 36px; } .breadcrumbs { margin-bottom: 28px; } .page-layout { padding-block: 32px 48px; } .page-toc { padding: 20px; } }
