/**
 * mobile.css: touch and small screen layer.
 *
 * Loads after every other theme stylesheet so it can correct earlier rules.
 * Breakpoints: drawer menu below 1024px, tablet below 769px, phone below 641px.
 * All colours come from the theme tokens in style.css.
 *
 * @package Datalkemi
 * @since   2.2.0
 */

/* ==========================================================================
   1. BASE TOUCH BEHAVIOUR
   ========================================================================== */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	-webkit-tap-highlight-color: transparent;
}

body.nav-open {
	overflow: hidden;
	touch-action: none;
}

/* Outline buttons on ink bands use light text and a light border at every size */
.page-hero .dk-btn-outline,
.service-hero .dk-btn-outline,
.dk-band .dk-btn-outline {
	color: var(--text) !important;
	-webkit-text-fill-color: var(--text) !important;
	border-color: var(--border-strong) !important;
}

.page-hero .dk-btn-outline:hover,
.service-hero .dk-btn-outline:hover,
.dk-band .dk-btn-outline:hover {
	background: transparent !important;
	color: var(--accent) !important;
	-webkit-text-fill-color: var(--accent) !important;
	border-color: var(--accent) !important;
}

/* Configurator steps scroll to just below the sticky header */
#cfg-wizard { scroll-margin-top: calc(var(--dk-header-h, 64px) + 0.5rem); }

/* Screenshots served through <picture> keep their block layout */
picture { display: block; }
picture img { display: block; width: 100%; height: auto; }

/* Footer: the actions group only changes layout on phones; quick contact is phone only */
.ft-brand-actions { display: contents; }
.ft-quick { display: none; }

/* Drawer-only pieces stay out of the desktop header */
.nav-backdrop,
.nav-drawer-head,
.nav-drawer-only,
.nav-drawer-contact,
.nav-sub-toggle {
	display: none;
}

