
:root {
  --tnw-black: #000000;
  --tnw-ink: #1b1d24;
  --tnw-muted: #5c6670;
  --tnw-line: #e0e4e8;
  --tnw-soft: #f4f6f8;
  --tnw-white: #ffffff;
  --tnw-accent: #00d7df;
  --tnw-purple: #6644ff;
  --max: 1265px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tnw-white);
}

body {
  margin: 0;
  font-family: Graphik, Arial, Helvetica, sans-serif;
  color: var(--tnw-ink);
  background: var(--tnw-white);
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

a:hover {
  color: var(--tnw-purple);
}

img {
  display: block;
  max-width: 100%;
  background: var(--tnw-soft);
}

h1,
h2,
h3,
p,
ol {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--tnw-black);
  color: var(--tnw-white);
  padding: .7rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--tnw-white);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 10px 16px rgba(0, 0, 0, .08);
}

.page-shell,
.article-shell,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.tnw-masthead {
  width: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 6px;
  padding: 8px 0 10px;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: min(231px, 26.6vw);
  max-width: 231px;
  min-width: 112px;
  margin-left: 30px;
  transform: translateY(40px);
  transform-origin: left bottom;
}

.brand-link img {
  width: 100%;
  max-width: 231px;
  height: auto;
  background: var(--tnw-white);
  transform: scale(1.2);
  transform-origin: left bottom;
}

