/* CLS visual refinement: one shared shell, calm hierarchy, predictable spacing. */
:root { --reading: 760px; --shadow: 0 8px 24px rgba(23,50,77,.07); }
html { scroll-padding-top: 102px; }
body { font-family: Geist, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 4px;
}
main { min-width: 0; }
.site-header .brand, .site-footer .brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; }
.brand span { line-height: 1.15; font-weight: 700; letter-spacing: 0; }
.site-nav { gap: 22px; }
.site-nav .nav-cta { color: #fff; }
.site-footer .brand { width: fit-content; text-decoration: none; margin: 0 0 16px; }
.site-footer .brand img { width: 86px; background: #fff; border-radius: 3px; padding: 5px; }
.site-footer .brand span { color: #fff; }
.site-footer { padding: 48px 0 30px; }
.site-footer p { max-width: 36ch; color: #dce6ed; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h3 { font: 650 18px/1.4 Geist, Arial, sans-serif; }
.footer-grid a:not(.brand) { width: fit-content; margin: 12px 0; text-underline-offset: 3px; }
.legal { font-size: 13px; line-height: 1.65; }

/* Condensed brand lettering is reserved for the primary title. */
.hero h1, .page-title, .course-title, .library-hero h1,
.resource-index-heading h1, .guide-heading h1, .legal-page h1 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  text-transform: none; font-weight: 700; letter-spacing: 0;
  font-size: clamp(38px, 3.7vw, 52px); line-height: 1.1;
  color: var(--navy); margin: 0 0 20px;
}
.hero { min-height: 510px; }
.hero-copy { width: min(590px, 49%); padding: 54px 0; }
.hero h1 { color: #fff; font-size: clamp(42px, 3.7vw, 52px); line-height: 1.12; text-wrap: balance; }
.hero p { font-size: 18px; line-height: 1.65; margin: 22px 0 28px; }
.section-title, .finder h2, .split-panel h2, .detail-section h2,
.library-section h2, .official-library-feature h2, .guide-body h2,
.guide-references h2, .related-guides > h2, .resource-index-cta h2,
.legal-page h2 {
  font: 650 clamp(25px, 2.3vw, 32px)/1.22 Geist, Arial, sans-serif;
  text-transform: none; letter-spacing: -.025em; color: var(--navy); margin: 0 0 16px;
}
.split-panel.photo h2 { color: #fff; }
.finder h2 { font-size: 28px; margin: 0; }
.finder-heading h2 { max-width: none; }
.finder-top { grid-template-columns: minmax(280px, .8fr) minmax(0, 1.7fr); gap: 36px; }
.section { padding: 64px 0; }
.section-head { align-items: center; margin-bottom: 28px; }
.section-head > div { min-width: 0; }
.section-head > a { flex-shrink: 0; }
.section-intro, .page-lead { line-height: 1.65; max-width: 68ch; margin: 12px 0 0; }
.split-panel { padding: 48px max(32px, calc((100vw - 1240px) / 2)); }
.split-panel p { line-height: 1.7; margin: 0 0 24px; }
.resource-card h3, .related-card h3 { font-size: 20px; line-height: 1.35; font-weight: 650; }
.resource-card p { line-height: 1.65; }
.resource-card { overflow: hidden; }
.home-resources .resource-card::before { align-self: stretch; flex: 0 0 164px; }
.home-resources .resource-card:nth-child(1)::before { background-image: url('./guides/hazwoper-site-assessment.jpg'); }
.home-resources .resource-card:nth-child(2)::before { background-image: url('./guides/online-training-field-office.jpg'); }
.home-resources .resource-card:nth-child(3)::before { background-image: url('./guides/crew-training-planning.jpg'); }
.home-resources .resource-card .text-link { padding-top: 18px; }
.home-library-section { padding: 0 0 64px; }
.home-library-callout { margin-top: 0; padding: 32px; }
.home-library-callout h2 { font: 650 clamp(23px, 2vw, 28px)/1.25 Geist, Arial, sans-serif; color: var(--navy); letter-spacing: -.02em; margin: 0 0 10px; }
.home-library-callout p { max-width: 70ch; line-height: 1.65; }
.home-library-callout .btn { flex-shrink: 0; }

/* A balanced introduction and a comfortably sized answer column. */
.home-faq .wrap { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.6fr); gap: 48px; }
.home-faq .section-head { align-self: start; margin: 0; }
.home-faq .section-title { max-width: 15ch; }
.home-faq .section-intro { font-size: 17px; }
.faq-list { width: 100%; max-width: none; }
.faq-item summary { font-size: 17px; padding: 18px 22px; }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { max-width: 68ch; }
.faq-item:last-child { margin-bottom: 0; }

.page-hero { padding: 52px 0 26px; }
.course-title { font-size: clamp(36px, 3.4vw, 48px); }
.course-summary { font-size: 18px; line-height: 1.65; }
.detail-grid { gap: 48px; }
.detail-media { border-radius: 3px; }
.fact-row { gap: 12px 24px; margin: 24px 0; }
.detail-section h2 { font-size: 25px; }
.detail-section p, .detail-section li, .notice { line-height: 1.7; }
.detail-sections { padding: 32px 0 48px; }
.related-card { display: flex; flex-direction: column; align-items: flex-start; }
.related-card p { color: var(--muted); margin: 0 0 20px; }
.related-link { margin-top: auto; }
.catalog-layout > section { min-width: 0; }
.catalog-search input, .search-form input { min-width: 0; }
.catalog-meta { gap: 16px; }
.filters h2 { font: 650 24px/1.3 Geist, Arial, sans-serif; text-transform: none; }
.filter-option { align-items: flex-start; line-height: 1.5; margin: 12px 0; cursor: pointer; }
.filter-option input { width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--navy); }

/* Editorial pages share the shell while retaining a narrower reading column. */
.resource-index, .guide-page { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 34px 0 64px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; line-height: 1.6; margin-bottom: 36px; }
.detail-hero .breadcrumbs { display: block; }
.eyebrow, .resource-tag { font-size: 12px; line-height: 1.5; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--red); }
.resource-index-heading { max-width: 780px; margin: 0 0 32px; }
.resource-index-heading > p:last-child { font-size: 18px; line-height: 1.7; color: #43515d; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.resource-grid .resource-card { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-top: 3px solid var(--navy); box-shadow: none; padding: 26px; }
.resource-grid .resource-card::before { display: none; }
.resource-grid .resource-card h2, .resource-grid .resource-card h3 {
  font: 650 22px/1.35 Geist, Arial, sans-serif; text-transform: none; letter-spacing: -.015em; margin: 12px 0;
}
.resource-grid .resource-card p { margin: 0 0 18px; }
.resource-grid .resource-card .resource-tag { font-size: 12px; color: var(--red); margin: 0; }
.resource-grid .resource-card > a { margin-top: auto; padding-top: 6px; color: var(--blue); font-weight: 650; text-underline-offset: 3px; }
.resource-index-cta { background: var(--pale); padding: 32px; margin-top: 40px; }
.resource-index-cta p { max-width: 68ch; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; min-height: 46px; font-weight: 650; line-height: 1.5; text-decoration: none; text-align: center; }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { background: #74231f; }
.guide-content { max-width: var(--reading); margin: 0 auto; }
.guide-heading { margin: 12px 0 28px; }
.guide-heading > p:not(.eyebrow):not(.guide-meta) { font-size: 18px; line-height: 1.7; color: #43515d; }
.guide-meta { font-size: 14px; line-height: 1.7; color: var(--muted); }
.guide-meta a { color: var(--blue); }
.guide-body { font-size: 18px; line-height: 1.75; color: #43515d; }
.guide-body p { margin: 0 0 22px; }
.guide-body h2 { font-size: 28px; margin: 40px 0 16px; }
.guide-body h3 { color: var(--navy); font-size: 23px; line-height: 1.35; margin: 32px 0 16px; }
.guide-body ul, .guide-body ol { padding-left: 24px; margin: 0 0 24px; }
.guide-body li { margin: 10px 0; }
.guide-body a, .guide-references a { color: #235c87; text-underline-offset: 3px; }
.guide-body h2, .guide-references li { scroll-margin-top: 102px; }
.cls-guide-answer { border-left: 3px solid var(--red); background: var(--pale); padding: 22px 24px; margin: 0 0 26px; color: #43515d; line-height: 1.7; }
.cls-guide-answer > strong { display: block; color: var(--navy); margin-bottom: 8px; }
.cls-guide-answer p { margin: 0; }
.cls-article-image { margin: 24px 0 30px; }
.cls-article-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 3px; }
.guide-toc { background: var(--pale); padding: 24px 28px; margin: 30px 0 38px; }
.guide-toc strong { color: var(--navy); }
.guide-toc ol { margin: 12px 0 0; padding-left: 22px; }
.guide-toc li { margin: 8px 0; }
.guide-toc a { color: var(--navy); text-underline-offset: 3px; }
.guide-references { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 28px; }
.guide-references h2 { font-size: 25px; }
.guide-references ol { font-size: 15px; line-height: 1.7; padding-left: 22px; }
.guide-references li { margin: 12px 0; }
.guide-references a { overflow-wrap: anywhere; }
.source-ref { font-size: .8em; }
.cls-pathway-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; margin: 24px 0; }
.cls-pathway-table caption { text-align: left; color: var(--navy); font-weight: 650; margin-bottom: 12px; }
.cls-pathway-table th, .cls-pathway-table td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cls-pathway-table thead { background: var(--pale); color: var(--navy); }
.cls-pathway-table th:first-child { width: 32%; }
.related-guides { margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--line); }
.related-guides .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legal-page { width: min(var(--reading), calc(100% - 40px)); margin: 0 auto; padding: 40px 0 64px; font-size: 17px; line-height: 1.75; }
.legal-back { display: inline-block; margin-bottom: 24px; color: var(--blue); }
.legal-updated { color: var(--muted); font-size: 14px; }
.legal-page section { margin-top: 32px; }
.legal-page h2 { font-size: 25px; }
.visually-hidden { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
.library-hero { padding: 44px 0; }
.library-hero h1 { max-width: 24ch; }
.library-section { padding: 52px 0; scroll-margin-top: 102px; }
.library-section h2 { font-size: 30px; }
.library-card h3 { font-family: Geist, Arial, sans-serif; font-weight: 650; }
.library-hero .eyebrow, .library-card .agency, .official-library-feature .resource-tag { color: var(--red); }

@media (max-width: 1120px) {
  .site-header { height: auto; min-height: 72px; }
  .header-inner { position: relative; }
  .menu-toggle { display: block; font-size: 16px; min-height: 44px; padding: 10px; cursor: pointer; }
  .site-nav { display: none; position: absolute; top: calc(100% + 14px); left: -20px; right: -20px; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100dvh - 85px); overflow-y: auto; gap: 4px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px; }
  .site-nav .nav-cta { margin-top: 8px; }
}
@media (max-width: 900px) {
  .hero-copy { width: min(600px, 80%); }
  .hero h1 { font-size: 46px; }
  .hero { min-height: 0; }
  .home-faq .wrap { grid-template-columns: 1fr; gap: 24px; }
  .home-faq .section-title { max-width: none; }
  .finder-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
  .site-footer .brand span { display: block; }
  .site-footer .brand { align-items: flex-start; flex-direction: column; }
  .resource-grid { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .hero-copy { width: 100%; padding: 40px 0 44px; }
  .hero h1 { font-size: clamp(34px, 9vw, 42px); line-height: 1.14; text-wrap: wrap; }
  .hero p { font-size: 17px; }
  .hero .actions { gap: 12px; }
  .hero .btn { padding: 0 15px; }
  .section { padding: 44px 0; }
  .home-library-section { padding-bottom: 44px; }
  .section-title { font-size: 28px; }
  .section-intro { font-size: 17px; }
  .section-head { display: block; }
  .section-head > a { display: inline-flex; margin-top: 20px; }
  .finder { padding: 32px 0; }
  .split-panel { padding: 38px 20px; }
  .home-library-callout .btn { width: 100%; white-space: normal; padding: 12px; text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer .brand { flex-direction: row; align-items: center; }
  .faq-item summary { padding: 16px; }
  .faq-answer { padding: 0 16px 18px; }
  .catalog-search input { width: 100%; }
  .catalog-meta { flex-wrap: wrap; font-size: 14px; }
  .page-hero { padding: 36px 0 16px; }
  .course-title { font-size: 36px; }
  .detail-media { order: 0; }
  .detail-grid { gap: 28px; }
  .detail-grid .btn { white-space: normal; padding: 12px 18px; text-align: center; }
  .resource-index, .guide-page { width: calc(100% - 28px); padding: 26px 0 44px; }
  .guide-body { font-size: 17px; }
  .guide-body h2 { font-size: 25px; }
  .related-guides .resource-grid { grid-template-columns: 1fr; }
  .cls-pathway-table { font-size: 14px; }
  .cls-pathway-table th, .cls-pathway-table td { padding: 10px 8px; overflow-wrap: anywhere; }
  .guide-toc, .cls-guide-answer, .resource-index-cta { padding: 20px; }
  .library-hero { padding: 32px 0; }
  .library-section { padding: 38px 0; }
  .legal-page { width: calc(100% - 28px); padding: 30px 0 44px; }
  #contact a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .guide-toc, .related-guides, .guide-action, .skip-link { display: none; }
  .guide-page, .guide-content { width: 100%; max-width: none; }
}
