/**
 * The site header.
 *
 * Figma: Pacific College Library, page "Navigation"
 *   wide        node 6117:4546  1440 x 103 - gold utility bar (32) over a
 *                               white bar (71)
 *   wide-short  node 6117:4679  1024 x 66.45 - no utility bar, no inline
 *                               links, a button instead
 *   narrow      node 6057:1107   390 x 58 - logo and a button
 *   bar panels  node 6033:607   Academics, three columns, 1053 x 236
 *               node 6033:836   Admissions, one column, under its own item
 *   drawer      node 6033:8045  the whole menu, opened
 *               node 6033:8573  a section open, its groups closed
 *               node 6033:8168  a section open, its groups open too
 *   info for    node 6029:240   the gold dropdown and its three states
 *   phone       node 6033:531   the gold bar's phone number, both states
 *
 * Three states rather than four: everything is in the drawer below 1200,
 * and the two buttons join the bar from 768 where there is room for them.
 *
 * THE THREE LEVELS LOOK COMPLETELY DIFFERENT IN THE TWO LAYOUTS, which is
 * what most of this file is about. In the drawer every level is a box:
 * a filled blue row, an outlined row inside it, a white pill inside that.
 * On the bar the same three levels are a pill in a bar, a small gold
 * heading, and a plain white link. The markup is written once either way -
 * see header.php.
 */

.pchs-nav {
	position: relative;
	z-index: 50;
	background-color: var(--wp--preset--color--white);
}


/* ------------------------------------------------------------
   The gold utility bar

   Only drawn on the widest frame. Below 1200 the same phone
   number and the same "Info for" links are at the foot of the
   drawer instead, styled further down.
   ------------------------------------------------------------ */

.pchs-nav__utility {
	display: none;
}

.pchs-nav__phone,
.pchs-nav__info-toggle {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4); /* 4px */
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12); /* 8/12 */
	border: 0;
	background-color: transparent;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	font-weight: 700;
	line-height: 1;
	transition: background-color 0.2s ease;
}

.pchs-nav__phone {
	letter-spacing: var(--wp--custom--tracking--wide); /* 0.08em */
	text-transform: uppercase;
}

.pchs-nav__info-toggle {
	cursor: pointer;
	line-height: 1.2;
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
}

/*
 * Both sit ON the gold bar, so their own background matches it and only
 * shows when it darkens. Figma nodes 6033:420 / 6033:431 for the phone and
 * 6029:235 / 6029:236 for the toggle: Primary/Yellow/500 becoming
 * Secondary/Gold/500.
 */
.pchs-nav__utility .pchs-nav__phone,
.pchs-nav__info-toggle {
	background-color: var(--wp--preset--color--yellow-500);
}

.pchs-nav__utility .pchs-nav__phone:hover,
.pchs-nav__utility .pchs-nav__phone:focus-visible,
.pchs-nav__info-toggle:hover,
.pchs-nav__info-toggle:focus-visible {
	background-color: var(--wp--preset--color--gold-500);
}

.pchs-nav__info {
	position: relative;
	height: 100%;
}

/* Figma node 6031:390: 8px below a 32px bar, flush with its right-hand
   edge, 8px of padding and 4px between the links. No shadow - measured
   from the frame, which has white directly under it. */
.pchs-nav__info-list {
	position: absolute;
	right: 0;
	top: calc(100% + var(--wp--preset--spacing--8)); /* 8px */
	z-index: 1;
	display: flex;
	width: max-content;
	min-width: 100%;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4); /* 4px */
	margin: 0;
	padding: var(--wp--preset--spacing--8); /* 8px */
	border-radius: var(--wp--custom--radius--sm); /* 16px - Figma radius-md */
	background-color: var(--wp--preset--color--yellow-500);
	list-style: none;
}

.pchs-nav__info-list[hidden] {
	display: none;
}

.pchs-nav__info-list a {
	display: block;
	padding: var(--wp--preset--spacing--8); /* 8px */
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: var(--wp--custom--tracking--label);
	transition: background-color 0.2s ease;
}

.pchs-nav__info-list a:hover,
.pchs-nav__info-list a:focus-visible {
	background-color: var(--wp--preset--color--gold-500);
}


/* ------------------------------------------------------------
   The white bar
   ------------------------------------------------------------ */

.pchs-nav__main {
	display: flex;
	height: 58px;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--12);
	padding-inline: var(--wp--preset--spacing--12); /* 12px */
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--sm); /* 0 2px 8px rgba(0,0,0,0.15) */
}