.source-style-nav,
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.source-style-nav {
  contain: paint;
  width: max-content;
  max-width: none;
  flex: 0 0 auto;
  margin-left: max(24px, calc((100% - 1217px) / 2));
  min-width: 0;
  min-height: 44px;
  gap: 24px;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  color: #6b7480;
  font-size: 16.8px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.source-style-nav a:first-child {
  color: var(--tnw-black);
}

.top-story-grid {
  width: min(1217px, calc(100% - 48px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 248px 120px 248px;
  gap: 8px;
  padding: 16px 0 0;
}

.story-tile {
  position: relative;
  overflow: hidden;
  background: var(--tnw-black);
}

.showcase-slot-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.showcase-slot-2 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.showcase-slot-4 {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.showcase-slot-5 {
  grid-column: 3 / 5;
  grid-row: 2 / 4;
}

.showcase-ad-panel {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  background: var(--tnw-purple);
}

.story-media,
.story-media::after {
  position: absolute;
  inset: 0;
}

.story-media::after {
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, .02) 0%, rgba(255, 255, 255, .28) 55%, rgba(255, 255, 255, .72) 100%);
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--tnw-black);
  z-index: 1;
}

.showcase-ad-panel .story-copy {
  color: var(--tnw-white);
}

.story-category,
.kicker {
  display: inline-block;
  color: var(--tnw-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.story-copy h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead-story .story-copy h2 {
  max-width: 680px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
}

.showcase-ad-panel h2 {
  max-width: 560px;
  color: var(--tnw-white);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
}

.showcase-ad-panel p {
  max-width: 520px;
  margin: 0 0 12px;
  color: var(--tnw-white);
  font-size: 16px;
}

.ad-link {
  color: var(--tnw-white);
  font-size: 14px;
  font-weight: 900;
}

.latest-news-section {
  width: 100%;
  margin: 0 auto;
  padding: 48px 0 177px;
}

.latest-news-section h2,
.topic-block > h2,
.page-shell h1 {
  width: min(1201px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
  color: var(--tnw-black);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 40px;
}

.latest-news-section h2 {
  margin-bottom: 16px;
}

.latest-news-list,
.topic-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-news-list {
  width: min(1233px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.latest-news-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 315px;
  padding: 0 16px 24px;
}

.latest-media {
  display: block;
  flex: 0 0 auto;
}

.latest-thumb {
  width: 100%;
  height: 155px;
  object-fit: cover;
}

.latest-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.latest-copy h3 {
  margin: 8px 0 6px;
  color: var(--tnw-black);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.latest-copy .story-category {
  margin-top: auto;
  align-self: flex-start;
}

.topic-section-stack {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 68px;
}

.newsletter-band {
  display: flex;
  align-items: center;
  min-height: 260px;
  padding: 64px;
  background: var(--tnw-purple);
  color: var(--tnw-white);
}

.newsletter-inner {
  width: min(1201px, calc(100% - 64px));
  margin: 0 auto;
}

.newsletter-band h2 {
  max-width: none;
  margin: 0 0 28px;
  color: var(--tnw-white);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.newsletter-form {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.newsletter-form input,
.newsletter-form button {
  min-height: 52px;
  border: 0;
  font: inherit;
}

.newsletter-form input {
  min-width: 0;
  padding: 0 18px;
  color: var(--tnw-black);
  background: var(--tnw-white);
  font-size: 16px;
  font-weight: 700;
}

.newsletter-form button {
  padding: 0 28px;
  color: var(--tnw-white);
  background: var(--tnw-black);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.newsletter-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .42);
}

.newsletter-popup[hidden] {
  display: none;
}

.newsletter-popup-card {
  width: min(360px, 100%);
  padding: 28px;
  background: var(--tnw-white);
  color: var(--tnw-black);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.newsletter-popup-card p {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.newsletter-popup-close {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  color: var(--tnw-white);
  background: var(--tnw-black);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.topic-block {
  width: min(1217px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.topic-block-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 34px;
}

.topic-lead-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 14px;
}

.topic-lead h3 {
  margin: 8px 0 8px;
  color: var(--tnw-black);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.topic-lead p,
.page-lede,
.article-summary,
.static-copy p,
.category-feature-copy p,
.category-card-copy p,
.category-stream-item p {
  color: var(--tnw-muted);
}

.topic-rank-list {
  counter-reset: ranked;
  border-top: 1px solid var(--tnw-line);
}

.topic-rank-list li {
  position: relative;
  min-height: 82px;
  padding: 14px 0 16px 46px;
  border-bottom: 1px solid var(--tnw-line);
  counter-increment: ranked;
}

.topic-rank-list li::before {
  content: counter(ranked);
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--tnw-line);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.topic-rank-list h3 {
  margin: 6px 0 0;
  color: var(--tnw-black);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.category-page {
  background: var(--tnw-white);
}

.category-hero {
  min-height: 314px;
  background: var(--tnw-black);
  color: var(--tnw-white);
}

.category-shell {
  width: min(1192px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 188px;
}

.category-hero h1 {
  margin: 0;
  color: var(--tnw-white);
  font-size: clamp(50px, 7vw, 72px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 #004cff;
}

.category-layout {
  width: min(1192px, calc(100% - 64px));
  margin: -149px auto 88px;
  display: grid;
  grid-template-columns: minmax(0, 868px) minmax(270px, 1fr);
  gap: 48px;
  align-items: start;
}

.category-main {
  min-width: 0;
}

.category-feature,
.category-card {
  position: relative;
  overflow: hidden;
  background: var(--tnw-black);
}

.category-feature {
  min-height: 488px;
}

.category-feature-media,
.category-card-media {
  display: block;
  position: absolute;
  inset: 0;
}

.category-feature-media::after,
.category-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .48) 58%, rgba(0, 0, 0, .86) 100%);
}

.category-feature-image,
.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.78);
}

.category-feature-copy,
.category-card-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  color: var(--tnw-white);
}

.category-feature-copy h2 {
  max-width: 820px;
  margin: 0 0 8px;
  color: var(--tnw-white);
  font-size: clamp(38px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.category-feature-copy p,
.category-card-copy p,
.category-stream-item p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.category-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.category-card {
  min-height: 241px;
}

.category-card-copy h3 {
  margin: 0 0 8px;
  color: var(--tnw-white);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

.popular-articles {
  padding-top: 207px;
}

.popular-articles h2 {
  margin: 0 0 22px;
  color: var(--tnw-black);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
}

.popular-list,
.category-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-list li + li {
  margin-top: 24px;
}

.popular-list a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.popular-list span {
  color: var(--tnw-purple);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.popular-list strong {
  color: var(--tnw-black);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.category-stream {
  margin-top: 72px;
}

.category-read-more {
  min-height: 46px;
  margin-top: 16px;
  padding: 0 22px;
  border: 0;
  background: var(--tnw-black);
  color: var(--tnw-white);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.category-read-more[hidden] {
  display: none;
}

.category-stream-pending[hidden] {
  display: none;
}

.category-stream-item {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.category-stream-image {
  width: 218px;
  height: 122px;
  object-fit: cover;
}

.category-stream-item h3 {
  margin: 0 0 10px;
  color: var(--tnw-black);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.category-empty {
  margin: 0;
  color: var(--tnw-muted);
  font-size: 18px;
}

.page-shell {
  padding: 96px 0 140px;
}

.page-shell h1 {
  max-width: 960px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.04;
}

.static-page {
  max-width: 1040px;
}

.static-page p {
  color: var(--tnw-muted);
  font-size: 19px;
  line-height: 1.95;
}

.static-copy {
  max-width: 720px;
  display: grid;
  gap: 56px;
  margin-top: 56px;
}

.static-copy a {
  color: var(--tnw-purple);
  font-weight: 900;
}

.static-section {
  padding-top: 44px;
  border-top: 1px solid var(--tnw-line);
}

.static-section h2 {
  margin: 0 0 22px;
  color: var(--tnw-black);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.static-section p {
  max-width: 720px;
  margin-bottom: 0;
}

.article-shell {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-left: max(24px, calc((100% - 1217px) / 2));
  margin-right: 24px;
  padding: 42px 0 72px;
}

.article-header,
.article-summary,
.article-hero-image,
.article-body {
  width: 100%;
  max-width: 1200px;
}

.article-header h1 {
  margin: 10px 0 14px;
  color: var(--tnw-black);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: 0;
}

.article-meta {
  color: var(--tnw-muted);
  font-size: 14px;
  font-weight: 700;
}

.article-summary {
  font-size: 20px;
}

.article-hero-image {
  max-height: 590px;
  object-fit: cover;
  margin: 28px 0 34px;
}

.article-body {
  font-size: 19px;
  line-height: 1.68;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.site-footer {
  background: var(--tnw-black);
  color: var(--tnw-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 520px);
  gap: 80px;
  align-items: start;
  padding: 70px 0 58px;
}

.footer-brand {
  display: inline-flex;
  padding: 0;
  background: transparent;
}

.footer-brand img {
  width: min(430px, 80vw);
  height: auto;
  background: transparent;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.footer-nav {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.footer-nav h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.footer-nav a {
  color: #dce2e8;
  font-size: 14px;
  font-weight: 700;
}

.footer-legal {
  border-top: 1px solid #26313b;
  padding: 36px 16px 42px;
  text-align: center;
}

.footer-legal p {
  margin: 0 0 8px;
  color: #9aa8b5;
  font-size: 14px;
  line-height: 1.3;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1772px) {
  .brand-link {
    transform: translateY(4px);
  }
}

@media (max-width: 980px) {
  .top-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, 248px);
  }

  .showcase-slot-1,
  .showcase-slot-2,
  .showcase-slot-4,
  .showcase-slot-5,
  .showcase-ad-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .latest-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .popular-articles {
    padding-top: 42px;
  }

  .topic-block-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-header,
  .article-summary,
  .article-hero-image,
  .article-body {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .article-shell,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .tnw-masthead {
    width: 100%;
    min-height: 0;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
  }

  .source-style-nav {
    flex: 0 0 auto;
    margin-left: 12px;
    min-height: 0;
    gap: 10px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 14.7px;
  }

  .top-story-grid {
    width: min(100% - 24px, var(--max));
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding-top: 12px;
  }

  .story-tile,
  .story-tile.lead-story {
    min-height: 306px;
  }

  .story-copy {
    left: 16px;
    right: 16px;
  }

  .lead-story .story-copy h2,
  .story-copy h2 {
    font-size: 29px;
    font-weight: 900;
  }

  .showcase-ad-panel h2 {
    font-size: 29px;
  }

  .latest-news-list {
    width: min(100% - 24px, var(--max));
    grid-template-columns: 1fr;
  }

  .latest-news-item {
    min-height: 0;
    padding: 0 0 28px;
  }

  .latest-news-section h2,
  .topic-block > h2,
  .page-shell h1 {
    width: min(100% - 24px, var(--max));
  }

  .page-shell {
    padding: 68px 0 96px;
  }

  .static-copy {
    gap: 42px;
    margin-top: 42px;
  }

  .static-section {
    padding-top: 34px;
  }

  .static-page p {
    font-size: 18px;
    line-height: 1.86;
  }

  .newsletter-band {
    min-height: 220px;
    padding: 40px 0;
  }

  .newsletter-inner {
    width: min(100% - 24px, var(--max));
  }

  .newsletter-band h2 {
    width: auto;
    font-size: 38px;
  }

  .topic-block {
    width: min(100% - 24px, var(--max));
    padding-top: 64px;
  }

  .category-shell {
    width: min(100% - 24px, var(--max));
    padding: 34px 0 160px;
  }

  .category-hero h1 {
    font-size: clamp(38px, 10.5vw, 42px);
    overflow-wrap: anywhere;
    text-shadow: 2px 2px 0 #004cff;
  }

  .category-layout {
    width: min(100% - 24px, var(--max));
    margin-top: -132px;
  }

  .category-feature {
    min-height: 390px;
  }

  .category-feature-copy,
  .category-card-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .category-feature-copy h2 {
    font-size: 34px;
  }

  .category-secondary-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 260px;
  }

  .popular-list a {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .category-stream {
    margin-top: 48px;
  }

  .category-read-more {
    width: 100%;
  }

  .category-stream-item {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
  }

  .category-stream-image {
    width: 116px;
    height: 74px;
  }

  .category-stream-item h3 {
    font-size: 18px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-header h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .article-body {
    font-size: 18px;
  }
}
