/* Palette preview styles extracted from localsite/css/base.css */
.palette-section {
  margin-bottom: 0;
  container-type: inline-size;
}

.palette-title {
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.palette-title-center {
  text-align: center;
}

.samples-section {
  container-type: inline-size;
}

.samples-section[data-corner-radius="less-rounded"] {
  --button-radius: var(--control-radius);
}

.samples-section[data-corner-radius="rectangle"] {
  --button-radius: 0px;
}

.samples-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.samples-header .samples-title {
  margin-bottom: 0;
}

.samples-header-controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.samples-control-label {
  font-family: var(--font-subheadline);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

#cornerRadius {
  -webkit-appearance: none;
  appearance: none;
  min-width: 160px;
  max-width: 100%;
  padding: 8px 12px;
  padding-right: 34px;
  font-family: var(--font-subheadline);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--panel-radius);
  box-shadow: var(--button-shadow);
  outline: none;
  cursor: pointer;
}

.dark #cornerRadius {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b8c0cc'/%3E%3C/svg%3E");
}

#cornerRadius:hover,
#cornerRadius:focus {
  border-color: var(--accent);
}

.palette-overview {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
}

.palette-primary-group {
  flex: 0 0 auto;
}

.palette-main-group {
  flex: 1 1 420px;
  min-width: 0;
}

.palette-overview .color-row {
  margin-bottom: 0;
}

.color-row {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.palette-section > .color-row:last-child {
  margin-bottom: 16px;
}

.color-swatch {
  text-align: center;
}

.color-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
  border: 0.3px solid var(--border-subtle);
}

.color-circle:hover {
  transform: translateY(-2px);
}

.dark .color-circle {
  border: none;
  opacity: 0.95;
}

.color-name {
  font-family: var(--font-subheadline);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-main);
}

.color-hex {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.dark .color-hex {
  color: #b8c0cc;
}

#softBackgroundPalette,
#softColorPalette {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

#softBackgroundPalette {
  margin-bottom: 24px;
}

#softBackgroundPalette .color-swatch,
#softColorPalette .color-swatch {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#softBackgroundPalette .color-name,
#softColorPalette .color-name,
#softBackgroundPalette .color-hex,
#softColorPalette .color-hex {
  width: 100%;
  text-align: center;
}

#softBackgroundPalette .color-name {
  font-size: 11px;
  margin-bottom: 8px;
}

#softBackgroundPalette .color-hex {
  margin-top: 8px;
}

#softColorPalette .color-name {
  font-size: 11px;
}

#colorPaletteTitle {
  margin-bottom: 24px;
}

@container (max-width: 720px) {
  .palette-overview {
    flex-direction: column;
    gap: 24px;
  }

  .palette-main-group {
    flex-basis: auto;
    width: 100%;
  }
}

@container (max-width: 560px) {
  .samples-header {
    flex-direction: column;
    align-items: stretch;
  }

  .samples-header-controls {
    margin-left: 0;
    justify-content: flex-start;
  }

  #cornerRadius {
    width: 100%;
  }
}
