.spiffing-apple-menu {
	--spiffing-dropdown-offset: 0px;
	--spiffing-panel-max-width: 100%;
	--spiffing-animation-duration: 220ms;
	--spiffing-panel-top: 100%;
	--spiffing-menu-radius: 18px;
	--spiffing-menu-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
	--spiffing-menu-surface: rgba(255, 255, 255, 0.98);
	--spiffing-menu-muted: rgba(15, 23, 42, 0.68);
	--spiffing-backdrop-surface: transparent;
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.spiffing-apple-menu,
.spiffing-apple-menu * {
	box-sizing: border-box;
}

body.spiffing-apple-menu-lock {
	overflow: hidden;
}

.spiffing-apple-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

.spiffing-apple-menu__nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.spiffing-apple-menu__nav-item,
.spiffing-apple-menu__mobile-link,
.spiffing-apple-menu__mobile-heading-link,
.spiffing-apple-menu__submenu-link,
.spiffing-apple-menu__submenu-parent a {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.spiffing-apple-menu__nav-item {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: color var(--spiffing-animation-duration) ease, opacity var(--spiffing-animation-duration) ease;
}

.spiffing-apple-menu__nav-item:hover,
.spiffing-apple-menu__nav-item:focus-visible,
.spiffing-apple-menu__nav-item.is-current,
.spiffing-apple-menu__nav-item[aria-expanded="true"] {
	opacity: 0.8;
	outline: none;
}

.spiffing-apple-menu__toggle {
	display: none;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.spiffing-apple-menu__toggle span {
	position: absolute;
	width: 1.125rem;
	height: 2px;
	background: currentColor;
	transition: transform var(--spiffing-animation-duration) ease, opacity var(--spiffing-animation-duration) ease, top var(--spiffing-animation-duration) ease;
}

.spiffing-apple-menu__toggle span:first-child {
	top: 1rem;
}

.spiffing-apple-menu__toggle span:nth-child(2) {
	top: 1.5rem;
}

.spiffing-apple-menu__toggle[aria-expanded="true"] span:first-child {
	top: 1.24rem;
	transform: rotate(45deg);
}

.spiffing-apple-menu__toggle[aria-expanded="true"] span:nth-child(2) {
	top: 1.24rem;
	transform: rotate(-45deg);
}

.spiffing-apple-menu__desktop-shell {
	--spiffing-panel-width: 100vw;
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
}

.spiffing-apple-menu__backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: var(--spiffing-backdrop-surface);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--spiffing-animation-duration) ease;
}

.spiffing-apple-menu__panel-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--spiffing-panel-width);
	background: var(--spiffing-menu-surface);
	box-shadow: var(--spiffing-menu-shadow);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity var(--spiffing-animation-duration) ease, transform var(--spiffing-animation-duration) ease, visibility var(--spiffing-animation-duration) ease;
	pointer-events: none;
}

.spiffing-apple-menu__panel-wrap::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--spiffing-dropdown-offset) * -1);
	height: var(--spiffing-dropdown-offset);
	background: inherit;
	opacity: 1;
}

.spiffing-apple-menu.is-desktop-open .spiffing-apple-menu__desktop-shell,
.spiffing-apple-menu__desktop-shell.is-open {
	pointer-events: none;
}

.spiffing-apple-menu.is-desktop-open .spiffing-apple-menu__backdrop,
.spiffing-apple-menu__desktop-shell.is-open .spiffing-apple-menu__backdrop {
	opacity: 1;
	pointer-events: auto;
}

.spiffing-apple-menu.is-desktop-open .spiffing-apple-menu__panel-wrap,
.spiffing-apple-menu__desktop-shell.is-open .spiffing-apple-menu__panel-wrap {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.spiffing-apple-menu__panel {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--spiffing-animation-duration) ease, visibility var(--spiffing-animation-duration) ease;
}

.spiffing-apple-menu__panel.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.spiffing-apple-menu__panel-inner {
	width: 100%;
	max-width: var(--spiffing-panel-max-width);
	margin: 0;
	padding: 2rem 1.5rem 2.5rem;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--spiffing-animation-duration) ease, transform var(--spiffing-animation-duration) ease;
}

.spiffing-apple-menu__panel.is-active .spiffing-apple-menu__panel-inner {
	opacity: 1;
	transform: translateY(0);
}

.spiffing-apple-menu__drawer {
	position: fixed;
	inset: 0;
	display: block;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	opacity: 0;
	visibility: hidden;
	transform: translateX(100%);
	pointer-events: none;
	transition: opacity var(--spiffing-animation-duration) ease, transform var(--spiffing-animation-duration) ease, visibility var(--spiffing-animation-duration) ease;
	z-index: 100001;
}

.spiffing-apple-menu.is-mobile-open .spiffing-apple-menu__drawer {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
	pointer-events: auto;
}

.spiffing-apple-menu__drawer-scroll {
	width: 100%;
	height: 100vh;
	overflow-y: auto;
	padding: 5.5rem 1.5rem 2rem;
}

.spiffing-apple-menu__mobile-panels,
.spiffing-apple-menu__mobile-links,
.spiffing-apple-menu__submenu-shell,
.spiffing-apple-menu__submenu-stack,
.spiffing-apple-menu__submenu-children {
	display: grid;
	gap: 1rem;
}

.spiffing-apple-menu__mobile-panels {
	gap: 1.75rem;
}

.spiffing-apple-menu__mobile-panel {
	padding-bottom: 1.5rem;
}

.spiffing-apple-menu__mobile-links {
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.spiffing-apple-menu__mobile-link {
	padding: 0.2rem 0;
}

.spiffing-apple-menu__submenu-grid,
.spiffing-apple-menu__submenu-stack,
.spiffing-apple-menu__submenu-children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spiffing-apple-menu__submenu-grid {
	display: grid;
	grid-template-columns: repeat(var(--spiffing-submenu-columns, 1), minmax(0, 1fr));
	gap: 1.5rem;
	align-items: start;
}

.spiffing-apple-menu__submenu-card {
	min-width: 0;
}

.spiffing-apple-menu__submenu-stack {
	grid-template-columns: minmax(0, 1fr);
	gap: 1.1rem;
}

.spiffing-apple-menu__submenu-child {
	min-width: 0;
}

.spiffing-apple-menu__mobile-heading {
	margin: 0 0 0.85rem;
	font-size: 1.25em;
	line-height: 1.2;
}

.spiffing-apple-menu__mobile-content {
	min-width: 0;
}

.spiffing-apple-menu__submenu-intro,
.spiffing-apple-menu__submenu-parent,
.spiffing-apple-menu__submenu-description {
	margin: 0;
	color: var(--spiffing-menu-muted);
}

.spiffing-apple-menu__submenu-link {
	display: inline-block;
	font-weight: 700;
}

.spiffing-apple-menu__submenu-description {
	margin-top: 0.45rem;
	font-size: 0.95em;
	line-height: 1.5;
}

.spiffing-apple-menu__submenu-children {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
}

.spiffing-apple-menu__submenu-child .spiffing-apple-menu__submenu-link {
	font-weight: 500;
}

.spiffing-apple-menu__notice {
	padding: 0.9rem 1rem;
	background: rgba(0, 0, 0, 0.03);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 640px) {
	.spiffing-apple-menu__drawer-scroll,
	.spiffing-apple-menu__panel-inner {
		padding-left: 1.1rem;
		padding-right: 1.1rem;
	}

	.spiffing-apple-menu__submenu-grid {
		grid-template-columns: 1fr;
	}
}
