/*
 * TOP team band (SPEC §3.1 #3): the grass background with the convex top
 * edge, around the team title (.page-title--on-dark) and the team cards
 * (§2.11). Values from tokens.css only.
 *
 * HTML contract
 *   <section class="team-band" id="team" aria-labelledby="team-title">
 *     <picture class="team-band__media">
 *       <source media="(width >= 768px)" srcset="grass-*.webp …" sizes="100vw">
 *       <img class="team-band__image" src="grass-portrait-390.webp"
 *            srcset sizes="100vw" alt="" width height loading="lazy">
 *     </picture>
 *     <div class="team-band__body container container--top">
 *       <hgroup class="page-title page-title--on-dark"> h2#team-title … </hgroup>
 *       <ul class="team-cards grid grid--quarters"> … </ul>
 *       <p class="team-band__note">詳細は近日公開予定</p>   (design v2)
 *     </div>
 *   </section>
 *   The SP artboard turns the photo 90°, so phones get a portrait crop
 *   (<source> from 768 = the 4-column cards, ASSUMPTION). #team is the
 *   target of the 契約ゴルファー nav links (Q7).
 *
 * The arc: the band box starts at the peak. A mask cuts the top strip
 * (--team-band-arc tall) with the XD curve, stretched to the width
 * (assets/img/team-band-arc.svg, preserveAspectRatio none); the rest of
 * the band is opaque. The marquee follows with no gap (§2.14).
 */

.team-band {
  position: relative;
  padding-block: var(--team-band-padding-block-start)
    var(--team-band-padding-block-end);
  scroll-margin-block-start: var(--space-7);
  background-color: var(--color-green-700); /* while the photo loads */
  mask:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201920%2039.23%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cpath%20d%3D%22M0%2039.23C0%2039.23%20480%200%20960%200C1440%200%201920%2039.23%201920%2039.23Z%22%2F%3E%20%3C%2Fsvg%3E") top / 100% var(--team-band-arc)
      no-repeat,
    linear-gradient(var(--color-mask) 0 0) bottom / 100%
      calc(100% - var(--team-band-arc) + 1px) no-repeat;
}

.team-band__media {
  position: absolute;
  inset: 0;
}

.team-band__image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.team-band__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--team-band-gap);
  align-items: center;
}

.team-band__body > .team-cards {
  align-self: stretch;
}

/* v2: "details coming soon" status box under the cards. Not interactive. */
.team-band__note {
  margin: calc(var(--team-note-gap) - var(--team-band-gap)) 0 0;
  padding: var(--team-note-padding-block) var(--team-note-padding-inline);
  font-size: var(--text-team-note-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--text-team-note-lh);
  color: var(--color-on-dark);
  text-align: center;
  border: var(--team-note-border) solid var(--color-on-dark);
}

@media print {
  .team-band {
    mask: none;
  }

  .team-band__media {
    display: none;
  }
}
