/* CPPDC Phase 2: hand-written fixes on top of the generated component CSS.
   Keep this file small. Anything structural belongs in the mockup base.css and the generator. */

/* Astra underlines content links; our buttons and card links are not prose links */
.p2-btn-sm, .p2-btn-sm:hover, .p2-btn-sm:focus,
.p2-thumb, .p2-thumb:hover,
.p2-jump a, .p2-jump a:hover,
.p2-side-actions a, .p2-side-actions a:hover { text-decoration: none !important; }
.p2-jump a { border-bottom: 2px solid rgba(156,227,125,.6); }

/* Single resource: navy hero (the live CSS hides Astra's entry header, so the H1 lives here) */
.wp-block-cover.cppdc-hero.cppdc-resource-hero { background: linear-gradient(135deg,#1a2456 0%,#2c3b97 100%); padding: 56px 24px 64px !important; min-height: 0 !important; aspect-ratio: auto !important; }
.wp-block-cover.cppdc-hero.cppdc-resource-hero::after { bottom: 18px; }
@media (max-width: 900px) { .cppdc-resource-single.p2-split { grid-template-columns: 1fr !important; } }
.cppdc-resource-hero .wp-block-cover__inner-container { max-width: 880px; text-align: center; }
.cppdc-resource-hero h1 { color: #fff !important; font-size: clamp(1.7rem,3.4vw,2.5rem); line-height: 1.12; margin: 0; }
.cppdc-resource-hero .p2-crumbs a { color: #9ce37d; text-decoration: none; }
.cppdc-resource-body { padding: 48px 24px 24px; }
.cppdc-resource-single .p2-docimg { display: block; }
.cppdc-resource-more { max-width: 820px; margin: 32px auto 0; }
.single-resource .ast-single-post-featured-section, .single-resource .ast-single-post-order, .single-resource .post-navigation { display: none !important; }
.single-resource .entry-content > :first-child.cppdc-resource-hero { margin-top: 0; }

/* Library page: the quiet answer block and the shortcode output share the constrained width */
.p2-answer { margin-bottom: 18px; }

/* Header: six top-level items fit on one line; Get Connected is the gold button (menu item class menu-cta) */
@media (min-width: 922px) {
  .main-header-menu > .menu-item > .menu-link { font-size: 16px !important; padding-left: 13px !important; padding-right: 13px !important; }
  .main-header-menu > .menu-item.menu-cta > .menu-link { background: #daab28; color: #1a1a1a !important; border-radius: 8px; padding: 9px 16px 9px !important; margin-left: 6px; line-height: 1.2; }
  .main-header-menu > .menu-item.menu-cta > .menu-link::after { display: none; }
  .main-header-menu > .menu-item.menu-cta > .menu-link:hover { background: #c9991f; }
}
@media (min-width: 922px) and (max-width: 1180px) {
  .main-header-menu > .menu-item > .menu-link { font-size: 14px !important; padding-left: 7px !important; padding-right: 7px !important; }
  .main-header-menu > .menu-item.menu-cta > .menu-link { padding: 8px 11px 8px !important; margin-left: 2px; }
  #masthead .site-logo-img .custom-logo-link img, .site-header .custom-logo { max-width: 220px !important; width: 220px; height: auto; }
}

/* Phase 2 pages: short hero over a photo, crumbs, placeholders */
.wp-block-cover.cppdc-hero.p2-short { min-height: 0 !important; aspect-ratio: auto !important; padding: 72px 24px 80px !important; }
.wp-block-cover.cppdc-hero.p2-home { min-height: min(68vh, 620px) !important; padding: 128px 24px 136px !important; }
.cppdc-hero .p2-crumbs { font-size: .8rem; margin: 0 0 14px; }
.cppdc-hero .p2-crumbs a { color: #9ce37d; text-decoration: none; }
.cppdc-hero .p2-lede { font-size: 1.1rem; max-width: 760px; margin: 0 auto 10px; }
.cppdc-hero .wp-block-buttons { margin-top: 22px; }
.cppdc-hero .is-style-outline .wp-block-button__link { background: transparent !important; color: #9ce37d !important; border: 2px solid #9ce37d !important; }
/* "CPPDC to supply" chips: visible on staging on purpose, removed as content arrives */
.p2-ph { display: inline-block; border: 1.5px dashed #b89622; color: #6b5410; background: rgba(218,171,40,.10); border-radius: 5px; padding: 2px 9px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; white-space: normal; }
.wp-block-cover .p2-ph, .p2-head .p2-ph { color: #ffe9a8; border-color: #daab28; background: rgba(0,0,0,.25); }
.p2-flag { display: inline-block; background: rgba(218,171,40,.18); color: #6b5410; border-radius: 4px; padding: 1px 7px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; margin-left: 6px; }
/* navy band and hub band (home, initiatives hub) */
.wp-block-cover.p2-navy { background: linear-gradient(135deg,#1a2456 0%,#2c3b97 100%); min-height: 0 !important; aspect-ratio: auto !important; padding: 72px 24px 80px !important; }
.wp-block-cover.p2-navy .wp-block-cover__background { display: none; }
.wp-block-cover.p2-navy h2 { color: #fff !important; }
.wp-block-cover.p2-navy .wp-block-cover__inner-container, .wp-block-cover.p2-hub-band .wp-block-cover__inner-container { max-width: 1200px; }
.p2-hub-band .cppdc-eyebrow { text-align: left; }
/* Employer Connect Hub: region chips are unlinked until the provider list arrives; tiles sit under the answer block */
.p2-regions span { display: block; text-align: center; background: #f8f9fb; border: 1px solid rgba(44,59,151,.15); border-radius: 8px; padding: 9px 6px; font-size: .84rem; font-weight: 700; color: #2c3b97; }
.p2-hub-tile, .p2-hub-tile:hover { text-decoration: none !important; }
@media (max-width: 900px) { .p2-paths { grid-template-columns: 1fr !important; } }
.p2-strip .p2-logo .p2-ph { font-size: .6rem; padding: 1px 6px; margin-top: 4px; }
/* initiative pages */
@media (max-width: 900px) { .p2-split { grid-template-columns: 1fr !important; } }
.p2-split .cppdc-checklist { list-style: none; padding: 0; }
.p2-split .wp-block-heading { margin-top: 0; }
.p2-split h2 + h2, .p2-split .wp-block-heading.p2-gap { margin-top: 36px; }
.p2-steps li { color: #4a4f66; font-size: .93rem; }
.cppdc-event-title a, .p2-viewbar a.chip, .p2-viewbar a.chip:hover { color: inherit; text-decoration: none !important; }
.cppdc-event-title a:hover { text-decoration: underline !important; }
.p2-viewbar a.chip:hover { color: #fff; }
/* core/table carrying the chooser table */
.wp-block-table.p2-tablewrap table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid rgba(44,59,151,.14); font-size: .9rem; min-width: 620px; }
.wp-block-table.p2-tablewrap th { background: #2c3b97; color: #fff; text-align: left; padding: 12px 16px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border: 0; }
.wp-block-table.p2-tablewrap td { padding: 13px 16px; border: 0; border-top: 1px solid rgba(44,59,151,.14); vertical-align: top; color: #4a4f66; }
.wp-block-table.p2-tablewrap td:first-child { font-weight: 800; color: #2c3b97; }
.wp-block-table.p2-tablewrap a { font-weight: 700; text-decoration: none; }
/* FAQ as core/details */
.p2-faq details.cppdc-faq > p, .p2-faq details.cppdc-faq .wp-block-paragraph { margin: 10px 0 0; color: #4a4f66; font-size: .93rem; }
/* Get Connected: Fluent Forms inside the tabbed panels */
.p2-formwrap .fluentform { background: #fff; border: 1px solid rgba(44,59,151,.14); border-radius: 14px; padding: 28px; box-shadow: 0 2px 12px rgba(44,59,151,.05); }
.p2-formwrap .p2-hint { font-size: .86rem; color: #4a4f66; margin: 0 0 16px; }
.p2-panel[hidden] { display: none; }
.p2-tabs { margin-top: 28px; }
.p2-logos .p2-logo, .p2-profile .logo { min-height: 64px; }
@media (max-width: 600px) { .p2-formwrap .fluentform { padding: 18px; } }
