/* ==========================================================
   UMW RECORDINGS INC.
   BRAND IDENTITY / STYLE GUIDE — V3
   Native layout using existing Brand Book structure
   ========================================================== */

/* ----------------------------------------------------------
   WHITE PAGE
   ---------------------------------------------------------- */

html,
body,
.sections,
.license-section,
.license-section > *,
.code-embed-172,
.umw-brandbook,
.umw-brandbook-section {
  background: #ffffff !important;
}

body {
  margin: 0 !important;
  color: #141414 !important;
  font-family: Poppins, Arial, Helvetica, sans-serif !important;
}

/* Remove any inherited grey backdrop */
.license-section {
  width: 100% !important;
  max-width: none !important;
  padding-bottom: 0 !important;
}

.license-section > .code-embed-172 {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ----------------------------------------------------------
   BRAND BOOK
   ---------------------------------------------------------- */

.umw-brandbook {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px 20px 64px !important;
  overflow: visible !important;
  background: #ffffff !important;
}

/* ----------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------- */

.umw-brandbook-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: #ffffff !important;
}

.umw-brandbook-section:last-child {
  margin-bottom: 0 !important;
}

.umw-brandbook-wrap {
  position: relative !important;

  width: 100% !important;
  max-width: 1160px !important;

  margin: 0 auto !important;
  padding: 30px 28px 26px !important;

  border: 1px solid rgba(20,20,20,.07) !important;
  border-radius: 18px !important;

  background: #ffffff !important;

  box-shadow:
    0 5px 16px rgba(20,20,20,.045) !important;
}

/* Core-style handle */
.umw-brandbook-wrap::before {
  content: "" !important;
  position: absolute !important;

  top: 11px !important;
  left: 50% !important;

  width: 44px !important;
  height: 4px !important;

  transform: translateX(-50%) !important;

  border-radius: 999px !important;
  background: #eeeeee !important;
}

/* ----------------------------------------------------------
   SECTION HEAD
   ---------------------------------------------------------- */

.umw-section-head {
  display: grid !important;
  grid-template-columns: minmax(150px,220px) minmax(0,1fr) !important;

  align-items: start !important;
  gap: 32px !important;

  width: 100% !important;
  max-width: none !important;

  margin: 0 0 22px !important;
  padding: 5px 0 18px !important;

  border-bottom: 1px solid #eeeeee !important;
}

