/* Mattresses and Beds UK look for the Build your bed page, in both of the site's themes.
   Loaded after site.css. Light: white, black and a touch of gold. Dark: black, white and gold.
   Jost for headlines and Manrope for text, as on mattressesandbedsuk.com. */
:root {
  --ink: #ffffff;
  --ink-2: #f5f5f5;
  --ink-3: #ebebeb;
  --ivory: #0a0a0a;
  --mist: #4a4a4a;
  --gold: #8c6420;
  --gold-hi: #6e4e17;
  --gold-lo: #b8913f;
  --line: rgba(0, 0, 0, .14);
  --line-2: rgba(0, 0, 0, .08);
  --black: #0a0a0a;
  --paper: #ffffff;
  --foil: linear-gradient(110deg, #8c6420 0%, #c49a45 50%, #8c6420 100%);
  --display: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 6px;
  --mb-em: linear-gradient(110deg, #8c6420 0%, #c49a45 50%, #8c6420 100%);
  --mb-stage: radial-gradient(120% 90% at 50% 30%, #ffffff 0%, #f6f6f6 52%, #e9e9e9 100%);
  --mb-panel: #ffffff;
  --mb-btn: #0a0a0a;
  --mb-btn-ink: #ffffff;
  --mb-pill: #f2f2f2;
  --mb-hud: rgba(10, 10, 10, .9);
  --mb-dot: #d0d0d0;
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #0d0d0d;
  --ink-2: #171717;
  --ink-3: #202020;
  --ivory: #f5f5f5;
  --mist: #c9c9c9;
  --gold: #d6b35f;
  --gold-hi: #f1d996;
  --gold-lo: #d6b35f;
  --line: rgba(255, 255, 255, .16);
  --line-2: rgba(255, 255, 255, .08);
  --black: #f5f5f5;
  --paper: #0d0d0d;
  --foil: linear-gradient(110deg, #f4e1a6 0%, #d6b35f 45%, #f1d996 100%);
  --mb-em: linear-gradient(110deg, #f4e1a6 0%, #d6b35f 45%, #f1d996 100%);
  --mb-stage: radial-gradient(120% 90% at 50% 30%, #2a2a2a 0%, #171717 55%, #0d0d0d 100%);
  --mb-panel: #0d0d0d;
  --mb-btn: #f5f5f5;
  --mb-btn-ink: #0a0a0a;
  --mb-pill: #1c1c1c;
  --mb-hud: rgba(23, 23, 23, .92);
  --mb-dot: #3a3a3a;
  color-scheme: dark;
}
html, body { background: var(--ink) !important; color: var(--ivory); }
body { -webkit-font-smoothing: antialiased; }

/* Headlines: Jost light, the key phrase in gold */
h1, h2, h3, h4 { font-family: var(--display) !important; font-weight: 300 !important; letter-spacing: 0 !important; font-variation-settings: normal !important; color: var(--ivory); }
h1 em, h2 em, h3 em, h4 em, .b3 em {
  font-style: normal !important;
  font-weight: 300 !important;
  background: var(--mb-em) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
}
.eyebrow, .b3__count { font-family: var(--display) !important; color: var(--gold) !important; letter-spacing: .2em !important; font-weight: 400 !important; }
.eyebrow::before { background: var(--gold) !important; }

/* Header */
.nav { background: color-mix(in srgb, var(--ink) 88%, transparent) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-2); }
.brandmark__name { font-family: var(--display) !important; font-weight: 300 !important; letter-spacing: .14em !important; color: var(--ivory) !important; }
.brandmark__name small { color: var(--gold) !important; }
.mbuk-logo { background: #ffffff; }
[data-theme="dark"] .mbuk-logo { background: transparent; filter: invert(1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) !important; }
.tabs { background: var(--mb-pill) !important; border-color: var(--line-2) !important; box-shadow: none !important; }
.tabs a { color: var(--ivory) !important; font-family: var(--display) !important; letter-spacing: .14em !important; font-weight: 400 !important; }
.tabs a[aria-current="page"] { color: var(--mb-btn-ink) !important; }
.tabs__pill { background: var(--mb-btn) !important; box-shadow: none !important; }

/* Buttons: black on white, white on black (the site's own pattern) */
.btn { border-radius: 6px !important; font-family: var(--display) !important; letter-spacing: .14em !important; font-weight: 400 !important; }
.btn--black { --bg: var(--mb-btn); --fg: var(--mb-btn-ink); --bd: var(--mb-btn); }
.btn--black::after { background: var(--mb-btn) !important; }
.btn--black:hover { color: var(--mb-btn-ink) !important; border-color: var(--mb-btn) !important; }
.btn--foil { background: var(--mb-btn) !important; --fg: var(--mb-btn-ink); --bd: var(--mb-btn); animation: none !important; }
.mb-theme { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 8px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; }
.mb-theme svg { width: 20px; height: 20px; }
.mb-theme .sun { display: none; }
[data-theme="dark"] .mb-theme .sun { display: block; }
[data-theme="dark"] .mb-theme .moon { display: none; }
.nav__cta { display: flex; align-items: center; }

/* The 3D stage and the builder panel */
.b3__stage { background: var(--mb-stage) !important; border-color: var(--line-2) !important; border-radius: 8px !important; }
.b3__stage::after { background: radial-gradient(90% 70% at 50% 45%, transparent 60%, rgba(0, 0, 0, .08) 100%) !important; }
.b3__sheet, .b3__head, .b3__body, .b3__nav { background: var(--mb-panel) !important; color: var(--ivory); }
.b3__price { background: var(--mb-hud) !important; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6) !important; }
.b3__price small { color: #d6b35f !important; }
.b3__price-v { font-family: var(--display) !important; font-weight: 300 !important; }
.b3__chip { border-radius: 6px !important; background: var(--mb-panel) !important; color: var(--ivory) !important; border-color: var(--line) !important; }
.b3__chip small { color: var(--mist) !important; }
.b3__chip[aria-pressed="true"] { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold) inset !important; }
.b3__dcard { border-radius: 8px !important; background: var(--mb-panel) !important; border-color: var(--line) !important; }
.b3__dcard[aria-pressed="true"] { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 24px -16px rgba(0, 0, 0, .5) !important; }
.b3__dname, .b3__dname.foil-text { font-family: var(--display) !important; font-weight: 400 !important; background: none !important; color: var(--ivory) !important; -webkit-text-fill-color: currentColor; }
.b3__dbrand { color: var(--gold) !important; }
.b3__dprice { color: var(--mist) !important; }
.b3__dot { background: var(--mb-dot) !important; }
.b3__dot[aria-current="step"] { background: var(--gold) !important; }
.b3__prev { color: var(--ivory) !important; }
.b3__prev:disabled, .b3__prev[disabled] { color: var(--mist) !important; opacity: .5; }
.b3__tag { background: color-mix(in srgb, var(--mb-panel) 92%, transparent) !important; color: var(--ivory) !important; font-family: var(--sans) !important; font-style: normal !important; }
.b3__tag i { background: linear-gradient(90deg, transparent, var(--gold)) !important; }
.b3__tag i::before { background: var(--gold) !important; box-shadow: none !important; }
.b3 p, .b3 li { color: var(--mist); }
.b3 [class*="b3__"] { font-style: normal; }

/* Footer: black in both themes, like the site */
.footer {
  --ink: #000000; --ink-2: #0d0d0d; --ink-3: #171717; --ivory: #f5f5f5; --mist: #c9c9c9;
  --gold: #d6b35f; --gold-hi: #f1d996; --gold-lo: #d6b35f; --line: rgba(255, 255, 255, .16); --line-2: rgba(255, 255, 255, .08);
  background: #000000 !important; color: #f5f5f5 !important; color-scheme: dark !important;
}
.footer__big { font-family: var(--display) !important; font-weight: 300 !important; color: #f5f5f5 !important; }
.footer__big span { background: linear-gradient(110deg, #f4e1a6, #d6b35f 45%, #f1d996); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-style: normal !important; }
.footer h4 { font-family: var(--display) !important; font-weight: 400 !important; color: #d6b35f !important; }
.footer a { color: #f5f5f5 !important; }
.progress { background: var(--gold) !important; }

/* Pills that sit on the 3D stage: readable in both themes */
.b3__photo, .b3__hint, .b3__part, .b3__load-card, .b3__craft {
  background: color-mix(in srgb, var(--mb-panel) 92%, transparent) !important;
  color: var(--ivory) !important;
  border-color: var(--line) !important;
}
.b3__photo span, .b3__hint span, .b3__craft, .b3__craft *, .b3__load-card * { color: var(--ivory) !important; font-style: normal !important; }
.b3__part[aria-pressed="true"] { border-color: var(--gold) !important; box-shadow: 0 0 0 1px var(--gold) inset !important; }
@media (max-width: 600px) { .brandmark__name small { display: none !important; } .brandmark__name { letter-spacing: .1em !important; font-size: .9rem !important; } }
.tabs__pill::before, .tabs__pill::after { display: none !important; }
