/*
 * The menu in the look of the OT-AM landing page's menu (Emilie, 31 Oct 2026: "Som
 * landingssiden", after a preview on staging). The same items and submenus as before, drawn as
 * on the landing page: the links in small spaced capitals with a green line under the one you
 * point at and the page you are on, the round menu button on a phone, and once the top of the
 * page has scrolled away a slim bar that slides in and stays (the landing page's .otnav.fixed,
 * in the site's lighter navy, Emilie 26 Oct 2026: "Lysere navy"). bc_body_class() puts
 * .bc-menu-lp on every page, which gives these rules the weight they need over bc.css.
 */

/* Links ----------------------------------------------------------------------- */

@media (min-width: 1200px) {
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > a,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle {
		padding: 6px 0;
		border-bottom: 2px solid transparent;
		font-size: 13px;
		letter-spacing: .12em;
		text-transform: uppercase;
		opacity: .86;
		transition: opacity .2s ease, border-color .2s ease;
	}

	.bc-menu-lp .bc-masthead .bc-nav__menu > li > a:hover,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle:hover,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle[aria-expanded="true"],
	.bc-menu-lp .bc-masthead .bc-nav__menu > li:hover > .bc-sub-toggle,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li.current-menu-item > a,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li.current-menu-ancestor > .bc-sub-toggle {
		border-bottom-color: var(--bc-check);
		text-decoration: none !important;
		opacity: 1;
	}

	.bc-menu-lp .bc-masthead .bc-topbar__menu a {
		font-size: 11.5px;
		font-weight: 700;
		letter-spacing: .12em;
		text-transform: uppercase;
	}
}

/* One row, as the OT-AM page's menu (Emilie, 5 Nov 2026: "Sørg for at menuerne er ens på denne og ot-am"):
   the logo on the left, the links on the right, the button last, no top bar and no lines. */
.bc-menu-lp .bc-masthead .bc-topbar {
	display: none;
}

.bc-menu-lp .bc-masthead .bc-bar {
	border-bottom: 0;
}

.bc-menu-lp .bc-masthead .bc-bar__inner {
	width: auto;
	max-width: none;
	height: auto;
	margin: 0;
	padding: clamp(14px, 1.8vw, 22px) clamp(16px, 2.2vw, 32px);
	gap: clamp(14px, 1.8vw, 26px);
}

.bc-menu-lp .bc-masthead .bc-logo img {
	width: clamp(150px, 14vw, 230px);
	height: auto;
}

.bc-menu-lp .bc-masthead .bc-btn--header {
	min-height: 0;
	padding: 11px 20px;
	border-radius: 30px;
	font-size: 14.5px;
}

@media (min-width: 1200px) {
	.bc-menu-lp .bc-masthead .bc-nav {
		justify-content: flex-end;
	}

	/* A long submenu in two columns. */
	.bc-menu-lp .bc-masthead .bc-nav .sub-menu:has(> li:nth-child(10)) {
		display: none;
		column-count: 2;
		column-gap: 8px;
		min-width: 560px;
	}

	.bc-menu-lp .bc-masthead .bc-sub-toggle[aria-expanded="true"] ~ .sub-menu:has(> li:nth-child(10)),
	.bc-menu-lp .bc-masthead .bc-nav__menu > li:hover > .sub-menu:has(> li:nth-child(10)) {
		display: block;
	}

	.bc-menu-lp .bc-masthead .bc-nav .sub-menu > li {
		break-inside: avoid;
	}

	.bc-menu-lp .bc-masthead .bc-nav__menu {
		gap: clamp(14px, 1.6vw, 26px);
	}

	.bc-menu-lp .bc-masthead .bc-nav__extra {
		display: none;
	}
}

/* Where the full menu only just fits. */
@media (min-width: 1200px) and (max-width: 1359px) {
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > a,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle {
		font-size: 12.5px;
		letter-spacing: .08em;
	}
}

/* Phone and tablet: the round menu button and the panel's links in capitals. */
@media (max-width: 1199px) {
	.bc-menu-lp .bc-masthead .bc-menu-toggle,
	.bc-menu-lp .bc-masthead .bc-menu-toggle:hover,
	.bc-menu-lp .bc-masthead .bc-menu-toggle:focus {
		justify-content: center;
		width: 44px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		font-size: 0; /* the word "Menu" stays as the button's name */
		background:
			linear-gradient(#FFFFFF, #FFFFFF) center calc(50% - 6px) / 18px 2px no-repeat,
			linear-gradient(#FFFFFF, #FFFFFF) center / 18px 2px no-repeat,
			linear-gradient(#FFFFFF, #FFFFFF) center calc(50% + 6px) / 18px 2px no-repeat,
			rgba(255, 255, 255, .12);
	}

	.bc-menu-lp .bc-masthead .bc-menu-toggle[aria-expanded="true"] {
		background-color: rgba(255, 255, 255, .22);
	}

	.bc-menu-lp .bc-masthead .bc-nav__menu > li > a,
	.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle {
		font-size: 14px;
		letter-spacing: .12em;
		text-transform: uppercase;
	}
}

/* The bar that stays ---------------------------------------------------------- */

.bc-menu-lp .bc-masthead.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(14, 27, 38, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
	animation: bc-navin .35s ease both;
}

.bc-menu-lp .bc-masthead.is-fixed .bc-topbar {
	display: none;
}

.bc-menu-lp .bc-masthead.is-fixed .bc-bar {
	border-bottom: 0;
}

.bc-menu-lp .bc-masthead.is-fixed .bc-bar__inner {
	padding-top: 10px;
	padding-bottom: 10px;
}

.bc-menu-lp .bc-masthead.is-fixed .bc-logo img {
	width: 130px;
}

.admin-bar.bc-menu-lp .bc-masthead.is-fixed {
	top: 32px;
}

@media (max-width: 1199px) {
	.bc-menu-lp .bc-masthead.is-fixed .bc-logo img {
		width: 120px;
	}
}

@media (max-width: 782px) {
	.admin-bar.bc-menu-lp .bc-masthead.is-fixed {
		top: 46px;
	}
}

@keyframes bc-navin {
	from { transform: translateY(-100%); }
}

/* Small phones (0.11.9, 12 Nov 2026): logo, button and gaps a step smaller, so the round menu
   button stays inside the window. Before this the bar needed 396px and was cut at 375 and 360. */
@media (max-width: 419px) {
	.bc-menu-lp .bc-masthead .bc-bar__inner {
		gap: 10px;
	}

	.bc-menu-lp .bc-masthead .bc-logo img {
		width: 118px;
	}

	.bc-menu-lp .bc-masthead .bc-btn--header {
		padding: 10px 14px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc-menu-lp .bc-masthead.is-fixed {
		animation: none;
	}
}

/* The home page (runde 12, 23 Nov 2026): larger menu text, as Emilie asked. Only on the page built from the bh11- elements. */
@media (min-width: 1200px) {
	.bc-home11.bc-menu-lp .bc-masthead .bc-nav__menu > li > a,
	.bc-home11.bc-menu-lp .bc-masthead .bc-nav__menu > li > .bc-sub-toggle {
		font-size: clamp(13px, 1vw, 16.5px);
		opacity: 1;
	}
}
