/* Inner-page text actions use the selected B treatment, scoped away from navigation
   and existing primary buttons. Local surface palettes keep default labels legible. */
body.cinematic-inner main :is(a, button).text-link:not(.button) {
  --inner-action-arrow-x: 2px;
  --inner-action-arrow-y: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  min-width: 0;
  max-width: 100%;
  gap: 24px;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--ink, #242628);
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
body.cinematic-inner main :is(a, button).text-link:not(.button) > span[aria-hidden="true"] {
  flex-shrink: 0;
  transition: transform .18s ease;
}
body.cinematic-inner main [data-surface="graphite"] .ed-related a.text-link {
  border-color: currentColor;
}
body.cinematic-inner main :is(a, button).text-link:not(.button):is(:hover, :focus-visible) {
  background: #fff4f1;
  color: #b9231b;
  border-color: #b9231b;
}
body.cinematic-inner main :is(a, button).text-link:not(.button):focus-visible {
  outline: 2px solid var(--ink, #242628);
  outline-offset: 4px;
}
body.cinematic-inner main :is(a, button).text-link:not(.button):is(:hover, :focus-visible) > span[aria-hidden="true"] {
  transform: translate(var(--inner-action-arrow-x), var(--inner-action-arrow-y));
}
body.cinematic-inner main .pd-download-entry a.text-link:not(.button) {
  --inner-action-arrow-x: 0px;
  --inner-action-arrow-y: 2px;
}
body.cinematic-inner main .news-detail-footer a.text-link[href="/zh/news/"] {
  --inner-action-arrow-x: -2px;
  --inner-action-arrow-y: 0px;
}
body.cinematic-inner main button.text-link[data-dl-reset] { --inner-action-arrow-y: 0px; }
/* These two independent actions must wrap instead of squeezing at phone widths. */
body.cinematic-inner main .news-detail-footer > .wrap { flex-wrap: wrap; gap: 12px 20px; }
@media (max-width: 767px) {
  body.cinematic-inner main :is(a, button).text-link:not(.button) { gap: 18px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.cinematic-inner main :is(a, button).text-link:not(.button),
  body.cinematic-inner main :is(a, button).text-link:not(.button) > span[aria-hidden="true"] { transition: none; }
  body.cinematic-inner main :is(a, button).text-link:not(.button):is(:hover, :focus-visible) > span[aria-hidden="true"] { transform: none; }
}
