/* Newsroom press release pages (newsroom/*.html). Loaded after tokens.css and site.css;
   colours, radii and fonts come from their variables, except white and its alphas on the dark title area.
   Only .pr-* lives in this file. */

.pr-page ::selection { background: var(--metacomp-primary-100); color: var(--metacomp-primary-900); }
.pr-col { max-width: 720px; margin: 0 auto; }

/* ---------- Dark title area ---------- */
.pr-hero { position: relative; background: var(--dark-bg); overflow: hidden; padding: 0 0 clamp(48px, 5vw, 72px); }
.pr-hero ::selection { background: var(--metacomp-secondary-300); color: var(--metacomp-primary-990); }
.pr-logo { display: block; height: 26px; width: 183px; color: #fff; overflow: visible; }
.pr-logolink { display: inline-block; margin: 40px 0 clamp(36px, 4vw, 52px); border-radius: 4px; }
.pr-title { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.22; color: #fff; }
/* The label line doubles as the way back: "← Home / PRESS RELEASE". Add a Newsroom step here once it exists. */
.pr-crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1; color: rgba(255,255,255,.55); }
.pr-crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 600; letter-spacing: .2px; color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s var(--ease); }
.pr-crumbs a:hover { color: #fff; text-decoration: none; }
.pr-crumbs svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.pr-crumbs a:hover svg { transform: translateX(-2px); }
.pr-crumbs + .pr-title { margin-top: 16px; }
.pr-dek { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,.78); margin-top: 22px; }
.pr-meta { font-size: 15px; color: rgba(255,255,255,.62); margin-top: 28px; }

/* ---------- Reading column ---------- */
.pr-body { padding: clamp(48px, 5.4vw, 78px) 0 0; font-size: 18px; line-height: 1.67; color: var(--neutral-900); }
.pr-body p { margin: 0 0 24px; }
.pr-body h2 { font-size: clamp(22px, 2.1vw, 26px); line-height: 1.2; margin: 56px 0 22px; scroll-margin-top: 24px; }
/* Keeps a hyphenated term on one line so a heading never breaks inside it. */
.pr-nb { white-space: nowrap; }
.pr-body ul { margin: -4px 0 24px; padding-left: 22px; }
.pr-body li { margin-bottom: 10px; }
.pr-body li::marker { color: var(--neutral-800); }
.pr-figure { margin: 8px 0 44px; }
.pr-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); background: var(--metacomp-secondary-50); }
.pr-figure figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--neutral-600); }

/* ---------- About, contact, share ---------- */
.pr-end { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--border-minimal); }
.pr-about h2 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; }
.pr-about p { font-size: 17px; line-height: 1.5; color: var(--neutral-900); margin: 0 0 16px; }
.pr-about > div { margin-bottom: 44px; }
.pr-page a.pr-link { color: var(--metacomp-primary-800); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pr-page a.pr-link:hover { color: var(--metacomp-primary-600); }
.pr-origin { font-size: 15px; color: var(--neutral-600); padding-bottom: 24px; border-bottom: 1px solid var(--border-minimal); }

.pr-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 24px 0 clamp(72px, 9vw, 120px); }
.pr-share-k { margin-right: 8px; }
.pr-pill {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px;
  border: 0; border-radius: var(--radius-full); background: var(--metacomp-primary-50);
  font: 500 15px/1 var(--font-brand); letter-spacing: var(--font-letter-spacing); color: var(--metacomp-primary-800);
  text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.pr-pill:hover { background: var(--metacomp-primary-100); text-decoration: none; }
.pr-pill:active { background: var(--metacomp-primary-200); }
.pr-pill.is-copied { background: var(--metacomp-secondary-100); color: var(--metacomp-secondary-800); }
.pr-pill.is-x { min-width: 44px; }

/* ---------- One-line footer ---------- */
.pr-foot { background: var(--metacomp-primary-990); padding: 27px 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* ---------- Language bar (English / 简体中文 / 繁體中文) ----------
   One page holds every language: blocks marked data-lang-panel are shown one at a time by the page script.
   The bar stays hidden until that script runs, so without JavaScript the page is simply the English release. */
[data-lang-panel][hidden], .pr-lang[hidden] { display: none; }
.pr-langbar { position: sticky; top: 0; z-index: 5; background: var(--surface-white); border-bottom: 1px solid var(--border-minimal); }
.pr-lang { display: flex; gap: 28px; }
.pr-lang button { height: 52px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; font: 500 14px/1 var(--font-brand); letter-spacing: var(--font-letter-spacing); color: var(--neutral-600); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.pr-lang button:hover { color: var(--metacomp-primary-800); }
.pr-lang button[aria-pressed="true"] { color: var(--metacomp-primary-800); border-bottom-color: var(--metacomp-primary-800); }
/* Chinese text needs more leading than Latin text. */
.pr-title:lang(zh) { line-height: 1.35; }
.pr-body:lang(zh) { line-height: 1.85; }
.pr-body:lang(zh) h2 { line-height: 1.4; }
.pr-about:lang(zh) p, .pr-figure:lang(zh) figcaption { line-height: 1.75; }
