/*
 Theme Name:  Clear Health Pass (Divi Child)
 Description: Child theme for the clearhealthpass.com redesign. Requires the Divi parent theme.
 Template:    Divi
 Version:     1.0.0
*/

/* The site's design is the CEO's v2 "Human First" prototype: chp-v3.css (Nov 7, 2026). This file only lays out the
   pages that are not built from the prototype – Privacy Policy, the press-release posts, the WoundGraft
   Pro app pages, the form-submitted page and WordPress listings – in the same look: a reading column with the
   prototype's type and colours under the page hero from functions.php (chp_banner). The earlier designs (v0.2/v0.3,
   the Oct 28 inner pages) are in git history before Nov 7, 2026. */

body.chp-v3:not(.chp-v3-page) #main-content { background: var(--paper); padding-bottom: 80px; }
body.chp-v3:not(.chp-v3-page) #main-content .container { width: calc(100% - 128px); max-width: 1440px; padding-top: 0; }
body.chp-v3:not(.chp-v3-page) #main-content .container:before { display: none; }
.chp-legacy-hero .page-hero { padding-bottom: 34px; }
.chp-legacy-hero .chp-hb-lede { max-width: 760px; color: var(--muted); font-size: 17px; }

/* Divi sections inside legacy pages: no coloured or photo backgrounds, one reading width */
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_section { background: transparent !important; background-image: none !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_section { padding: 20px 0 !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_section:first-child { padding-top: 0 !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_row { width: calc(100% - 128px); max-width: 880px; padding: 14px 0 !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_section .et_pb_row .et_pb_column { background: transparent !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_text, body.chp-v3:not(.chp-v3-page) #main-content .entry-content { color: #50625f; font-size: 16px; line-height: 1.75; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_text :not(a):not(h1):not(h2):not(h3):not(h4):not(h5), body.chp-v3:not(.chp-v3-page) #main-content .entry-content :not(a):not(h1):not(h2):not(h3):not(h4):not(h5) { color: inherit !important; background-color: transparent !important; }
body.chp-v3:not(.chp-v3-page) #main-content h1, body.chp-v3:not(.chp-v3-page) #main-content h2,
body.chp-v3:not(.chp-v3-page) #main-content h3, body.chp-v3:not(.chp-v3-page) #main-content h4,
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_module_heading { font-family: Manrope, Arial, sans-serif !important; color: var(--ink) !important; letter-spacing: -.03em; line-height: 1.2; text-align: left !important; }
body.chp-v3:not(.chp-v3-page) #main-content h2 { font-size: 30px; font-weight: 500; margin: 34px 0 14px; }
body.chp-v3:not(.chp-v3-page) #main-content h3 { font-size: 22px; margin: 26px 0 10px; }
body.chp-v3:not(.chp-v3-page) #main-content h4, body.chp-v3:not(.chp-v3-page) #main-content h5 { font-size: 17px; margin: 20px 0 8px; }
body.chp-v3:not(.chp-v3-page) #main-content p { margin-bottom: 16px; padding-bottom: 0; }
body.chp-v3:not(.chp-v3-page) #main-content a { color: #0b7f8d; text-decoration: underline; text-underline-offset: 3px; }
body.chp-v3:not(.chp-v3-page) #main-content a.btn, body.chp-v3:not(.chp-v3-page) #main-content .et_pb_button { color: var(--white) !important; text-decoration: none; }
body.chp-v3:not(.chp-v3-page) #main-content ul, body.chp-v3:not(.chp-v3-page) #main-content ol { padding-left: 22px; margin-bottom: 16px; }
body.chp-v3:not(.chp-v3-page) #main-content li { margin-bottom: 6px; }
body.chp-v3:not(.chp-v3-page) #main-content img { max-width: 100%; height: auto; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_button { background: var(--ink) !important; border: 1px solid var(--ink) !important; border-radius: 0 !important; font: 600 13px 'DM Sans', Arial, sans-serif !important; padding: 14px 24px !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_button:hover { background: var(--orange) !important; border-color: var(--orange) !important; }
body.chp-v3:not(.chp-v3-page) #main-content .et_pb_button:after { display: none; }
/* The live pages repeat the page title as a big heading or photo banner under the hero; the hero carries it */
body.chp-banner-replaces #main-content .et_pb_section:first-child { display: none !important; }

/* Press releases (single posts): Divi's standard article page, no sidebar, centred column; the hero shows the title */
body.single-post.chp-v3 #left-area { width: 100% !important; max-width: 880px; float: none; margin: 0 auto; padding: 0 !important; }
body.single-post.chp-v3 #sidebar { display: none !important; }
body.single-post.chp-v3 .et_post_meta_wrapper .entry-title { display: none; }
body.single-post.chp-v3 .et_post_meta_wrapper .post-meta { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange) !important; margin-bottom: 26px; }
body.single-post.chp-v3 .et_post_meta_wrapper .post-meta a { color: inherit !important; text-decoration: none !important; }
body.single-post.chp-v3 .et_post_meta_wrapper img { display: none; }
body.single-post.chp-v3 article.et_pb_post { background: transparent; border: 0; padding: 0; max-width: none; }
body.single-post.chp-v3 #comment-wrap { display: none; }
body.single-post.chp-v3 .et_pb_post .entry-content { padding-top: 0; }

/* Listings (category, search, archive) */
body.chp-v3.archive #left-area, body.chp-v3.search #left-area, body.chp-v3.blog #left-area { width: 100% !important; max-width: 880px; float: none; margin: 0 auto; padding: 0 !important; }
body.chp-v3.archive #sidebar, body.chp-v3.search #sidebar, body.chp-v3.blog #sidebar { display: none !important; }
body.chp-v3 #left-area .et_pb_post { padding: 26px 0; margin: 0; border-bottom: 1px solid var(--line); }
body.chp-v3 #left-area .et_pb_post h2 { font-size: 24px; margin: 0 0 8px; }
body.chp-v3 #left-area .et_pb_post h2 a { color: var(--ink) !important; text-decoration: none; }

@media (max-width: 800px) {
  body.chp-v3:not(.chp-v3-page) #main-content .container, body.chp-v3:not(.chp-v3-page) #main-content .et_pb_row { width: calc(100% - 40px); }
  body.chp-v3:not(.chp-v3-page) #main-content h2 { font-size: 25px; }
}
/* v4.4 redline: editor notes at the top of corrected press releases */
.chp-editor-note{background:#f5f3ec;border-left:3px solid #da4d29;padding:12px 16px;font-size:.92em}
