/* SC480 Reusable Component
   Version 1.2
   Scope: only .sc480-component and descendants.
*/
.sc480-component {
  --sc480-focus: #1677b8;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 80px;
  min-height: 220px;
  overflow: hidden;
  contain: layout paint style;
  user-select: none;
  -webkit-user-select: none;
}
.sc480-component * { box-sizing: border-box; }
.sc480-component__fit {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.sc480-component__meter {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 351.574 / 1080;
}
.sc480-component__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.sc480-component #SC480-meter,
.sc480-component #SC480-dial,
.sc480-component #Screen,
.sc480-component #Digits-Symbols,
.sc480-component #Arrows { pointer-events: none; }
.sc480-component #Buttons { pointer-events: all; }
.sc480-component #Buttons path {
  fill: transparent !important;
  fill-opacity: 0 !important;
  stroke: none !important;
  cursor: pointer;
  pointer-events: all;
}
.sc480-component #Buttons g {
  pointer-events: all;
}
.sc480-component [data-sc480-dial-hotspot] {
  position: absolute;
  z-index: 10;
  left: 35.5%;
  top: 42.5%;
  width: 29%;
  height: 14%;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}
.sc480-component [data-sc480-dial-hotspot].is-dragging { cursor: grabbing; }
.sc480-component [data-sc480-dial-hotspot]:focus-visible,
.sc480-component [role="button"]:focus-visible {
  outline: 3px solid var(--sc480-focus);
  outline-offset: 2px;
}
.sc480-component .sc480-generated-unit {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  fill: #272222;
  pointer-events: none;
}
.sc480-component.sc480-backlight-on #Screen-light { display: inline !important; }
.sc480-component.sc480-backlight-on #Screen-no-light { display: none !important; }
