/* Hole sponsor sign template.
   Artwork: assets/img/sign/sign-background.svg (exported from the original
   Sponsor Signs SVG with the baked-in lettering removed).
   All positions are percentages of the original 1632 x 1056 artboard. */

.hole-sponsor-sign {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1632 / 1056;
  overflow: hidden;
  container-type: inline-size;
  color: #000;
  background-color: #dcecd5;
  background-image: url("assets/img/sign/sign-background.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* ---- "HOLE n SPONSORS" title : artboard y 110-210 ---- */
.hole-sign-title {
  position: absolute;
  top: 8.2%;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.06em;
  font-family: "Bungee", Impact, "Arial Black", sans-serif;
  font-size: 6.6cqw;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hole-sign-title .hole-sign-number {
  font-size: 1.5em;
  line-height: 0.8;
}

/* ---- Event line, split into two fixed zones ----
   Artwork keep-outs on the original artboard:
     RPGO logo  ends  ~12.3%
     golfer     spans ~49% - 61%
     tree       starts ~86%
   Each zone is auto-fitted by hole-signs.js so the words never clip. */
.hole-sign-event {
  position: absolute;
  top: 30.5%;
  height: 5.4%;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 2.4cqw; /* = 39px on the printed sign, fixed */
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hole-sign-event > span {
  display: inline-block;
  white-space: nowrap;
}

/* Sits between the logo (ends 12.7%) and the golfer's legs (start ~51%). */
.hole-sign-event-left {
  left: 13%;
  width: 37%;
  justify-content: flex-start;
}

/* Sits between the golfer's legs (end ~58%) and the tree (starts ~86%). */
.hole-sign-event-right {
  left: 59%;
  width: 26.5%;
  justify-content: flex-end;
}

/* ---- Sponsor names inside the golf ball ----
   Full-width band inside the ball. Each line's real max-width is set by
   hole-signs.js from the ball's ellipse, so lines never cross the white edge. */
/* FIXED SIZES. The printed sign is 17 x 11 in = 1632 x 1056 CSS px, so
   1cqw = 16.32px on paper. Sizes below are set from that artboard and are
   never changed by script. */
.hole-sign-sponsor-list {
  position: absolute;
  top: 45%;
  right: 1.5%;
  bottom: 12%;
  left: 1.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hole-sign-sponsor-name,
.hole-sign-empty {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto; /* rows take their natural height */
  align-items: center;
  justify-content: center;
  font-family: "Anton", "Arial Narrow Bold", Impact, sans-serif;
  font-size: 6.43cqw; /* = 105px on the printed 17in sign */
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.0; /* 105px at 105px type */
  text-align: center;
  text-transform: uppercase;
}

/* Every business name stays on a single line; the script shrinks it to fit. */
.hole-sign-sponsor-name > span,
.hole-sign-empty > span {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  white-space: nowrap;
  /* A long name is condensed horizontally by hole-signs.js rather than being
     set smaller, so cap height stays consistent from sign to sign. */
  transform-origin: center center;
}

/* A sponsor with a message stacks the name and the message together. */
.hole-sign-sponsor-name.with-note {
  flex-direction: column;
  gap: 0.1em;
}

.hole-sign-sponsor-note {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 0.52em; /* = 68px on the printed sign */
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: none;
  white-space: nowrap;
}

/* "★ 5 HOLES" runs inline after the name as ordinary text - same font, same
   size, same baseline - so it needs no special alignment. Only the star is
   coloured. */
.hole-sign-sponsor-badge {
  white-space: nowrap;
}

.hole-sign-badge-star {
  color: #d9ad2e;
  text-shadow: 0 0.02em 0 #8a6210;
}

/* Optional logo, matched to the height of the name beside it. */
.hole-sign-sponsor-logo {
  flex: 0 0 auto;
  width: auto;
  height: 1em;
  max-width: 2.4em;
  object-fit: contain;
}

.hole-sign-empty {
  color: #2f4a32;
}
