.mw-material-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin: 16px 0;
}

.mw-material-search .mw-field {
    flex: 1 1 240px;
    min-width: 0;
}

.mw-material-search input {
    width: 100%;
    min-width: 0;
}

/* ============================================================
   MusicWeave — design system pubblico
   Ispirazione: progetto di riferimento (dark elegance, antique gold).
   Font: Space Grotesk (Google Fonts, caricata nel layout).
   ============================================================ */

:root {
  --mw-bg: #0A121F;
  --mw-card: #121B29;
  --mw-card-2: #1B2433;
  --mw-surface: #121B29;
  --mw-surface-2: #1B2433;
  --mw-ink: #050910;
  --mw-gold: #C5953C;
  --mw-gold-bright: #CFA354;
  --mw-gold-dark: #B5820C;
  --mw-gold-soft: rgba(197, 149, 60, 0.1);
  --mw-gold-softer: rgba(197, 149, 60, 0.05);
  --mw-border: rgba(197, 149, 60, 0.18);
  --mw-border-strong: rgba(197, 149, 60, 0.4);
  --mw-fg: #F5F1EA;
  --mw-muted: #8E99AB;
  --mw-font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mw-font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mw-radius: 14px;
  --mw-shadow: 0 25px 50px -12px rgba(4, 9, 16, 0.55);
  --mw-navbar-height: 82px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mw-bg);
  color: var(--mw-fg);
  font-family: var(--mw-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mw-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--mw-fg);
  margin: 0;
}

a { color: var(--mw-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--mw-gold-bright); }

img { max-width: 100%; }

::selection { background: var(--mw-gold); color: var(--mw-bg); }

:focus-visible {
  outline: 2px solid var(--mw-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.mw-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mw-container--wide { max-width: 1280px; }
.mw-container--narrow { max-width: 900px; }
.mw-container--tight { max-width: 760px; }

/* ---------- navbar ---------- */

.mw-navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}

.mw-navbar.is-scrolled {
  background: rgba(10, 18, 31, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--mw-border);
}

.mw-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.mw-brand {
  font-family: var(--mw-font-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mw-fg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.mw-brand:hover { color: var(--mw-gold-bright); }
.mw-wepeople-name { white-space: nowrap; text-transform: none; }
.mw-wepeople-name__we { display: inline-block; color: var(--mw-gold-bright); font-style: italic; margin-right: 0.065em; }
.mw-brand-logo { display: block; width: auto; height: 32px; max-width: 100%; flex-shrink: 0; object-fit: contain; }
.mw-brand__mark {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.mw-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.35vw, 22px);
}

.mw-nav a {
  font-family: var(--mw-font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mw-muted);
  white-space: nowrap;
}

.mw-nav a:hover, .mw-nav a.is-active { color: var(--mw-gold); }

.mw-nav a.mw-nav__catalog {
  padding: 8px 14px;
  border: 1px solid var(--mw-gold);
  border-radius: 9px;
  background: var(--mw-gold);
  color: var(--mw-bg);
  font-weight: 700;
}

.mw-nav a.mw-nav__catalog:hover,
.mw-nav a.mw-nav__catalog.is-active {
  border-color: var(--mw-gold-bright);
  background: var(--mw-gold-bright);
  color: var(--mw-bg);
  box-shadow: 0 7px 18px rgba(197, 149, 60, 0.22);
}

.mw-nav-menu,
.mw-account-menu { position: relative; }

.mw-nav-menu summary,
.mw-account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.mw-nav-menu summary::-webkit-details-marker,
.mw-account-menu summary::-webkit-details-marker,
.mw-mobile-menu__group summary::-webkit-details-marker { display: none; }

.mw-nav-menu summary {
  color: var(--mw-muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.mw-nav-menu summary:hover,
.mw-nav-menu summary.is-active { color: var(--mw-gold); }

.mw-nav-menu summary svg,
.mw-account-menu summary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

.mw-nav-menu[open] summary svg,
.mw-account-menu[open] summary svg { transform: rotate(180deg); }

.mw-nav-menu__panel,
.mw-account-menu__panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 12px;
  background: rgba(10, 18, 31, 0.98);
  box-shadow: var(--mw-shadow);
  backdrop-filter: blur(14px);
}

.mw-nav-menu__panel { left: -14px; }
.mw-account-menu__panel { right: 0; }

.mw-nav-menu__panel a,
.mw-account-menu__panel a,
.mw-account-menu__panel button {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mw-muted);
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}

.mw-nav-menu__panel a:hover,
.mw-nav-menu__panel a.is-active,
.mw-account-menu__panel a:hover,
.mw-account-menu__panel button:hover { background: var(--mw-gold-soft); color: var(--mw-gold-bright); }

.mw-navbar__desktop-auth { display: flex; }
.mw-account-menu summary { max-width: 210px; }
.mw-account-menu summary:not(.is-active) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-account-menu__status { display: block; padding: 8px 12px 10px; color: var(--mw-muted); font-size: 11.5px; line-height: 1.45; }
.mw-account-menu__status strong { display: block; color: var(--mw-fg); font-weight: 600; }
.mw-account-menu__panel form { margin: 0; border-top: 1px solid var(--mw-border); padding-top: 5px; }

.mw-navbar__actions { display: flex; align-items: center; gap: 14px; }

.mw-navbar-search { position: relative; display: flex; align-items: center; }

.mw-navbar-search__toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--mw-border-strong);
  border-radius: 50%;
  background: rgba(197, 149, 60, 0.08);
  color: var(--mw-gold-bright);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mw-navbar-search__toggle::-webkit-details-marker { display: none; }

.mw-navbar-search__toggle:hover,
.mw-navbar-search__toggle:focus-visible,
.mw-navbar-search[open] .mw-navbar-search__toggle,
.mw-navbar-search.is-open .mw-navbar-search__toggle {
  border-color: var(--mw-gold-bright);
  background: rgba(197, 149, 60, 0.16);
  color: var(--mw-gold-bright);
  box-shadow: 0 8px 24px rgba(197, 149, 60, 0.18);
}

.mw-navbar-search__toggle svg,
.mw-navbar-search__note svg { display: block; width: 22px; height: 22px; fill: currentColor; }

.mw-navbar-search__toggle--link { text-decoration: none; }

.mw-navbar-search--desktop .mw-navbar-search__panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 9px);
  width: min(330px, calc(100vw - 390px));
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.mw-navbar-search--desktop[open] .mw-navbar-search__panel,
.mw-navbar-search--desktop.is-open .mw-navbar-search__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.mw-navbar-search__panel .mw-field { margin: 0; min-width: 0; }

.mw-navbar-search__panel input[type='search'] {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 10px;
  outline: none;
  background: rgba(10, 18, 31, 0.98);
  color: var(--mw-fg);
  font: inherit;
  font-size: 13.5px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.3);
}

.mw-navbar-search__panel input[type='search']:focus {
  border-color: var(--mw-gold-bright);
  box-shadow: 0 0 0 3px var(--mw-gold-soft), 0 15px 34px rgba(0, 0, 0, 0.3);
}

.mw-navbar-search--desktop .mw-autocomplete__list { right: 0; left: auto; }

.mw-navbar-search--mobile { display: none; }

.mw-navbar-search__note {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--mw-gold-bright);
}

.mw-navbar-search__toggle--mobile {
  display: none;
  width: 100%;
  height: auto;
  min-height: 44px;
  grid-template-columns: 34px minmax(0, 1fr);
  justify-items: start;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* lingua */

.mw-locale {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  padding: 4px 4px;
  font-size: 12px;
}

.mw-locale__sep {
  width: 1px;
  height: 12px;
  background: var(--mw-border);
}

.mw-locale form { margin: 0; }

.mw-locale button {
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--mw-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.mw-locale button:hover { color: var(--mw-gold-bright); }
.mw-locale button[aria-current='true'] { background: var(--mw-gold); color: var(--mw-bg); }

/* burger */

.mw-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  color: var(--mw-fg);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mw-burger svg { width: 20px; height: 20px; }

.mw-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--mw-border);
  background: var(--mw-bg);
}

.mw-mobile-menu.is-open { display: flex; }

.mw-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--mw-muted);
  padding: 10px 4px;
}

.mw-mobile-menu a.is-active, .mw-mobile-menu a:hover { color: var(--mw-gold); }

.mw-mobile-menu .mw-btn { margin-top: 10px; justify-content: center; }
.mw-mobile-menu a.mw-btn--primary,
.mw-mobile-menu button.mw-btn--primary { color: var(--mw-bg); }
.mw-mobile-menu a.mw-btn--primary:hover,
.mw-mobile-menu button.mw-btn--primary:hover { color: var(--mw-bg); }

.mw-mobile-menu .mw-locale { margin-top: 14px; align-self: flex-start; }

.mw-mobile-menu a.mw-mobile-menu__catalog {
  margin: 6px 0;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--mw-gold);
  color: var(--mw-bg);
  font-weight: 700;
  text-align: center;
}

.mw-mobile-menu__group { border-bottom: 1px solid var(--mw-border); }
.mw-mobile-menu__group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px; color: var(--mw-muted); font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.mw-mobile-menu__group summary svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.mw-mobile-menu__group[open] summary svg { transform: rotate(180deg); }
.mw-mobile-menu__group summary.is-active { color: var(--mw-gold); }
.mw-mobile-menu__group a { display: block; padding-left: 22px; }
.mw-mobile-account { display: grid; gap: 7px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--mw-border); }
.mw-mobile-account > span { padding: 0 4px; color: var(--mw-muted); font-size: 12px; }
.mw-mobile-account > span strong { color: var(--mw-fg); }
.mw-mobile-account form { margin: 0; }
.mw-mobile-account .mw-btn { width: 100%; }

/* ---------- bottoni ---------- */

.mw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--mw-font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.mw-btn:hover { text-decoration: none; }

.mw-btn--primary {
  background: var(--mw-gold);
  color: var(--mw-bg);
}

.mw-btn--primary:hover {
  background: var(--mw-gold-bright);
  color: var(--mw-bg);
  box-shadow: 0 8px 24px rgba(197, 149, 60, 0.35);
}

.mw-btn--outline {
  border-color: var(--mw-border-strong);
  color: var(--mw-gold);
}

.mw-btn--outline:hover {
  background: var(--mw-gold-soft);
  color: var(--mw-gold-bright);
}

.mw-btn--ghost { color: var(--mw-muted); border-color: transparent; }
.mw-btn--ghost:hover { color: var(--mw-gold); background: var(--mw-gold-soft); }

.mw-btn--lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.mw-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

.mw-btn__arrow { display: inline-block; transition: transform 0.2s ease; }
.mw-btn:hover .mw-btn__arrow { transform: translateX(3px); }

.mw-btn[disabled], .mw-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.mw-btn--gold {
  background: var(--mw-gold);
  color: var(--mw-bg);
}

.mw-btn--gold:hover {
  background: var(--mw-gold-bright);
  color: var(--mw-bg);
  box-shadow: 0 8px 24px rgba(197, 149, 60, 0.35);
}

/* ---------- barra filtri (performances) ---------- */

.mw-filters {
  margin: 44px 0 34px;
}

.mw-filters__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 18px;
  background: var(--mw-surface);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.mw-field {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mw-field__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-field__input,
.mw-field__select {
  width: 100%;
  background: var(--mw-surface-2);
  border: 1px solid var(--mw-border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: var(--mw-font-body);
  font-size: 14.5px;
  color: var(--mw-fg);
}

.mw-field__input::placeholder { color: var(--mw-muted); opacity: 0.8; }

.mw-field__input:focus,
.mw-field__select:focus {
  outline: none;
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 3px var(--mw-gold-soft);
}

.mw-field__select { appearance: auto; -webkit-appearance: auto; }
.mw-field__select option { background: var(--mw-surface); color: var(--mw-fg); }

.mw-filters__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- hero ---------- */

.mw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

.mw-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mw-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.mw-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 18, 31, 0.72) 0%, rgba(10, 18, 31, 0.4) 50%, var(--mw-bg) 100%),
    linear-gradient(to right, rgba(10, 18, 31, 0.7) 0%, transparent 45%, transparent 60%, rgba(10, 18, 31, 0.7) 100%);
}