.umw-center-head {
  display: block !important;
  max-width: 700px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.umw-section-title,
.umw-assets-title {
  margin: 0 !important;

  color: #141414 !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.umw-section-text {
  margin: 0 !important;

  color: #141414 !important;

  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

/* ----------------------------------------------------------
   FIRST LOGO SECTION
   Remove useless empty cells
   ---------------------------------------------------------- */

.umw-logo-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 180px !important;

  gap: 12px !important;

  border: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

.umw-logo-grid > .umw-logo-cell:empty {
  display: none !important;
}

.umw-logo-cell {
  min-width: 0 !important;
  min-height: 132px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 20px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-logo-cell.main {
  grid-column: auto !important;
  min-width: 0 !important;
  min-height: 132px !important;

  border-color: #eeeeee !important;
}

/* ----------------------------------------------------------
   LOGO USAGE
   ---------------------------------------------------------- */

.umw-logo-usage {
  display: grid !important;
  grid-template-columns: repeat(4,minmax(0,1fr)) !important;

  gap: 12px !important;

  overflow: visible !important;
  border: 0 !important;
}

.umw-usage-item {
  min-width: 0 !important;
  min-height: 150px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  overflow: hidden !important;
}

.umw-usage-item.white {
  background: #ffffff !important;
}

.umw-usage-item.blue {
  background: #0047ff !important;
}

.umw-usage-item.black {
  background: #141414 !important;
}

/* ----------------------------------------------------------
   SAFE MARGIN
   ---------------------------------------------------------- */

.umw-safe-area {
  display: flex !important;

  min-height: 230px !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 24px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-safe-box {
  display: flex !important;

  min-width: min(100%,420px) !important;
  min-height: 155px !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 30px !important;

  border: 1px dashed #bbbbbb !important;
  border-radius: 12px !important;

  background: #ffffff !important;
}

/* ----------------------------------------------------------
   LOGO DON'TS
   ---------------------------------------------------------- */

.umw-donts-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;

  gap: 12px !important;
}

.umw-dont-card {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;

  overflow: hidden !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-dont-title {
  display: flex !important;
  min-height: 46px !important;

  align-items: center !important;
  gap: 7px !important;

  margin: 0 !important;
  padding: 10px 12px !important;

  border-bottom: 1px solid #eeeeee !important;

  color: #141414 !important;

  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.umw-dont-preview {
  display: flex !important;

  min-height: 145px !important;
  flex: 1 !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;

  background: #ffffff;
}

/* ----------------------------------------------------------
   BRAND COLOURS
   ---------------------------------------------------------- */

.umw-brand-colours {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;

  gap: 12px !important;
}

.umw-brand-colour-card {
  min-width: 0 !important;
  min-height: 145px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 18px !important;

  overflow: hidden !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;
}

/* preserve official backgrounds */
.umw-brand-colour-card.white { background:#ffffff !important; }
.umw-brand-colour-card.blue  { background:#0047ff !important; }
.umw-brand-colour-card.black { background:#141414 !important; }
.umw-brand-colour-card.cyan  { background:#00d4ff !important; }
.umw-brand-colour-card.pink  { background:#fa08b9 !important; }

/* ----------------------------------------------------------
   ASSET LICENSE STRIP
   ---------------------------------------------------------- */

.umw-assets-license-strip {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;

  align-items: center !important;
  gap: 16px !important;

  margin: 0 0 28px !important;
  padding: 16px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-assets-license-text {
  margin: 0 !important;

  color: #141414 !important;

  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.umw-license-open {
  min-height: 40px !important;
  padding: 0 16px !important;

  border: 1px solid #0047ff !important;
  border-radius: 999px !important;

  background: #0047ff !important;
  color: #ffffff !important;

  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ----------------------------------------------------------
   ASSETS
   ---------------------------------------------------------- */

.umw-assets-block {
  margin: 0 0 30px !important;
}

.umw-assets-block:last-child {
  margin-bottom: 0 !important;
}

.umw-assets-title {
  margin-bottom: 12px !important;
}

.umw-assets-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;

  gap: 12px !important;

  align-items: stretch !important;
}

.umw-asset-card {
  display: flex !important;
  min-width: 0 !important;

  flex-direction: column !important;

  overflow: hidden !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-asset-preview {
  position: relative !important;

  display: flex !important;

  height: 160px !important;
  min-height: 160px !important;

  align-items: center !important;
  justify-content: center !important;

  padding: 20px !important;

  border-bottom: 1px solid #eeeeee !important;

  background: #fafafa !important;
}

.umw-asset-preview.dark {
  background: #141414 !important;
}

.umw-asset-preview img {
  max-width: 90% !important;
  max-height: 112px !important;

  margin: auto !important;

  object-fit: contain !important;
}

.umw-asset-meta {
  display: grid !important;
  flex: 1 !important;

  gap: 4px !important;

  min-height: 72px !important;

  padding: 13px 14px !important;

  background: #ffffff !important;
}

.umw-asset-name {
  margin: 0 !important;

  color: #141414 !important;

  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.umw-asset-type {
  margin: 0 !important;

  color: #141414 !important;

  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.umw-dl {
  position: absolute !important;

  top: 10px !important;
  right: 10px !important;

  display: flex !important;

  width: 32px !important;
  height: 32px !important;

  align-items: center !important;
  justify-content: center !important;

  border: 1px solid #dddddd !important;
  border-radius: 999px !important;

  background: #ffffff !important;
  color: #141414 !important;
}

/* ----------------------------------------------------------
   PALETTE
   ---------------------------------------------------------- */

.umw-palette-wrap {
  display: grid !important;
  gap: 22px !important;
}

.umw-palette-group-title {
  margin: 0 0 9px !important;

  color: #141414 !important;

  font-size: 12px !important;
  font-weight: 700 !important;
}

.umw-palette-row {
  display: grid !important;
  grid-template-columns: repeat(11,minmax(0,1fr)) !important;

  gap: 4px !important;

  width: 100% !important;
  height: auto !important;

  overflow: visible !important;
}

.umw-neutral-row {
  display: grid !important;
  grid-template-columns: repeat(6,minmax(0,1fr)) !important;

  gap: 4px !important;

  height: auto !important;
}

.umw-swatch {
  min-width: 0 !important;
  min-height: 58px !important;

  border: 1px solid rgba(20,20,20,.05) !important;
  border-radius: 8px !important;
}

.umw-swatch.center {
  min-width: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 5px !important;

  font-size: 8px !important;
  line-height: 1.25 !important;
}

/* ----------------------------------------------------------
   TYPOGRAPHY
   ---------------------------------------------------------- */

.umw-type-card {
  display: grid !important;
  grid-template-columns: minmax(220px,.75fr) minmax(0,1.35fr) !important;

  align-items: center !important;

  gap: 28px !important;

  margin: 0 0 14px !important;
  padding: 20px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 14px !important;

  background: #ffffff !important;
}

.umw-type-card:last-child {
  margin-bottom: 0 !important;
}

.umw-type-kicker {
  margin: 0 0 6px !important;

  color: #141414 !important;

  font-size: 10px !important;
  font-weight: 600 !important;
}

.umw-type-title {
  margin: 0 0 10px !important;

  color: #141414 !important;

  font-size: 18px !important;
  line-height: 1.2 !important;
}

.umw-type-desc {
  max-width: 380px !important;
  margin: 0 !important;

  color: #141414 !important;

  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

.umw-type-sample {
  padding: 18px !important;

  border: 1px solid #eeeeee !important;
  border-radius: 12px !important;
}

.umw-type-big {
  margin: 0 0 18px !important;

  font-size: clamp(44px,5vw,70px) !important;
  line-height: 1 !important;
}

.umw-type-row {
  display: grid !important;
  grid-template-columns: 105px minmax(0,1fr) !important;

  gap: 14px !important;

  align-items: start !important;
}

/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */

.umw-buttons-showcase {
  display: flex !important;

  align-items: center !important;
  flex-wrap: wrap !important;

  gap: 8px !important;
}

.umw-brandbook .umw-btn {
  width: auto !important;
  min-width: 0 !important;

  height: 40px !important;
  min-height: 40px !important;

  padding: 0 16px !important;

  border-radius: 999px !important;

  font-size: 10px !important;
  font-weight: 600 !important;

  box-shadow: none !important;
}

/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 991px) {

  .umw-brandbook {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .umw-section-head {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .umw-logo-usage,
  .umw-brand-colours {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .umw-donts-grid,
  .umw-assets-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }

  .umw-type-card {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

  .umw-brandbook {
    padding: 14px 10px 38px !important;
  }

  .umw-brandbook-section {
    margin-bottom: 10px !important;
  }

  .umw-brandbook-wrap {
    padding: 28px 14px 16px !important;
    border-radius: 16px !important;
  }

  .umw-logo-grid {
    grid-template-columns: 1fr !important;
  }

  .umw-logo-usage,
  .umw-brand-colours,
  .umw-donts-grid,
  .umw-assets-grid {
    grid-template-columns: 1fr !important;
  }

  .umw-assets-license-strip {
    grid-template-columns: 1fr !important;
  }

  .umw-license-open {
    width: 100% !important;
  }

  .umw-palette-row {
    grid-template-columns: repeat(11,58px) !important;
    overflow-x: auto !important;
    padding-bottom: 5px !important;
  }

  .umw-neutral-row {
    grid-template-columns: repeat(6,68px) !important;
    overflow-x: auto !important;
  }

  .umw-type-row {
    grid-template-columns: 1fr !important;
  }

  .umw-buttons-showcase {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .umw-brandbook .umw-btn {
    width: 100% !important;
  }
}