.pchs-nav__logo {
	display: flex;
	min-width: 0;
	align-items: center;
}

/* <picture> is an inline box that sizes to its content, so it needs telling
   to behave like a block before a child's sizing means anything. */
.pchs-nav__logo-picture {
	display: block;
	min-width: 0;
}

.pchs-nav__logo-image {
	width: auto;
	max-width: 100%;
	height: 35px;
}

/* The button that opens the drawer. The stylesheet swaps the bars for a
   cross rather than the script rebuilding the button. */
.pchs-nav__drawer-toggle {
	display: flex;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--wp--preset--color--blue-500);
	cursor: pointer;
}

.pchs-nav__icon--cross,
.pchs-nav__drawer-toggle[aria-expanded="true"] .pchs-nav__icon--bars {
	display: none;
}

.pchs-nav__drawer-toggle[aria-expanded="true"] .pchs-nav__icon--cross {
	display: block;
}

/* The bar's own right-hand side. Hidden on the narrowest screens, where the
   two buttons are in the drawer instead. */
.pchs-nav__actions {
	display: none;
	align-items: center;
	gap: var(--wp--preset--spacing--12); /* 12px */
}

/* Figma nodes 6029:288 / 6029:289. */
.pchs-nav__search-toggle {
	display: flex;
	align-items: center;
	padding: var(--wp--preset--spacing--8); /* 8px */
	border: 0;
	border-radius: var(--wp--custom--radius--full);
	background-color: transparent;
	color: var(--wp--preset--color--blue-500);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pchs-nav__search-toggle:hover,
.pchs-nav__search-toggle:focus-visible {
	background-color: var(--wp--preset--color--gray-500);
}


/* ------------------------------------------------------------
   The drawer
   Figma nodes 6033:8045, 6033:8573 and 6033:8168.

   Below 1200 this is the whole menu, opened by the button. The
   same markup becomes the horizontal bar further down.
   ------------------------------------------------------------ */

.pchs-nav__drawer {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	max-height: calc(100vh - 58px);
	overflow-y: auto;
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--md);
}

.pchs-nav__drawer[hidden] {
	display: none;
}

.pchs-nav__list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8); /* 8px */
	margin: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--12);
	list-style: none;
}

/*
 * LEVEL ONE: a filled blue box. Figma node 6026:92, 366 x 44, 16px corners.
 *
 * The box is the list item and not the link, which is the whole trick of
 * this layout: a closed row and an opened section are the same box, so
 * opening one does not swap anything. 12px of padding here plus 12 on the
 * link puts the word 24px in, which is where the frame has it, and makes a
 * closed row exactly 44 tall.
 */
.pchs-nav__item {
	padding: var(--wp--preset--spacing--12); /* 12px */
	border-radius: var(--wp--custom--radius--sm); /* 16px - Figma radius-md */
	background-color: var(--wp--preset--color--blue-500);
}

.pchs-nav__link {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20); /* 20px */
	padding: 0 var(--wp--preset--spacing--12); /* 12px, on top of the box's 12 */
	border: 0;
	border-radius: 0;
	background-color: transparent;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;

	/*
	 * 20, not 16 x 1.24 = 19.84.
	 *
	 * The design system calls this line height 1.24, but every frame LAYS
	 * OUT on 20: a row is 44, a panel link sits on a 40px pitch. Taking the
	 * ratio literally loses a sixth of a pixel per line, which is invisible
	 * on its own and three pixels adrift by the bottom of the drawer, where
	 * there are eighteen of them stacked up.
	 *
	 * Every other line height in this file is the same decision.
	 */
	line-height: 20px;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.pchs-nav__caret {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
	transition: transform 0.2s ease;
}

.pchs-nav__link .pchs-nav__caret {
	color: var(--wp--preset--color--yellow-500);
}

.pchs-nav__link[aria-expanded="true"] .pchs-nav__caret,
.pchs-nav__group-toggle[aria-expanded="true"] .pchs-nav__caret {
	transform: rotate(180deg);
}

.pchs-nav__panel {
	margin-top: var(--wp--preset--spacing--16); /* 16px under the open row */
}

.pchs-nav__panel[hidden] {
	display: none;
}

.pchs-nav__panel-inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8); /* 8px between second-level boxes */
}

/*
 * LEVEL TWO: an outlined blue box inside the filled one. Figma node
 * 6026:93 for one with nothing under it, and node 6033:8316 for one that
 * opens - the same box, with its links added below the row.
 */
