/* CFGF mobile menu kit (2026-11-25). Swift Built standard mobile menu kit rules, copied one-for-one
   (source + notes: central-command/templates/mobile-kit/README.md, Community Roofing master).
   Changes: colors only, plus breakpoint 759/760 -> 921/922 to match Astra's header break,
   plus the invisible host wrapper and hiding of Astra's stock dropdown (kit sits at body level).
   Color map: #111 -> #2F5D3A (CFGF green); #f46e00 -> #F4EFE3; #f3dcb0 -> #F4EFE3;
   #c4a05a -> #D9CDB8; #2a2a2a -> rgba(244,239,227,.22); #1a1a1a -> #274F32;
   rgba(244,110,0,.4) -> rgba(244,239,227,.45). */
/* VERBATIM rules (comments stripped) from https://roofing.leastofme.com/index_htm_files/crm-enhancements-r2.css?v=20261124towns, fetched 2026-11-24.
   Only the mobile drop menu, handle, nav items, wordmark and crm-menu-lock rules are kept (desktop nav, burger, open pill, social removed). */
.crm-mobnav{display:none}
@media(max-width:921px){
  .crm-mobnav{display:block;background:#2F5D3A;padding:6px 12px;position:relative;z-index:1}
  .crm-mobnav.open,
  .crm-mobnav.is-closing{z-index:10021}
  .crm-drop-backdrop{position:fixed;inset:0;z-index:10020;
    background:rgba(0,0,0,.55);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .2s ease-out,visibility .2s ease-out}
  .crm-mobnav.open .crm-drop-backdrop,
  .crm-mobnav.is-closing .crm-drop-backdrop{visibility:visible;pointer-events:auto;opacity:1}
  .crm-drop{display:flex;flex-direction:column;
    position:fixed;left:0;right:0;top:0;
    width:100%;height:auto;max-height:100dvh;max-height:100%;
    z-index:10021;margin:0;padding:0;box-sizing:border-box;
    background:#2F5D3A;
    box-shadow:0 16px 32px rgba(0,0,0,.45);
    transform:translate3d(0,-105%,0);
    visibility:hidden;pointer-events:none;
    transition:transform .2s ease-out;
    overflow:hidden}
  .crm-mobnav.open .crm-drop,
  .crm-mobnav.is-closing .crm-drop{visibility:visible;pointer-events:auto;
    will-change:transform}
  .crm-mobnav.open .crm-drop{transform:translate3d(0,0,0)}
  .crm-mobnav.is-dragging .crm-drop,
  .crm-mobnav.is-dragging .crm-drop-backdrop{transition:none}
  .crm-drop[hidden],
  .crm-drop-backdrop[hidden]{display:none !important}
  .crm-drop-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:8px 6px 8px 12px;background:#2F5D3A;border-bottom:4px solid #F4EFE3;box-sizing:border-box}
  a.crm-drop-brand,
  a.crm-drop-brand:link,
  a.crm-drop-brand:visited,
  a.crm-drop-brand:hover,
  a.crm-drop-brand:focus{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;
    color:#F4EFE3;text-decoration:none;background:transparent;
    text-transform:none;letter-spacing:0;padding:0;border:0}
  .crm-drop-brand img{height:32px;width:auto;display:block;flex:0 0 auto}
  .crm-drop-close{flex:0 0 auto;background:#2F5D3A;color:#fff;border:0;border-radius:8px;
    width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    cursor:pointer;padding:0;margin-left:4px}
  .crm-drop-close svg{display:block}
  .crm-drop-head{touch-action:none}
  .crm-drop-scroll{overflow-y:auto;-webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    flex:0 1 auto;min-height:0;
    touch-action:pan-y}
  .crm-drop-handle{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
    background:#2F5D3A;border-top:1px solid rgba(244,239,227,.22);
    touch-action:none;cursor:grab}
  .crm-drop-handle-bar{width:44px;height:5px;border-radius:999px;
    background:#F4EFE3;box-shadow:0 0 0 1px rgba(244,239,227,.45)}
  .crm-drop-handle-hint{font:600 11px/1 Arial,Helvetica,sans-serif;
    letter-spacing:.08em;text-transform:uppercase;color:#D9CDB8}
  .crm-drop a{display:block;color:#fff;text-decoration:none;text-transform:uppercase;letter-spacing:2px;padding:16px 24px;border-left:4px solid transparent;border-bottom:1px solid rgba(244,239,227,.22);font:600 13px/1.2 Arial,Helvetica,sans-serif}
  .crm-drop a.current{border-left-color:#F4EFE3;color:#F4EFE3}
  .crm-drop a:focus,
  .crm-drop a:hover{background:#274F32}
  .crm-drop a.crm-drop-brand:focus,
  .crm-drop a.crm-drop-brand:hover{background:transparent;color:#fff}
  .crm-wordmark{display:flex;flex-direction:column;justify-content:center;gap:1px;
    min-width:0;flex:1 1 auto;
    color:#F4EFE3;text-transform:none;letter-spacing:0}
  .crm-wordmark-name{display:block;color:#F4EFE3;white-space:nowrap;
    font:700 13px/1.15 Arial,Helvetica,sans-serif}
  .crm-wordmark-sub{display:block;color:#F4EFE3;white-space:nowrap;
    font:600 10px/1.2 Arial,Helvetica,sans-serif}
}
html.crm-menu-lock,
body.crm-menu-lock{overflow-y:hidden !important;
  overscroll-behavior:none}
@media(prefers-reduced-motion:reduce){
  .crm-drop,
  .crm-drop-backdrop{transition-duration:.01s}
}
@media screen and (min-width:922px){
  .crm-mobnav{display:none !important}
}
@media screen and (max-width:921px){
  .crm-mobnav{display:block}
}
.crm-nav-item{position:relative}
.crm-nav-toprow{display:flex;align-items:stretch}
.crm-nav-caret{display:inline-flex;align-items:center;justify-content:center;
  margin:0;padding:0;border:0;background:transparent;cursor:pointer;
  color:inherit;flex:0 0 auto}
.crm-submenu{list-style:none;margin:0;padding:0}
@media screen and (max-width:921px){
  .crm-drop .crm-nav-item{border-bottom:1px solid rgba(244,239,227,.22)}
  .crm-drop .crm-nav-item > .crm-nav-toprow > .crm-nav-top,
  .crm-drop a.crm-nav-top{flex:1 1 auto;
    border-bottom:0}
  .crm-drop .crm-nav-caret{width:52px;min-height:52px;
    color:#F4EFE3;
    border-left:1px solid rgba(244,239,227,.22);
    font-size:16px;line-height:1}
  .crm-drop .crm-nav-item.open .crm-nav-caret{color:#F4EFE3}
  .crm-drop .crm-submenu{display:none;background:#274F32}
  .crm-drop .crm-nav-item.open .crm-submenu{display:block}
  .crm-drop .crm-submenu a{display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    padding:12px 20px 12px 32px;
    text-transform:none;
    letter-spacing:0;
    font:600 14px/1.35 Arial,Helvetica,sans-serif;
    color:#F4EFE3;
    border-left:4px solid transparent;
    border-bottom:1px solid rgba(244,239,227,.22);
    white-space:normal}
  .crm-drop .crm-submenu a.sub-current,
  .crm-drop .crm-submenu a.current{border-left-color:#F4EFE3;color:#fff}
}

.crm-mobnav.tym-kit-host{padding:0;background:transparent;height:0}
@media(max-width:921px){
  body.cfgf-sb-mmk #ast-mobile-header .ast-mobile-header-content{
    display:none !important;
    visibility:hidden !important;
    pointer-events:none !important;
    height:0 !important;
    overflow:hidden !important;
    padding:0 !important;
    min-height:0 !important;
  }
}


/* CFGF 2026-11-25 round 2: keep the mobile header on screen while scrolling.
   Astra Pro (the theme's sticky-header setting) is not installed, so this is
   minimal CSS at Astra's header breakpoint only (max-width: 921px). Desktop is unchanged.
   position:sticky leaves the header in document flow, so it does not cover page content
   and no body padding is added. */
@media (max-width: 921px) {
  body.cfgf-sb-mmk #masthead {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #ffffff;
    box-shadow: 0 1px 0 rgba(17,17,17,.08);
  }
  body.cfgf-sb-mmk #ast-mobile-header .site-title,
  body.cfgf-sb-mmk #ast-mobile-header .site-title a {
    white-space: normal;
    line-height: 1.2;
    font-size: 16px;
    max-width: calc(100vw - 96px);
  }
  .crm-wordmark-name {
    white-space: normal !important;
    line-height: 1.2;
  }
}
@media (max-width: 430px) {
  body.cfgf-sb-mmk #ast-mobile-header .site-title,
  body.cfgf-sb-mmk #ast-mobile-header .site-title a {
    font-size: 15px;
  }
}

/* Placeholder Cash App / Stripe / Square buttons (CFGF green #2F5D3A + cream #F4EFE3).
   Live donate slots use .cfgf-pay-pending and stay hidden until real links replace
   href="#PLACEHOLDER" and this hide rule is removed. The unpublished raffle draft
   omits .cfgf-pay-pending so the slots can be reviewed there. */
.cfgf-pay-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:1.25rem 0}
a.cfgf-pay-btn,
a.cfgf-pay-btn:link,
a.cfgf-pay-btn:visited{
  display:inline-block;background:#2F5D3A;color:#F4EFE3;text-decoration:none;
  border:2px solid #F4EFE3;border-radius:8px;padding:12px 18px;
  font:600 14px/1.2 Arial,Helvetica,sans-serif;letter-spacing:.04em
}
a.cfgf-pay-btn:hover,
a.cfgf-pay-btn:focus{background:#274F32;color:#fff}
.cfgf-pay-pending{display:none !important}

/* Visible "Menu" label on the Astra mobile toggle (icon-only / minimal trigger). */
@media (max-width: 921px) {
  body.cfgf-sb-mmk #ast-mobile-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  body.cfgf-sb-mmk #ast-mobile-header .menu-toggle .cfgf-menu-label {
    font: 600 14px/1 Arial, Helvetica, sans-serif;
    letter-spacing: 0.04em;
    color: inherit;
  }
}
