.wx-editorial {
  --wx-bg: #f4f2ec;
  --wx-ink: #171713;
  --wx-rule: #c9c6bc;
  color: var(--wx-ink);
  background: var(--wx-bg);
  font: 400 16px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
body.wx-editorial { margin: 0; }
.wx-editorial[data-brand="weiyaworks"] { --wx-bg: #f2f2f2; --wx-rule: #c8c8c8; }
.wx-editorial *, .wx-editorial *::before, .wx-editorial *::after { box-sizing: border-box; }
.wx-editorial > header, .wx-editorial > main, .wx-editorial > footer {
  max-width: 1440px; margin-inline: auto; padding-inline: clamp(18px, 5vw, 75px);
}
.wx-editorial > header {
  min-height: 78px; display: flex; align-items: center; gap: 28px; justify-content: space-between; padding-block: 14px;
}
.wx-editorial header img { display: block; width: 36px; height: 36px; object-fit: contain; }
.wx-editorial nav, .wx-editorial .wx-section-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.wx-editorial a { color: inherit; text-underline-offset: .18em; }
.wx-editorial nav a { text-decoration: none; }
.wx-editorial a:hover, .wx-editorial nav a[aria-current], .wx-editorial a:focus-visible { text-decoration: underline; }
.wx-editorial a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wx-editorial h1, .wx-editorial h2, .wx-editorial h3 { color: inherit; font-weight: 520; line-height: 1.16; }
.wx-editorial h1 { margin: 0 0 24px; max-width: 20ch; font-size: clamp(31px, 5vw, 66px); letter-spacing: -.035em; }
.wx-editorial:lang(zh) h1 { max-width: 24em; letter-spacing: -.02em; line-height: 1.25; }
.wx-editorial article > .wx-lead, .wx-editorial .wx-intro { max-width: 64ch; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.wx-editorial .wx-title { padding-block: clamp(32px, 7vw, 105px) 36px; border-bottom: 1px solid var(--wx-rule); }
.wx-editorial .wx-title > p { margin: 0 0 14px; }
.wx-editorial .wx-items { list-style: none; margin: 0; padding: 0 0 42px; }
.wx-editorial .wx-items > li { padding: 24px 0; border-bottom: 1px solid var(--wx-rule); }
.wx-editorial .wx-items h2 { margin: 6px 0; font-size: clamp(20px, 3vw, 30px); }
.wx-editorial .wx-items p { margin: 6px 0; max-width: 72ch; }
.wx-editorial .wx-kicker, .wx-editorial .wx-meta { color: #505049; font-size: .9rem; }
.wx-editorial article { display: flex; flex-direction: column; align-items: stretch; }
.wx-editorial .wx-body { width: 100%; max-width: 69ch; padding-block: 20px 56px; overflow-wrap: anywhere; }
.wx-editorial .wx-body:lang(zh) { max-width: 44rem; }
.wx-editorial .wx-body h2 { margin-block: 1.65em .65em; font-size: clamp(21px, 3vw, 28px); }
.wx-editorial .wx-body h3 { margin-block: 1.2em .45em; font-size: 1.15em; }
.wx-editorial .wx-body p { margin-block: .85em; }
.wx-editorial .wx-contact, .wx-editorial > footer { border-top: 1px solid var(--wx-rule); padding-block: 28px; }
.wx-editorial.wx-entry { position: relative; display: block; margin: 0; padding: 28px clamp(18px, 5vw, 75px); border-top: 1px solid var(--wx-rule); }
.wx-editorial.wx-entry h2 { font-size: 21px; font-weight: 530; line-height: 1.25; margin: 0 0 12px; }
.wx-editorial.wx-entry a { text-decoration: underline; }

/* Homepage news motion: Deco uses a quiet ruler-like rail; Works uses a
   black editorial strip that belongs to its graphic system. */
.wx-home-ticker {
  --wx-ticker-gap: clamp(28px, 4vw, 72px);
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  font-family: "PPFraktionMono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}
.wx-home-ticker__label,
.wx-home-ticker__more { flex: 0 0 auto; color: inherit; text-decoration: none; }
.wx-home-ticker__label { padding-inline: 18px; white-space: nowrap; }
.wx-home-ticker__more { padding-inline: 14px 18px; font-size: 16px; }
.wx-home-ticker__viewport { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.wx-home-ticker__track { display: flex; width: max-content; animation: wx-home-ticker-scroll 34s linear infinite; }
.wx-home-ticker__set { display: flex; flex: 0 0 auto; align-items: center; gap: var(--wx-ticker-gap); padding-right: var(--wx-ticker-gap); }
.wx-home-ticker__item { display: inline-flex; align-items: baseline; gap: 10px; min-width: max-content; color: inherit; text-decoration: none; }
.wx-home-ticker__item:hover .wx-home-ticker__title,
.wx-home-ticker__item:focus-visible .wx-home-ticker__title { text-decoration: underline; text-underline-offset: .2em; }
.wx-home-ticker__kind { opacity: .62; font-size: .86em; }
.wx-home-ticker__title { white-space: nowrap; }
@keyframes wx-home-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wx-home-ticker--weiyadeco {
  position: fixed;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 42px;
  height: 38px;
  color: #111;
  background: rgba(255, 255, 255, .94);
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  pointer-events: none;
}
.wx-home-ticker--weiyadeco > * { pointer-events: auto; }
.wx-home-ticker--weiyadeco .wx-home-ticker__label { border-right: 1px solid #111; }

.wx-home-ticker--weiyaworks {
  position: relative;
  min-height: 58px;
  color: #fff;
  background: #000;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #000;
}
.wx-home-ticker--weiyaworks .wx-home-ticker__label { font-size: 13px; }
.wx-home-ticker--weiyaworks .wx-home-ticker__more { color: #fff; }

.wx-home-ticker:hover .wx-home-ticker__track,
.wx-home-ticker:focus-within .wx-home-ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .wx-home-ticker__track { animation: none; }
  .wx-home-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .wx-home-ticker__viewport::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .wx-editorial > header { align-items: flex-start; gap: 14px; }
  .wx-editorial nav { gap: 5px 14px; font-size: 14px; }
  .wx-editorial h1 { font-size: clamp(29px, 8.5vw, 39px); }
}

@media (max-width: 600px) {
  .wx-home-ticker { font-size: 11px; }
  .wx-home-ticker__label { padding-inline: 10px; }
  .wx-home-ticker__more { padding-inline: 10px; }
  /* The mobile contact control occupies the lower-right corner. Keep the
     Deco rail clear of it while preserving the ruler-line treatment. */
  .wx-home-ticker--weiyadeco {
    left: 12px;
    right: 88px;
    width: auto;
    bottom: 62px;
    min-height: 32px;
    height: 32px;
  }
  .wx-home-ticker--weiyadeco .wx-home-ticker__label { padding-inline: 8px; }
  .wx-home-ticker--weiyadeco .wx-home-ticker__more { padding-inline: 8px; }
  .wx-home-ticker--weiyadeco .wx-home-ticker__item { gap: 7px; }
  .wx-home-ticker--weiyaworks { min-height: 52px; }
}

/* The Works mobile header is fixed at the intermediate tablet breakpoint.
   Move the hero text and cards below that header so the 700–768px layout
   keeps every label readable instead of stacking the title under the menu. */
@media (min-width: 700px) and (max-width: 768px) {
  body.weiyaworks .section-topbannerhome .top-banner-home__heading-wrap { top: 151px !important; }
  body.weiyaworks .section-topbannerhome .latest-work { top: 293px !important; }
}
