/* Page-scoped refinements; the legacy theme forces several card styles. */
body.site-hk-zh:is(.page-id-clients, .page-id-care) {
  --presentation-line: #ded8cd;
  --presentation-ink: #29271f;
  --presentation-muted: #635e52;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) main > .section {
  scroll-margin-top: 92px;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero {
  padding-block: clamp(38px, 5vw, 70px);
  border-bottom: 0 !important;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-layout {
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-copy {
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero h1 {
  font-family: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif !important;
  font-size: clamp(34px, 3.8vw, 52px) !important;
  line-height: 1.3 !important;
  max-width: 12em;
  text-wrap: balance;
  margin-block: 16px 22px;
  color: var(--presentation-ink);
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero .page-intro {
  font-size: 17px;
  line-height: 1.8;
  color: var(--presentation-muted);
  max-width: 34em;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-actions {
  margin-top: 28px;
}

/* Reset the fixed-height, padded frame that cropped the Clients hero panel. */
body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual {
  display: block;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  border: 1px solid var(--presentation-line) !important;
  border-radius: 12px !important;
  background: #f7f3eb !important;
  box-shadow: none !important;
  overflow: hidden;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual::before,
body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual::after {
  display: none !important;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
  flex: none;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual-photo img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}

body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual-content {
  position: relative;
  inset: auto;
  padding: 18px 22px;
  border: 0;
  background: #f4efe5;
  color: var(--presentation-ink);
}

body.site-hk-zh.page-id-clients .page-hero-visual .mini-stat {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.site-hk-zh.page-id-clients .page-hero-visual .mini-stat :is(strong, span) {
  color: var(--presentation-ink);
}

body.site-hk-zh.page-id-care .page-hero-visual-photo-micro {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 18px;
  padding: 7px 12px;
  border-radius: 4px;
  background: rgb(30 28 24 / 80%);
  color: #fff9ee;
  font-size: 11px;
  letter-spacing: .05em;
}

body.site-hk-zh.page-id-care .page-hero-visual-overlay { display: none; }

/* A single ruled statistics strip replaces stacked frames. */
body.site-hk-zh.page-id-clients .section-clients-work-stats {
  background: #f8f6f0;
  border: 0;
  padding-block: 0 38px;
}

body.site-hk-zh.page-id-clients .section-clients-work-stats .work-stats {
  border: 0;
  border-block: 1px solid var(--presentation-line);
  border-radius: 0;
  background: transparent;
}

body.site-hk-zh.page-id-clients .portfolio-screen-card {
  border: 1px solid var(--presentation-line);
  border-radius: 12px;
  box-shadow: none;
}

body.site-hk-zh.page-id-clients .portfolio-screen-card:hover {
  border-color: #ab874c;
  box-shadow: 0 10px 24px rgb(65 47 21 / 8%);
  transform: translateY(-2px);
}

/* Real project screenshots lead; anonymous patterns use readable text. */
body.site-hk-zh.page-id-clients .work-case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
}

body.site-hk-zh.page-id-clients .work-case-card {
  border: 0;
  border-top: 1px solid var(--presentation-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.site-hk-zh.page-id-clients .work-case-visual { display: none; }
/* Explicit card display rules must still respect the filter's hidden state. */
body.site-hk-zh.page-id-clients :is(.work-case-card, .portfolio-screen-card, .work-empty)[hidden] { display: none !important; }
body.site-hk-zh.page-id-clients .work-case-body { padding: 24px 0 16px; }
body.site-hk-zh.page-id-clients .work-case-card h3 { font-size: 22px; line-height: 1.45; }
body.site-hk-zh.page-id-clients .work-case-care { padding: 12px 0 0; border-color: var(--presentation-line); }
body.site-hk-zh.page-id-clients .work-case-tag { background: #f1ece2; border-color: transparent; }

body.site-hk-zh.page-id-clients .work-filter-panel {
  padding: 22px 0;
  border: 0;
  border-block: 1px solid var(--presentation-line);
  border-radius: 0;
  background: transparent;
}

body.site-hk-zh.page-id-clients .work-filter-chip {
  min-height: 40px;
  padding: 9px 14px;
  border-color: var(--presentation-line);
  box-shadow: none;
}

body.site-hk-zh.page-id-clients .work-filter-chip.is-active {
  color: #fff;
  background: #473721;
  border-color: #473721;
}

/* Native disclosures keep every directory entry accessible without a long wall. */
body.site-hk-zh.page-id-clients .logo-group--expandable {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--presentation-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.site-hk-zh.page-id-clients .logo-group--expandable:last-child { border-bottom: 1px solid var(--presentation-line); }
body.site-hk-zh.page-id-clients .logo-group-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
body.site-hk-zh.page-id-clients .logo-group-toggle::-webkit-details-marker { display: none; }
body.site-hk-zh.page-id-clients .logo-group-toggle:focus-visible { outline: 2px solid #a86b20; outline-offset: 4px; }
body.site-hk-zh.page-id-clients .logo-group-toggle .logo-group-title { margin: 0; font-size: 21px; line-height: 1.5; }
body.site-hk-zh.page-id-clients .logo-group-count { color: #73644b; font-size: 13px; font-variant-numeric: tabular-nums; }
body.site-hk-zh.page-id-clients .logo-group-indicator { margin-left: auto; color: #8c611e; font-size: 25px; }
body.site-hk-zh.page-id-clients .logo-group-indicator::before { content: "+"; }
body.site-hk-zh.page-id-clients .logo-group[open] .logo-group-indicator::before { content: "−"; }
body.site-hk-zh.page-id-clients .logo-group-content { padding-bottom: 30px; }
body.site-hk-zh.page-id-clients .logo-group-summary { margin: 0 0 20px; }
body.site-hk-zh.page-id-clients .logo-group-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
body.site-hk-zh.page-id-clients .logo-group .logo-card { border: 1px solid var(--presentation-line); border-radius: 8px; box-shadow: none; }

/* Care uses open service rows and a quieter summary band. */
body.site-hk-zh.page-id-care .editorial-entry .editorial-outcome {
  margin-top: 15px;
  color: var(--editorial-ink);
  font-size: 13px;
  font-weight: 600;
}
body.site-hk-zh.page-id-care .editorial-section > .container { width: min(1140px, 92%); max-width: none; }
body.site-hk-zh.page-id-care .section-care-quick { padding-block: 34px; }
body.site-hk-zh.page-id-care .work-quick-answer { padding: 0 0 0 24px; border: 0; border-left: 3px solid #bd8531; border-radius: 0; background: transparent; box-shadow: none; }

body.site-hk-zh:is(.page-id-clients, .page-id-care) :is(.section-clients-cta, .section-care-band) .container { max-width: none; }
body.site-hk-zh:is(.page-id-clients, .page-id-care) :is(.section-clients-cta, .section-care-band) .service-cta {
  padding: 16px 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 980px) {
  body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-layout { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
}
@media (min-width: 1200px) {
  body.site-hk-zh.page-id-care .editorial-section > .container { width: min(1200px, 90%); }
}
@media (max-width: 979px) {
  body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-layout { grid-template-columns: minmax(0, 1fr); }
  body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual-photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body.site-hk-zh:is(.page-id-clients, .page-id-care) main > .section > .container { padding-inline: 0; }
  body.site-hk-zh.page-id-clients .work-case-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.site-hk-zh.page-id-clients .work-filter-chips { flex-wrap: wrap; overflow: visible; }
  body.site-hk-zh.page-id-clients .logo-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.site-hk-zh.page-id-clients .logo-group-toggle .logo-group-title { font-size: 18px; }
  body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-visual-photo { aspect-ratio: 4 / 3; }
  body.site-hk-zh:is(.page-id-clients, .page-id-care) .page-hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
