/* Approved mobile header (Draft B) for blog pages. Same rules as the homepage <style> block. */
/* ===== Mobile header (approved Draft B). Desktop header unchanged. ===== */
@media (min-width:861px){
  .mobile-broker-row, .mobile-broker-marks{display:none !important}
}

@media (max-width:860px){
  body header.site{
    position:sticky;top:0;z-index:50;
    background:#3a2a1e;
    border-bottom:1px solid rgba(184,149,90,.45);
    border-image:none;
  }
  body .compliance{border-bottom:1px solid rgba(184,149,90,.25) !important}
  body header.site .broker-branding{
    display:flex !important;
    flex-direction:column;
    grid-template-columns:none !important;
    min-height:0 !important;
    height:auto;
    padding:.45rem 0 .4rem !important;
    background:transparent !important;
    align-items:stretch !important;
    gap:.35rem !important;
  }
  body header.site .broker-branding .brand{
    justify-content:flex-start !important;
    grid-column:auto !important;
  }
  body header.site .broker-branding .brand img,
  body header.site .broker-branding .brand img[style]{
    width:auto !important;
    height:40px !important;
    max-height:40px !important;
    max-width:200px !important;
    padding:0 !important;
    background:transparent !important;
    border-radius:0 !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:left center !important;
  }
  body header.site .broker-identity{
    display:none !important;
  }
  body header.site .navigation-row{
    position:absolute !important;
    right:0;top:0;
    height:54px !important;
    width:auto !important;
    border-top:0 !important;
    justify-content:flex-end !important;
    background:transparent;
    z-index:61;
  }
  body header.site .navigation-row.wrap{width:auto;margin-right:4%;padding:0}
  body .menu-toggle span{background:#F4ECDC}
  body header.site .mobile-broker-marks{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:min(1180px,92%);
    margin:0 auto;
    padding:.15rem 0 .2rem;
    gap:.4rem 1.2rem;
    justify-items:start;
  }
  body header.site .mobile-broker-marks a{
    display:flex;flex-direction:column;align-items:flex-start;gap:.22rem;min-width:0;color:#EDE6DA;
  }
  body header.site .mobile-broker-marks img{height:24px;width:auto;max-width:130px;object-fit:contain}
  body header.site .mobile-broker-marks span{font-size:.55rem;letter-spacing:.08em;text-transform:uppercase;color:#CDB07A;font-weight:600;line-height:1.25}
}



/* Draft B mobile header: less busy, balanced logo pair. Desktop unchanged. */
@media (max-width: 860px) {

  /* Keep the required license + phone strip, just smaller and tighter. */
  body .compliance { font-size: .6rem; }
  body .compliance .wrap {
    padding: .28rem 0 !important;
    gap: .15rem .35rem !important;
    line-height: 1.3 !important;
  }

  /* Slightly slimmer Cora mark and header padding. */
  body header.site .broker-branding {
    padding: .3rem 0 .28rem !important;
    gap: .28rem !important;
  }
  body header.site .broker-branding .brand img,
  body header.site .broker-branding .brand img[style] {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 170px !important;
  }
  body header.site .navigation-row {
    height: 46px !important;
  }

  /* Logo pair: equal columns, vertically centered. Captions hidden to cut clutter
     (license bar already names both brokerages). */
  body header.site .mobile-broker-marks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: .05rem 0 .12rem;
    gap: 1rem;
    min-height: 36px;
  }
  body header.site .mobile-broker-marks a {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    color: #EDE6DA;
  }
  body header.site .mobile-broker-marks a:first-child { justify-content: flex-start; }
  body header.site .mobile-broker-marks a:last-child { justify-content: flex-end; }
  body header.site .mobile-broker-marks span { display: none; }

  /* Shared slot so a future horizontal Windermere file can drop in at the same height. */
  body header.site .mobile-broker-marks img,
  body header.site .mobile-broker-marks img.logo-homesmart,
  body header.site .mobile-broker-marks img.logo-windermere {
    height: auto !important;
    width: auto !important;
    max-height: 26px !important;
    max-width: 150px !important;
    object-fit: contain !important;
    flex: none !important;
  }
  /* Stacked official lockup only: a modest extra height so it isn't undersized
     next to the wide one-line HomeSmart mark. Remove this exception when the
     Windermere src is a single-line horizontal lockup. */
  body header.site .mobile-broker-marks img.logo-windermere {
    max-height: 34px !important;
    max-width: 110px !important;
  }
}

@media (max-width: 860px) {
  body header.site .navigation-row{position:static !important;height:0 !important;min-height:0 !important;padding:0 !important;margin:0 !important;border:0 !important;width:auto !important;overflow:visible}
  body header.site .menu-toggle{position:absolute !important;top:3px;right:calc(4% - 4px);z-index:61}
  body header.site nav.main{left:0;right:0;top:100%;width:auto}
}
@media (max-width:860px){ body .compliance{background:#3a2a1e !important} }

/* Mobile menu: hamburger becomes an X, stays tappable, and sits above the dropdown. */
@media (max-width: 860px) {
  body header.site .menu-toggle{
    position:absolute !important;
    top:3px;
    right:calc(4% - 4px);
    z-index:80;
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    width:44px;
    height:44px;
    padding:0;
    pointer-events:auto;
    -webkit-tap-highlight-color:transparent;
    background:transparent;
  }
  body header.site .menu-toggle span{
    margin:0 !important;
    width:22px;
    height:1.5px;
    background:#F4ECDC;
    transition:transform .2s ease,opacity .2s ease;
    pointer-events:none;
  }
  body header.site .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg)}
  body header.site .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  body header.site .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg)}
  body header.site nav.main{z-index:70;left:0;right:0;top:100%;width:auto}
  .menu-backdrop{display:none;position:fixed;inset:0;z-index:45;background:transparent}
  body.menu-open .menu-backdrop{display:block}
}
