/* Phone slide-in menu (left drawer). Only active where the old Menu button showed (<=860px). */
.bwc-drawer,.bwc-overlay{display:none}
@media(max-width:860px){
 html body .nav .menu-btn.bwc-burger{width:44px;min-width:44px;height:40px;padding:0!important;display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:0!important;background:#fff;border:1.5px solid #1A1A1A;border-radius:10px!important}
 .bwc-burger span{display:block;width:20px;height:2px;border-radius:2px;background:#1A1A1A}
 html body .nav ul#menu,html body .nav ul#menu.open{display:none!important}
 .bwc-overlay{display:block;position:fixed;inset:0;background:rgba(20,20,30,.45);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;z-index:2147483000}
 .bwc-drawer{display:flex;flex-direction:column;position:fixed;top:0;left:0;bottom:0;width:80%;max-width:320px;background:#fff;color:#1A1A1A;box-shadow:6px 0 28px rgba(0,0,0,.18);transform:translateX(-105%);visibility:hidden;transition:transform .28s ease,visibility .28s;z-index:2147483001;overflow-y:auto;font-family:inherit}
 body.bwc-drawer-open .bwc-overlay{opacity:1;visibility:visible}
 body.bwc-drawer-open .bwc-drawer{transform:none;visibility:visible}
 body.bwc-drawer-open{overflow:hidden;touch-action:none}
 .bwc-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 10px 20px;border-bottom:1px solid #E5E5EA}
 .bwc-drawer-head strong{font-size:1.05rem;color:#1A1A1A;border-left:3px solid #0F2A44;padding-left:10px}
 .bwc-close{width:40px;height:40px;border:0;background:none;font-size:28px;line-height:1;color:#1A1A1A;cursor:pointer;border-radius:8px}
 .bwc-drawer ul{list-style:none;margin:0;padding:8px 10px}
 .bwc-drawer li a{display:flex;align-items:center;min-height:48px;padding:0 12px;border-radius:10px;color:#1A1A1A;text-decoration:none;font-size:1.05rem}
 .bwc-drawer li a[aria-current]{background:#F5F5F7;box-shadow:inset 3px 0 0 #0F2A44;font-weight:600}
 .bwc-drawer-actions{margin-top:auto;padding:14px 20px 24px;border-top:1px solid #E5E5EA;display:flex;flex-direction:column;gap:10px}
 .bwc-drawer-actions a{display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:10px;text-decoration:none;font-weight:600;font-size:1rem;color:#1A1A1A;border:1.5px solid #1A1A1A;background:#fff}
 .bwc-drawer-actions a.bwc-join{background:#1f7a4d;border-color:#1f7a4d;color:#fff}
 .bwc-drawer a:focus-visible,.bwc-close:focus-visible{outline:2px solid #1A1A1A;outline-offset:2px}
}
@media(prefers-reduced-motion:reduce){.bwc-drawer,.bwc-overlay{transition:none}}

@media(max-width:860px){header.nav .wrap>nav{order:-1 !important;margin-right:auto}header.nav .wrap{flex-direction:row}}

/* compact drawer: fits content, narrower (preview) */
@media(max-width:860px){html body .bwc-drawer{bottom:auto;max-height:calc(100vh - 24px);width:66%;max-width:260px;top:8px;left:8px;border-radius:14px}html body .bwc-drawer-actions{margin-top:0}html body .bwc-drawer li a{min-height:42px}}

/* narrower drawer, smaller buttons (preview) */
@media(max-width:860px){html body .bwc-drawer{width:56%;max-width:220px}html body .bwc-drawer-actions{padding:10px 14px 14px;gap:8px}html body .bwc-drawer-actions a{min-height:36px;font-size:.9rem;border-radius:8px}html body .bwc-drawer-head{padding:10px 10px 8px 14px}html body .bwc-drawer ul{padding:6px 6px}html body .bwc-drawer li a{font-size:1rem;padding:0 10px}}
@media(max-width:860px){html body .bwc-drawer-head strong{font-size:.92rem;white-space:nowrap}html body .bwc-close{width:32px;height:32px;font-size:24px}}

/* One-picture view choice in phone menu (preview, Mark 2 Nov) */
.bwc-view-li{display:none}
@media(max-width:600px){
 html body .bwc-drawer li.bwc-view-li{display:block;border-top:1px solid #E5E5EA;margin-top:4px;padding-top:4px}
 .bwc-view{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:42px;padding:0 10px;border:0;border-radius:10px;background:none;color:#1A1A1A;font:inherit;font-size:1rem;text-align:left;cursor:pointer}
 .bwc-view:focus-visible{outline:2px solid #1A1A1A;outline-offset:2px}
 .bwc-sw{flex:none;position:relative;width:34px;height:20px;border-radius:20px;background:#C7C7CC;transition:background .2s}
 .bwc-sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .2s}
 .bwc-view[aria-pressed="true"] .bwc-sw{background:#1f7a4d}
 .bwc-view[aria-pressed="true"] .bwc-sw::after{transform:translateX(14px)}
 /* Beat phone-card-match.css :not(#pc1)..#pc4 !important 2-col rules (Mark 11 Nov: one-picture view not working). No default-layout change. */
 html.bwc-one body #results.grid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #featured-grid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #intl-grid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body .featured .fgrid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body .fc-grid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #hoffer .of-cards.fc-grid:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5){grid-template-columns:minmax(0,1fr)!important}
 html.bwc-one body #results.grid>article.card.offer:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #featured-grid>article.fcard:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body .featured article.fcard:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #intl-grid>article.card.offer:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body .fc-grid>article.fc-card:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5),
 html.bwc-one body #hoffer .of-cards>article.fc-card:not(#pc1):not(#pc2):not(#pc3):not(#pc4):not(#pc5){grid-column:1/-1!important;grid-row:auto!important}
}
