/* 0.16.630 (boss, Nov 10): public pages on phones and tablets only (1024px and narrower). Laptop (1025px and wider) is untouched.
   1) No gold frame around the page (theme .toura-shell ring and border removed).
   2) Back row under the header is black like /reviews/ (no cream strip).
   3) Plan Ahead shows the header logo again.
   4) Job pages (Work With TOURA, Apply as a Driver / Dispatcher): light heading text on the black shell, same colours as the 0.16.607 laptop rules.
   5) No white line under the header above the Back row.
   6) A little side padding so the Contact hero, home hero, and destination-guide cards do not touch the screen edge.
   7) Undo the 0.16.611 / 0.16.613 gold-ring card rules (they have no media query and were hitting phones). Phones get the pre-611/613 card chrome back.
   8) Taxi Service and Destinations heroes: the 2px hero border is black instead of white.
   Staff portals are excluded (body.toura-employee-page). Each :has() rule has a separate fallback rule that uses
   body classes added by the server (toura-has-public-back, toura-plan-ahead-page) for browsers without :has(). */
@media (max-width:1024px){
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell{width:100%!important;max-width:100%!important;min-height:100vh!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
html body.toura-site.toura-has-public-back:not(.toura-employee-page):not(#_) .toura-shell{background:#080808!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell:has(> .toura-public-back-wrap){background:#080808!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-public-back-wrap{max-width:none!important;width:100%!important;margin:0!important;padding:8px 16px!important;background:#080808!important;}
html body.toura-site.toura-plan-ahead-page:not(.toura-employee-page):not(#_) .toura-header .toura-brand{display:inline-flex!important;}
html body.toura-site:not(.toura-employee-page):has(.toura-public-page--planning):not(#_) .toura-header .toura-brand{display:inline-flex!important;}
html body.toura-site.toura-plan-ahead-page:not(.toura-employee-page):not(#_) .toura-header{min-height:72px!important;padding-top:.45rem!important;padding-bottom:.45rem!important;}
html body.toura-site:not(.toura-employee-page):has(.toura-public-page--planning):not(#_) .toura-header{min-height:72px!important;padding-top:.45rem!important;padding-bottom:.45rem!important;}
html body.toura-site.toura-has-public-back:not(.toura-employee-page):not(#_) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading :is(h1,h2,h3){color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell:has(> .toura-public-back-wrap) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading :is(h1,h2,h3){color:#fff!important;-webkit-text-fill-color:#fff!important;}
html body.toura-site.toura-has-public-back:not(.toura-employee-page):not(#_) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading .toura-eyebrow{color:#e0e0e0!important;-webkit-text-fill-color:#e0e0e0!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell:has(> .toura-public-back-wrap) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading .toura-eyebrow{color:#e0e0e0!important;-webkit-text-fill-color:#e0e0e0!important;}
html body.toura-site.toura-has-public-back:not(.toura-employee-page):not(#_) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading p:not(.toura-eyebrow){color:#e6e6e6!important;-webkit-text-fill-color:#e6e6e6!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell:has(> .toura-public-back-wrap) :is(.toura-join-team,.toura-driver-apply) > .toura-ops-heading p:not(.toura-eyebrow){color:#e6e6e6!important;-webkit-text-fill-color:#e6e6e6!important;}
html body.toura-site.toura-has-public-back:not(.toura-employee-page):not(#_) .toura-header{border-bottom-color:#080808!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-shell:has(> .toura-public-back-wrap) .toura-header{border-bottom-color:#080808!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-public-page--contact .toura-public-hero,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-home-hero,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-cat,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-place{margin-left:16px!important;margin-right:16px!important;width:auto!important;max-width:none!important;box-sizing:border-box!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .tgr-card,
html body.toura-site:not(.toura-employee-page):not(#_) .tgr-home-slide,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-book-panel .tgr-home-latest__card,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-loop-card{border:3px solid #f4bf24!important;border-radius:1rem!important;box-shadow:none!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-blog-sheet,
html body.toura-site:not(.toura-employee-page):not(#_) .toura-blog-wrap .wp-block-post-template>li{border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-blog-strip{border:0!important;border-radius:0!important;box-shadow:none!important;}
html body.toura-site:not(.toura-employee-page):not(#_) .toura-public-page--taxi .toura-public-hero,
html body.toura-site.toura-local-taxi-page:not(.toura-employee-page):not(#_) .toura-public-hero{border-color:#080808!important;}
}

/* timefix build (Victor's Nov 10 live sweep, boss: fix phones and tablets only). Still 1024px and narrower only, so the laptop look (1025px and up) does not change.
   9) Tablets 881-1024: the desktop header nav row wraps under the logo, so Call TOURA and Book a Taxi stay on screen (Book a Ride too).
   10) Touch tablets 881-1024: one menu button. The compact header keeps "Main website menu" and hides the second, identical "This page's topics" button.
   11) /blog/ footer: the TOURA Team strip gets its normal colours (that page does not load operations.css), so "Work With TOURA / Employee Sign In" is readable.
   12) Blog post gold buttons: black text on gold.
   13) Public booking forms (/schedule-a-ride/, /schedule-a-ride-2/) and the driver / dispatcher applications: typed values are dark (#111), placeholders unchanged.
   14) White tablet header: "Spokane Airport (GEG)" is the darker site gold #8a6200 instead of #f4bf24. */
@media (min-width:881px) and (max-width:1024px){
html body.toura-site:not(.toura-employee-page):not(#_) header.toura-header:has(> #toura-primary-nav.toura-nav){display:flex!important;flex-wrap:wrap!important;align-items:center!important;row-gap:8px!important;column-gap:12px!important;grid-template-columns:none!important;grid-template-areas:none!important;}
html body.toura-site:not(.toura-employee-page):not(#_) header.toura-header:has(> #toura-primary-nav.toura-nav) > *{grid-area:auto!important;}
html body.toura-site:not(.toura-employee-page):not(#_) header.toura-header > #toura-primary-nav.toura-nav{order:5!important;flex:1 1 100%!important;flex-wrap:wrap!important;justify-content:center!important;gap:6px 14px!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;position:static!important;transform:none!important;}
html body.toura-site:not(.toura-employee-page):not(#_) header.toura-header:has(> #toura-primary-nav.toura-nav) > .toura-header-phone{margin-left:auto!important;}
html body.toura-site:not(.toura-employee-page):has(#toura-nojs-book):not(#_) header.toura-header > .toura-header-phone :is(span,strong){color:#fff!important;-webkit-text-fill-color:#fff!important;}
.toura-nav a.toura-nav-airport{color:#8a6200!important;}
}
@media (min-width:881px) and (max-width:1024px) and (hover:none),(min-width:881px) and (max-width:1024px) and (pointer:coarse){
html body.toura-site:not(.toura-employee-page):not(#_) .toura-header-menu-pair:has(> .toura-main-menu > summary) > .toura-tour-menu{display:none!important;}
}
@media (max-width:1024px){
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry{box-sizing:border-box;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.7rem;width:min(1100px,calc(100% - 1.25rem));margin:1rem auto;padding:.8rem 1rem;color:#fff;background:#101820;border:3px solid #ffc629;border-radius:.8rem;}
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry strong{font-size:1.05rem;color:#fff;}
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry span{color:#e3e8ed;}
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry a{padding:.65rem .8rem;color:#101820!important;-webkit-text-fill-color:#101820!important;background:#ffc629;border:2px solid #fff;border-radius:.55rem;font-weight:900;text-align:center;text-decoration:none!important;}
html body.toura-site:not(.toura-employee-page) .toura-blog-sheet a.wp-block-button__link.has-background[style*="#f4bf24"]{color:#080808!important;-webkit-text-fill-color:#080808!important;}
html body.toura-site:not(.toura-employee-page):not(#_):not(#__) :is(#toura-public-booking-form,.toura-driver-application-form) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=file]),select,textarea):not([readonly]):not(:disabled){color:#111!important;-webkit-text-fill-color:#111!important;}
}
@media (max-width:760px){
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry{grid-template-columns:1fr;text-align:center;}
}
/* tf2 (Nov 10): phones (880px and under). Pages with their own topics menu (/benefits/, /city-nightlife/, /lakes-rivers/) showed two
   menu buttons side by side (public-layout.js adds "This page's topics" next to the main menu). Keep only the main menu button, as
   881-1024px touch screens already do (rule above). 881-1024px with a mouse keeps the full menu row plus the topics button, unchanged. */
@media (max-width:880px){
html body.toura-site:not(.toura-employee-page):not(#_) .toura-header-menu-pair:has(> .toura-main-menu > summary) > .toura-tour-menu{display:none!important;}
}
