/*
 * GameTime: Score / Share / Follow
 * Every rule is scoped to .gt-features; no page-wide resets or dependencies.
 * Change the variables below to match your live theme.
 */
.gt-features {
  --gtf-bg: #fcfaf6;
  --gtf-ink: #11171c;
  --gtf-muted: #596373;
  --gtf-orange: #ff501a;
  --gtf-orange-text: #b8320a;
  --gtf-border: #d9dde1;
  --gtf-white: #ffffff;
  --gtf-font: Inter, Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 48px);
  background: var(--gtf-bg);
  color: var(--gtf-ink);
  font-family: var(--gtf-font);
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  container-type: inline-size;
  container-name: gt-feature-band;
}

.gt-features *,
.gt-features *::before,
.gt-features *::after {
  box-sizing: border-box;
}

.gt-features .gt-features__grid {
  display: grid;
  /* Also responds to a narrow CMS column, not just the viewport width. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  max-width: 1320px;
  margin: 0 auto;
  gap: 36px;
}

.gt-features .gt-features__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.gt-features .gt-features__step {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
  color: var(--gtf-orange-text);
  font-size: 1.25em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gt-features .gt-features__step::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #bfc4ca;
}

.gt-features .gt-features__title {
  margin: 0 0 8px;
  padding: 0;
  color: var(--gtf-ink);
  font-family: var(--gtf-font);
  font-size: clamp(1.7em, 2.45vw, 2.15em);
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: none;
  text-wrap: balance;
}

.gt-features .gt-features__description {
  min-height: 3em;
  margin: 0 0 22px;
  padding: 0;
  color: var(--gtf-muted);
  font-family: var(--gtf-font);
  font-size: 1em;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.gt-features .gt-features__preview {
  width: 100%;
  min-height: 322px;
  margin: auto 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gtf-border);
  border-radius: 12px;
  background: var(--gtf-white);
  box-shadow: 0 6px 20px rgb(19 27 35 / 4%);
  font-family: var(--gtf-font);
  font-size: 14px;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: normal;
}

.gt-features .gt-features__illustration {
  width: 100%;
  padding: 18px;
}

.gt-features .gt-features__scorekeeper {
  border-color: #353d46;
  background: #181e25;
  color: #ffffff;
}

.gt-features .gt-features__app-bar,
.gt-features .gt-features__panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.gt-features .gt-features__app-name {
  font-size: 1.2em;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.06em;
}

.gt-features .gt-features__app-name > span {
  color: #ff8254;
}

.gt-features .gt-features__sample {
  color: #bbc3ce;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.gt-features .gt-features__scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 27px;
  text-align: center;
}

.gt-features .gt-features__score-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gt-features .gt-features__score-team > span {
  font-size: 14px;
  color: #f4f6f9;
}

.gt-features .gt-features__score-team > strong {
  color: #fff;
  font-size: 3.7em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gt-features .gt-features__clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #c3ccd8;
  font-size: 12px;
}

.gt-features .gt-features__clock > strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gt-features .gt-features__live {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--gtf-orange);
  color: #14191f;
  font-size: 12px;
  font-weight: 800;
}

.gt-features .gt-features__adjust-row {
  display: grid;
  grid-template-columns: 1fr 1fr 58px 1fr 1fr;
  gap: 8px;
  margin: 17px 0;
}

.gt-features .gt-features__adjust-row > span {
  display: grid;
  place-items: center;
  min-height: 29px;
  border: 1px solid #454e59;
  border-radius: 5px;
  background: #303943;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.gt-features .gt-features__tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.gt-features .gt-features__tools > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 65px;
  padding: 8px 2px;
  border: 1px solid #454e59;
  border-radius: 7px;
  background: #2c343e;
  color: #f4f6f9;
  font-size: 12px;
}

.gt-features svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gt-features .gt-features__panel-heading > strong {
  color: var(--gtf-ink);
  font-size: 14px;
  font-weight: 700;
}

.gt-features .gt-features__status {
  color: #687384;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.gt-features .gt-features__matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  text-align: center;
}

.gt-features .gt-features__club {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
}

.gt-features .gt-features__letter {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}

.gt-features .gt-features__letter--orange {
  color: var(--gtf-orange-text);
}

.gt-features .gt-features__letter--blue {
  color: #2355a4;
}

.gt-features .gt-features__result {
  color: var(--gtf-ink);
  font-size: 2em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gt-features .gt-features__result > span {
  padding: 0 3px;
  color: #8c929b;
  font-weight: 400;
}

.gt-features .gt-features__meta {
  margin-top: 12px;
  color: #667181;
  font-size: 12px;
  line-height: 1.5;
}

.gt-features .gt-features__meta > span {
  padding: 0 4px;
}

.gt-features .gt-features__table {
  display: table;
  width: 100%;
  margin: 16px 0 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  color: var(--gtf-ink);
  font-family: var(--gtf-font);
  font-size: 12px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.gt-features .gt-features__table th,
.gt-features .gt-features__table td {
  margin: 0;
  padding: 8px 5px;
  border: 0;
  border-bottom: 1px solid #e9ebee;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: normal;
  text-align: center;
  text-transform: none;
  vertical-align: middle;
  overflow-wrap: normal;
}

.gt-features .gt-features__table thead th {
  background: #f5f6f8;
  color: #5c6879;
  font-size: 12px;
  font-weight: 600;
}

.gt-features .gt-features__table th[scope="row"] {
  text-align: left;
  font-weight: 600;
}

.gt-features .gt-features__table td:last-child {
  font-weight: 700;
}

.gt-features .gt-features__periods thead th:first-child {
  text-align: left;
}

.gt-features .gt-features__share-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  color: var(--gtf-orange-text);
  font-size: 12px;
  font-weight: 600;
}

.gt-features .gt-features__share-line svg {
  width: 16px;
  height: 16px;
}

.gt-features .gt-features__league-table {
  margin-top: 18px;
}

.gt-features .gt-features__league-table th,
.gt-features .gt-features__league-table td {
  padding-block: 10px;
}

.gt-features .gt-features__league-table thead th:nth-child(2) {
  text-align: left;
}

.gt-features .gt-features__league-table tbody tr:first-child {
  background: #fff0e7;
}

.gt-features .gt-features__league-table td:first-child {
  color: #707987;
}

.gt-features .gt-features__standings-note {
  margin-top: 13px;
}

/* Keep the last card balanced when a tablet/container has room for two columns. */
@container gt-feature-band (min-width: 656px) and (max-width: 1001px) {
  .gt-features .gt-features__item:last-child {
    grid-column: 1 / -1;
    width: min(100%, 520px);
    justify-self: center;
  }
}

/* Mobile: one feature per row, with complete previews rather than cropped images. */
@media (max-width: 680px) {
  .gt-features {
    padding: 32px 20px;
  }

  .gt-features .gt-features__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .gt-features .gt-features__item {
    width: 100%;
    max-width: 480px;
    justify-self: center;
  }

  .gt-features .gt-features__title {
    font-size: clamp(1.8em, 7vw, 2.15em);
  }

  .gt-features .gt-features__description {
    min-height: 0;
    margin-bottom: 20px;
  }

  .gt-features .gt-features__preview {
    min-height: 0;
    margin-top: 0;
  }

  .gt-features .gt-features__scorekeeper {
    min-height: 315px;
  }
}

@media (max-width: 360px) {
  .gt-features {
    padding-inline: 16px;
  }

  .gt-features .gt-features__illustration {
    padding: 14px;
  }

  .gt-features .gt-features__matchup {
    gap: 8px;
  }

  .gt-features .gt-features__result {
    font-size: 1.8em;
  }

  .gt-features .gt-features__table th,
  .gt-features .gt-features__table td {
    padding-inline: 3px;
  }
}

/* Integration into the GameTime homepage: the page's .container already
   provides horizontal spacing and the ivory background. */
main > .gt-features {
  margin-top: 28px;
  padding-inline: 0;
  background: transparent;
}
