/* ==========================================================================
   Hosting page (template-hosting.php) — Entry plan + three-package layout
   Loaded only on the Hosting template, after main.css.
   Entry accent: teal (#12a1a8 icon, #0b6b72 title), alongside Premium blue
   and Pro green.
   ========================================================================== */

/* Entry (package_0): teal circle with a white dot */
.sh-hosting__package-0 .sh-hosting__package-title {
  color: #0b6b72;
}
.sh-hosting__package-0 .sh-hosting__package-title:before {
  background-color: #12a1a8;
}
.sh-hosting__package-0 .sh-hosting__package-title:after {
  content: "";
  display: block;
  position: absolute;
  top: 4px;
  left: 11px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
}

/* Package columns: equal heights, stacked on small screens */
.sh-hosting__package-col {
  height: 100%;
}
.sh-hosting__packages--count-3 .sh-hosting__package-0,
.sh-hosting__packages--count-3 .sh-hosting__package-1 {
  margin-bottom: 4.8rem;
}

.sh-hosting__features-note {
  max-width: 72rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
  font-size: var(--stackhosting-small-font-size);
  opacity: 0.85;
}

/* Tablet (900–1199px): two columns — Entry + Premium, then Pro + helper */
@media (min-width: 900px) {
  .sh-hosting__packages--count-3 {
    row-gap: 5rem;
  }
  .sh-hosting__packages--count-3 .sh-hosting__package-0,
  .sh-hosting__packages--count-3 .sh-hosting__package-1,
  .sh-hosting__packages--count-3 .sh-hosting__package-2 {
    grid-column: span 6;
    margin-bottom: 0;
  }
  .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
    grid-column: 7 / -1;
    grid-row: auto;
    margin-top: 0;
    align-self: center;
  }
}

/* Desktop (1200px+): three columns, helper centred underneath */
@media (min-width: 1200px) {
  .sh-hosting__packages--count-3 {
    row-gap: 0;
  }
  .sh-hosting__packages--count-3 .sh-hosting__package-0,
  .sh-hosting__packages--count-3 .sh-hosting__package-1,
  .sh-hosting__packages--count-3 .sh-hosting__package-2 {
    grid-column: span 4;
  }
  .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
    grid-column: 3 / -3;
    grid-row: 2;
    margin-top: 4.8rem;
    align-self: start;
  }
}

/* Wide (1620px+): three package columns + helper in the fourth column */
@media (min-width: 1620px) {
  .sh-hosting__packages--count-3 .sh-hosting__package-0,
  .sh-hosting__packages--count-3 .sh-hosting__package-1,
  .sh-hosting__packages--count-3 .sh-hosting__package-2 {
    grid-column: span 3;
  }
  .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
    grid-column: 10 / -1;
    grid-row: 1;
    margin-top: 0;
  }
}

/* Where supported, line up the rows inside the cards (titles, prices, top
   buttons, feature lists, bottom buttons) across cards on the same row. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 900px) {
    .sh-hosting__packages--count-3 {
      grid-template-rows: repeat(7, auto) 5rem repeat(7, auto);
      row-gap: 0;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-col {
      height: auto;
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-0 {
      grid-column: 1 / 7;
      grid-row: 1 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-1 {
      grid-column: 7 / -1;
      grid-row: 1 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-2 {
      grid-column: 1 / 7;
      grid-row: 9 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
      grid-column: 7 / -1;
      grid-row: 9 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package {
      height: auto;
      display: grid;
      grid-template-rows: subgrid;
      grid-row: 1 / -1;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-cta--base {
      align-self: end;
    }
  }
  @media (min-width: 1200px) {
    .sh-hosting__packages--count-3 {
      grid-template-rows: repeat(7, auto) auto;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-0 {
      grid-column: 1 / span 4;
      grid-row: 1 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-1 {
      grid-column: 5 / span 4;
      grid-row: 1 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-2 {
      grid-column: 9 / span 4;
      grid-row: 1 / span 7;
    }
    .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
      grid-column: 3 / -3;
      grid-row: 8;
    }
  }
  @media (min-width: 1620px) {
    .sh-hosting__packages--count-3 {
      grid-template-rows: repeat(7, auto);
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-0 {
      grid-column: 1 / span 3;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-1 {
      grid-column: 4 / span 3;
    }
    .sh-hosting__packages--count-3 .sh-hosting__package-2 {
      grid-column: 7 / span 3;
    }
    .sh-hosting__packages--count-3 .sh-hosting__packages-helper {
      grid-column: 10 / -1;
      grid-row: 1 / span 7;
      align-self: start;
    }
  }
}