/* Wide desktop: fix a source order bug that kept three service columns on small screens */
@media (max-width: 1024px) {
	.service-card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   2. DRAWER MENU (below 1024px)
   ========================================================================== */
@media (max-width: 1023px) {
	.site-header,
	#masthead {
		background: var(--bg) !important;
		border-bottom: 1px solid var(--border) !important;
	}

	.site-nav {
		padding: 0.625rem max(1rem, env(safe-area-inset-right)) 0.625rem max(1rem, env(safe-area-inset-left));
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		gap: 5px;
		border: 1px solid var(--border);
		border-radius: var(--radius);
	}

	.nav-toggle span {
		width: 20px;
		height: 1.5px;
		background: var(--text);
	}

	.nav-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: rgba(2, 45, 63, 0.5);
		opacity: 0;
		transition: opacity 0.25s ease;
	}

	.nav-backdrop[hidden] { display: none; }
	.nav-backdrop.is-visible { opacity: 1; }

	.nav-menu-wrap {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		width: min(86vw, 380px);
		display: flex;
		flex-direction: column;
		background: var(--surface);
		border-left: 1px solid var(--border);
		padding-top: env(safe-area-inset-top);
		overflow-y: auto;
		overscroll-behavior: contain;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
	}

	.nav-menu-wrap.is-open {
		transform: none;
		visibility: visible;
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
	}

	.nav-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.75rem 0.75rem 0.75rem 1.25rem;
		border-bottom: 1px solid var(--border);
		flex-shrink: 0;
	}

	.nav-drawer-title {
		font-family: var(--font-mono);
		font-size: 0.6875rem;
		font-weight: 500;
		letter-spacing: 0.2em;
		text-transform: uppercase;
		color: var(--accent);
	}

	.nav-drawer-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: transparent;
		color: var(--text);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		cursor: pointer;
	}

	/* Parent theme button states would paint these solid blue; keep them line style */
	.nav-drawer-close,
	.nav-drawer-close:hover,
	.nav-drawer-close:focus,
	.nav-drawer-close:active,
	.nav-sub-toggle,
	.nav-sub-toggle:hover,
	.nav-sub-toggle:focus,
	.nav-sub-toggle:active {
		background: transparent !important;
		color: var(--text) !important;
		box-shadow: none !important;
	}

	.nav-drawer-close svg,
	.nav-sub-toggle svg {
		display: block;
		flex: 0 0 auto;
		width: 22px !important;
		height: 22px !important;
		min-width: 22px;
	}

	.nav-drawer-close:focus:not(:focus-visible),
	.nav-sub-toggle:focus:not(:focus-visible) { outline: none; }

	.nav-drawer-close:focus-visible,
	.nav-sub-toggle:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0.75rem !important;
		text-align: left;
	}

	.nav-menu > li {
		position: relative;
		border-bottom: 1px solid var(--border);
	}

	.nav-menu > li:last-child { border-bottom: none; }

	.nav-menu a,
	.nav-menu a:visited {
		display: flex !important;
		align-items: center;
		min-height: 52px;
		padding: 0.75rem 3.25rem 0.75rem 0.5rem !important;
		font-size: 1.0625rem !important;
		background: none !important;
	}

	.nav-menu .current-menu-item > a {
		background: none !important;
		color: var(--action) !important;
	}

	.nav-arrow { display: none; }

	.nav-sub-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 4px;
		right: 0;
		width: 44px;
		height: 44px;
		background: transparent;
		border: 1px solid var(--border);
		border-radius: var(--radius);
		cursor: pointer;
	}

	.nav-sub-toggle svg { transition: transform 0.2s ease; }
	.nav-has-dropdown.is-expanded > .nav-sub-toggle svg { transform: rotate(180deg); }

	.nav-dropdown,
	.nav-has-dropdown:hover .nav-dropdown,
	.nav-has-dropdown:focus-within .nav-dropdown {
		position: static;
		display: none;
		min-width: 0;
		margin: 0;
		padding: 0 0 0.5rem 0.75rem;
		background: transparent;
		border: none;
		box-shadow: none;
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.nav-has-dropdown.is-expanded .nav-dropdown { display: block; }

	.nav-dropdown a,
	.nav-dropdown a:visited {
		min-height: 44px;
		padding: 0.5rem 0.75rem !important;
		font-size: 0.9375rem !important;
		color: var(--text-muted) !important;
		border-left: 1px solid var(--border) !important;
		border-radius: 0 !important;
	}

	.nav-actions {
		display: grid;
		grid-template-columns: 44px 1fr;
		gap: 0.625rem;
		margin: auto 0 0;
		padding: 1rem 1.25rem;
		border-top: 1px solid var(--border);
	}

	.nav-actions .dk-theme-toggle { width: 44px; height: 44px; }

	.nav-actions .dk-btn {
		min-height: 48px;
		font-size: 0.9375rem;
		white-space: nowrap;
	}

	.nav-actions .nav-drawer-only { display: inline-flex; }
	.nav-actions .nav-portal-btn { grid-column: 1 / -1; }
	.nav-actions .nav-text-link { grid-column: 1 / -1; text-align: center; }

	.nav-drawer-contact {
		display: block;
		padding: 0 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
		font-family: var(--font-mono);
		font-size: 0.75rem;
		letter-spacing: 0.06em;
		color: var(--text-muted) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nav-menu-wrap,
	.nav-menu-wrap.is-open,
	.nav-backdrop { transition: none; }
}

/* ==========================================================================
   3. TABLET AND PHONE LAYOUT (below 769px)
   ========================================================================== */
@media (max-width: 768px) {
	.dk-container,
	.hp-container {
		padding-left: max(1.25rem, env(safe-area-inset-left));
		padding-right: max(1.25rem, env(safe-area-inset-right));
	}

	.service-card-grid { grid-template-columns: 1fr; }

	/* Homepage hero: no photo on small screens, content sized, left aligned */
	.hp-hero {
		min-height: 0;
		padding: 2.75rem 0 3rem;
		background-image: none;
		place-items: start;
	}

	.hp-hero-overlay { display: none; }

	.hp-hero-left { text-align: left; }

	.hp-hero-headline {
		font-size: clamp(1.875rem, 8vw, 2.375rem);
		margin-top: 0.75rem;
		margin-bottom: 1rem;
	}

	.hp-hero-sub {
		margin: 0 0 2rem;
		font-size: 1rem;
	}

	.hp-hero-actions {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.75rem;
	}

	.hp-hero-actions .hp-btn-primary,
	.hp-hero-actions .hp-btn-ghost {
		width: 100%;
		min-height: 48px;
		font-size: 0.9375rem;
	}

	.hp-hero-actions .hp-btn-text {
		align-self: center;
		padding: 0.75rem 0;
	}

	/* Section rhythm */
	.dk-section { padding: 3rem 0; }

	.hp-problem,
	.hp-build,
	.hp-why,
	.hp-process,
	.hp-insights,
	.hp-about,
	.hp-products {
		padding: 3rem 0;
	}

	.hp-cta-band,
	.hp-final-cta {
		padding: 3.5rem 0;
	}

	.hp-cta-band .hp-btn-primary,
	.hp-final-cta .hp-btn-primary,
	.cta-banner-actions .dk-btn {
		width: 100%;
		min-height: 48px;
	}

	.cta-banner-actions { width: 100%; }

	/* Swipeable card rows */
	.hp-problem-grid,
	.product-features .dk-grid-3 {
		display: grid;
		grid-template-columns: none !important;
		grid-auto-flow: column;
		grid-auto-columns: 84%;
		gap: 0.875rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: max(1.25rem, env(safe-area-inset-left));
		margin-left: calc(-1 * max(1.25rem, env(safe-area-inset-left)));
		margin-right: calc(-1 * max(1.25rem, env(safe-area-inset-right)));
		padding: 0 max(1.25rem, env(safe-area-inset-right)) 0.75rem max(1.25rem, env(safe-area-inset-left));
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hp-problem-grid::-webkit-scrollbar,
	.product-features .dk-grid-3::-webkit-scrollbar { display: none; }

	.hp-problem-grid > *,
	.product-features .dk-grid-3 > * { scroll-snap-align: start; }

	.hp-problem-card { padding: 1.5rem; }

	/* Filter pills scroll sideways in one row */
	.filter-bar {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		scrollbar-width: none;
		margin-left: calc(-1 * max(1.25rem, env(safe-area-inset-left)));
		margin-right: calc(-1 * max(1.25rem, env(safe-area-inset-right)));
		padding: 0.125rem max(1.25rem, env(safe-area-inset-right)) 0.125rem max(1.25rem, env(safe-area-inset-left));
		-webkit-overflow-scrolling: touch;
	}

	.filter-bar::-webkit-scrollbar { display: none; }
	.filter-pill { flex-shrink: 0; white-space: nowrap; }

	/* Project cards: actions share the row */
	.project-actions { display: flex; gap: 0.625rem; flex-wrap: wrap; }
	.project-actions .dk-btn { flex: 1 1 8rem; min-height: 44px; }

	/* Product pages */
	.product-screen { margin: -1.5rem 0 2rem; }

	.product-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem 1rem;
		padding: 1.5rem 0;
	}

	.product-stat-figure { font-size: 1.375rem; }
	.product-stat-label { font-size: 0.8125rem; }

	.product-hero-buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.product-hero-buttons .dk-btn { width: 100%; min-height: 48px; }

	.product-week-layout { gap: 2rem; }
}

/* ==========================================================================
   4. PHONES (below 641px)
   ========================================================================== */
@media (max-width: 640px) {
	.page-hero-content,
	.page-hero-inner,
	.service-hero-content {
		padding-top: 2.25rem;
		padding-bottom: 2rem;
	}

	.page-hero-title,
	.service-hero-title {
		font-size: clamp(1.75rem, 7.5vw, 2.125rem) !important;
	}

	.page-hero-subtitle,
	.service-hero-tagline {
		font-size: 0.9375rem !important;
	}

	.hero-buttons { flex-direction: column; align-items: stretch; }
	.hero-buttons .dk-btn { width: 100%; min-height: 48px; }

	.hp-section-title { font-size: clamp(1.5rem, 6.5vw, 1.875rem); }

	.products-grid { grid-template-columns: 1fr; }
	.product-card .project-actions .dk-btn { flex-basis: 100%; }

	/* ── Footer, phone layout ─────────────────────────────────────── */
	.ft-columns { padding: 2rem 0 0.5rem; border-bottom: none; }
	.ft-container {
		padding-left: max(1.25rem, env(safe-area-inset-left));
		padding-right: max(1.25rem, env(safe-area-inset-right));
	}
	.ft-grid { gap: 0 !important; }

	/* Brand: small mark beside the tagline */
	.ft-brand { margin-bottom: 1.5rem; }
	.ft-brand-top { gap: 1rem; margin-bottom: 1.25rem; align-items: flex-start; }
	.ft-logo-link { flex: 0 0 auto; }
	.ft-logo { width: 44px; max-width: 44px; }
	.ft-brand-top .ft-tagline { font-size: 0.875rem; line-height: 1.6; }

	/* Primary action and social icons share one row */
	.ft-brand-actions {
		display: flex;
		align-items: stretch;
		gap: 0.625rem;
		width: 100%;
	}
	.ft-brand-actions .ft-btn-primary {
		flex: 1 1 auto;
		max-width: none !important;
		min-height: 48px;
		margin: 0 !important;
		font-size: 0.9375rem;
	}
	.ft-brand-actions .ft-social { display: flex; gap: 0.625rem; margin: 0; }
	.ft-brand-actions .ft-social-link { width: 48px; height: 48px; border: 1px solid var(--border); }

	/* One-tap contact */
	.ft-quick {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.625rem;
		width: 100%;
		margin-top: 0.625rem;
	}
	.ft-quick-link {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 48px;
		padding: 0 0.75rem;
		border: 1px solid var(--border);
		border-radius: var(--radius);
		font-size: 0.875rem;
		font-weight: 500;
		color: var(--text) !important;
		-webkit-text-fill-color: var(--text) !important;
		text-decoration: none !important;
	}
	.ft-quick-link svg { flex: 0 0 auto; color: var(--accent); }

	/* Link groups collapse into tap-to-open rows */
	.ft-col { border-top: 1px solid var(--border); }
	.ft-col:last-of-type { border-bottom: 1px solid var(--border); }

	.ft-col-heading {
		display: flex !important;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		margin: 0 !important;
		cursor: pointer;
		user-select: none;
	}

	.ft-col-heading::after {
		content: '';
		width: 7px;
		height: 7px;
		margin-right: 4px;
		border-right: 1.35px solid currentColor;
		border-bottom: 1.35px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		transition: transform 0.2s ease;
	}

	.ft-col.is-open .ft-col-heading::after { transform: rotate(-135deg) translateY(-2px); }

	.ft-col .ft-nav {
		display: none;
		grid-template-columns: 1fr 1fr;
		gap: 0 1rem;
		padding-bottom: 0.75rem;
	}
	.ft-col.is-open .ft-nav { display: grid; }
	.ft-col .ft-nav li { margin: 0 !important; }
	.ft-col .ft-nav a { display: flex; align-items: center; min-height: 40px; font-size: 0.875rem; }

	/* Newsletter: compact, field and button on one line */
	.ft-newsletter { padding: 1.75rem 0; border-top: none; }
	.ft-newsletter-inner { gap: 0.875rem !important; }
	.ft-newsletter-title { font-size: 1rem !important; }
	.ft-newsletter-field-row { flex-direction: row !important; gap: 0.5rem; }
	.ft-newsletter-input { flex: 1 1 auto; min-width: 0; min-height: 48px; }
	.ft-newsletter-btn { width: auto !important; min-height: 48px; padding: 0 1rem !important; }
	.ft-newsletter-privacy { font-size: 0.75rem; margin-top: 0.5rem; }

	/* Legal: two short lines, small type, clear of the home indicator */
	/* Bottom padding clears the floating scroll-to-top button */
	.ft-legal { padding: 1.25rem 0 calc(4.75rem + env(safe-area-inset-bottom)); }
	.ft-legal-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
	.ft-legal-left { flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.75rem; }
	.ft-legal-left .ft-copy,
	.ft-legal-left .ft-location { font-size: 0.75rem; }
	.ft-legal-right { gap: 0.25rem 1rem; }
	.ft-legal-right a,
	.ft-portal-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 0.75rem; }

	/* Scroll to top clears the home indicator */
	.scroll-to-top {
		right: 1rem;
		bottom: calc(1rem + env(safe-area-inset-bottom));
	}
}