.pchs-nav__group,
.pchs-nav__sublink {
	padding: var(--wp--preset--spacing--12); /* 12px */
	border-radius: var(--wp--custom--radius--sm); /* 16px */

	/*
	 * An inset shadow rather than a border, because Figma draws this stroke
	 * INSIDE the box: the row is 44 tall and the word is 12 in, with the
	 * line painted over that first pixel. A CSS border is drawn outside the
	 * padding instead, which would make every one of these rows 2px taller -
	 * and with three of them inside each section, the drawer ends up several
	 * pixels adrift by the bottom of the menu.
	 */
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--white);
}

.pchs-nav__group {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20); /* 20px to the links below */
}

/* The bar's version of the second level. Out of the drawer's way entirely,
   so a screen reader is offered the button below and not both. */
.pchs-nav__group-title {
	display: none;
	margin: 0;
}

.pchs-nav__group-toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding: 0;
	border: 0;
	background-color: transparent;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 20px;
	text-align: left;
	cursor: pointer;
}

.pchs-nav__sublist,
.pchs-nav__group-list {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8); /* 8px */
	margin: 0;
	padding: 0;
	list-style: none;
}

.pchs-nav__group-list[hidden] {
	display: none;
}

.pchs-nav__sublink {
	display: block;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md); /* 16px */
	font-weight: 500;
	line-height: 20px;
}

/*
 * LEVEL THREE: a white pill inside the outlined box. Figma node 6026:94 -
 * small, bold, and in the lighter blue, which is the only place in the
 * header where the type gets smaller as it goes deeper.
 *
 * The 40px on the right is 20 of padding and 20 more the frame keeps clear
 * inside it, so a long course name wraps before it reaches the edge.
 */
.pchs-nav__group-link {
	display: block;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--40) var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--blue-300);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	font-weight: 700;
	line-height: 14px; /* 12 x 1.2 = 14.4; the frames lay out on 14 */
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
}


/* The drawer's search, buttons, phone and Info for links. */

.pchs-nav__drawer-extras {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	padding: 0 var(--wp--preset--spacing--12) var(--wp--preset--spacing--20);
}

.pchs-nav__search-form {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--20);
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--gray-500);
}

.pchs-nav__search-form input {
	min-width: 0;
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--md);
}

.pchs-nav__search-form button {
	display: flex;
	padding: var(--wp--preset--spacing--4);
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--blue-500);
	cursor: pointer;
}

.pchs-nav__drawer-extras .pchs-button {
	justify-content: center;
}

/* The gold band at the foot of the drawer. Figma node 6033:8136. */
.pchs-nav__drawer-utility {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20); /* 20px */

	/*
	 * 20, although the generated code for this frame says its vertical
	 * padding is 24. The frame is 286 tall, its first child starts at 20 and
	 * its last ends 20 from the bottom - and 20 is what adds up. The 24 comes
	 * from a font-size token being used as a padding value, so its fallback
	 * is not what the frame was drawn with.
	 */
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--12);
	background-color: var(--wp--preset--color--yellow-500);
}

/* The label sits close to the links it introduces - 4px - while the phone
   above keeps the band's full 20. Figma node 6033:8156. */
.pchs-nav__drawer-info {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--4); /* 4px */
}

.pchs-nav__drawer-utility .pchs-nav__phone,
.pchs-nav__drawer-info-list a {
	display: flex;
	width: 100%;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12); /* 8/12 */
	border-radius: var(--wp--custom--radius--full);
	background-color: var(--wp--preset--color--yellow-300);
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1;
	letter-spacing: var(--wp--custom--tracking--wide);
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.pchs-nav__drawer-utility .pchs-nav__phone:hover,
.pchs-nav__drawer-utility .pchs-nav__phone:focus-visible,
.pchs-nav__drawer-info-list a:hover,
.pchs-nav__drawer-info-list a:focus-visible {
	background-color: var(--wp--preset--color--gold-500);
}

.pchs-nav__drawer-info-label {
	margin: 0;
	color: var(--wp--preset--color--blue-500);
	font-family: var(--wp--preset--font-family--navigation);
	font-size: var(--wp--preset--font-size--xs); /* 12px */
	font-weight: 700;
	line-height: 14px; /* as everywhere else: the frames lay 12 x 1.2 out on 14 */
	letter-spacing: var(--wp--custom--tracking--label); /* 0.02em */
}

.pchs-nav__drawer-info-list {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8); /* 8px */
	margin: 0;
	/* 8px top and bottom: the frame draws this list as a box of its own
	   inside the band, the same shape as the dropdown on a wide screen. */
	padding: var(--wp--preset--spacing--8) 0;
	list-style: none;
}

