/*
 * HDR-11: action bar. The logo, the menu and two actions: the phone number to
 * call and an enquiry button. On a phone the enquiry joins the content kit's
 * bar at the bottom of the screen, beside "Call" and "Directions"
 * (inc/site-parts.php). The phone number is printed by the content kit from
 * Settings, Business details; without one the button stands alone.
 *
 * Above the bar stands one line with today's opening hours ("Open today,
 * 10:00 am to 7:00 pm" or "Closed today"), printed by the content kit (1.9.0)
 * from the same details. A business without opening hours, or a site with an
 * older kit, gets no line and no room for one.
 */

.wprk-hdr-11 .wprk-header__today {
	border-block-end: 1px solid var(--wprk-border);
	margin-block: 0;
	padding-block: 0.4rem;
}

.wprk-hdr-11 .wprk-header__today :where(.wprk-business, .wprk-business__today) {
	margin: 0;
}

.wprk-hdr-11 .wprk-header__today .wprk-business__today {
	align-items: center;
	color: var(--wprk-heading);
	display: flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	gap: 0.5em;
	line-height: 1.4;
}

/* A small clock before the words. */
.wprk-hdr-11 .wprk-header__today .wprk-business__today::before {
	background-color: var(--wp--preset--color--primary);
	content: "";
	flex: none;
	height: 1em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 1em;
}

.wprk-hdr-11 .wprk-header__nav {
	gap: var(--wp--preset--spacing--30);
}

.wprk-hdr-11 .wprk-header__nav > .wp-block-navigation {
	margin-inline-end: var(--wp--preset--spacing--20);
}

.wprk-hdr-11 .wprk-header__call,
.wprk-hdr-11 .wprk-header__call .wprk-business__phone {
	margin: 0;
}

/* The phone number as an outlined button with a handset before it, the height of the button beside it. */
.wprk-hdr-11 .wprk-header__call .wprk-business__phone a {
	align-items: center;
	border: 1.5px solid color-mix(in srgb, var(--wprk-heading) 35%, transparent);
	border-radius: var(--wp--custom--button--radius);
	box-sizing: border-box;
	color: var(--wprk-heading);
	display: inline-flex;
	font-weight: 600;
	gap: 0.5em;
	line-height: 1.2;
	min-height: 3.0625rem;
	padding: calc(0.85em - 1.5px) 1.1em;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}

.wprk-hdr-11 .wprk-header__call .wprk-business__phone a:hover {
	background-color: var(--wprk-soft);
	border-color: var(--wprk-heading);
}

.wprk-hdr-11 .wprk-header__call .wprk-business__phone a::before {
	background-color: currentColor;
	content: "";
	flex: none;
	height: 1.1em;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4-2 1.5a10 10 0 0 0 6 6l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 4.5 5.5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 3.5h3l1.5 4-2 1.5a10 10 0 0 0 6 6l1.5-2 4 1.5v3a2 2 0 0 1-2 2A16 16 0 0 1 4.5 5.5a2 2 0 0 1 2-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 1.1em;
}

.wprk-hdr-11 .wprk-header__nav .wp-block-button__link,
.wprk-hdr-11 .wprk-header__brand :where(.wp-block-site-title) {
	white-space: nowrap;
}

/*
 * With every part in view the bar is as wide as the page allows and grows no
 * further, so a wide typeface has to fit by standing closer together.
 */
@media (min-width: 1280px) {
	.wprk-hdr-11 .wprk-header__nav > .wp-block-navigation {
		margin-inline-end: 0;
	}

	.wprk-hdr-11 .wp-block-navigation,
	.wprk-hdr-11 .wp-block-navigation .wp-block-navigation__container {
		column-gap: 1.25rem;
	}
}

/* Less room: the handset alone. The number stays the name of the link for a screen reader. */
@media (max-width: 1279px) {
	.wprk-hdr-11 .wp-block-navigation,
	.wprk-hdr-11 .wp-block-navigation .wp-block-navigation__container {
		column-gap: 0.875rem;
		font-size: 0.9375rem;
	}

	.wprk-hdr-11 .wprk-header__call .wprk-business__phone a {
		font-size: 0;
		gap: 0;
		height: 3.0625rem;
		justify-content: center;
		padding: 0;
		width: 3.0625rem;
	}

	.wprk-hdr-11 .wprk-header__call .wprk-business__phone a::before {
		font-size: 1rem;
		height: 1.25em;
		width: 1.25em;
	}
}

/* The narrowest width that shows the menu: a step smaller, as HDR-10 does. */
@media (min-width: 782px) and (max-width: 899px) {
	.wprk-hdr-11 .wp-block-navigation,
	.wprk-hdr-11 .wp-block-navigation .wp-block-navigation__container {
		column-gap: 0.625rem;
		font-size: 0.875rem;
	}
}

/* A tablet: the menu and the handset. The menu has its own link to the contact page. */
@media (min-width: 600px) and (max-width: 1023px) {
	.wprk-hdr-11 .wprk-header__nav .wp-block-buttons {
		display: none;
	}
}

/* Narrower than that, both actions are in the bar at the bottom of the screen. */
@media (max-width: 781px) {
	.wprk-hdr-11 .wprk-header__call {
		display: none;
	}
}
