@media (max-width: 360px) {
  .subpages-clean.business-page .subpage-hero::after {
    background: linear-gradient(to bottom, transparent 8%, rgb(9 15 29 / .55) 31%, rgb(9 15 29 / .80));
  }
}

.category-shell {
  padding-inline: var(--page-margin);
}

.category-group {
  padding: clamp(48px, 5vw, 80px) 0 0;
}

.category-group + .category-group {
  margin-top: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--frame-border);
}

.business-page .category-group + .category-group,
.business-page .footer {
  border-top: 0;
}

.category-group-intro {
  max-width: 740px;
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.category-group-intro > p {
  margin-block: 16px 20px;
  color: var(--sub);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.category-service,
.booking-page .booking-category {
  position: relative;
  min-width: 0;
  padding: clamp(20px, 2vw, 24px);
  border: 1px solid var(--frame-border);
  border-radius: var(--site-corner);
  background: var(--white);
}

.category-legacy-anchor {
  position: absolute;
  top: 0;
}

.category-service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.category-icon,
.booking-page .booking-category .subpage-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 36px;
  border-radius: var(--site-corner);
  background: var(--brand);
  color: var(--white);
}

.sd-main .category-service > h3,
.booking-page .booking-category > h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.category-service > p {
  margin-bottom: 28px;
  color: var(--sub);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.sd-main :is(.category-chip, .category-task) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 10px 20px;
  border: 1px solid var(--frame-border);
  border-radius: var(--site-corner);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  list-style: none;
}

.sd-main .category-chip {
  border-radius: var(--button-corner);
  cursor: pointer;
}

.booking-category .category-chips {
  margin-top: 24px;
  list-style: none;
}

.category-task {
  overflow-wrap: anywhere;
}

.category-more-item { list-style: none; }

.sd-main .category-more {
  background: var(--blue-pale);
  border-color: var(--brand-border);
  color: var(--blue);
}

html:has(.category-feature-dialog[open]) { overflow: hidden; }

.category-feature-dialog {
  --feature-gutter: clamp(16px, 3vw, 32px);
  inline-size: min(720px, calc(100% - 32px));
  max-block-size: min(720px, calc(100% - 32px));
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--frame-border);
  border-radius: var(--site-corner);
  background: var(--white);
  color: var(--navy);
}

.category-feature-dialog::backdrop { background: rgba(9, 15, 29, .62); }

.category-feature-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px var(--feature-gutter);
  border-bottom: 1px solid var(--frame-border);
  background: var(--white);
}

.sd-main .category-feature-header h2 { font-size: clamp(21px, 3vw, 30px); }

.category-feature-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--frame-border);
  background: var(--white);
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
}

.category-feature-content { padding: 20px var(--feature-gutter) var(--feature-gutter); }
.category-feature-content > p { color: var(--sub); }

.category-feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px 24px;
  margin-block: 24px;
}

.sd-main .category-feature-list h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.category-feature-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.category-chip::-webkit-details-marker {
  display: none;
}

.category-chip[aria-expanded="true"],
details[open] > .category-chip {
  background: var(--blue-pale);
  border-color: var(--brand-border);
}

.category-disclosures .category-detail:not([open]):not(:target),
.category-shell[data-enhanced] .category-disclosures .category-detail:not([open]),
.category-reference:not(:target) {
  display: none;
}

.category-disclosures :is(.category-detail, .category-reference) {
  margin-top: 20px;
  border-top: 1px solid var(--frame-border);
}

.category-reference > h4 {
  padding-block: 13px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
}

.category-disclosures {
  width: 100%;
}

.sd-main .category-detail > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 13px;
  min-height: 48px;
  color: var(--brand);
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.category-detail > summary::-webkit-details-marker {
  display: none;
}

:is(.category-detail, .category-reference) .sd-inclusions {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-bottom: 16px;
}

:is(.category-detail, .category-reference) .sd-inclusions > div:first-child {
  border-top: 0;
  padding-top: 8px;
}

.category-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.category-detail-actions .sd-text-link {
  min-height: 44px;
}

.category-detail-image {
  margin-top: 20px;
  width: 100%;
  height: auto;
  border-radius: var(--site-corner);
}

.category-answer + .category-answer {
  margin-top: 18px;
}

.sd-main .category-answer h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.category-page .category-shell > .subpage-content {
  padding-inline: 0;
}

.category-page .category-shell > :last-child {
  margin-bottom: clamp(40px, 5vw, 72px);
}

@media (hover: hover) and (pointer: fine) {
  .category-chip:hover {
    background: var(--brand-pale);
    border-color: var(--brand-border);
  }

  .category-detail > summary:hover {
    color: var(--brand-hover);
  }
}

@media (max-width: 740px) {
  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-icon,
  .booking-page .booking-category .subpage-icon {
    margin-bottom: 24px;
  }

  :is(.category-chip, .category-task) {
    padding-inline: 14px;
  }
}
