/* Tip Calculator — single page, instant results */

body.page-tip .tip-form {
  padding: 1rem 1rem 1.25rem;
}

body.page-tip .tip-intro {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

body.page-tip .tip-grid {
  display: grid;
  gap: 1rem;
}

body.page-tip .tip-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

body.page-tip .tip-field > label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

body.page-tip .tip-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

body.page-tip .tip-input {
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  width: 100%;
}

body.page-tip .tip-input--lg {
  font-size: 1.3rem;
}

body.page-tip .tip-input--mid {
  text-align: center;
  width: 4.5rem;
}

body.page-tip .tip-input:focus {
  outline: none;
  border-color: var(--crimson-mid, #a83b54);
  box-shadow: 0 0 0 3px rgba(139, 41, 66, 0.12);
}

/* Quick-tip chips */
body.page-tip .tip-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.page-tip .tip-chip {
  min-height: 2.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--crimson, #7a1834);
  background: rgba(139, 41, 66, 0.08);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  cursor: pointer;
}

body.page-tip .tip-chip:hover {
  background: rgba(139, 41, 66, 0.15);
}

body.page-tip .tip-chip.is-active {
  color: #fff;
  background: var(--crimson, #7a1834);
  border-color: var(--crimson, #7a1834);
}

/* Tip input with trailing % */
body.page-tip .tip-suffixed {
  position: relative;
  max-width: 8rem;
}

body.page-tip .tip-suffixed .tip-input {
  padding-right: 2rem;
}

body.page-tip .tip-suffix {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}

/* People stepper */
body.page-tip .tip-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.page-tip .tip-step {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--crimson, #7a1834);
  background: rgba(139, 41, 66, 0.08);
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  cursor: pointer;
}

body.page-tip .tip-step:hover {
  background: rgba(139, 41, 66, 0.15);
}

body.page-tip .tip-round {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

body.page-tip .tip-round input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--crimson, #7a1834);
}

/* Results */
body.page-tip .tip-results {
  margin: 1.25rem 0 0;
}

body.page-tip .tip-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--cream-border);
  border-radius: 12px;
  background: var(--cream-card);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

body.page-tip .tip-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--cream-border);
  border-radius: 14px;
  background: var(--cream-card);
}

body.page-tip .tip-headline__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

body.page-tip .tip-headline__val {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--crimson, #7a1834);
}

body.page-tip .tip-headline__sub {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

body.page-tip .tip-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

body.page-tip .tip-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--cream-border);
  border-radius: 10px;
  background: #fff;
}

body.page-tip .tip-stat__k {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

body.page-tip .tip-stat__v {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 380px) {
  body.page-tip .tip-stats {
    grid-template-columns: 1fr;
  }
}
