/* ybyw-mobile.css - readability on all screens, plus phone and tablet improvements (added 2026-12-06).
   Loaded on every page from scripts/head.cfm. Nothing here changes the desktop layout.
   Selectors start with "html" so they win over the theme stylesheets that load after this file. */

/* ---------------------------------------------------------------------------------------------
   Readability on all screen sizes (added 2026-12-06): darker text, larger type, and colours that meet the
   WCAG AA contrast guideline (4.5:1 for normal text). The brand blue #0088cc is kept for large headings
   and decoration; text, links, menus and buttons use the deeper #006fa6 so they stay easy to read.
   --------------------------------------------------------------------------------------------- */
html body { color: #333; font-size: 15px; line-height: 1.65; }
html body p, html body li, html body td, html body dd, html body dt { color: #333; }
html body p { font-size: 15px; line-height: 1.65; }

/* links in the page content */
html body .main a:not(.btn):not(.label):not([class*="btn-"]):not(.ybyw-wa-btn) { color: #006fa6; }
html body .main a:not(.btn):not(.label):not([class*="btn-"]):not(.ybyw-wa-btn):hover { color: #004f78; }

/* top bar and main menu */
html body .header-nav-top .nav > li > a, html body .header-nav-top .nav > li > a:hover { color: #4a4a4a !important; font-size: 13.5px; }
html body .header-nav-main nav > ul > li > a { color: #006fa6; font-size: 13px; }
html body .header-nav-main nav > ul > li.active > a,
html body .header-nav-main nav > ul > li:hover > a,
html body .header-nav-main nav > ul > li.open > a { background-color: #006fa6 !important; color: #fff !important; }
html body .header-nav-main nav > ul > li .dropdown-menu li a { color: #3a3a3a !important; font-size: 13.5px; }
html body .header-nav-main nav > ul > li .dropdown-menu li a:hover { color: #006fa6 !important; }

/* headings, buttons and labels in the deeper blue */
html body .heading-primary, html body .text-color-primary, html body .main h4, html body .main h5 { color: #006fa6 !important; }
html body .btn-primary { background-color: #006fa6 !important; border-color: #005f8e #005f8e #004f78 !important; color: #fff !important; }
html body .btn-primary:hover, html body .btn-primary:focus, html body .btn-primary:active { background-color: #005a87 !important; border-color: #004f78 !important; }
html body .label-primary, html body .bg-primary { background-color: #006fa6 !important; }
html body .label { font-size: 12px; }

/* footer (black background) */
html #footer, html #footer p, html #footer li, html #footer .contact li p, html #footer .newsletter p { color: #cfcfcf; font-size: 14px; }
html #footer a:not(.btn):not(.ybyw-wa-btn) { color: #6cc4f0; }
html #footer .footer-copyright p { color: #b5b5b5; font-size: 13px; }
html body .footer-ribbon { background-color: #006fa6 !important; }
html body .footer-ribbon:before { border-right-color: #004f78 !important; }

/* sidebar, small print and hints */
html .sidebar, html .sidebar p, html .tabs .tab-content, html .tabs .tab-content p { color: #444; font-size: 14px; }
html body ul.simple-post-list .post-meta { color: #555; font-size: 0.95em; }
html body .text-muted, html body small.text-muted, html body h4 small, html body .quote-or { color: #595959 !important; }
html .ybyw-wa-note { color: #595959; }
html body #footer .ybyw-wa-note { color: #cfcfcf !important; }

/* WhatsApp: a deeper WhatsApp green so the white text is readable */
html body .ybyw-wa-btn { background-color: #108043 !important; }
html body .ybyw-wa-btn:hover, html body .ybyw-wa-btn:focus { background-color: #0b6a35 !important; }

@media (max-width: 991px) {
	/* readable text */
	html body { font-size: 16px; line-height: 1.6; }
	html body p, html body li { font-size: 16px; }
	html body .lead { font-size: 18px; }

	/* 16px stops iPhones zooming in when a box is tapped; taller boxes and buttons are easier to hit */
	html .form-control { font-size: 16px; min-height: 44px; }
	html textarea.form-control { min-height: 88px; }
	html .btn { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }

	/* top bar: Login / Register */
	html .header-nav-top .nav > li > a { display: inline-block; padding: 10px 12px; font-size: 14px; }

	/* footer */
	html #footer a { display: inline-block; padding: 6px 4px; }
	html #footer #sub-menu ul li a { padding: 10px 8px; font-size: 14px; }
	html #footer .contact li p { font-size: 15px; }

	/* Popular Categories / Authors tags and Popular Books list on the shop pages */
	html .label.label-dark { display: inline-block; font-size: 13px; padding: 8px 10px; margin: 0 4px 8px 0; white-space: normal; line-height: 1.3; }
	html .simple-post-list li { padding: 2px 0; }
	html .simple-post-list li a { display: block; padding: 8px 0; font-size: 16px; }

	/* "Service pages" dropdown that replaces the long row of links */
	html .ybyw-subnav { margin: 6px 0 14px; }

	/* shop search: keyword box first, the rest behind "More search options" */
	html .ybyw-more-toggle { margin: 6px 0 10px; }
	html #mySearchFormNew label { margin-top: 8px; }
	html #mySearchFormNew button[type=submit] { width: 100%; }

	/* product pages: margins, readable details, price and Add to Cart straight under the cover */
	html .myMarginClass { padding-left: 15px; padding-right: 15px; }
	html .myPSpacing { font-size: 16px; margin-bottom: 8px; }
	html .summary.entry-summary { display: flex; flex-direction: column; }
	html .summary.entry-summary > h1 { order: -3; font-size: 26px; line-height: 1.25; margin-top: 10px; }
	html .summary.entry-summary > .price { order: -2; }
	html .summary.entry-summary > form.cart { order: -1; margin-bottom: 16px; }

	/* contact page quick buttons, and sections moved below the main content */
	html .ybyw-quick { margin: 4px 0 16px; }
	html .ybyw-quick .btn { margin: 0 6px 8px 0; }
	html .ybyw-moved { margin-top: 24px; }
}

@media (max-width: 767px) {
	html h1, html .h1 { font-size: 26px; line-height: 1.25; }
	html h2, html .h2 { font-size: 22px; line-height: 1.3; }
	/* sticky Call / WhatsApp / Quote bar */
	html .ybyw-mbar { display: flex; }
	html body { padding-bottom: 64px; }
	html .scroll-to-top { bottom: 74px !important; }
}

.ybyw-mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff;
	border-top: 1px solid #ddd; box-shadow: 0 -2px 8px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom); }
.ybyw-mbar a { flex: 1; text-align: center; padding: 8px 4px 7px; font-size: 13px; font-weight: 600; color: #006fa6;
	text-decoration: none !important; line-height: 1.2; }
.ybyw-mbar a .fa { display: block; font-size: 22px; margin-bottom: 3px; }
.ybyw-mbar a.ybyw-bar-wa { color: #108043; }
.ybyw-mbar a + a { border-left: 1px solid #eee; }
.ybyw-mbar a:active { background: #f2f8fc; }