.mw-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 860px;
  text-align: center;
  margin: 0 auto;
}

.mw-hero__title {
  font-size: clamp(56px, 9vw, 108px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mw-fg);
}
.mw-hero__title .mw-brand-name { white-space: nowrap; }

.mw-hero__subline {
  margin-top: 10px;
  font-family: var(--mw-font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-style: italic;
  color: var(--mw-gold);
  line-height: 1.25;
}

.mw-hero__copy {
  margin: 22px auto 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mw-muted);
}

.mw-hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.mw-hero__actions .mw-btn { white-space: nowrap; }

.mw-hero__stats {
  margin-top: 56px;
  border-top: 1px solid var(--mw-border);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.mw-stat__value {
  font-family: var(--mw-font-heading);
  font-size: 42px;
  font-weight: 600;
  color: var(--mw-gold);
  line-height: 1.2;
}

.mw-hero__stats .mw-stat {
  min-width: 0;
  container-type: inline-size;
}

.mw-hero__stats .mw-stat__value {
  font-size: clamp(22px, 18cqi, 36px);
  font-variant-numeric: tabular-nums;
}

.mw-stat__label {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--mw-muted);
}

/* ---------- badge / pill ---------- */

.mw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--mw-border-strong);
  background: var(--mw-gold-soft);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mw-gold);
  margin-bottom: 26px;
}

.mw-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mw-gold);
  flex-shrink: 0;
}

/* ---------- sezioni ---------- */

.mw-section { padding: 92px 0; }
.mw-section--tint { background: var(--mw-card-2); }
.mw-section--ink { background: var(--mw-ink); }
.mw-section--quiet { background: linear-gradient(to bottom, var(--mw-bg), rgba(18, 27, 41, 0.5)); }

.mw-section--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mw-section-head { max-width: 760px; margin-bottom: 56px; }
.mw-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.mw-section-head--split { margin-bottom: 0; }

.mw-eyebrow {
  display: block;
  font-family: var(--mw-font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mw-gold);
  margin-bottom: 14px;
}

.mw-section-title {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.mw-section-intro {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--mw-muted);
  text-wrap: balance;
}

/* ---------- card ---------- */

.mw-card {
  background: rgba(18, 27, 41, 0.55);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mw-card--hover:hover {
  border-color: var(--mw-border-strong);
  background: rgba(18, 27, 41, 0.85);
  box-shadow: var(--mw-shadow);
}

.mw-card--pad-lg { padding: 38px; }

.mw-card__title { font-size: 25px; font-weight: 600; margin-bottom: 10px; }
.mw-card__lead { font-size: 16px; line-height: 1.7; color: var(--mw-muted); }

.mw-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--mw-border);
  background: var(--mw-gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  color: var(--mw-gold);
  flex-shrink: 0;
}

.mw-grid { display: grid; gap: 22px; }
.mw-grid--4 { grid-template-columns: repeat(4, 1fr); }
.mw-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mw-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- feature card (solution) ---------- */

.mw-feature { display: flex; flex-direction: column; gap: 16px; }

.mw-feature__title { font-size: 22px; font-weight: 600; }

/* ---------- product overview ---------- */

.mw-product-card {
  min-height: 310px;
  color: inherit;
}

.mw-product-card:hover { color: inherit; transform: translateY(-4px); }
.mw-product-card .mw-card__lead { flex: 1; margin: 0; }

.mw-product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mw-gold);
  font-size: 13.5px;
  font-weight: 700;
}

.mw-product-card:hover .mw-product-card__link { color: var(--mw-gold-bright); }

.mw-connection-flow {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-connection-flow li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  background: rgba(10, 18, 31, 0.42);
}

.mw-connection-flow__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--mw-border-strong);
  border-radius: 50%;
  color: var(--mw-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.mw-connection-flow h3 { margin: 0 0 5px; font-size: 19px; font-weight: 600; }
.mw-connection-flow p { margin: 0; color: var(--mw-muted); font-size: 14px; line-height: 1.65; }

.mw-overview-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mw-border);
  border-radius: 16px;
  background: var(--mw-border);
}

.mw-overview-metrics .mw-stat { min-width: 0; padding: 24px 18px; background: var(--mw-ink); }
.mw-overview-metrics .mw-stat__value { font-size: clamp(24px, 2.5vw, 34px); font-variant-numeric: tabular-nums; }
.mw-overview-data-action { margin-top: 36px; text-align: center; }

/* ---------- quote ---------- */

.mw-quote {
  margin-top: 34px;
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  background: var(--mw-gold-softer);
  padding: 22px 26px;
  font-family: var(--mw-font-heading);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  color: var(--mw-gold);
}

.mw-quote cite { display: block; margin-top: 10px; font-family: var(--mw-font-body); font-style: normal; font-size: 13px; color: var(--mw-muted); }

/* ---------- panels with bullet list ---------- */

.mw-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.mw-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--mw-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.mw-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mw-gold);
  flex-shrink: 0;
  margin-top: 10px;
  opacity: 0.85;
}

.mw-list--checks li::before { border-radius: 50%; background: transparent; border: 1.5px solid var(--mw-gold); width: 18px; height: 18px; margin-top: 2px; opacity: 1; }

/* ---------- how it works ---------- */

.mw-example { display: flex; flex-direction: column; gap: 16px; }

.mw-example__label {
  font-family: var(--mw-font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

.mw-example__name { font-size: 20px; font-weight: 600; color: var(--mw-fg); }

.mw-examplebox {
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  background: rgba(10, 18, 31, 0.5);
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--mw-muted);
}

.mw-examplebox__tag {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mw-gold);
}

.mw-example__arrow {
  align-self: center;
  color: var(--mw-gold);
  opacity: 0.7;
  font-size: 20px;
}

/* ---------- tech demo ---------- */

.mw-arch { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }

.mw-arch__row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.mw-arch__name { font-family: var(--mw-font-heading); font-size: 22px; font-weight: 600; }

.mw-arch__role {
  font-size: 12px;
  border: 1px solid var(--mw-border);
  color: var(--mw-gold);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.mw-arch__meta { color: var(--mw-muted); font-size: 14px; }

.mw-data-panel {
  margin-top: 28px;
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  background: var(--mw-gold-softer);
  padding: 24px;
}

.mw-data-panel__title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mw-gold);
  margin-bottom: 18px;
}

.mw-data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.mw-data-grid .mw-stat__value { font-size: 30px; }

/* ---------- vision / steps ---------- */

.mw-step { display: flex; flex-direction: column; gap: 12px; }

.mw-step__period {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mw-gold);
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  padding: 5px 14px;
}

.mw-card--now { border-color: var(--mw-border-strong); background: var(--mw-gold-soft); }

/* ---------- FAQ ---------- */

.mw-faq { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }

.mw-faq details {
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  background: rgba(18, 27, 41, 0.55);
  padding: 0 24px;
  transition: border-color 0.25s ease;
}

.mw-faq details[open] { border-color: var(--mw-border-strong); }

.mw-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  font-family: var(--mw-font-heading);
  font-size: 19.5px;
  font-weight: 500;
  color: var(--mw-fg);
}

.mw-faq summary::-webkit-details-marker { display: none; }
.mw-faq summary:hover { color: var(--mw-gold); }
.mw-faq__question { min-width: 0; overflow-wrap: anywhere; }

.mw-faq__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--mw-gold);
  transition: transform 0.25s ease;
}

.mw-faq details[open] .mw-faq__chevron { transform: rotate(180deg); }

.mw-faq__body {
  padding-bottom: 22px;
  color: var(--mw-muted);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 720px;
}

/* ---------- hero delle pagine catalogo ---------- */

.mw-page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 36px;
}

.mw-page-hero::before,
.mw-page-hero::after {
  content: '';
  position: absolute;
  left: -8%;
  width: 116%;
  height: 92px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 13px, rgba(197, 149, 60, 0.56) 14px 15px);
  opacity: 0.2;
}

.mw-page-hero::before { top: 34%; transform: rotate(-4deg); }
.mw-page-hero::after { top: 70%; transform: rotate(3deg); opacity: 0.1; }

.mw-page-hero__head {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.mw-page-title {
  font-size: clamp(42px, 5.5vw, 62px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.mw-page-lead { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--mw-muted); }

.mw-page-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.mw-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 12.5px;
  color: var(--mw-muted);
  background: rgba(18, 27, 41, 0.4);
}

.mw-chip--gold { color: var(--mw-gold); border-color: var(--mw-border-strong); }
.mw-chip a { color: inherit; }
.mw-chip a:hover { color: var(--mw-gold); }

/* ---------- filtri ---------- */

.mw-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 44px 0 30px; }

.mw-filter__row { display: flex; gap: 12px; width: 100%; }

.mw-filter__row .mw-field { flex: 1; }

.mw-filter__row .mw-field:last-child { flex: 0 1 auto; }

.mw-filter .mw-field {
  position: relative;
}

.mw-field select,
.mw-field input {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(18, 27, 41, 0.6);
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  color: var(--mw-fg);
  font-family: var(--mw-font-body);
  font-size: 14.5px;
  padding: 11px 38px 11px 14px;
  min-height: 46px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-field select:focus,
.mw-field input[type='text']:focus {
  outline: none;
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 3px var(--mw-gold-soft);
}

.mw-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C5953C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.mw-field select option {
  background: var(--mw-card);
  color: var(--mw-fg);
  font-family: var(--mw-font-body);
}

.mw-field input::placeholder { color: var(--mw-muted); opacity: 0.8; }

.mw-field input[type='text'] {
  width: 260px;
}

.mw-field input[type='text'] { appearance: auto; -webkit-appearance: auto; }

.mw-field input:disabled, .mw-field select:disabled { opacity: 0.5; pointer-events: none; }

.mw-autocomplete { position: relative; }
.mw-autocomplete:focus-within { z-index: 20; }

.mw-autocomplete__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: auto;
  left: 0;
  width: max(100%, 380px);
  max-width: min(460px, calc(100vw - 32px));
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 11px;
  background: #101a29;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.mw-autocomplete__option {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border-radius: 8px;
  color: var(--mw-fg);
  cursor: pointer;
}

.mw-autocomplete__option:hover,
.mw-autocomplete__option.is-active {
  color: var(--mw-gold-bright);
  background: var(--mw-gold-soft);
}

.mw-autocomplete__label {
  width: 100%;
  color: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mw-autocomplete__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(198, 161, 91, .48);
  border-radius: 50%;
  color: var(--mw-gold-bright);
  background: rgba(198, 161, 91, .08);
  font-size: 14px;
}

.mw-autocomplete__option--with-icon {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}

.mw-autocomplete__option--with-icon .mw-autocomplete__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.mw-autocomplete__option--with-icon .mw-autocomplete__label,
.mw-autocomplete__option--with-icon .mw-autocomplete__meta {
  grid-column: 2;
}

