/* ─── Boyd's Colour Studio — hero scheme · 40:60 split · tabbed picks ─── */

.colour-studio {
  --scheme-walls: #f5f0e8;
  --scheme-ceiling: #f4f6f0;
  --scheme-trim: #394963;
  --scheme-accent: #3d5c48;
  padding-bottom: 40px;
}

.colour-studio__brand {
  margin: 0;
}
.colour-studio__brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  margin-bottom: 10px;
}
.colour-studio__bm-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
}
.colour-studio__brand-mark {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue-dark, #005a9e);
  background: var(--brand-blue-light, #e8f4fc);
  border: 1px solid rgba(0, 114, 206, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
}

.colour-studio__help-inline {
  display: none;
}
.studio-scheme-bar__title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.studio-help {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.studio-help__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--brand-blue, #0072ce);
  background: #fff;
  color: var(--brand-blue-dark, #005a9e);
  cursor: pointer;
  line-height: 1;
}
.studio-help__btn::-webkit-details-marker { display: none; }
.studio-help__btn::marker { content: ''; }
.studio-help__icon {
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
}
.studio-help__btn:hover,
.studio-help[open] > .studio-help__btn {
  background: var(--brand-blue-light, #e8f4fc);
}
.studio-help__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  width: min(300px, 78vw);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft, #4a5560);
  background: #fff;
  border: 1px solid rgba(0, 114, 206, 0.22);
  border-radius: 12px;
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.12));
}
.studio-help__panel p {
  margin: 0 0 8px;
}
.studio-help__panel p:last-child {
  margin-bottom: 0;
}
.studio-help__panel strong {
  color: var(--ink, #0f1419);
}
.colour-studio__visit-nudge {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted, #6b7280);
}
.colour-studio__visit-nudge a {
  color: var(--brand-blue-dark, #005a9e);
  font-weight: 700;
}
.picks-sidebar__share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scheme-email-panel {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt, #f8fafc);
  box-shadow: 0 0 0 2px rgba(0, 114, 206, 0.12);
}
.scheme-email-panel__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink, #0f1419);
}
#scheme-email-btn.is-active {
  border-color: var(--brand-blue, #0072ce);
  color: var(--brand-blue, #0072ce);
}
.scheme-email-panel__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.scheme-email-panel__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.scheme-email-panel__consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.scheme-email-panel__consent input {
  margin-top: 2px;
}
.scheme-email-panel__status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-blue);
  min-height: 1.2em;
}
.scheme-email-panel__status.is-error {
  color: #b91c1c;
}
.scheme-email-panel__hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted, #6b7280);
}

