/* The Bosco design system, as the Design Studio tools use it.

   Shared by the project wizard and the editors it embeds (email, microsite),
   so a color field or a file drop looks and behaves the same wherever it
   appears. Page layout stays in each page; this file is tokens, type and the
   two controls every step uses — the file drop and the color field — plus
   the small set of form primitives they sit beside.

   The JS half is /js/bosco-controls.js: it turns each page's existing file
   labels and hex inputs into these controls without changing their markup
   or handlers. */

@font-face{font-family:"PP Neue Montreal";src:url(/fonts/PPNeueMontreal-Regular.otf) format("opentype");font-weight:400;font-display:swap}
@font-face{font-family:"PP Neue Montreal";src:url(/fonts/PPNeueMontreal-Semibold.otf) format("opentype");font-weight:600;font-display:swap}
@font-face{font-family:"Neue Montreal Squeezed";src:url(/fonts/NeueMontreal-MediumSqueezed.otf) format("opentype");font-weight:500;font-display:swap}

:root{
  --b-ink:#0b0b0c; --b-ink-700:#2c2c2f; --b-ink-600:#4a4a4e; --b-ink-500:#6e6e72; --b-ink-400:#97969a;
  --b-line:#ddd9d1; --b-line-strong:#c2c0bb;
  --b-white:#ffffff; --b-bone:#f3f0ea; --b-bone-deep:#ece7dd; --b-hover:#faf9f6;
  --b-blue:#0048ff; --b-red:#ff0000; --b-purple:#8000ff;
  --b-font:"PP Neue Montreal","Helvetica Neue",Arial,sans-serif;
  --b-font-graphic:"Neue Montreal Squeezed","PP Neue Montreal","Helvetica Neue",Arial,sans-serif;
  --b-radius-sm:4px; --b-radius-md:8px; --b-radius-pill:999px;
  --b-control:44px;
  --b-ease:cubic-bezier(.22,.61,.2,1);
  --b-shadow-frame:0 30px 80px -28px rgba(11,11,12,.45);
}

/* ---- File drop ------------------------------------------------------- */
/* A label wrapping a hidden file input. Drag a file onto it or click it. */
.b-drop{display:flex !important;align-items:center;gap:14px;width:100%;min-height:72px;padding:14px 16px;
  border:1px dashed var(--b-ink-400);border-radius:var(--b-radius-sm);background:var(--b-white);
  color:var(--b-ink);cursor:pointer;text-align:left;font-family:var(--b-font);font-size:15px;font-weight:400;
  letter-spacing:0;text-transform:none;line-height:1.35;box-sizing:border-box;position:relative;
  transition:border-color .2s var(--b-ease),background .2s var(--b-ease)}
.b-drop:hover{border-color:var(--b-ink);background:var(--b-hover)}
.b-drop:focus-visible{outline:2px solid var(--b-blue);outline-offset:2px}
.b-drop.is-over{border:1.5px solid var(--b-blue);background:#f2f5ff}
.b-drop.is-compact{min-height:52px;padding:8px 12px}
.b-drop-icon{width:40px;height:40px;border-radius:50%;background:var(--b-bone);flex:none;position:relative}
.b-drop.is-compact .b-drop-icon{width:34px;height:34px}
.b-drop-icon::before{content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' x2='12' y1='3' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' x2='12' y1='3' y2='15'/%3E%3C/svg%3E") center/contain no-repeat}
.b-drop.is-over .b-drop-icon{background:var(--b-blue);color:#fff}
.b-drop-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.b-drop-title{font-size:15px;color:var(--b-ink);overflow-wrap:anywhere}
.b-drop-meta{font-size:13px;color:var(--b-ink-600)}
.b-drop-meta u{color:var(--b-blue);text-underline-offset:3px}
.b-drop .lim{display:none}

/* ---- Color field ---------------------------------------------------- */
/* Swatch (opens the picker) and the hex text in one box; type or paste a
   hex straight into it. Kit swatches, when a page adds them, sit beneath. */
.b-color{display:flex !important;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
.b-color-field{display:flex;align-items:center;gap:10px;flex:1 1 160px;min-width:0;height:var(--b-control);
  padding:0 6px;border:1px solid var(--b-line-strong);border-radius:var(--b-radius-sm);background:var(--b-white);box-sizing:border-box}
.b-color-field:hover{border-color:var(--b-ink)}
.b-color-field:focus-within{border-color:var(--b-blue);box-shadow:0 0 0 1px var(--b-blue)}
.b-color.is-invalid .b-color-field{border-color:var(--b-red);box-shadow:0 0 0 1px var(--b-red)}
.b-color-field input[type=color]{width:32px !important;height:32px !important;flex:none;padding:0 !important;margin:0;
  border:0 !important;border-radius:2px !important;background:none !important;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(11,11,12,.18)}
.b-color-field input[type=color]::-webkit-color-swatch-wrapper{padding:0}
.b-color-field input[type=color]::-webkit-color-swatch{border:0;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(11,11,12,.18)}
.b-color-field input[type=color]::-moz-color-swatch{border:0;border-radius:2px}
.b-color-field input[type=text]{flex:1;min-width:0;width:auto !important;height:40px;padding:0 !important;margin:0;
  border:0 !important;outline:0;background:transparent !important;box-shadow:none !important;
  color:var(--b-ink) !important;font-family:var(--b-font) !important;font-size:15px !important;letter-spacing:.06em;text-transform:uppercase}
.b-color-field input[type=text]::placeholder{color:var(--b-ink-400)}
.b-color-msg{flex-basis:100%;display:none;align-items:center;gap:6px;font-size:13px;color:var(--b-ink)}
.b-color-msg::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--b-red);flex:none}
.b-color.is-invalid .b-color-msg{display:flex}
/* Brand kit colors as one-click bubbles under every color field. */
.b-color > .swatches,.b-bubbles{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px;margin:0}
.ule-color-row + .b-bubbles{margin-top:8px}
.b-bubbles .swatch,.b-color > .swatches .swatch,.b-swatch{width:28px;height:28px;min-width:0;border-radius:50%;padding:0;cursor:pointer;
  border:2px solid var(--b-white);box-shadow:0 0 0 1px var(--b-line-strong)}
.b-bubbles .swatch:hover,.b-color > .swatches .swatch:hover,.b-swatch:hover{box-shadow:0 0 0 1px var(--b-ink)}
.b-bubbles .swatch:focus-visible{outline:2px solid var(--b-blue);outline-offset:2px}

/* ---- Shared focus ---------------------------------------------------- */
.b-ui :focus-visible{outline:2px solid var(--b-blue);outline-offset:2px}
