/* Three-column portal framework matching the responsive information hierarchy. */
.left-rail {
  display: none;
  align-content: start;
  gap: 10px;
}

.left-panel {
  padding: 17px 15px;
  background: #f9f9fb;
}

.left-panel--plus {
  position: relative;
  min-height: 157px;
  overflow: hidden;
  color: #fff;
  background: #212226;
}

.plus-mark {
  position: absolute;
  right: 7px;
  bottom: -35px;
  color: rgba(255,255,255,.16);
  font-family: var(--display);
  font-size: 10rem;
  font-weight: 900;
  line-height: 1;
}

.left-panel--plus p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--lime);
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  line-height: .84;
}

.left-panel--plus strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 15px 0 13px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .82;
  text-transform: uppercase;
}

.left-panel--plus a {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.left-panel--plus a span {
  margin-left: 4px;
  color: var(--lime);
  font-size: 1rem;
}

.quick-links { padding-bottom: 8px; }
.quick-links h2 {
  margin: 0 0 10px;
  color: #5a5c60;
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #dedfe1;
  color: #292a2d;
  font-size: .68rem;
  font-weight: 700;
}

.quick-links a span {
  width: 15px;
  color: var(--red);
  font-size: .85rem;
  text-align: center;
}

.left-panel--sign-in { background: #e5e6e8; }
.left-panel--sign-in p {
  margin: 0 0 7px;
  color: #737579;
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .07em;
}

.left-panel--sign-in strong {
  display: block;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .88;
  text-transform: uppercase;
}

.left-panel--sign-in button {
  width: 100%;
  margin-top: 13px;
  padding: 8px;
  border: 1px solid #97999d;
  color: var(--ink);
  background: transparent;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.left-panel--sign-in button:hover { border-color: var(--red); color: var(--red); }
.left-panel--sign-in small {
  display: block;
  min-height: 13px;
  margin-top: 5px;
  color: #626469;
  font-size: .59rem;
  line-height: 1.2;
}

/* Four clear layout states: large desktop, desktop, tablet and phone. */
@media (min-width: 1260px) {
  :root { --shell: 1220px; }
  .masthead-grid { grid-template-columns: 220px 660px 300px; gap: 20px; }
  .left-rail { display: grid; }
  .hero-story { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 264px; }
  .hero-copy { min-height: 230px; padding: 26px 29px; }
  .hero-copy h2 { max-width: 570px; font-size: 3.5rem; }
  .split-stories { grid-template-columns: 1fr; }
  .compact-story { grid-template-columns: 175px 1fr; }
}

@media (min-width: 1024px) and (max-width: 1259px) {
  :root { --shell: min(980px, calc(100vw - 24px)); }
  .left-rail { display: none; }
  .masthead-grid { grid-template-columns: 660px 300px; gap: 20px; }
  .hero-story { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { min-height: 264px; }
  .hero-copy { min-height: 230px; padding: 26px 29px; }
  .hero-copy h2 { max-width: 570px; font-size: 3.5rem; }
  .split-stories { grid-template-columns: 1fr; }
  .compact-story { grid-template-columns: 175px 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --shell: min(660px, calc(100vw - 40px)); }
  .left-rail, .right-rail { display: none; }
  .masthead-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .score-strip, .left-rail, .right-rail { display: none; }
}

/* Keep the dark utility/navigation bar above the scrolling editorial feed. */
.site-header {
  padding-top: 68px;
}

.site-header::before {
  content: "";
  position: fixed;
  z-index: 59;
  top: 0;
  right: 0;
  left: 0;
  height: 68px;
  background: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.26);
  pointer-events: none;
}

.utility-bar {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .site-header { padding-top: 61px; }
  .site-header::before { height: 61px; }
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border: 1px solid #4e5154;
  color: #c5c7c9;
  background: transparent;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
}

.language-toggle span {
  display: grid;
  min-width: 21px;
  min-height: 19px;
  place-items: center;
  padding: 0 3px;
}

html[data-language="en"] .language-toggle [data-language-option="en"],
html[data-language="zh"] .language-toggle [data-language-option="zh"] {
  color: var(--ink);
  background: var(--lime);
}

.language-toggle:hover { border-color: var(--lime); }

@media (max-width: 540px) {
  .header-actions { gap: 4px; }
  .language-toggle { padding: 2px; }
  .language-toggle span { min-width: 19px; min-height: 18px; padding: 0 2px; }
}

/* CJK glyphs need a calmer rhythm than the compressed English display face. */
html[lang="zh-CN"] .hero-copy h2,
html[lang="zh-CN"] .compact-story h3,
html[lang="zh-CN"] .top-list li a,
html[lang="zh-CN"] .topic-card strong,
html[lang="zh-CN"] .latest-card h3,
html[lang="zh-CN"] .watch-lead h2,
html[lang="zh-CN"] .more-grid h3,
html[lang="zh-CN"] .search-sheet h2,
html[lang="zh-CN"] .video-modal h2 {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.13;
}

html[lang="zh-CN"] .hero-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
}

html[lang="zh-CN"] .watch-lead h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.4rem);
}

@media (max-width: 540px) {
  html[lang="zh-CN"] .hero-copy h2 { font-size: 2.05rem; }
  html[lang="zh-CN"] .watch-lead h2 { font-size: 2.75rem; }
}