/* ─── Hero: identity left · CTA card right ─── */
.colour-studio__hero {
  margin-bottom: 16px;
}
.colour-studio__identity {
  display: flex;
  gap: 18px;
  align-items: center;
}
.colour-dollop-lg {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 16px;
  background: var(--dollop, #ccc);
  box-shadow: var(--shadow), inset 0 -8px 20px rgba(0,0,0,0.06);
  border: 3px solid #fff;
}
.colour-studio__titles h1 {
  margin: 0 0 2px;
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.colour-studio__titles .colour-code {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72em;
}
.colour-studio__family {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.colour-studio__badges { display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 900px) {
  .colour-studio__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px 28px;
    align-items: start;
    padding-bottom: 4px;
  }
  .colour-dollop-lg {
    width: 112px;
    height: 112px;
  }
}

.studio-cta-card {
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.studio-cta-card__label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.studio-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.studio-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--brand-blue-dark, #005a9e);
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.studio-cta:hover,
.studio-cta:focus-visible {
  border-color: var(--brand-blue);
  color: var(--brand-blue-dark);
  background: var(--brand-blue-light, #e8f4fc);
}
.studio-cta--primary {
  color: #fff;
  background: var(--brand-blue, #0072ce);
  border-color: var(--brand-blue, #0072ce);
}
.studio-cta--primary:hover,
.studio-cta--primary:focus-visible {
  color: #fff;
  background: var(--brand-blue-dark, #005a9e);
  border-color: var(--brand-blue-dark, #005a9e);
}
.studio-cta--wide {
  grid-column: 1 / -1;
}
.studio-cta-card .colour-studio__visit-nudge {
  margin-top: 12px;
}

@media (max-width: 899px) {
  .colour-studio__hero-right {
    margin-top: 14px;
  }
  .studio-cta-card {
    padding: 12px;
  }
  .colour-studio__grid .colour-studio__scene {
    order: -1;
  }
  .studio-scheme-bar {
    min-height: 0;
  }
  .scheme-slots--toolbar {
    flex-wrap: wrap;
  }
  .scheme-slots--toolbar .scheme-slot--mini {
    flex: 1 1 calc(25% - 6px);
    min-width: 64px;
  }
}

@media (max-width: 599px) {
  .colour-dollop-lg {
    width: 80px;
    height: 80px;
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  .scheme-slots--toolbar .scheme-slot--mini {
    flex: 1 1 calc(50% - 6px);
  }
  .lighting-slider__end { font-size: 9px; }
  .studio-cta {
    font-size: 12px;
    padding: 10px 8px;
  }
}
.studio-scheme-bar {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  min-height: 92px;
  box-sizing: border-box;
}
.studio-scheme-bar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.studio-scheme-bar__label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.scheme-presets--inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.scheme-slots--toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: stretch;
  width: 100%;
}
.scheme-slots--toolbar .scheme-slot--mini {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
}

.scheme-slots--mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.scheme-slots--4up .scheme-slot--mini {
  width: calc(50% - 4px);
  max-width: 88px;
}

.scheme-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.12s;
  min-width: 0;
}
.scheme-slot:hover { transform: translateY(-2px); }
.scheme-slot.is-active {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--brand-blue-light);
}
.scheme-slot--mini {
  width: 76px;
  flex-shrink: 0;
}
.scheme-slot__swatch {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.scheme-slot--mini .scheme-slot__swatch { height: 40px; }
.scheme-slot__meta {
  width: 100%;
  padding: 4px 4px 5px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.scheme-slot__role {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 1.2;
}
.scheme-slot.is-active .scheme-slot__role { color: var(--brand-blue-dark); }
.scheme-slot__name {
  display: none;
}
.scheme-slot__code {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scheme-slot[title] { cursor: pointer; }

.scheme-presets__btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  cursor: pointer;
}
.scheme-presets__btn:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue);
}

/* ─── Workspace card ─── */
.colour-studio__workspace {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* 40 : 60 split */
.colour-studio__grid {
  display: flex;
  flex-direction: column;
}
@media (min-width: 900px) {
  .colour-studio__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    align-items: stretch;
    min-height: 380px;
  }
}

/* Left — choose colours */
.colour-studio__picks {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
@media (min-width: 900px) {
  .colour-studio__picks {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.picks-section__head {
  padding: 14px 16px 10px;
}
.picks-section__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.picks-section__head p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

/* Horizontal tabs */
.pick-tabs {
  margin-top: 4px;
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.pick-tab {
  flex: 1;
  padding: 11px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  border: none;
  background: transparent;
  cursor: pointer;
  min-height: 44px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, background 0.12s;
}
.pick-tab.is-active {
  color: var(--brand-blue-dark);
  background: var(--surface-alt);
  border-bottom-color: var(--brand-blue);
}

.pick-panels {
  flex: 1;
  padding: 14px;
}
.pick-panel {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pick-panel.is-active { display: grid; }

.pick-btn {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s, transform 0.12s;
  text-align: left;
}
.pick-btn:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.pick-btn__swatch {
  display: block;
  height: 56px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.pick-btn__info { padding: 8px 10px; }
.pick-btn__info strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-btn__info span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.pick-btn__tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Right — scene */
.colour-studio__scene {
  background: var(--surface);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.colour-scene-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.room-toggle {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  flex-shrink: 0;
  min-height: 52px;
  box-sizing: border-box;
  align-items: stretch;
}
.room-toggle__btn {
  flex: 1;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  min-height: 40px;
}
.room-toggle__btn.is-active {
  color: var(--brand-blue-dark);
  background: var(--surface);
  border-bottom-color: var(--brand-blue);
}

.colour-scene {
  position: relative;
  flex: 1;
  min-height: 240px;
  max-height: 48vh;
  background: linear-gradient(165deg, #d4dae0 0%, #e8ecf0 100%);
  overflow: hidden;
}
@media (min-width: 900px) {
  .colour-scene {
    min-height: 300px;
    max-height: none;
    aspect-ratio: 16 / 11;
  }
}
.colour-scene__rooms { position: absolute; inset: 0; }
.colour-scene::after {
  content: '';
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 50px rgba(15, 20, 25, 0.08);
}
.colour-scene__lighting {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.room-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.room-svg.is-visible { opacity: 1; visibility: visible; z-index: 1; }
.room-svg [data-scheme-role] { transition: fill 0.3s ease, filter 0.45s ease; }
.room-svg [data-lighting] { transition: opacity 0.5s ease; }
.colour-scene__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.room-svg [data-scheme-role].scheme-hit--active {
  filter: drop-shadow(0 0 4px rgba(0, 114, 206, 0.35));
}

.scene-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  flex-shrink: 0;
}
.scene-toolbar__label {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.scene-toolbar--slider .lighting-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.lighting-slider__end {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.lighting-slider {
  flex: 1;
  min-width: 80px;
  accent-color: var(--brand-blue);
}
.colour-picker-active-role {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 600;
}
.colour-picker-search__row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.colour-picker-search__row input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.colour-picker-search__btn {
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 13px;
}
.colour-picker-results {
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.colour-picker-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.colour-picker-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 6px;
  text-align: left;
  cursor: pointer;
}
.colour-picker-result:hover {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light, #e8f4fc);
}
.colour-picker-result__swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.colour-picker-result__meta {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
}
.colour-picker-result__meta strong {
  font-size: 13px;
}
.colour-quick-picks-wrap {
  margin-bottom: 12px;
}
.colour-quick-picks__label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}
.colour-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.colour-quick-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.colour-quick-pick__swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}

.colour-studio__disclaimer {
  margin: 0;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.colour-studio__disclaimer--prominent {
  text-align: left;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: #fffbeb;
  border-top-color: #fcd34d;
  border-bottom: 1px solid #fcd34d;
}
.colour-studio__disclaimer--prominent strong {
  color: #92400e;
}

/* ─── Collection strip ─── */
.colour-studio__collection {
  margin-top: 24px;
  padding: 18px 20px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.collection-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.collection-head__in {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.collection-head__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-blue-light);
  transition: border-color 0.12s, color 0.12s;
}
.collection-head__name:hover {
  color: var(--brand-blue-dark);
  border-bottom-color: var(--brand-blue);
}
.collection-head__sep { color: var(--muted); font-size: 14px; }
.collection-head__family {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.collection-head__family:hover { color: var(--brand-blue); }
.collection-head__all {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-blue);
  text-decoration: none;
  white-space: nowrap;
}
.collection-head__all:hover { text-decoration: underline; }

.collection-siblings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.sibling-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.sibling-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sibling-card__swatch {
  display: block;
  height: 56px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.sibling-card__info {
  padding: 7px 8px;
  background: var(--surface-alt);
}
.sibling-card__name {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sibling-card__code {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 1px;
}

/* ─── Footer links ─── */
.colour-studio__more {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}
.colour-studio__more a { color: var(--brand-blue); }
.colour-studio__more span { color: var(--muted); }
