/* Your Colorado Home Group — site-wide chrome and overrides.
   Loaded once by the "blank" page template, so it applies to every page
   without editing the inline stylesheet each page carries.

   NOTE: this file is injected BEFORE each page's own inline <style>, so equal-specificity
   rules would lose on source order. That is why the overrides carry !important.

   CACHING: the host edge-caches this path hard. Editing in place LOOKS like it worked and
   keeps serving the old file. A query string does bust it, so after every edit bump the
   ?v= number on the <link> in the "blank" template to match the comment below.
   Current: ?v=3 */

/* ---------------------------------------------------------------
   1. ONE site nav, defined once in the blank template.
   Every page still carries its own copy-pasted .ychg .nav inline;
   we hide those so there is a single source of truth for the menu.
   --------------------------------------------------------------- */
.ychg .nav { display: none !important; }

.ychgnav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.ychgnav a { text-decoration: none; }
.ychgnav__brand { display: flex; align-items: center; line-height: 0; }
.ychgnav__logo { height: 54px; width: auto; display: block; }
.ychgnav__toggle { display: none; }
.ychgnav__hamb { display: none; font-size: 26px; line-height: 1; color: #A4162A; cursor: pointer; user-select: none; }
.ychgnav__links { display: flex; align-items: center; gap: 2px; }
.ychgnav__links > a,
.ychgnav__drop > a { color: #1A1A1A; font-size: 14px; font-weight: 600; margin: 0 9px; white-space: nowrap; }
.ychgnav__links > a:hover,
.ychgnav__drop > a:hover { color: #A4162A; }
.ychgnav__cta { background: #A4162A; color: #fff !important; padding: 10px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 700; white-space: nowrap; flex: 0 0 auto; margin-left: 8px; }
.ychgnav__cta:hover { background: #7E1020; }
.ychgnav__drop { position: relative; display: inline-flex; align-items: center; }
.ychgnav__menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #E7E3E4;
  border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 8px 0; min-width: 240px;
  display: none; z-index: 60; }
.ychgnav__drop:hover .ychgnav__menu { display: block; }
.ychgnav__menu a { display: block; margin: 0; padding: 9px 16px; font-size: 14px;
  color: #1A1A1A; white-space: nowrap; }
.ychgnav__menu a:hover { background: #FBF3F4; color: #A4162A; }

@media (max-width: 980px) {
  .ychgnav { padding: 12px 16px; gap: 8px; }
  .ychgnav__logo { height: 44px; }
  .ychgnav__hamb { display: block; order: 2; }
  .ychgnav__links { display: none; order: 3; flex-basis: 100%; flex-direction: column;
    align-items: stretch; gap: 0; padding-top: 6px; }
  .ychgnav__toggle:checked ~ .ychgnav__links { display: flex; }
  .ychgnav__links > a,
  .ychgnav__drop { margin: 0; padding: 11px 2px; font-size: 15px; border-top: 1px solid #F0E7E8; }
  .ychgnav__drop { display: block; }
  .ychgnav__menu { position: static; display: block; box-shadow: none; border: none;
    border-radius: 0; padding: 0 0 0 12px; min-width: 0; }
  .ychgnav__menu a { padding: 9px 6px; color: #5B5B66; }
  .ychgnav__cta { margin: 10px 0 2px; display: inline-block; text-align: center; }
}

/* ---------------------------------------------------------------
   2. Close the white strip between the nav and the first band.
   wpautop leaves empty <p> tags around the raw-HTML block, and the
   block layout adds a block-gap margin above <main>.
   --------------------------------------------------------------- */
main.wp-block-group.alignfull { margin-block-start: 0 !important; margin-top: 0 !important; }
main.wp-block-group p:empty,
.entry-content > p:empty,
.wp-block-post-content > p:empty { display: none !important; margin: 0 !important; }
.ychg > *:first-child,
.ychg > .hero:first-of-type,
.ychg > .phero:first-of-type { margin-top: 0 !important; }

/* ---------------------------------------------------------------
   3. Wider content columns.
   The bands are already edge to edge; this widens what sits inside them.
   --------------------------------------------------------------- */
.ychg .wrap,
.ychg .heroInner { max-width: 1240px !important; }

.ychg .hero p { max-width: 600px !important; }
.ychg h2 { max-width: 820px !important; }
.ychg .lead { max-width: 700px !important; }

@media (max-width: 900px) {
  .ychg .wrap,
  .ychg .heroInner { max-width: 100% !important; }
  .ychg .hero p,
  .ychg h2,
  .ychg .lead { max-width: 100% !important; }
}

/* ---------------------------------------------------------------
   4. ONE site footer, defined once in the blank template, same
   reasoning as the nav above: every page carries an identical
   copy-pasted <footer> inside .ychg, so hide those.
   --------------------------------------------------------------- */
.ychg footer { display: none !important; }

.ychgfoot {
  background: #1A1A1A; color: #C9C9D2; padding: 40px 24px; font-size: 14px; line-height: 1.6;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.ychgfoot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  max-width: 1240px; margin: 0 auto; }
.ychgfoot__logo { height: 60px; width: auto; display: block; margin-bottom: 14px; }
.ychgfoot a { color: #E9C7CC; text-decoration: none; }
.ychgfoot a:hover { color: #fff; }
.ychgfoot__eho { font-size: 12px; color: #8A8A93; margin-top: 14px;
  max-width: 1240px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .ychgfoot__row, .ychgfoot__eho { max-width: 100%; }
  .ychgfoot__logo { height: 50px; }
}
