/* Dongfang Science. Ink blue portal layout. */
:root {
  --ink: #0e2440;
  --ink-2: #16345a;
  --blue: #1d5294;
  --blue-2: #2f6db5;
  --mist: #dfe8f3;
  --paper: #f6f5f1;
  --card: #ffffff;
  --text: #17202b;
  --text-2: #4b5664;
  --text-3: #7a8491;
  --line: #e2dfd7;
  --line-2: #eceae4;
  --live: #c0392b;
  --wrap: 1560px;
  --gutter: clamp(16px, 2.2vw, 36px);
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 15px/1.6 var(--sans); overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button { font: inherit; color: inherit; }
h1, h2, h3 { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- seal ---------- */
.seal {
  display: inline-grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 4px;
  background: var(--blue); color: #fff; font: 700 17px/1 var(--serif);
  box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 3px rgba(255,255,255,.55);
}
.seal--sm { width: 22px; height: 22px; font-size: 13px; border-radius: 3px; }
.seal--lg { width: 58px; height: 58px; font-size: 32px; border-radius: 6px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #c9d6e6; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 36px; }
.ticker { display: flex; align-items: center; min-width: 0; flex: 1; gap: 12px; }
.ticker__label { flex: none; color: #fff; font-weight: 700; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.18); }
.ticker__viewport { overflow: hidden; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: ticker 90s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track li { white-space: nowrap; padding: 0 22px; position: relative; }
.ticker__track li::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; background: #6f93bf; border-radius: 50%; }
.ticker__track a { color: #c9d6e6; }
.ticker__track a:hover { color: #fff; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topbar__right { flex: none; display: flex; align-items: center; gap: 14px; }
.topbar__clock { font-variant-numeric: tabular-nums; color: #fff; }
.langswitch a { padding: 2px 6px; color: #c9d6e6; }
.langswitch a[aria-current] { color: #fff; font-weight: 700; }

/* ---------- masthead ---------- */
.masthead { background: #fff; position: relative; }
.masthead__inner { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 14px; position: relative; }
.masthead__inner::after {
  content: ""; position: absolute; right: var(--gutter); top: 0; bottom: 0; width: 360px; pointer-events: none;
  background: url("/img/brand/emblem.png") no-repeat right -30px center / auto 150%; opacity: .06;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand:hover { color: inherit; }
.brand__emblem { width: 75px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__word { font: 600 30px/1.05 var(--display); letter-spacing: .02em; white-space: nowrap; }
.brand__dong { color: var(--ink); }
.brand__sci { color: var(--blue); }
.brand__tag { margin-top: 5px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.masthead__side { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; position: relative; z-index: 1; }
.masthead__date { font-size: 12.5px; color: var(--text-3); }
.iconbtn { display: none; place-items: center; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; color: var(--ink); border-radius: var(--radius); }
.iconbtn:hover { background: var(--line-2); }

.search { display: flex; align-items: center; width: 320px; max-width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; font: inherit; font-size: 14px; background: transparent; outline: none; }
.search button { border: 0; background: var(--ink); color: #fff; width: 42px; align-self: stretch; cursor: pointer; display: grid; place-items: center; border-radius: 0 2px 2px 0; }
.search button:hover { background: var(--blue); }
.search:focus-within { border-color: var(--blue-2); }

/* main nav: English big, Chinese small, like the portals */
.mainnav { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 3px solid var(--ink); }
.mainnav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mainnav__list li { flex: 1; min-width: 0; }
.mainnav__list a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 62px;
  border-left: 1px solid var(--line-2); position: relative; transition: background .15s;
}
.mainnav__list li:last-child a { border-right: 1px solid var(--line-2); }
.mainnav__big { font: 700 17px/1.2 var(--serif); color: var(--ink); }
.mainnav__small { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mainnav__list a:hover { background: var(--mist); }
.mainnav__list a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--blue-2); }
.mainnav__list a[aria-current] .mainnav__big { color: var(--blue); }

.topics { background: #fff; border-bottom: 1px solid var(--line); }
.topics__inner { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 9px; padding-bottom: 9px; font-size: 13px; max-height: 58px; overflow: hidden; }
.topics__inner a { color: var(--text-2); white-space: nowrap; }
.topics__inner a:hover { color: var(--blue); }

/* compact sticky bar */
.compactbar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--ink); color: #fff; transform: translateY(-100%); transition: transform .25s ease; box-shadow: 0 2px 10px rgba(0,0,0,.18); padding-top: env(safe-area-inset-top); }
.compactbar.is-shown { transform: none; }
.compactbar__inner { display: flex; align-items: center; gap: 20px; height: 48px; }
.compactbar__brand { display: flex; align-items: center; gap: 8px; font: 600 16px var(--display); color: #fff; white-space: nowrap; }
.compactbar__brand img { background: #fff; border-radius: 50%; padding: 2px; }
.compactbar__brand b { color: #8fb6e6; font-weight: 600; }
.compactbar ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.compactbar ul::-webkit-scrollbar { display: none; }
.compactbar ul a { display: block; padding: 6px 12px; color: #d5e1ef; font-weight: 500; white-space: nowrap; }
.compactbar ul a:hover { color: #fff; }
.compactbar__search { margin-left: auto; color: #fff; display: grid; place-items: center; width: 36px; height: 36px; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(8,20,36,.5); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; padding: 14px 18px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__head .iconbtn { display: grid; }
.search--drawer { width: 100%; margin-bottom: 14px; }
.drawer__nav, .drawer__meta { list-style: none; margin: 0; padding: 0; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); font: 700 16px var(--serif); color: var(--ink); }
.drawer__nav .seal { width: 26px; height: 26px; font-size: 14px; }
.drawer__meta { margin-top: 16px; }
.drawer__meta a { display: block; padding: 8px 4px; color: var(--text-2); font-size: 14px; }

/* ---------- common bits ---------- */
.pic { display: block; position: relative; overflow: hidden; background: var(--mist); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .pic img { transform: scale(1.035); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.kicker--light { color: #bcd3ee; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.meta__cat { color: var(--blue); font-weight: 500; }
.box { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 14px 16px 16px; }
.box + .box { margin-top: 18px; }
.box__title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.box__zh { font: 900 19px var(--serif); letter-spacing: 0; color: var(--ink); text-transform: none; }

.sechead { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--line); position: relative; }
.sechead::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 88px; height: 3px; background: var(--ink); }
.sechead__title { margin: 0; font: 900 21px/1.2 var(--serif); color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.sechead__sub { font: 500 13px var(--sans); color: var(--text-3); }
.sechead__more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-2); white-space: nowrap; }

/* ---------- flash ---------- */
.flash { display: flex; align-items: center; gap: 14px; margin-top: 18px; background: #fff; border: 1px solid var(--line); height: 46px; padding-right: 16px; overflow: hidden; }
.flash__label { flex: none; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 16px; background: var(--ink); color: #fff; font: 700 15px var(--serif); }
.flash__dot { width: 8px; height: 8px; border-radius: 50%; background: #7fb2ff; box-shadow: 0 0 0 0 rgba(127,178,255,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(127,178,255,0); } 100% { box-shadow: 0 0 0 0 rgba(127,178,255,0); } }
.flash__list { position: relative; flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; list-style: none; }
.flash__list li { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(100%); transition: transform .5s ease, opacity .5s ease; }
.flash__list li.is-active { opacity: 1; transform: none; }
.flash__list li.is-leaving { opacity: 0; transform: translateY(-100%); }
.flash__list time { flex: none; color: var(--blue); font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.flash__list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: 500; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr) minmax(300px, 0.72fr); gap: 24px; margin-top: 18px; align-items: stretch; }
.hero__main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.carousel { position: relative; background: var(--ink); overflow: hidden; min-width: 0; flex: 1 1 auto; min-height: 440px; }
.hero__subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; flex: none; }
.sub { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); min-width: 0; }
.sub__img { aspect-ratio: 16 / 9; }
.sub__title { margin: 8px 10px 10px; font: 600 14px/1.45 var(--serif); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sub:hover .sub__title { color: var(--blue); }
.carousel__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide__link, .slide__link:hover { display: block; height: 100%; color: #fff; }
.slide__img { position: absolute; inset: 0; }
.slide.is-active .slide__img img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.slide__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 34px; background: linear-gradient(transparent, rgba(6,17,32,.55) 30%, rgba(6,17,32,.92)); }
.slide__title { margin: 6px 0 6px; font: 700 clamp(24px, 2vw, 32px)/1.3 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__dek { margin: 0; color: #d2dceb; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.carousel__btn { position: absolute; top: 40%; width: 40px; height: 52px; border: 0; background: rgba(6,17,32,.45); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s, background .2s; z-index: 2; }
.carousel:hover .carousel__btn, .carousel__btn:focus-visible { opacity: 1; }
.carousel__btn:hover { background: rgba(6,17,32,.75); }
.carousel__btn--prev { left: 0; } .carousel__btn--next { right: 0; }
.carousel__dots { position: absolute; right: 18px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.carousel__dots button { width: 22px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.carousel__dots button[aria-selected="true"] { background: #fff; }
.carousel__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 2; }
.carousel__bar span { display: block; height: 100%; width: 0; background: var(--blue-2); }
.carousel__bar span.is-running { animation: bar 6.5s linear forwards; }
@keyframes bar { to { width: 100%; } }

.topstories { background: #fff; border: 1px solid var(--line); padding: 0 18px 12px; min-width: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -18px 12px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 0; background: none; padding: 12px 10px 10px; font: 700 15px var(--serif); color: var(--text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.topstories__lead { display: block; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--line); }
.topstories__lead h3 { margin: 0 0 4px; font: 700 17px/1.4 var(--serif); color: var(--ink); }
.topstories__lead p { margin: 0; font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topstories__lead:hover h3 { color: var(--blue); }
.headlines { list-style: none; margin: 0; padding: 0; }
.headlines li { position: relative; padding: 5px 0 5px 14px; }
.headlines li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 4px; height: 4px; background: var(--blue-2); }
.headlines a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }

.rail { min-width: 0; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.rank li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.rank li:last-child { border-bottom: 0; }
.rank__n { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font: 700 12px var(--sans); color: var(--text-3); background: var(--line-2); border-radius: 2px; margin-top: 1px; }
.rank li:nth-child(-n+3) .rank__n { background: var(--ink); color: #fff; }
.rank a { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
.clocks { list-style: none; margin: 0; padding: 0; }
.clocks li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; border-bottom: 1px dashed var(--line-2); }
.clocks li:last-child { border-bottom: 0; }
.clocks time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.clocks li:first-child time { color: var(--blue); }

/* ---------- picture strip ---------- */
.strip { margin-top: 34px; background: var(--ink); padding: 22px 0 26px; color: #fff; }
.strip .sechead { border-color: rgba(255,255,255,.14); }
.strip .sechead::after { background: #8fb6e6; }
.strip .sechead__title { color: #fff; }
.strip .sechead__sub { color: #9fb2c9; }
.strip .seal { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(14,36,64,.4); }
.strip__viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.strip__track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0 0 0 16px; list-style: none; animation: strip 120s linear infinite; }
.strip__viewport:hover .strip__track { animation-play-state: paused; }
@keyframes strip { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.strip__item { width: 300px; flex: none; }
.strip__item a, .strip__item a:hover { color: #fff; display: block; }
.strip__img { aspect-ratio: 4 / 3; }
.strip__cap { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: #dbe5f1; }
.strip__item a:hover .strip__cap { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- category blocks ---------- */
.sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 32px; margin-top: 34px; margin-bottom: 40px; }
.catblock { min-width: 0; }
.catblock__body { display: flex; flex-direction: column; gap: 14px; }
.card { display: block; min-width: 0; }
.card__img { aspect-ratio: 16 / 10; }
.card__title { margin: 10px 0 4px; font: 700 18px/1.4 var(--serif); color: var(--ink); }
.card__title--sm { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { color: var(--blue); }
.card__dek { margin: 0; font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catblock__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.mini__img { aspect-ratio: 4 / 3; }
.mini__title { font: 600 14.5px/1.45 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.catblock__line { position: relative; padding: 7px 0 7px 14px; border-bottom: 1px dashed var(--line-2); }
.catblock__line::before { content: ""; position: absolute; left: 2px; top: 16px; width: 4px; height: 4px; background: var(--blue-2); }
.catblock__line a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }

.rolling { min-width: 0; }
.rolling__viewport { height: 468px; overflow: hidden; background: #fff; border: 1px solid var(--line); position: relative; }
.rolling__list { list-style: none; margin: 0; padding: 0 14px; }
.rolling__viewport.is-auto .rolling__list { animation: roll var(--roll-time, 160s) linear infinite; }
.rolling__viewport:hover .rolling__list { animation-play-state: paused; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.rolling__list li { display: grid; grid-template-columns: 40px 58px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.rolling__list time { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rolling__cat { justify-self: start; font-size: 11.5px; color: var(--blue); border: 1px solid var(--mist); background: #f3f7fc; padding: 0 5px; border-radius: 2px; white-space: nowrap; }
.rolling__list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- category page ---------- */
.cathead { display: flex; align-items: center; gap: 18px; padding: 28px 0 20px; border-bottom: 3px solid var(--ink); margin-bottom: 24px; }
.cathead__title { margin: 0; font: 900 34px/1.15 var(--serif); color: var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.cathead__title span { font: 500 18px var(--sans); color: var(--text-3); }
.cathead__intro { margin: 4px 0 0; color: var(--text-3); font-size: 14px; }
.catpage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; margin-bottom: 48px; }
.catlead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; background: #fff; border: 1px solid var(--line); padding: 16px; margin-bottom: 8px; }
.catlead__img { aspect-ratio: 4 / 3; }
.catlead__text h2 { margin: 4px 0 8px; font: 700 23px/1.35 var(--serif); color: var(--ink); }
.catlead__text p { margin: 0; color: var(--text-2); }
.catlead:hover h2 { color: var(--blue); }
.stream { list-style: none; margin: 0; padding: 0; }
.stream__item a { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stream__img { aspect-ratio: 16 / 10; }
.stream__text h3 { margin: 0 0 6px; font: 700 18px/1.4 var(--serif); color: var(--ink); }
.stream__text p { margin: 0; color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stream__item a:hover h3 { color: var(--blue); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pager a { min-width: 38px; height: 38px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager a:hover:not([aria-current]) { border-color: var(--blue); }
.sectionlist { list-style: none; margin: 0; padding: 0; }
.sectionlist a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.sectionlist a[aria-current] { color: var(--blue); }
.sectionlist b { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--text-3); }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 45; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--blue-2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; margin-top: 24px; margin-bottom: 40px; }
.article { background: #fff; border: 1px solid var(--line); padding: 30px clamp(24px, 4vw, 64px) 34px; min-width: 0; }
.article__body, .article__sources, .article__tags, .prevnext { max-width: 820px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.crumbs a:hover { color: var(--blue); }
.article__title { margin: 10px 0 12px; font: 900 34px/1.28 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.article__dek { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.article__byline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--text-3); padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.article__author { color: var(--ink); font-weight: 700; }
.share { display: flex; gap: 8px; margin: 14px 0 20px; }
.share__btn { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 50%; cursor: pointer; color: var(--ink); }
.share__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share__txt { font: 700 11px var(--sans); }
.article__figure { margin: 0 0 24px; }
.article__img { aspect-ratio: 16 / 9; }
.article__figure figcaption { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.credit { color: var(--text-3); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }
.article__body { font-size: 17.5px; line-height: 1.85; color: #1d2733; }
.article__body p { margin: 0 0 1.15em; overflow-wrap: break-word; }
.article__body p:first-child::first-letter { float: left; font: 900 3.3em/0.9 var(--serif); color: var(--ink); margin: 6px 10px 0 0; }
.article__sources { margin-top: 28px; padding: 16px 20px; background: #f4f7fb; border-left: 3px solid var(--blue); }
.article__sources h2 { margin: 0 0 8px; font: 700 15px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.article__sources ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.article__sources li { margin: 4px 0; overflow-wrap: anywhere; }
.article__sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article__src-host { margin-left: 8px; font-size: 12.5px; color: var(--text-3); }
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; }
.article__tags span { color: var(--text-3); margin-right: 4px; }
.article__tags a { padding: 4px 11px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.article__tags a:hover { border-color: var(--blue); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.prevnext__item { display: block; padding: 12px 14px; border: 1px solid var(--line); font: 600 15px/1.45 var(--serif); min-width: 0; }
.prevnext__item span { display: block; font: 500 12px var(--sans); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.prevnext__item--next { text-align: right; }
.rail__sticky { position: sticky; top: 64px; }
.related { list-style: none; margin: 0; padding: 0; }
.related a { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.related li:last-child a { border-bottom: 0; }
.related__img { aspect-ratio: 4 / 3; }
.related span { font: 600 14px/1.45 var(--serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-in { margin-bottom: 44px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid4 .card__img { aspect-ratio: 16 / 10; }

/* ---------- pages ---------- */
.pagetitle { font: 900 32px/1.25 var(--serif); color: var(--ink); margin: 30px 0 18px; }
.prose { margin-bottom: 50px; font-size: 16.5px; line-height: 1.8; }
.prose h2 { font: 700 21px var(--serif); color: var(--ink); margin: 28px 0 8px; }
.prose .lede { font-size: 18.5px; line-height: 1.7; color: var(--ink-2); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { background: #fff; }
.prose th { background: #f1f4f8; color: var(--ink); font-size: 13px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose td, .prose th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.tablewrap { overflow-x: auto; }
.search--page { width: 100%; margin-bottom: 10px; }
.search--page input { padding: 13px 14px; font-size: 16px; }
.search__status { color: var(--text-3); font-size: 14px; }
mark { background: #fff1b8; color: inherit; padding: 0 1px; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--ink); color: #b9c7d8; margin-top: 10px; overflow: hidden; }
.footer__mountains { position: absolute; right: -60px; top: -40px; width: 460px; height: 420px; background: url("/img/brand/emblem.png") no-repeat center / contain; opacity: .07; filter: brightness(3) grayscale(1); pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding-top: 40px; padding-bottom: 28px; position: relative; }
.footer__brand img { width: 96px; filter: brightness(0) invert(1); opacity: .92; }
.footer__word { margin: 10px 0 2px; font: 600 22px var(--display); color: #fff; }
.footer__word span { color: #8fb6e6; }
.footer__motto { margin: 0 0 10px; letter-spacing: .3em; font-size: 12px; color: #8fa3bb; }
.footer__about { margin: 0; font-size: 13.5px; max-width: 360px; }
.footer__h { margin: 4px 0 12px; font: 700 15px var(--serif); color: #fff; }
.footer__links, .footer__clocks { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer__links li { margin: 6px 0; }
.footer__links a:hover { color: #fff; }
.footer__clocks li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.footer__clocks time { color: #fff; font-variant-numeric: tabular-nums; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); font-size: 12.5px; color: #8093aa; position: relative; }

.totop { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; }
.totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--blue); }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 20px; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 70; }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; width: min(430px, calc(100vw - 40px)); animation: consentin .35s ease both; }
@keyframes consentin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.consent__card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--ink); box-shadow: 0 14px 40px rgba(8,20,36,.22); padding: 18px 18px 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
.consent__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.consent__icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--mist); color: var(--ink); border-radius: 50%; }
.consent__title { margin: 0; font: 700 17px/1.3 var(--serif); color: var(--ink); }
.consent__text { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }
.consent__text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.consent__prefs { border-top: 1px solid var(--line-2); margin: 0 0 14px; }
.toggle { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.toggle span { flex: 1; min-width: 0; }
.toggle b { display: block; font-size: 14px; color: var(--ink); }
.toggle small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle i { flex: none; width: 40px; height: 22px; border-radius: 22px; background: #c9d0d9; position: relative; transition: background .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + i { background: var(--blue); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:disabled + i { opacity: .6; }
.toggle input:focus-visible + i { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.btn { border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: var(--radius); }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--line-2); color: var(--ink); border-color: var(--line); }
.footer__linkbtn { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; font-size: 14px; }
.footer__linkbtn:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (min-width: 1500px) {
  .sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topstories__lead h3 { font-size: 18px; }
  .headlines a { font-size: 15px; }
  .headlines li { padding: 6px 0 6px 14px; }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .carousel { min-height: 380px; }
  .hero .rail { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero .rail .box + .box { margin-top: 0; }
  .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead__inner::after { display: none; }
}
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .masthead__inner { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .masthead__menu, .masthead__search { display: grid; flex: none; }
  .masthead__side { display: none; }
  .brand { margin: 0 auto; }
  .brand__emblem { width: 50px; }
  .brand__word { font-size: 22px; }
  .brand__tag { font-size: 9.5px; letter-spacing: .16em; }
  .mainnav { border-bottom-width: 2px; }
  .mainnav__list { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .mainnav__list::-webkit-scrollbar { display: none; }
  .mainnav__list li { flex: none; scroll-snap-align: start; }
  .mainnav__list a { height: 50px; padding: 0 16px; border-left: 0; }
  .mainnav__list li:last-child a { border-right: 0; }
  .mainnav__big { font-size: 15.5px; }
  .mainnav__small { font-size: 11px; }
  .topics__inner { flex-wrap: nowrap; overflow-x: auto; max-height: none; scrollbar-width: none; }
  .topics__inner::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .carousel { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .hero .rail { grid-template-columns: minmax(0, 1fr); }
  .hero .rail .box + .box { margin-top: 0; }
  .catpage, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .rail__sticky { position: static; }
  .rail--article { order: 2; }
  .article { padding: 20px 20px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .compactbar ul { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar__inner { height: 32px; font-size: 12.5px; }
  .ticker__label { padding-right: 8px; }
  .topbar__clock { display: none; }
  .brand__emblem { width: 42px; }
  .brand { gap: 8px; }
  .brand__word { font-size: 18px; }
  .brand__tag { display: none; }
  .flash { height: 42px; margin-top: 12px; padding-right: 10px; gap: 10px; }
  .flash__label { padding: 0 10px; font-size: 14px; }
  .flash__list time { display: none; }
  .flash__list a { font-size: 14px; }
  .hero { margin-top: 12px; gap: 14px; }
  .carousel { aspect-ratio: 4 / 3.4; min-height: 0; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .slide__caption { padding: 50px 16px 26px; }
  .slide__title { font-size: 20px; }
  .slide__dek { display: none; }
  .carousel__btn { display: none; }
  .carousel__dots { right: 50%; transform: translateX(50%); bottom: 10px; }
  .topstories { padding: 0 14px 10px; }
  .tabs { margin: 0 -14px 10px; padding: 0 6px; }
  .headlines a, .catblock__line a, .rolling__list a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .strip { margin-top: 24px; padding: 18px 0 20px; }
  .strip__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); mask-image: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .strip__viewport::-webkit-scrollbar { display: none; }
  .strip__track { animation: none; padding: 0 var(--gutter); gap: 12px; }
  .strip__item { width: 72vw; max-width: 280px; scroll-snap-align: start; }
  .strip__item[data-clone] { display: none; }
  .sections { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
  .sechead__title { font-size: 19px; }
  .mini a { grid-template-columns: 96px minmax(0, 1fr); }
  .rolling__viewport { height: auto; max-height: none; }
  .rolling__viewport.is-auto .rolling__list { animation: none; }
  .rolling__list li[data-clone] { display: none; }
  .rolling__list li { grid-template-columns: 58px minmax(0, 1fr); }
  .hero__subs { grid-template-columns: minmax(0, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); }
  .sub { flex-direction: row; align-items: flex-start; gap: 12px; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 12px; }
  .sub:last-child { border-bottom: 0; }
  .sub__img { width: 104px; flex: none; aspect-ratio: 4 / 3; }
  .sub__title { margin: 0; font-size: 14.5px; }
  .mainnav .wrap { position: relative; }
  .mainnav .wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 28px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
  .rolling__list time { display: none; }
  .cathead { padding: 18px 0 14px; gap: 12px; }
  .cathead .seal--lg { width: 44px; height: 44px; font-size: 24px; }
  .cathead__title { font-size: 25px; }
  .cathead__title span { font-size: 14px; }
  .catlead { grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; background: none; gap: 10px; }
  .catlead__text h2 { font-size: 20px; }
  .stream__item a { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .stream__img { aspect-ratio: 1 / 1; }
  .stream__text h3 { font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .stream__text p { display: none; }
  .article-layout { margin-top: 0; gap: 24px; }
  .article { padding: 14px 0 20px; border: 0; background: none; }
  .article__title { font-size: 25px; line-height: 1.32; }
  .article__dek { font-size: 16px; }
  .article__figure { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .article__figure figcaption { padding: 0 var(--gutter); }
  .article__body { font-size: 16.5px; line-height: 1.8; }
  .article__sources { padding: 14px 14px; }
  .prevnext { grid-template-columns: minmax(0, 1fr); }
  .prevnext__item--next { text-align: left; }
  .grid4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .grid4 .card__title--sm { font-size: 14.5px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 30px; }
  .footer__mountains { width: 300px; height: 280px; }
  .pagetitle { font-size: 26px; margin-top: 22px; }
  .totop { right: 14px; width: 42px; height: 42px; }
  .consent { left: 0; right: 0; bottom: 0; width: 100%; }
  .consent__card { border-left: 0; border-right: 0; border-bottom: 0; padding: 16px var(--gutter) calc(14px + env(safe-area-inset-bottom)); max-height: 85vh; }
  .consent__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .consent__actions [data-consent-accept], .consent__actions [data-consent-save] { grid-column: 1 / -1; order: -1; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
