/* 17 Nov (Shali: "fix navbar properly, fontbarcelona.com style"). Idea taken, not copied: a slim solid white bar
   (44 px), the wordmark exactly centred; on the left two small light-grey tags (Register your interest, sound);
   on the right plain mono-capital section links and a bare two-line menu icon. Same bar before and after scrolling.
   Tablets drop the section links, phones also the Register tag (the sticky bottom button covers it). */
:root { --nav-h: 44px; --nav-ink: #141414; --nav-tag: #efede9; --nav-tag-hover: #e4e1db; }
@media (max-width: 767px) { :root { --nav-h: 48px; } }

html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead::after, html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr::before { display: none !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr {
  position: relative !important; display: flex !important; align-items: center !important; gap: 4px !important;
  height: var(--nav-h) !important; min-height: var(--nav-h) !important; margin: 0 !important; width: auto !important; max-width: none !important;
  padding: 0 var(--hp-side, 25px) !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
/* centred wordmark */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo {
  position: absolute !important; left: 50% !important; top: 50% !important; translate: -50% -50% !important; transform: none !important;
  width: 176px !important; padding: 0 !important; margin: 0 !important; color: var(--nav-ink) !important; z-index: 2;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo :is(svg, img) { width: 176px !important; height: auto !important; display: block; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo .wm { color: var(--nav-ink) !important; }

/* the end group's children join the bar's own flow so they can sit left and right */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-end { display: contents !important; }

/* left tags: Register your interest, sound */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr :is(.hdr-cta, .hdr-sound) {
  order: 1; position: static !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
  height: 26px !important; min-height: 0 !important; width: auto !important; padding: 0 10px !important; margin: 0 !important;
  border: 0 !important; border-radius: 4px !important; background: var(--nav-tag) !important; color: var(--nav-ink) !important; box-shadow: none !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important; font-size: 11.5px !important; font-weight: 400 !important; line-height: 1 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important; white-space: nowrap; cursor: pointer;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-cta::after { display: none !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-sound { order: 2; width: 34px !important; padding: 0 !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-sound .snd-bars { height: 12px; gap: 2px; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-sound .snd-bars i { height: 12px; width: 1.5px; }
@media (hover: hover) and (pointer: fine) {
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr :is(.hdr-cta, .hdr-sound):hover { background: var(--nav-tag-hover) !important; color: var(--nav-ink) !important; }
}

/* right: section links, then the menu icon */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav {
  order: 3; display: flex !important; align-items: center !important; gap: 24px !important; margin: 0 22px 0 auto !important; padding: 0 !important;
  list-style: none !important; flex: none !important; justify-content: flex-end !important; border: 0 !important; background: none !important; position: static !important; transform: none !important;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav .hdr-item:empty { display: none !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav :is(.hdr-item, a, .nav-t) {
  padding: 0 !important; margin: 0 !important; min-height: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important; font-size: 11.5px !important; font-weight: 400 !important; line-height: 1 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--nav-ink) !important; white-space: nowrap;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav :is(.hdr-item, a, .nav-t)::before,
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav :is(.hdr-item, a, .nav-t)::after { display: none !important; content: none !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav a { display: inline-block !important; padding: 6px 0 !important; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav a:hover { text-decoration: underline !important; }
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle {
  order: 4; position: static !important; display: inline-grid !important; place-items: center !important; width: 28px !important; height: 28px !important; min-height: 0 !important;
  padding: 0 !important; margin: 0 0 0 auto !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; color: var(--nav-ink) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav + .hdr-end .mobile-nav-toggle,
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle { margin-left: 0 !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle .menu-glyph span { background: var(--nav-ink) !important; }

/* the hero panel starts right under the bar */
:root { --hp-top: var(--nav-h); }

@media (max-width: 1023px) {
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav { display: none !important; }
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle { margin-left: auto !important; }
}
@media (max-width: 767px) {
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-cta { display: none !important; }
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo,
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo :is(svg, img) { width: 150px !important; }
}

/* ===== 17 Nov (Shali: "exactly same style navbar, same style hero"), measured on fontbarcelona.com/en at 1440 x 900
   and 390 x 844: bar 43 px (56 px phones); hero box inset 9 px left, right and bottom (12 / 13 px phones), starting at
   the bar's foot; tags #F2F2F2, square, 25 px tall, 5.25 / 7.5 px padding, 11 px mono capitals; links 11 px; menu a
   23 px #F2F2F2 square; wordmark centred. */
:root { --nav-h: 43px; --nav-tag: #f2f2f2; --nav-tag-hover: #e6e6e6; --hp-side: 9px; --hp-foot: 9px; --hp-top: 43px; }
@media (max-width: 767px) { :root { --nav-h: 56px; --hp-side: 12px; --hp-foot: 13px; --hp-top: 56px; } }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr { padding: 0 9px !important; gap: 4px !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr :is(.hdr-cta, .hdr-sound) {
  height: 25px !important; padding: 0 7.5px !important; border-radius: 0 !important; background: #f2f2f2 !important;
  font-size: 11px !important; letter-spacing: .04em !important;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-sound { width: 30px !important; padding: 0 !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav { gap: 24px !important; margin-right: 24px !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-nav :is(.hdr-item, a, .nav-t) { font-size: 11px !important; letter-spacing: .04em !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle {
  width: 23px !important; height: 23px !important; min-width: 0 !important; background: #f2f2f2 !important; border-radius: 0 !important;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle .menu-glyph { width: 11px !important; gap: 3px !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle .menu-glyph span { width: 11px !important; height: 1px !important; }
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo,
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo :is(svg, img) { width: 150px !important; }
@media (max-width: 767px) {
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr { padding: 0 12px !important; }
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo,
  html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo :is(svg, img) { width: 140px !important; }
}
/* sound tag reads "SOUND" like the other tags; its small bars follow and move while music plays */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-sound { width: auto !important; padding: 0 7.5px !important; gap: 6px !important; }
.masthead .hdr .hdr-sound .snd-label { display: inline-block; }
/* menu icon: two 11 px lines, centred in the 23 px square */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle .menu-glyph {
  position: static !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important;
  width: 11px !important; height: 7px !important; gap: 4px !important; margin: 0 !important; transform: none !important; inset: auto !important;
}
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .mobile-nav-toggle .menu-glyph span {
  position: static !important; display: block !important; width: 11px !important; height: 1px !important; margin: 0 !important; transform: none !important; inset: auto !important; translate: none !important;
}

/* ===== menu panel (fontbarcelona.com style): white, slides down from the top (0.5 s, cubic-bezier(.645,.045,.355,1)),
   413 px tall on desktop with the page visible below; top row = centred wordmark + grey close square at the menu
   square's place; links 22 px mono capitals, line 34.8 px, two columns (second at 37.65% of the width); a small
   11 px row at the foot. Phones: full screen, one column at 24 px. Old reveal (clip-path rim) switched off. */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel {
  position: fixed !important; inset: 0 0 auto 0 !important; width: 100% !important; max-width: none !important; height: 413px !important; max-height: none !important;
  margin: 0 !important; padding: 78px 9px 9px !important; border: 0 !important; border-radius: 0 !important; background: #fff !important; color: #000 !important;
  display: flex !important; flex-direction: column !important; overflow: auto !important; box-shadow: none !important;
  clip-path: none !important; transform: translateY(-100%); transition: transform .5s cubic-bezier(.645, .045, .355, 1) !important; visibility: visible !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel:not([open]) { display: none !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel.is-open { transform: none; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel::before, html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel::after { display: none !important; }
dialog#mobile-nav-panel::backdrop { background: transparent !important; backdrop-filter: none !important; }
@media (prefers-reduced-motion: reduce) { html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel { transition: none !important; } }

/* top row */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-top { position: absolute !important; inset: 0 0 auto 0 !important; height: var(--nav-h) !important; margin: 0 !important; padding: 0 !important; display: block !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-logo { position: absolute !important; left: 50% !important; top: 50% !important; translate: -50% -50% !important; width: 150px !important; padding: 0 !important; margin: 0 !important; color: #141414 !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-logo :is(svg, img) { width: 150px !important; height: auto !important; display: block; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-logo .wm { color: #141414 !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close {
  position: absolute !important; right: 9px !important; top: 10px !important; left: auto !important; width: 23px !important; height: 23px !important; min-height: 0 !important;
  display: grid !important; place-items: center !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: #f2f2f2 !important; color: #000 !important; box-shadow: none !important; opacity: 1 !important; transform: none !important; cursor: pointer;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close .menu-glyph { position: relative !important; display: block !important; width: 11px !important; height: 11px !important; margin: 0 !important; inset: auto !important; transform: none !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close .menu-glyph span { position: absolute !important; left: 0 !important; top: 5px !important; width: 11px !important; height: 1px !important; margin: 0 !important; background: #000 !important; translate: none !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close .menu-glyph span:first-child { transform: rotate(45deg) !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close .menu-glyph span:last-child { transform: rotate(-45deg) !important; }

/* links */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links {
  display: grid !important; grid-template-columns: calc(37.65vw - 9px) 1fr !important; grid-template-rows: repeat(3, auto) !important; grid-auto-flow: column !important;
  gap: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; position: static !important; transform: none !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links a {
  justify-self: start; display: inline-block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important; font-size: 22px !important; line-height: 34.8px !important; font-weight: 400 !important; letter-spacing: 0 !important;
  text-transform: uppercase !important; color: #000 !important; opacity: 1 !important; filter: none !important; transform: none !important; text-decoration: none !important; text-underline-offset: 5px;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links a::before, html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links a::after { display: none !important; }
@media (hover: hover) and (pointer: fine) { html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links a:hover { text-decoration: underline !important; text-decoration-thickness: 1px !important; } }

/* foot row */
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot {
  display: flex !important; align-items: baseline !important; gap: 0 !important; margin: auto 0 18px !important; padding: 0 !important; border: 0 !important; position: static !important;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot .menu-label-mask { display: inline-block !important; overflow: visible !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot .menu-label-mask:first-child { width: calc(37.65vw - 9px) !important; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot :is(.mnav-cta, .mnav-meta) {
  display: inline !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; min-height: 0 !important; box-shadow: none !important;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important; font-size: 11px !important; line-height: 18.3px !important; font-weight: 400 !important; letter-spacing: 0 !important;
  text-transform: uppercase !important; color: #000 !important; opacity: 1 !important; transform: none !important; filter: none !important; cursor: pointer;
}
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot .mnav-cta { text-decoration: underline !important; text-underline-offset: 3px; }
html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot .mnav-meta { color: #7f7f7f !important; cursor: default; }

@media (max-width: 767px) {
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) dialog#mobile-nav-panel { height: 100dvh !important; padding: 109px 12px 12px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-close { right: 12px !important; top: 17px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-logo, html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-logo :is(svg, img) { width: 140px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links { grid-template-columns: 1fr !important; grid-template-rows: none !important; grid-auto-flow: row !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-links a { font-size: 24px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; margin-bottom: 30px !important; }
  html[lang] body:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) #mobile-nav-panel .mnav-foot .menu-label-mask:first-child { width: auto !important; }
}

/* the centred wordmark stays visible on every screen and scroll position (an older phone rule faded it out) */
html[lang] body:not(.yl-detail-page):not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) .masthead .hdr .hdr-logo { opacity: 1 !important; visibility: visible !important; transform: none !important; }
