.category-page {
  --category-sand: #f0ece3;
  --category-gap: clamp(14px, 1.8vw, 26px);
}

.category-page .catcontent .catpage { padding: 0; background: var(--category-sand); }
.category-page .catpage .wrap { width: 100%; max-width: none; }
.category-hero { background: var(--navy); }
.category-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4.5vw, 76px);
  align-items: center;
  padding-block: 26px;
}
.category-hero .head { max-width: 690px; margin: 0; padding-block: 14px; }
.category-hero .eyebrow { margin-bottom: 8px; color: var(--rose); }
.category-hero h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(33px, 4.2vw, 63px);
  line-height: 1.12;
  text-wrap: balance;
}
.category-hero .lead { max-width: 52ch; color: #d1d9e4; font-size: clamp(15px, 1.35vw, 18px); text-wrap: balance; }
.category-hero img {
  width: 100%;
  height: clamp(170px, 20vw, 280px);
  border-radius: 10px;
  object-fit: cover;
  object-position: center 66%;
}

.category-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 355px);
  grid-template-areas: "tools selection" "grid selection";
  gap: var(--category-gap);
  align-items: start;
  padding-block: clamp(24px, 3.4vw, 50px);
}
.category-page .category-toolbar {
  grid-area: tools;
  margin: 0;
  gap: 10px;
}
.category-page .category-toolbar :is(.catsearch, .catsortwrap) {
  min-width: 0;
  height: 46px;
  border-radius: 9px;
}
.category-page .category-toolbar .catsearch:focus-within { border-color: var(--navy); }
.category-workspace .catpick { grid-area: grid; min-width: 0; margin: 0; }
.category-page .catpage .catpick { padding-bottom: 0; }
.category-selection {
  grid-area: selection;
  align-self: start;
  position: sticky;
  top: 154px;
  padding: clamp(14px, 1.6vw, 22px);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px #16202e0d;
}
.category-page[data-selection-preview="navy"] .category-selection {
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}
.category-page[data-selection-preview="navy"] .category-selection :is(.catsel-label, .catsel-clear) { color: var(--white); }
.category-page[data-selection-preview="navy"] .category-selection .catpick-go { background: var(--rose-soft); color: var(--navy); }
.category-page[data-selection-preview="navy"] .category-selection .catpick-go:hover { background: var(--white); }
.category-page .category-selection .catsel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  column-gap: 12px;
  row-gap: 10px;
  margin: 0;
}
.category-page .category-selection .catsel-label { grid-column: 1; grid-row: 1; }
.category-page .category-selection .catsel-clear {
  grid-row: 1;
  min-height: 26px;
  margin: 0;
  font-size: 12px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.category-page .category-selection .catsel-chips {
  grid-column: 1 / -1;
  max-height: min(235px, 37dvh);
  overflow-y: auto;
  padding: 3px;
  margin-inline: -3px;
}
.category-page .category-selection .catpick-foot.catfoot {
  position: static;
  width: 100%;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.category-page .category-selection .catpick-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.category-page .category-selection .catfoot-acts { width: 100%; }
.category-page .category-selection .catclear { display: none; }
.category-page .category-selection .catpick-go { width: 100%; }
.category-page :is(.catpick-go, .catclear, .bmod-foot button) { border-radius: 9px; }

.category-page .catgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.category-page .catcard {
  display: grid;
  grid-template-columns: minmax(0, 36%) minmax(0, 1fr);
  grid-template-areas: "image body" "image actions";
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 138px;
  padding: 0;
  overflow: hidden;
  cursor: default;
  border-radius: 10px;
}
.category-page .catcard:hover { transform: none; box-shadow: 0 5px 16px #16202e14; }
.category-page .catcard.is-on { border-color: transparent; background: #fbf3f0; }
.category-page .catcard-ph {
  position: relative;
  grid-area: image;
  align-self: stretch;
  aspect-ratio: auto;
  padding: 0;
  min-width: 0;
  background: var(--white);
}
.category-page .catcard-ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-page .catcard-body { grid-area: body; align-self: center; padding: 12px 12px 8px; gap: 4px; }
.category-page .catcard-name {
  font-family: var(--font-main);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 650;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.category-page .catcard-desc { font-size: 12px; }
.category-page .catcard-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 10px 10px 12px;
}
.category-page .catcard-actions :is(button, a) {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.category-page .catcard-select { background: var(--navy); color: var(--white); }
.category-page .catcard-select[aria-pressed="true"] { background: var(--rose-soft); color: var(--navy); }
.category-page .catcard-view { background: var(--white); color: var(--navy); }
.category-page .catcard-actions :is(button, a):hover { text-decoration: underline; text-underline-offset: 2px; }
.category-page .catcard-actions :is(button, a):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.category-page .catcard-subs { align-self: flex-start; margin: 3px 0 0; }
.category-page .category-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--home-line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
}

.category-page .category-art-fallback {
  display: grid;
  place-items: center;
  background: #e7e1d8;
  color: var(--navy);
}
.category-page .category-art-fallback svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-page .bsub-ph { display: grid; padding: 0; overflow: hidden; border-radius: 7px; }
.category-page .bsub-ph img { width: 100%; height: 100%; object-fit: cover; }

.category-page .category-service {
  padding-block: clamp(34px, 3.4vw, 58px);
  background: var(--white);
}
.category-page .category-service .head { margin-bottom: 20px; }
.category-page .category-service .tile {
  padding: 14px;
  border-radius: 10px;
  background: var(--category-sand);
  text-align: left;
}
.category-page .category-service .tile .ic { margin: 0 0 8px; }

@media (max-width: 1000px) {
  .category-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "tools" "selection" "grid";
  }
  .category-selection { position: static; }
}
@media (max-width: 670px) {
  .category-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  .category-hero .head { padding: 3px 0 0; }
  .category-hero img { height: clamp(125px, 34vw, 210px); }
  .category-page .category-toolbar .catsearch { flex-basis: 100%; }
  .category-page .catgrid { grid-template-columns: minmax(0, 1fr); }
  .category-page .catcard { min-height: 124px; }
}