.mw-autocomplete__meta {
  color: var(--mw-muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.mw-filter__actions { display: flex; gap: 10px; }

.mw-filter__note { width: 100%; font-size: 13px; color: var(--mw-muted); }

.mw-connection-filter {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--mw-border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(197, 149, 60, 0.07), transparent 42%),
    rgba(12, 19, 30, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.mw-connection-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--mw-border);
}

.mw-connection-filter__title {
  color: var(--mw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mw-connection-filter__hint {
  color: var(--mw-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.mw-connection-filter__options {
  display: grid;
  gap: 1px;
  background: var(--mw-border);
}

.mw-connection-filter__options--6 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(190px, 1.35fr);
}

.mw-connection-filter__options--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(230px, 1.35fr);
}

.mw-connection-filter__options--5 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(190px, 1.35fr);
}

.mw-connection-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 15px;
  color: var(--mw-muted);
  background: rgba(12, 19, 30, 0.96);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.mw-connection-option:hover {
  color: var(--mw-fg);
  background: rgba(24, 34, 49, 0.98);
}

.mw-connection-option:has(input:focus-visible) {
  outline: 2px solid var(--mw-gold);
  outline-offset: -3px;
}

.mw-connection-option:has(input:checked) {
  color: var(--mw-gold);
  background: rgba(197, 149, 60, 0.1);
}

.mw-connection-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mw-connection-option__mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
}

.mw-connection-option:has(input:checked) .mw-connection-option__mark {
  border-color: var(--mw-gold);
  background: var(--mw-gold);
}

.mw-connection-option:has(input:checked) .mw-connection-option__mark::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--mw-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mw-connection-option--all {
  color: var(--mw-fg);
  background: rgba(18, 27, 41, 0.98);
}

/* ---------- griglie catalogo ---------- */

.mw-catalog { margin-top: 8px; }

.mw-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mw-catalog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: rgba(18, 27, 41, 0.45);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.mw-catalog-card:hover {
  border-color: var(--mw-border-strong);
  background: rgba(18, 27, 41, 0.8);
  transform: translateY(-2px);
  box-shadow: var(--mw-shadow);
}

.mw-catalog-card--clickable { position: relative; cursor: pointer; }

.mw-catalog-card--clickable:focus-within {
  border-color: var(--mw-border-strong);
  background: rgba(18, 27, 41, 0.8);
  box-shadow: 0 0 0 2px rgba(201, 166, 93, 0.3), var(--mw-shadow);
}

.mw-catalog-card--clickable > .mw-catalog-card__title > a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.mw-catalog-card--clickable a,
.mw-catalog-card--clickable button {
  position: relative;
  z-index: 2;
}

.mw-catalog-card--clickable > .mw-catalog-card__title > a { position: static; }

.mw-lineage-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.mw-lineage-heading .mw-block__title { margin: 0; }

.mw-catalog-card__title {
  font-family: var(--mw-font-heading);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.mw-catalog-card__title a { color: var(--mw-fg); }
.mw-catalog-card__title a:hover { color: var(--mw-gold-bright); }

.mw-catalog-card__meta { font-size: 13.5px; color: var(--mw-muted); }

.mw-catalog-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.mw-catalog-card__context {
  display: grid;
  gap: 6px;
}

.mw-catalog-card__context-label {
  font-size: 11.5px;
  color: var(--mw-muted);
}

.mw-catalog-card__artists {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--mw-muted);
}

.mw-catalog-card__artists a {
  color: var(--mw-gold);
  text-decoration: none;
}

.mw-catalog-card__artists a:hover { text-decoration: underline; }

.mw-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mw-border);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--mw-muted);
  background: transparent;
}

.mw-tag--gold { color: var(--mw-gold); border-color: var(--mw-border-strong); }
.mw-tag--soft { background: var(--mw-gold-soft); color: var(--mw-gold); border-color: transparent; }

.mw-catalog-card__links {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

/* ---------- paginazione ---------- */

.mw-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--mw-border);
}

.mw-pagination a, .mw-pagination .mw-pagination__current {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mw-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.mw-pagination a:hover {
  border-color: var(--mw-border-strong);
  color: var(--mw-gold);
  background: var(--mw-gold-soft);
}

.mw-pagination .mw-pagination__current {
  background: var(--mw-gold);
  border-color: var(--mw-gold);
  color: var(--mw-bg);
}

.mw-pagination .mw-pagination__gap { color: var(--mw-muted); padding: 0 4px; }

/* ---------- dettaglio ---------- */

.mw-detail { display: flex; flex-direction: column; gap: 26px; }

.mw-block__title {
  font-family: var(--mw-font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mw-gold);
  margin-bottom: 18px;
}

.mw-rel-row {
  position: relative;
  padding-left: 18px;
  margin-bottom: 18px;
}

.mw-rel-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--mw-gold), rgba(197, 149, 60, 0.15));
}

