/* Shop quote board: a workshop pegboard with price tags */
.pegboard {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  display: grid;
  gap: 0.9rem;
  color: #27272a;
}
.pegboard__title {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52525b;
}
.peg-tag {
  position: relative;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem 0.6rem;
  background: #ffffff;
  color: #27272a;
}
.peg-tag__label {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #27272a;
}
/* Plain static range bar: the filled part runs from the minimum to the maximum */
.peg-range {
  position: relative;
  height: 10px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f4f4f5;
  overflow: hidden;
}
.peg-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--brand);
  border-radius: 999px;
}
.peg-tag__ends {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #52525b;
  font-variant-numeric: tabular-nums;
}
.peg-tag__ends span { white-space: nowrap; }
.pegboard__note {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--border);
}
.peg-tag__big {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #b82733;
}
.pegboard__src {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #52525b;
  line-height: 1.45;
}
.pegboard__src a {
  color: #3f3f46;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .pegboard { padding: 1rem 0.9rem 0.8rem; }
  .peg-tag__label { font-size: 0.85rem; }
}

/* Gear grid: 5 cards fill evenly */
@media (min-width: 700px) and (max-width: 1099px) {
  [data-lg-revenue="affiliate"] .data-grid { grid-template-columns: repeat(6, 1fr); }
  [data-lg-revenue="affiliate"] .data-grid > .data-card { grid-column: span 2; }
  [data-lg-revenue="affiliate"] .data-grid > .data-card:nth-child(4) { grid-column: 2 / span 2; }
  [data-lg-revenue="affiliate"] .data-grid > .data-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1100px) {
  [data-lg-revenue="affiliate"] .data-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Tables on phones: the table scrolls sideways with a fade edge hint */
@media (max-width: 640px) {
  lg-table {
    display: block;
    max-width: 100%;
    min-width: 0;
  }
  lg-table table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background:
      linear-gradient(to right, #ffffff 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local,
      linear-gradient(to left, #ffffff 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local,
      linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0)) left center / 12px 100% no-repeat scroll,
      linear-gradient(to left, rgba(0,0,0,0.22), rgba(0,0,0,0)) right center / 12px 100% no-repeat scroll;
  }
  lg-table [class*="wrap"],
  lg-table [class*="scroll"] {
    max-width: 100%;
    overflow-x: auto;
  }
  lg-table th,
  lg-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
  lg-table td { min-width: 6.5rem; }
  lg-table caption,
  lg-table p,
  lg-table .note,
  lg-table small {
    white-space: normal;
    text-align: left;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Contrast fixes for affiliate blocks */
.aff-box a { color: #9f1f2b; }
.aff-cta--hero .aff-cta__title { color: #18181b; }
.aff-cta--hero .aff-cta__text { color: #3f3f46; }
.aff-cta--hero .aff-cta__sub { color: #3f3f46; opacity: 1; }
.aff-cta--hero .aff-cta__note { color: #3f3f46; opacity: 1; }