/* The search row that drops out of the bar. Only used from 1200 up; below
   that the drawer has its own field. */
.pchs-nav__search {
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
	background-color: var(--wp--preset--color--white);
	box-shadow: var(--wp--preset--shadow--sm);
}

.pchs-nav__search[hidden] {
	display: none;
}


/* ------------------------------------------------------------
   768px and up
   Figma node 6117:4679.

   Still a drawer, but the bar has room for the search button
   and the two calls to action.
   ------------------------------------------------------------ */

@media (min-width: 768px) {

	.pchs-nav__main {
		height: 66px;
		padding-inline: var(--wp--preset--spacing--16);
	}

	.pchs-nav__logo-image {
		height: 40px;
	}

	/*
	 * The search button and the two calls to action, then the menu button,
	 * all gathered at the right-hand end - which is where the frame puts
	 * them. margin-left: auto does the gathering: the bar is spread with
	 * space-between, and without it the three would sit apart from each
	 * other across the middle.
	 *
	 * The drawer is positioned, so it takes no part in this and its order
	 * does not matter.
	 */
	.pchs-nav__actions {
		display: flex;
		order: 2;
		margin-left: auto;
	}

	.pchs-nav__drawer-toggle {
		order: 3;
	}

	.pchs-nav__drawer-extras .pchs-button {
		display: none;
	}
}


/* ------------------------------------------------------------
   1200px and up
   Figma nodes 6117:4546 and 6033:1207.

   The full bar: the gold strip appears, the menu comes out of
   the drawer and lies along the bar, and the panels drop out of
   it instead of pushing it open.

   Every box from the drawer is taken off again here - the
   filled row, the outline, the white pill - and the three
   levels become a pill, a gold heading and a plain link.
   ------------------------------------------------------------ */

