/* Shared verdict pill + indicator system */
:root {
  --ath-pill-font-size: 0.82rem;
  --ath-pill-padding-y: 0.32rem;
  --ath-pill-padding-x: 0.7rem;
  --ath-pill-text-color-base: #1f2933;
  --ath-pill-bg-default: #f3f4f6;
  --ath-pill-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  --ath-pill-shadow-active: 0 10px 20px rgba(15, 23, 42, 0.25);
  --ath-indicator-color: #111827;
}

.ath-pill,
.ath-calculator-pill,
.ath-cpp-scale-pill,
.ath-verdict-pill {
  --ath-pill-color: var(--ath-pill-bg-default);
  --ath-pill-text-color: var(--ath-pill-text-color-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: var(--ath-pill-padding-y) var(--ath-pill-padding-x);
  font-size: var(--ath-pill-font-size);
  line-height: 1;
  font-weight: 600;
  background-color: var(--ath-pill-color);
  color: var(--ath-pill-text-color);
  box-shadow: var(--ath-pill-shadow);
  white-space: nowrap;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.ath-calculator-pill-group {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  align-items: center;
  justify-content: center;
}

.ath-verdict-scale,
.ath-cpp-scale,
.ath-verdict-bar {
  position: relative;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
}

.ath-pill.is-active,
.ath-pill.active,
.ath-cpp-scale-pill.is-active,
.ath-cpp-scale-pill.active,
.ath-verdict-pill.is-active,
.ath-verdict-pill.active {
  box-shadow: var(--ath-pill-shadow-active);
  transform: translateY(-1px);
}
.ath-verdict-indicator,
.ath-cpp-scale-indicator {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 10px solid var(--ath-indicator-color);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: left 220ms ease, opacity 140ms ease-out;
}

@media (max-width: 767px) {
  .ath-cpp-scale,
  .ath-verdict-bar {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    margin-top: 0.75rem;
  }
}

/* Shared result typography */
.ath-cpp-main-line {
  font-size: 2.1rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.ath-cpp-main-unit {
  font-size: 1.4rem;
  font-weight: 600;
}

.ath-cpp-main-subtext {
  font-size: 0.95rem;
  font-weight: 400;
}

.ath-cpp-verdict-line {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  text-align: center;
}

.ath-cpp-result-adjusted,
.ath-cpp-baseline,
.ath-transfer-note,
.ath-transfer-meta {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.75);
  text-align: center;
}

/* Shared calculator buttons */
.ath-calculator-button,
.ath-cpp-button {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 900px) {
  .ath-calculator-button,
  .ath-cpp-button {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}