/* 0.16.450 public fixes (file name kept from the 449 plan). Loaded on public pages only (body.toura-public-normalize).
   Laptop rules are behind min-width:881px; phone rules only touch the HeyRosie chat button. */

/* 1) Blog, post, archive, search: these pages have no .toura-public-page/.toura-home-hero marker, so
   early-layout.js never adds toura-tours-style-match and the theme's white header stays, with the nav,
   a 45px-wide phone block (number wraps to 4 lines) and a nowrap Book a Taxi pushed past 1280px. */
@media (min-width:881px){
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) header .toura-header{background:#080808!important;flex-wrap:nowrap!important;gap:14px!important;box-sizing:border-box!important;max-width:100%!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-nav{flex:1 1 auto!important;min-width:0!important;flex-wrap:wrap!important;justify-content:flex-end!important;gap:4px 12px!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-nav a{color:#fff!important;-webkit-text-fill-color:#fff!important;white-space:nowrap!important;font-size:15px!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-nav a:is([aria-current],.toura-nav-current){color:#f4bf24!important;-webkit-text-fill-color:#f4bf24!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-header-phone{flex:0 0 auto!important;white-space:nowrap!important;width:auto!important;min-width:max-content!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-header-phone :is(span,strong){color:#fff!important;-webkit-text-fill-color:#fff!important;white-space:nowrap!important}
body.toura-public-normalize:is(.blog,.single-post,.archive,.search):not(.toura-tours-style-match) .toura-header .toura-header-book{flex:0 0 auto!important}
}

/* 2) Contact (page 628): public-layout.js wraps the menu toggle in .toura-header-menu-pair (hamburger),
   which no rule hides on laptop, and the cream .toura-shell (#fffdf7) shows around the back button row. */
@media (min-width:881px) and (hover:hover) and (pointer:fine){
body.toura-public-normalize.page-id-628 .toura-header .toura-header-menu-pair{display:none!important}
}
body.toura-public-normalize.page-id-628 .toura-shell{background:#080808!important}

/* 3) Home: service grid and Ride now/Schedule grid have more tracks than cards, so cards sit left. */
@media (min-width:881px){
body.toura-public-normalize.home .toura-service-grid{grid-template-columns:repeat(auto-fit,minmax(240px,300px))!important;justify-content:center!important}
body.toura-public-normalize.home .toura-book-options{grid-template-columns:repeat(auto-fit,minmax(200px,240px))!important;justify-content:center!important}
}

/* 4) Post featured photo: the white .toura-blog-sheet padding framed the photo (white bars). Bleed it to the sheet edge. */
body.toura-public-normalize.single-post .toura-blog-sheet>.wp-block-post-featured-image:first-child{margin:-16px -17.6px 18px!important;max-width:none!important}
body.toura-public-normalize.single-post .toura-blog-sheet>.wp-block-post-featured-image:first-child img{border:0!important;border-radius:0!important;width:100%!important}

/* 5) HeyRosie "Chat With Us" (shadow DOM, its button is position:fixed bottom/right 20px). A zero-height fixed,
   transformed host becomes the containing block, so the button keeps its corner but is scaled down. */
rosie-widget{position:fixed!important;right:0!important;bottom:0!important;width:min(420px,100vw)!important;height:0!important;transform-origin:100% 100%!important;transform:scale(.82)!important;z-index:9990!important}
@media (max-width:880px){
/* ph1: smaller chat button, tucked into the corner, so it does not cover the blog player's volume and menu or the footer copyright. Webhooks and Rosie script config are not changed. */
rosie-widget{transform:translate(12px,14px) scale(.55)!important}
body.toura-public-normalize{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
body.toura-public-normalize .toura-footer__bottom,body.single-post .toura-footer__bottom{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}
body.single-post #ts-player{padding-bottom:20px!important}
/* ph2: while the listen player is on screen, park the chat chip above it so volume and the menu stay clear on a 390px first screen. */
body.toura-rosie-clear-player rosie-widget{transform:translate(12px,-200px) scale(.55)!important}
/* ph2: when the Team strip is on screen, give the Sign In button room above the chip. */
body.toura-rosie-clear-footer .toura-employee-footer-entry{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
}
/* 5b) Laptop: room under the last footer row (Employee Sign In bar) so the chat button never sits on it. */
@media (min-width:881px){body.toura-public-normalize{padding-bottom:64px!important}}
/* 0.16.518 search + 404 readability. Cause: toura-child toura-global.css:24 body.toura-site{background:var(--toura-black)} while the
   twentytwentyfive global styles keep body text toura-ink #1c2430 and headings #080808, so "Sorry, but nothing was found..." was black on black.
   :not(#_):not(#__) = 2 ID levels, above our :is(...,#toura-book-ride) input rules (1 ID). */
html body:is(.search,.error404):not(#_):not(#__) .wp-site-blocks main :is(h1,h2,h3,h4,.wp-block-query-title,.wp-block-heading){color:#fff!important;-webkit-text-fill-color:#fff!important}
html body:is(.search,.error404):not(#_):not(#__) .wp-site-blocks main :is(p,li,span,time,label,.wp-block-query-no-results,.wp-block-query-no-results *,.wp-block-post-date,.wp-block-post-excerpt,.wp-block-search__label){color:#e6e6e6!important;-webkit-text-fill-color:#e6e6e6!important}
html body:is(.search,.error404):not(#_):not(#__) .wp-site-blocks main a:not(.wp-element-button):not(.wp-block-search__button){color:#f4bf24!important;-webkit-text-fill-color:#f4bf24!important}
html body:is(.search,.error404):not(#_):not(#__) .wp-site-blocks main input.wp-block-search__input{background:#fff!important;background-color:#fff!important;color:#111!important;-webkit-text-fill-color:#111!important;border:2px solid #f4bf24!important;border-radius:8px!important;opacity:1!important}
html body:is(.search,.error404):not(#_):not(#__) .wp-site-blocks main input.wp-block-search__input::placeholder{color:#666!important;-webkit-text-fill-color:#666!important;opacity:1!important}
