/* TOURA blog readability fix (blog index, archives, single posts, search).
   Cause: .toura-blog-wrap / .toura-blog-single paint #080808, but global styles set
   headings + links to toura-black #080808 and body text to toura-ink #1c2430.
   Anything without an explicit toura-blog rule (no-results text, dates, terms,
   pagination, headings outside the white sheet, comments) renders black-on-black. */
:is(body.blog,body.archive,body.search,body.single-post) :is(.toura-blog-wrap,.toura-blog-single){color:#fff}
:is(body.blog,body.archive,body.search,body.single-post) :is(.toura-blog-wrap,.toura-blog-single) :is(h1,h2,h3,h4,h5,h6,p,li,span,time,figcaption,label,.wp-block-query-no-results,.wp-block-query-title,.wp-block-term-description,.wp-block-post-date,.wp-block-post-author,.wp-block-post-author-name,.wp-block-post-terms,.wp-block-comments,.wp-block-comment-content){color:#fff}
:is(body.blog,body.archive,body.search,body.single-post) :is(.toura-blog-wrap,.toura-blog-single) a:where(:not(.wp-element-button)){color:#f4bf24}  /* gold on #080808 = 11.4:1 */
:is(body.blog,body.archive,body.search,body.single-post) :is(.toura-blog-wrap,.toura-blog-single) a:hover{color:#fff;text-decoration:underline}
/* Pagination */
:is(body.blog,body.archive,body.search) .wp-block-query-pagination :is(a,span){color:#f4bf24}
:is(body.blog,body.archive,body.search) .wp-block-query-pagination .current{color:#fff;font-weight:800}
/* White cards / sheet keep dark text (ink #1c2430 on #fff = 15.6:1) */
.toura-blog-wrap .wp-block-post-template > li :is(p,span,time,li,.wp-block-post-date,.wp-block-post-terms,.wp-block-post-author){color:#1c2430}
.toura-blog-wrap .wp-block-post-template > li :is(h2,h3,.wp-block-post-title,.wp-block-post-title a){color:#111}
.toura-blog-wrap .wp-block-post-template > li a:where(:not(.wp-block-post-title a)){color:#8a5a00} /* dark gold 5.9:1 on white; #f4bf24 on white is only 1.7:1 */
.toura-blog-sheet :is(h1,h2,h3,h4,h5,h6,p,li,span,time,td,th,blockquote,cite,figcaption){color:#111 !important}
.toura-blog-sheet a{color:#111 !important;text-decoration:underline;text-decoration-color:#bd8510;text-decoration-thickness:2px}
.toura-blog-sheet :is(.wp-block-post-date,.wp-block-post-terms) *{color:#1c2430 !important}
/* Focus visibility */
:is(.toura-blog-wrap,.toura-blog-single) a:focus-visible{outline:3px solid #f4bf24;outline-offset:2px}
/* 0.16.448 Blog index card grid (boss, Oct 29: "make it look nice"). Grid markup comes from the theme's blog template; this only restyles it.
   Laptop (1024px+): 3 columns. Tablet (700-1023px): 2 columns. Phone: 1 column of full-width cards (3 across is unreadable at 390px).
   Fixes the staggered first card (flow-layout top margin on every card but the first) and uneven card heights. */
.toura-blog-wrap .wp-block-post-template.toura-blog-grid{display:grid !important;grid-template-columns:1fr !important;gap:1.25rem !important;align-items:stretch;max-width:1180px;margin:0 auto !important;padding:0 !important;list-style:none}
.toura-blog-wrap .wp-block-post-template.toura-blog-grid > li{margin:0 !important;display:flex;flex-direction:column;min-width:0}
.toura-blog-wrap .wp-block-post-template.toura-blog-grid > li > .toura-blog-card{display:flex;flex-direction:column;flex:1 1 auto;margin:0 !important}
.toura-blog-wrap .toura-blog-card > *{margin-top:0}
.toura-blog-wrap .toura-blog-card .wp-block-post-title{font-size:1.3rem;line-height:1.22;margin:.9rem 1rem .4rem !important}
.toura-blog-wrap .toura-blog-card .wp-block-post-excerpt{display:flex;flex-direction:column;flex:1 1 auto;margin:0 1rem !important}
.toura-blog-wrap .toura-blog-card .wp-block-post-excerpt__excerpt{margin:0 0 .6rem;font-size:1rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.toura-blog-wrap .toura-blog-card .wp-block-post-excerpt__more-text{margin:auto 0 0;padding-top:.25rem}
@media (min-width:700px){.toura-blog-wrap .wp-block-post-template.toura-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media (min-width:1024px){.toura-blog-wrap .wp-block-post-template.toura-blog-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:1.5rem !important}}

/* 0.16.613 Local Taxi border on the blog: 3px black line inside a 3px gold ring, 19px corners
   (same values as the homepage service cards). overflow:hidden clips photos to the rounded card on all four corners. */
html body .toura-blog-sheet,
html body .toura-blog-wrap .wp-block-post-template > li{border:3px solid #080808!important;border-radius:19px!important;box-shadow:0 0 0 3px #f4bf24!important;overflow:hidden!important}

/* timefix (boss's standing rule via Victor, Nov 10: fix poor-contrast text when found). Laptop only (1025px and up; phones and
   tablets get the same fixes from public-phone.css). Colour only, nothing else changes:
   - /blog/ footer "Work With TOURA / Employee Sign In": was #080808 on the #080808 page (1.0:1), now TOURA gold #ffc629 (12.3:1).
   - Blog post gold buttons: text was #8a6200 on #f4bf24 (3.2:1, from the post sheet's inline link colour), now #080808 (11.6:1). */
@media (min-width:1025px){
html body.toura-site.blog:not(.toura-employee-page) .toura-employee-footer-entry a{color:#ffc629!important;-webkit-text-fill-color:#ffc629!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}
}

/* ph1: the closing phone number on a blog sheet must stay on one line (208-640-7177). Colour and size are unchanged. */
.toura-blog-sheet a[href^="tel:"]{white-space:nowrap}
