/* Compass display styles. Uses shared variables from main.css. */
:root {
  --pointer-color: #ffe000;
}

.container {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  padding: 60px 20px 0;
  overflow: auto;
}

.arrow-row {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.arrow-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 156px;
  min-width: 0;
  position: relative;
}

.arrow-row .arrow-container {
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.arrow-row .arrow-container:focus-visible {
  outline: 2px solid var(--pointer-color);
  outline-offset: 3px;
}

.arrow-row .arrow-container:active {
  background: rgba(255, 224, 0, 0.035);
}

/* A fixed square gives the SVG a stable centre of rotation. */
.arrow {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  margin: 0 0 6px;
  border: 0;
  background: transparent;
  color: var(--pointer-color);
  transform-origin: 50% 50%;
  /* Heading smoothing is already supplied by the compass module. */
}

.pointer-svg {
  display: block;
  width: 88px;
  height: 88px;
  pointer-events: none;
}

.north-arrow-row {
  margin-top: 0;
  max-width: 100%;
  flex-shrink: 0;
}

.north-arrow-row .arrow-container {
  gap: 8px;
}

#north {
  width: 104px;
  height: 104px;
  margin-bottom: 0;
  color: var(--pointer-color);
}

#north .pointer-svg {
  width: 96px;
  height: 96px;
}

.north-label {
  color: #d9dde2;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.info {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: 0.875rem;
  color: #aaaeb2;
  text-align: center;
  line-height: 1.5;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.info div {
  white-space: nowrap;
}

.info-separator {
  color: #666a6e;
}

.arrow-name {
  width: 100%;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f1f2f3;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

