/* Approved chronological editorial view. Shared navigation is deliberately untouched. */
body[data-view="topics"] {
  isolation: isolate;
  background: #e5eef8;
}

body[data-view="topics"]::before {
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, var(--discover-width));
  background: #e7f2fc url("/discover/featured-background.png") center top / cover no-repeat;
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

body[data-view="topics"] :is(.site-header, .site-footer) { display: none; }

.featured-page {
  --featured-ink: #10213f;
  --featured-muted: #536b87;
  --featured-blue: #1260fa;
  container-type: inline-size;
  width: min(100%, var(--discover-width));
  min-height: calc(100dvh - var(--tab-space));
  margin-inline: auto;
  padding-top: env(safe-area-inset-top);
  color: var(--featured-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.featured-page :is(h1,h2,p) { margin: 0; }
.featured-page ::selection { background: #c3dcff; color: #10213f; }
.featured-nav {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 52px;
  padding-inline: 10px;
}
.featured-nav h1 { font-size: 19px; font-weight: 700; line-height: 1.4; text-align: center; }
.featured-back {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--featured-ink);
  text-decoration: none;
}
.featured-back .connect-icon { width: 24px; height: 24px; transform: rotate(180deg); }
.featured-feed { padding: 22px 20px 28px; }
.featured-month + .featured-month { margin-top: 30px; }
.featured-month__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 23px;
  color: var(--featured-ink);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.featured-month__heading::before {
  width: 3px;
  height: 18px;
  flex: none;
  background: var(--featured-blue);
  content: "";
}
.featured-month:not(.featured-month--latest) .featured-month__heading::after {
  height: 1px;
  flex: 1;
  margin-left: 3px;
  background: #abc4e2;
  content: "";
}
.featured-intro { padding-top: 14px; }
.featured-intro__title {
  font-size: clamp(27px, 7.45cqw, 39px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.featured-intro .featured-intro__subtitle { margin-top: 8px; color: var(--featured-muted); font-size: 15px; line-height: 1.4; }
.featured-month__articles { margin-top: 18px; }
.featured-month--latest .featured-month__articles { margin-top: 24px; }
.featured-page .featured-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  grid-template-areas: "body photo" "summary photo" "date photo";
  align-content: center;
  column-gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  margin: 0;
  padding: 15px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.featured-entry + .featured-entry { border-top: 1px solid #b9cde6; }
.featured-entry__body { display: flex; grid-area: body; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.featured-entry__type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #cadeff;
  color: #0755d4;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.45;
}
.featured-entry__title { display: block; font-size: clamp(16px, 4.35cqw, 23px); font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.featured-entry__title > span { display: block; }
.featured-entry__photo { position: relative; display: block; grid-area: photo; align-self: center; overflow: hidden; border-radius: 9px; }
.featured-entry__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.featured-entry__summary { display: block; grid-area: summary; margin-top: 5px; color: var(--featured-muted); font-size: 13px; line-height: 1.6; }
.featured-entry__date { display: block; grid-area: date; margin-top: 5px; color: var(--featured-muted); font-size: 12px; line-height: 1.5; }
.featured-page .featured-entry--lead {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "body photo" "summary photo" "date date";
  column-gap: 12px;
  min-height: 0;
  padding: 0;
}
.featured-entry--lead .featured-entry__body { align-self: end; gap: 18px; }
.featured-entry--lead .featured-entry__title { font-size: clamp(24px, 6.7cqw, 36px); line-height: 1.4; }
.featured-entry--lead .featured-entry__type { font-size: 13px; }
.featured-entry--lead .featured-entry__photo img { aspect-ratio: 1; }
.featured-entry--lead .featured-entry__summary { align-self: start; margin-top: 10px; font-size: 13px; }
.featured-entry--lead .featured-entry__date { margin-top: 7px; }
.featured-entry__runtime {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px 3px 3px;
  border-radius: 20px;
  background: #10213fe8;
  color: white;
  font-size: 12px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.featured-entry__runtime .connect-icon { width: 17px; height: 17px; }
.featured-entry:hover .featured-entry__title { color: #0755d4; }
.featured-page :is(a,button):focus-visible { outline: 2px solid var(--featured-blue); outline-offset: 4px; box-shadow: none; }
.featured-status { padding-block: 40px; color: var(--featured-muted); font-size: 15px; }
.featured-retry { min-height: 44px; padding: 8px 18px; border: 1px solid #9ab8e3; border-radius: 10px; background: #f2f7ff; color: #0755d4; cursor: pointer; }
.featured-preview-note { color: #536b87; font-size: 13px; }

html:lang(en) .featured-intro__title { font-size: clamp(24px, 6.6cqw, 34px); }
html:lang(en) .featured-entry--lead { grid-template-areas: "body photo" "summary summary" "date date"; }
html:lang(en) .featured-entry--lead .featured-entry__body { align-self: center; }
html:lang(en) .featured-entry--lead .featured-entry__title { font-size: clamp(21px, 5.7cqw, 30px); line-height: 1.35; }
html:lang(en) .featured-entry__title { font-size: clamp(16px, 4cqw, 21px); }
@media (max-width: 350px) {
  .featured-feed { padding-inline: 16px; }
  .featured-page .featured-entry { column-gap: 10px; }
  .featured-entry--lead .featured-entry__body { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-page:not([hidden]) { animation: none; }
}

/* Keep the full cover on the left and the article caption on the right. */
.discover-home .discover-pick--article {
  /* 44% × 1.2 keeps the cover proportional while making the card 20% taller. */
  grid-template-columns: minmax(0, 52.8%) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 0;
}
.discover-pick--article .discover-media-card__image {
  align-self: center;
  background: #e5ecf6;
}
.discover-pick--article .discover-media-card__image > img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.discover-home .discover-pick--article .discover-media-card__body {
  gap: 4px;
  padding: 0 10px;
}
.discover-home .discover-pick--article .discover-media-card__label {
  padding: 2px 6px;
  font-size: 12px;
}
.discover-home .discover-pick--article .discover-media-card__body > strong {
  display: block;
  max-inline-size: none;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
}
@media (max-width: 389px) {
  .discover-home .discover-pick--article .discover-media-card__body { gap: 3px; padding-inline: 8px; }
  .discover-home .discover-pick--article .discover-media-card__label { font-size: 11px; }
  .discover-home .discover-pick--article .discover-media-card__body > strong { font-size: 13px; line-height: 1.3; }
}
@media (max-width: 350px) {
  .discover-home .discover-pick--article .discover-media-card__body { padding-inline: 6px; }
  .discover-home .discover-pick--article .discover-media-card__body > strong { font-size: 12px; }
}
.discover-featured-status {
  min-height: 104px;
  padding: 30px 12px;
  color: #455b7c;
  font-size: 14px;
  line-height: 1.6;
}
.discover-home #discoverFeatured .featured-retry {
  min-height: 44px;
  margin-bottom: 12px;
  padding: 8px 18px;
  border: 1px solid #9ab8e3;
  border-radius: 10px;
  background: #f2f7ff;
  color: #0755d4;
  font-size: 14px;
}
.featured-page .featured-entry--lead.featured-entry--article {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "photo" "body" "summary" "date";
  gap: 0;
}
.featured-entry--article.featured-entry--lead .featured-entry__photo { margin-bottom: 18px; }
.featured-entry--article.featured-entry--lead .featured-entry__photo img { aspect-ratio: 3008 / 1280; object-fit: contain; }
.featured-entry--article.featured-entry--lead .featured-entry__body { gap: 10px; }
.featured-entry--article.featured-entry--lead .featured-entry__title {
  font-size: clamp(22px, 5.9cqw, 30px);
  line-height: 1.45;
  text-wrap: pretty;
}
.featured-entry--article:not(.featured-entry--lead) .featured-entry__photo img { object-fit: contain; }

.featured-reader {
  width: min(calc(100% - 24px), 760px);
  max-width: none;
  max-height: min(100dvh, 1100px);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 16px;
  background: #fcfdff;
  color: #10213f;
  box-shadow: 0 18px 70px #0d255b3d;
  overscroll-behavior: contain;
  scrollbar-color: #9bafcb #eff4fc;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.featured-reader::backdrop { background: #10204080; }
.featured-reader.is-opening {
  animation: reader-slide-in 340ms cubic-bezier(.16, 1, .3, 1) both;
}
.featured-reader.is-closing {
  animation: reader-slide-out 220ms cubic-bezier(.4, 0, .8, .4) both;
  pointer-events: none;
}
.featured-reader:is(.is-opening,.is-closing) { will-change: transform; }
.featured-reader.is-opening::backdrop { animation: reader-backdrop-in 340ms ease-out both; }
.featured-reader.is-closing::backdrop { animation: reader-backdrop-out 220ms ease-in both; }
@keyframes reader-slide-in {
  from { transform: translateX(calc(50vw + 50%)); }
  to { transform: translateX(0); }
}
@keyframes reader-slide-out {
  from { transform: var(--reader-exit-from, translateX(0)); }
  to { transform: translateX(calc(50vw + 50%)); }
}
@keyframes reader-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reader-backdrop-out { from { opacity: var(--reader-exit-backdrop-opacity, 1); } to { opacity: 0; } }
@keyframes reader-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reader-fade-out { from { opacity: var(--reader-exit-opacity, 1); } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .featured-reader.is-opening { animation: reader-fade-in 90ms ease-out both !important; }
  .featured-reader.is-closing { animation: reader-fade-out 90ms ease-in both !important; }
  .featured-reader:is(.is-opening,.is-closing) { will-change: opacity; }
  .featured-reader:is(.is-opening,.is-closing)::backdrop { animation-duration: 90ms !important; }
}
.featured-reader ::selection { background: #c3dcff; color: #10213f; }
.featured-reader__toolbar {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 0;
  margin: 0;
  padding: 0;
}
.featured-reader__close {
  position: absolute;
  top: 4px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #304e79;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.featured-reader__close::before {
  position: absolute;
  inset: 8px;
  border: 1px solid #dce5f0;
  border-radius: 50%;
  background: #fcfdfff2;
  content: "";
}
.featured-reader__close > span { display: none; }
.featured-reader__close svg { position: relative; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.featured-reader__close:hover::before { background: #e8f0fc; border-color: #b8cce8; }
.featured-reader :is(button,a):focus-visible { outline: 2px solid #1260fa; outline-offset: 2px; }
.featured-reader__article { padding: 12px clamp(20px, 5vw, 40px) 40px; }
.featured-reader h1 { margin: 0; padding-inline-end: 44px; font-size: clamp(24px, 5.9vw, 32px); line-height: 1.45; font-weight: 730; overflow-wrap: anywhere; }
.featured-reader__meta { margin: 12px 0 20px; color: #536b87; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.featured-reader__image { display: block; width: 100%; height: auto; margin-bottom: 24px; object-fit: contain; }
.featured-reader__image[hidden] { display: none; }
.featured-reader__body { max-width: 72ch; color: #233a59; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.featured-reader__body > :first-child { margin-top: 0; }
.featured-reader__body p { margin: 0 0 18px; }
.featured-reader__body h2 { margin: 34px 0 12px; color: #10213f; font-size: 22px; line-height: 1.5; }
.featured-reader__body h3 { margin: 26px 0 10px; color: #10213f; font-size: 18px; line-height: 1.55; }
.featured-reader__body :is(ul,ol) { margin: 0 0 22px; padding-left: 1.5em; }
.featured-reader__body li { margin: 0 0 12px; padding-left: .15em; }
.featured-reader__body .featured-preview-note { color: #536b87; font-size: 14px; }
.featured-reader__table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #9bafcb #eff4fc;
}
.featured-reader__table-scroll:focus-visible { outline: 2px solid #1260fa; outline-offset: 3px; }
.featured-reader__body table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.featured-reader__body :is(th,td) { padding: 10px 8px; border: 1px solid #c8d6e9; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.featured-reader__body th { background: #e8f0fc; color: #17365e; font-weight: 650; }
@media (max-width: 450px) {
  .featured-reader { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .featured-reader__article { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
