/* One lightweight navigation dock across storefront, private tools and commerce. */
.chch-mobile-dock { display: none; }
body.chch-has-mobile-dock .petverse-mobile-nav { display: none !important; }

@media screen and (max-width: 760px) {
	body.chch-has-mobile-dock { --chch-dock-clearance: calc(6.5rem + env(safe-area-inset-bottom, 0px)); padding-bottom: var(--chch-dock-clearance); }
	html:has(body.chch-has-mobile-dock) { scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
	.chch-mobile-dock {
		position: fixed;
		z-index: 40;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		left: max(8px, env(safe-area-inset-left, 0px));
		right: max(8px, env(safe-area-inset-right, 0px));
		bottom: max(8px, env(safe-area-inset-bottom, 0px));
		gap: 2px;
		padding: 5px;
		border: 1px solid #66827a;
		border-radius: 18px;
		background: #173a3d;
		color: #fff;
		box-shadow: 0 5px 22px rgb(13 55 52 / 22%);
		font-family: var(--ch-sans, system-ui, sans-serif);
	}
	.chch-mobile-dock a {
		display: flex;
		min-width: 0;
		min-height: 48px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 5px 2px;
		border-radius: 11px;
		color: #fff;
		font-size: .7rem;
		font-weight: 750;
		line-height: 1.25;
		text-align: center;
		text-decoration: none;
		overflow-wrap: anywhere;
	}
	.chch-mobile-dock__icon { color: #f4d776; font-size: 1.2rem; line-height: 1; }
	.chch-mobile-dock a:hover, .chch-mobile-dock a[aria-current='page'] { background: #f6ead9; color: #173a3d; }
	.chch-mobile-dock a:hover .chch-mobile-dock__icon, .chch-mobile-dock a[aria-current='page'] .chch-mobile-dock__icon { color: #173a3d; }
	.chch-mobile-dock a:focus-visible { outline: 3px solid #f4d776; outline-offset: 1px; text-decoration: underline; text-underline-offset: 3px; }
	body.chch-has-mobile-dock .ch-scroll-paws { bottom: calc(var(--chch-dock-clearance) + 64px); }
	body.chch-has-mobile-dock .chch-launcher { bottom: var(--chch-dock-clearance); }
	body.chch-has-mobile-dock :where(input, textarea, select, button, a) { scroll-margin-bottom: var(--chch-dock-clearance); }
	/* Existing modal/drawer states keep their controls above the ordinary dock. */
	body.ch-menu-open .chch-mobile-dock,
	html.ch-dialog-open .chch-mobile-dock,
	html.chcl-has-compare-tray .chch-mobile-dock,
	body:has(dialog[open], .pswp.pswp--open) .chch-mobile-dock { visibility: hidden; pointer-events: none; }
	/* Reflow and short/zoomed viewports keep all links reachable without covering forms. */
	@media (max-width: 279px), (max-height: 360px) {
		.chch-mobile-dock { position: static; margin: 10px; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
		body.chch-has-mobile-dock { padding-bottom: env(safe-area-inset-bottom, 0px); }
	}
}

@media (forced-colors: active) {
	.chch-mobile-dock { background: Canvas; color: CanvasText; border: 2px solid CanvasText; box-shadow: none; }
	.chch-mobile-dock a, .chch-mobile-dock__icon { color: LinkText; }
	.chch-mobile-dock a[aria-current='page'] { outline: 2px solid Highlight; background: Canvas; color: LinkText; }
}

@media print { .chch-mobile-dock { display: none !important; } body.chch-has-mobile-dock { padding-bottom: 0; } }

/* The launcher is rendered in the footer. Its visual contract must load in the head. */
body.ch-site .chch-launcher { position:fixed; z-index:39; right:20px; bottom:20px; display:inline-flex; width:auto; max-width:190px; min-height:50px; align-items:center; justify-content:center; gap:10px; padding:0 20px; border:3px solid #fff; border-radius:999px; background:#176b67; color:#fff!important; box-shadow:0 12px 30px rgb(13 79 76 / 24%); font:700 14px/1.2 var(--ch-sans,system-ui,sans-serif); text-decoration:none!important; }
body.ch-site .chch-launcher strong { position:static; width:auto; height:auto; overflow:visible; clip:auto; white-space:nowrap; color:inherit; }
body.ch-site .chch-launcher:hover { background:#0d4f4c; }
body.ch-site .chch-launcher:focus-visible { outline:3px solid #b54732; outline-offset:3px; }
html.chcl-has-compare-tray body.ch-site .chch-launcher,
html.ch-dialog-open body.ch-site .chch-launcher,
body.ch-site.ch-menu-open .chch-launcher,
body.ch-site:has(dialog[open],.pswp.pswp--open) .chch-launcher { display:none; }
@media(max-width:760px){body.ch-site.chch-has-mobile-dock .chch-launcher{right:12px;bottom:var(--chch-dock-clearance,100px);min-height:46px;padding:0 16px;font-size:12px;}}
@media(forced-colors:active){body.ch-site .chch-launcher{background:Canvas;color:LinkText!important;border-color:CanvasText;box-shadow:none;}}
@media print{body.ch-site .chch-launcher{display:none!important;}}

/* Native disclosure works without JavaScript; script only remembers the choice. */
.chch-mobile-menu { display:none; }
@media screen and (max-width:760px) {
 .chch-mobile-menu { display:block;position:fixed;z-index:40;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:max(8px,env(safe-area-inset-bottom,0px)); }
 .chch-mobile-menu > summary { box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:max-content;max-width:100%;margin:0 0 0 auto;padding:11px 16px;list-style:none;border:1px solid #66827a;border-radius:24px;background:#173a3d;color:#fff;font:700 13px/1.3 var(--ch-sans,system-ui,sans-serif);box-shadow:0 4px 18px #123f3d20;cursor:pointer; }
 .chch-mobile-menu > summary::-webkit-details-marker { display:none; }
 .chch-mobile-menu > summary > span { color:#f4d776; }
 .chch-mobile-menu > summary:focus-visible { outline:3px solid #b54732;outline-offset:3px; }
 .chch-mobile-menu[open] > summary { margin-bottom:8px; }
 .chch-mobile-menu[open] .chch-mobile-menu__chevron { transform:rotate(180deg); }
 .chch-mobile-menu:not([open]) > .chch-mobile-dock { display:none; }
 .chch-mobile-menu > .chch-mobile-dock { position:static;margin:0; }
 body.chch-has-mobile-dock { --chch-dock-clearance:calc(70px + env(safe-area-inset-bottom,0px)); }
 body.chch-has-mobile-dock:has(.chch-mobile-menu[open]) { --chch-dock-clearance:calc(142px + env(safe-area-inset-bottom,0px)); }
 html:has(body.chch-has-mobile-dock) { scroll-padding-bottom:var(--chch-dock-clearance,142px); }
 body.ch-site.chch-has-mobile-dock .chch-launcher { display:none; }
 body.ch-menu-open .chch-mobile-menu,html.ch-dialog-open .chch-mobile-menu,html.chcl-has-compare-tray .chch-mobile-menu,body:has(dialog[open],.pswp.pswp--open) .chch-mobile-menu { visibility:hidden;pointer-events:none; }
 @media(max-width:279px),(max-height:360px){.chch-mobile-menu { position:static;margin:12px; } .chch-mobile-menu > .chch-mobile-dock { grid-template-columns:repeat(auto-fit,minmax(70px,1fr)); }}
}
@media(forced-colors:active){.chch-mobile-menu > summary { background:Canvas;color:ButtonText;border-color:ButtonText;box-shadow:none; }.chch-mobile-menu > summary > span { color:ButtonText; }}
@media print{.chch-mobile-menu {display:none!important;}}

@media screen and (max-width:760px){
 .chch-mobile-menu > summary {gap:10px;min-height:48px;padding:9px 19px 9px 11px;border-color:#b9a16b;border-radius:999px;background:linear-gradient(120deg,#173d38,#20665a);color:#fff8e8;font-size:14px;letter-spacing:.025em;box-shadow:0 8px 24px #123c3633,inset 0 1px 0 #ffffff24;}
 .chch-mobile-menu > summary .chch-nook-mark {display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #cbb57566;border-radius:50%;background:#ffffff0d;color:#ead58f;}
 .chch-nook-mark svg {display:block;width:18px;height:18px;fill:currentColor;}
 .chch-mobile-menu[open] > summary {border-color:#e3cf93;}
 .chch-mobile-menu > summary:hover {background:linear-gradient(120deg,#205247,#277465);}
}
@media(forced-colors:active){.chch-mobile-menu > summary,.chch-mobile-menu > summary:hover {background:Canvas;color:ButtonText;border-color:ButtonText;box-shadow:none;}.chch-mobile-menu > summary .chch-nook-mark{background:Canvas;color:ButtonText;border-color:ButtonText;}}

/* Keep disclosure width and footer clearance stable under text zoom/rotation. */
@media screen and (max-width:760px) {
 .chch-mobile-menu,.chch-mobile-dock,.chch-mobile-dock a { box-sizing:border-box; }
 .chch-mobile-menu { max-width:calc(100% - 16px); }
 .chch-mobile-dock a { min-height:48px; }
 @media(max-width:279px),(max-height:360px) {
  html:has(body.chch-has-mobile-dock) { scroll-padding-bottom:0; }
  body.chch-has-mobile-dock :where(input,textarea,select,button,a) { scroll-margin-bottom:0; }
  .chch-mobile-menu { max-width:none; }
 }
}
/* Touch browsers must not leave a tapped destination looking selected. */
@media(hover:none) {
 .chch-mobile-dock a:hover:not([aria-current='page']) { background:transparent;color:#fff; }
 .chch-mobile-dock a:hover:not([aria-current='page']) .chch-mobile-dock__icon { color:#f4d776; }
}
