/* MC Header (.mc-w-header): fixed header, MENU button, menu panel and back-to-top button. */

.mc-w-header .mc-mh-space { height: 0; }
.mc-w-header .mc-mh { position: fixed; top: 0; left: 0; right: 0; z-index: 50; font-family: var(--mc-font-head); color: #f0eeee; background: transparent; border-bottom: 1px solid transparent; transition: background-color .35s ease, border-color .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 8px 2%; }
/* keep the header below the WordPress admin bar for logged-in editors (the only selector that starts outside the widget) */
.admin-bar .mc-w-header .mc-mh { top: 32px; }
@media (max-width: 782px) { .admin-bar .mc-w-header .mc-mh { top: 46px; } }

/* Elementor editor only: the header is fixed, so the widget takes no height on the page and the editor marks it
   "empty" with a grey placeholder bar. Clicking the header still selects the widget, so the placeholder is not needed. */
.elementor-element.elementor-widget-mc-header.elementor-widget-empty { background-color: transparent; }
.elementor-element.elementor-widget-mc-header .elementor-widget-empty-icon { display: none; }

/* once the page moves, the header turns to frosted glass over the content; darker while the menu is open */
.mc-w-header .mc-mh.mc-sc,
.mc-w-header .mc-mh.mc-mo { background: rgba(0, 0, 0, .58); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: rgba(76, 67, 69, .7); }
.mc-w-header .mc-mh.mc-mo { background: rgba(0, 0, 0, .82); }

.mc-w-header .mc-mh-logo { display: block; line-height: 0; }
.mc-w-header .mc-mh-logo img { width: 17rem; max-width: 60vw; height: auto; display: block; }

/* the MENU button and the panel are used at every screen size */
.mc-w-header .mc-mh-burger { display: flex; align-items: center; gap: 12px; background: none; border: 1px solid var(--mc-border); border-radius: 0; color: var(--mc-white); cursor: pointer; padding: 10px 14px; font-family: var(--mc-font-mono); font-size: .75rem; line-height: 1; letter-spacing: .1em; transition: border-color .3s; }
.mc-w-header .mc-mh-burger b { font-weight: 400; }
.mc-w-header .mc-mh-burger:focus-visible { border-color: var(--mc-grey-text); outline: none; }
@media (hover: hover) { .mc-w-header .mc-mh-burger:hover { border-color: var(--mc-grey-text); background: none; } }
@media (hover: none) { .mc-w-header .mc-mh-burger:active { border-color: var(--mc-grey-text); background: none; } }
.mc-w-header .mc-mh-bars { position: relative; width: 20px; height: 14px; }
.mc-w-header .mc-mh-bars i { position: absolute; left: 0; right: 0; height: 2px; background: var(--mc-white); transition: transform .3s, opacity .3s, top .3s; }
.mc-w-header .mc-mh-bars i:nth-child(1) { top: 0; }
.mc-w-header .mc-mh-bars i:nth-child(2) { top: 6px; background: var(--mc-red); }
.mc-w-header .mc-mh-bars i:nth-child(3) { top: 12px; }
.mc-w-header .mc-mh-burger[aria-expanded="true"] .mc-mh-bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mc-w-header .mc-mh-burger[aria-expanded="true"] .mc-mh-bars i:nth-child(2) { opacity: 0; }
.mc-w-header .mc-mh-burger[aria-expanded="true"] .mc-mh-bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* the panel */
.mc-w-header .mc-mh-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 72px); overflow-y: auto; background: #0b0b0b; border-top: 2px solid var(--mc-red); border-bottom: 1px solid var(--mc-border); padding: 8px 4% 28px; display: flex; flex-direction: column; }
.mc-w-header .mc-mh-panel[hidden] { display: none; }
.mc-w-header .mc-mh-p { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--mc-grid-major); text-decoration: none; color: var(--mc-white); font-family: var(--mc-font-head); font-size: 1.35rem; font-weight: 500; font-style: italic; letter-spacing: .1rem; text-transform: uppercase; transition: color .25s ease, padding-left .25s ease; }
.mc-w-header .mc-mh-p.mc-on { color: var(--mc-red); }
.mc-w-header .mc-mh-p span { font-family: var(--mc-font-mono); font-style: normal; font-size: .7rem; color: var(--mc-grey-quiet); transition: color .25s ease; }
.mc-w-header .mc-mh-p::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--mc-red); transition: width .25s ease; }
.mc-w-header .mc-mh-group { padding: 14px 0 6px; border-bottom: 1px solid var(--mc-grid-major); }
.mc-w-header .mc-mh-glabel { margin: 0 0 4px; font-family: var(--mc-font-mono); font-size: .7rem; letter-spacing: .12em; color: var(--mc-grey-text); text-transform: uppercase; }
.mc-w-header .mc-mh-glabel.mc-on { color: var(--mc-red); }
.mc-w-header .mc-mh-group a { display: flex; align-items: center; gap: 14px; padding: 11px 0 11px 4px; text-decoration: none; color: var(--mc-white); font-family: var(--mc-font-head); font-size: 1.15rem; font-style: italic; letter-spacing: .08rem; text-transform: uppercase; transition: color .25s ease, padding-left .25s ease; }
.mc-w-header .mc-mh-group a::before { content: ""; width: 16px; height: 1px; background: var(--mc-red); flex: none; transition: width .25s ease; }
.mc-w-header .mc-mh-group a[aria-current="page"] { color: var(--mc-red); }
.mc-w-header .mc-mh-note { margin: 16px 0; font-family: var(--mc-font-mono); font-size: .75rem; color: var(--mc-grey-text); }
.mc-w-header .mc-mh-cta { align-self: flex-start; margin-top: 24px; display: inline-block; font-family: var(--mc-font-head); font-weight: 600; font-style: italic; font-size: 1.1rem; letter-spacing: 1px; color: var(--mc-white); text-decoration: none; padding: 12px 32px; background: var(--mc-red); border: solid var(--mc-red); border-width: 1px 0; clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%); transition: color .3s, background-color .3s; }