.mw-rel-row__name { font-size: 15.5px; color: var(--mw-fg); font-weight: 500; }
.mw-rel-row__meta { font-size: 13.5px; color: var(--mw-muted); margin-top: 2px; }
.mw-program-timeline { margin: 22px 0 0; padding: 0; list-style: none; }
.mw-program-timeline .mw-rel-row:last-child { margin-bottom: 0; }
.mw-score-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mw-score-row__content { min-width: 0; }
.mw-score-collection { padding: 12px 0; border-bottom: 1px solid var(--mw-border); }
.mw-score-collection:last-child { border-bottom: 0; }
.mw-score-collection .mw-rel-row { margin: 0; }
.mw-score-collection__details { margin-top: 10px; }
.mw-score-collection__details summary { width: fit-content; cursor: pointer; color: var(--mw-gold); font-size: 13px; font-weight: 700; }
.mw-score-collection__section { margin-top: 14px; }
.mw-score-collection__section h3 { margin: 0 0 6px; font-size: 13px; color: var(--mw-fg); }
.mw-score-collection__section ul { margin: 0; padding-left: 20px; }
.mw-score-collection__section li { margin: 5px 0; overflow-wrap: anywhere; font-size: 13px; }
.mw-score-collection__section .mw-rel-row__meta { display: block; }
.mw-inline-cta {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 8px;
  color: var(--mw-gold);
  background: rgba(197, 149, 60, .07);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.mw-inline-cta:hover { border-color: var(--mw-gold); background: rgba(197, 149, 60, .13); transform: translateY(-1px); }
.mw-inline-cta:focus-visible { outline: 2px solid var(--mw-gold); outline-offset: 3px; }
.mw-rel-row--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mw-rel-row--action .mw-spotify-link { flex: 0 0 auto; margin-top: 0; }
.mw-page-actions { display: flex; justify-content: center; margin-top: 16px; }
.mw-page-actions .mw-spotify-link { margin-top: 0; }

.mw-rec {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  background: rgba(10, 18, 31, 0.35);
  margin-bottom: 12px;
}

.mw-rec__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--mw-border-strong);
  background: var(--mw-gold-soft);
  color: var(--mw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mw-rec__body { flex: 1; }
.mw-rec__name { font-size: 15px; font-weight: 500; color: var(--mw-fg); }
.mw-rec__meta { font-size: 13px; color: var(--mw-muted); margin-top: 2px; }
.mw-rec__note { font-size: 13.5px; color: var(--mw-muted); margin-top: 6px; line-height: 1.6; }

.mw-sourcelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.mw-sourcelist li {
  position: relative;
  padding-left: 18px;
  color: var(--mw-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.mw-sourcelist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mw-gold);
  opacity: 0.8;
}

.mw-sourcelist strong { color: var(--mw-fg); font-weight: 500; }

/* ---------- grafo ---------- */

.mw-graph {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 10px;
  padding: 12px;
  height: min(64vh, 640px);
  min-height: 460px;
  scroll-margin-top: calc(var(--mw-navbar-height) + 12px);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  background: var(--mw-ink);
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.mw-graph.is-dragging { cursor: grabbing; }
.mw-graph:fullscreen { width: 100%; height: 100dvh; min-height: 0; border-radius: 0; }

.mw-graph__viewport {
  position: relative;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.mw-graph.is-dragging svg { transition: none; will-change: transform; }
.mw-graph.is-locating svg { transition: none; }

.mw-graph svg {
  transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0);
  transform-origin: left top;
  transition: transform 0.25s ease-out;
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  shape-rendering: geometricPrecision;
  text-rendering: optimizeLegibility;
}

.mw-graph__toolbar {
  position: relative;
  grid-row: 1;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.mw-graph__depth-form { display: flex; align-items: end; gap: 8px; pointer-events: auto; }
.mw-graph__depth-form label { display: grid; gap: 4px; color: var(--mw-fg); font-size: 12px; }
.mw-graph__depth-form select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--mw-border-strong); border-radius: 8px; background: var(--mw-surface); color: var(--mw-fg); font: inherit; }
.mw-graph__depth-form .mw-btn { min-height: 44px; }

.mw-graph-search {
  flex: 0 0 auto;
  width: min(420px, 100%);
  padding: 8px 10px 7px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 12px;
  background: rgba(8, 15, 26, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: auto;
  user-select: text;
}

.mw-graph-search label {
  display: block;
  margin: 0 2px 5px;
  color: var(--mw-gold-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mw-graph-search input[type='search'] {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-color: rgba(197, 149, 60, 0.26);
  background: rgba(18, 27, 41, 0.86);
}

.mw-graph-search input[type='search']:focus {
  outline: none;
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 3px var(--mw-gold-soft);
}

.mw-graph-search__status {
  display: block;
  min-height: 14px;
  margin: 5px 2px 0;
  color: var(--mw-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.mw-graph__overview-link {
  flex: 0 0 auto;
  margin-bottom: 12px;
  color: var(--mw-gold-bright);
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
}

.mw-graph__overview-link:hover { color: var(--mw-fg); }

.mw-graph__edge { transition: opacity 0.2s ease, stroke-width 0.2s ease; }
.mw-graph__edge.is-focused,
.mw-graph__edge.is-located { opacity: 1 !important; stroke-width: 2.6; }

.mw-graph__node-name,
.mw-graph__node-meta {
  paint-order: stroke fill;
  stroke: rgba(8, 15, 26, 0.98);
  stroke-width: 3px;
  stroke-linejoin: round;
  text-decoration: none;
}

.mw-graph__node-group circle,
.mw-graph__node-group text { transition: fill 0.2s ease, filter 0.2s ease, stroke 0.2s ease; }

.mw-graph__node-group.is-focused circle,
.mw-graph__node-group.is-located circle {
  fill: var(--mw-gold-bright);
  stroke: #fff4d8;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 7px rgba(207, 163, 84, 0.92));
}

.mw-graph__node-group.is-focused text,
.mw-graph__node-group.is-located text {
  fill: #fff4d8;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: rgba(8, 15, 26, 0.9);
  stroke-width: 3px;
}

.mw-graph__controls {
  position: relative;
  grid-row: 3;
  justify-self: end;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 11px;
  background: rgba(8, 15, 26, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.mw-graph__control,
.mw-graph__zoom-level {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--mw-fg);
  background: transparent;
  font: 600 16px/1 var(--mw-font-body);
}

.mw-graph__control { cursor: pointer; }
.mw-graph__control:hover, .mw-graph__control:focus-visible { outline: none; color: var(--mw-gold-bright); background: var(--mw-gold-soft); }
.mw-graph__control:disabled { opacity: 0.35; cursor: default; }
.mw-graph__control--reset { width: auto; padding: 0 10px; font-size: 12px; }
.mw-graph__zoom-level { color: var(--mw-muted); font-size: 11px; }
.mw-graph-limit-note { margin: 0 0 12px; color: var(--mw-muted); font-size: 13px; line-height: 1.55; }
.mw-graph__loading { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; padding: 24px; text-align: center; background: rgba(8, 15, 26, .94); color: var(--mw-gold-bright); }
.mw-graph__loading[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mw-graph svg, .mw-graph__edge { transition: none; } }

.mw-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--mw-muted); }

.mw-legend__item { display: inline-flex; align-items: center; gap: 8px; }

.mw-legend__line { width: 26px; height: 0; border-top: 2px solid var(--mw-gold); }
.mw-legend__line--dashed { border-top-style: dashed; opacity: 0.55; }

/* ---------- stato vuoto ---------- */

.mw-empty {
  text-align: center;
  padding: 68px 24px;
  border: 1px dashed var(--mw-border);
  border-radius: var(--mw-radius);
  background: rgba(18, 27, 41, 0.3);
}

.mw-empty__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--mw-border);
  background: var(--mw-gold-soft);
  color: var(--mw-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.mw-empty__title { font-family: var(--mw-font-heading); font-size: 24px; font-weight: 600; color: var(--mw-fg); }
.mw-empty__text { margin-top: 8px; color: var(--mw-muted); font-size: 15px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ---------- contatti ---------- */

.mw-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.mw-contact__email {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mw-contact__card { box-shadow: var(--mw-shadow); }
.mw-contact-form { display: flex; flex-direction: column; gap: 22px; }
.mw-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mw-form-field { display: flex; flex-direction: column; gap: 8px; }

.mw-form-field label {
  color: var(--mw-fg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.mw-form-field input,
.mw-form-field textarea {
  width: 100%;
  border: 1px solid var(--mw-border);
  border-radius: 10px;
  background: rgba(5, 9, 16, 0.55);
  color: var(--mw-fg);
  font: inherit;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mw-form-field textarea { resize: vertical; min-height: 150px; }
.mw-form-field input:focus,
.mw-form-field textarea:focus { border-color: var(--mw-gold); box-shadow: 0 0 0 3px var(--mw-gold-soft); outline: 0; }
.mw-form-field [aria-invalid='true'] { border-color: #d98072; }
.mw-form-error { color: #efa093; font-size: 13px; }

.mw-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--mw-muted);
  font-size: 13px;
  line-height: 1.55;
}

.mw-form-check input { accent-color: var(--mw-gold); margin-top: 3px; flex: 0 0 auto; }
.mw-form-alert { border: 1px solid var(--mw-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 22px; font-size: 14px; }
.mw-form-alert--success { background: rgba(73, 138, 105, 0.12); border-color: rgba(104, 185, 143, 0.38); color: #a9dfc3; }

.mw-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* ---------- footer ---------- */

.mw-footer { border-top: 1px solid var(--mw-border); background: var(--mw-bg); }

.mw-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 44px;
}

.mw-footer__brand { font-family: var(--mw-font-heading); font-size: 30px; font-weight: 600; color: var(--mw-fg); }

.mw-footer__tagline { margin-top: 8px; font-family: var(--mw-font-heading); font-style: italic; font-size: 18px; color: var(--mw-gold); }

.mw-footer__text { margin-top: 14px; font-size: 14px; color: var(--mw-muted); max-width: 380px; line-height: 1.7; }

.mw-footer__col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mw-muted);
  margin-bottom: 16px;
}

.mw-footer__links { display: flex; flex-direction: column; gap: 10px; }

.mw-footer__links a { font-size: 14.5px; color: var(--mw-muted); display: inline-flex; align-items: center; gap: 6px; }
.mw-footer__links a:hover { color: var(--mw-gold); }

.mw-footer__bottom {
  border-top: 1px solid var(--mw-border);
  padding: 22px 0;
}

.mw-footer__bottom .mw-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--mw-muted);
}

.mw-footer__bottom .mw-locale { border-color: var(--mw-border); }

/* ---------- riga musicale decorativa ---------- */

.mw-staff { opacity: 0.22; margin: 0 0 4px; }
.mw-staff svg { width: 100%; height: 14px; display: block; }

/* ---------- note ---------- */

.mw-note { font-size: 13px; color: var(--mw-muted); line-height: 1.65; }
.mw-note--small { font-size: 12px; opacity: 0.8; }

.mw-divider { border: 0; border-top: 1px solid var(--mw-border); margin: 26px 0; }

.mw-global-flashes {
    position: fixed;
    z-index: 49;
    top: 86px;
    left: 50%;
    width: min(680px, calc(100% - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.mw-global-flashes .mw-alert {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 10px;
    box-shadow: 0 16px 40px rgba(4, 9, 16, 0.32);
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mw-global-flashes .mw-alert.is-closing { opacity: 0; transform: translateY(-8px); }
.mw-alert__message { flex: 1; }
.mw-alert__close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: -3px -5px -3px 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mw-muted);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mw-alert__close:hover,
.mw-alert__close:focus-visible { background: var(--mw-gold-soft); color: var(--mw-gold-bright); }

.mw-alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid var(--mw-border);
    border-radius: 10px;
    background: rgba(15, 24, 38, 0.94);
    color: var(--mw-fg);
    line-height: 1.55;
}

.mw-alert--success { border-color: rgba(92, 184, 137, 0.48); }
.mw-alert--info { border-color: rgba(92, 150, 184, 0.48); }
.mw-alert--error { border-color: rgba(217, 128, 114, 0.62); }
.mw-alert ul { margin: 0; padding-left: 20px; }

/* ---------- reveal on scroll ---------- */

.mw-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }

.mw-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- smartphone navigation and home carousel ---------- */

.mw-smartphone-actions,
.mw-pwa-install,
.mw-mobile-tabbar,
.mw-home-carousel { display: none; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .mw-nav { display: none; }
  .mw-burger { display: flex; }
  .mw-navbar__desktop-auth { display: none; }
  .mw-navbar-search--desktop { display: none; }
  .mw-navbar-search--mobile {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    margin: 3px 0 10px;
    border: 1px solid var(--mw-border);
    border-radius: 11px;
    background: rgba(197, 149, 60, 0.04);
  }
  .mw-navbar-search--mobile .mw-navbar-search__panel { display: contents; }
  .mw-navbar-search--mobile .mw-field { min-width: 0; }
  .mw-navbar-search--mobile input[type='search'] { border: 0; border-radius: 0 10px 10px 0; box-shadow: none; }
  .mw-navbar-search--mobile input[type='search']:focus { box-shadow: inset 0 0 0 1px var(--mw-gold-bright); }
  .mw-navbar-search__toggle--mobile { display: grid; }
}

@media (max-width: 420px) {
    .mw-navbar__actions { gap: 8px; }
    .mw-navbar__actions > .mw-locale { display: none; }
}

@media (max-width: 1024px) {
  .mw-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .mw-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mw-catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .mw-section--split { grid-template-columns: 1fr; gap: 40px; }
  .mw-hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .mw-contact { gap: 40px; }
  .mw-connection-filter__options--6,
  .mw-connection-filter__options--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .mw-section { padding: 72px 0; }
  .mw-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .mw-hero__stats { grid-template-columns: 1fr 1fr; }
  .mw-contact { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  html { scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .mw-navbar__inner {
    gap: 8px;
    padding: 11px 12px;
  }

  .mw-brand { min-width: 0; min-height: 44px; }
  .mw-brand-logo { width: auto; height: 28px; max-width: min(156px, calc(100vw - 132px)); }
  .mw-navbar__actions { gap: 0; margin-left: auto; }
  .mw-burger { display: none; }
  .mw-mobile-menu { display: none !important; }

  .mw-smartphone-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mw-smartphone-search,
  .mw-smartphone-account { position: relative; }

  .mw-pwa-install:not([hidden]) { display: block; }

  .mw-pwa-install__trigger {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--mw-border-strong);
    border-radius: 999px;
    background: rgba(197, 149, 60, .08);
    color: var(--mw-gold-bright);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .mw-pwa-install__trigger svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
  }

  .mw-pwa-install__trigger:hover,
  .mw-pwa-install__trigger:focus-visible {
    border-color: var(--mw-gold-bright);
    background: rgba(197, 149, 60, .17);
    box-shadow: 0 8px 24px rgba(197, 149, 60, .18);
  }

  .mw-pwa-sheet {
    inset: auto 12px calc(16px + env(safe-area-inset-bottom)) 12px;
    width: min(390px, calc(100vw - 24px));
    max-width: none;
    margin: 0 auto;
    padding: 30px 22px 20px;
    border: 1px solid var(--mw-border-strong);
    border-radius: 24px;
    background: rgba(10, 18, 31, .98);
    color: var(--mw-fg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58), 0 4px 20px rgba(197, 149, 60, .12);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mw-pwa-sheet::backdrop {
    background: rgba(3, 8, 15, .64);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .mw-pwa-sheet__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--mw-muted);
    cursor: pointer;
    font: inherit;
    font-size: 25px;
  }

  .mw-pwa-sheet__close:hover,
  .mw-pwa-sheet__close:focus-visible { color: var(--mw-gold-bright); }

  .mw-pwa-sheet__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border: 1px solid var(--mw-border-strong);
    border-radius: 16px;
    background: rgba(197, 149, 60, .12);
    color: var(--mw-gold-bright);
  }

  .mw-pwa-sheet__icon svg { width: 27px; height: 27px; }
  .mw-pwa-sheet h2 { margin: 0 36px 9px; color: var(--mw-fg); font-size: 23px; }
  .mw-pwa-sheet p { margin: 0 auto 10px; max-width: 320px; color: var(--mw-muted); font-size: 14px; line-height: 1.55; }
  .mw-pwa-sheet__ios-copy { color: var(--mw-fg) !important; }

  .mw-pwa-sheet__primary,
  .mw-pwa-sheet__secondary {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
  }

  .mw-pwa-sheet__primary {
    margin-top: 18px;
    border: 1px solid var(--mw-gold-bright);
    background: linear-gradient(135deg, var(--mw-gold-bright), var(--mw-gold));
    color: var(--mw-bg);
  }

  .mw-pwa-sheet__secondary {
    margin-top: 4px;
    border: 0;
    background: transparent;
    color: var(--mw-fg);
  }

  .mw-smartphone-action {
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--mw-border-strong);
    border-radius: 50%;
    background: rgba(197, 149, 60, .08);
    color: var(--mw-gold-bright);
    cursor: pointer;
    list-style: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }

  .mw-smartphone-action::-webkit-details-marker { display: none; }
  .mw-smartphone-action svg { width: 22px; height: 22px; }
  .mw-smartphone-action:hover,
  .mw-smartphone-action:focus-visible,
  .mw-smartphone-search[open] > .mw-smartphone-action,
  .mw-smartphone-account[open] > .mw-smartphone-action {
    border-color: var(--mw-gold-bright);
    background: rgba(197, 149, 60, .17);
    color: var(--mw-gold-bright);
    box-shadow: 0 8px 24px rgba(197, 149, 60, .18);
  }

  .mw-pwa-install-available .mw-brand-logo {
    max-width: min(156px, calc(100vw - 176px));
  }

  .mw-smartphone-search__panel {
    position: fixed;
    z-index: 65;
    top: calc(var(--mw-navbar-height) + 8px);
    right: 12px;
    left: 12px;
    padding: 10px;
    border: 1px solid var(--mw-border-strong);
    border-radius: 14px;
    background: rgba(10, 18, 31, .97);
    box-shadow: var(--mw-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .mw-smartphone-search__panel .mw-field { margin: 0; }
  .mw-smartphone-search__panel input[type='search'] {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--mw-border-strong);
    border-radius: 10px;
    outline: 0;
    background: var(--mw-bg);
    color: var(--mw-fg);
    font: inherit;
    font-size: 16px;
  }
  .mw-smartphone-search__panel input[type='search']:focus {
    border-color: var(--mw-gold-bright);
    box-shadow: 0 0 0 3px var(--mw-gold-soft);
  }

  .mw-smartphone-account .mw-account-menu__panel {
    top: calc(100% + 10px);
    right: 0;
    min-width: min(260px, calc(100vw - 24px));
  }

  .mw-mobile-tabbar {
    position: fixed;
    z-index: 55;
    right: auto;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 50%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(430px, calc(100vw - 24px));
    height: 64px;
    padding: 4px 6px;
    border: 1px solid var(--mw-border-strong);
    border-radius: 999px;
    background: rgba(10, 18, 31, .95);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42), 0 4px 14px rgba(197, 149, 60, .08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(-50%);
    transition: height .2s ease, padding .2s ease, opacity .2s ease, transform .2s ease;
  }

  .mw-mobile-tabbar__item {
    display: flex;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 3px 1px;
    border-radius: 999px;
    color: var(--mw-muted);
    text-align: center;
    transition: color .2s ease, background-color .2s ease, gap .2s ease;
  }

  .mw-mobile-tabbar__item:hover,
  .mw-mobile-tabbar__item:focus-visible,
  .mw-mobile-tabbar__item.is-active {
    background: rgba(197, 149, 60, .1);
    color: var(--mw-gold-bright);
  }

  .mw-mobile-tabbar__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
  }
  .mw-mobile-tabbar__icon svg { width: 23px; height: 23px; }
  .mw-mobile-tabbar__label {
    display: block;
    max-width: 100%;
    max-height: 18px;
    overflow: hidden;
    opacity: 1;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: max-height .2s ease, opacity .16s ease, transform .2s ease;
  }

  .mw-mobile-tabbar.is-scrolling:not(:focus-within) {
    height: 52px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .mw-mobile-tabbar.is-scrolling:not(:focus-within) .mw-mobile-tabbar__item { gap: 0; }
  .mw-mobile-tabbar.is-scrolling:not(:focus-within) .mw-mobile-tabbar__label {
    max-height: 0;
    opacity: 0;
    transform: translateY(4px);
  }

  body.mw-fullscreen-active .mw-mobile-tabbar,
  body.mw-editing-active .mw-mobile-tabbar {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 18px);
    transition: none;
  }

  .mw-hero { min-height: 100svh; padding: calc(var(--mw-navbar-height) + 22px) 0 108px; }
  .mw-hero > .mw-hero__content { display: none; }
  .mw-home-carousel {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-width: 0;
  }
  .mw-home-carousel__track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mw-home-carousel__track::-webkit-scrollbar { display: none; }
  .mw-home-carousel__slide {
    display: flex;
    min-width: 100%;
    min-height: min(500px, calc(100svh - 210px));
    padding: 26px 22px 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 100%;
    flex-direction: column;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    text-align: center;
  }
  .mw-home-carousel__slide .mw-hero__title { font-size: clamp(38px, 13vw, 54px); }
  .mw-home-carousel__slide .mw-hero__subline { font-size: clamp(23px, 7.5vw, 31px); }
  .mw-home-carousel__slide .mw-hero__copy,
  .mw-home-carousel__slide > p {
    max-width: 32rem;
    margin: 16px auto 0;
    color: var(--mw-muted);
    font-size: 15px;
    line-height: 1.65;
  }
  .mw-home-carousel__slide h2 {
    max-width: 18ch;
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.08;
  }
  .mw-home-carousel__eyebrow {
    margin-bottom: 14px;
    color: var(--mw-gold-bright);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
  }
  .mw-home-carousel__actions,
  .mw-home-carousel__links {
    display: flex;
    margin-top: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
  }
  .mw-home-carousel__actions .mw-btn { min-height: 44px; padding: 10px 16px; }
  .mw-home-carousel__links a {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 13px;
    align-items: center;
    border: 1px solid var(--mw-border-strong);
    border-radius: 999px;
    background: var(--mw-gold-soft);
    color: var(--mw-gold-bright);
    font-size: 13px;
    font-weight: 600;
  }
  .mw-home-carousel__dots {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .mw-home-carousel__dots button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mw-home-carousel__dots button::before {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(245, 241, 234, .48);
    content: '';
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    transition: width .2s ease, background-color .2s ease;
  }
  .mw-home-carousel__dots button[aria-current='true']::before {
    width: 18px;
    background: var(--mw-gold-bright);
  }

  .mw-grid--4, .mw-grid--3, .mw-grid--2, .mw-catalog-grid, .mw-data-grid {
    grid-template-columns: 1fr;
  }

  .mw-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .mw-hero { padding-top: 110px; }
  .mw-hero__actions { flex-direction: column; align-items: stretch; }
  .mw-hero__actions .mw-btn { width: 100%; }
  .mw-page-hero { padding-top: 120px; }
  .mw-card--pad { padding: 24px; }
  .mw-form-grid { grid-template-columns: 1fr; }
  .mw-connection-filter__head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .mw-connection-filter__hint { text-align: left; }
  .mw-connection-filter__options--6,
  .mw-connection-filter__options--5,
  .mw-connection-filter__options--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-connection-option--all { grid-column: 1 / -1; }
  .mw-product-card { min-height: 0; }
  .mw-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-overview-metrics .mw-stat { padding: 22px 18px; }
  .mw-lineage-people-cta { align-items: flex-start; flex-direction: column; padding: 24px; }
  .mw-lineage-people-cta .mw-btn { width: 100%; }
}

@media (max-width: 360px) {
  .mw-pwa-install__trigger { width: 44px; padding: 0; }
  .mw-pwa-install__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 440px) {
  .mw-hero__title { font-size: clamp(38px, 10vw, 44px); }
  .mw-overview-metrics .mw-stat { padding: 16px 10px; }
  .mw-overview-metrics .mw-stat__value { font-size: clamp(19px, 5.7vw, 25px); letter-spacing: -0.045em; }
  .mw-overview-metrics .mw-stat__label { font-size: 11px; line-height: 1.45; }
}

/* ---------- a11y ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.mw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

/* ---------- graph card ---------- */

.mw-graph-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.mw-graph-card__body {
  min-width: 0;
  padding: 28px 28px 0;
}

.mw-graph-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.mw-graph-hero.is-dragging {
  cursor: grabbing;
}

.mw-graph-hero img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  height: auto;
  min-height: 100%;
  transform: translate(calc(-50% + var(--pan-x, 0px)), calc(-50% + var(--pan-y, 0px))) scale(1.35);
  transform-origin: center center;
  object-fit: cover;
  will-change: transform;
  pointer-events: none;
}

.mw-graph-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 18, 31, 0.55) 0%, var(--mw-bg) 100%);
}

.mw-graph-hero__caption {
  position: relative;
  z-index: 1;
  padding: 24px 28px 22px;
}

.mw-graph-hero__hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--mw-muted);
  letter-spacing: 0.01em;
}

.mw-graph__node {
  cursor: pointer;
}

.mw-graph__node:hover text:first-of-type,
.mw-graph__node:hover circle {
  fill: #E7BE6D;
}

.mw-muted-inline {
  color: var(--mw-muted);
  font-size: 14px;
}

.mw-sourcelist .mw-muted-inline a {
  color: var(--mw-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mw-sourcelist .mw-muted-inline a:hover {
  color: var(--mw-gold);
}

/* ---------- 2026 visual identity ---------- */

.mw-brand-name--image { display: inline-block; max-width: 100%; line-height: 1; vertical-align: -.15em; }
.mw-brand-name__image { display: block; width: 5.903em; height: auto; max-width: 100%; }

.mw-brand-name__accent {
  color: var(--mw-gold-bright);
  display: inline-block;
  font-style: italic;
  margin-left: -0.055em;
  margin-right: 0.065em;
}

.mw-brand-name--inline {
  white-space: nowrap;
}

.mw-hero {
  background:
    radial-gradient(circle at 72% 30%, rgba(197, 149, 60, 0.19), transparent 30%),
    radial-gradient(circle at 18% 68%, rgba(79, 105, 133, 0.2), transparent 34%),
    linear-gradient(145deg, #08101d 0%, #101b2b 48%, #080e18 100%);
}

.mw-hero__composition { position: absolute; inset: 0; overflow: hidden; }
.mw-hero__composition::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(245, 241, 234, 0.7) 0.7px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.mw-hero__ring { position: absolute; border: 1px solid rgba(197, 149, 60, 0.32); border-radius: 50%; box-shadow: 0 0 80px rgba(197, 149, 60, 0.05); }
.mw-hero__ring--one { width: min(70vw, 900px); aspect-ratio: 1; right: -12vw; top: -26%; }
.mw-hero__ring--two { width: min(42vw, 560px); aspect-ratio: 1; left: -12vw; bottom: -23%; }
.mw-hero__staff-lines { position: absolute; width: 120%; height: 130px; left: -10%; top: 52%; opacity: 0.22; transform: rotate(-6deg); background: repeating-linear-gradient(to bottom, transparent 0 18px, var(--mw-gold) 19px 20px); }

.mw-graph-hero { cursor: default; background: radial-gradient(circle at 25% 25%, rgba(197, 149, 60, 0.2), transparent 26%), linear-gradient(135deg, #121f31, #080f1a 72%); }
.mw-graph-hero__composition { position: absolute; inset: 0; overflow: hidden; }
.mw-graph-hero__composition span { position: absolute; border: 1px solid rgba(197, 149, 60, 0.25); border-radius: 50%; }
.mw-graph-hero__composition span:nth-child(1) { width: 460px; height: 460px; right: -80px; top: -220px; }
.mw-graph-hero__composition span:nth-child(2) { width: 280px; height: 280px; left: 8%; bottom: -190px; }
.mw-graph-hero__composition span:nth-child(3) { inset: 25% -10%; border-radius: 0; border-width: 1px 0; transform: rotate(-5deg); }
.mw-graph-hero__composition::after {
  content: '';
  position: absolute;
  width: 115%;
  height: 82px;
  left: -8%;
  top: 48%;
  opacity: 0.19;
  transform: rotate(-5deg);
  background: repeating-linear-gradient(to bottom, transparent 0 12px, rgba(197, 149, 60, 0.62) 13px 14px);
}

.mw-lineage-filter { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(5, minmax(130px, 1fr)) minmax(230px, auto); padding: 18px; margin-top: 0; border: 1px solid var(--mw-border); border-radius: 16px; background: rgba(12, 19, 30, 0.78); }
.mw-lineage-filter > * { min-width: 0; }
.mw-lineage-filter .mw-field input, .mw-lineage-filter .mw-field select { width: 100%; }
.mw-lineage-filter .mw-filter__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.mw-lineage-filter .mw-btn { min-width: 0; padding-right: 14px; padding-left: 14px; white-space: nowrap; }
.mw-lineage-filter__help { grid-column: 1 / -1; padding-top: 2px; color: var(--mw-muted); font-size: 12.5px; }
.mw-lineage-filter__help summary { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--mw-gold); cursor: pointer; list-style: none; }
.mw-lineage-filter__help summary::-webkit-details-marker { display: none; }
.mw-lineage-filter__help summary::before { content: 'i'; display: inline-grid; width: 18px; height: 18px; place-items: center; border: 1px solid var(--mw-border-strong); border-radius: 50%; font-size: 11px; font-weight: 700; }
.mw-lineage-filter__help summary:hover, .mw-lineage-filter__help summary:focus-visible { color: var(--mw-gold-bright); outline: none; }
.mw-lineage-filter__help p { max-width: 820px; margin: 8px 0 1px; padding: 10px 12px; border-left: 2px solid var(--mw-gold); color: var(--mw-muted); line-height: 1.55; background: rgba(197, 149, 60, 0.055); }
.mw-lineage-list__head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 14px; }
.mw-lineage-list__head h3 { margin: 0; color: var(--mw-fg); font-size: 17px; font-weight: 600; }
.mw-lineage-people-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 30px;
  padding: 28px 32px;
  border: 1px solid var(--mw-border-strong);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(197, 149, 60, 0.13), rgba(18, 27, 41, 0.72));
  box-shadow: 0 16px 40px rgba(4, 9, 16, 0.2);
}
.mw-lineage-people-cta .mw-eyebrow { margin-bottom: 8px; }
.mw-lineage-people-cta h2 { font-size: clamp(23px, 3vw, 32px); font-weight: 600; }
.mw-lineage-people-cta p { max-width: 780px; margin: 8px 0 0; color: var(--mw-muted); line-height: 1.65; }
.mw-lineage-people-cta .mw-btn { flex: 0 0 auto; }

@media (max-width: 640px) {
  .mw-lineage-people-cta { align-items: flex-start; flex-direction: column; padding: 24px; }
  .mw-lineage-people-cta .mw-btn { width: 100%; }
}
.mw-lineage-per-page { display: flex; align-items: center; gap: 9px; color: var(--mw-muted); font-size: 12px; }
.mw-lineage-per-page label { white-space: nowrap; }
.mw-lineage-per-page select { min-width: 68px; min-height: 36px; padding: 7px 30px 7px 11px; border: 1px solid var(--mw-border); border-radius: 8px; color: var(--mw-fg); background: var(--mw-surface-2); font: inherit; }
.mw-lineage-sources { display: block; margin-top: 5px; color: var(--mw-muted); font-size: 12px; }
.mw-lineage-sources a { color: var(--mw-gold); }

.mw-analysis-hero { position: relative; overflow: hidden; padding: 180px 24px 100px; text-align: center; }
.mw-analysis-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(197,149,60,.14), transparent 48%); }
.mw-analysis-hero__inner { position: relative; max-width: 850px; }
.mw-analysis-hero .mw-eyebrow { display: block; margin-top: 24px; }
.mw-analysis-orbit { position: absolute; width: 720px; height: 280px; border: 1px solid rgba(197,149,60,.2); border-radius: 50%; left: 50%; top: 48%; transform: translate(-50%, -50%) rotate(-8deg); }
.mw-analysis-grid { margin-bottom: 32px; }
.mw-analysis-card { position: relative; min-height: 250px; overflow: hidden; }
.mw-analysis-card h2 { margin: 54px 0 14px; font-size: 25px; }
.mw-analysis-card p { color: var(--mw-muted); line-height: 1.7; }
.mw-analysis-card__number { position: absolute; right: 20px; top: 10px; font-family: var(--mw-font-heading); font-size: 64px; color: rgba(197,149,60,.12); }
.mw-analysis-premium { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px; border: 1px solid var(--mw-border-strong); border-radius: 18px; background: linear-gradient(120deg, rgba(197,149,60,.11), rgba(18,27,41,.6)); }
.mw-analysis-premium h2 { margin: 8px 0 10px; font-size: 30px; }
.mw-analysis-premium p { max-width: 720px; color: var(--mw-muted); line-height: 1.65; }

.mw-spotify-link,
.mw-media-card__body .mw-spotify-link {
  display: inline-flex;
  width: fit-content;
  min-width: 116px;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding: 7px 8px 7px 13px;
  border: 1px solid rgba(30, 215, 96, .38);
  border-radius: 7px;
  color: #f5f8f6;
  background: #050806;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .24);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mw-spotify-link .mw-spotify-icon,
.mw-media-card__body .mw-spotify-link .mw-spotify-icon {
  display: block;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  color: #1ed760;
}
.mw-spotify-link:hover,
.mw-media-card__body .mw-spotify-link:hover {
  color: #fff;
  background: #070b08;
  border-color: rgba(30, 215, 96, .7);
  box-shadow: 0 8px 20px rgba(30, 215, 96, .11);
  transform: translateY(-.5px);
}
.mw-spotify-link:active { transform: translateY(0); }
.mw-spotify-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mw-media-section > .mw-note { margin: -6px 0 22px; }
.mw-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mw-media-card { overflow: hidden; border: 1px solid var(--mw-border); border-radius: 16px; background: var(--mw-surface-2); }
.mw-media-card__stage { display: grid; min-height: 230px; place-items: center; background: radial-gradient(circle at 50% 35%, rgba(197,149,60,.18), transparent 34%), #080f1a center / cover; }
.mw-media-card__stage iframe { width: 100%; height: 100%; min-height: 230px; border: 0; }
.mw-media-card__body { padding: 18px 20px 20px; }
.mw-media-card__body h3 { margin: 5px 0 8px; color: var(--mw-fg); font-size: 18px; }
.mw-media-card__body p { margin: 0 0 10px; color: var(--mw-muted); font-size: 12px; line-height: 1.5; }
.mw-media-card__body a { color: var(--mw-gold); font-size: 13px; font-weight: 600; }
.mw-media-card__meta { color: var(--mw-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mw-media-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.mw-media-card__actions .mw-inline-cta,
.mw-media-card__actions .mw-spotify-link { min-height: 40px; margin-top: 0; }

/* ---------- catalog hub and public library ---------- */
.mw-catalog-hub-hero { padding-bottom: 58px; }
.mw-catalog-hub { padding-bottom: 104px; }
.mw-catalog-hub__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mw-catalog-hub-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 17px;
  min-height: 184px;
  align-items: start;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--mw-border);
  border-radius: 18px;
  color: var(--mw-fg);
  background: linear-gradient(145deg, rgba(24, 35, 52, .84), rgba(11, 19, 31, .82));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.mw-catalog-hub-card::after { content: ''; position: absolute; right: -56px; bottom: -80px; width: 170px; height: 170px; border: 1px solid rgba(197,149,60,.16); border-radius: 50%; }
.mw-catalog-hub-card:hover { color: var(--mw-fg); border-color: var(--mw-border-strong); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.24); }
.mw-catalog-hub-card__mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--mw-border-strong); border-radius: 14px; color: var(--mw-gold-bright); background: var(--mw-gold-soft); font-family: var(--mw-font-heading); font-size: 16px; font-weight: 700; }
.mw-catalog-hub-card__mark svg { width: 28px; height: 28px; }
.mw-catalog-hub-card__body { display: flex; flex-direction: column; gap: 9px; }
.mw-catalog-hub-card__title { font-family: var(--mw-font-heading); font-size: 24px; font-weight: 600; line-height: 1.1; }
.mw-catalog-hub-card__copy { color: var(--mw-muted); font-size: 13.5px; line-height: 1.55; }
.mw-catalog-hub-card__count { color: var(--mw-gold); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.mw-catalog-hub-card__arrow { position: absolute; right: 22px; bottom: 18px; color: var(--mw-gold); font-size: 22px; transition: transform .2s ease; }
.mw-catalog-hub-card:hover .mw-catalog-hub-card__arrow { transform: translateX(4px); }
.mw-catalog-policy { display: flex; gap: 12px 24px; align-items: baseline; margin-top: 26px; padding: 21px 24px; border-left: 2px solid var(--mw-gold); color: var(--mw-muted); background: rgba(197,149,60,.06); font-size: 13.5px; line-height: 1.6; }
.mw-catalog-policy strong { flex: 0 0 auto; color: var(--mw-gold-bright); }

.mw-library-page { padding-bottom: 104px; }
.mw-library-filters { margin: 10px 0 28px; }
.mw-library-filters .mw-field:first-child { flex-grow: 1.8; }
.mw-library-list { display: flex; flex-direction: column; gap: 12px; }
.mw-library-item { display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 20px 22px; border: 1px solid var(--mw-border); border-radius: 15px; background: rgba(18,27,41,.48); transition: border-color .2s ease, background-color .2s ease; }
.mw-library-item:hover { border-color: var(--mw-border-strong); background: rgba(18,27,41,.76); }
.mw-library-item__rail span { display: inline-flex; padding: 6px 9px; border: 1px solid var(--mw-border-strong); border-radius: 999px; color: var(--mw-gold); background: var(--mw-gold-soft); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.mw-library-item__body h2 { margin: 0 0 7px; color: var(--mw-fg); font-family: var(--mw-font-heading); font-size: 20px; line-height: 1.25; }
.mw-library-item__body p { margin: 0; color: var(--mw-muted); font-size: 13px; line-height: 1.55; }
.mw-library-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.mw-library-item__tags span { padding: 4px 8px; border-radius: 6px; color: var(--mw-muted); background: rgba(255,255,255,.035); font-size: 10.5px; }

/* ---------- cataloghi search-first ---------- */

.mw-catalog-search-page { padding-bottom: 104px; }

.mw-search-stage {
  position: relative;
  isolation: isolate;
  margin: 8px 0 64px;
  padding: clamp(28px, 4.5vw, 54px);
  border: 1px solid var(--mw-border-strong);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(197, 149, 60, .16), transparent 30%),
    linear-gradient(145deg, rgba(24, 36, 54, .96), rgba(8, 15, 26, .94));
  box-shadow: 0 28px 80px rgba(2, 7, 13, .28);
}

.mw-search-stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 18px, rgba(197, 149, 60, .08) 19px 20px);
  mask-image: linear-gradient(90deg, transparent 42%, #000 100%);
}

.mw-search-stage__intro { max-width: 720px; margin-bottom: 26px; }
.mw-search-stage__kicker { display: block; margin-bottom: 9px; color: var(--mw-gold); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.mw-search-stage__intro h2 { font-size: clamp(28px, 3.6vw, 45px); font-weight: 600; line-height: 1.06; letter-spacing: -.025em; }
.mw-search-stage__intro p { max-width: 630px; margin: 12px 0 0; color: var(--mw-muted); font-size: 15px; line-height: 1.65; }

.mw-search-stage__main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.mw-search-stage__field { position: relative; display: block; }
.mw-search-stage__field input[type='search'] {
  width: 100%;
  min-height: 68px;
  padding: 16px 22px 16px 62px;
  border: 1px solid rgba(197, 149, 60, .48);
  border-radius: 14px;
  color: var(--mw-fg);
  background: rgba(4, 10, 18, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  font: 500 clamp(16px, 2vw, 20px)/1.35 var(--mw-font-body);
  appearance: none;
}
.mw-search-stage__field input[type='search']::-webkit-search-cancel-button { filter: invert(1); opacity: .55; }
.mw-search-stage__field input[type='search']::placeholder { color: #758195; opacity: 1; }
.mw-search-stage__field input[type='search']:focus { outline: 0; border-color: var(--mw-gold-bright); box-shadow: 0 0 0 4px rgba(197, 149, 60, .12), inset 0 1px 0 rgba(255, 255, 255, .05); }
.mw-search-stage__icon { position: absolute; z-index: 2; top: 50%; left: 22px; width: 24px; height: 24px; color: var(--mw-gold); transform: translateY(-50%); pointer-events: none; }
.mw-search-stage__icon svg { display: block; width: 100%; height: 100%; }
.mw-search-stage__submit { min-width: 150px; min-height: 68px; border-radius: 14px; font-size: 15px; }

.mw-search-stage__examples { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin-top: 12px; color: var(--mw-muted); font-size: 12px; }
.mw-search-stage__examples > span { color: rgba(245, 241, 234, .66); }
.mw-search-stage__examples a { color: var(--mw-gold-bright); text-decoration: underline; text-decoration-color: rgba(197, 149, 60, .36); text-underline-offset: 3px; }
.mw-search-stage__examples a:hover { text-decoration-color: currentColor; }

.mw-search-stage__quick { display: flex; gap: 12px 18px; align-items: flex-start; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--mw-border); }
.mw-search-stage__quick-label { flex: 0 0 auto; padding-top: 7px; color: var(--mw-muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.mw-search-stage__quick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-filter-pill { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 12px; border: 1px solid var(--mw-border); border-radius: 999px; color: #cbd1da; background: rgba(255, 255, 255, .025); font-size: 12px; font-weight: 600; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.mw-filter-pill:hover, .mw-filter-pill.is-active { color: var(--mw-gold-bright); border-color: var(--mw-border-strong); background: var(--mw-gold-soft); }
.mw-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.mw-filter-pills .mw-filter-pill { gap: 8px; }
.mw-filter-pills .mw-filter-pill span { color: var(--mw-muted); font-variant-numeric: tabular-nums; }

.mw-search-stage__advanced { margin-top: 24px; border: 1px solid var(--mw-border); border-radius: 14px; background: rgba(5, 11, 20, .42); }
.mw-search-stage__advanced summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 14px 17px; color: var(--mw-fg); cursor: pointer; font-size: 13px; font-weight: 650; list-style: none; }
.mw-search-stage__advanced summary::-webkit-details-marker { display: none; }
.mw-search-stage__chevron { color: var(--mw-gold); transition: transform .2s ease; }
.mw-search-stage__advanced[open] .mw-search-stage__chevron { transform: rotate(180deg); }
.mw-search-stage__advanced-body { display: flex; flex-direction: column; gap: 18px; padding: 18px; border-top: 1px solid var(--mw-border); }
.mw-search-filters-grid { display: grid; grid-template-columns: minmax(220px, 1fr); gap: 14px; }
.mw-search-filters-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-search-filters-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-search-filters-grid .mw-field { display: flex; flex-direction: column; gap: 7px; }
.mw-search-filters-grid .mw-field input, .mw-search-filters-grid .mw-field select { width: 100%; }
.mw-search-stage__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mw-search-stage__filters { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--mw-border); }
.mw-date-field { display: flex; gap: 8px; align-items: center; min-width: 0; }
.mw-date-field input[type='date'] { appearance: auto; -webkit-appearance: auto; color-scheme: dark; min-width: 0; flex: 1; padding: 12px; font-size: 16px; }
.mw-date-field input:focus { outline: 2px solid var(--mw-gold); outline-offset: 2px; }
.mw-date-field input[data-date-picker-enhanced]::-webkit-calendar-picker-indicator { display: none; }
.mw-date-field__picker { flex: 0 0 46px; min-height: 46px; display: grid; place-items: center; background: var(--mw-gold-soft); color: var(--mw-gold-bright); border: 1px solid var(--mw-border-strong); border-radius: 10px; cursor: pointer; }
.mw-date-field__picker[hidden] { display: none; }
.mw-filter-errors { color: #ffcbc4; font-size: 14px; line-height: 1.6; }
.mw-hall-programs .mw-empty .mw-btn { margin-top: 22px; }
.mw-hall-subvenues { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: -16px 0 40px; }
.mw-hall-subvenues > span:first-child { margin-right: 4px; color: var(--mw-muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.mw-hall-context { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--mw-border); color: var(--mw-muted); }
.mw-hall-context summary { color: var(--mw-gold-bright); cursor: pointer; }
.mw-hall-context p { max-width: 760px; margin-top: 16px; line-height: 1.7; }
.mw-catalog-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 18px; border: 1px solid var(--mw-border); border-radius: 14px; background: rgba(5, 11, 20, .5); }
.mw-catalog-tabs a { display: flex; justify-content: center; gap: 9px; align-items: center; min-height: 50px; padding: 10px 14px; border-right: 1px solid var(--mw-border); color: var(--mw-muted); font-size: 13px; font-weight: 700; }
.mw-catalog-tabs a:last-child { border-right: 0; }
.mw-catalog-tabs a:hover, .mw-catalog-tabs a.is-active { color: var(--mw-gold-bright); background: var(--mw-gold-soft); }
.mw-catalog-tabs a.is-active { box-shadow: inset 0 -2px 0 var(--mw-gold); }
.mw-catalog-tabs small { min-width: 28px; padding: 2px 7px; border-radius: 999px; color: var(--mw-muted); background: rgba(255, 255, 255, .045); font-size: 10px; text-align: center; }

.mw-active-context { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin: -34px 0 48px; padding: 13px 16px; border-left: 2px solid var(--mw-gold); color: var(--mw-muted); background: var(--mw-gold-softer); font-size: 13px; }
.mw-active-context strong { color: var(--mw-fg); }
.mw-active-context a { margin-left: auto; }

.mw-discovery { margin-top: 6px; }
.mw-section-heading--compact { max-width: 680px; margin-bottom: 26px; }
.mw-section-heading--compact h2 { margin-top: 7px; font-size: clamp(27px, 3vw, 38px); font-weight: 600; line-height: 1.12; }
.mw-section-heading--compact p { margin: 10px 0 0; color: var(--mw-muted); font-size: 14.5px; }
.mw-discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mw-discovery-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-discovery-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-discovery-panel { position: relative; overflow: hidden; min-width: 0; padding: 23px; border: 1px solid var(--mw-border); border-radius: 18px; background: linear-gradient(145deg, rgba(18, 29, 45, .78), rgba(10, 18, 30, .74)); }
.mw-discovery-panel--wide { grid-row: span 2; }
.mw-discovery-panel--accent { background: radial-gradient(circle at 90% 12%, rgba(197, 149, 60, .17), transparent 34%), rgba(18, 29, 45, .78); }
.mw-discovery-panel__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 17px; }
.mw-discovery-panel__head h3 { font-size: 20px; font-weight: 600; }
.mw-discovery-panel__head > span { color: var(--mw-muted); font-size: 10px; text-align: right; }
.mw-ranking-list { display: flex; flex-direction: column; }
.mw-ranking-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 42px; border-top: 1px solid rgba(197, 149, 60, .11); color: var(--mw-fg); font-size: 13px; }
.mw-ranking-item:first-child { border-top: 0; }
.mw-ranking-item:hover { color: var(--mw-gold-bright); }
.mw-ranking-item__number { color: rgba(197, 149, 60, .58); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.mw-ranking-item__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-ranking-item__count { color: var(--mw-muted); font-variant-numeric: tabular-nums; }
.mw-facet-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mw-facet-cloud a { display: inline-flex; gap: 8px; align-items: center; min-height: 34px; padding: 6px 10px; border: 1px solid rgba(197, 149, 60, .15); border-radius: 8px; color: #d6dbe3; background: rgba(255, 255, 255, .025); font-size: 11.5px; }
.mw-facet-cloud a:hover { color: var(--mw-gold-bright); border-color: var(--mw-border-strong); }
.mw-facet-cloud small { color: var(--mw-muted); font-size: 9px; }
.mw-discovery-links { display: flex; flex-direction: column; }
.mw-discovery-links a { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-top: 1px solid rgba(197, 149, 60, .11); color: var(--mw-fg); }
.mw-discovery-links a:first-child { padding-top: 0; border-top: 0; }
.mw-discovery-links a:hover strong { color: var(--mw-gold-bright); }
.mw-discovery-links strong { font-size: 13px; line-height: 1.35; transition: color .2s ease; }
.mw-discovery-links span { color: var(--mw-muted); font-size: 10.5px; }
.mw-role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.mw-role-cards a { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 16px 10px; border: 1px solid var(--mw-border); border-radius: 11px; color: var(--mw-muted); background: rgba(5, 11, 20, .35); text-align: center; }
.mw-role-cards a:hover { border-color: var(--mw-border-strong); }
.mw-role-cards strong { color: var(--mw-gold-bright); font: 600 20px/1 var(--mw-font-heading); }
.mw-role-cards span { overflow-wrap: anywhere; font-size: 10px; }
.mw-discovery-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -34px 0 48px; color: var(--mw-muted); font-size: 11px; }
.mw-discovery-strip > span { margin-right: 5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mw-discovery-strip a { padding: 5px 9px; border: 1px solid var(--mw-border); border-radius: 999px; color: var(--mw-fg); }
.mw-discovery-strip a:hover { color: var(--mw-gold-bright); border-color: var(--mw-border-strong); }
.mw-discovery-strip small { color: var(--mw-muted); }

.mw-results { margin-top: 4px; }
.mw-results__head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.mw-results__head h2 { margin-top: 5px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; }
.mw-results__count { flex: 0 0 auto; color: var(--mw-muted); font-size: 12px; }
.mw-catalog-card__copy { margin: auto 0 0; color: var(--mw-muted); font-size: 12.5px; line-height: 1.55; }
.mw-load-more { display: flex; flex-direction: column; align-items: center; gap: 9px; margin-top: 34px; }
.mw-load-more .mw-btn { min-width: 190px; justify-content: center; }
.mw-load-more.is-loading .mw-btn { opacity: .6; cursor: wait; pointer-events: none; }
.mw-load-more.is-loading .mw-btn span:last-child { animation: mw-load-pulse .75s ease-in-out infinite alternate; }
@keyframes mw-load-pulse { to { transform: translateY(4px); } }
.mw-load-more__status { color: var(--mw-muted); font-size: 12px; }
.mw-catalog-note { margin-top: 42px; }
.mw-catalog-note .mw-card__lead { margin-bottom: 0; }

.mw-detail-section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.mw-detail-section-head .mw-block__title { margin-bottom: 4px; }
.mw-detail-section-head p, .mw-detail-section-note { margin: 0; color: var(--mw-muted); font-size: 12.5px; }
.mw-detail-section-note { margin-top: 14px; }

@media (max-width: 900px) {
  .mw-discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-discovery-panel--wide { grid-row: auto; }
  .mw-search-filters-grid--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .mw-search-stage { margin-bottom: 48px; padding: 25px 18px; border-radius: 19px; }
  .mw-search-stage__main { grid-template-columns: 1fr; }
  .mw-search-stage__submit { min-height: 50px; }
  .mw-search-stage__quick { flex-direction: column; }
  .mw-search-stage__quick-label { padding-top: 0; }
  .mw-search-filters-grid--2, .mw-search-filters-grid--3 { grid-template-columns: 1fr; }
  .mw-discovery-grid, .mw-discovery-grid--2, .mw-discovery-grid--featured { grid-template-columns: 1fr; }
  .mw-results__head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mw-active-context { margin-top: -22px; }
  .mw-detail-section-head { flex-direction: column; }
}

@media (max-width: 480px) {
  .mw-catalog-tabs a { flex-direction: column; gap: 2px; min-width: 0; padding-inline: 7px; font-size: 11px; }
  .mw-search-stage__field input[type='search'] { min-height: 60px; padding-left: 52px; font-size: 16px; }
  .mw-search-stage__icon { left: 18px; width: 21px; }
  .mw-role-cards { grid-template-columns: 1fr; }
  .mw-search-stage__actions .mw-btn, .mw-detail-section-head .mw-btn { width: 100%; justify-content: center; }
}

@media (max-width: 620px) {
  .mw-rel-row--action { align-items: flex-start; flex-direction: column; gap: 8px; }
}

.mw-error-page { min-height: 100vh; margin: 0; color: var(--mw-ink); background: #080f1a; }
.mw-error-shell { position: relative; display: grid; min-height: 100vh; place-items: center; overflow: hidden; padding: 40px 24px 32px; isolation: isolate; background: radial-gradient(circle at 70% 22%, rgba(197,149,60,.18), transparent 32%), linear-gradient(145deg, #08101d 0%, #101b2b 48%, #080e18 100%); }
.mw-error-brand { position: absolute; z-index: 3; top: 28px; left: 32px; color: var(--mw-ink); }
.mw-error-staves { position: absolute; z-index: -1; width: 125%; height: 170px; left: -12%; top: 49%; opacity: .18; transform: rotate(-7deg); background: repeating-linear-gradient(to bottom, transparent 0 23px, var(--mw-gold) 24px 25px); }
.mw-error-orbit { position: absolute; z-index: -1; border: 1px solid rgba(197,149,60,.23); border-radius: 50%; box-shadow: 0 0 100px rgba(197,149,60,.05); }
.mw-error-orbit--one { width: min(72vw, 840px); aspect-ratio: 1; top: -38%; right: -18%; }
.mw-error-orbit--two { width: min(42vw, 480px); aspect-ratio: 1; bottom: -28%; left: -12%; }
.mw-error-card { position: relative; z-index: 2; width: min(100%, 620px); padding: 56px 48px 52px; text-align: center; border: 1px solid var(--mw-border-strong); border-radius: 24px; background: rgba(11, 20, 33, .84); box-shadow: 0 28px 90px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.mw-error-code { margin-bottom: 14px; color: var(--mw-gold-bright); font-family: var(--mw-font-heading); font-size: clamp(64px, 12vw, 112px); font-weight: 600; line-height: .9; letter-spacing: -.08em; }
.mw-error-card .mw-eyebrow { display: block; margin-bottom: 16px; }
.mw-error-card h1 { margin: 0 auto 16px; max-width: 520px; font-size: clamp(28px, 5vw, 44px); line-height: 1.08; }
.mw-error-card p { max-width: 470px; margin: 0 auto; color: var(--mw-muted); font-size: 16px; line-height: 1.7; }
.mw-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mw-error-note { position: absolute; z-index: 2; bottom: 26px; margin: 0; color: rgba(245,241,234,.58); font-size: 12px; letter-spacing: .02em; text-align: center; }

@media (max-width: 600px) {
  .mw-error-shell { padding: 88px 18px 72px; }
  .mw-error-brand { top: 22px; left: 20px; }
  .mw-error-card { padding: 42px 24px 36px; border-radius: 20px; }
  .mw-error-actions { align-items: stretch; flex-direction: column; }
  .mw-error-actions .mw-btn { justify-content: center; width: 100%; }
  .mw-error-note { right: 20px; bottom: 22px; left: 20px; }
}

@media (max-width: 1250px) {
  .mw-catalog-hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-lineage-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mw-lineage-filter__search { grid-column: span 2; }
}

@media (max-width: 700px) {
  .mw-catalog-hub__grid { grid-template-columns: 1fr; }
  .mw-catalog-hub-card {
    min-height: 165px;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "mark body"
      ". count";
    padding: 20px;
  }
  .mw-catalog-hub-card__mark { width: 46px; height: 46px; }
  .mw-catalog-hub-card__mark { grid-area: mark; }
  .mw-catalog-hub-card__body { grid-area: body; min-width: 0; }
  .mw-catalog-hub-card__count {
    position: static;
    z-index: 1;
    grid-area: count;
    justify-self: start;
  }
  .mw-catalog-policy { align-items: flex-start; flex-direction: column; }
  .mw-library-filters { align-items: stretch; flex-direction: column; }
  .mw-library-item { grid-template-columns: 1fr; gap: 13px; }
  .mw-library-item .mw-btn { justify-content: center; width: 100%; }
  .mw-lineage-filter { grid-template-columns: 1fr; }
  .mw-lineage-filter__search { grid-column: auto; }
  .mw-lineage-filter .mw-filter__actions { width: 100%; }
  .mw-lineage-filter .mw-btn { width: 100%; }
  .mw-autocomplete__list { width: 100%; max-width: 100%; }
  .mw-lineage-list__head { align-items: flex-start; flex-direction: column; }
  .mw-analysis-premium { align-items: flex-start; flex-direction: column; }
  .mw-score-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .mw-score-row .mw-inline-cta { width: 100%; }
  .mw-graph-card { padding: 16px; }
  .mw-graph-card__body { padding: 18px 0 0; }
  .mw-graph { height: auto; min-height: 520px; grid-template-rows: auto minmax(240px, 45dvh) auto; padding: 8px; }
  .mw-graph:fullscreen { height: 100dvh; min-height: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
  .mw-graph__toolbar { align-items: stretch; flex-direction: column; gap: 5px; }
  .mw-graph-search { width: 100%; }
  .mw-graph__overview-link { align-self: flex-start; margin: 0 8px; }
  .mw-graph__controls { justify-self: stretch; justify-content: center; }
  .mw-graph__control, .mw-graph__zoom-level { min-width: 44px; min-height: 44px; }
  .mw-media-grid { grid-template-columns: 1fr; }
  .mw-media-card__actions { align-items: stretch; flex-direction: column; }
  .mw-media-card__actions > a { width: 100%; justify-content: center; }
}

/* Musician content remains bounded; pagination never renders a long number list. */
.mw-musician-content { padding-bottom: 80px; }
.mw-musician-content .mw-search-stage__quick { align-items: center; flex-direction: row; }
.mw-musician-content .mw-search-stage__quick-label { padding-top: 0; }
.mw-musician-content .mw-search-stage__quick-list { flex: 1 1 0; min-width: 0; }
.mw-musician-content .mw-search-stage__quick-list .mw-field { width: 100%; max-width: 360px; min-width: 0; }
.mw-musician-content .mw-search-stage__quick-list select { width: 100%; min-width: 0; }
.mw-musician-content .mw-card, .mw-content-row { min-width: 0; overflow-wrap: anywhere; }
.mw-content-row { display: block; }
.mw-content-row__heading { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.mw-content-row__heading .mw-rel-row__name { min-width: 0; }
.mw-biography-text { max-width: 75ch; line-height: 1.7; white-space: pre-line; }
.mw-biography-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  max-height: 8.5em;
  overflow: hidden;
}
.mw-biography-disclosure summary { cursor: pointer; text-decoration: underline; min-height: 44px; padding: 10px 0; }
.mw-biography-disclosure summary:focus-visible { outline: 2px solid var(--mw-fg); outline-offset: 3px; }
.mw-biography-disclosure[hidden],
.mw-biography-disclosure__less,
.mw-biography:has(.mw-biography-disclosure[open]) > .mw-biography-excerpt,
.mw-biography-disclosure[open] .mw-biography-disclosure__more { display: none; }
.mw-biography-disclosure[open] .mw-biography-disclosure__less { display: inline; }
.mw-biography-toggle { display: inline-block; background: none; border: 0; padding: 10px 0; min-height: 44px; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.mw-biography-toggle:focus-visible { outline: 2px solid var(--mw-fg); outline-offset: 3px; }
.mw-biography [hidden] { display: none !important; }
.mw-biography-credits { margin-bottom: 16px; overflow-wrap: anywhere; }
.mw-lineage-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mw-compact-pagination { display: grid; gap: 10px; padding-top: 20px; }
.mw-compact-pagination__links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mw-compact-pagination__links > * { min-width: 32px; min-height: 44px; padding: 10px 7px; text-align: center; }
.mw-compact-pagination [aria-current="page"] { background: var(--mw-fg); color: var(--mw-bg); border-radius: 6px; }
.mw-compact-pagination [aria-disabled="true"] { opacity: .5; }
@media (max-width: 600px) {
  .mw-lineage-columns { grid-template-columns: minmax(0, 1fr); }
  .mw-musician-content .mw-detail-section-head { align-items: flex-start; flex-direction: column; }
  .mw-musician-content .mw-search-stage__quick-list, .mw-musician-content .mw-field { min-width: 0; max-width: 100%; }
  .mw-musician-content select { max-width: 100%; }
}

.mw-people-invitation { padding-top: calc(var(--mw-navbar-height) + 16px); padding-bottom: 0; }
.mw-people-invitation__card { display: flex; align-items: center; gap: 24px; padding: 20px 24px; }
.mw-people-invitation__copy { flex: 1; min-width: 0; }
.mw-people-invitation .mw-card__title { margin-bottom: 0; font-size: 20px; line-height: 1.35; }
.mw-people-invitation p { margin: 8px 0 0; color: var(--mw-muted); font-size: 16px; line-height: 1.5; }
.mw-people-invitation__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }
.mw-people-invitation__actions form { margin: 0; }
.mw-people-invitation .mw-btn { min-height: 44px; font-size: 16px; white-space: nowrap; }
.mw-people-invitation .mw-btn--outline { background: transparent; color: var(--mw-fg); }
/* The invitation already clears the fixed navigation: do not add that gap twice. */
.mw-people-invitation ~ :is(.mw-page-hero, .mw-analysis-hero, .mw-ai, .mw-ai-intro, .mw-hero) { padding-top: 40px; }
.mw-people-invitation ~ .mw-hero { min-height: 70svh; }
.mw-people-invitation ~ .mw-ai-intro { min-height: auto; }
@media (max-width: 860px) {
  .mw-people-invitation__card { flex-direction: column; align-items: stretch; gap: 20px; }
  .mw-people-invitation__copy { flex: auto; }
  .mw-people-invitation__actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .mw-people-invitation__card { padding: 18px; }
  .mw-people-invitation__actions { flex-direction: column; align-items: stretch; }
  .mw-people-invitation__actions form, .mw-people-invitation__actions .mw-btn { width: 100%; }
  .mw-people-invitation ~ :is(.mw-page-hero, .mw-analysis-hero, .mw-ai, .mw-ai-intro, .mw-hero) { padding-top: 28px; }
}

/* Free account access: only static shapes sit behind the preview. */
.mw-page-hero--catalog-access { padding-top: calc(var(--mw-navbar-height) + 32px); padding-bottom: 20px; }
.mw-page-hero--catalog-access .mw-page-lead { margin: 12px 0 16px; }
.mw-catalog-access { display: grid; position: relative; min-height: 340px; margin-bottom: 48px; }
.mw-catalog-access__skeleton { grid-area: 1 / 1; height: 340px; overflow: hidden; filter: blur(5px); opacity: .3; user-select: none; pointer-events: none; }
.mw-catalog-access__search { height: 68px; border: 1px solid var(--mw-border); border-radius: 12px; background: var(--mw-surface); margin-bottom: 24px; }
.mw-catalog-access__row { padding: 24px; border: 1px solid var(--mw-border); border-radius: 12px; margin-bottom: 12px; }
.mw-catalog-access__row span { display: block; height: 12px; width: 66%; margin-bottom: 9px; background: var(--mw-muted); border-radius: 4px; }
.mw-catalog-access__row span:nth-child(2) { width: 40%; }
.mw-catalog-access__row span:nth-child(3) { width: 80%; }
.mw-catalog-access__prompt { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; gap: 16px; padding: 24px; }
.mw-catalog-access__prompt h2 { max-width: 620px; font-size: clamp(23px,3vw,32px); line-height: 1.3; color: var(--mw-fg); }
.mw-catalog-access__prompt p { margin: 0; max-width: 580px; font-size: 16px; line-height: 1.6; }
.mw-catalog-access__prompt small { font-size: 14px; color: var(--mw-muted); }
@media (max-width: 640px) {
  .mw-page-hero--catalog-access { padding-top: calc(var(--mw-navbar-height) + 16px); padding-bottom: 16px; }
  .mw-page-hero--catalog-access .mw-page-lead { font-size: 16px; line-height: 1.5; }
  .mw-catalog-access__prompt { gap: 12px; padding: 16px 0; }
  .mw-catalog-access__prompt .mw-google-access { width: 100%; max-width: 320px; }
}
.mw-google-access { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 20px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; color: #202124; font-size: 16px; line-height: 1.4; text-decoration: none; font-weight: 500; }
.mw-google-access:hover { background: #f5f7fa; color: #202124; text-decoration: none; }
.mw-google-access svg { flex: 0 0 20px; }
.mw-btn--primary .mw-brand-name__accent { color: inherit; }
.mw-entity-link { color: var(--mw-gold-bright, #e1bb67); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mw-analysis-answer__basis { font-size: 14px; font-weight: 500; color: var(--mw-muted); margin: 18px 0 8px; }
.mw-analysis-answer__section + .mw-analysis-answer__section { border-top: 1px solid var(--mw-border); padding-top: 10px; margin-top: 18px; }
.mw-ai .mw-ai__text { font-size: 16px; line-height: 1.65; }
.mw-ai :is(button,textarea,input,summary) { font-size: 16px; }
.mw-ai button, .mw-ai summary { min-height: 44px; }
.mw-ai__verified-sources { padding: 16px; border: 1px solid var(--mw-border); border-radius: 10px; margin-top: 12px; }
.mw-ai__verified-sources summary { cursor: pointer; font-size: 16px; }
.mw-ai__verified-sources li { margin: 12px 0; overflow-wrap: anywhere; }
.mw-ai__verified-sources li a { display: block; margin-top: 4px; }
.mw-ai__history { padding: 12px 16px; border: 1px solid var(--mw-border); border-radius: 10px; margin-bottom: 16px; }
.mw-ai__history summary { cursor: pointer; }
.mw-ai__history-item { display: block; width: 100%; text-align: left; background: transparent; padding: 12px; color: var(--mw-fg); border-bottom: 1px solid var(--mw-border); }
