.hrsj-header-actions { margin-left: auto; gap: 16px; align-items: center; }
.hrsj-header-actions .hrsj-language-switcher { margin: 0; padding: 3px; }
.hrsj-language-switcher { position: relative; display: inline-flex; align-items: center; gap: 2px; border: 1px solid #505355; border-radius: 8px; background: #17191a; font-family: system-ui, sans-serif; }
.hrsj-language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 30px; box-sizing: border-box; padding: 4px 10px; border-radius: 5px; color: #c7cbce; text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .02em; }
.hrsj-language-switcher a[aria-current] { background: #383c3f; color: #fff; box-shadow: inset 0 0 0 1px #555b60; }
.hrsj-language-switcher a:focus-visible { outline: 2px solid #f3c86a; outline-offset: 3px; }
.hrsj-language-switcher a:hover { background: #303538; color: #fff; }
.hrsj-language-feedback { display: none; position: absolute; z-index: 100; top: calc(100% + 10px); right: 0; width: 250px; max-width: calc(100vw - 48px); padding: 12px 14px; border: 1px solid #d7dbde; border-radius: 8px; background: #fff; color: #23282c; box-shadow: 0 4px 16px #0002; font-size: 13px; line-height: 1.6; font-weight: 400; }
.hrsj-language-feedback.is-visible { display: block; }
.hrsj-language-feedback a { color: #ad1d29; text-decoration: underline; }
.wp-site-blocks > header.wp-block-template-part { margin-block-start: 0 !important; }
body.single .wp-site-blocks > main.wp-block-group { margin-block-start: 0 !important; }
body.single .wp-site-blocks > main.wp-block-group > .wp-block-group:first-child { margin-block-start: 16px !important; }
.hrsj-language-notice { margin: 0; padding: 12px 24px; background: #fff4d5; color: #40320c; font-size: 14px; }
.hrsj-language-suggestion[hidden] { display: none; }
.hrsj-language-suggestion { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 9px 24px; border-bottom: 1px solid #e1e4e8; background: #fff; color: #27323a; box-shadow: 0 3px 12px #00000014; font: 14px/1.5 system-ui, sans-serif; }
body.admin-bar .hrsj-language-suggestion { top: 32px; }
.hrsj-language-suggestion a { color: #a71829; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.hrsj-language-suggestion a:focus-visible, .hrsj-language-suggestion__close:focus-visible { outline: 2px solid #a71829; outline-offset: 3px; }
.hrsj-language-suggestion__close { margin-left: 4px; border: 0; background: transparent; color: #535d64; font: 24px/1 system-ui, sans-serif; cursor: pointer; }
.hrsj-language-suggestion__close:hover { color: #1d2327; }
@media (max-width: 600px) {
  header .wp-block-group.alignwide:has(> .wp-block-social-links):has(> .hrsj-header-actions) { flex-wrap: nowrap; gap: 8px; }
  header .wp-block-social-links:has(+ .hrsj-header-actions) { flex-wrap: nowrap; gap: 4px !important; flex-shrink: 0; }
  header .hrsj-header-actions { gap: 5px; flex-wrap: nowrap; flex-shrink: 0; }
  header .hrsj-header-actions .wp-block-button__link { padding: 8px 9px !important; font-size: 12px; line-height: 1.2; }
  header .hrsj-header-actions .hrsj-language-switcher { padding: 2px; }
  header .hrsj-language-switcher a { min-width: 32px; min-height: 32px; padding: 4px 6px; font-size: 11px; }
  .hrsj-language-suggestion { justify-content: flex-start; gap: 5px 9px; padding: 8px 16px; font-size: 12px; }
  .hrsj-language-suggestion__close { margin-left: auto; }
}
@media (max-width: 340px) {
  header .wp-block-group.alignwide:has(> .wp-block-social-links):has(> .hrsj-header-actions) { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; }
  header .hrsj-header-actions { display: contents; }
  header .hrsj-header-actions > .wp-block-button { grid-column: 2; grid-row: 1; }
  header .hrsj-header-actions > .hrsj-language-switcher { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 782px) {
  body.admin-bar .hrsj-language-suggestion { top: 0; }
}
.hrsj-language-empty { margin: 24px; padding: 24px; background: #f5f5f5; border: 1px solid #ddd; color: #1d2327; }
.hrsj-english-date-meta { display: flex; flex-direction: column; gap: 4px; }
.hrsj-english-byline { margin: 0; font-size: 14px; line-height: 1.5; letter-spacing: .04em; }
.hrsj-english-byline strong { font-weight: 700; }
.wp-block-group:has(> .wp-block-group > .hrsj-english-date-meta) { align-items: flex-end; }
/* English articles use an editorial reading rhythm, scoped away from Chinese pages and lists. */
body.hrsj-english-story .wp-block-post-title.has-xx-large-font-size { color: #171b20; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.25rem, 3vw, 3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; }
body.hrsj-english-story .wp-block-post-excerpt__excerpt { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.08rem, 1.3vw, 1.22rem); font-weight: 400; line-height: 1.65; letter-spacing: 0; }
body.hrsj-english-story .hrsj-english-date-meta { gap: 5px; }
body.hrsj-english-story .hrsj-english-byline { font-family: Georgia, 'Times New Roman', serif; font-size: .8rem; letter-spacing: .06em; }
body.hrsj-english-story .hrsj-english-date-meta time,
body.hrsj-english-story .hrsj-english-date-meta + .newspare-post-views { color: #5a5a58; font-family: Georgia, 'Times New Roman', serif; font-size: .82rem; }
/* Keep NewSpare's content/wide widths; only default prose gets a readable line length. */
body.hrsj-english-story .wp-block-post-content > p:not(.alignwide, .alignfull, .aligncenter, .alignright, [class*="has-text-align-"], [style*="width"], [style*="margin-left"], [style*="margin-right"]) {
  max-width: min(100%, 74ch);
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.hrsj-english-story .entry-content.wp-block-post-content > :is(p, ul, ol, blockquote) { font-weight: 400; line-height: 1.78; letter-spacing: 0; }
body.hrsj-english-story .entry-content.wp-block-post-content > :is(p, ul, ol, blockquote):not([class*="-font-family"]) { font-family: Georgia, 'Times New Roman', serif; }
body.hrsj-english-story .entry-content.wp-block-post-content > :is(p, ul, ol, blockquote):not([class*="-font-size"]) { font-size: 1.08rem; }
body.hrsj-english-story .entry-content.wp-block-post-content > p > .hrsj-inline-style[style^=",sans-serif"] { font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; letter-spacing: inherit !important; }
body.hrsj-english-story .wp-block-post-content > p { margin-block: 0 1.45em; }
body.hrsj-english-story .wp-block-post-content > :is(h2, h3, h4) { font-weight: 700; line-height: 1.28; margin-block: 1.65em .6em; }
body.hrsj-english-story .wp-block-post-content > :is(h2, h3, h4):not([class*="-font-family"]) { font-family: Georgia, 'Times New Roman', serif; }
body.hrsj-english-story .wp-block-post-content > blockquote { padding-left: 22px; border-left: 3px solid #a72531; }
body.hrsj-english-story .wp-block-post-content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 600px) {
  body.hrsj-english-story .wp-block-post-title.has-xx-large-font-size { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.18; }
  body.hrsj-english-story .entry-content.wp-block-post-content > :is(p, ul, ol, blockquote):not([class*="-font-size"]) { font-size: 1.02rem; line-height: 1.72; }
}