/* Google reviews on phones */
@media (max-width: 640px) {
	.dk-reviews { padding: 3rem 0; }
	.dk-reviews-head { flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
	.dk-reviews-score { font-size: 2.5rem; }
	.dk-review { width: min(80vw, 20rem); padding: 1.25rem; }
	.dk-reviews-marquee.is-scrolling .dk-reviews-track { animation-duration: 45s; }
	.dk-reviews-foot { flex-direction: column; align-items: stretch; margin-top: 1.75rem; }
	.dk-reviews-actions { flex-direction: column; }
	.dk-reviews-actions .dk-btn { width: 100%; min-height: 48px; }
	.dk-reviews-credit { text-align: center; }
}

/* Cookie banner as a bottom sheet on phones */
@media (max-width: 640px) {
	.dk-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		border-left: none;
		border-right: none;
		border-bottom: none;
		border-radius: 0;
	}
	.dk-consent-inner { padding: 1.125rem max(1.25rem, env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left)); }
	.dk-consent-actions .dk-btn { min-height: 48px; }
	body.has-consent-banner .scroll-to-top { display: none; }
}

/* ==========================================================================
   5. CONFIGURATOR ON PHONES
   ========================================================================== */
@media (max-width: 640px) {
	.cfg-wizard-section { padding: 1.25rem 0 0; }

	.cfg-progress-wrap {
		position: sticky;
		top: var(--dk-header-h, 61px);
		z-index: 5;
		margin: 0 calc(-1 * max(1.25rem, env(safe-area-inset-left))) 1.5rem;
		padding: 0.75rem max(1.25rem, env(safe-area-inset-right)) 0.625rem max(1.25rem, env(safe-area-inset-left));
		background: var(--bg);
		border-bottom: 1px solid var(--border);
	}

	.cfg-step-dots { margin-bottom: 0.5rem; }

	.cfg-step-header h2 { font-size: 1.375rem !important; }
	.cfg-step-note { font-size: 0.875rem; }

	.cfg-choice-grid,
	.cfg-choice-grid--two { grid-template-columns: 1fr; max-width: none; gap: 0.625rem; }

	.cfg-choice-card { padding: 0.875rem 1rem; gap: 0.25rem; }
	.cfg-choice-label { font-size: 0.9375rem; }
	.cfg-choice-desc { font-size: 0.8125rem; }

	.cfg-choice-grid--two { grid-template-columns: repeat(2, 1fr); }

	.cfg-opt-card .cfg-opt-inner { padding: 0.875rem 1rem; gap: 0.75rem; }
	.cfg-opt-desc { font-size: 0.8125rem; }
	.cfg-opt-price { font-size: 0.8125rem; white-space: nowrap; }

	/* Back and Continue stay within thumb reach */
	.cfg-nav-wrap {
		position: sticky;
		bottom: 0;
		z-index: 6;
		gap: 0.625rem;
		margin: 1.5rem calc(-1 * max(1.25rem, env(safe-area-inset-left))) 0;
		padding: 0.75rem max(1.25rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
		background: var(--bg);
		border-top: 1px solid var(--border);
	}

	.cfg-nav-btn { flex: 1 1 0; justify-content: center; min-height: 48px; font-size: 0.9375rem; }
	.cfg-nav-prev { flex: 0 0 auto; padding-left: 1rem; padding-right: 1rem; }

	.cfg-final-layout { gap: 1.5rem; }
	.cfg-summary-breakdown { max-height: none; }
	.cfg-total-amount { font-size: 2.5rem; }
	.cfg-quote-title { font-size: 1.625rem; }

	[class*="page-template-page-configurator"] .scroll-to-top { display: none; }
}

/* ==========================================================================
   6. COARSE POINTERS: comfortable tap targets everywhere
   ========================================================================== */
@media (pointer: coarse) {
	.dk-btn,
	.hp-btn-primary,
	.hp-btn-outline,
	.hp-btn-ghost,
	.ft-btn-primary,
	.ft-newsletter-btn,
	.cfg-nav-btn {
		min-height: 44px;
	}

	input,
	select,
	textarea {
		font-size: 16px !important; /* stops iOS zooming into fields */
	}
}

/* ==========================================================================
   7. SMALL TABLETS (600px to 768px): actions keep a natural width
   ========================================================================== */
@media (min-width: 600px) and (max-width: 768px) {
	.hp-hero-actions { align-items: flex-start; }

	.hp-hero-actions .hp-btn-primary,
	.hp-hero-actions .hp-btn-ghost {
		width: auto;
		min-width: 18rem;
	}

	.hp-hero-actions .hp-btn-text { align-self: flex-start; }

	.hero-buttons,
	.product-hero-buttons { flex-direction: row; align-items: center; }

	.hero-buttons .dk-btn,
	.product-hero-buttons .dk-btn { width: auto; }
}

/* ── How we work: vertical timeline on tablets and phones ─────────────
   The line runs through the centre of each numbered badge and stops at
   the last step. Badge: 2.5rem wide, top of the step plus 1.5rem. */
@media (max-width: 768px) {
	.hp-process-step,
	.hp-process-step:last-child {
		position: relative;
		padding: 1.5rem 0 1.5rem 3.75rem;
		border-left: none;
	}
	.hp-process-step .hp-step-number {
		position: absolute;
		left: 0;
		top: 1.5rem;
		margin: 0;
	}
	.hp-process-step::before {
		content: '';
		position: absolute;
		left: calc(1.25rem - 1px);
		top: 2.75rem;
		height: 100%;
		width: 2px;
		background: var(--border-strong);
		z-index: 1;
	}
	.hp-process-step:last-child::before { display: none; }
	.hp-process-step .hp-step-title { margin-top: 0.5rem; }
}

/* Estimator on phones: the whole top bar (progress, Back, Continue) sticks under the header */
@media (max-width: 640px) {
	.cfg-topbar {
		margin: 0 calc(-1 * max(1.25rem, env(safe-area-inset-left))) 1.5rem;
		padding: 0.75rem max(1.25rem, env(safe-area-inset-right)) 0.75rem max(1.25rem, env(safe-area-inset-left));
		top: var(--dk-header-h, 61px);
	}
	.cfg-topbar .cfg-progress-wrap {
		position: static;
		margin: 0 0 0.75rem;
		padding: 0;
		border-bottom: none;
		background: transparent;
	}
	.cfg-topbar .cfg-nav-wrap {
		position: static;
		margin: 0;
		padding: 0;
		border-top: none;
		background: transparent;
	}
	.cfg-topbar .cfg-nav-btn { min-height: 44px; }
}
