/* Nox Foundry RC42 component repairs. Spacing uses 4, 8, 16, 24, 32 and 48px plus viewport-aware section padding. */

/* The portrait pair keeps the original camera frame and puts names below it. */
.cf-site.cf-home .cf-people > .cf-people-pair {
  box-sizing: border-box;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 408px));
  justify-content: center;
  align-items: start;
  gap: clamp(16px, 4vw, 48px);
  padding: 0 var(--cf-pad) clamp(32px, 5vw, 72px);
  min-width: 0;
}

.cf-site.cf-home .cf-people .cf-principal-card {
  display: block;
  margin: 0;
  min-width: 0;
  height: auto !important; /* Supersedes the previous fixed-height principal frame. */
  min-height: 0 !important;
  overflow: visible;
}

.cf-site.cf-home .cf-people .cf-principal-card::after {
  content: none;
}

.cf-site.cf-home .cf-people .cf-principal-card > img {
  display: block;
  position: static;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.cf-site.cf-home .cf-people .cf-principal-caption {
  border-top: 1px solid #a79b83;
  padding: 16px 0 0;
  color: #172126;
}

.cf-site.cf-home .cf-people .cf-principal-caption > span {
  display: block;
  margin: 0 0 4px;
  color: #6c5433;
  font-size: max(12px, .75rem);
  line-height: 1.5;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

.cf-site.cf-home .cf-people .cf-principal-caption > h3 {
  margin: 0;
  color: inherit;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.cf-site.cf-home .cf-people .cf-principal-caption a {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding-block: 6px;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #836c4a;
  text-underline-offset: .13em;
}

.cf-site.cf-home .cf-people .cf-principal-caption a > span {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.cf-site.cf-home .cf-people .cf-principal-caption a:focus-visible {
  outline: 2px solid #6c5433;
  outline-offset: 3px;
}

html[lang^="zh"] .cf-site.cf-home .cf-people .cf-principal-caption > span {
  letter-spacing: normal;
}

/* The existing sample carries three concise outputs and a distinct action. */
.cf-site.cf-home .rc26-delivery .cf-memo-copy {
  --memo-action-gap: 24px;
  min-width: 0;
}

.cf-site.cf-home .rc26-delivery .cf-memo-outputs {
  margin: 0;
  padding-inline-start: 1.3em;
  display: grid;
  gap: 8px;
  list-style: disc outside;
}

.cf-site.cf-home .rc26-delivery .cf-memo-outputs > li::marker {
  color: var(--rc26-accent);
}

.cf-site.cf-home .rc26-delivery .cf-memo-outputs p {
  margin: 0;
  line-height: 1.6;
}

.cf-site.cf-home .rc26-delivery .cf-memo-outputs strong {
  font-weight: 600;
  color: var(--cf-paper);
}

.cf-site.cf-home .rc26-delivery .cf-memo-copy > .cf-button {
  box-sizing: border-box;
  max-width: 100%;
  margin-block-start: var(--memo-action-gap);
  white-space: normal;
  overflow-wrap: anywhere;
}

.cf-site.cf-home .rc26-delivery .cf-memo-copy > .cf-button > span {
  flex: none;
}

.cf-site.cf-home .rc26-delivery .cf-memo-copy > .cf-button:focus-visible {
  outline: 2px solid var(--cf-paper);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .cf-site.cf-home .cf-people > .cf-people-pair {
    grid-template-columns: minmax(0, 408px);
    gap: 24px;
  }

  .cf-site.cf-home .rc26-delivery .cf-memo-copy {
    --memo-action-gap: 18px;
  }
}

/* D13-03 and D13-04: use the regional photographs' native landscape ratio.
   At wider widths each sizes attribute matches its 46% or 54% grid column. */
.v14-regions .v14-region-visual {
  width: 100%;
  height: auto;
  min-height: 0;
  top: 100px;
  aspect-ratio: 1672 / 941;
}

.v14-regions .v14-region-visual picture {
  position: absolute;
  inset: 0;
}

.v14-regions .v14-region-visual img {
  filter: none;
}

.v14-regions .v14-region-visual::after {
  content: none;
}

.v14-corridor-overview .v14-region-nav a {
  display: flex;
  align-items: center;
  min-height: 88px;
  padding: 16px 48px 16px 24px;
}

.v14-corridor-overview .v14-region-nav a:first-child {
  padding-inline-start: 0;
}

.v14-corridor-overview .v14-region-nav strong {
  margin: 0;
  overflow-wrap: anywhere;
}

.v14-corridor-overview .v14-region-nav b {
  inset-block: auto;
  inset-inline-end: 16px;
}

.v14-regions .v14-market-list summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.v14-regions .v14-market-list details > div {
  padding-inline-start: 0;
}

/* D13-05: the text-only lead cards use the same copy wrapper as the image
   cards, with their own content-driven height, inset, and title scale. */
.v8-editorial .v6-article-card.d13-text-article-card {
  min-height: 0;
  overflow: visible;
  min-width: 0;
}

.v8-editorial .d13-text-article-card > .v8-article-copy {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(24px, 2.2vw, 32px);
  gap: 16px;
}

.v8-editorial .d13-text-article-card .v8-article-copy > div {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #76582d;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
}

.v8-editorial .d13-text-article-card .v8-article-copy > h2 {
  margin: 0;
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.14;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.v8-editorial .d13-text-article-card .v8-article-copy > p {
  margin: 0;
}

.v8-editorial .d13-text-article-card .v8-article-copy > b {
  margin: auto 0 0;
  padding-block-start: 8px;
  color: #76582d;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .05em;
  overflow-wrap: anywhere;
}

.v8-editorial .v6-article-card.d13-text-article-card:focus-visible {
  outline: 2px solid #76582d;
  outline-offset: -4px;
}

/* D13-06: title, lead, and body remain separate reading roles. */
.v6-company-statement.d13-company-statement {
  padding-block: clamp(48px, 6vw, 96px);
}

.v6-company-statement.d13-company-statement > h2 {
  max-inline-size: 27ch;
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.v6-company-statement.d13-company-statement > p {
  max-inline-size: 60ch;
  margin: 0;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.6;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.v6-company-statement.d13-company-statement > .d13-company-lead {
  margin-block-end: 12px;
  font-size: clamp(20px, 1.6vw, 24px);
}

.v10-profile .v10-profile-biography > p:not(.v6-index) {
  max-inline-size: 62ch;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.65;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.d13-company-statement:lang(zh) > h2,
.v8-editorial .d13-text-article-card:lang(zh) .v8-article-copy > h2 {
  letter-spacing: normal;
}

.v6-company-statement.d13-company-statement:lang(zh) > p,
.v10-profile:lang(zh) .v10-profile-biography > p:not(.v6-index) {
  max-inline-size: 28em;
}

@media (max-width: 1000px) {
  .v14-regions .v14-region-visual {
    top: auto;
  }
}

@media (max-width: 760px) {
  .v8-editorial .d13-text-article-card > .v8-article-copy {
    padding: 20px;
  }

  .v8-editorial .d13-text-article-card .v8-article-copy > h2 {
    font-size: clamp(24px, 5vw, 30px);
  }

  .v6-company-statement.d13-company-statement > p {
    font-size: 17px;
  }

  .v6-company-statement.d13-company-statement > .d13-company-lead,
  .v6-company-statement.d13-company-statement:lang(zh) > p {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .v14-corridor-overview .v14-region-nav a {
    min-height: 64px;
    padding-inline-start: 0;
  }
}

@media (forced-colors: active) {
  .v8-editorial .v6-article-card.d13-text-article-card:focus-visible {
    outline-color: Highlight;
  }
}

/* D13-07. Company profiles keep their own row in the standard footer. */
.cf-footer .cf-footer-socials {
  flex: 1 0 100%;
  min-inline-size: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
}

.cf-footer .cf-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 32px;
  min-block-size: 32px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cf-paper, #f4f0e8);
}

.cf-footer .cf-footer-socials a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cf-footer .cf-footer-socials a:focus-visible,
.v12-entity-grid .cf-company-profile:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.v12-entity-grid .cf-company-profile strong,
.v12-entity-grid .cf-company-profile span {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .v12-entity-grid > div:has(> .cf-company-profile) > a {
    grid-template-columns: minmax(4.75rem, 0.65fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    padding-block: 14px;
  }

  .v12-entity-grid > div:has(> .cf-company-profile) > a span {
    font-size: 0.875rem;
    hyphens: none;
  }
}

@media (max-width: 480px) {
  .cf-footer .cf-footer-socials {
    column-gap: 12px;
  }
}
