/* The colour palettes a shop can choose for its microsite, by name. They colour the page only: Quanto Club's header and navigation sit outside .buyer-main and stay as they are.
   Status colours stay fixed. Each palette's text and button pairs reach 4.5:1. */
@layer components {
  body[data-palette="heritage"] { background: #fbf6ec; }
  body[data-palette="heritage"] .buyer-main, .ms-swatches[data-palette="heritage"] { --bg: #fbf6ec; --surface: #ffffff; --surface-2: #f3e8d6; --ink: #2a1712; --ink-2: #5e4a40; --ink-3: #7a6558; --line: #e6d8c2; --line-strong: #b8a48c; --tint: #f7ecdf; --brand: #7a1f3d; --on-brand: #ffffff; --accent: #7a1f3d; --on-accent: #ffffff; }

  body[data-palette="forest"] { background: #f4f6f0; }
  body[data-palette="forest"] .buyer-main, .ms-swatches[data-palette="forest"] { --bg: #f4f6f0; --surface: #ffffff; --surface-2: #e5eadf; --ink: #18241f; --ink-2: #47564e; --ink-3: #5f6e66; --line: #d9e0d2; --line-strong: #a5b0a3; --tint: #e8efe6; --brand: #1f4d43; --on-brand: #ffffff; --accent: #1f4d43; --on-accent: #ffffff; }

  body[data-palette="noir"] { background: #141312; }
  body[data-palette="noir"] .buyer-main, .ms-swatches[data-palette="noir"] { --bg: #141312; --surface: #201e1b; --surface-2: #2c2925; --ink: #f5efe6; --ink-2: #c9c0b3; --ink-3: #a59c8f; --line: #3a3631; --line-strong: #6b655c; --tint: #2a261e; --brand: #d4af5a; --on-brand: #15120a; --accent: #d4af5a; --on-accent: #15120a; }

  body[data-palette="indigo"] { background: #f3f5fa; }
  body[data-palette="indigo"] .buyer-main, .ms-swatches[data-palette="indigo"] { --bg: #f3f5fa; --surface: #ffffff; --surface-2: #e3e7f2; --ink: #141b33; --ink-2: #454d68; --ink-3: #5e6682; --line: #d7dcea; --line-strong: #a2a9c0; --tint: #e7ebf6; --brand: #27386f; --on-brand: #ffffff; --accent: #27386f; --on-accent: #ffffff; }

  body[data-palette="rose"] { background: #fcf5f3; }
  body[data-palette="rose"] .buyer-main, .ms-swatches[data-palette="rose"] { --bg: #fcf5f3; --surface: #ffffff; --surface-2: #f5e6e3; --ink: #2e1a1c; --ink-2: #634a4d; --ink-3: #7f6467; --line: #eddcd8; --line-strong: #c4aaa7; --tint: #f9e9e7; --brand: #a23b52; --on-brand: #ffffff; --accent: #a23b52; --on-accent: #ffffff; }

  body[data-palette="saffron"] { background: #fff8ea; }
  body[data-palette="saffron"] .buyer-main, .ms-swatches[data-palette="saffron"] { --bg: #fff8ea; --surface: #ffffff; --surface-2: #fbecd0; --ink: #2b1b08; --ink-2: #624d33; --ink-3: #7a6548; --line: #f0e0c0; --line-strong: #c6b28c; --tint: #fdeed6; --brand: #a84a07; --on-brand: #ffffff; --accent: #a84a07; --on-accent: #ffffff; }

  body[data-palette="emerald"] { background: #0f2a24; }
  body[data-palette="emerald"] .buyer-main, .ms-swatches[data-palette="emerald"] { --bg: #0f2a24; --surface: #16352e; --surface-2: #1f4339; --ink: #f1efe6; --ink-2: #c6cdc2; --ink-3: #a3ada2; --line: #29493f; --line-strong: #5d7a70; --tint: #1a3a31; --brand: #d9b45b; --on-brand: #17140a; --accent: #d9b45b; --on-accent: #17140a; }

  body[data-palette="mono"] { background: #fafaf8; }
  body[data-palette="mono"] .buyer-main, .ms-swatches[data-palette="mono"] { --bg: #fafaf8; --surface: #ffffff; --surface-2: #eeeeeb; --ink: #111111; --ink-2: #4a4a48; --ink-3: #666664; --line: #e0e0dc; --line-strong: #a8a8a4; --tint: #f0f0ed; --brand: #111111; --on-brand: #ffffff; --accent: #111111; --on-accent: #ffffff; }

  body[data-palette="terracotta"] { background: #f8f1e9; }
  body[data-palette="terracotta"] .buyer-main, .ms-swatches[data-palette="terracotta"] { --bg: #f8f1e9; --surface: #fffdf9; --surface-2: #efe3d5; --ink: #2c1d15; --ink-2: #5f4d41; --ink-3: #79675a; --line: #e6d8c8; --line-strong: #bba895; --tint: #f3e4d8; --brand: #a04a2a; --on-brand: #ffffff; --accent: #a04a2a; --on-accent: #ffffff; }

  body[data-palette="peacock"] { background: #f0f7f7; }
  body[data-palette="peacock"] .buyer-main, .ms-swatches[data-palette="peacock"] { --bg: #f0f7f7; --surface: #ffffff; --surface-2: #dfeeee; --ink: #0f2a2e; --ink-2: #41595d; --ink-3: #5a7377; --line: #d3e4e4; --line-strong: #9fb6b7; --tint: #e2f0f0; --brand: #0f5e66; --on-brand: #ffffff; --accent: #0f5e66; --on-accent: #ffffff; }

  body[data-palette="couture"] { background: #faf7f0; }
  body[data-palette="couture"] .buyer-main, .ms-swatches[data-palette="couture"] { --bg: #faf7f0; --surface: #ffffff; --surface-2: #efeadf; --ink: #16130f; --ink-2: #4f4a42; --ink-3: #6b655b; --line: #e3dccd; --line-strong: #a9a294; --tint: #f3eee2; --brand: #16130f; --on-brand: #ffffff; --accent: #16130f; --on-accent: #ffffff; }

  body[data-palette="champagne"] { background: #f8f2e4; }
  body[data-palette="champagne"] .buyer-main, .ms-swatches[data-palette="champagne"] { --bg: #f8f2e4; --surface: #fffdf8; --surface-2: #eee4cf; --ink: #2a2114; --ink-2: #5a4d39; --ink-3: #72644e; --line: #e4d8bf; --line-strong: #b5a78b; --tint: #f3e9d3; --brand: #7d5a24; --on-brand: #ffffff; --accent: #7d5a24; --on-accent: #ffffff; }

  body[data-palette="sapphire"] { background: #0d1730; }
  body[data-palette="sapphire"] .buyer-main, .ms-swatches[data-palette="sapphire"] { --bg: #0d1730; --surface: #15213f; --surface-2: #1e2c50; --ink: #f1ecdf; --ink-2: #c5c6cf; --ink-3: #a2a5b4; --line: #2a3859; --line-strong: #5d6885; --tint: #1a2747; --brand: #e0c98f; --on-brand: #141108; --accent: #e0c98f; --on-accent: #141108; }

  body[data-palette="aubergine"] { background: #21121f; }
  body[data-palette="aubergine"] .buyer-main, .ms-swatches[data-palette="aubergine"] { --bg: #21121f; --surface: #2d1b2b; --surface-2: #3b2638; --ink: #f6ebe9; --ink-2: #d1bfc4; --ink-3: #ad9aa2; --line: #473345; --line-strong: #75616f; --tint: #352230; --brand: #eeb9ae; --on-brand: #2a1210; --accent: #eeb9ae; --on-accent: #2a1210; }

  body[data-palette="pearl"] { background: #f4f4f0; }
  body[data-palette="pearl"] .buyer-main, .ms-swatches[data-palette="pearl"] { --bg: #f4f4f0; --surface: #fcfcfa; --surface-2: #e8e9e3; --ink: #20241f; --ink-2: #50564f; --ink-3: #676d66; --line: #dfe0d9; --line-strong: #a6a9a1; --tint: #ebece5; --brand: #4b5f50; --on-brand: #ffffff; --accent: #4b5f50; --on-accent: #ffffff; }

  body[data-palette="bordeaux"] { background: #2a0d14; }
  body[data-palette="bordeaux"] .buyer-main, .ms-swatches[data-palette="bordeaux"] { --bg: #2a0d14; --surface: #37151e; --surface-2: #46202a; --ink: #f7eee2; --ink-2: #d8c5bd; --ink-3: #b49f99; --line: #512a34; --line-strong: #826069; --tint: #3f1a24; --brand: #f0e0c4; --on-brand: #2a0d14; --accent: #f0e0c4; --on-accent: #2a0d14; }

  body[data-palette="temple"] { background: #3d0b0f; }
  body[data-palette="temple"] .buyer-main, .ms-swatches[data-palette="temple"] { --bg: #3d0b0f; --surface: #4d1216; --surface-2: #5e1c20; --ink: #fbf0d8; --ink-2: #e4cfb0; --ink-3: #c9b08c; --line: #6b2a2c; --line-strong: #94605a; --tint: #561619; --brand: #e8bd4f; --on-brand: #2a0906; --accent: #e8bd4f; --on-accent: #2a0906; }

  body[data-palette="jasmine"] { background: #ffffff; }
  body[data-palette="jasmine"] .buyer-main, .ms-swatches[data-palette="jasmine"] { --bg: #ffffff; --surface: #f8faf7; --surface-2: #ebf0e9; --ink: #14231c; --ink-2: #46564e; --ink-3: #5d6d65; --line: #e2e8e0; --line-strong: #a4afa7; --tint: #eef3ec; --brand: #14634c; --on-brand: #ffffff; --accent: #14634c; --on-accent: #ffffff; }

  body[data-palette="graphite"] { background: #1d1e20; }
  body[data-palette="graphite"] .buyer-main, .ms-swatches[data-palette="graphite"] { --bg: #1d1e20; --surface: #27282b; --surface-2: #333438; --ink: #f4f1ea; --ink-2: #c8c5be; --ink-3: #a5a29b; --line: #3c3d41; --line-strong: #6c6d71; --tint: #2d2e31; --brand: #f4f1ea; --on-brand: #1d1e20; --accent: #f4f1ea; --on-accent: #1d1e20; }

  body[data-palette="marble"] { background: #f3efec; }
  body[data-palette="marble"] .buyer-main, .ms-swatches[data-palette="marble"] { --bg: #f3efec; --surface: #fbf9f7; --surface-2: #e7e1dc; --ink: #2a1f1d; --ink-2: #5b4d4a; --ink-3: #746562; --line: #e0d8d3; --line-strong: #b0a5a0; --tint: #ece4df; --brand: #7a3b3a; --on-brand: #ffffff; --accent: #7a3b3a; --on-accent: #ffffff; }

  /* The couture palettes: square edges, serif section headings, more air and a lighter hand. */
  body[data-palette="couture"] .buyer-main,
  body[data-palette="champagne"] .buyer-main,
  body[data-palette="sapphire"] .buyer-main,
  body[data-palette="aubergine"] .buyer-main,
  body[data-palette="pearl"] .buyer-main,
  body[data-palette="bordeaux"] .buyer-main,
  body[data-palette="temple"] .buyer-main,
  body[data-palette="jasmine"] .buyer-main,
  body[data-palette="graphite"] .buyer-main,
  body[data-palette="marble"] .buyer-main { --radius-sm: 2px; --radius: 2px; --radius-md: 2px; --radius-lg: 2px; --radius-xl: 2px; }
  body[data-palette="couture"] .buyer-main .ms,
  body[data-palette="champagne"] .buyer-main .ms,
  body[data-palette="sapphire"] .buyer-main .ms,
  body[data-palette="aubergine"] .buyer-main .ms,
  body[data-palette="pearl"] .buyer-main .ms,
  body[data-palette="bordeaux"] .buyer-main .ms,
  body[data-palette="temple"] .buyer-main .ms,
  body[data-palette="jasmine"] .buyer-main .ms,
  body[data-palette="graphite"] .buyer-main .ms,
  body[data-palette="marble"] .buyer-main .ms { row-gap: var(--s-7); }
  body[data-palette="couture"] .buyer-main .section-title,
  body[data-palette="champagne"] .buyer-main .section-title,
  body[data-palette="sapphire"] .buyer-main .section-title,
  body[data-palette="aubergine"] .buyer-main .section-title,
  body[data-palette="pearl"] .buyer-main .section-title,
  body[data-palette="bordeaux"] .buyer-main .section-title,
  body[data-palette="temple"] .buyer-main .section-title,
  body[data-palette="jasmine"] .buyer-main .section-title,
  body[data-palette="graphite"] .buyer-main .section-title,
  body[data-palette="marble"] .buyer-main .section-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--weight); letter-spacing: -0.01em; }
  body[data-palette="couture"] .buyer-main .btn,
  body[data-palette="champagne"] .buyer-main .btn,
  body[data-palette="sapphire"] .buyer-main .btn,
  body[data-palette="aubergine"] .buyer-main .btn,
  body[data-palette="pearl"] .buyer-main .btn,
  body[data-palette="bordeaux"] .buyer-main .btn,
  body[data-palette="temple"] .buyer-main .btn,
  body[data-palette="jasmine"] .buyer-main .btn,
  body[data-palette="graphite"] .buyer-main .btn,
  body[data-palette="marble"] .buyer-main .btn { font-size: var(--text-sm); font-weight: var(--weight-medium); letter-spacing: 0.04em; }
  body[data-palette="couture"] .buyer-main .ms-label--title,
  body[data-palette="champagne"] .buyer-main .ms-label--title,
  body[data-palette="sapphire"] .buyer-main .ms-label--title,
  body[data-palette="aubergine"] .buyer-main .ms-label--title,
  body[data-palette="pearl"] .buyer-main .ms-label--title,
  body[data-palette="bordeaux"] .buyer-main .ms-label--title,
  body[data-palette="temple"] .buyer-main .ms-label--title,
  body[data-palette="jasmine"] .buyer-main .ms-label--title,
  body[data-palette="graphite"] .buyer-main .ms-label--title,
  body[data-palette="marble"] .buyer-main .ms-label--title { font-size: clamp(1.875rem, 7vw, 3rem); }
  body[data-palette="couture"] .buyer-main .ms-divider,
  body[data-palette="champagne"] .buyer-main .ms-divider,
  body[data-palette="sapphire"] .buyer-main .ms-divider,
  body[data-palette="aubergine"] .buyer-main .ms-divider,
  body[data-palette="pearl"] .buyer-main .ms-divider,
  body[data-palette="bordeaux"] .buyer-main .ms-divider,
  body[data-palette="temple"] .buyer-main .ms-divider,
  body[data-palette="jasmine"] .buyer-main .ms-divider,
  body[data-palette="graphite"] .buyer-main .ms-divider,
  body[data-palette="marble"] .buyer-main .ms-divider { margin-block: var(--s-3); }

  /* A black button would vanish on a dark banner, so these two turn white there. */
  body[data-palette="couture"] .hero--dark:not(.hero--plain) .btn--brand,
  body[data-palette="mono"] .hero--dark:not(.hero--plain) .btn--brand { background: #ffffff; color: #111111; }

  /* Palettes that set their own --bg also keep the page's text in step. */
  body[data-palette] .buyer-main { color: var(--ink); }

  /* A palette's colours beside its name in the builder. */
  .ms-swatches { display: inline-flex; flex: none; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .ms-swatch { display: block; inline-size: 1.5rem; block-size: 1.5rem; }
  .ms-swatch--bg { background: var(--bg); }
  .ms-swatch--surface { background: var(--surface-2); }
  .ms-swatch--brand { background: var(--brand); }
  .ms-swatch--ink { background: var(--ink); }
}
