/* Expanded offer pages: full accounting and HR/payroll. */
.service-page {
  min-width: 0;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.75;
}

.service-page__header {
  padding-bottom: 36px;
  border-bottom: 1px solid #e7e1e3;
}

.service-page .service-page__header h1 {
  margin: 0 0 22px;
  color: var(--cubs-burgundy);
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-transform: none;
  text-wrap: balance;
}

.service-page__lead {
  color: #342c2f;
  font-size: 18px;
  line-height: 1.65;
}

.service-section {
  margin-top: 52px;
}

.service-page .service-section h2,
.service-page .service-cta h2 {
  margin: 0 0 18px;
  color: var(--cubs-text);
  font-size: 23px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-transform: none;
  text-wrap: balance;
}

.service-page .service-section h3 {
  margin: 0 0 13px;
  color: var(--cubs-burgundy);
  font-size: 17px;
  line-height: 1.4;
  text-transform: none;
}

.service-page p,
.service-page li,
.service-page summary,
.service-page a {
  overflow-wrap: anywhere;
}

.service-page .service-audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.service-page .service-audience li {
  position: relative;
  padding: 15px 0 15px 20px;
  border-top: 1px solid #e7e1e3;
  line-height: 1.65;
}

.service-page .service-audience li::before {
  position: absolute;
  top: 25px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--cubs-burgundy);
  content: "";
}

.service-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #d9cdd1;
  border-left: 1px solid #d9cdd1;
}

.service-scope__group {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid #d9cdd1;
  border-bottom: 1px solid #d9cdd1;
}

.service-page .service-scope__group ul {
  padding-left: 19px;
  margin: 0;
  list-style-position: outside;
}

.service-page .service-scope__group li {
  margin-bottom: 9px;
  line-height: 1.65;
}

.service-page .service-scope__group li:last-child {
  margin-bottom: 0;
}

.service-scope__note {
  padding: 18px 20px;
  margin: 20px 0 0 !important;
  background: #f7f1f3;
  color: #51474b;
  font-size: 13px;
  line-height: 1.7;
}

.service-page .service-process {
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
  counter-reset: service-process;
}

.service-process li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 16px;
  padding: 19px 0;
  border-top: 1px solid #e7e1e3;
  counter-increment: service-process;
}

.service-process li::before {
  grid-row: 1 / 3;
  color: var(--cubs-burgundy);
  content: counter(service-process, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-process strong {
  color: var(--cubs-text);
  line-height: 1.45;
}

.service-process span {
  line-height: 1.7;
}

.service-faq details {
  border-top: 1px solid #d9cdd1;
}

.service-faq details:last-child {
  border-bottom: 1px solid #d9cdd1;
}

.service-faq summary {
  position: relative;
  padding: 18px 38px 18px 0;
  color: var(--cubs-text);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
}

.service-faq summary::-webkit-details-marker {
  display: none;
}

.service-faq summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--cubs-burgundy);
  border-bottom: 2px solid var(--cubs-burgundy);
  content: "";
  transform: translateY(-70%) rotate(45deg);
}

.service-faq details[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.service-faq summary:focus-visible {
  outline: 2px solid var(--cubs-burgundy);
  outline-offset: 3px;
}

.service-faq details p {
  padding: 0 38px 20px 0;
  margin: 0;
}

.service-related ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-related a {
  display: inline;
  color: var(--cubs-burgundy);
  font-weight: 700;
  line-height: 1.55;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.service-related a:hover,
.service-related a:focus-visible {
  color: var(--cubs-burgundy-light);
}

.service-page .service-cta {
  padding: 30px;
  margin-top: 58px;
  border: 0;
  border-top: 1px solid #d9cdd1;
  background: #f7f1f3;
}

.service-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-page .service-cta__actions a {
  min-height: 46px;
  padding: 10px 22px;
}

.service-page .service-cta__actions .service-cta__secondary {
  border: 1px solid var(--cubs-burgundy);
  background: transparent;
  color: var(--cubs-burgundy);
}

.service-page .service-cta__actions .service-cta__secondary:hover,
.service-page .service-cta__actions .service-cta__secondary:focus-visible {
  background: var(--cubs-burgundy);
  color: #fff;
}

@media (max-width: 980px) {
  .service-page .service-audience,
  .service-scope,
  .service-related ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .service-page {
    max-width: none;
  }

  .service-page__header {
    padding-bottom: 28px;
  }

  .service-page .service-page__header h1 {
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .service-page__lead {
    font-size: 17px;
    line-height: 1.6;
  }

  .service-section {
    margin-top: 42px;
  }

  .service-scope__group {
    padding: 24px 22px;
  }

  .service-page .service-cta {
    padding: 26px 22px;
    margin-top: 48px;
  }
}

@media (max-width: 380px) {
  .service-page .service-page__header h1 {
    font-size: 27px;
  }

  .service-page .service-section h2,
  .service-page .service-cta h2 {
    font-size: 21px;
  }

  .service-scope__group {
    padding: 22px 18px;
  }

  .service-process li {
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 2px 11px;
  }

  .service-faq summary {
    padding-right: 30px;
  }

  .service-faq details p {
    padding-right: 0;
  }

  .service-cta__actions,
  .service-page .service-cta__actions a {
    width: 100%;
  }
}