/* hover and focus: a red dash slides in and the item turns red */
.mc-w-header .mc-mh-p:focus-visible { color: var(--mc-red); padding-left: 28px; outline: none; }
.mc-w-header .mc-mh-p:focus-visible::before { width: 16px; }
.mc-w-header .mc-mh-p:focus-visible span { color: var(--mc-red); }
.mc-w-header .mc-mh-group a:focus-visible { color: var(--mc-red); padding-left: 12px; outline: none; }
.mc-w-header .mc-mh-group a:focus-visible::before { width: 24px; }
.mc-w-header .mc-mh-cta:focus-visible { background: transparent; color: var(--mc-red); }
@media (hover: hover) {
	.mc-w-header .mc-mh-p:hover { color: var(--mc-red); padding-left: 28px; }
	.mc-w-header .mc-mh-p:hover::before { width: 16px; }
	.mc-w-header .mc-mh-p:hover span { color: var(--mc-red); }
	.mc-w-header .mc-mh-group a:hover { color: var(--mc-red); padding-left: 12px; }
	.mc-w-header .mc-mh-group a:hover::before { width: 24px; }
	.mc-w-header .mc-mh-cta:hover { background: transparent; color: var(--mc-red); }
}
@media (hover: none) {
	.mc-w-header .mc-mh-p:active { color: var(--mc-red); padding-left: 28px; }
	.mc-w-header .mc-mh-p:active::before { width: 16px; }
	.mc-w-header .mc-mh-p:active span { color: var(--mc-red); }
	.mc-w-header .mc-mh-group a:active { color: var(--mc-red); padding-left: 12px; }
	.mc-w-header .mc-mh-group a:active::before { width: 24px; }
	.mc-w-header .mc-mh-cta:active { background: transparent; color: var(--mc-red); }
}

@media (max-width: 1024px) { .mc-w-header .mc-mh-logo img { width: 14rem; } }
/* phone: the menu fills the screen below the header, and the page behind it is held still */
@media (max-width: 767px) {
	.mc-w-header .mc-mh-panel { height: calc(100vh - 72px); height: calc(100dvh - 72px); max-height: none; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
	html.mc-lock,
	html.mc-lock body { overflow: hidden; }
}
@media (max-width: 400px) {
	.mc-w-header .mc-mh-logo img { width: 11.5rem; }
	.mc-w-header .mc-mh-burger b { display: none; }
}

/* back to top: a drawing-sheet square with red corner marks, shown once the visitor has scrolled down */
.mc-w-header .mc-mh-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 52px; height: 52px; padding: 0; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--mc-border); border-radius: 0; color: var(--mc-white); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease, border-color .3s ease; }
.mc-w-header .mc-mh-top::before,
.mc-w-header .mc-mh-top::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid var(--mc-red); }
.mc-w-header .mc-mh-top::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.mc-w-header .mc-mh-top::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.mc-w-header .mc-mh-top i { width: 11px; height: 11px; margin-top: 5px; border: solid var(--mc-white); border-width: 2px 0 0 2px; transform: rotate(45deg); }
.mc-w-header .mc-mh-top span { font-family: var(--mc-font-mono); font-size: .55rem; letter-spacing: .14em; color: var(--mc-grey-text); }
.mc-w-header .mc-mh-top.mc-on { opacity: 1; transform: none; pointer-events: auto; }
.mc-w-header .mc-mh-top:focus-visible { border-color: var(--mc-red); outline: none; }
@media (hover: hover) { .mc-w-header .mc-mh-top:hover { border-color: var(--mc-red); background: rgba(0, 0, 0, .72); } }
@media (hover: none) { .mc-w-header .mc-mh-top:active { border-color: var(--mc-red); background: rgba(0, 0, 0, .72); } }
.mc-w-header .mc-mh-top:active i { border-color: var(--mc-red); }
@media (min-width: 1025px) { .mc-w-header .mc-mh-top { right: 28px; bottom: 28px; } }
