/* Richmond Bash Robotics: theme styles. Tokens come from theme.json. Storefront styles live in the plugin. */
html{-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto}
:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #000;outline-offset:2px;box-shadow:0 0 0 2px #fff}

/* Page gutter: the same breathing room at the screen edge on every page */
:root{--rb-gutter:clamp(.875rem,3.6vw,2rem)}
html,body{overflow-x:clip}
.wp-site-blocks>main{padding-inline:var(--rb-gutter)!important;box-sizing:border-box}
.wp-site-blocks main .alignfull{margin-inline:calc(var(--rb-gutter) * -1)!important;padding-inline:var(--rb-gutter)!important;max-width:none!important}
.wp-site-blocks main .alignwide{padding-inline:0!important}
.wp-site-blocks main p,.wp-site-blocks main li{overflow-wrap:anywhere}

/* Header. Phone: menu | logo | search | cart, with search opening underneath. Larger: logo | search | cart, menu row below. */
.rb-header{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--wp--preset--color--line);padding-top:env(safe-area-inset-top,0)}
.rb-header a,.rb-header .rb-site-title{color:#000;text-decoration:none}
.rb-header .rb-header__bar{display:grid;grid-template-columns:auto minmax(220px,560px) auto;grid-template-areas:"brand search cart" "nav nav nav";justify-content:space-between;align-items:center;gap:.4rem 1.25rem;max-width:1200px;margin:0 auto;padding:.6rem var(--rb-gutter) 0;box-sizing:border-box}
.rb-header .rb-header__bar>*{margin:0!important}
.rb-header .rb-brandbox{grid-area:brand;gap:.7rem;flex-wrap:nowrap;min-width:0}
.rb-header .rb-search{grid-area:search;width:100%;min-width:0}
.rb-header .rb-cartpill{grid-area:cart}
.rb-header .rb-searchbtn{grid-area:sbtn}
.rb-header .rb-nav{grid-area:nav;border-top:1px solid var(--wp--preset--color--line);margin-top:.2rem!important}
.rb-header .wp-block-site-logo{margin:0}
.rb-header .wp-block-site-logo img{width:auto!important;height:auto;max-height:44px;max-width:120px}
.rb-site-title,.rb-site-title a{font-family:var(--wp--preset--font-family--heading);font-weight:700;font-size:1.15rem;white-space:nowrap}
.wp-block-site-logo + .rb-site-title{display:none}
.rb-tagline{margin:0;font-size:.78rem;color:var(--wp--preset--color--muted);white-space:nowrap}
.rb-search .wp-block-search__inside-wrapper{background:var(--wp--preset--color--soft-grey);border:1px solid var(--wp--preset--color--line);border-radius:12px;padding:0 .25rem 0 .6rem;align-items:center;flex-wrap:nowrap}
.rb-search .wp-block-search__input{border:0;background:transparent;color:#000;min-height:44px;padding:.4rem .5rem;font-size:.95rem;min-width:0;flex:1}
.rb-search .wp-block-search__button{background:transparent;color:#000;border:0;min-width:44px;min-height:44px;padding:0;margin:0}
@media (min-width:600px){
 .rb-header .rb-nav .wp-block-navigation__container{flex-wrap:nowrap;overflow-x:auto;gap:1.4rem;padding:.2rem 0;scrollbar-width:none;white-space:nowrap}
 .rb-header .rb-nav .wp-block-navigation__container::-webkit-scrollbar{display:none}
 .rb-header .rb-nav a{font-size:.9rem;font-weight:500;padding:.5rem 0}
 .rb-header .rb-searchbtn{display:none!important}
}
@media (max-width:599px){
 .rb-header .rb-header__bar{grid-template-columns:auto 1fr auto auto;grid-template-areas:"nav brand sbtn cart" "search search search search";gap:.3rem .35rem;padding:.45rem var(--rb-gutter)}
 .rb-header .rb-nav{border-top:0;margin-top:0!important;margin-left:-.6rem!important}
 .rb-header .rb-nav .wp-block-navigation__responsive-container-open{width:44px;height:44px;padding:0;color:#000;display:inline-flex;align-items:center;justify-content:center}
 .rb-header .rb-nav .wp-block-navigation__responsive-container-open svg{width:26px;height:26px}
 .rb-header .rb-nav .wp-block-navigation__responsive-container.is-menu-open{padding:1.25rem var(--rb-gutter)}
 .rb-header .rb-nav .wp-block-navigation__responsive-container.is-menu-open a{font-size:1.15rem;font-weight:600;padding:.7rem 0}
 .rb-header .rb-brandbox{justify-content:flex-start}
 .rb-header .wp-block-site-logo img{max-height:36px;max-width:90px}
 .rb-tagline{display:none}
 .rb-header .rb-search{display:none;padding:.2rem 0 .5rem}
 .rb-header.is-search-open .rb-search{display:block}
}

/* Tiles and steps (patterns) */
.rb-tile{position:relative;border:1px solid var(--wp--preset--color--line);border-radius:16px;padding:1rem 1.2rem;background:#fff}
.rb-tile--white{border-color:transparent}
.rb-tile h3{margin:0 0 .25rem}
.rb-tile h3 a{color:inherit;text-decoration:none}
.rb-tile h3 a::after{content:"";position:absolute;inset:0;border-radius:16px}
.rb-tile:hover,.rb-tile:focus-within{border-color:#000}
.rb-step{border-top:3px solid var(--wp--preset--color--black);padding-top:.75rem}
.rb-sector .rb-tile{height:100%}
.rb-btn-on-dark .wp-block-button__link{color:#fff;border-color:#fff;background:transparent}

/* Listing and product pages */
.rb-filters-row{margin-bottom:1rem}
.rb-filters-row .rb-chips ul{margin-bottom:.8rem}
.rb-gallery{background:var(--wp--preset--color--soft-grey);border-radius:16px;overflow:hidden}
.rb-gallery img{object-fit:contain}
.rb-product-cols{gap:2rem}
@media (max-width:781px){
 .rb-buybox{position:sticky;bottom:0;z-index:20;background:#fff;border-top:1px solid var(--wp--preset--color--line);padding:.75rem 0 calc(.75rem + env(safe-area-inset-bottom,0))}
}
.navigation.pagination{margin:1.5rem 0}
.navigation.pagination .nav-links{display:flex;gap:.4rem;flex-wrap:wrap}
.navigation.pagination a,.navigation.pagination span{border:1px solid var(--wp--preset--color--line);border-radius:10px;padding:.4rem .8rem;text-decoration:none}
.navigation.pagination .current{background:var(--wp--preset--color--black);color:#fff}

/* Draft notes and FAQ */
.rb-draft-note{border:2px dashed #000;border-radius:12px;padding:.9rem 1.1rem;background:#F2F2F2}
.wp-block-details{border-bottom:1px solid var(--wp--preset--color--line);padding:.2rem 0}
.wp-block-details summary{cursor:pointer;font-weight:600;padding:.8rem 0;min-height:44px;display:flex;align-items:center}
.wp-block-details p{margin:0 0 1rem;color:var(--wp--preset--color--muted)}

/* Footer */
.rb-footer{padding:3rem var(--rb-gutter) 2rem;margin-top:var(--wp--preset--spacing--60)}
.rb-footer a{color:#CFCFCF}
.rb-footer a:hover{color:#fff}
.rb-footer__list{list-style:none;padding:0;margin:0;font-size:.9rem;line-height:2}
.rb-footer__legal{color:#CFCFCF;max-width:760px}
.rb-footer hr{border-color:#444444}
.rb-footer .rbc-btn--outline{background:transparent;color:#fff;border-color:#fff}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.rb-bizinfo{font-size:.92rem;line-height:1.6}
.rb-bizinfo p{margin:0 0 .6rem}
.rb-bizinfo address{font-style:normal;margin:0 0 .6rem}
.rb-bizinfo__brand{font-size:1.05rem}
.rb-footlinks{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.25rem 1.5rem}
.rb-footlinks h3{font-size:.95rem;margin:0 0 .5rem;color:#fff}
.rb-footlinks ul{list-style:none;margin:0;padding:0;font-size:.9rem;line-height:2}
.rb-footer .rb-bizinfo a,.rb-footer .rb-footlinks a{color:#CFCFCF}
.rb-footer .rb-bizinfo a:hover,.rb-footer .rb-footlinks a:hover{color:#fff}
.rb-footer__cols{gap:1.5rem 2rem;margin-bottom:1.5rem}
