:root {
  --paper: #f3f5f4;
  --paper-2: #edf1f0;
  --ink: #102019;
  --muted: #65736e;
  --line: rgba(16, 32, 25, 0.13);
  --strong: #0d1b14;
  --green: #17704c;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 20%, rgba(12, 55, 42, 0.07), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

.page-transition-surface {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.page-enter .page-transition-surface {
  opacity: 0;
}

.page-enter-forward .page-transition-surface {
  transform: translateX(16px);
}

.page-enter-back .page-transition-surface {
  transform: translateX(-16px);
}

.page-exit .page-transition-surface {
  opacity: 0;
}

.page-exit-forward .page-transition-surface {
  transform: translateX(-16px);
}

.page-exit-back .page-transition-surface {
  transform: translateX(16px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
  padding: 0 64px;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(252, 252, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 46px;
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.18s ease;
}

.brand:hover {
  color: #0a0a0a;
}

.topnav {
  --nav-indicator-x: 0px;
  --nav-indicator-width: 0px;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  gap: 12px;
  position: relative;
  isolation: isolate;
  overflow: visible;
  color: #737373;
  font-size: 14px;
  font-weight: 600;
  scrollbar-width: none;
}

.topnav::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  z-index: 0;
  width: var(--nav-indicator-width);
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  opacity: 0;
  pointer-events: none;
  transform: translateX(var(--nav-indicator-x));
  transition:
    transform 0.38s cubic-bezier(0.19, 1, 0.22, 1),
    width 0.38s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.2s ease;
}

.topnav.is-ready::before {
  opacity: 1;
}

.topnav.is-switching a {
  pointer-events: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-width: 76px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 0;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.topnav a.active,
.topnav a:hover {
  color: #0a0a0a;
}

.topnav a.active {
  border-color: transparent;
  background: transparent;
  color: #ffffff;
}

.topnav:not(.is-ready) a.active {
  border-color: #0a0a0a;
  background: #0a0a0a;
}

.topnav a:hover:not(.active) {
  background: rgba(0, 0, 0, 0.035);
}

.nav-section {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  transition: gap 340ms cubic-bezier(0.19, 1, 0.22, 1);
}

.topnav.is-leaving-finnews .finnews-nav-section {
  gap: 0;
}

.region-filter {
  --region-filter-height: 0px;
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  max-width: 96px;
  opacity: 1;
  transform: translateX(0) scale(1);
  transform-origin: left center;
  transition:
    max-width 340ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: max-width, opacity, transform;
}

.topnav.is-leaving-finnews .region-filter {
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px) scale(0.96);
}

.region-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  z-index: 6;
  min-height: 32px;
  min-width: 72px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #737373;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease;
}

.topnav.is-leaving-finnews .region-filter-toggle {
  color: transparent;
}

.region-filter-toggle::after {
  content: "";
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.region-filter-toggle:hover,
.region-filter-toggle:focus-visible,
.region-filter.is-open .region-filter-toggle {
  color: #0a0a0a;
  outline: 0;
}

.region-filter.is-open .region-filter-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.region-filter-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 12px;
  z-index: 40;
  width: 148px;
  max-height: 0;
  padding: 6px 0;
  overflow: hidden;
  border: 0;
  background: rgba(252, 252, 252, 0.96);
  box-shadow: 0 14px 30px rgba(10, 10, 10, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    max-height 380ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.19, 1, 0.22, 1);
}

.topnav.is-leaving-finnews .region-filter-content {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.region-filter.is-open .region-filter-content {
  max-height: var(--region-filter-height);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.region-buttons {
  display: grid;
  gap: 2px;
}

.region-buttons button {
  width: 100%;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #737373;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.region-buttons button:hover,
.region-buttons button:focus-visible {
  color: #0a0a0a;
  outline: 0;
}

.region-buttons button.active {
  padding-left: 16px;
  background: transparent;
  color: #0a0a0a;
}

.update-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.update-line {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  min-width: 0;
  padding: 0;
  color: #737373;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.update-line.is-error {
  color: #b1402f;
}

.layout {
  display: block;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.sidebar {
  display: none;
}

.side-label,
.section-heading p {
  margin: 0 0 24px;
  color: #95a09b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition-surface,
  .region-filter,
  .region-filter-toggle::after,
  .region-filter-content,
  .hero-main,
  .hero-main-content,
  .hero-image,
  .hero-image img,
  .hero-copy,
  .hero-copy > p,
  .story-card,
  .story-media,
  .story-media img,
  .story-body,
  .story-card .story-body > p,
  .story-expansion {
    transition: none !important;
    animation: none !important;
  }

  .page-transition-surface {
    opacity: 1 !important;
    transform: none !important;
  }

  .region-filter {
    opacity: 1;
    transform: none;
  }
}

.main {
  min-width: 0;
  padding: 44px 44px 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.hero-main {
  min-height: 360px;
  cursor: zoom-in;
  transition:
    padding 520ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-content {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(250px, 0.62fr);
  gap: 28px;
  align-items: end;
  width: 100%;
  transition:
    gap 520ms cubic-bezier(0.19, 1, 0.22, 1),
    grid-template-columns 560ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: var(--paper-2);
  overflow: hidden;
  transition:
    aspect-ratio 560ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 560ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-copy {
  align-self: end;
  padding: 0 0 6px;
  transition:
    opacity 320ms ease,
    padding 520ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.story-meta span:first-child {
  color: var(--green);
}

.hero h1 {
  margin: 12px 0 14px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(34px, 3.1vw, 46px);
  line-height: 1.03;
  font-weight: 500;
}

.hero p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.hero-copy > p {
  max-height: 7em;
  transition:
    opacity 180ms ease,
    max-height 420ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1),
    margin-bottom 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-main.clickable-story:hover:not(.is-expanded):not(.is-collapsing) .hero-image img,
.hero-main.clickable-story:focus-visible:not(.is-expanded):not(.is-collapsing) .hero-image img {
  transform: scale(1.018);
}

.hero-main.clickable-story:focus-visible {
  outline: 0;
}

.hero-main.is-expanded,
.hero-main.is-collapsing {
  cursor: zoom-out;
}

.hero-main.is-expanded .hero-image img,
.hero-main.is-collapsing .hero-image img {
  transform: scale(1.025);
}

.hero-main.is-expanded .hero-copy {
  animation: story-body-enter 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.hero-main.is-expanded .hero-copy > p,
.hero-main.is-collapsing .hero-copy > p {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
}

.source-link,
.source-label {
  display: inline-block;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
}

.source-label {
  cursor: inherit;
}

.expandable-story.is-expanded .source-label,
.expandable-story.is-collapsing .source-label {
  display: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin: 96px 0 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  margin-top: 64px;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1;
  font-weight: 500;
}

.section-heading a {
  border-bottom: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.topic-card {
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.topic-card:last-child {
  border-right: 0;
}

.topic-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.topic-card h3 {
  margin: 12px 0 32px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 30px;
  font-weight: 500;
}

.topic-card a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  border-top: 0;
}

.story-card {
  display: block;
  align-items: start;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 260ms ease,
    box-shadow 340ms ease,
    grid-template-columns 520ms cubic-bezier(0.19, 1, 0.22, 1),
    padding 520ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.story-card.clickable-story {
  cursor: zoom-in;
}

.story-card.clickable-story:hover:not(.is-expanded):not(.is-collapsing),
.story-card.clickable-story:focus-visible:not(.is-expanded):not(.is-collapsing) {
  transform: translateY(-2px);
  outline: 0;
}

@keyframes story-body-enter {
  from {
    opacity: 0.72;
    transform: translate3d(18px, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.story-card.is-expanded,
.story-card.is-collapsing {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 0.56fr);
  gap: 34px;
  justify-self: stretch;
  width: 100%;
  padding: 34px 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-out;
}

.story-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  align-self: start;
  margin-bottom: 16px;
  background: var(--paper-2);
  overflow: hidden;
  transition:
    aspect-ratio 520ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 640ms cubic-bezier(0.19, 1, 0.22, 1);
}

.story-card.clickable-story:hover:not(.is-expanded):not(.is-collapsing) .story-media img {
  transform: scale(1.035);
}

.story-card.is-expanded .story-media img,
.story-card.is-collapsing .story-media img {
  transform: scale(1.055);
}

.story-card.is-expanded .story-media,
.story-card.is-collapsing .story-media {
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  opacity: 1;
  transform: none;
}

.story-card.is-expanded .story-body,
.story-card.is-collapsing .story-body {
  align-self: start;
  max-width: 720px;
}

@media (min-width: 561px) {
  .story-card.is-expanded .story-body {
    animation: story-body-enter 520ms cubic-bezier(0.19, 1, 0.22, 1) both;
    will-change: opacity, transform;
  }
}

.story-card h3 {
  margin: 14px 0 12px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 500;
}

.story-title-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: inherit;
  appearance: none;
}

.hero-title-button {
  max-width: 100%;
}

.story-title-button:hover,
.story-title-button:focus-visible {
  color: var(--green);
  outline: 0;
}

.story-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.story-card .story-body > p {
  transition:
    opacity 240ms ease 120ms,
    max-height 480ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 480ms cubic-bezier(0.19, 1, 0.22, 1),
    margin-bottom 480ms cubic-bezier(0.19, 1, 0.22, 1);
  max-height: 8.5em;
  overflow: hidden;
}

.story-card.is-expanded .story-body > p,
.story-card.is-collapsing .story-body > p {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
}

.story-card.is-expanded .story-body > p {
  transition:
    opacity 160ms ease,
    max-height 420ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 420ms cubic-bezier(0.19, 1, 0.22, 1),
    margin-bottom 420ms cubic-bezier(0.19, 1, 0.22, 1);
}

.story-card.is-collapsing .story-body > p {
  transition:
    opacity 180ms ease 240ms,
    max-height 480ms cubic-bezier(0.19, 1, 0.22, 1) 40ms,
    transform 480ms cubic-bezier(0.19, 1, 0.22, 1) 40ms,
    margin-bottom 480ms cubic-bezier(0.19, 1, 0.22, 1) 40ms;
}

.story-expansion {
  --expanded-height: 0px;
  max-height: var(--expanded-height);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    max-height 520ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 200ms ease,
    transform 440ms cubic-bezier(0.19, 1, 0.22, 1),
    visibility 0s linear 520ms;
  will-change: max-height, opacity, transform;
}

.story-card.is-expanded .story-expansion,
.hero-main.is-expanded .story-expansion {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    max-height 540ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 280ms ease 80ms,
    transform 460ms cubic-bezier(0.19, 1, 0.22, 1) 40ms,
    visibility 0s linear;
}

.story-full-body {
  display: block;
  margin: 16px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.86;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.hero .story-full-body {
  display: block;
  overflow: visible;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.realtime-main {
  padding: 32px 56px 56px;
}

.conpera-realtime-main {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.realtime-picks {
  padding: 18px 0 20px;
}

.realtime-picks-panel {
  width: 100%;
}

.picks-heading {
  margin-bottom: 12px;
}

.realtime-picks-wrap {
  --picks-list-height: none;
  --picks-list-preview-height: 0px;
  position: relative;
  max-height: var(--picks-list-height);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 520ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.realtime-picks-panel.is-collapsed .realtime-picks-wrap {
  max-height: var(--picks-list-preview-height);
}

.realtime-picks-panel.is-collapsed .realtime-picks-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 245, 244, 0), var(--paper));
}

.realtime-picks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}

.pick-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 180ms ease, background-color 180ms ease, padding-left 180ms ease;
}

.pick-card:hover,
.pick-card:focus-visible {
  color: var(--green);
  background: linear-gradient(90deg, rgba(13, 27, 20, 0.05), transparent 74%);
  padding-left: 10px;
  outline: 0;
}

.pick-card span {
  color: #9aa49f;
  font-family: Georgia, serif;
  font-size: 26px;
  line-height: 1;
}

.pick-card em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pick-card strong {
  display: block;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.pick-card p {
  display: none;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pick-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-weight: 800;
}

.panel-heading p {
  margin: 0;
  color: #95a09b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.realtime-board {
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.realtime-rank-panel {
  width: 100%;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 12px;
}

.panel-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(30px, 2.7vw, 46px);
  line-height: 1;
  font-weight: 400;
}

.rank-toggle-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, transform 220ms cubic-bezier(0.19, 1, 0.22, 1);
}

.rank-toggle-btn:hover,
.rank-toggle-btn:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
  outline: 0;
}

.rank-toggle-btn:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.rank-toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.78;
  transform: rotate(225deg) translate(-1px, -1px);
  transition:
    opacity 180ms ease,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.rank-toggle-btn:hover .rank-toggle-icon,
.rank-toggle-btn:focus-visible .rank-toggle-icon {
  opacity: 1;
}

.realtime-rank-panel.is-collapsed .rank-toggle-icon {
  transform: rotate(45deg) translate(-1px, -1px);
}

.realtime-picks-panel.is-collapsed .rank-toggle-icon {
  transform: rotate(45deg) translate(-1px, -1px);
}

.rank-list-wrap {
  --rank-list-height: none;
  --rank-list-preview-height: 0px;
  position: relative;
  max-height: var(--rank-list-height);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 520ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.19, 1, 0.22, 1);
}

.realtime-rank-panel.is-collapsed .rank-list-wrap {
  max-height: var(--rank-list-preview-height);
}

.realtime-rank-panel.is-collapsed .rank-list-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(243, 245, 244, 0), var(--paper));
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}

.rank-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 150ms ease, padding-left 150ms ease;
}

.rank-item:hover,
.rank-item:focus-visible {
  background: linear-gradient(90deg, rgba(13, 27, 20, 0.05), transparent 74%);
  padding-left: 10px;
  outline: 0;
}

.rank-item span {
  color: #9aa49f;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.rank-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.34;
}

.rank-item em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rank-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
  font-weight: 800;
}

.source-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.5fr);
  align-items: center;
  padding-top: 0;
  border-top: 0;
}

.source-heading > div {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.source-card {
  --source-preview-height: 420px;
  --source-expanded-height: 420px;
  padding: 0 0 20px;
  border-top: 1px solid var(--line);
}

.source-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--line);
}

.source-card-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.source-card-title > span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.source-card h3 {
  margin: 0;
  font-size: 18px;
}

.source-card header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.source-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.source-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.source-toggle-btn i {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.source-card.is-expanded .source-toggle-btn i {
  transform: rotate(225deg) translateY(-1px);
}

.source-card-header {
  cursor: pointer;
}

.source-card-header:hover .source-toggle-btn {
  color: var(--green);
}

.source-card-list {
  display: grid;
}

.source-card-list-scroll {
  position: relative;
  max-height: var(--source-preview-height);
  overflow: hidden;
  padding-right: 10px;
  transition: max-height 0.28s ease;
}

.source-card.is-expanded .source-card-list-scroll {
  max-height: var(--source-expanded-height);
  overflow: visible;
}

.source-card.is-collapsed .source-card-list-scroll::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 246, 246, 0), var(--paper));
}

.source-card-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.source-card-list a:first-child {
  border-top: 0;
}

.source-card-list strong {
  font-size: 15px;
  line-height: 1.45;
}

.source-card-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.newsnow-frame-wrap {
  max-width: 1420px;
  margin: 0 auto;
}

.conpera-newsnow-stage {
  max-width: none;
  padding: 30px 0 0;
  background: var(--paper);
}

.stage-rule {
  height: 1px;
  margin-bottom: 20px;
  background: var(--line);
}

.newsnow-frame {
  width: 100%;
  height: min(1160px, calc(100vh - 112px));
  min-height: 760px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.frame-fallback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.frame-fallback a {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .layout {
    width: 100%;
  }

  .side-label {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-main {
    min-height: 0;
  }

  .hero-main-content {
    grid-template-columns: minmax(300px, 0.92fr) minmax(250px, 0.62fr);
  }

  .hero-image {
    min-height: 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .layout {
    padding: 0;
  }

  .nav-section {
    flex: 0 0 auto;
  }

  .main,
  .realtime-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    gap: 20px;
    min-height: auto;
    padding: 18px 24px;
  }

  .brand {
    font-size: 18px;
  }

  .topnav {
    overflow: visible;
  }

  .topnav a {
    flex: 0 0 auto;
    justify-content: center;
  }

  .region-filter-content {
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
  }

  .update-cluster {
    max-width: min(100%, 340px);
  }

  .update-line {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main,
  .realtime-main {
    padding: 18px 20px 42px;
  }

  .realtime-picks-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 0;
  }

  .hero-main-content {
    grid-template-columns: 1fr;
  }

  .hero-main-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image {
    min-height: 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    max-width: 760px;
    font-size: 42px;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .realtime-picks {
    padding: 8px 0 12px;
  }

  .realtime-picks-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .pick-card {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 54px;
    padding: 8px 0;
  }

  .pick-card strong {
    font-size: 15px;
    line-height: 1.28;
  }

  .pick-card em {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.35;
  }

  .pick-card p {
    display: none;
  }

  .realtime-board {
    padding: 20px 0 28px;
  }

  .rank-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .rank-item {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 60px;
    padding: 10px 0;
  }

  .rank-item span {
    font-size: 22px;
  }

  .rank-item strong {
    font-size: 15px;
    line-height: 1.32;
  }

  .rank-item em {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.35;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-card.is-expanded,
  .story-card.is-collapsing {
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
    gap: 26px;
    padding: 28px 0;
    background: transparent;
    box-shadow: none;
  }

  .story-card h3 {
    font-size: 23px;
  }
}

@media (max-width: 560px) {
  .topnav,
  .update-line {
    font-size: 13px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    width: max-content;
    min-height: 32px;
  }

  .topnav a {
    min-height: 38px;
    padding: 0 14px;
  }

  .nav-section {
    gap: 8px;
  }

  .region-filter-content {
    left: auto;
    right: 0;
  }

  .update-cluster {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  .update-line {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
  }

  .realtime-main {
    padding: 12px 16px 36px;
  }

  .panel-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    min-width: 0;
  }

  .panel-heading p {
    flex: 0 0 auto;
    letter-spacing: 0.28em;
  }

  .panel-heading h2 {
    font-size: 24px;
    white-space: nowrap;
  }

  .panel-title-group {
    gap: 5px;
    min-width: 0;
    flex: 0 0 auto;
  }

  .rank-toggle-btn {
    width: 22px;
    height: 22px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.68;
    -webkit-line-clamp: 2;
  }

  .hero {
    gap: 22px;
    margin-bottom: 22px;
    padding-bottom: 0;
  }

  .hero-main-content {
    gap: 18px;
  }

  .hero-main {
    padding-bottom: 0;
  }

  .hero-image {
    aspect-ratio: 16 / 10;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .source-card-list em {
    grid-column: 1;
  }

  .section-heading {
    display: block;
    margin-top: 58px;
  }

  .source-heading > div {
    text-align: left;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 18px;
  }

  .story-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 0;
  }

  .story-card.clickable-story:hover,
  .story-card.clickable-story:focus-visible {
    transform: none;
  }

  .story-media {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
  }

  .story-card p {
    display: none;
  }

  .story-card h3 {
    margin: 8px 0 12px;
    font-size: 22px;
  }

  .story-card.is-expanded .story-media,
  .story-card.is-collapsing .story-media {
    max-width: none;
  }

  .story-card.is-expanded,
  .story-card.is-collapsing {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 22px 0;
  }

  .story-full-body {
    font-size: 16px;
  }

  .newsnow-frame {
    min-height: 680px;
    height: calc(100vh - 130px);
  }
}