@media (min-width: 1200px) {

	.pchs-nav__utility {
		display: flex;
		height: 32px;
		align-items: stretch;
		justify-content: space-between;
		background-color: var(--wp--preset--color--yellow-500);
	}

	.pchs-nav__main {
		height: 71px;
		padding-inline: var(--wp--preset--spacing--16); /* 16px */
	}

	.pchs-nav__logo {
		width: 252px;
		flex: 0 0 252px;
		padding-right: var(--wp--preset--spacing--12);
	}

	.pchs-nav__logo-image {
		width: 240px;
		height: auto;
	}

	.pchs-nav__drawer-toggle {
		display: none;
	}

	/*
	 * Out of the drawer and into the bar. It stretches to the bar's full
	 * height, and so does everything down to the list item, because a
	 * panel hangs 10px below the BAR rather than below the word that
	 * opened it - and the only way to say "below the bar" with
	 * position: absolute is to make the thing it is measured from as tall
	 * as the bar.
	 */
	.pchs-nav__drawer {
		position: static;
		display: flex !important;
		max-height: none;
		min-width: 0;
		flex: 1 1 auto;
		align-self: stretch;
		overflow: visible;
		background-color: transparent;
		box-shadow: none;
	}

	.pchs-nav__drawer-extras,
	.pchs-nav__drawer-utility {
		display: none;
	}

	.pchs-nav__primary {
		display: flex;
		min-width: 0;
		flex: 1 1 auto;
		align-items: stretch;
	}

	.pchs-nav__list {
		max-width: 720px;
		flex: 1 1 auto;
		flex-direction: row;
		align-items: stretch;
		justify-content: space-between;
		gap: 0;
		margin-inline: auto;
		padding: 0;
	}

	/*
	 * A simple panel is centred under its own item, so the item is the thing
	 * it is positioned against. A wide one - Academics, the only branch with
	 * a third level - is centred on the page instead, which is where the
	 * frame puts it: 193 to 1246 of 1440, the same margin on both sides.
	 *
	 * Both are the same rule. Making the item static for the wide case hands
	 * the positioning up to the header, and nothing else has to change.
	 */
	.pchs-nav__item {
		position: relative;
		display: flex;
		align-items: center;
		padding: 0;
		border-radius: 0;
		background-color: transparent;
	}

	.pchs-nav__item--wide {
		position: static;
	}

	/* A link in the bar: no pill until it is hovered or open.
	   Figma nodes 6026:104 and 6026:105, 12px of padding and an 8px gap. */
	.pchs-nav__link {
		width: auto;
		gap: var(--wp--preset--spacing--8); /* 8px */
		padding: var(--wp--preset--spacing--12); /* 12px */
		border-radius: var(--wp--custom--radius--full);
		background-color: transparent;
		color: var(--wp--preset--color--blue-500);
		white-space: nowrap;
	}

	.pchs-nav__caret {
		width: 8px;
		height: 8px;
		flex: 0 0 8px;
	}

	.pchs-nav__link .pchs-nav__caret {
		color: currentColor;
	}

	.pchs-nav__link:hover,
	.pchs-nav__link:focus-visible,
	.pchs-nav__link[aria-expanded="true"] {
		background-color: var(--wp--preset--color--blue-500);
		color: var(--wp--preset--color--white);
	}

	/*
	 * The panel. Measured from Figma node I6033:1207;6033:5804: 1053 wide
	 * and 10px below the bar, with 32px of padding and its columns 64px
	 * apart. 24 here and 8 inside make the 32.
	 */
	.pchs-nav__panel {
		position: absolute;
		left: 50%;
		top: calc(100% + 10px);
		z-index: 2;
		width: max-content;
		max-width: calc(100vw - 32px);
		margin-top: 0;
		padding: var(--wp--preset--spacing--24); /* 24px, with 8 more inside */
		border-radius: var(--wp--custom--radius--lg); /* 24px */
		background-color: var(--wp--preset--color--blue-500);
		transform: translateX(-50%);
	}

	.pchs-nav__panel-inner {
		padding: var(--wp--preset--spacing--8);
	}

	/* Three columns, 64px apart. Figma node I6033:1207;6033:5805. */
	.pchs-nav__panel--wide .pchs-nav__panel-inner {
		flex-direction: row;
		align-items: flex-start;
		gap: 64px;
	}

	/* Off come the drawer's boxes. */
	.pchs-nav__group,
	.pchs-nav__sublink,
	.pchs-nav__group-link {
		padding: 0;
		border-radius: 0;
		background-color: transparent;
		box-shadow: none;
	}

	.pchs-nav__sublist,
	.pchs-nav__group-list,
	.pchs-nav__group {
		gap: var(--wp--preset--spacing--20); /* 20px: links on a 40px pitch */
	}

	/*
	 * The second level changes hands: the heading appears and the button
	 * that opened it in the drawer goes away completely. The list it
	 * controls is always open here, so the attribute the script leaves
	 * behind has to be ignored.
	 */
	.pchs-nav__group-title {
		display: block;
		color: var(--wp--preset--color--yellow-500);
		font-family: var(--wp--preset--font-family--navigation);
		font-size: var(--wp--preset--font-size--xs); /* 12px */
		font-weight: 700;
		line-height: 1;
		letter-spacing: var(--wp--custom--tracking--wide); /* 0.08em */
		text-transform: uppercase;
	}

	/* The button, and the hidden link that stands in for the heading while
	   the button has its place, both belong to the drawer only. */
	.pchs-nav__group-toggle,
	.pchs-nav__group > .screen-reader-text {
		display: none;
	}

	.pchs-nav__group-list[hidden] {
		display: flex;
	}

	.pchs-nav__group-title a {
		color: inherit;
		font: inherit;
		letter-spacing: inherit;
	}

	.pchs-nav__sublink,
	.pchs-nav__group-link {
		color: var(--wp--preset--color--white);
		font-size: var(--wp--preset--font-size--md); /* 16px */
		font-weight: 500;
		line-height: 20px;
		letter-spacing: 0;
	}

	/*
	 * Every link in a panel underlines on hover - Figma nodes 6033:786 and
	 * 6033:788. The underline is always there and merely colourless, so
	 * that it can fade in rather than snapping on; a plain
	 * text-decoration cannot be transitioned.
	 */
	.pchs-nav__group-title a,
	.pchs-nav__sublink,
	.pchs-nav__group-link {
		text-decoration: underline;
		text-decoration-color: transparent;
		text-underline-position: from-font;
		transition: text-decoration-color 0.2s ease;
	}

	.pchs-nav__group-title a:hover,
	.pchs-nav__group-title a:focus-visible,
	.pchs-nav__sublink:hover,
	.pchs-nav__sublink:focus-visible,
	.pchs-nav__group-link:hover,
	.pchs-nav__group-link:focus-visible {
		text-decoration-color: currentColor;
	}

	.pchs-nav__actions {
		display: flex;
		width: 319px;
		flex: 0 0 319px;
		justify-content: flex-end;
		padding-left: var(--wp--preset--spacing--12);
	}

	.pchs-nav__actions,
	.pchs-nav__drawer-toggle {
		order: 0;
	}
}
